/* style/about.css */

/* Base styles for the page content, ensuring contrast with the body background */
.page-about {
    color: var(--text-main, #F2FFF6); /* Text Main */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1; /* Place behind content */
    max-height: 500px; /* Limit height for hero image */
}

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    color: var(--text-main, #F2FFF6);
    box-sizing: border-box;
    margin-top: 50px; /* Adjust as needed to not overlap with fixed header */
}

.page-about__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--gold, #F2C14E); /* Gold */
    margin-bottom: 20px;
    line-height: 1.2;
}

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

/* CTA Button */
.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: var(--text-main, #F2FFF6);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-about__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
}

.page-about__cta-button--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

.page-about__cta-button--secondary {
    background: transparent;
    border: 2px solid var(--deep-green, #0A4B2C); /* Deep Green */
    color: var(--text-main, #F2FFF6);
    margin-left: 15px;
}

.page-about__cta-button--secondary:hover {
    background: var(--deep-green, #0A4B2C);
    color: var(--text-main, #F2FFF6);
}


/* General Section Styling */
.page-about__section {
    padding: 60px 20px;
    background: var(--background, #08160F); /* Background */
    box-sizing: border-box;
}

.page-about__section--mission {
    background: var(--card-bg, #11271B); /* Card BG */
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add some horizontal padding for content inside container */
    box-sizing: border-box;
}

.page-about__heading {
    font-size: 2.5em;
    color: var(--text-main, #F2FFF6);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
}

.page-about__heading::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--glow, #57E38D); /* Glow */
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-about__sub-heading {
    font-size: 1.8em;
    color: var(--gold, #F2C14E); /* Gold */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__text-block p {
    margin-bottom: 15px;
    color: var(--text-secondary, #A7D9B8); /* Text Secondary */
}

/* Content Grid for text and image */
.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;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

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

.page-about__feature-card {
    background: var(--card-bg, #11271B); /* Card BG */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border, #2E7A4E); /* Border */
    color: var(--text-main, #F2FFF6);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-about__card-title {
    font-size: 1.5em;
    color: var(--gold, #F2C14E); /* Gold */
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.page-about__card-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-about__feature-card p {
    font-size: 0.95em;
    color: var(--text-secondary, #A7D9B8); /* Text Secondary */
    margin-bottom: 25px;
    flex-grow: 1; /* Make paragraphs take available space */
}

.page-about__btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--deep-green, #0A4B2C); /* Deep Green */
    color: var(--text-main, #F2FFF6);
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.95em;
    transition: background 0.3s ease, color 0.3s ease;
    margin-top: 10px;
    box-sizing: border-box; /* Ensure padding doesn't cause overflow */
    max-width: 100%; /* Ensure button doesn't overflow in mobile */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-about__btn-secondary:hover {
    background: var(--deep-green, #0A4B2C);
    color: var(--text-main, #F2FFF6);
}

.page-about__cta-bottom {
    text-align: center;
    margin-top: 60px;
}

/* FAQ Section */
.page-about__faq-section {
    background: var(--background, #08160F); /* Background */
    padding-bottom: 80px;
}

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

.page-about__faq-item {
    background: var(--card-bg, #11271B); /* Card BG */
    border: 1px solid var(--divider, #1E3A2A); /* Divider */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main, #F2FFF6);
}

.page-about__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--gold, #F2C14E); /* Gold */
    outline: none;
    list-style: none; /* Remove default marker */
}

.page-about__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--glow, #57E38D); /* Glow */
    margin-left: 20px;
    transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-secondary, #A7D9B8); /* Text Secondary */
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-content {
        padding: 30px;
    }

    .page-about__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }

    .page-about__heading {
        font-size: 2em;
    }

    .page-about__sub-heading {
        font-size: 1.6em;
    }

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

    .page-about__content-grid--reverse {
        flex-direction: column; /* Ensure reverse also stacks vertically */
    }

    .page-about__image-block {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    /* General responsive for content areas */
    .page-about__section,
    .page-about__container,
    .page-about__hero-section,
    .page-about__hero-content,
    .page-about__content-grid,
    .page-about__features-grid,
    .page-about__feature-card,
    .page-about__faq-section,
    .page-about__faq-list,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    .page-about__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Small top padding for mobile hero */
    }

    .page-about__hero-content {
        padding: 20px;
        margin-top: 30px;
    }

    .page-about__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em) !important;
        margin-bottom: 15px;
    }

    .page-about__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-about__cta-button {
        width: 100% !important;
        display: block !important;
        margin-bottom: 15px !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-about__cta-button--secondary {
        margin-left: 0 !important;
    }

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

    .page-about__sub-heading {
        font-size: 1.4em;
    }

    .page-about__image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__card-image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__btn-secondary {
        width: 100% !important;
        display: block !important;
        margin-bottom: 10px !important;
        padding: 10px 15px !important;
        font-size: 0.9em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__feature-card {
        padding: 20px;
    }

    .page-about__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }

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