:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f9f9f9;
    --background-dark: #26A9E0; /* Using primary color for dark sections */
    --border-color: #e0e0e0;
    --button-login: #EA7C07;
    --black-color: #000000;
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--text-color-dark); /* Default text color for light background */
    line-height: 1.6;
}

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

.page-promotions__section-title {
    font-size: 32px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

.page-promotions__text-block {
    font-size: 17px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.7;
}

/* HERO Section */
.page-promotions__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); /* Ensure space for fixed header */
    background: linear-gradient(135deg, var(--primary-color) 0%, #aed8ee 100%); /* Light blue gradient */
    color: var(--text-color-light);
    overflow: hidden; /* Prevent image overflow */
}

.page-promotions__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any potential background effects */
}

.page-promotions__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-promotions__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: none; /* Ensure no filter is applied */
}

.page-promotions__hero-image img:hover {
    transform: scale(1.02);
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-promotions__hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 900;
    color: var(--text-color-light); /* White text on blue background */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-promotions__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    color: var(--text-color-light);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--button-login); /* Use specific login color for CTA */
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    border: none;
    cursor: pointer;
    max-width: 100%; /* For mobile button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__cta-button:hover {
    background: #c76a06; /* Darken on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button--white {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-promotions__cta-button--white:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Intro Section */
.page-promotions__intro-section {
    padding: 80px 0;
    background: var(--secondary-color);
}

.page-promotions__image-content {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.page-promotions__image-content img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: none; /* Ensure no filter is applied */
}

/* Quick Links Section */
.page-promotions__quick-links-section {
    padding: 60px 0;
    background: var(--background-light);
}

.page-promotions__button-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    max-width: 100%; /* For mobile button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background: var(--primary-color);
    color: var(--text-color-light);
}

.page-promotions__btn-primary:hover {
    background: #1e87b7; /* Darken on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-promotions__btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-promotions__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Game Offers Section */
.page-promotions__game-offers-section {
    padding: 80px 0;
    background: var(--secondary-color);
}

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

.page-promotions__offer-card {
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-promotions__offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions__offer-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    filter: none; /* Ensure no filter is applied */
}

.page-promotions__offer-card h3 {
    font-size: 22px;
    color: var(--primary-color);
    margin: 20px 20px 10px 20px;
    font-weight: 700;
    line-height: 1.3;
}

.page-promotions__offer-card h3 a {
    color: inherit;
    text-decoration: none;
}

.page-promotions__offer-card h3 a:hover {
    text-decoration: underline;
}

.page-promotions__offer-card p {
    font-size: 16px;
    color: var(--text-color-dark);
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__card-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    margin: 0 20px 20px 20px;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    max-width: calc(100% - 40px); /* For mobile button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__card-button:hover {
    background: #1e87b7; /* Darken on hover */
}

/* Main Promotions Section */
.page-promotions__main-promotions-section {
    padding: 80px 0;
    background: var(--background-light);
}

