/* style/about.css */

/* Custom Colors */
:root {
    --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;
}

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

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

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

.page-about__text-center {
    text-align: center;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-about-deep-green);
    overflow: hidden;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 40px; /* Space between image and text */
    text-align: center;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    max-width: 1200px; /* Max width for the image */
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

.page-about__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--page-about-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
    font-size: 1.1rem;
    color: var(--page-about-text-secondary);
    margin-bottom: 30px;
}

/* General Titles & Text */
.page-about__section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--page-about-gold);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-about__section-title--light {
    color: var(--page-about-text-main);
}

.page-about__sub-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--page-about-gold);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-about__section-description {
    font-size: 1.1rem;
    color: var(--page-about-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.page-about__section-description--light {
    color: var(--page-about-text-main);
}

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

.page-about a {
    color: var(--page-about-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about a:hover {
    color: var(--page-about-glow);
    text-decoration: underline;
}

/* Buttons */
.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Ensure padding is included in width */
}

.page-about__btn-primary {
    background: var(--page-about-button-gradient);
    color: var(--page-about-text-main);
    border: none;
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    background-color: var(--page-about-background);
}

.page-about__mission-vision-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-about__mission-vision-content .page-about__text-block {
    flex: 1;
}

.page-about__mission-vision-content .page-about__image-block {
    flex: 1;
    text-align: center;
}

.page-about__content-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure it doesn't leave extra space below */
    margin: 0 auto;
}

/* Why Choose Section */
.page-about__dark-section {
    background-color: var(--page-about-deep-green);
    color: var(--page-about-text-main);
}

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

.page-about__feature-card {
    background-color: var(--page-about-card-bg);
    border: 1px solid var(--page-about-divider);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px 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 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__card-icon {
    width: 100%; /* Ensure card image is responsive */
    height: auto;
    max-width: 400px; /* Max size for card image */
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__card-description {
    font-size: 1rem;
    color: var(--page-about-text-secondary);
}

/* Responsibility Section */
.page-about__responsibility-section {
    background-color: var(--page-about-background);
}

.page-about__responsibility-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

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

.page-about__responsibility-content .page-about__image-block {
    flex: 1;
    text-align: center;
}

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

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--page-about-text-main);
    cursor: pointer;
    background-color: var(--page-about-card-bg);
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: rgba(var(--page-about-border), 0.2); /* Using rgba for hover effect */
}

.page-about__faq-qtext {
    flex-grow: 1;
    color: var(--page-about-gold);
}

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

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or just change to '-' */
}
.page-about__faq-item[open] .page-about__faq-toggle {
    content: "−"; /* Visually change for details tag */
    transform: rotate(0deg);
}

.page-about__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--page-about-text-secondary);
    line-height: 1.7;
    transition: max-height 0.3s ease-out; /* For JS fallback */
    max-height: 0;
    overflow: hidden;
}

.page-about__faq-item[open] .page-about__faq-answer {
    max-height: 500px; /* Arbitrary large value for smooth transition */
}

/* For details tag, hide default marker */
.page-about__faq-item summary {
    list-style: none;
}
.page-about__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-about__faq-item summary::marker { /* Standard way for marker */
    display: none;
}


/* Conclusion Section */
.page-about__conclusion-section {
    background-color: var(--page-about-background);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__mission-vision-content,
    .page-about__responsibility-content {
        flex-direction: column;
        text-align: center;
    }

    .page-about__mission-vision-content .page-about__image-block,
    .page-about__responsibility-content .page-about__image-block {
        margin-top: 30px;
    }
}

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

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

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

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

    .page-about__hero-description,
    .page-about__section-description,
    .page-about p,
    .page-about__card-description,
    .page-about__faq-answer {
        font-size: 1rem;
    }

    .page-about__cta-button {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-about__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 30px;
    }

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

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

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

    .page-about__card-icon {
        max-width: 300px;
    }

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

    .page-about__faq-qtext {
        font-size: 1rem;
    }

    .page-about__faq-toggle {
        font-size: 1.2rem;
    }

    /* Mobile responsive image adaptation */
    .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__mission-vision-section,
    .page-about__why-choose-section,
    .page-about__responsibility-section,
    .page-about__faq-section,
    .page-about__conclusion-section,
    .page-about__hero-image-wrapper,
    .page-about__mission-vision-content .page-about__image-block,
    .page-about__responsibility-content .page-about__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }

    /* Button specific mobile adaptation */
    .page-about__cta-button,
    .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;
        margin-left: 0 !important; /* Adjust margins for full width */
        margin-right: 0 !important;
    }
    .page-about__cta-buttons, /* If there's a button group */
    .page-about__button-group,
    .page-about__btn-container {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px; /* Spacing between stacked buttons */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}