/* style/about.css */

/* Base styles for the About Us page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color, #F2FFF6); /* Default to Text Main, fallback if not set by shared */
    background-color: var(--background-color, #08160F); /* Default to Background, fallback */
}

/* Section common styles */
.page-about__section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--background-color, #08160F);
}

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

.page-about__section-title {
    font-size: clamp(28px, 4vw, 42px); /* Responsive font size for H2 */
    font-weight: 700;
    color: var(--text-main-color, #F2FFF6);
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-about__sub-title {
    font-size: clamp(22px, 3vw, 30px); /* Responsive font size for H3 */
    font-weight: 600;
    color: var(--text-main-color, #F2FFF6);
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-about p {
    margin-bottom: 15px;
    color: var(--text-secondary-color, #A7D9B8); /* Text Secondary */
    font-size: 16px;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, no var(--header-offset) */
    overflow: hidden;
    background-color: var(--deep-green-color, #0A4B2C); /* Deep Green background for hero area */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px; /* Space between image and content */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
    max-height: 600px; /* Limit hero image height for better composition */
}

.page-about__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-about__main-title {
    font-size: clamp(36px, 5vw, 56px); /* H1 font size with clamp */
    font-weight: 800;
    color: var(--text-main-color, #F2FFF6);
    margin-bottom: 20px;
    line-height: 1.1;
}

.page-about__description {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--text-secondary-color, #A7D9B8);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button common styles */
.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure text breaks */
    box-sizing: border-box;
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
    background: transparent;
    color: var(--main-color, #11A84E);
    border: 2px solid var(--main-color, #11A84E);
}

.page-about__btn-secondary:hover {
    background: var(--main-color, #11A84E);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Content Grid for sections */
.page-about__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-about__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-about__text-block {
    flex: 1;
    min-width: 300px;
}

.page-about__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

.page-about__image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: block;
    object-fit: cover;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

/* Specific section adjustments */
.page-about__section--mission .page-about__text-block,
.page-about__section--advantages .page-about__text-block,
.page-about__section--social-responsibility .page-about__text-block,
.page-about__section--team .page-about__text-block,
.page-about__section--future .page-about__text-block {
    padding: 20px;
    background-color: var(--card-bg-color, #11271B); /* Card BG color */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color, #2E7A4E); /* Border color */
}

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

/* FAQ Section */
.page-about__section--faq {
    background-color: var(--deep-green-color, #0A4B2C); /* Deep Green for FAQ background */
}

.page-about__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-about__faq-item {
    background-color: var(--card-bg-color, #11271B); /* Card BG */
    border: 1px solid var(--border-color, #2E7A4E); /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main-color, #F2FFF6);
    cursor: pointer;
    background-color: var(--card-bg-color, #11271B);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-about__faq-question:hover {
    background-color: rgba(var(--main-color-rgb, 17, 168, 78), 0.1); /* Slight hover effect */
}

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

.page-about__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow-color, #57E38D); /* Glow color for toggle */
}

.page-about__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 16px;
    color: var(--text-secondary-color, #A7D9B8);
    max-height: 0; /* Hidden by default for JS fallback */
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* For details tag native open state */
.page-about__faq-item[open] > .page-about__faq-answer {
    max-height: 500px; /* Adjust as needed for content length */
    padding-top: 10px;
}

/* For JS fallback (if using div structure) */
.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* Sufficiently large for content */
    padding-top: 10px;
}


/* Responsive styles */
@media (max-width: 992px) {
    .page-about__content-grid {
        flex-direction: column;
        text-align: center;
    }

    .page-about__content-grid--reverse {
        flex-direction: column; /* Also column for reverse */
    }

    .page-about__text-block,
    .page-about__image-block {
        width: 100%;
        min-width: unset;
    }
}

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

    .page-about__hero-section {
        padding-top: 10px !important; /* Fixed header spacing - small top padding */
        padding-bottom: 40px;
    }

    .page-about__main-title {
        font-size: 32px; /* Adjust H1 for mobile */
    }

    .page-about__description {
        font-size: 16px; /* Adjust description for mobile */
    }

    .page-about__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 10px; /* Space between buttons if stacked */
    }
    
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px;
    }

    .page-about__container,
    .page-about__text-block,
    .page-about__image-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile image responsive */
    .page-about img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset;
        min-height: unset;
    }

    /* Mobile video responsive (if any, though not in this HTML) */
    .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;
    }
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-about__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 15px;
    }
}