/* style/about.css */
/* Base styles for .page-about should respect body's dark background from shared.css */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Default text color for dark body background */
}

/* Container for content sections */
.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-about__section-title {
    font-size: 2.5em; /* Adjusted to be reasonable, not too big */
    font-weight: 700;
    color: #26A9E0; /* Primary brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.page-about__sub-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    background: linear-gradient(180deg, rgba(38, 169, 224, 0.1) 0%, rgba(38, 169, 224, 0) 100%); /* Subtle gradient for depth */
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px; /* Space between image and content */
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-about__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-about__main-title {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #26A9E0;
    margin-bottom: 20px;
    /* No fixed font-size, relying on browser defaults and font-weight */
    font-size: clamp(2.2em, 4vw, 3.5em); /* Using clamp for responsive H1 */
}

.page-about__description {
    font-size: 1.1em;
    color: #f0f0f0; /* Light text for dark body */
    margin-bottom: 30px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

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

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

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

/* Content Grid Layout */
.page-about__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.page-about__content-grid--reverse {
    flex-direction: row-reverse; /* For reversing order on desktop */
}

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

.page-about__feature-list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #f0f0f0; /* Default text color for dark body */
}

.page-about__feature-list strong {
    color: #26A9E0;
}

/* Image Wrappers within content */
.page-about__image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

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

/* Section specific styles - Color contrast handling */
.page-about__dark-bg {
    background: #26A9E0; /* Primary brand color */
    color: #ffffff;
    padding: 60px 0;
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__sub-title {
    color: #ffffff;
}

.page-about__dark-bg .page-about__text-block p,
.page-about__dark-bg .page-about__feature-list {
    color: #ffffff;
}

.page-about__light-bg {
    background: #ffffff; /* Auxiliary color */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__sub-title {
    color: #26A9E0; /* Primary brand color for titles */
}

.page-about__light-bg .page-about__text-block p,
.page-about__light-bg .page-about__feature-list {
    color: #333333;
}

.page-about__light-bg .page-about__feature-list strong {
    color: #26A9E0;
}

/* Flex layout for image/text side-by-side */
.page-about__flex-reverse-on-mobile {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-about__flex-reverse-on-mobile .page-about__content-text,
.page-about__flex-reverse-on-mobile .page-about__image-wrapper {
    flex: 1;
}

/* FAQ Section */
.page-about__faq-section {
    padding-bottom: 60px;
}

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

.page-about__faq-item {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333;
}

.page-about__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1em;
    color: #26A9E0;
    background: #eaf6fa; /* Lighter background for summary */
    transition: background-color 0.3s ease;
}

.page-about__faq-item summary:hover {
    background-color: #dbeff6;
}

.page-about__faq-item summary::-webkit-details-marker {
    display: none; /* Hide marker for Webkit browsers */
}

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

.page-about__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
    transform: rotate(45deg); /* Rotate to form 'X' or '-' */
}

.page-about__faq-answer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    color: #333333;
    font-size: 0.95em;
}

.page-about__faq-answer p {
    color: #333333;
}

/* Conclusion Section */
.page-about__conclusion {
    text-align: center;
    margin-top: 60px;
    padding: 0 20px;
}
.page-about__conclusion .page-about__sub-title {
    color: #26A9E0;
}
.page-about__conclusion p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #333333;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-about__sub-title {
        font-size: 1.3em;
    }
    .page-about__flex-reverse-on-mobile {
        flex-direction: column;
    }
    .page-about__content-grid--reverse {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-about__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-about__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-about__description {
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__hero-image-wrapper,
    .page-about__image-wrapper,
    .page-about__container,
    .page-about__content-grid,
    .page-about__text-block,
    .page-about__faq-list,
    .page-about__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Ensure content is not glued to edges */
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-about__hero-section {
        padding-left: 0;
        padding-right: 0;
        padding-top: 10px !important; /* Small top padding for hero section, not var(--header-offset) */
    }
    .page-about__content-area,
    .page-about__vision-mission-section,
    .page-about__trust-security-section,
    .page-about__entertainment-section,
    .page-about__promotions-section,
    .page-about__responsibility-section,
    .page-about__future-section,
    .page-about__faq-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Buttons responsiveness */
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to button group itself */
    }
    .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; /* Ensure text inside buttons has padding */
        padding-right: 15px;
    }

    .page-about__faq-item summary {
        font-size: 1em;
        padding: 15px;
    }
    .page-about__faq-answer {
        padding: 15px;
    }
}

/* Ensure no filter on images */
.page-about img {
    filter: none !important;
}