/* style/about.css */

/* Base styles for the About Us page */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default body background */
}

/* Fixed header spacing - applied to the first content section or main container */
/* This ensures content is not hidden behind a fixed header */
.page-about__hero-section {
    padding-top: var(--header-offset, 120px); /* Desktop and mobile controlled by shared --header-offset */
    position: relative;
    overflow: hidden; /* To contain video */
}

/* Hero Section */
.page-about__hero-section {
    background: linear-gradient(135deg, #26A9E0, #1a7bbd); /* Using brand colors */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px; /* Adjust padding as needed, padding-top handled by var */
    position: relative;
    z-index: 1;
}

.page-about__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Place behind content */
}

.page-about__hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover; /* Ensure video covers the area */
    filter: brightness(0.5); /* Darken video to ensure text contrast */
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-about__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-about__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* General button styles */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding/border in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-about__btn-primary:hover {
    background-color: #d86c06;
    border-color: #d86c06;
}

.page-about__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1a7bbd;
    border-color: #1a7bbd;
}

/* Content Sections */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-about__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #26A9E0;
    position: relative;
    padding-bottom: 10px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #26A9E0;
    border-radius: 2px;
}

.page-about__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #333333;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
    background-color: #f8f8f8;
}

.page-about__mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.page-about__mission-vision-item {
    text-align: center;
}

.page-about__mission-vision-item .page-about__image {
    width: 100%;
    height: auto;
    max-width: 600px; /* Example size */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    min-height: 200px; /* Minimum size requirement */
}

.page-about__item-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-about__item-text {
    font-size: 1.05em;
    color: #555555;
    text-align: justify;
}

/* Core Values Section */
.page-about__values-section {
    background-color: #26A9E0; /* Dark background */
    color: #ffffff;
}

.page-about__values-section .page-about__section-title {
    color: #ffffff;
}

.page-about__values-section .page-about__section-title::after {
    background-color: #ffffff;
}

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

.page-about__value-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-about__value-card:hover {
    transform: translateY(-5px);
}

.page-about__card-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-about__card-text {
    color: #f0f0f0;
    font-size: 1em;
    text-align: justify;
}

/* Journey Section */
.page-about__journey-section {
    background-color: #ffffff;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-about__image--centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
    background-color: #26A9E0; /* Dark background */
    color: #ffffff;
}

.page-about__why-choose-us-section .page-about__section-title {
    color: #ffffff;
}

.page-about__why-choose-us-section .page-about__section-title::after {
    background-color: #ffffff;
}

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

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-about__feature-card:hover {
    transform: translateY(-5px);
}

/* Team Section & Responsibility Section */
.page-about__team-section {
    background-color: #f8f8f8;
}

.page-about__responsibility-section {
    background-color: #26A9E0; /* Dark background */
    color: #ffffff;
}
.page-about__responsibility-section .page-about__section-title {
    color: #ffffff;
}
.page-about__responsibility-section .page-about__section-title::after {
    background-color: #ffffff;
}
.page-about__responsibility-section .page-about__paragraph {
    color: #f0f0f0;
}


/* FAQ Section */
.page-about__faq-section {
    background-color: #ffffff;
}

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

.page-about__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f5f5f5;
    cursor: pointer;
    font-weight: bold;
    color: #333333;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #e9e9e9;
}

.page-about__faq-title {
    margin: 0;
    font-size: 1.1em;
    color: #26A9E0;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg); /* Plus to X, or change to minus */
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Initial padding */
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #555555;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px !important; /* Expanded padding */
}

.page-about__faq-answer p {
    margin: 0;
    font-size: 1em;
    text-align: justify;
}

/* CTA Section */
.page-about__cta-section {
    background: linear-gradient(135deg, #26A9E0, #1a7bbd);
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.page-about__cta-section .page-about__section-title {
    color: #ffffff;
    margin-bottom: 20px;
}

.page-about__cta-section .page-about__section-title::after {
    background-color: #ffffff;
}

.page-about__paragraph--cta {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

.page-about__button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-about__btn-primary--large,
.page-about__btn-secondary--large {
    min-width: 200px;
    font-size: 1.1em;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__mission-vision-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .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;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    
    .page-about__cta-buttons {
        display: flex;
        flex-direction: column;
    }

    .page-about__container {
        padding: 30px 15px;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__paragraph {
        font-size: 1em;
    }
    .page-about__mission-vision-item .page-about__image {
        max-width: 100%; /* Ensure images scale */
    }

    /* Mobile 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__mission-vision-section,
    .page-about__values-section,
    .page-about__journey-section,
    .page-about__why-choose-us-section,
    .page-about__team-section,
    .page-about__responsibility-section,
    .page-about__faq-section,
    .page-about__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent content touching edges */
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Mobile video responsiveness */
    .page-about video,
    .page-about__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-about__hero-video-wrapper,
    .page-about__video-container,
    .page-about__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
    }
    
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
}

/* Contrast Fixes (if needed, but design already considers this) */
.page-about__dark-bg {
    color: #ffffff; /* Deep blue background, white text */
}

.page-about__light-bg {
    color: #333333; /* Light background, dark text */
}

/* Ensure content area images are not too small */
/* This rule applies to any img within .page-about, excluding header/footer handled by shared */
.page-about img:not(.shared-header img, .shared-footer img) {
    min-width: 200px;
    min-height: 200px;
}