/* 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: var(--background-color, #FFFFFF); /* Inherit from shared, default to white */
}

/* Color Contrast Enforcement */
.page-about__dark-bg {
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff; /* White text for contrast */
}

.page-about__light-bg {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text for contrast */
}

.page-about__dark-section {
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff; /* White text for contrast */
    padding: 60px 20px;
}

.page-about__light-section {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text */
    padding: 60px 20px;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-about__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.2; /* Subtle background */
}

.page-about__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    max-width: 900px;
}

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

/* General Section Styles */
.page-about__section {
    padding: 60px 20px;
    text-align: center;
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add padding for smaller screens */
    box-sizing: border-box;
}

.page-about__section-title {
    font-size: 2.2em;
    margin-bottom: 40px;
    font-weight: bold;
    color: inherit; /* Inherit from parent section for contrast */
}

.page-about__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    color: inherit; /* Inherit from parent section for contrast */
}

.page-about__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Feature Grid */
.page-about__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.page-about__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff; /* White text for cards on dark background */
}

.page-about__feature-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    object-fit: cover;
}

.page-about__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: inherit;
}

.page-about__card-description {
    font-size: 1em;
    line-height: 1.6;
    color: inherit;
}

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

.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-about__btn-primary {
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-about__btn-primary:hover {
    background-color: #1a7fb4; /* Darker shade */
    border-color: #1a7fb4;
}

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

.page-about__btn-secondary:hover {
    background-color: #e0f2f7; /* Lighter shade */
    color: #1a7fb4;
    border-color: #1a7fb4;
}

/* FAQ Section */
.page-about__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.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);
    color: #333333;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f9f9f9;
    color: #333333;
    list-style: none; /* For details/summary */
}

/* Remove default marker for details/summary */
.page-about__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-about__faq-item summary {
    list-style: none;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
    margin-left: 15px;
}

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

.page-about__faq-answer p {
    margin-bottom: 15px;
    text-align: justify;
}

.page-about__faq-answer .page-about__cta-button {
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.4em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-about__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
    }
    .page-about__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-about__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-about__section {
        padding: 40px 15px;
    }
    .page-about__container {
        padding: 0 10px;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__text-block {
        font-size: 1em;
    }

    .page-about__features-grid {
        grid-template-columns: 1fr; /* Single column layout on mobile */
        gap: 20px;
    }

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

    .page-about__feature-card img {
        min-width: 200px !important; /* Enforce minimum size on mobile */
        min-height: 200px !important; /* Enforce minimum size on mobile */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Mobile image responsiveness (global for .page-about images) */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsiveness (global for .page-about videos) */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Video containers mobile adaptation */
    .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;
    }
    
    /* All content containers for mobile overflow prevention */
    .page-about__section,
    .page-about__card,
    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Mobile button responsiveness */
    .page-about__cta-button,
    .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;
    }
    
    /* Button containers mobile adaptation */
    .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-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
        overflow: hidden !important;
    }

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

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.6em;
    }
}