/* style/about.css */
.page-about {
    color: #ffffff; /* Body background is dark, so text should be light */
    background-color: var(--secondary-color); /* Inherit from shared.css, which is #1A1A1A */
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

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

.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background-color: #1A1A1A;
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: #ffffff;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-about__section-title {
    font-size: 2.8em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-about__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #f0f0f0;
}

.page-about__grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.page-about__card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__card-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-about__card-text {
    font-size: 1.05em;
    line-height: 1.7;
    color: #f0f0f0;
}

.page-about__card-image {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin-top: 20px;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-about__feature-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__feature-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-about__feature-icon {
    width: 100%;
    height: auto;
    max-width: 200px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-about__feature-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-about__feature-description {
    font-size: 1em;
    color: #e0e0e0;
}

.page-about__timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.page-about__timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #FFD700;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    z-index: 0;
}

.page-about__timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    color: #ffffff;
}

.page-about__timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

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

.page-about__timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: #1A1A1A;
    border: 4px solid #FFD700;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.page-about__timeline-item:nth-child(even)::after {
    left: -16px;
}

.page-about__timeline-year {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-about__timeline-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 5px;
}

.page-about__timeline-description {
    font-size: 1em;
    color: #e0e0e0;
}

.page-about__history-image {
    width: 100%;
    height: auto;
    max-width: 1000px;
    display: block;
    margin: 50px auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.page-about__commitment-section {
    background-color: #FFD700; /* Use primary color as background */
    padding: 80px 20px;
    color: #1A1A1A; /* Dark text for light background */
}

.page-about__commitment-section .page-about__section-title {
    color: #1A1A1A;
    text-shadow: none;
}

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

.page-about__commitment-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333333;
}

.page-about__commitment-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-about__commitment-description {
    font-size: 1em;
    line-height: 1.7;
    color: #333333;
}

.page-about__team-section {
    padding: 80px 20px;
    background-color: #1A1A1A;
}

.page-about__team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-about__team-member-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__team-member-avatar {
    width: 100%;
    height: auto;
    max-width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #FFD700;
}

.page-about__team-member-name {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 5px;
}

.page-about__team-member-role {
    font-size: 1.1em;
    color: #e0e0e0;
    margin-bottom: 15px;
}

.page-about__team-member-bio {
    font-size: 0.95em;
    color: #cccccc;
    line-height: 1.6;
}

.page-about__faq-section {
    padding: 80px 20px;
    background-color: #ffffff; /* Light background for FAQ */
    color: #333333; /* Dark text for light background */
}

.page-about__faq-section .page-about__section-title {
    color: #1A1A1A;
    text-shadow: none;
}

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

.page-about__faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #FFD700; /* Gold background for question */
    color: #1A1A1A; /* Dark text for gold background */
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

.page-about__faq-q-text {
    margin: 0;
    color: #1A1A1A;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar, or - */
    content: '−';
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #333333;
    background-color: #ffffff;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

.page-about__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.7;
    color: #333333;
}

.page-about__cta-section {
    background-color: #1A1A1A;
    padding: 80px 20px;
    text-align: center;
}

.page-about__cta-section .page-about__section-title {
    color: #FFD700;
}

.page-about__cta-section .page-about__section-intro {
    color: #e0e0e0;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background-color: #FFD700;
    color: #1A1A1A;
    border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: #1A1A1A;
}

.page-about__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-about__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A1A1A;
}

.page-about__keyword {
    color: #FFD700;
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }

    .page-about__section-title {
        font-size: 2.2em;
    }

    .page-about__grid-two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-about__hero-title {
        font-size: 2.2em;
    }

    .page-about__hero-description {
        font-size: 1.1em;
    }

    .page-about__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .page-about__section-intro {
        margin-bottom: 30px;
    }

    .page-about__features-grid {
        grid-template-columns: 1fr;
    }

    .page-about__timeline::after {
        left: 18px;
    }

    .page-about__timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
    }

    .page-about__timeline-item:nth-child(even),
    .page-about__timeline-item:nth-child(odd) {
        left: 0;
        text-align: left;
    }

    .page-about__timeline-item::after {
        left: 10px !important;
    }

    .page-about__commitment-grid {
        grid-template-columns: 1fr;
    }

    .page-about__team-members {
        grid-template-columns: 1fr;
    }

    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__mission-vision-section,
    .page-about__why-choose-section,
    .page-about__history-section,
    .page-about__commitment-section,
    .page-about__team-section,
    .page-about__faq-section,
    .page-about__cta-section,
    .page-about__hero-cta-buttons,
    .page-about__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-about__faq-answer {
        padding: 0 20px;
    }

    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px 20px;
    }

    .page-about__cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }

    .page-about__hero-description {
        font-size: 1em;
    }

    .page-about__section-title {
        font-size: 1.6em;
    }

    .page-about__card-title {
        font-size: 1.5em;
    }

    .page-about__feature-title {
        font-size: 1.4em;
    }
}