/* style/about.css */

/* Base styles for the page content, ensuring contrast with dark body background */
.page-about {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Main content background is transparent, letting body background show */
}

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

.page-about__container--center {
    text-align: center;
}

.page-about__section {
    padding: 60px 0;
    position: relative;
}

/* Ensure padding-top for the first section to clear fixed header */
.page-about__hero-section {
    padding-top: var(--header-offset, 120px); /* Desktop and mobile offset */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Minimum height for hero */
    text-align: center;
    color: #ffffff;
}

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

.page-about__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-about__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
}

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

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

.page-about__heading {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for headings */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-about__heading--white {
    color: #ffffff;
}

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

.page-about__text-block p {
    margin-bottom: 15px;
    color: #ffffff; /* Default text color for dark body */
}

.page-about__text-block--white p {
    color: #ffffff;
}

.page-about__description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-about__description--white {
    color: #ffffff;
}

/* Color contrast enforcement for dark sections */
.page-about__dark-section {
    background-color: #1a1a2e; /* Inherit body background or use a very dark shade */
    color: #ffffff;
}

/* Introduction section specific styles */
.page-about__introduction {
    background-color: #1a1a2e; /* Ensure background for text */
}

.page-about__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-about__content-grid--reverse {
    grid-template-columns: 1fr 1fr; /* Default order */
}

.page-about__content-grid--reverse .page-about__image-block {
    order: 2; /* Image on right for reverse */
}

.page-about__content-grid--reverse .page-about__text-block {
    order: 1; /* Text on left for reverse */
}

.page-about__image-block {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* No filter to change image color */
}

.page-about__image-block--center {
    margin-top: 40px;
}


/* Why Choose section */
.page-about__why-choose {
    background-color: #1a1a2e;
}

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

.page-about__feature-item {
    padding: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
    color: #ffffff;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__feature-title {
    font-size: 1.4em;
    color: #26A9E0; /* Brand color for feature titles */
    margin-bottom: 15px;
}

.page-about__feature-item p {
    color: #f0f0f0;
}

/* Commitments section */
.page-about__commitment {
    background-color: #26A9E0; /* Brand primary color background */
    color: #ffffff;
}

.page-about__commitment .page-about__heading {
    color: #ffffff;
}

.page-about__commitment .page-about__sub-heading {
    color: #ffffff;
}

/* Team section */
.page-about__team {
    background-color: #1a1a2e;
}

/* FAQ section */
.page-about__faq-section {
    background-color: #1a1a2e;
}

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

.page-about__faq-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-about__faq-item[open] > .page-about__faq-question {
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid #26A9E0;
}

.page-about__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-about__faq-qtext {
    flex-grow: 1;
}

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

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

.page-about__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #f0f0f0;
}

/* CTA Section */
.page-about__cta-section {
    background-color: #26A9E0; /* Brand primary color background */
    color: #ffffff;
    text-align: center;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

.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: #d16e06;
    border-color: #d16e06;
    transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
    transform: translateY(-2px);
}

/* Image CSS rules (global for .page-about img) */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Content area images CSS dimensions lower bound */
/* Any selector selecting .page-about img must not make display size < 200px */
/* These specific img elements are already constrained by their parent containers or flex/grid items */
/* Example: .page-about__image has max-width: 100% and its parent .page-about__image-block is part of a grid/flex layout */
/* The width/height attributes in HTML ensure aspect ratio and initial size, CSS scales them responsively */

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

    .page-about__heading {
        font-size: 2em;
    }

    .page-about__sub-heading {
        font-size: 1.6em;
    }

    .page-about__content-grid {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
        gap: 30px;
    }
    .page-about__content-grid--reverse .page-about__image-block {
        order: initial; /* Reset order for stacking */
    }
    .page-about__content-grid--reverse .page-about__text-block {
        order: initial; /* Reset order for stacking */
    }
}

@media (max-width: 768px) {
    /* Mobile specific padding for sections and containers */
    .page-about__container {
        padding: 20px 15px;
    }

    .page-about__section {
        padding: 40px 0;
    }

    .page-about__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

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

    .page-about__heading {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-about__sub-heading {
        font-size: 1.4em;
    }

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

    /* All containers with images/content must prevent overflow */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__image-block,
    .page-about__text-block,
    .page-about__features-grid,
    .page-about__faq-list,
    .page-about__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no horizontal scroll */
        padding-left: 15px; /* Add internal padding to containers */
        padding-right: 15px;
    }
    /* Adjust for sections that already have 0 padding-left/right for full width background */
    .page-about__section:not(.page-about__hero-section) .page-about__container {
        padding-left: 0;
        padding-right: 0;
    }


    /* Mobile button responsiveness */
    .page-about__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-about__btn-primary,
    .page-about__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        text-align: center;
    }

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

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