/* style/about.css */

/* Base styles for the About Us 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 might define */
    padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
}

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

.page-about__section {
    padding: 60px 0;
    text-align: center;
}

.page-about__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-about__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
}

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

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

.page-about__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    padding: 0 20px;
}

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

.page-about__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    padding: 40px;
    border-radius: 10px;
}

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

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

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

.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;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box; /* Include padding and border in the element's total width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

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

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

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

.page-about__btn-primary--center,
.page-about__btn-secondary--center {
    margin: 40px auto 0;
    display: block; /* Make it a block element to center with margin auto */
    width: fit-content; /* Adjust width to content */
    max-width: 90%; /* Ensure it doesn't overflow on smaller screens */
}


.page-about__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

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

.page-about__content-grid .page-about__text-block {
    flex: 1;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white background */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.page-about__content-grid .page-about__text-block--light {
    background-color: rgba(0, 0, 0, 0.3); /* Darker background for light text sections */
    color: #ffffff;
}

.page-about__content-grid .page-about__text-block--light p {
    color: #ffffff;
}

.page-about__content-grid .page-about__text-block--light h3 {
    color: #ffffff;
}

.page-about__content-grid .page-about__text-block--light ul {
    color: #ffffff;
}

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

.page-about__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand primary color for sub-titles */
    font-weight: bold;
}

.page-about__text-block--light .page-about__sub-title {
    color: #ffffff; /* White for sub-titles on dark background */
}

.page-about__list {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
    margin-top: 15px;
}

.page-about__list li {
    margin-bottom: 10px;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.page-about__faq-item {
    background-color: #ffffff;
    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 25px;
    cursor: pointer;
    background-color: #f0f8ff; /* Light blue background for question */
    color: #26A9E0; /* Brand primary color for question text */
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

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

.page-about__faq-question h3 {
    margin: 0;
    color: inherit;
    font-size: 1.1em;
}

.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 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: #ffffff;
    color: #333333;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__section-title {
        font-size: 2.2em;
    }
    .page-about__sub-title {
        font-size: 1.5em;
    }
    .page-about__content-grid {
        flex-direction: column;
        gap: 30px;
    }
    .page-about__content-grid--reverse {
        flex-direction: column; /* Keep column direction for consistency on smaller screens */
    }
    .page-about__content-grid .page-about__text-block,
    .page-about__content-grid .page-about__image {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        height: 500px;
        /* padding-top: var(--header-offset, 120px) !important; If hero needs to be pushed down */
    }
    .page-about__hero-content {
        padding: 30px 20px;
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-about__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__btn-primary--center,
    .page-about__btn-secondary--center {
        width: 100% !important; /* Ensure full width on mobile */
        max-width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }

    .page-about__section {
        padding: 40px 0;
    }
    .page-about__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: 1.3em;
    }

    /* Images responsiveness for mobile */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-about__content-grid {
        padding: 0 15px; /* Add padding to content grid itself */
        box-sizing: border-box;
    }

    .page-about__content-grid .page-about__text-block {
        padding: 15px;
    }

    .page-about__faq-section {
        padding: 40px 0;
    }
    .page-about__faq-list {
        margin: 30px auto 0;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-about__faq-answer {
        padding: 0 20px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px 20px;
    }
}