/* style/about.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

.page-about {
    font-family: Arial, sans-serif;
    color: var(--color-text-main); /* Default text color for dark body background */
    background-color: var(--color-background); /* Default background for dark body background */
}

.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;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    background-color: var(--color-background);
}

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

.page-about__hero-content {
    position: relative;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, var(--color-background) 100%);
    width: 100%;
    box-sizing: border-box;
    margin-top: -1px; /* Adjust to prevent gap with image */
}

.page-about__main-title {
    color: var(--color-gold);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-about__description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-secondary);
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: var(--color-button-gradient-start);
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    border: 2px solid var(--color-glow);
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.4);
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, var(--color-button-gradient-end) 0%, var(--color-button-gradient-start) 100%);
    box-shadow: 0 0 20px rgba(87, 227, 141, 0.8);
    transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
    background-color: var(--color-glow);
    color: var(--color-background);
    transform: translateY(-2px);
}

/* Sections */
.page-about__introduction-section,
.page-about__why-choose-us,
.page-about__commitments-section,
.page-about__partners-achievements,
.page-about__future-vision,
.page-about__faq-section,
.page-about__cta-section {
    padding: 80px 0;
}

.page-about__section-title {
    font-size: 2.5rem;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-about__sub-title {
    font-size: 1.75rem;
    color: var(--color-text-main);
    margin-bottom: 20px;
    font-weight: 600;
}

.page-about__text-block p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
}

.page-about__text-block p:last-child {
    margin-bottom: 0;
}

/* Introduction Section */
.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

.page-about__image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    background-color: var(--color-card-bg);
}

.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-about__feature-card {
    background-color: var(--color-deep-green);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.page-about__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    min-width: 200px;
    min-height: 200px;
}

.page-about__card-title {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-about__feature-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* Commitments Section */
.page-about__commitments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.page-about__commitment-item {
    background-color: var(--color-deep-green);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-about__commitment-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.page-about__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

/* Partners & Achievements Section */
.page-about__partners-achievements {
    background-color: var(--color-card-bg);
}

/* FAQ Section */
.page-about__faq-section {
    background-color: var(--color-deep-green);
}

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

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

.page-about__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-main);
    list-style: none;
    position: relative;
}

.page-about__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-about__faq-question {
    width: 100%;
}

.page-about__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--color-glow);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg);
}

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

/* CTA Section */
.page-about__cta-section {
    text-align: center;
    background-color: var(--color-background);
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Media Queries for Responsiveness */
@media (min-width: 769px) {
    .page-about__introduction-section .page-about__content-grid {
        grid-template-columns: 1fr 1fr; /* Image on right */
    }
    .page-about__partners-achievements .page-about__content-grid {
        grid-template-columns: 1fr 1fr; /* Image on left */
    }
    .page-about__hero-content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, var(--color-background) 100%);
    }
    .page-about__hero-image {
        height: 600px; /* Fixed height for desktop hero image */
    }
}

@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2rem;
    }
    .page-about__sub-title {
        font-size: 1.5rem;
    }
    .page-about__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-about__commitments-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-about__hero-content {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    /* General mobile styles */
    .page-about__hero-section {
        padding-top: 10px !important; /* body handles header-offset, this is decorative */
    }

    .page-about__introduction-section,
    .page-about__why-choose-us,
    .page-about__commitments-section,
    .page-about__partners-achievements,
    .page-about__future-vision,
    .page-about__faq-section,
    .page-about__cta-section {
        padding: 40px 0;
    }

    .page-about__section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    .page-about__main-title {
        font-size: 2rem !important;
    }

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

    .page-about__sub-title {
        font-size: 1.3rem;
    }

    /* Image 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-section,
    .page-about__introduction-section,
    .page-about__why-choose-us,
    .page-about__commitments-section,
    .page-about__partners-achievements,
    .page-about__future-vision,
    .page-about__faq-section,
    .page-about__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Button Responsiveness */
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .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;
        margin-left: 0 !important; /* Remove margin for stacked buttons */
        margin-bottom: 15px; /* Add vertical spacing */
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-about__cta-buttons {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .page-about__cta-buttons a:last-child {
        margin-bottom: 0;
    }

    .page-about__hero-content {
        position: relative;
        padding: 40px 15px;
    }
    .page-about__hero-image {
        height: auto;
    }

    .page-about__content-grid {
        grid-template-columns: 1fr;
    }

    .page-about__partners-achievements .page-about__content-grid {
        flex-direction: column-reverse; /* Text first, then image on mobile */
    }
}