/* style/about.css */
:root {
    --primary-color: #003366;
    --secondary-color: #FFD700;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --border-color: #e0e0e0;
}

.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.7;
    color: var(--text-light); /* Default to light text for dark body background */
}

/* Ensure main content padding-top for fixed header */
.page-about__hero-banner {
    padding-top: 120px; /* Desktop padding for fixed header */
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color), #004488);
    text-align: center;
    position: relative;
}

.page-about__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-about__hero-title {
    font-size: 42px;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.page-about__section {
    padding: 60px 20px;
    background: var(--bg-light);
}

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

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-about__card {
    background: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 30px;
    color: var(--text-dark); /* Dark text for light card background */
}

.page-about__heading {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.page-about__heading--light {
    color: var(--text-light);
}

.page-about__sub-heading {
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
}

.page-about__sub-heading--light {
    color: rgba(255, 255, 255, 0.8);
}

.page-about__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-about__text-box {
    flex: 1;
}

.page-about__image-box {
    flex: 1;
    min-width: 200px;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-about__content-wrapper:nth-child(even) .page-about__image-box {
    order: 2;
}

.page-about__content-wrapper:nth-child(even) .page-about__text-box {
    order: 1;
}

.page-about__milestone-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 20px;
}

.page-about__milestone-item {
    margin-bottom: 10px;
    font-size: 16px;
}

.page-about__milestone-item strong {
    color: var(--primary-color);
}

.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__feature-card {
    background: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark); /* Dark text for light feature card background */
}

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

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

.page-about__feature-description {
    font-size: 15px;
    color: #555555;
}

.page-about__cta-wrapper {
    text-align: center;
    margin-top: 50px;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-about__cta-button:hover {
    background: #e0b800;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button--secondary {
    background: var(--primary-color);
    color: var(--text-light);
}

.page-about__cta-button--secondary:hover {
    background: #004488;
    color: var(--text-light);
}

.page-about__faq-section {
    padding: 60px 20px;
    background: var(--bg-light);
}

.page-about__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.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 20px;
    opacity: 0;
    background: #fdfdfd;
    color: var(--text-dark);
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* Important for override and smooth transition */
    padding: 20px !important;
    opacity: 1;
    border-top: 1px solid var(--border-color);
}

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

.page-about__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-about__faq-question:active {
    background: #eeeeee;
}

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

.page-about__faq-toggle {
    font-size: 26px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    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(--primary-color);
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__hero-title {
        font-size: 36px;
    }
    .page-about__hero-description {
        font-size: 16px;
    }
    .page-about__heading {
        font-size: 28px;
    }
    .page-about__card {
        padding: 30px;
    }
    .page-about__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-about__content-wrapper:nth-child(even) .page-about__image-box {
        order: unset;
    }
    .page-about__content-wrapper:nth-child(even) .page-about__text-box {
        order: unset;
    }
    .page-about__image-box {
        width: 100%;
    }
    .page-about__features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 15px;
        line-height: 1.6;
    }
    .page-about__hero-banner {
        padding-top: 100px !important; /* Mobile padding for fixed header */
        padding-bottom: 40px;
    }
    .page-about__hero-title {
        font-size: 30px;
    }
    .page-about__hero-description {
        font-size: 15px;
    }
    .page-about__section {
        padding: 40px 15px;
    }
    .page-about__container,
    .page-about__card,
    .page-about__features-grid,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
    .page-about__card {
        padding: 25px;
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-about__heading {
        font-size: 24px;
        margin-bottom: 30px;
    }
    .page-about__feature-title {
        font-size: 20px;
    }
    .page-about__feature-description {
        font-size: 14px;
    }
    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-about__faq-section {
        padding: 40px 15px;
    }
    .page-about__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-about__faq-question h3 {
        font-size: 15px;
        width: calc(100% - 40px);
    }
    .page-about__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px !important;
    }

    /* Mobile image responsive rules */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__image-box {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .page-about__milestone-list {
        padding-left: 15px;
    }
    .page-about__milestone-item {
        font-size: 15px;
    }
}