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

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

.page-jackpot-games__section {
    padding: 60px 0;
    position: relative;
}

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

.page-jackpot-games__section-title {
    font-size: 3em;
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-jackpot-games__section-subtitle {
    font-size: 1.2em;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 40px;
}

/* Hero Section */
.page-jackpot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--color-deep-green);
}

.page-jackpot-games__hero-image-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-jackpot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.8); /* Allow brightness filter for background effect */
}

.page-jackpot-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin-top: 60px; /* Space from top */
}

.page-jackpot-games__main-title {
    font-size: clamp(2.5em, 4vw, 3.5em); /* Using clamp for responsive H1 */
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 0 15px var(--color-glow);
}

.page-jackpot-games__hero-description {
    font-size: 1.15em;
    color: var(--color-text-main);
    margin-bottom: 30px;
}

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

.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-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-jackpot-games__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-jackpot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(34, 199, 104, 0.6);
}

.page-jackpot-games__btn-secondary {
    background: transparent;
    color: var(--color-glow);
    border: 2px solid var(--color-glow);
    box-shadow: 0 5px 15px rgba(87, 227, 141, 0.2);
}

.page-jackpot-games__btn-secondary:hover {
    background: var(--color-glow);
    color: var(--color-deep-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(87, 227, 141, 0.4);
}

.page-jackpot-games__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

/* Introduction Section */
.page-jackpot-games__introduction {
    background-color: var(--color-background);
    padding-top: 80px;
}

.page-jackpot-games__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.page-jackpot-games__text-block {
    flex: 1;
    min-width: 300px;
}

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

.page-jackpot-games__image-content {
    flex: 1;
    min-width: 400px;
    max-width: 600px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
}

/* Features Section */
.page-jackpot-games__features {
    background-color: var(--color-deep-green);
}

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

.page-jackpot-games__card {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-jackpot-games__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
}

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

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

/* How-to-Play Section */
.page-jackpot-games__how-to-play {
    background-color: var(--color-background);
}

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

.page-jackpot-games__dark-section .page-jackpot-games__section-subtitle {
    color: var(--color-text-secondary);
}

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

.page-jackpot-games__step-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Game Types Section */
.page-jackpot-games__game-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-jackpot-games__game-item .page-jackpot-games__card-image {
    height: 180px;
}

/* Promotions Section */
.page-jackpot-games__promotions {
    background-color: var(--color-background);
}

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

.page-jackpot-games__promo-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    overflow: hidden;
    padding: 0;
}

.page-jackpot-games__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid var(--color-border);
}

.page-jackpot-games__promo-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-jackpot-games__promo-content .page-jackpot-games__card-title {
    margin-top: 0;
    font-size: 1.4em;
}

.page-jackpot-games__promo-content .page-jackpot-games__card-description {
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-jackpot-games__full-width-cta {
    text-align: center;
    margin-top: 30px;
}

.page-jackpot-games__full-width-cta p {
    color: var(--color-text-main);
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* Tips Section */
.page-jackpot-games__tips {
    background-color: var(--color-deep-green);
}

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

/* FAQ Section */
.page-jackpot-games__faq {
    background-color: var(--color-background);
}

.page-jackpot-games__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-jackpot-games__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    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(--color-text-main);
    background-color: var(--color-card-bg);
    transition: background-color 0.3s ease;
}

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

.page-jackpot-games__faq-qtext {
    flex-grow: 1;
}

.page-jackpot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--color-glow);
    margin-left: 15px;
    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;
    color: var(--color-text-secondary);
    font-size: 1em;
    line-height: 1.6;
}

/* Images responsiveness */
.page-jackpot-games img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-jackpot-games__section-title {
        font-size: 2.5em;
    }

    .page-jackpot-games__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }

    .page-jackpot-games__content-wrapper {
        flex-direction: column;
    }

    .page-jackpot-games__image-content {
        min-width: unset;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-jackpot-games__section {
        padding: 40px 0;
    }

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

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

    .page-jackpot-games__hero-section {
        min-height: 400px;
        padding-top: 10px !important;
    }

    .page-jackpot-games__hero-content {
        padding: 30px 15px;
        margin-top: 30px;
    }

    .page-jackpot-games__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-jackpot-games__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-jackpot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-jackpot-games__btn-primary,
    .page-jackpot-games__btn-secondary,
    .page-jackpot-games a[class*="button"],
    .page-jackpot-games 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-jackpot-games__cta-buttons,
    .page-jackpot-games__button-group,
    .page-jackpot-games__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;
    }

    .page-jackpot-games__card {
        padding: 20px;
    }

    .page-jackpot-games__card-image {
        height: 150px;
    }

    .page-jackpot-games__promo-image {
        height: 180px;
    }

    .page-jackpot-games__promo-content {
        padding: 20px;
    }

    .page-jackpot-games__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-jackpot-games__faq-answer {
        padding: 0 20px 15px;
    }

    /* Mobile image responsiveness */
    .page-jackpot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-jackpot-games__section,
    .page-jackpot-games__card,
    .page-jackpot-games__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure content images are not smaller than 200px where applicable, override if necessary */
    .page-jackpot-games__image-content,
    .page-jackpot-games__card-image,
    .page-jackpot-games__promo-image {
        min-width: 200px;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-jackpot-games__section-title {
        font-size: 1.8em;
    }

    .page-jackpot-games__main-title {
        font-size: clamp(1.5em, 7vw, 2em);
    }

    .page-jackpot-games__hero-content {
        margin-top: 15px;
    }

    .page-jackpot-games__btn-primary,
    .page-jackpot-games__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
}