:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-dark: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* body đã có padding-top từ shared.css, không thêm vào đây */
.page-jackpot-slots {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Mặc định chữ sáng trên nền tối */
    background-color: var(--background-dark);
    line-height: 1.6;
    font-size: 16px;
}

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

.page-jackpot-slots__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0px 0px 8px rgba(242, 193, 78, 0.4);
}

.page-jackpot-slots__section-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-jackpot-slots__text-block {
    margin-bottom: 20px;
    color: var(--text-main);
    font-size: 1.05em;
}

.page-jackpot-slots__card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.page-jackpot-slots__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-jackpot-slots__card-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-jackpot-slots__card-description {
    color: var(--text-secondary);
    font-size: 0.95em;
}

.page-jackpot-slots__btn-primary,
.page-jackpot-slots__btn-secondary,
.page-jackpot-slots__btn-play {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-jackpot-slots__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-jackpot-slots__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
    opacity: 0.9;
}

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

.page-jackpot-slots__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-main);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-jackpot-slots__btn-play {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    margin-top: 20px;
    width: fit-content;
}

.page-jackpot-slots__btn-play:hover {
    opacity: 0.9;
    transform: translateY(-3px);
}

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

.page-jackpot-slots__image-content {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 40px auto;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

/* Hero Section */
.page-jackpot-slots__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-jackpot-slots__hero-image-wrapper {
    width: 100%;
    position: relative;
    order: 1; /* Image first */
}

.page-jackpot-slots__hero-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
}

.page-jackpot-slots__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin-top: 40px; /* Space between image and text */
    order: 2; /* Text after image */
    padding: 0 20px;
    box-sizing: border-box;
}

.page-jackpot-slots__main-title {
    font-size: clamp(2.5em, 5vw, 3.8em);
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 900;
    text-shadow: 0px 0px 15px rgba(242, 193, 78, 0.6);
}

.page-jackpot-slots__hero-description {
    font-size: 1.2em;
    color: var(--text-main);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-jackpot-slots__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* About Section */
.page-jackpot-slots__about-section {
    padding: 80px 0;
    background-color: var(--background-dark);
}

/* Why Choose Section */
.page-jackpot-slots__why-choose-section {
    padding: 80px 0;
}

.page-jackpot-slots__dark-section {
    background-color: var(--deep-green);
}

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

/* Games Showcase Section */
.page-jackpot-slots__games-showcase {
    padding: 80px 0;
    background-color: var(--background-dark);
}

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

.page-jackpot-slots__game-card {
    text-align: center;
    padding: 20px;
}

.page-jackpot-slots__game-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
}

/* Promotions Section */
.page-jackpot-slots__promotions-section {
    padding: 80px 0;
}

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

/* How To Play Section */
.page-jackpot-slots__how-to-play-section {
    padding: 80px 0;
    background-color: var(--background-dark);
}

.page-jackpot-slots__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-jackpot-slots__step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 250px; /* Ensure cards have similar height */
}

.page-jackpot-slots__step-icon {
    background-color: var(--primary-color);
    color: var(--text-main);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(17, 168, 78, 0.5);
}

/* Tips Section */
.page-jackpot-slots__tips-section {
    padding: 80px 0;
}

.page-jackpot-slots__tips-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px auto;
    max-width: 900px;
    color: var(--text-main);
    font-size: 1.05em;
}

.page-jackpot-slots__tips-list li {
    background-color: var(--card-bg);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-jackpot-slots__tips-list li strong {
    color: var(--gold-color);
}

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

.page-jackpot-slots__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-jackpot-slots__faq-item {
    background-color: var(--card-bg);
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.page-jackpot-slots__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-jackpot-slots__faq-question::-webkit-details-marker {
    display: none;
}

.page-jackpot-slots__faq-question:hover {
    background-color: rgba(var(--primary-color), 0.1);
}

.page-jackpot-slots__faq-toggle {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-left: 15px;
}

.page-jackpot-slots__faq-answer {
    padding: 0 25px 20px 25px;
    color: var(--text-secondary);
    font-size: 1em;
    line-height: 1.6;
}

.page-jackpot-slots__faq-item[open] .page-jackpot-slots__faq-question {
    background-color: rgba(var(--primary-color), 0.05);
}

/* Final CTA Section */
.page-jackpot-slots__cta-final-section {
    padding: 80px 0;
    text-align: center;
    background-image: linear-gradient(rgba(10, 75, 44, 0.8), rgba(10, 75, 44, 0.8)), url('[GALLERY:cta_bg:1920x1080:23win_jackpot_background,casino_lights,winning_celebration]');
    background-size: cover;
    background-position: center;
    color: var(--text-main);
}

.page-jackpot-slots__cta-final-content {
    max-width: 900px;
}

.page-jackpot-slots__cta-final-section .page-jackpot-slots__section-title {
    color: var(--gold-color);
}

.page-jackpot-slots__cta-final-section .page-jackpot-slots__section-description {
    color: var(--text-main);
    margin-bottom: 50px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-jackpot-slots__section-title {
        font-size: 2em;
    }
    .page-jackpot-slots__main-title {
        font-size: clamp(2em, 4.5vw, 3.2em);
    }
    .page-jackpot-slots__hero-description {
        font-size: 1.1em;
    }
    .page-jackpot-slots__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-jackpot-slots__btn-primary, .page-jackpot-slots__btn-secondary {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .page-jackpot-slots {
        font-size: 15px;
    }
    .page-jackpot-slots__container {
        padding: 0 15px;
    }
    .page-jackpot-slots__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-jackpot-slots__section-description {
        font-size: 1em;
        margin-bottom: 40px;
    }
    .page-jackpot-slots__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-jackpot-slots__hero-description {
        font-size: 1em;
    }
    .page-jackpot-slots__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-jackpot-slots__btn-primary, .page-jackpot-slots__btn-secondary, .page-jackpot-slots__btn-play {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-jackpot-slots__hero-section,
    .page-jackpot-slots__about-section,
    .page-jackpot-slots__why-choose-section,
    .page-jackpot-slots__games-showcase,
    .page-jackpot-slots__promotions-section,
    .page-jackpot-slots__how-to-play-section,
    .page-jackpot-slots__tips-section,
    .page-jackpot-slots__faq-section,
    .page-jackpot-slots__cta-final-section {
        padding: 40px 0;
    }
    .page-jackpot-slots__hero-content {
        margin-top: 20px;
    }
    .page-jackpot-slots__features-grid,
    .page-jackpot-slots__game-grid,
    .page-jackpot-slots__promo-grid,
    .page-jackpot-slots__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    /* Mobile image responsiveness */
    .page-jackpot-slots img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-jackpot-slots__section,
    .page-jackpot-slots__card,
    .page-jackpot-slots__container,
    .page-jackpot-slots__cta-buttons,
    .page-jackpot-slots__button-group,
    .page-jackpot-slots__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-jackpot-slots__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    .page-jackpot-slots__hero-image {
        border-radius: 0;
    }
    .page-jackpot-slots__hero-section {
        padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
    }
    .page-jackpot-slots__video-section {
        padding-top: 10px !important;
    }
    .page-jackpot-slots__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-jackpot-slots__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-jackpot-slots__main-title {
        font-size: clamp(1.5em, 8vw, 2em);
    }
    .page-jackpot-slots__section-title {
        font-size: 1.5em;
    }
    .page-jackpot-slots__hero-description {
        font-size: 0.95em;
    }
    .page-jackpot-slots__btn-primary, .page-jackpot-slots__btn-secondary {
        font-size: 0.9em;
        padding: 10px 15px;
    }
}