/* style/about.css */

/* --- Base Styles --- */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for dark body background */
    background-color: var(--background); /* Ensure consistent background */
}

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

.page-about__section {
    padding: 60px 0;
    background-color: var(--background);
    color: var(--text-main);
}

.page-about__dark-section {
    background-color: var(--card-bg); /* Use Card BG for dark sections */
    color: var(--text-main);
}

.page-about__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--gold); /* Use Gold for section titles for emphasis */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-secondary); /* Use secondary text color for paragraphs */
    text-align: justify;
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, then larger bottom */
    background-color: var(--background);
    overflow: hidden; /* Ensure no overflow from image */
}

.page-about__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
}

.page-about__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1; /* Ensure content is above any potential background elements */
}

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

.page-about__intro-text {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container takes full width */
    box-sizing: border-box;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to wrap */
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button color */
    color: var(--text-main); /* Text Main color for buttons */
    border: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--gold); /* Gold color for secondary button text */
    border: 2px solid var(--gold);
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-about__btn-secondary:hover {
    background: var(--gold);
    color: var(--background); /* Text Main color on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

/* --- Content Images --- */
.page-about__content-image {
    width: 100%;
    max-width: 800px; /* Limit content images width */
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

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

.page-about__faq-item {
    background-color: var(--card-bg); /* Use Card BG for FAQ items */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px 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;
    color: var(--text-main); /* Text Main for question */
    cursor: pointer;
    background-color: var(--deep-green); /* Deep Green for question background */
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: var(--border-color); /* Border color on hover */
}

.page-about__faq-item[open] .page-about__faq-question {
    background-color: var(--border-color); /* Border color when open */
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

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

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

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

/* --- CTA Section (Flex for content and buttons) --- */
.page-about__container--flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
}

@media (max-width: 768px) {
    .page-about__container {
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    .page-about__hero-content {
        padding: 0 15px;
    }

    .page-about__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-about__intro-text {
        font-size: 1em;
    }

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

    .page-about__text-block {
        font-size: 0.95em;
    }

    /* Mobile image adaptation */
    .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__faq-item,
    .page-about__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile button adaptation */
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .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-left: 15px;
        padding-right: 15px;
    }

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

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

@media (max-width: 480px) {
    .page-about__section-title {
        font-size: 1.5em;
    }
    .page-about__main-title {
        font-size: clamp(1.5em, 8vw, 2em);
    }
}

/* Color definitions from custom palette */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Ensure contrast for text on various backgrounds using defined colors */
.page-about {
    color: var(--text-main); /* Default for body on dark background */
}

.page-about__card { /* Generic card, if any, will use this */
  background: var(--card-bg);
  color: var(--text-main);
}

/* Explicitly set for sections/elements based on their background */
.page-about__section {
  background-color: var(--background);
  color: var(--text-main);
}

.page-about__dark-section {
  background-color: var(--card-bg); /* Darker background */
  color: var(--text-main); /* Lighter text */
}

/* Ensure links and buttons have sufficient contrast */
.page-about a {
    color: var(--gold); /* Links in content */
}
.page-about a:hover {
    color: var(--glow);
}

/* Buttons already explicitly defined with colors */
/* .page-about__btn-primary { background: var(--button-gradient); color: var(--text-main); } */
/* .page-about__btn-secondary { background: transparent; color: var(--gold); border-color: var(--gold); } */
/* On hover for secondary button, background becomes gold, text becomes background color */
.page-about__btn-secondary:hover {
    background: var(--gold);
    color: var(--background);
}