/* style/about.css */

/* --- General Page Styling --- */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF; /* Default body background */
}

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

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

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

.page-about__section-intro {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-about__text-block p,
.page-about__card-description {
    font-size: 1em;
    margin-bottom: 1em;
    color: #333333; /* Ensure text is dark on light backgrounds */
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Minimum height for hero */
    color: #ffffff; /* Light text for dark hero background */
}

.page-about__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-about__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Allowed for background video, not for images */
}

.page-about__hero-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Above video, below content */
    cursor: pointer;
}

.page-about__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for readability */
    border-radius: 10px;
}

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

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

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

/* --- Buttons --- */
.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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure responsiveness */
}

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

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

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

.page-about__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1a7eb3;
    border-color: #1a7eb3;
}

/* Specific button for Login/Register if needed */
.page-about__btn-login {
    background-color: #EA7C07; /* Login specific color */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

.page-about__btn-login:hover {
    background-color: #c76a06;
    border-color: #c76a06;
}

/* --- Mission & Vision Section --- */
.page-about__mission-vision {
    background-color: #FFFFFF;
    color: #333333;
}

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

.page-about__content-grid:nth-child(even) {
    flex-direction: row-reverse; /* Alternate image/text layout */
}

.page-about__content-grid .page-about__text-block {
    flex: 1;
}

.page-about__image {
    flex-shrink: 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* Ensure images are responsive */
    height: auto; /* Maintain aspect ratio */
    display: block;
}

.page-about__image--right {
    margin-left: 40px; /* Spacing for alternating layout */
}

.page-about__image--left {
    margin-right: 40px; /* Spacing for alternating layout */
}

/* --- Why Choose Us Section --- */
.page-about__why-choose-us {
    background-color: #f8f9fa; /* Light background */
    color: #333333;
}

.page-about__cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
    margin-top: 40px;
}

.page-about__card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    box-sizing: border-box;
}

.page-about__card:hover {
    transform: translateY(-5px);
}

.page-about__card-icon {
    width: 100%; /* Card images must be large */
    height: auto;
    max-height: 250px; /* Adjust as needed */
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

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

.page-about__card-description {
    color: #555555;
    text-align: center;
}

.page-about__card a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-about__card a:hover {
    text-decoration: underline;
}

/* --- Mahjong Deep Dive Section --- */
.page-about__mahjong-deep-dive {
    background-color: #26A9E0; /* Brand color for background */
    color: #FFFFFF; /* Light text for dark background */
    padding: 80px 0;
}

.page-about__mahjong-deep-dive .page-about__section-title {
    color: #FFFFFF;
}

.page-about__mahjong-deep-dive .page-about__section-intro {
    color: #f0f0f0;
}

.page-about__mahjong-deep-dive .page-about__sub-title {
    color: #FFFFFF;
    text-align: left;
}

.page-about__mahjong-deep-dive p,
.page-about__mahjong-deep-dive li {
    color: #f0f0f0;
    text-align: left;
}

.page-about__mahjong-deep-dive a {
    color: #FFFFFF;
    text-decoration: underline;
    font-weight: bold;
}

.page-about__mahjong-deep-dive a:hover {
    color: #e0f2f7;
}

.page-about__content-wrapper {
    display: flex;
    align-items: flex-start; /* Align text to top */
    gap: 40px;
    margin-bottom: 50px;
    text-align: left;
}

.page-about__content-wrapper:nth-child(even) {
    flex-direction: row-reverse; /* Alternate image/text layout */
}

.page-about__content-wrapper .page-about__text-block {
    flex: 1;
}

.page-about__content-wrapper .page-about__image {
    flex-shrink: 0;
    max-width: 500px; /* Constrain image width in content */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

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

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

/* --- Commitment Section --- */
.page-about__commitment {
    background-color: #FFFFFF;
    color: #333333;
}

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

.page-about__commitment-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
    box-sizing: border-box;
}

.page-about__commitment-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

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

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

.page-about__faq-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* For smooth transition of details */
}

.page-about__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    outline: none;
    list-style: none; /* Remove default marker */
}

.page-about__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for WebKit browsers */
}

.page-about__faq-question {
    color: #26A9E0; /* Brand color for question */
}

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

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

.page-about__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #555555;
    line-height: 1.7;
    border-top: 1px solid #eee;
    margin-top: -1px; /* Overlap border */
}

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

.page-about__faq-answer a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-about__faq-answer a:hover {
    text-decoration: underline;
}

/* --- CTA Section --- */
.page-about__cta-section {
    background-color: #26A9E0; /* Brand color for background */
    color: #FFFFFF;
    padding: 80px 0;
}

.page-about__cta-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-about__cta-title {
    font-size: 2.8em;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-about__cta-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 2.8em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__content-grid,
    .page-about__content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-about__image--right,
    .page-about__image--left {
        margin: 20px auto;
    }
    .page-about__content-wrapper .page-about__image {
        max-width: 100%;
    }
    .page-about__mahjong-deep-dive .page-about__sub-title,
    .page-about__mahjong-deep-dive p,
    .page-about__mahjong-deep-dive li {
        text-align: center;
    }
    .page-about__list {
        margin: 0 auto 20px auto;
        padding-left: 20px;
        text-align: left; /* Keep list items aligned left */
        max-width: fit-content;
    }
}

@media (max-width: 768px) {
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__container {
        padding: 0 15px; /* Add padding for mobile content */
    }
    .page-about__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure offset on mobile */
    }
    .page-about__hero-content {
        padding: 15px;
    }
    .page-about__hero-title {
        font-size: 2.2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-login,
    .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: 12px 20px !important; /* Adjust padding for smaller buttons */
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px; /* Ensure cta buttons are within padding */
    }
    .page-about__cta-section .page-about__cta-title {
        font-size: 2em;
    }

    /* Images responsiveness */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__content-grid,
    .page-about__content-wrapper,
    .page-about__commitment-grid,
    .page-about__faq-list,
    .page-about__cta-section,
    .page-about__hero-video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-about__card-icon {
        min-width: 200px !important; /* Ensure min size on mobile */
        min-height: 200px !important;
    }
    .page-about__image {
        min-width: 200px !important; /* Ensure min size on mobile */
        min-height: 200px !important;
    }
    .page-about__cta-image {
        min-width: 200px !important; /* Ensure min size on mobile */
        min-height: 200px !important;
    }

    /* Video responsiveness */
    .page-about video,
    .page-about__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-about__video-section,
    .page-about__video-container,
    .page-about__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important; /* Remove padding if any on video wrapper */
        padding-right: 0 !important; /* Remove padding if any on video wrapper */
        overflow: hidden !important;
    }
    /* Specific padding for sections in mobile to prevent content from touching edges */
    .page-about__section > .page-about__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-about__mahjong-deep-dive .page-about__list {
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 1.8em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__sub-title {
        font-size: 1.5em;
    }
    .page-about__card-title {
        font-size: 1.3em;
    }
    .page-about__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }
}