/* style/about.css */

/* Custom color variables */
:root {
    --page-about-bg: #08160F;
    --page-about-card-bg: #11271B;
    --page-about-text-main: #F2FFF6;
    --page-about-text-secondary: #A7D9B8;
    --page-about-border: #2E7A4E;
    --page-about-glow: #57E38D;
    --page-about-gold: #F2C14E;
    --page-about-divider: #1E3A2A;
    --page-about-deep-green: #0A4B2C;
    --page-about-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page content */
.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--page-about-text-main); /* Main text color for dark background */
    background-color: var(--page-about-bg); /* Page background */
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Section styling */
.page-about__section {
    padding: 60px 20px;
    margin-bottom: 20px;
    background-color: var(--page-about-bg);
}

.page-about__section:nth-child(even) {
    background-color: var(--page-about-deep-green); /* Alternate background for visual break */
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 80px; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: var(--page-about-deep-green); /* Ensure a background even if image loads late */
}

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

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-top: -120px; /* Pull content up slightly over the image for visual flow */
    padding: 30px;
    background: rgba(17, 39, 27, 0.8); /* Semi-transparent dark green background for content */
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--page-about-border);
}


.page-about__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
    color: var(--page-about-text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-about__description {
    font-size: 1.1rem;
    color: var(--page-about-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrapping for desktop */
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-about__btn-primary {
    background: var(--page-about-button-gradient);
    color: #ffffff; /* Always white text for primary button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
    opacity: 0.9;
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--page-about-glow); /* Use glow color for secondary text */
    border: 2px solid var(--page-about-glow);
    box-shadow: 0 0 10px rgba(87, 227, 141, 0.3);
}

.page-about__btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(87, 227, 141, 0.1);
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.5);
}


/* General Titles & Text */
.page-about__section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--page-about-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-about__text-block {
    font-size: 1.05rem;
    color: var(--page-about-text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
}

/* Content Grid for Mission/Vision */
.page-about__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Card Styling */
.page-about__card {
    background-color: var(--page-about-card-bg); /* Darker green background for cards */
    border: 1px solid var(--page-about-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__card-title,
.page-about__value-title,
.page-about__feature-title,
.page-about__commitment-title {
    font-size: 1.6rem;
    color: var(--page-about-text-main);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__card-text,
.page-about__value-description,
.page-about__feature-description,
.page-about__commitment-description {
    font-size: 1rem;
    color: var(--page-about-text-secondary);
    line-height: 1.7;
}

/* Core Values Section */
.page-about__values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__value-item {
    padding: 25px;
}

.page-about__value-image,
.page-about__feature-image,
.page-about__team-image,
.page-about__commitment-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Enforce minimum size */
    min-width: 200px; /* Enforce minimum size */
}

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

.page-about__feature-item {
    padding: 25px;
}

/* Team & Commitment Section */
.page-about__team-image {
    max-width: 800px;
    margin: 0 auto 40px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.page-about__commitment-item {
    padding: 25px;
}

.page-about__commitment-image {
    max-width: 900px;
    margin: 0 auto 40px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-about__faq-section {
    background-color: var(--page-about-deep-green);
}

.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__faq-item {
    background-color: var(--page-about-card-bg);
    border: 1px solid var(--page-about-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--page-about-text-main);
    cursor: pointer;
    background-color: var(--page-about-deep-green); /* Darker green for question background */
    border-bottom: 1px solid var(--page-about-divider);
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: var(--page-about-border);
}

.page-about__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--page-about-glow);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

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

/* Final CTA Section */
.page-about__final-cta {
    background-color: var(--page-about-deep-green);
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid var(--page-about-divider);
}

.page-about__final-cta .page-about__section-title {
    color: var(--page-about-gold);
    margin-bottom: 25px;
}

.page-about__final-cta .page-about__text-block {
    color: var(--page-about-text-secondary);
    margin-bottom: 40px;
}

/* Dark section for contrast fix example */
.page-about__dark-section {
  background: var(--page-about-deep-green);
  color: var(--page-about-text-main); /* Forced light text */
}

/* Contrast fix classes (as per prompt) */
.page-about__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-about__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-content {
        margin-top: -80px;
        padding: 25px;
    }
    .page-about__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-about__section-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }
}

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

    .page-about__section {
        padding: 40px 15px;
    }

    .page-about__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero Section Mobile */
    .page-about__hero-section {
        padding: 10px 15px 60px;
    }

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

    .page-about__hero-content {
        margin-top: -60px;
        padding: 20px;
        border-radius: 8px;
    }

    .page-about__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }

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

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important; /* Allow text wrap for buttons */
        word-wrap: break-word !important;
    }

    /* General Titles & Text Mobile */
    .page-about__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }

    .page-about__text-block {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* Grid layouts */
    .page-about__content-grid,
    .page-about__values-grid,
    .page-about__features-grid,
    .page-about__commitment-list {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-about__card {
        padding: 20px;
        border-radius: 8px;
    }

    .page-about__card-title,
    .page-about__value-title,
    .page-about__feature-title,
    .page-about__commitment-title {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .page-about__card-text,
    .page-about__value-description,
    .page-about__feature-description,
    .page-about__commitment-description {
        font-size: 0.95rem;
    }

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

    .page-about__hero-image {
        filter: brightness(0.5); /* Slightly darker on mobile for contrast */
    }

    .page-about__value-image,
    .page-about__feature-image,
    .page-about__team-image,
    .page-about__commitment-image {
        margin-bottom: 15px;
        border-radius: 6px;
    }

    /* FAQ Mobile */
    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1.1rem;
    }

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

    /* Video section (if present) */
    .page-about__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    .page-about__video-container,
    .page-about__video-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .page-about__hero-content {
        margin-top: -40px;
    }
    .page-about__main-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
    .page-about__description {
        font-size: 0.95rem;
    }
    .page-about__section-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }
    .page-about__card-title,
    .page-about__value-title,
    .page-about__feature-title,
    .page-about__commitment-title {
        font-size: 1.2rem;
    }
}