/* style/about.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #1E90FF; /* Deep Sky Blue */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #121212;
    --bg-light: #f8f9fa;
    --card-bg-dark: rgba(255, 255, 255, 0.08);
    --card-bg-light: #ffffff;
    --border-color-dark: rgba(255, 255, 255, 0.15);
    --border-color-light: #e0e0e0;
}

.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark); /* Inherited from shared.css, but defined for clarity */
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Fixed Navbar Spacing */
.page-about__hero-section {
    padding-top: 120px; /* Adjust for fixed header */
}

.page-about__section-title {
    font-size: 3em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__section-subtitle {
    font-size: 1.2em;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 40px;
    opacity: 0.8;
}

.page-about__section-subtitle a {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-about__section-subtitle a:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-about__hero-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0a0a0a 100%);
    color: var(--text-light);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.3);
}

.page-about__hero-title {
    font-size: 3.8em;
    margin-bottom: 25px;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-about__hero-description {
    font-size: 1.5em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.5;
    color: var(--text-light);
    opacity: 0.9;
}

.page-about__hero-description a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-about__hero-description a:hover {
    text-decoration: underline;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-about__cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: var(--primary-color);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.page-about__cta-button:hover {
    background: #e6c200;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-about__cta-button--secondary {
    background: var(--secondary-color);
    color: var(--text-light);
    border: 2px solid var(--secondary-color);
}

.page-about__cta-button--secondary:hover {
    background: #1a7fd9;
    border-color: #1a7fd9;
}

/* General Content Sections */
.page-about__introduction-section,
.page-about__advantages-section,
.page-about__faq-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 80px 0;
}

.page-about__dark-bg {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 80px 0;
}

.page-about__dark-bg .page-about__section-title {
    color: var(--primary-color);
}

.page-about__dark-bg .page-about__section-subtitle {
    color: var(--text-light);
}

.page-about__dark-bg .page-about__section-subtitle a {
    color: var(--secondary-color);
}

.page-about__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

.page-about__content-grid:nth-child(even) {
    flex-direction: row-reverse;
}

.page-about__content-text {
    flex: 1;
    font-size: 1.1em;
    line-height: 1.8;
}

.page-about__introduction-section .page-about__content-text p,
.page-about__future-vision-section .page-about__content-text p {
    color: var(--text-dark);
}

.page-about__introduction-section .page-about__content-text a,
.page-about__future-vision-section .page-about__content-text a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-about__introduction-section .page-about__content-text a:hover,
.page-about__future-vision-section .page-about__content-text a:hover {
    text-decoration: underline;
}

.page-about__content-image {
    flex: 1;
    text-align: center;
}

.page-about__content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* History Section */
.page-about__timeline {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-top: 50px;
}

.page-about__timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.page-about__timeline-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    position: relative;
}

.page-about__timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.page-about__timeline-item:nth-child(odd) .page-about__timeline-year {
    text-align: right;
    padding-right: 50px;
}

.page-about__timeline-item:nth-child(even) .page-about__timeline-year {
    text-align: left;
    padding-left: 50px;
}

.page-about__timeline-item::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.page-about__timeline-year {
    flex: 1;
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    padding: 10px 0;
}

.page-about__timeline-description {
    flex: 1;
    font-size: 1.1em;
    line-height: 1.7;
    padding: 10px 0;
    color: var(--text-light);
}

.page-about__timeline-description a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-about__timeline-description a:hover {
    text-decoration: underline;
}

.page-about__full-width-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Advantages Section */
.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-about__feature-card {
    background: var(--card-bg-light);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-about__feature-card img {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-about__feature-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-about__feature-card p {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-dark);
}

.page-about__feature-card p a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-about__feature-card p a:hover {
    text-decoration: underline;
}

/* Commitment Section */
.page-about__commitment-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.page-about__commitment-item {
    text-align: center;
    padding: 30px;
    background: var(--card-bg-dark);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-about__commitment-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.12);
}

