/* style/about.css */

/* Define custom colors as CSS variables within the page scope */
.page-about {
    --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-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);

    /* Default text color for the page, assuming a dark body background from shared.css */
    color: var(--page-about-text-main); /* Light text for dark background */
    background-color: var(--page-about-bg); /* Page background */
    font-family: Arial, sans-serif; /* Example font */
    line-height: 1.6;
}

/* Fixed header spacing: body handles padding-top, first section uses small decorative padding */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px; /* General padding */
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-about-deep-green); /* Example background for hero section */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    max-width: 1920px; /* Ensure it doesn't overflow */
    display: block;
    object-fit: cover;
    margin-bottom: 20px; /* Space between image and content */
}

.page-about__hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 1; /* Ensure content is above any potential background elements */
    color: var(--page-about-text-main); /* Light text */
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
    font-weight: bold;
    color: var(--page-about-gold); /* Gold color for main title */
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-about__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--page-about-text-secondary); /* Secondary text color */
}

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    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: var(--page-about-btn-gradient);
    color: #ffffff; /* White text on dark green gradient */
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--page-about-gold); /* Gold text */
    border: 2px solid var(--page-about-gold); /* Gold border */
}

.page-about__btn-secondary:hover {
    background: var(--page-about-gold);
    color: var(--page-about-bg); /* Dark background text on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-link {
    background: transparent;
    color: var(--page-about-gold);
    border: 1px solid var(--page-about-gold);
    padding: 8px 15px;
    font-size: 0.9em;
}

.page-about__btn-link:hover {
    background: var(--page-about-gold);
    color: var(--page-about-bg);
}

.page-about__section {
    padding: 80px 20px;
    background-color: var(--page-about-bg); /* Default section background */
    border-bottom: 1px solid var(--page-about-divider);
}

.page-about__section:last-of-type {
    border-bottom: none;
}

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

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-about__container--reverse-mobile {
    flex-direction: row; /* Default desktop layout */
}

.page-about__content-block {
    flex: 1;
    min-width: 300px;
}

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

.page-about__image {
    width: 100%;
    height: auto;
    max-width: 800px; /* Ensure image doesn't overflow */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    /* No filter properties to change color */
}

.page-about__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    color: var(--page-about-gold);
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

.page-about__introduction .page-about__section-title,
.page-about__commitment .page-about__section-title,
.page-about__future .page-about__section-title {
    color: var(--page-about-gold); /* Gold for titles on darker background */
}

.page-about__sub-title {
    font-size: clamp(1.3em, 2.5vw, 1.8em);
    color: var(--page-about-text-main); /* Main text color for subtitles */
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__text-block {
    font-size: 1em;
    margin-bottom: 20px;
    color: var(--page-about-text-secondary); /* Secondary text color for paragraphs */
}

.page-about__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-about__list-item {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--page-about-text-secondary); /* Secondary text color for list items */
}

.page-about__list-item::before {
    content: '•'; /* Bullet point */
    color: var(--page-about-gold); /* Gold bullet */
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 20px;
    background-color: var(--page-about-deep-green); /* Darker background for FAQ */
    color: var(--page-about-text-main); /* Light text */
}

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

.page-about__faq-item {
    background-color: var(--page-about-card-bg); /* Card background for FAQ items */
    border: 1px solid var(--page-about-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-about-text-main); /* Main text color for FAQ */
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1em;
    color: var(--page-about-text-main); /* Main text color for question */
    list-style: none; /* Remove default marker for summary */
}

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

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

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-about-gold); /* Gold color for toggle icon */
}

.page-about__faq-answer {
    padding: 0 20px 20px;
    font-size: 0.95em;
    color: var(--page-about-text-secondary); /* Secondary text color for answer */
}

.page-about__faq-answer p {
    margin-bottom: 15px;
    color: var(--page-about-text-secondary);
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-about__section {
        padding: 60px 15px;
    }
    .page-about__container {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* General mobile padding */
    .page-about__section,
    .page-about__card,
    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero section adjustments */
    .page-about__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset, this is decorative */
    }

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

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

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

    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 15px !important; /* Adjust padding for full width */
        white-space: normal !important;
        word-wrap: break-word !important;
        text-align: center;
    }

    /* Image and content block stacking for mobile */
    .page-about__container {
        flex-direction: column;
    }
    .page-about__container--reverse-mobile {
        flex-direction: column-reverse; /* Reverse order for image/text on mobile */
    }

    .page-about__content-block,
    .page-about__image-block {
        width: 100%;
        min-width: unset;
    }

    /* Image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure image takes full width */
        height: auto !important;
        display: block !important;
    }

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

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

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

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

/* Ensure no image filters are used */
.page-about img {
    filter: none !important;
}

/* Content area images CSS dimensions lower bound */
/* This selects any img within .page-about and ensures its display size is not less than 200px */
.page-about img:not(.page-about__hero-image) { /* Exclude hero image from this specific rule if its width/height is fixed larger */
    min-width: 200px;
    min-height: 200px;
}
/* Overriding the above for full responsiveness on mobile where images can be smaller than 200px but still max-width: 100% */
@media (max-width: 768px) {
    .page-about img:not(.page-about__hero-image) {
        min-width: unset; /* Allow images to shrink below 200px on mobile */
        min-height: unset;
    }
}