/* style/about.css */

/* Base styles for the About page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background, #FFFFFF); /* Inherit from shared, default to white */
}

/* Adjust main content padding to prevent header overlap */
.page-about__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height for hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-about__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

/* General section styling */
.page-about__section {
    padding: 60px 20px;
    background-color: var(--background, #FFFFFF); /* Default light background */
    color: #333333; /* Default dark text */
}

.page-about__dark-bg {
    background-color: #017439; /* Primary brand color for dark sections */
    color: #ffffff; /* White text for contrast */
}

.page-about__light-bg {
    background-color: #f8f8f8; /* Light gray for contrast */
    color: #333333; /* Dark text */
}

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

.page-about__heading {
    font-size: 2.5em;
    color: #017439; /* Primary brand color for headings */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}
.page-about__dark-bg .page-about__heading {
    color: #ffffff; /* White headings on dark background */
}

.page-about__sub-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: -20px auto 40px auto;
    color: #555555;
}
.page-about__dark-bg .page-about__sub-description {
    color: #e0e0e0;
}

/* Content wrapper for sections with image and text */
.page-about__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

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

.page-about__text-block p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-about__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Feature cards (Why Choose Us section) */
.page-about__grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #ffffff; /* White text for dark background */
    transition: transform 0.3s ease;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
}

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

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

/* Core Values section */
.page-about__values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-about__value-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__value-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-about__value-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-about__value-item p {
    color: #555555;
}

/* Our Team section */
.page-about__team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

.page-about__team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #017439;
}

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

.page-about__member-role {
    font-size: 1.1em;
    color: #777777;
    margin-bottom: 15px;
}

.page-about__member-bio {
    color: #555555;
}

/* History & Milestones section */
.page-about__timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.page-about__timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #017439;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.page-about__timeline-item {
    padding: 20px 0;
    position: relative;
    width: 50%;
}

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

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

.page-about__timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: #017439;
    border: 2px solid #ffffff;
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

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

.page-about__timeline-year {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 10px;
}

.page-about__timeline-description {
    font-size: 1.1em;
    color: #555555;
}

/* FAQ section */
.page-about__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-about__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: #ffffff;
}

.page-about__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-about__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-about__faq-item summary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-about__faq-qtext {
    flex-grow: 1;
    color: #ffffff;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #FFFF00; /* Yellow for toggle icon */
    font-weight: normal;
}

.page-about__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1.05em;
    color: #e0e0e0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* CTA Buttons */
.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Important for responsive buttons */
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

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

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

.page-about__btn-secondary {
    background-color: transparent;
    color: #017439; /* Primary brand color */
    border: 2px solid #017439;
}
.page-about__dark-bg .page-about__btn-secondary,
.page-about__faq .page-about__btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
}

.page-about__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}
.page-about__dark-bg .page-about__btn-secondary:hover,
.page-about__faq .page-about__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }
    .page-about__heading {
        font-size: 2em;
    }
    .page-about__content-wrapper {
        flex-direction: column;
    }
    .page-about__timeline::before {
        left: 15px;
    }
    .page-about__timeline-item {
        width: 100%;
        padding-left: 30px;
        padding-right: 0;
        text-align: left;
    }
    .page-about__timeline-item:nth-child(odd) {
        left: 0;
        padding-right: 0;
    }
    .page-about__timeline-item:nth-child(even) {
        left: 0;
    }
    .page-about__timeline-item::after,
    .page-about__timeline-item:nth-child(even)::after {
        left: 8px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        height: 70vh;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }
    .page-about__hero-title {
        font-size: 2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-about__section {
        padding: 40px 15px;
    }
    .page-about__heading {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__sub-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__image-block,
    .page-about__team-member,
    .page-about__value-item,
    .page-about__feature-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Video responsiveness (if any, though none in this page draft, still include for robustness) */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Container padding for mobile */
    .page-about__container {
        padding: 0 15px;
    }

    .page-about__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-about__faq-answer {
        font-size: 1em;
        padding: 10px 20px 15px;
    }
}