/* style/about.css */

/* --- Base Styles --- */
.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page, which is light */
    background-color: var(--bg-primary); /* Use the very dark green background */
    line-height: 1.6;
}

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

/* --- Section Styling --- */
.page-about__section {
    padding: 60px 0;
    background-color: var(--bg-primary);
    position: relative;
}

.page-about__section:nth-of-type(even) {
    background-color: var(--bg-card); /* Alternate background for better visual separation */
}

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

.page-about__section-title {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Subtle glow effect */
}

.page-about__sub-title {
    font-size: clamp(22px, 3vw, 30px);
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-about__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.page-about__content-grid--reverse {
    flex-direction: row-reverse;
}

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

.page-about__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

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

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px; /* Space between image and content */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-about__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-about__main-title {
    font-size: clamp(32px, 5vw, 56px);
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 0 15px rgba(87, 227, 141, 0.7);
}

.page-about__description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- CTA Buttons --- */
.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    margin-top: 40px;
}

.page-about__cta-buttons--center {
    margin-top: 50px;
    justify-content: center;
}

.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: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 180px; /* Ensure buttons are not too small */
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-about__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff; /* White text on green gradient */
    border: 2px solid transparent;
}

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

.page-about__btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-about__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--bg-primary); /* Dark text on light green hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(34, 199, 104, 0.4);
}

/* --- FAQ Section --- */
.page-about__faq-section {
    background-color: var(--bg-card); /* Darker background for FAQ */
}

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

.page-about__faq-item {
    margin-bottom: 15px;
    background-color: var(--deep-green); /* Slightly lighter dark green */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green);
    transition: background-color 0.3s ease;
    list-style: none; /* For <details> summary */
}

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

.page-about__faq-question:hover {
    background-color: rgba(46, 122, 78, 0.7); /* Lighter border color for hover */
}

.page-about__faq-toggle {
    font-size: 24px;
    font-weight: 700;
    color: var(--glow-color);
    margin-left: 15px;
}

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

/* Ensure paragraph inside answer has correct color */
.page-about__faq-answer p {
    color: var(--text-secondary);
}


/* --- Conclusion Section --- */
.page-about__conclusion {
    text-align: center;
    padding-bottom: 80px;
}

.page-about__conclusion p {
    font-size: 18px;
    max-width: 900px;
    margin: 0 auto 30px auto;
}


/* --- Responsive Styles (Mobile First) --- */
@media (max-width: 1024px) {
    .page-about__section {
        padding: 40px 0;
    }

    .page-about__section-title {
        font-size: clamp(26px, 3.5vw, 38px);
        margin-bottom: 30px;
    }

    .page-about__sub-title {
        font-size: clamp(20px, 2.5vw, 26px);
        margin-top: 25px;
        margin-bottom: 10px;
    }

    .page-about__content-grid {
        flex-direction: column;
        gap: 30px;
    }

    .page-about__content-grid--reverse {
        flex-direction: column; /* Also column for reverse on mobile */
    }

    .page-about__hero-section {
        padding: 10px 0 40px 0;
    }

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

    .page-about__main-title {
        font-size: clamp(28px, 4.5vw, 48px);
        margin-bottom: 15px;
    }

    .page-about__description {
        font-size: clamp(15px, 1.8vw, 18px);
        margin-bottom: 25px;
    }

    .page-about__cta-buttons {
        gap: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
        min-width: unset; /* Allow buttons to shrink */
    }
}

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

    .page-about__section-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .page-about__sub-title {
        font-size: 20px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .page-about__hero-section {
        padding: 10px 0 30px 0;
    }

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

    .page-about__main-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

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

    .page-about__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        max-width: 300px !important; /* Max width for buttons to not be too wide */
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile container responsiveness */
    .page-about__section,
    .page-about__container,
    .page-about__hero-section,
    .page-about__hero-image-wrapper,
    .page-about__hero-content,
    .page-about__content-grid,
    .page-about__text-block,
    .page-about__image-block,
    .page-about__faq-list,
    .page-about__faq-item,
    .page-about__faq-question,
    .page-about__faq-answer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    /* Adjust padding for specific sections if needed */
    .page-about__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
        padding-left: 0 !important; /* Reset padding from general container rule */
        padding-right: 0 !important; /* Reset padding from general container rule */
    }
    .page-about__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-about__cta-buttons {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Ensure all text elements are readable */
    .page-about p, .page-about li, .page-about__faq-answer p {
        font-size: 15px;
    }
}