:root {
    --primary-color: #007BFF;
    --secondary-color: #FFC107;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --background-dark: #121212;
    --background-light: #f8f9fa;
    --card-background-dark: rgba(255, 255, 255, 0.1);
    --card-background-light: #ffffff;
    --border-color: #e0e0e0;
}

.page-jackpot-games {
    /* Thêm padding-top để tránh bị header cố định che mất nội dung */
    padding-top: 120px; /* Giá trị mặc định cho desktop */
    background-color: var(--background-dark); /* Kế thừa từ body background */
    color: var(--text-color-light);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

.page-jackpot-games__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Kế thừa màu từ section cha */
}

.page-jackpot-games__section-subtitle {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    color: inherit;
}

/* Hero Section */
.page-jackpot-games__hero-section {
    position: relative;
    padding: 80px 20px 40px;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-jackpot-games__hero-section .page-jackpot-games__container {
    position: relative;
    z-index: 1;
}

.page-jackpot-games__hero-title {
    font-size: 48px;
    color: var(--text-color-light);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-jackpot-games__hero-description {
    font-size: 20px;
    color: #e0e0e0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-jackpot-games__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-jackpot-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
}

/* Buttons */
.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary,
.page-jackpot-games__btn-play,
.page-jackpot-games__btn-view-promo {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-jackpot-games__btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.page-jackpot-games__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.page-jackpot-games__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.page-jackpot-games__btn-play,
.page-jackpot-games__btn-view-promo {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
    padding: 10px 20px;
    font-size: 16px;
    box-shadow: none;
}

.page-jackpot-games__btn-play:hover,
.page-jackpot-games__btn-view-promo:hover {
    background-color: #e0a800;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Section Styling */
.page-jackpot-games__dark-bg {
    background-color: var(--background-dark);
    color: var(--text-color-light);
    padding: 60px 0;
}

.page-jackpot-games__light-bg {
    background-color: var(--background-light);
    color: var(--text-color-dark);
    padding: 60px 0;
}

.page-jackpot-games__light-bg .page-jackpot-games__section-title,
.page-jackpot-games__light-bg .page-jackpot-games__section-subtitle {
    color: var(--text-color-dark);
}

/* About Nổ Hũ Section */
.page-jackpot-games__about-nổhũ .page-jackpot-games__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-jackpot-games__about-nổhũ .page-jackpot-games__text-block {
    flex: 1;
}

.page-jackpot-games__about-nổhũ .page-jackpot-games__text-block p {
    margin-bottom: 15px;
}

.page-jackpot-games__about-nổhũ .page-jackpot-games__image-wrapper {
    flex: 1;
    text-align: center;
}

.page-jackpot-games__about-nổhũ .page-jackpot-games__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

.page-jackpot-games__feature-card {
    background-color: var(--card-background-dark);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-jackpot-games__feature-card:hover {
    transform: translateY(-5px);
}

.page-jackpot-games__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-jackpot-games__feature-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-jackpot-games__feature-description {
    font-size: 16px;
    color: #e0e0e0;
}

.page-jackpot-games__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Popular Games Section */
.page-jackpot-games__game-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-jackpot-games__game-card {
    background-color: var(--card-background-light);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-jackpot-games__game-card:hover {
    transform: translateY(-5px);
}

.page-jackpot-games__game-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-jackpot-games__game-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-jackpot-games__game-description {
    font-size: 15px;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* How to Start Section */
.page-jackpot-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-jackpot-games__step-card {
    background-color: var(--card-background-dark);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    height: 100%;
}

.page-jackpot-games__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-jackpot-games__step-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-jackpot-games__step-description {
    font-size: 16px;
    color: #e0e0e0;
}

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

.page-jackpot-games__promo-card {
    background-color: var(--card-background-light);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-jackpot-games__promo-card:hover {
    transform: translateY(-5px);
}

.page-jackpot-games__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-jackpot-games__promo-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-jackpot-games__promo-description {
    font-size: 16px;
    color: var(--text-color-dark);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Tips and Strategies Section */
.page-jackpot-games__tips-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
}

.page-jackpot-games__tip-item {
    background-color: var(--card-background-dark);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-jackpot-games__tip-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-jackpot-games__tip-description {
    font-size: 16px;
    color: #e0e0e0;
}

/* Download App Section */
.page-jackpot-games__download-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-jackpot-games__download-text {
    flex: 1;
}

.page-jackpot-games__download-text p {
    margin-bottom: 20px;
}

.page-jackpot-games__download-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-jackpot-games__download-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-jackpot-games__download-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Contact Support Section */
.page-jackpot-games__contact-info {
    text-align: center;
    margin-top: 40px;
}

.page-jackpot-games__contact-info p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.page-jackpot-games__contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 18px;
    color: var(--text-color-light);
}

.page-jackpot-games__contact-list li {
    margin-bottom: 10px;
}

.page-jackpot-games__contact-list a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-jackpot-games__contact-list a:hover {
    color: #e0a800;
    text-decoration: underline;
}

/* Conclusion Section */
.page-jackpot-games__final-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-jackpot-games__hero-title {
        font-size: 40px;
    }
    .page-jackpot-games__section-title {
        font-size: 32px;
    }
    .page-jackpot-games__hero-description {
        font-size: 18px;
    }
    .page-jackpot-games__download-content {
        flex-direction: column;
    }
    .page-jackpot-games__about-nổhũ .page-jackpot-games__content-grid {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-jackpot-games {
        padding-top: 100px !important; /* Điều chỉnh cho mobile */
        font-size: 16px;
        line-height: 1.5;
    }

    .page-jackpot-games__container {
        padding: 15px;
    }

    .page-jackpot-games__hero-section {
        padding: 60px 15px 30px;
    }

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

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

    .page-jackpot-games__hero-cta,
    .page-jackpot-games__final-cta,
    .page-jackpot-games__download-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-jackpot-games__btn-primary,
    .page-jackpot-games__btn-secondary,
    .page-jackpot-games__btn-play,
    .page-jackpot-games__btn-view-promo {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-jackpot-games__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-jackpot-games__section-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-jackpot-games__dark-bg, .page-jackpot-games__light-bg {
        padding: 40px 0;
    }

    .page-jackpot-games__about-nổhũ .page-jackpot-games__content-grid {
        gap: 30px;
    }

    .page-jackpot-games__about-nổhũ .page-jackpot-games__image {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .page-jackpot-games__features-grid,
    .page-jackpot-games__game-cards-grid,
    .page-jackpot-games__steps-grid,
    .page-jackpot-games__promo-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-jackpot-games__feature-card,
    .page-jackpot-games__game-card,
    .page-jackpot-games__step-card,
    .page-jackpot-games__promo-card {
        padding: 25px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .page-jackpot-games__feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .page-jackpot-games__feature-title,
    .page-jackpot-games__game-title,
    .page-jackpot-games__step-title,
    .page-jackpot-games__promo-title,
    .page-jackpot-games__tip-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .page-jackpot-games__game-image,
    .page-jackpot-games__promo-image {
        height: 150px;
    }

    .page-jackpot-games__download-content {
        gap: 30px;
    }

    .page-jackpot-games__download-image {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .page-jackpot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-jackpot-games__hero-section,
    .page-jackpot-games__container,
    .page-jackpot-games__about-nổhũ .page-jackpot-games__content-grid,
    .page-jackpot-games__download-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-jackpot-games__hero-title {
        font-size: 28px;
    }
    .page-jackpot-games__section-title {
        font-size: 24px;
    }
    .page-jackpot-games__hero-description {
        font-size: 15px;
    }
}

/* Ensure all links within the main content are readable */
.page-jackpot-games a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-jackpot-games a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Specific link colors for dark background */
.page-jackpot-games__dark-bg a {
    color: var(--secondary-color);
}

.page-jackpot-games__dark-bg a:hover {
    color: #e0a800;
}