/* 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: #f8f8f8; /* A light background for the page content */
    padding-bottom: 60px; /* Space before footer */
}

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

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

.page-about__section-title {
    font-size: 36px;
    color: #26A9E0; /* Primary color for titles */
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-about__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #26A9E0;
    border-radius: 2px;
}

.page-about__subsection-title {
    font-size: 28px;
    color: #333333;
    margin-top: 40px;
    margin-bottom: 30px;
    text-align: center;
}

.page-about__text-block {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/* --- Hero Section --- */
.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background: linear-gradient(135deg, #26A9E0, #a0d9f4); /* Light blue gradient */
    color: #FFFFFF;
}

.page-about__hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.page-about__hero-content {
    order: 2; /* Content below image on desktop by default */
    width: 100%;
    margin-top: 30px;
}

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

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

.page-about__hero-image {
    order: 1; /* Image above content on desktop by default */
    width: 100%;
    max-width: 800px; /* Constrain image width */
    margin-bottom: 30px;
}

.page-about__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* --- CTA Button Styles (General) --- */
.page-about__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure responsiveness */
}

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

.page-about__btn-primary:hover {
    background: #1e87bb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary:hover {
    background: #e0f2f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- Introduction Section --- */
.page-about__introduction-section {
    background-color: #ffffff;
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-about__mission-item {
    background: #fdfdfd;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.page-about__mission-item img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-about__mission-item .page-about__item-title {
    font-size: 22px;
    color: #26A9E0;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-about__mission-item p {
    font-size: 16px;
    color: #555555;
}

/* --- Why Choose Us Section --- */
.page-about__why-choose-us {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-about__why-choose-us .page-about__section-title {
    color: #ffffff;
}

.page-about__why-choose-us .page-about__section-title::after {
    background-color: #ffffff;
}

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

.page-about__feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__feature-item .page-about__item-title {
    font-size: 22px;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-about__feature-item p {
    font-size: 16px;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-about__feature-item img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    margin-top: 20px;
}

/* --- Responsible Gaming Section --- */
.page-about__responsible-gaming-section {
    background-color: #f0f0f0;
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-about__responsible-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-about__responsible-text {
    flex: 1;
    min-width: 300px;
}

.page-about__responsible-text p {
    font-size: 18px;
    color: #555555;
    margin-bottom: 20px;
}

.page-about__responsible-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-about__responsible-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* --- Vision Section --- */
.page-about__vision-section {
    background-color: #ffffff;
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-about__vision-image {
    width: 100%;
    height: auto;
    max-width: 900px;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* --- Contact CTA Section --- */
.page-about__contact-cta {
    padding: 80px 0;
    background-color: #26A9E0;
    color: #ffffff;
}

.page-about__contact-cta .page-about__container {
    padding: 40px 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    max-width: 900px;
}

.page-about__contact-title {
    color: #ffffff;
    margin-bottom: 20px;
}

.page-about__contact-title::after {
    background-color: #ffffff;
}

.page-about__contact-cta .page-about__text-block {
    color: #f0f0f0;
    font-size: 18px;
}

/* --- FAQ Section --- */
.page-about__faq-section {
    background-color: #f8f8f8;
    padding-top: 80px;
    padding-bottom: 80px;
}

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

/* FAQ容器样式 */
.page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: #ffffff;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* 🚨 Sử dụng !important để đảm bảo độ ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
    padding: 25px !important;
    opacity: 1;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
}

/* Vấn đề FAQ */
.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #333333;
}

.page-about__faq-item.active .page-about__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #26A9E0;
}

.page-about__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-about__faq-question:active {
    background: #eeeeee;
}

/* Tiêu đề câu hỏi */
.page-about__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện click */
    color: #333333;
}

/* Biểu tượng chuyển đổi */
.page-about__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
    pointer-events: none; /* Ngăn biểu tượng chặn sự kiện click */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-about__faq-item.active .page-about__faq-toggle {
    color: #26A9E0;
    transform: rotate(45deg); /* Chuyển + thành X */
}

.page-about__faq-answer p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 15px;
}

.page-about__faq-button {
    margin-top: 15px;
    font-size: 16px;
    padding: 10px 25px;
}

/* --- Latest News Section --- */
.page-about__latest-news-section {
    background-color: #ffffff;
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-about__news-card {
    background: #fdfdfd;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page-about__news-card img {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    max-width: 100%; /* Ensure responsiveness */
}

.page-about__news-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-about__card-title {
    font-size: 20px;
    color: #26A9E0;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-about__card-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-about__card-title a:hover {
    color: #1e87bb;
    text-decoration: underline;
}

.page-about__card-date {
    font-size: 14px;
    color: #888888;
    margin-bottom: 15px;
}

.page-about__card-excerpt {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-about__card-link {
    display: inline-block;
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-about__card-link:hover {
    color: #1e87bb;
    text-decoration: underline;
}

.page-about__all-news-cta {
    margin-top: 50px;
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-about__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-about__hero-title {
        font-size: 32px;
    }

    .page-about__hero-description {
        font-size: 16px;
    }

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

    .page-about__hero-image img {
        border-radius: 8px;
    }

    .page-about__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-top: 15px;
    }

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

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

    .page-about__section-title::after {
        width: 60px;
    }

    .page-about__subsection-title {
        font-size: 22px;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page-about__text-block {
        font-size: 16px;
        padding: 0 15px; /* Add horizontal padding to text blocks */
        text-align: left;
    }

    .page-about__mission-values {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-about__mission-item {
        padding: 25px;
    }

    .page-about__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-about__feature-item {
        padding: 25px;
    }

    .page-about__responsible-content {
        flex-direction: column;
        gap: 30px;
        padding: 0 15px;
    }

    .page-about__responsible-text {
        text-align: left;
    }

    .page-about__responsible-image {
        order: -1; /* Image above text on mobile */
    }

    .page-about__vision-image {
        margin-top: 30px;
        padding: 0 15px;
    }

    .page-about__contact-cta .page-about__container {
        padding: 30px 15px;
    }

    .page-about__contact-title {
        font-size: 24px;
    }

    .page-about__contact-cta .page-about__text-block {
        font-size: 16px;
    }

    .page-about__faq-list {
        padding: 0 15px;
    }
    
    .page-about__faq-item {
        margin-bottom: 10px;
    }

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

    .page-about__faq-question h3 {
        font-size: 16px;
    }

    .page-about__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
        margin-left: 15px;
    }
    
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 20px !important;
    }

    .page-about__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .page-about__news-card img {
         /* Adjust height for mobile */
    }

    .page-about__news-card-content {
        padding: 20px;
    }

    .page-about__card-title {
        font-size: 18px;
    }

    .page-about__card-excerpt {
        font-size: 15px;
    }

    /* Enforce image responsiveness for all images within .page-about */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Enforce container responsiveness for all sections, cards, containers */
    .page-about__section,
    .page-about__card,
    .page-about__container,
    .page-about__hero-container,
    .page-about__mission-item,
    .page-about__feature-item,
    .page-about__responsible-content,
    .page-about__news-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by specific sections */
    }
}