/* style/about.css */

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

.page-about {
    background-color: var(--page-about-bg-color);
    color: var(--page-about-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-about__section-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for H1/H2 as per instruction */
    color: var(--page-about-gold-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
}

.page-about__text-block {
    font-size: 1.1em;
    color: var(--page-about-text-secondary);
    margin-bottom: 20px;
    text-align: center; /* Adjust as needed for specific sections */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

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

.page-about__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* H1 clamp, no fixed large value */
    color: var(--page-about-gold-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
}

.page-about__hero-description {
    font-size: 1.2em;
    color: var(--page-about-text-main);
    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; /* Ensure buttons wrap on small screens */
    width: 100%; /* Important for mobile responsiveness */
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 300px; /* Limit individual button width */
    text-align: center;
}

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

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-about__btn-secondary:hover {
    background-color: var(--page-about-glow-color);
    color: var(--page-about-bg-color); /* Dark text on glow background */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn-link {
    background-color: transparent;
    color: var(--page-about-glow-color);
    border: none;
    text-decoration: underline;
    padding: 0;
    font-size: 1em;
}

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

/* Intro Section */
.page-about__intro-section .page-about__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Mission Vision Section */
.page-about__mission-vision-section .page-about__container {
    display: flex;
    gap: 30px;
    padding: 60px 20px;
    background-color: var(--page-about-deep-green); /* Darker green for contrast */
    border-radius: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-about__mission-vision-section .page-about__card {
    background-color: var(--page-about-card-bg);
    padding: 30px;
    border-radius: 10px;
    flex: 1;
    min-width: 300px;
    max-width: 550px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-about__mission-vision-section .page-about__card-title {
    color: var(--page-about-gold-color);
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__mission-vision-section .page-about__card-image {
    width: 100%;
    height: auto;
    max-width: 400px; /* Constrain image size within card */
    border-radius: 8px;
    margin-top: 20px;
    object-fit: cover;
}

/* Values Section */
.page-about__values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__value-item.page-about__card {
    background-color: var(--page-about-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-about__value-title {
    color: var(--page-about-glow-color);
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Offerings Section */
.page-about__offerings-section .page-about__container {
    background-color: var(--page-about-deep-green);
    padding: 60px 20px;
    border-radius: 10px;
    text-align: center;
}

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

.page-about__offering-card.page-about__card {
    background-color: var(--page-about-card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

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

/* Technology Section */
.page-about__technology-section .page-about__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.page-about__tech-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Support Section */
.page-about__support-section .page-about__container {
    background-color: var(--page-about-deep-green);
    padding: 60px 20px;
    border-radius: 10px;
    text-align: center;
}

.page-about__support-cta {
    margin-top: 30px;
}

/* Join Us Section */
.page-about__join-us-section .page-about__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.page-about__community-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-about__faq-section .page-about__container {
    background-color: var(--page-about-deep-green);
    padding: 60px 20px;
    border-radius: 10px;
}

.page-about__faq-list {
    margin-top: 30px;
}

.page-about__faq-item {
    background-color: var(--page-about-card-bg);
    border: 1px solid var(--page-about-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--page-about-text-main);
    background-color: var(--page-about-deep-green);
    border-bottom: 1px solid var(--page-about-divider-color);
}

.page-about__faq-item[open] .page-about__faq-question {
    border-bottom: 1px solid var(--page-about-border-color);
}

.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-glow-color);
}

.page-about__faq-item[open] .page-about__faq-toggle {
    content: "−"; /* Visually change to minus on open */
}

.page-about__faq-answer {
    padding: 20px;
    font-size: 1.1em;
    color: var(--page-about-text-secondary);
    background-color: var(--page-about-card-bg);
}

.page-about__faq-answer p {
    margin-bottom: 10px;
    text-align: left;
    color: var(--page-about-text-secondary); /* Ensure text color is set */
}

/* Details element specific styling */
.page-about__faq-item summary {
    list-style: none; /* Remove default marker */
}
.page-about__faq-item summary::-webkit-details-marker {
    display: none; /* For Webkit browsers */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-about__container {
        padding: 20px 15px;
    }

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

    .page-about__main-title {
        font-size: 2em;
    }

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

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-about__mission-vision-section .page-about__container,
    .page-about__offerings-section .page-about__container,
    .page-about__support-section .page-about__container,
    .page-about__faq-section .page-about__container {
        padding: 40px 15px;
    }

    .page-about__mission-vision-section .page-about__card {
        max-width: 100%;
    }

    .page-about__values-grid,
    .page-about__offerings-grid {
        grid-template-columns: 1fr;
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__hero-image-wrapper,
    .page-about__mission-vision-section .page-about__card,
    .page-about__offering-card,
    .page-about__tech-image,
    .page-about__community-image,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

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

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

/* Ensure images do not use filter */
.page-about img {
    filter: none; /* Explicitly disable any filters */
}