/* style/about.css */

/* Base Styles & Reset (Scoped to .page-about) */
.page-about {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark background */
    background-color: var(--dark-bg-1); /* Inherited from shared.css, assumed dark */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

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

/* Hero Section */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 0;
    min-height: 500px;
    overflow: hidden;
    color: #ffffff;
    background-color: #26A9E0; /* Brand color for hero */
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* Overlay for text readability */
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin-bottom: 40px;
    color: #f0f0f0;
}

/* CTA Buttons */
.page-about__cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure buttons wrap on small 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, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.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: #d16b06;
    border-color: #d16b06;
}

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

.page-about__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

/* Section Titles */
.page-about__section-title {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 60px;
    color: #26A9E0; /* Brand color for titles */
    font-weight: bold;
}

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

/* General Content Area */
.page-about__content-area {
    padding: 60px 20px;
}

.page-about__text-block p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #333333; /* Dark text for light background */
}

/* Mission & Vision Section */
.page-about__mission-vision {
    background-color: #ffffff; /* Light background */
    color: #333333;
}

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

.page-about__mission-image {
    width: 50%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__mission-content .page-about__text-block {
    width: 50%;
}

/* 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-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.15); /* Slightly transparent white for dark bg */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-about__value-card p {
    color: #f0f0f0;
}

/* Why Choose Us Section */
.page-about__why-choose-us {
    background-color: #f8f8f8; /* Very light background */
    color: #333333;
}

.page-about__why-choose-us .page-about__section-title {
    color: #26A9E0;
}

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

.page-about__feature-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-about__feature-icon {
    width: 100%; /* Ensure full width in card */
    max-width: 200px; /* Limit icon size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    display: block; /* Center image */
    margin-left: auto;
    margin-right: auto;
}

.page-about__feature-card .page-about__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-about__feature-card p {
    color: #555555;
}

/* Video Section */
.page-about__video-section {
    background-color: #1a1a1a; /* Darker background for video */
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

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

.page-about__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto 30px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block; /* Ensure it behaves as a block element */
    cursor: pointer; /* Indicate clickable */
}

.page-about__video-description {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
    color: #f0f0f0;
}

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

.page-about__faq-section .page-about__section-title {
    color: #26A9E0;
}

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

.page-about__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-about__faq-item[open] {
    background-color: #f0faff; /* Light blue background when open */
    border-color: #26A9E0;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for summary */
}

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

.page-about__faq-item[open] .page-about__faq-question {
    background-color: #e6f7ff; /* Lighter blue when open */
    color: #26A9E0;
}

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

.page-about__faq-answer {
    padding: 20px;
    padding-top: 0;
    font-size: 1.1em;
    color: #555555;
}

/* Contact CTA Section */
.page-about__contact-cta {
    background-color: #26A9E0; /* Brand color */
    color: #ffffff;
    padding: 80px 20px;
    text-align: center;
}

.page-about__contact-cta .page-about__section-title {
    color: #ffffff;
    margin-bottom: 30px;
}

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

/* --- Responsive Design --- */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }

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

    .page-about__mission-content {
        flex-direction: column;
    }

    .page-about__mission-image,
    .page-about__mission-content .page-about__text-block {
        width: 100%;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Important: Mobile padding-top for header offset */
    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile hero */
    }

    .page-about__hero-title {
        font-size: 2.2em;
    }

    .page-about__hero-description {
        font-size: 1em;
    }

    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 40px;
    }

    .page-about__sub-title {
        font-size: 1.5em;
    }

    .page-about__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    /* Mobile buttons responsive */
    .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-group {
        display: flex;
        flex-direction: column;
    }

    /* Mobile images responsive */
    .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__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; /* Prevent horizontal scroll */
    }

    /* Mobile video responsive */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-about__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-about__faq-answer p {
        font-size: 1em;
    }
}