/* style/about.css */

/* Custom colors from prompt */
:root {
    --page-about-primary-color: #11A84E; /* Main color */
    --page-about-secondary-color: #22C768; /* Auxiliary color */
    --page-about-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-about-card-bg: #11271B;
    --page-about-background: #08160F; /* Body background from shared.css will be this */
    --page-about-text-main: #F2FFF6;
    --page-about-text-secondary: #A7D9B8;
    --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;
}

/* Base styles for the page-about scope */
.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); /* Ensure consistent background */
}

/* Sections */
.page-about__hero-section,
.page-about__mission-vision-section,
.page-about__history-section,
.page-about__why-choose-section,
.page-about__cta-section,
.page-about__faq-section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure content doesn't overflow horizontally */
}

/* Dark background sections */
.page-about__dark-bg {
    background-color: var(--page-about-background);
    color: var(--page-about-text-main);
}

/* Light background sections */
.page-about__light-bg {
    background-color: #f8f9fa; /* Using a light color for contrast */
    color: #333333; /* Dark text for light background */
}

/* Container for content width */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Added for general container padding */
    box-sizing: border-box; /* Ensure padding is included in width */
}

/* Hero Section */
.page-about__hero-section {
    padding-top: 10px; /* Small decorative top padding, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Minimum height for hero */
}

.page-about__hero-image {
    width: 100%;
    max-width: 1920px;
    height: auto;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 10px;
}

.page-about__hero-content {
    max-width: 900px;
    margin-top: 20px;
}

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

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

/* CTA Buttons */
.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 500px; /* Max width for button group */
    margin: 0 auto;
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
    background: var(--page-about-button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-about__btn-secondary {
    background-color: transparent;
    color: var(--page-about-gold-color);
    border: 2px solid var(--page-about-gold-color);
}

.page-about__btn-secondary:hover {
    background-color: var(--page-about-gold-color);
    color: var(--page-about-background);
    transform: translateY(-3px);
}

.page-about__btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

/* Section Titles and Descriptions */
.page-about__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--page-about-gold-color);
}

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

/* Mission & Vision Section */
.page-about__mission-vision-section .page-about__section-title {
    color: var(--page-about-primary-color); /* Use primary color for light section title */
}
.page-about__mission-vision-section .page-about__section-description {
    color: #555555;
}

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

.page-about__card {
    background-color: var(--page-about-card-bg); /* Card BG color */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    color: var(--page-about-text-main);
    border: 1px solid var(--page-about-border-color);
    box-sizing: border-box;
}

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

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

/* History Section */
.page-about__history-section .page-about__section-title {
    color: var(--page-about-gold-color);
}

.page-about__content-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

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

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

.page-about__image-right {
    flex: 1;
    max-width: 50%; /* Adjust as needed */
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* Why Choose Section */
.page-about__why-choose-section .page-about__section-title {
    color: var(--page-about-primary-color);
}
.page-about__why-choose-section .page-about__section-description {
    color: #555555;
}

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

.page-about__feature-card {
    padding: 30px;
    text-align: center;
    background-color: #ffffff; /* Light background for feature cards */
    color: #333333; /* Dark text for light background */
    border: 1px solid #e0e0e0;
}

.page-about__feature-card .page-about__feature-icon {
    width: 100%; /* Ensure image fills card width */
    max-width: 400px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-about__feature-card .page-about__feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--page-about-primary-color);
}

.page-about__feature-card .page-about__feature-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
}

/* CTA Section */
.page-about__cta-section {
    background-color: var(--page-about-deep-green); /* Deep green background for CTA */
    color: var(--page-about-text-main);
}

.page-about__cta-section .page-about__section-title {
    color: var(--page-about-gold-color);
}

.page-about__cta-section .page-about__section-description {
    color: var(--page-about-text-secondary);
}

/* FAQ Section */
.page-about__faq-section {
    background-color: #f8f9fa; /* Light background */
    color: #333333; /* Dark text */
    text-align: left;
}

.page-about__faq-section .page-about__section-title {
    color: var(--page-about-primary-color);
    text-align: center;
    margin-bottom: 40px;
}

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

.page-about__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-about__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--page-about-deep-green); /* Use deep green for FAQ questions */
    list-style: none; /* Hide default marker */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

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

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

.page-about__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 15px;
    color: var(--page-about-primary-color);
}

.page-about__faq-item[open] .page-about__faq-toggle {
    content: "−";
}

.page-about__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__hero-section {
        padding: 40px 20px;
        padding-top: 10px;
    }
    .page-about__hero-image {
        margin-bottom: 20px;
    }
    .page-about__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-about__hero-description {
        font-size: 1rem;
    }
    .page-about__content-flex {
        flex-direction: column;
    }
    .page-about__image-right {
        max-width: 100%;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section,
    .page-about__mission-vision-section,
    .page-about__history-section,
    .page-about__why-choose-section,
    .page-about__cta-section,
    .page-about__faq-section {
        padding: 40px 15px;
        text-align: center;
    }

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

    .page-about__section-title {
        font-size: 2rem;
    }
    .page-about__section-description {
        font-size: 0.95rem;
    }

    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 350px; /* Constrain button group width */
        margin: 0 auto;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important; /* Full width buttons */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile container responsiveness */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-section,
    .page-about__mission-vision-section,
    .page-about__history-section,
    .page-about__why-choose-section,
    .page-about__cta-section,
    .page-about__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__features-grid,
    .page-about__cards-grid {
        grid-template-columns: 1fr;
    }
    .page-about__feature-card {
        padding: 20px;
    }
    .page-about__faq-item summary {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-about__faq-answer {
        padding: 0 20px 15px;
    }
}

/* Ensure no filter is used on images */
.page-about img {
    filter: none !important;
}

/* Contrast Fixes - if needed */
.page-about__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-about__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}