/* style/about.css */

/* --- Base Styles & Variables --- */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main, #F2FFF6); /* Default text color for the page */
    background: var(--bg, #08160F); /* Default background for the page */
}

/* --- Typography --- */
.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main, #F2FFF6);
    text-align: center;
    margin-bottom: 20px;
}

.page-about__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-main, #F2FFF6);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gold, #F2C14E);
    border-radius: 2px;
}

.page-about__sub-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 25px;
}

.page-about__card-title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 600;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
}

.page-about__text-block,
.page-about__card-text,
.page-about__list-item,
.page-about p,
.page-about li {
    font-size: 1rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 15px;
}

.page-about__description {
    font-size: 1.1rem;
    color: var(--text-secondary, #A7D9B8);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-about__link-more,
.page-about__contact-link {
    color: var(--main-color, #11A84E);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-about__link-more:hover,
.page-about__contact-link:hover {
    color: var(--gold, #F2C14E);
    text-decoration: underline;
}

/* --- Layout & Sections --- */
.page-about__section {
    padding: 60px 0;
    background: var(--bg, #08160F);
}

.page-about__section--vision-mission {
    background: var(--deep-green, #0A4B2C);
}

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

.page-about__container--two-columns {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.page-about__column {
    flex: 1;
}

.page-about__container--centered {
    text-align: center;
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image then text */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow: hidden;
    background-color: var(--bg, #08160F); /* Fallback background */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

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

.page-about__hero-content-wrapper {
    position: relative; /* Ensure content is above any potential background */
    z-index: 10;
    max-width: 900px;
    text-align: center;
}

/* --- Buttons --- */
.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-about__cta-buttons--large a {
    min-width: 200px;
    padding: 15px 30px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px var(--glow, #57E38D);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--text-main, #F2FFF6);
    border: 2px solid var(--main-color, #11A84E);
}

.page-about__btn-secondary:hover {
    background: var(--main-color, #11A84E);
    color: #ffffff;
    border-color: var(--main-color, #11A84E);
    box-shadow: 0 0 15px var(--glow, #57E38D);
}

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

.page-about__feature-card,
.page-about__commitment-card {
    background: var(--card-bg, #11271B);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border, #2E7A4E);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__feature-card p,
.page-about__commitment-card p {
    color: var(--text-secondary, #A7D9B8);
}

/* --- Image Styles --- */
.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Min size for content images */
}

/* --- List Styles --- */
.page-about__values-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-about__values-list .page-about__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--text-secondary, #A7D9B8);
}

.page-about__values-list .page-about__list-item::before {
    content: '✅'; /* Unicode checkmark */
    position: absolute;
    left: 0;
    color: var(--gold, #F2C14E);
    font-size: 1.2em;
    line-height: 1;
}

/* --- FAQ Section --- */
.page-about__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__faq-item {
    background: var(--card-bg, #11271B);
    border: 1px solid var(--divider, #1E3A2A);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main, #F2FFF6);
    background: var(--card-bg, #11271B);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-about__faq-question:hover {
    background-color: rgba(var(--main-color-rgb, 17, 168, 78), 0.1); /* Using rgba for hover effect */
}

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

.page-about__faq-question::-webkit-details-marker {
    display: none;
}

.page-about__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gold, #F2C14E);
    margin-left: 15px;
}

.page-about__faq-answer {
    padding: 0 25px 20px;
    color: var(--text-secondary, #A7D9B8);
}

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

.page-about__faq-answer a {
    color: var(--main-color, #11A84E);
    text-decoration: none;
    font-weight: 500;
}

.page-about__faq-answer a:hover {
    text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__container--two-columns {
        flex-direction: column;
    }
    .page-about__column {
        width: 100%;
    }
}

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

    .page-about__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset */
    }

    .page-about__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-about__main-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .page-about__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

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

    .page-about__sub-title {
        font-size: 1.3rem;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent overflow */
    }

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

    .page-about__features-grid,
    .page-about__commitment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__feature-card,
    .page-about__commitment-card {
        padding: 25px;
    }

    .page-about__container {
        padding: 0 15px;
    }

    /* Mobile image responsive rules */
    .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__hero-image-wrapper,
    .page-about__column {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Video section (if any) small top padding */
    .page-about__video-section {
        padding-top: 10px !important;
    }

    /* Button container flex-wrap for multiple buttons */
    .page-about__cta-buttons {
        flex-wrap: wrap !important;
        gap: 15px;
    }
}