/* style/about.css */

/* Custom Properties from Color Scheme */
:root {
    --page-about-primary: #11A84E;
    --page-about-secondary: #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 about page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-about-text-main); /* Light text for dark background */
    background-color: var(--page-about-background); /* Dark background */
}

/* Section common styles */
.page-about__section-title {
    font-size: 2.5em;
    color: var(--page-about-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__sub-title {
    font-size: 1.8em;
    color: var(--page-about-primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__paragraph {
    font-size: 1.1em;
    margin-bottom: 1em;
    color: var(--page-about-text-main);
}

.page-about__highlight {
    color: var(--page-about-gold);
    font-weight: bold;
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    padding: 60px 0;
    padding-top: 10px; /* Small top padding for visual separation, not header offset */
    overflow: hidden;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    max-height: 700px; /* Limit height for aesthetic */
    object-fit: cover;
    display: block;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-about__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    color: var(--page-about-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* CTA Buttons */
.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    max-width: 100%; /* Ensure buttons adapt to container */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
    text-align: center;
}

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

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

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

.page-about__btn-secondary:hover {
    background-color: var(--page-about-primary);
    color: var(--page-about-text-main);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-about__intro-section,
.page-about__vision-mission-section,
.page-about__core-values-section,
.page-about__products-services-section,
.page-about__team-section,
.page-about__safety-fairness-section,
.page-about__social-responsibility-section,
.page-about__future-section,
.page-about__contact-faq-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--page-about-divider);
}

.page-about__dark-section {
    background-color: var(--page-about-card-bg); /* Darker green background */
}

/* Grid layout for sections with image and text */
.page-about__grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-about__grid--reverse {
    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;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-about__image--full-width {
    width: 100%;
    margin-top: 40px;
}

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

.page-about__value-card {
    background-color: var(--page-about-deep-green); /* Slightly different dark green for cards */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--page-about-border);
}

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

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

/* Products and Services */
.page-about__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-about__feature-item {
    background-color: var(--page-about-deep-green);
    border: 1px solid var(--page-about-border);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--page-about-text-main);
}

.page-about__feature-item strong {
    color: var(--page-about-gold);
}

/* FAQ Section */
.page-about__faq-heading {
    text-align: center;
    margin-top: 80px;
    margin-bottom: 40px;
    color: var(--page-about-gold);
}

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

.page-about__faq-item {
    background-color: var(--page-about-deep-green);
    border: 1px solid var(--page-about-border);
    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-weight: bold;
    font-size: 1.1em;
    color: var(--page-about-text-main);
    background-color: var(--page-about-deep-green);
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: var(--page-about-deep-green);
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--page-about-primary);
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to X */
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .page-about__grid {
        flex-direction: column;
    }
    .page-about__grid--reverse {
        flex-direction: column; /* On smaller screens, reverse direction also becomes column */
    }
    .page-about__hero-section {
        padding: 40px 0;
        padding-top: 10px;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__sub-title {
        font-size: 1.5em;
    }
    .page-about__paragraph,
    .page-about__hero-description {
        font-size: 1em;
    }
}

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

    /* Mobile image responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsiveness (if any) */
    .page-about video,
    .page-about__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    
    .page-about__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* Mobile button responsiveness */
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 auto; /* Center buttons if not full width */
    }
    
    /* Ensure containers also adapt */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__cta-buttons,
    .page-about__values-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-about__hero-section {
        padding: 20px 0;
        padding-top: 10px;
    }

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

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

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

    .page-about__intro-section,
    .page-about__vision-mission-section,
    .page-about__core-values-section,
    .page-about__products-services-section,
    .page-about__team-section,
    .page-about__safety-fairness-section,
    .page-about__social-responsibility-section,
    .page-about__future-section,
    .page-about__contact-faq-section {
        padding: 40px 0;
    }
    
    .page-about__faq-question {
        font-size: 1em;
        padding: 15px;
    }
}