/* style/about.css */

/* Base styles for the About Us page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default background, will be overridden by shared if different */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding: 100px 20px;
    text-align: center;
    color: #ffffff; /* White text for dark background */
    background-color: #017439; /* Brand primary color */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-about__hero-section .page-about__container {
    max-width: 900px;
    margin: 0 auto;
}

.page-about__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Special color for main title */
}

.page-about__intro-text {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #ffffff;
}

/* General Section Styles */
.page-about__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.page-about__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

.page-about__content-area {
    padding: 60px 0;
}

/* Mission & Vision Section */
.page-about__mission-vision {
    background-color: #ffffff;
    color: #333333;
}

.page-about__mission-vision .page-about__section-title {
    color: #017439;
}

.page-about__grid-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.page-about__grid-layout--reverse {
    flex-direction: row-reverse;
}

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

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

.page-about__image-wrapper {
    flex: 1;
    text-align: center;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    object-fit: cover;
}

/* Why Choose Section */
.page-about__why-choose {
    background-color: #017439;
    color: #ffffff;
}

.page-about__why-choose .page-about__section-title {
    color: #FFFF00; /* Yellow for contrast */
}

.page-about__why-choose .page-about__section-description {
    color: #ffffff;
}

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

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__feature-icon {
    width: 200px; /* Enforce min size */
    height: 200px; /* Enforce min size */
    margin-bottom: 20px;
    border-radius: 50%;
    object-fit: cover;
}

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

/* Video Section */
.page-about__video-section {
    background-color: #f8f8f8;
    color: #333333;
}

.page-about__video-section .page-about__section-title {
    color: #017439;
}

.page-about__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
}

.page-about__video,
.page-about__video-wrapper .page-about__video-link video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    cursor: pointer;
}

/* Commitment Section */
.page-about__commitment {
    background-color: #017439;
    color: #ffffff;
}

.page-about__commitment .page-about__section-title {
    color: #FFFF00;
}

.page-about__commitment .page-about__section-description {
    color: #ffffff;
}

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

.page-about__commitment-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__commitment-heading {
    font-size: 1.6em;
    color: #FFFF00;
    margin-bottom: 15px;
}

/* Team Section */
.page-about__team {
    background-color: #ffffff;
    color: #333333;
}

.page-about__team .page-about__section-title {
    color: #017439;
}

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

.page-about__team-member {
    text-align: center;
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-about__team-photo {
    width: 200px; /* Enforce min size */
    height: 200px; /* Enforce min size */
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 4px solid #017439;
}

.page-about__member-name {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 5px;
}

.page-about__member-role {
    font-style: italic;
    color: #555555;
    margin-bottom: 15px;
}

.page-about__team-closing-text {
    text-align: center;
    font-size: 1.1em;
    margin-top: 50px;
    font-style: italic;
    color: #555;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: #017439;
    color: #ffffff;
}

.page-about__faq-section .page-about__section-title {
    color: #FFFF00;
}

.page-about__faq-list {
    margin-top: 40px;
}

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg);
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Adjust horizontal padding */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 25px 20px 25px; /* Vertical padding when active */
}

.page-about__faq-answer p {
    margin-bottom: 15px;
}

/* CTA Section */
.page-about__cta-section {
    background-color: #017439;
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

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

.page-about__cta-section .page-about__section-description {
    color: #ffffff;
    margin-bottom: 50px;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

.page-about__btn-primary {
    background-color: #C30808; /* Custom color for register */
    color: #FFFF00; /* Custom font color for register */
    border: 2px solid #C30808;
}

.page-about__btn-primary:hover {
    background-color: #9C0606;
    border-color: #9C0606;
}

.page-about__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

.page-about__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2c;
    border-color: #005f2c;
}

/* Specific button for privacy policy in commitment section */
.page-about__btn-learn-more {
    margin-top: 30px;
}

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

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

    .page-about__intro-text {
        font-size: 1.1em;
    }

    .page-about__grid-layout {
        flex-direction: column;
    }

    .page-about__grid-layout--reverse {
        flex-direction: column;
    }
}

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

    .page-about__hero-section {
        padding: 80px 15px;
        min-height: 400px;
    }

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

    .page-about__intro-text {
        font-size: 1em;
    }

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

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

    .page-about__content-area {
        padding: 40px 0;
    }

    .page-about__grid-layout,
    .page-about__grid-layout--reverse {
        gap: 30px;
    }

    .page-about__feature-card,
    .page-about__commitment-item,
    .page-about__team-member {
        padding: 20px;
    }

    .page-about__feature-icon,
    .page-about__team-photo {
        width: 200px !important;
        height: 200px !important;
    }

    .page-about__card-title,
    .page-about__commitment-heading,
    .page-about__member-name {
        font-size: 1.3em;
    }

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

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

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

    .page-about__cta-section {
        padding: 60px 15px;
    }

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

    .page-about__btn-primary,
    .page-about__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile specific image/video/container handling */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper,
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }

    .page-about__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure spacing on mobile */
    }
}