/* style/about.css */

/* Custom Color Palette Variables */
:root {
    --page-about-primary-color: #11A84E;
    --page-about-secondary-color: #22C768;
    --page-about-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-about-card-bg: #11271B;
    --page-about-background: #08160F;
    --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;
}

/* Base styles for the page content, ensuring contrast with dark body background */
.page-about {
    background-color: var(--page-about-background); /* #08160F */
    color: var(--page-about-text-main); /* #F2FFF6 */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure space above footer */
}

.page-about a {
    color: var(--page-about-secondary-color); /* #22C768 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about a:hover {
    color: var(--page-about-glow); /* #57E38D */
    text-decoration: underline;
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    padding: 10px 0 60px; /* Small top padding, more bottom padding */
    overflow: hidden; /* Ensure no overflow */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure image wrapper is full width */
    overflow: hidden; /* Hide overflow from image */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%;
    /* No filter allowed */
}

.page-about__hero-content {
    max-width: 900px;
    margin-top: 40px; /* Space between image and content */
    padding: 0 20px;
    box-sizing: border-box;
    color: var(--page-about-text-main); /* Light text on dark body */
}

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

.page-about__intro-description {
    font-size: 1.15em;
    color: var(--page-about-text-secondary); /* Secondary light text */
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Primary Button */
.page-about__btn-primary {
    display: inline-block;
    background: var(--page-about-button-gradient); /* Green Gold gradient */
    color: var(--page-about-text-main); /* Light text on button */
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-about-glow);
    text-decoration: none;
}

/* General Section Styles */
.page-about__section {
    padding: 60px 0;
    text-align: center;
}

.page-about__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--page-about-primary-color); /* Primary green for section titles */
    margin-bottom: 40px;
    font-weight: 700;
}

.page-about__sub-title {
    font-size: clamp(1.4em, 2.5vw, 2em);
    color: var(--page-about-gold); /* Gold for sub titles */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__paragraph {
    font-size: 1em;
    color: var(--page-about-text-secondary); /* Secondary light text for paragraphs */
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* Dark Section Styling */
.page-about__dark-section {
    background-color: var(--page-about-card-bg); /* #11271B */
    color: var(--page-about-text-main); /* Light text */
}

.page-about__dark-section .page-about__section-title {
    color: var(--page-about-gold); /* Gold on dark background */
}

.page-about__dark-section .page-about__paragraph {
    color: var(--page-about-text-secondary); /* Secondary light text */
}

.page-about__dark-section a {
    color: var(--page-about-secondary-color); /* Secondary green for links */
}

.page-about__dark-section a:hover {
    color: var(--page-about-glow);
}

/* Grid Layout for content + image */
.page-about__grid-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-about__grid-layout--reversed {
    flex-direction: row-reverse;
}

.page-about__content-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 25px rgba(0, 0, 0, 0.3);
    /* No filter allowed */
}

/* Why Choose Us Section */
.page-about__why-choose-us .page-about__paragraph {
    margin-bottom: 40px;
}

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

.page-about__feature-card {
    background-color: var(--page-about-card-bg); /* #11271B */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--page-about-text-secondary); /* Secondary light text */
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px var(--page-about-primary-color);
}

.page-about__card-title {
    font-size: 1.5em;
    color: var(--page-about-primary-color); /* Primary green for card titles */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__card-text {
    font-size: 0.95em;
    line-height: 1.7;
    flex-grow: 1; /* Make text fill space */
}

/* Technology Section */
.page-about__technology .page-about__paragraph {
    margin-bottom: 40px;
}

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

.page-about__tech-item {
    background-color: var(--page-about-deep-green); /* #0A4B2C */
    padding: 25px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--page-about-text-secondary);
}

.page-about__tech-title {
    font-size: 1.3em;
    color: var(--page-about-gold); /* Gold for tech titles */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-about__tech-description {
    font-size: 0.9em;
    line-height: 1.6;
}

.page-about__image-container {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Community Section */
.page-about__community .page-about__btn-primary {
    margin-top: 30px;
    margin-bottom: 40px;
}

/* FAQ Section */
.page-about__faq {
    padding-bottom: 80px;
}

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

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

.page-about__faq-item[open] {
    background-color: var(--page-about-deep-green); /* Slightly different dark green when open */
    border-color: var(--page-about-primary-color);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--page-about-text-main); /* Main light text */
    cursor: pointer;
    background-color: transparent;
    position: relative;
    list-style: none; /* For details/summary */
}

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


.page-about__faq-qtext {
    flex-grow: 1;
    color: var(--page-about-gold); /* Gold for FAQ questions */
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 20px;
    color: var(--page-about-primary-color); /* Primary green for toggle */
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form cross */
}

.page-about__faq-answer {
    padding: 0 25px 20px;
    font-size: 0.95em;
    color: var(--page-about-text-secondary); /* Secondary light text */
    line-height: 1.7;
    text-align: left;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__grid-layout {
        flex-direction: column;
        gap: 30px;
    }
    .page-about__grid-layout--reversed {
        flex-direction: column; /* Also column for reversed on smaller screens */
    }
    .page-about__grid-layout--reversed .page-about__image-block {
        order: -1; /* Image appears above content on smaller screens for reversed layout */
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding: 10px 0 40px;
    }

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

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

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

    .page-about__section-title {
        font-size: clamp(1.6em, 7vw, 2em);
        margin-bottom: 30px;
    }

    .page-about__sub-title {
        font-size: clamp(1.2em, 5vw, 1.6em);
    }

    .page-about__paragraph {
        font-size: 0.95em;
    }

    .page-about__feature-grid,
    .page-about__tech-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile image and container responsiveness */
    .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__hero-image-wrapper,
    .page-about__image-block,
    .page-about__image-container,
    .page-about__feature-card,
    .page-about__tech-item,
    .page-about__faq-item,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Button responsiveness */
    .page-about__btn-primary,
    .page-about a[class*="button"],
    .page-about a[class*="btn"] {
        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;
        margin-bottom: 10px; /* Add spacing between stacked buttons */
    }

    /* If multiple buttons are in a flex container, stack them vertically */
    .page-about__hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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