/* Base styles for page-about */
.page-about {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #333333); /* Default text color, ensuring contrast */
    background-color: var(--page-bg, #F5F7FA); /* Default background color */
}

/* Hero Section */
.page-about__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming body has header offset */
    margin-bottom: 40px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand gradient background */
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
}

.page-about__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for large screens */
    margin-bottom: 20px;
}

.page-about__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-about__hero-content {
    max-width: 900px;
    padding: 20px;
    color: #ffffff; /* White text on dark/gradient background */
}

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

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

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

.page-about__btn-primary,
.page-about__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* General Section Styles */
.page-about__section-padding {
    padding: 60px 20px;
    max-width: 1330px;
    margin: 0 auto;
}

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

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

.page-about__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-main, #333333);
}

.page-about__section-title--white {
    color: #ffffff;
}

.page-about__section-subtitle {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main, #333333);
}

.page-about__section-subtitle--white {
    color: #ffffff;
}

/* Introduction Section */
.page-about__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

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

.page-about__text-block p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

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

.page-about__image-full {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* History Section */
.page-about__dark-section {
    background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
    color: #ffffff;
}

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

.page-about__timeline-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__timeline-year {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-about__timeline-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Products and Services Section */
.page-about__services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__service-card {
    background-color: var(--card-bg, #FFFFFF);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-about__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-about__card-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main, #333333);
}

.page-about__card-description {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes button to bottom */
}

.page-about__btn-outline {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #E53935;
    color: #E53935;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: auto; /* Align button at bottom */
}

.page-about__btn-outline:hover {
    background-color: #E53935;
    color: #ffffff;
}

/* Commitment Section */
.page-about__commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__commitment-item {
    background-color: var(--card-bg, #FFFFFF);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
}

.page-about__commitment-icon {
    width: 100px; /* Adjust size for icons */
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-about__item-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main, #333333);
}

.page-about__item-title--white {
    color: #ffffff;
}

.page-about__item-description {
    font-size: 0.95em;
    color: #555555;
}

.page-about__item-description--white {
    color: #f0f0f0;
}

/* Advantages Section */
.page-about__advantages-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__advantage-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__cta-bottom {
    margin-top: 50px;
    text-align: center;
}

/* FAQ Section */
.page-about__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__faq-item {
    background-color: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #E0E0E0);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--text-main, #333333);
    cursor: pointer;
    list-style: none; /* Hide default marker for details */
    -webkit-tap-highlight-color: transparent; /* Prevent tap highlight on mobile */
}

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

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

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

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

.page-about__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding-top 0.3s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
    max-height: 500px; /* Arbitrarily large value for smooth transition */
    padding-top: 10px;
}

/* Contact CTA Section */
.page-about__contact-cta {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
}

/* --- Mandatory Homepage CSS Selectors (as per prompt instructions) --- */
/* These are included even if not directly used in 'about.html' as per prompt's strict instruction */
.page-about__home-content {
    border: 1px solid #FBB00D;
    border-radius: 10px;
    height: 650px;
    overflow-y: auto;
    padding: 20px; /* Added padding for content */
    margin: 40px auto; /* Centering and spacing */
    max-width: 1200px; /* Constrain width */
}
.page-about__row-games,
.page-about__row-sport,
.page-about__row-coop {
    background-color: #1A202C;
    padding: 40px 20px;
    max-width: 1330px;
    margin: 0 auto;
}
.page-about__games-title,
.page-about__sport-title,
.page-about__coop-title {
    color: #fff;
    text-align: center;
    margin-bottom: 30px; /* Added spacing */
}
.page-about__slider-wrapper {
    overflow: hidden;
    margin: 30px 0; /* Added spacing */
}
.page-about__slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    transition: transform 0.5s ease-in-out; /* Added transition */
}
.page-about__game-slide {
    flex: 0 0 200px;
    max-width: 200px;
    background-color: #2D3748; /* Added background for visibility */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* Added shadow */
}
.page-about__game-slide img {
    width: 100%;
     /* Example height for game image */
    object-fit: cover;
}
.page-about__game-slide h3 {
    color: #fff;
    padding: 10px;
    font-size: 1.1em;
    text-align: center;
}
.page-about__banners-top-wrapper {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    max-width: 900px;
    margin: 0 auto 40px auto; /* Centering and spacing */
}
.page-about__banner-item img {
    
    
    object-fit: contain;
    margin: 0 auto;
    display: block;
    border-radius: 8px; /* Added styling */
    transition: transform 0.3s ease;
}
.page-about__banner-item img:hover {
    transform: scale(1.05);
}
.page-about__blog-masonry {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch; /* Ensure cards have equal height */
    margin-top: 40px; /* Added spacing */
}
.page-about__blog-card {
    background-color: var(--card-bg, #FFFFFF);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure stretching */
}
.page-about__blog-card img {
    width: 100%;
    height: 200px; /* Example height for blog image */
    object-fit: cover;
}
.page-about__blog-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.page-about__blog-card-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main, #333333);
    line-height: 1.3;
}
.page-about__blog-card-link { /* Assuming the title is a link */
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.page-about__blog-card-link:hover .page-about__blog-card-title {
    color: #E53935; /* Hover effect for title */
}
.page-about__blog-card-description {
    font-size: 0.9em;
    color: #555555;
    margin-bottom: 15px;
    flex-grow: 1;
}
.page-about__blog-meta {
    font-size: 0.85em;
    color: #777777;
    margin-top: auto;
}
.page-about__blog-slider {
    margin: 40px 0;
    overflow: hidden;
}
.page-about__blog-slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}
.page-about__blog-slide {
    flex: 0 0 calc(33.333% - 14px); /* (3 cards + 2 gaps) / 3 */
    max-width: calc(33.333% - 14px);
}
.page-about__blog-slide .page-about__blog-card {
    height: auto; /* Allow height to adjust */
}

/* Common image responsive styles */
.page-about img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-about__content-grid {
        flex-direction: column;
    }
    .page-about__services-grid,
    .page-about__commitment-grid,
    .page-about__advantages-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-about__banners-top-wrapper {
        grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 columns for tablets */
    }
    .page-about__blog-masonry {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columns for tablets */
    }
    .page-about__blog-slide {
        flex: 0 0 calc(50% - 10px); /* 2 cards per row */
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    /* HERO Chủ đề chính */
    .page-about__hero-section {
        padding-top: 10px;
    }
    .page-about__hero-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    /* Nút và vùng chứa nút */
    .page-about__btn-primary,
    .page-about__btn-secondary,
    .page-about__btn-outline,
    .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;
        padding-right: 15px;
    }
    .page-about__cta-buttons,
    .page-about__button-group,
    .page-about__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    /* Vùng chứa và phần chung */
    .page-about__section-padding {
        padding: 40px 15px;
    }
    .page-about__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-about__section-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* Vùng khung vàng văn bản dài (nếu có) */
    .page-about__home-content {
        height: auto; /* Cho phép nội dung xác định chiều cao */
        overflow-y: visible;
        padding: 15px;
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__home-content h2 {
        font-size: 1.8em;
    }

    /* Hình ảnh chung phản hồi */
    .page-about img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Lưới Dịch vụ/Cam kết/Ưu điểm */
    .page-about__services-grid,
    .page-about__commitment-grid,
    .page-about__advantages-list {
        grid-template-columns: 1fr; /* Một cột cho di động */
    }
    .page-about__card-image {
        height: auto; /* Cho phép chiều cao hình ảnh tự động */
    }
    .page-about__commitment-icon {
        width: 80px;
        height: 80px;
    }

    /* Dòng thời gian Lịch sử */
    .page-about__history-timeline {
        grid-template-columns: 1fr; /* Một cột cho di động */
    }

    /* Phần Câu hỏi thường gặp */
    .page-about__faq-list {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-about__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* Thanh trượt trò chơi (CSS giữ chỗ bắt buộc) */
    .page-about__row-games,
    .page-about__row-sport,
    .page-about__row-coop {
        padding: 20px 10px;
    }
    .page-about__games-title,
    .page-about__sport-title,
    .page-about__coop-title {
        font-size: 1.8em;
    }
    .page-about__slider-track {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .page-about__slider-track::-webkit-scrollbar {
        display: none;
    }
    .page-about__game-slide {
        flex: 0 0 160px;
        max-width: 160px;
    }

    /* Vùng chứa biểu ngữ trên cùng (CSS giữ chỗ bắt buộc) */
    .page-about__banners-top-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 0 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__banner-item img {
        
        
    }

    /* Khối xây dựng blog (CSS giữ chỗ bắt buộc) */
    .page-about__blog-masonry {
        grid-template-columns: 1fr;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__blog-card img {
        
    }
    .page-about__blog-card-title {
        font-size: 1.2em;
    }
    .page-about__blog-card-description {
        font-size: 0.85em;
    }

    /* Thanh trượt blog (CSS giữ chỗ bắt buộc) */
    .page-about__blog-slider-track {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .page-about__blog-slider-track::-webkit-scrollbar {
        display: none;
    }
    .page-about__blog-slide {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-about__blog-slider {
        margin-left: -15px;
        margin-right: -15px;
        padding-bottom: 10px;
    }
}