/* style/about.css */

/* Base styles for the about page */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #ffffff; /* Explicitly set for clarity, though shared.css might handle body */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    min-height: 500px;
    background-color: #26A9E0; /* Brand color as background */
    color: #ffffff; /* White text for brand color background */
}

.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 image */
}

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

.page-about__main-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-about__lead-paragraph {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ffffff;
}

.page-about__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-about__btn-primary,
.page-about__btn-secondary {
    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;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 100%; /* Ensure buttons don't exceed container */
}

.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: #ffffff;
    color: #26A9E0; /* Brand color for secondary action */
    border: 2px solid #26A9E0;
}

.page-about__btn-secondary:hover {
    background-color: #f0f8ff;
    color: #1e87c0;
    border-color: #1e87c0;
}

/* Video Section */
.page-about__video-section {
    padding: 60px 20px;
    background-color: #f5f5f5; /* Light background for video */
    text-align: center;
}

.page-about__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px; /* Max width for video container */
    margin: 0 auto;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__video-link {
    display: block;
    cursor: pointer;
}

.page-about__video {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Area */
.page-about__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #ffffff; /* White background for main content */
    color: #333333; /* Dark text for readability */
}

.page-about__container {
    max-width: 1000px;
    margin: 0 auto;
}

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

.page-about__section-title:not(:first-of-type) {
    margin-top: 60px;
}

.page-about__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.7;
    text-align: justify;
}

.page-about__image-content {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

/* Bottom CTA Buttons */
.page-about__cta-buttons--bottom {
    margin-top: 50px;
    margin-bottom: 50px;
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
}

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

.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;
}

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

.page-about__faq-question h3 {
    margin: 0;
    color: #26A9E0; /* Brand color for FAQ questions */
    font-size: 1em; /* Adjust to fit within the container */
}

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

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg);
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f9f9f9;
    color: #555555;
    font-size: 1em;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Important for JS to override */
    padding: 20px;
}

.page-about__faq-answer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__main-title {
        font-size: 2.5em;
    }
    .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;
    }

    .page-about__main-title {
        font-size: 2em;
    }

    .page-about__lead-paragraph {
        font-size: 1em;
    }

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

    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-about__video-section,
    .page-about__content-area {
        padding: 30px 15px;
    }

    .page-about__video-wrapper,
    .page-about__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }

    .page-about__video,
    .page-about__image-content,
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: unset; /* Remove min-width on mobile to allow smaller images if needed for layout */
        min-height: unset; /* Remove min-height on mobile */
    }

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

    .page-about__text-block {
        font-size: 1em;
    }

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

    .page-about__faq-question h3 {
        font-size: 1em;
    }

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

    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px;
    }
}