/* style/about.css */

/* --- General Page Styling --- */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body handles the background */
}

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

.page-about__section-title {
    font-size: 2.5rem;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-about__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #f0f0f0; /* Light text for readability on dark background */
}

.page-about__highlight {
    color: #26A9E0;
    font-weight: bold;
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #1a1a1a; /* Slightly lighter dark background for hero */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure image wrapper is full width */
    margin-bottom: 30px; /* Space between image and content */
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-about__hero-image {
    width: 100%;
    max-width: 1200px; /* Max width for the image */
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-about__hero-content {
    text-align: center;
    max-width: 900px;
    width: 100%; /* Ensure content takes full width within max-width */
}

.page-about__hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

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

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

.page-about__cta-buttons--center {
    margin-top: 40px;
}

.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;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-about__btn-primary {
    background-color: #EA7C07; /* Login/Register color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

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

/* --- Section Backgrounds --- */
.page-about__dark-bg {
    background-color: #1a1a1a; /* Dark background for sections */
    color: #f0f0f0; /* Light text */
    padding: 60px 0;
}

.page-about__light-bg {
    background-color: #282828; /* Slightly lighter dark background for contrast */
    color: #f0f0f0; /* Light text */
    padding: 60px 0;
}

/* --- Content Sections --- */
.page-about__introduction-section,
.page-about__history-section,
.page-about__mission-vision-section,
.page-about__core-values-section,
.page-about__why-choose-section,
.page-about__responsibility-section,
.page-about__team-section,
.page-about__conclusion-section,
.page-about__faq-section {
    padding: 60px 0;
}

.page-about__image-text-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-about__image-text-block--reverse {
    flex-direction: row-reverse;
}

.page-about__image-text-block .page-about__content-image {
    flex: 1 1 400px; /* Allow image to grow/shrink, min width 400px */
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Ensure minimum image size */
}

.page-about__image-text-block .page-about__text-content {
    flex: 1 1 400px; /* Allow text to grow/shrink, min width 400px */
}

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

.page-about__card,
.page-about__value-item,
.page-about__reason-card {
    background-color: rgba(255, 255, 255, 0.1); /* Light transparent background on dark sections */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #f0f0f0; /* Light text */
}

.page-about__card-title,
.page-about__value-title {
    font-size: 1.5rem;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-about__card-text,
.page-about__value-description {
    font-size: 1rem;
    color: #e0e0e0;
}

.page-about__team-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Ensure minimum image size */
}

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

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

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    color: #26A9E0;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-about__faq-item[open] .page-about__faq-question {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

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

.page-about__faq-answer {
    padding: 20px;
    font-size: 1rem;
    color: #e0e0e0;
}

.page-about__faq-answer p {
    margin-bottom: 10px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: clamp(1.8rem, 5vw, 3rem);
    }

    .page-about__section-title {
        font-size: 2rem;
    }

    .page-about__image-text-block {
        flex-direction: column;
        text-align: center;
    }

    .page-about__image-text-block--reverse {
        flex-direction: column; /* Keep consistent for smaller screens */
    }

    .page-about__image-text-block .page-about__text-content {
        text-align: left; /* Reset text align for content block */
    }

    .page-about__content-image {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .page-about__container {
        padding: 15px;
    }

    .page-about__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, small top padding */
    }

    .page-about__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-about__hero-description {
        font-size: 1.1rem;
    }

    .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;
        font-size: 1rem;
    }

    .page-about__introduction-section,
    .page-about__history-section,
    .page-about__mission-vision-section,
    .page-about__core-values-section,
    .page-about__why-choose-section,
    .page-about__responsibility-section,
    .page-about__team-section,
    .page-about__conclusion-section,
    .page-about__faq-section {
        padding: 40px 0;
    }

    .page-about__image-text-block {
        gap: 20px;
    }

    .page-about__mission-vision-grid,
    .page-about__values-grid,
    .page-about__reasons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-about__card,
    .page-about__value-item,
    .page-about__reason-card {
        padding: 25px;
        text-align: left;
    }

    .page-about__card-title,
    .page-about__value-title {
        font-size: 1.3rem;
    }

    .page-about__content-image,
    .page-about__team-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Ensure minimum size */
    }

    /* For containers that hold images/videos */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-image-wrapper,
    .page-about__image-text-block,
    .page-about__mission-vision-grid,
    .page-about__values-grid,
    .page-about__reasons-grid,
    .page-about__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}