:root {
    --page-jackpot-games-primary: #11A84E; /* Main color */
    --page-jackpot-games-secondary: #22C768; /* Auxiliary color */
    --page-jackpot-games-bg-card: #11271B; /* Card Background */
    --page-jackpot-games-bg-main: #08160F; /* Main Background */
    --page-jackpot-games-text-main: #F2FFF6; /* Main Text */
    --page-jackpot-games-text-secondary: #A7D9B8; /* Secondary Text */
    --page-jackpot-games-border: #2E7A4E; /* Border */
    --page-jackpot-games-glow: #57E38D; /* Glow */
    --page-jackpot-games-gold: #F2C14E; /* Gold */
    --page-jackpot-games-divider: #1E3A2A; /* Divider */
    --page-jackpot-games-deep-green: #0A4B2C; /* Deep Green */
    --page-jackpot-games-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button Gradient */
}

.page-jackpot-games {
    background-color: var(--page-jackpot-games-bg-main);
    color: var(--page-jackpot-games-text-main);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

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

.page-jackpot-games__section-title {
    font-size: 2.8em;
    color: var(--page-jackpot-games-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-jackpot-games__paragraph {
    font-size: 1.1em;
    color: var(--page-jackpot-games-text-secondary);
    max-width: 900px;
    margin: 0 auto 30px auto;
    line-height: 1.7;
}

/* Hero Section */
.page-jackpot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding for first section */
    overflow: hidden;
    background-color: var(--page-jackpot-games-deep-green);
}

.page-jackpot-games__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height to prevent excessive stretching on large screens */
    overflow: hidden;
}

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

.page-jackpot-games__hero-content {
    position: relative;
    padding: 40px 20px;
    text-align: center;
    max-width: 900px;
    margin-top: -80px; /* Overlap slightly with image for visual flow */
    background-color: var(--page-jackpot-games-bg-main); /* Ensure contrast */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 1;
    transform: translateY(-20px); /* Lift slightly */
}

.page-jackpot-games__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
    color: var(--page-jackpot-games-gold);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-jackpot-games__intro-text {
    font-size: 1.2em;
    color: var(--page-jackpot-games-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-jackpot-games__btn-primary {
    background: var(--page-jackpot-games-btn-gradient);
    color: var(--page-jackpot-games-text-main);
    border: none;
}

.page-jackpot-games__btn-primary:hover {
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.4);
    transform: translateY(-2px);
}

.page-jackpot-games__btn-secondary {
    background-color: transparent;
    color: var(--page-jackpot-games-gold);
    border: 2px solid var(--page-jackpot-games-gold);
}

.page-jackpot-games__btn-secondary:hover {
    background-color: var(--page-jackpot-games-gold);
    color: var(--page-jackpot-games-bg-main);
    transform: translateY(-2px);
}

.page-jackpot-games__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Card Styles */
.page-jackpot-games__card {
    background-color: var(--page-jackpot-games-bg-card);
    border: 1px solid var(--page-jackpot-games-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
    color: var(--page-jackpot-games-text-main);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-jackpot-games__card-title {
    font-size: 1.5em;
    color: var(--page-jackpot-games-gold);
    margin-top: 15px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-jackpot-games__card-text {
    font-size: 1em;
    color: var(--page-jackpot-games-text-secondary);
    line-height: 1.7;
}

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

.page-jackpot-games__benefit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-jackpot-games__benefit-icon {
    width: 100%;
    max-width: 150px; /* Example size, adjust as needed */
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
    object-fit: cover;
}

/* Game Type Grid */
.page-jackpot-games__game-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

/* Lists (Numbered and Bullet) */
.page-jackpot-games__numbered-list,
.page-jackpot-games__bullet-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 900px;
    text-align: left;
}

.page-jackpot-games__numbered-list li,
.page-jackpot-games__bullet-list li {
    background-color: var(--page-jackpot-games-bg-card);
    border: 1px solid var(--page-jackpot-games-border);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.page-jackpot-games__numbered-list li:last-child,
.page-jackpot-games__bullet-list li:last-child {
    margin-bottom: 0;
}

.page-jackpot-games__list-title {
    font-size: 1.4em;
    color: var(--page-jackpot-games-primary);
    margin-top: 0;
    margin-bottom: 10px;
}

.page-jackpot-games__list-text {
    font-size: 1em;
    color: var(--page-jackpot-games-text-secondary);
    line-height: 1.6;
}

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

.page-jackpot-games__promo-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

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

.page-jackpot-games__faq-item {
    background-color: var(--page-jackpot-games-bg-card);
    border: 1px solid var(--page-jackpot-games-border);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-jackpot-games__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(--page-jackpot-games-gold);
    background-color: var(--page-jackpot-games-bg-card);
    position: relative;
    user-select: none;
}

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

.page-jackpot-games__faq-question::marker {
    display: none;
}

.page-jackpot-games__faq-qtext {
    flex-grow: 1;
    text-align: left;
    margin-right: 15px;
}

.page-jackpot-games__faq-toggle {
    font-size: 1.5em;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--page-jackpot-games-gold);
    border: 1px solid var(--page-jackpot-games-gold);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.page-jackpot-games__faq-item[open] .page-jackpot-games__faq-toggle {
    transform: rotate(45deg);
}

.page-jackpot-games__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--page-jackpot-games-text-secondary);
    text-align: left;
    line-height: 1.7;
}

.page-jackpot-games__faq-answer p {
    margin: 0;
}

/* Final CTA Section */
.page-jackpot-games__final-cta {
    background-color: var(--page-jackpot-games-deep-green);
    padding: 80px 0;
    margin-top: 60px;
}

.page-jackpot-games__cta-content {
    max-width: 800px;
}

.page-jackpot-games__cta-content .page-jackpot-games__section-title {
    color: var(--page-jackpot-games-gold);
    font-size: clamp(2em, 3.5vw, 3em);
}

.page-jackpot-games__cta-content .page-jackpot-games__paragraph {
    font-size: 1.15em;
    color: var(--page-jackpot-games-text-main);
    margin-bottom: 40px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-jackpot-games__section-title {
        font-size: 2.2em;
    }
    .page-jackpot-games__paragraph {
        font-size: 1em;
    }
    .page-jackpot-games__hero-content {
        margin-top: -60px;
    }
}

@media (max-width: 768px) {
    .page-jackpot-games__container {
        padding: 0 15px;
    }
    .page-jackpot-games__section {
        padding: 40px 0;
    }
    .page-jackpot-games__section-title {
        font-size: 1.8em;
    }
    .page-jackpot-games__hero-content {
        padding: 30px 15px;
        margin-top: -40px;
        transform: translateY(-10px);
    }
    .page-jackpot-games__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-jackpot-games__intro-text {
        font-size: 1em;
    }
    .page-jackpot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-jackpot-games__btn-primary,
    .page-jackpot-games__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-jackpot-games__btn-large {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    /* Images and Videos Responsive */
    .page-jackpot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-jackpot-games__hero-image-wrapper,
    .page-jackpot-games__benefit-grid,
    .page-jackpot-games__game-type-grid,
    .page-jackpot-games__promo-grid,
    .page-jackpot-games__cta-content,
    .page-jackpot-games__faq-list,
    .page-jackpot-games__numbered-list,
    .page-jackpot-games__bullet-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-jackpot-games__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    .page-jackpot-games__benefit-card,
    .page-jackpot-games__game-type-card,
    .page-jackpot-games__promo-card {
        padding: 20px;
    }
    .page-jackpot-games__card-title {
        font-size: 1.3em;
    }
    .page-jackpot-games__list-title {
        font-size: 1.2em;
    }
    .page-jackpot-games__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-jackpot-games__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-jackpot-games__cta-content .page-jackpot-games__section-title {
        font-size: 2em;
    }
    .page-jackpot-games__cta-content .page-jackpot-games__paragraph {
        font-size: 1em;
    }
}

/* Ensure no filter on images */
.page-jackpot-games img {
    filter: none !important;
}

/* Contrast fix if needed - for specific elements */
.page-jackpot-games__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-jackpot-games__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}