.page-promotions__promotion-item {
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-promotions__promotion-item img {
    width: 100%;
    max-width: 700px;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    filter: none; /* Ensure no filter is applied */
}

.page-promotions__promotion-item h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-promotions__promotion-item p {
    font-size: 17px;
    color: var(--text-color-dark);
    max-width: 800px;
    margin-bottom: 30px;
}

/* Security & Support Section */
.page-promotions__security-support-section {
    padding: 80px 0;
    background: var(--background-dark); /* Using primary color as dark background */
    color: var(--text-color-light); /* Light text on dark background */
}

.page-promotions__security-support-section .page-promotions__section-title,
.page-promotions__security-support-section .page-promotions__text-block {
    color: var(--text-color-light);
}

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

.page-promotions__feature-card {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.page-promotions__feature-card:hover {
    background: rgba(255, 255, 255, 0.25);
}

.page-promotions__feature-card h3 {
    font-size: 22px;
    color: var(--text-color-light);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-promotions__feature-card p {
    font-size: 16px;
    color: var(--text-color-light);
}

.page-promotions__contact-cta {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
    background: var(--secondary-color);
}

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

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

/* FAQ默认状态 - 答案隐藏 */
.page-promotions__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 15px;
    opacity: 0;
    color: var(--text-color-dark);
    background: var(--background-light);
}

/* FAQ展开状态 - ⚠️ 使用!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-promotions__faq-item.active .page-promotions__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: 20px 15px !important;
    opacity: 1;
    border-radius: 0 0 5px 5px;
}

/* Vấn đề phong cách */
.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-promotions__faq-question:hover {
    background: var(--background-light);
    border-color: #c9c9c9; /* Darken on hover */
}

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

/* Vấn đề tiêu đề phong cách */
.page-promotions__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 nhấp */
    color: var(--primary-color);
}

/* Chuyển đổi biểu tượng */
.page-promotions__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Ngăn biểu tượng chặn sự kiện nhấp */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    color: var(--button-login); /* Highlight toggle khi hoạt động */
    transform: rotate(45deg); /* Thay đổi thành hình chữ X hoặc xoay */
}

/* Latest News Section */
.page-promotions__latest-news-section {
    padding: 80px 0;
    background: var(--background-light);
}

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

.page-promotions__news-card {
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-promotions__news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions__news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    filter: none; /* Ensure no filter is applied */
}

.page-promotions__news-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin: 20px 20px 10px 20px;
    font-weight: 700;
    line-height: 1.3;
}

.page-promotions__news-card h3 a {
    color: inherit;
    text-decoration: none;
}

.page-promotions__news-card h3 a:hover {
    text-decoration: underline;
}

.page-promotions__news-card p {
    font-size: 16px;
    color: var(--text-color-dark);
    padding: 0 20px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-promotions__news-date {
    font-size: 14px;
    color: #888;
    padding: 0 20px 20px 20px;
    display: block;
}

.page-promotions__view-all-news {
    text-align: center;
    margin-top: 40px;
}

/* General button styling for anchor tags with button-like classes */
.page-promotions a[class*="btn"],
.page-promotions a[class*="button"] {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-content h1 {
        font-size: 40px;
    }
    .page-promotions__hero-description {
        font-size: 18px;
    }
    .page-promotions__section-title {
        font-size: 28px;
    }
    .page-promotions__offer-card h3 {
        font-size: 20px;
    }
    .page-promotions__promotion-item h3 {
        font-size: 24px;
    }
    .page-promotions__news-card h3 {
        font-size: 18px;
    }
}

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

    .page-promotions__hero-image {
        margin-bottom: 20px;
        border-radius: 8px;
    }

    .page-promotions__hero-content h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-promotions__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

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

    .page-promotions__container {
        padding: 15px;
    }

    .page-promotions__section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .page-promotions__text-block {
        font-size: 15px;
        margin-bottom: 20px;
    }

    .page-promotions__button-group {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        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-promotions__card-button {
        max-width: 100% !important;
        width: calc(100% - 40px) !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__offer-card img {
        
    }

    .page-promotions__offer-card h3 {
        font-size: 18px;
    }

    .page-promotions__offer-card p {
        font-size: 14px;
    }

    .page-promotions__promotion-item {
        padding: 20px;
    }

    .page-promotions__promotion-item h3 {
        font-size: 20px;
    }

    .page-promotions__promotion-item p {
        font-size: 15px;
    }

    .page-promotions__feature-card h3 {
        font-size: 18px;
    }

    .page-promotions__feature-card p {
        font-size: 14px;
    }

    /* FAQ Mobile */
    .page-promotions__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-promotions__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-promotions__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-promotions__faq-answer {
        padding: 0 15px;
    }
    
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px !important;
    }

    .page-promotions__news-card img {
        
    }

    .page-promotions__news-card h3 {
        font-size: 16px;
    }
    .page-promotions__news-card p {
        font-size: 14px;
    }
    .page-promotions__news-date {
        font-size: 13px;
    }

    /* All images in content area must be responsive */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}