.page-about__commitment-item img {
    width: 100px;
    height: 100px;
    margin-bottom: 25px;
    object-fit: contain;
}

.page-about__commitment-item h3 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-about__commitment-item p {
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--text-light);
    opacity: 0.9;
}

.page-about__commitment-item p a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-about__commitment-item p a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 50px;
}

.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color-light);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--card-bg-light);
    color: var(--text-dark);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-about__faq-question:hover {
    background: #f0f0f0;
}

.page-about__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-dark);
    pointer-events: none;
}

.page-about__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg); /* Change to X or just rotate for - */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: #fcfcfc;
    color: var(--text-dark);
    border-top: 1px solid #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain content */
    padding: 20px 25px !important;
    opacity: 1;
}

.page-about__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-dark);
}

.page-about__faq-answer p a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-about__faq-answer p a:hover {
    text-decoration: underline;
}

/* Future Vision Section */
.page-about__future-vision-section .page-about__cta-button {
    margin-top: 30px;
    background: var(--primary-color);
    color: var(--bg-dark);
}

.page-about__future-vision-section .page-about__cta-button:hover {
    background: #e6c200;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__hero-description {
        font-size: 1.3em;
    }
    .page-about__section-title {
        font-size: 2.5em;
    }
    .page-about__content-grid {
        flex-direction: column;
    }
    .page-about__timeline::before {
        left: 20px;
    }
    .page-about__timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-about__timeline-item::before {
        left: 18px;
    }
    .page-about__timeline-item:nth-child(odd) {
        flex-direction: column;
    }
    .page-about__timeline-item:nth-child(odd) .page-about__timeline-year {
        text-align: left;
        padding-right: 0;
        padding-left: 50px;
    }
    .page-about__timeline-year {
        padding-left: 50px;
    }
    .page-about__timeline-description {
        padding-left: 50px;
    }
    .page-about__features-grid,
    .page-about__commitment-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding-top: 100px !important; /* Adjust for mobile fixed header */
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-about__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__hero-title {
        font-size: 2.5em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__cta-button {
        padding: 14px 30px !important;
        font-size: 1em !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__section-subtitle {
        font-size: 1em;
    }
    .page-about__introduction-section, .page-about__advantages-section, .page-about__faq-section, .page-about__dark-bg {
        padding: 60px 0;
    }
    .page-about__content-grid {
        gap: 30px;
    }
    .page-about__content-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-about__full-width-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-about__timeline::before {
        left: 15px;
    }
    .page-about__timeline-item::before {
        left: 13px;
    }
    .page-about__timeline-year,
    .page-about__timeline-description {
        padding-left: 40px;
    }
    .page-about__feature-card img,
    .page-about__commitment-item img {
        width: 90px;
        height: 90px;
    }
    .page-about__feature-title {
        font-size: 1.3em;
    }
    .page-about__commitment-item h3 {
        font-size: 1.4em;
    }
    .page-about__faq-question {
        padding: 15px 20px;
    }
    .page-about__faq-question h3 {
        font-size: 1em;
    }
    .page-about__faq-toggle {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }
    .page-about__faq-answer {
        padding: 0 20px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px 20px !important;
    }

    /* Ensure all images are responsive and do not overflow */
    .page-about img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__content-grid,
    .page-about__features-grid,
    .page-about__commitment-list,
    .page-about__faq-list {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 2em;
    }
    .page-about__hero-description {
        font-size: 0.95em;
    }
    .page-about__cta-button {
        padding: 12px 25px !important;
        font-size: 0.9em !important;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__section-subtitle {
        font-size: 0.9em;
    }
    .page-about__timeline-year,
    .page-about__timeline-description {
        font-size: 1em;
    }
    .page-about__feature-title {
        font-size: 1.2em;
    }
    .page-about__commitment-item h3 {
        font-size: 1.3em;
    }
}