/* style/about.css */

/* Custom CSS Variables (ensure these are also defined in shared.css for consistency) */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient-start: #2AD16F;
    --button-gradient-end: #13994A;
    --card-bg: #11271B;
    --background: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Base styles for the page content, inheriting body background from shared.css */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--background); /* Explicitly set for main content sections */
}

/* General container for content sections */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-about__section {
    padding: 60px 0;
    background-color: var(--background); /* Default background for sections */
}

.page-about__dark-section {
    background-color: var(--deep-green); /* Custom deep green background */
    color: var(--text-main);
}

.page-about__section-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size for H2 */
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background);
    overflow: hidden; /* Ensure no image overflow */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for hero image */
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-about__hero-content {
    max-width: 900px;
    padding: 0 20px 60px; /* Padding at the bottom of hero section */
    box-sizing: border-box;
}

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
    color: var(--gold); /* Gold color for main title */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1.5px;
}

.page-about__hero-description {
    font-size: 1.2em;
    color: var(--text-secondary); /* Secondary text color */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__btn-primary {
    background: linear-gradient(180deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%); /* Custom button gradient */
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, var(--button-gradient-end) 0%, var(--button-gradient-start) 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
    background: #ffffff;
    color: var(--primary-color); /* Primary color text */
    border: 2px solid var(--primary-color);
    margin-left: 20px;
}

.page-about__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between buttons */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    margin-top: 30px;
}

/* About Us Section */
.page-about__about-us .page-about__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

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

.page-about__about-us .page-about__text-block p {
    margin-bottom: 20px;
    color: var(--text-main);
    font-size: 1.1em;
}

.page-about__about-us .page-about__image-block {
    flex: 0 0 45%; /* Fixed width for image block */
    max-width: 45%;
}

.page-about__about-us .page-about__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    background-color: var(--card-bg); /* Card background for this section */
    padding-bottom: 80px;
}

.page-about__why-choose-us .page-about__section-title {
    color: var(--gold); /* Gold title for contrast */
}

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

.page-about__feature-card {
    background-color: var(--background); /* Darker background for feature cards */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main);
    border: 1px solid var(--divider);
}

.page-about__feature-card .page-about__card-title {
    font-size: 1.8em;
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-about__feature-card .page-about__card-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-about__feature-card p {
    font-size: 1em;
    margin-bottom: 25px;
    flex-grow: 1; /* Allows paragraphs to take available space */
}

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

.page-about__value-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--divider);
}

.page-about__value-item .page-about__value-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-about__value-item .page-about__value-title {
    font-size: 1.5em;
    color: var(--gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__value-item p {
    color: var(--text-secondary);
    font-size: 0.95em;
}

/* Future Vision Section */
.page-about__future-vision .page-about__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

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

.page-about__future-vision .page-about__text-block p {
    margin-bottom: 20px;
    color: var(--text-main);
    font-size: 1.1em;
}

.page-about__future-vision .page-about__image-block {
    flex: 0 0 45%;
    max-width: 45%;
}

.page-about__future-vision .page-about__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* CTA Section */
.page-about__cta-section {
    text-align: center;
    padding: 80px 0;
}

.page-about__cta-section .page-about__section-title {
    color: var(--gold);
}

.page-about__cta-description {
    font-size: 1.2em;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px;
}

/* FAQ Section */
.page-about__faq-section {
    background-color: var(--card-bg);
    padding-bottom: 80px;
}

.page-about__faq-section .page-about__section-title {
    color: var(--gold);
}

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

.page-about__faq-item {
    background-color: var(--background);
    border: 1px solid var(--divider);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-main);
    background-color: var(--card-bg); /* Slightly different background for summary */
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: var(--deep-green);
}

.page-about__faq-item[open] .page-about__faq-question {
    background-color: var(--deep-green);
}

.page-about__faq-qtext {
    flex-grow: 1;
    color: var(--gold); /* Gold for question text */
}

.page-about__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--glow); /* Glow color for toggle */
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-about__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.page-about__faq-answer .page-about__link {
    color: var(--glow);
    text-decoration: underline;
}

.page-about__faq-answer .page-about__link:hover {
    color: var(--gold);
}

/* Remove default details marker */
.page-about__faq-item > summary {
    list-style: none;
}
.page-about__faq-item > summary::-webkit-details-marker {
    display: none;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .page-about__about-us .page-about__content-wrapper,
    .page-about__future-vision .page-about__content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .page-about__about-us .page-about__image-block,
    .page-about__future-vision .page-about__image-block {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }

    .page-about__section-title {
        font-size: 2em; /* Smaller H2 for mobile */
        margin-bottom: 30px;
    }

    .page-about__main-title {
        font-size: 2.2em; /* Smaller H1 for mobile */
    }

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

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers with images/content */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__content-wrapper,
    .page-about__feature-card,
    .page-about__value-item,
    .page-about__faq-item,
    .page-about__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important; /* Add padding to prevent content touching edges */
        padding-right: 15px !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Buttons responsiveness */
    .page-about__cta-button,
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0 !important; /* Remove margin-left for secondary button */
        margin-right: 0 !important;
    }

    .page-about__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }

    .page-about__hero-content {
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 40px;
    }

    .page-about__about-us .page-about__text-block p,
    .page-about__future-vision .page-about__text-block p {
        font-size: 1em;
    }

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

    .page-about__value-item .page-about__value-title {
        font-size: 1.2em;
    }

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

    .page-about__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }

    /* Fixed top padding for video section (if present) */
    .page-about__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}