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

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

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

.page-jackpot-games__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-jackpot-games__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for hero image */
    overflow: hidden;
}

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

.page-jackpot-games__hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin-top: 40px;
    padding: 0 20px;
}

.page-jackpot-games__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-jackpot-games__hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    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,
.page-jackpot-games__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

.page-jackpot-games__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-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

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

.page-jackpot-games__section-title {
    font-size: 2.5rem;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-jackpot-games__text-block {
    font-size: 1.05rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-jackpot-games__about-section,
.page-jackpot-games__how-to-play,
.page-jackpot-games__faq-section {
    padding: 80px 0;
    background-color: var(--background-color);
    color: var(--text-main);
}

.page-jackpot-games__game-categories,
.page-jackpot-games__promotions,
.page-jackpot-games__contact-cta {
    padding: 80px 0;
    background-color: var(--deep-green);
    color: var(--text-main);
}

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

.page-jackpot-games__light-bg {
    background-color: var(--background-color);
    color: var(--text-main);
}

.page-jackpot-games__features-grid,
.page-jackpot-games__game-grid,
.page-jackpot-games__promo-grid,
.page-jackpot-games__steps-grid {
    display: grid;
    gap: 30px;
    margin-top: 50px;
}

.page-jackpot-games__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    text-align: center;
}

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

.page-jackpot-games__feature-item:hover {
    transform: translateY(-10px);
}

.page-jackpot-games__feature-icon {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}

.page-jackpot-games__feature-title {
    font-size: 1.6rem;
    color: var(--glow-color);
    margin-bottom: 15px;
}

.page-jackpot-games__feature-description {
    font-size: 1rem;
    color: var(--text-secondary);
}

.page-jackpot-games__game-grid,
.page-jackpot-games__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-jackpot-games__game-card,
.page-jackpot-games__promo-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-jackpot-games__game-image,
.page-jackpot-games__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-jackpot-games__game-title,
.page-jackpot-games__promo-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    padding: 20px 20px 10px 20px;
}

.page-jackpot-games__game-description,
.page-jackpot-games__promo-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0 20px 20px 20px;
    flex-grow: 1;
}

.page-jackpot-games__btn-link {
    background: var(--button-gradient);
    color: var(--text-main);
    padding: 10px 20px;
    margin: 0 20px 20px 20px;
    text-align: center;
    border: none;
    box-shadow: 0 2px 10px rgba(42, 209, 111, 0.3);
}

.page-jackpot-games__btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 209, 111, 0.5);
}

.page-jackpot-games__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    text-align: center;
}

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

.page-jackpot-games__step-item:hover {
    transform: translateY(-10px);
}

.page-jackpot-games__step-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--glow-color);
    margin-bottom: 15px;
    line-height: 1;
}

.page-jackpot-games__step-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 10px;
}

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

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

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

.page-jackpot-games__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-jackpot-games__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--text-main);
    background-color: var(--deep-green);
    transition: background-color 0.3s ease;
}

.page-jackpot-games__faq-item summary:hover {
    background-color: var(--border-color);
}

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

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

.page-jackpot-games__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 20px;
    color: var(--gold-color);
}

.page-jackpot-games__faq-answer {
    padding: 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    background-color: var(--card-bg);
    border-top: 1px solid var(--divider-color);
}

.page-jackpot-games__contact-cta {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-jackpot-games__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-jackpot-games__section-title {
        font-size: 2rem;
    }
    .page-jackpot-games__hero-image-wrapper {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-jackpot-games__hero-section {
        padding-bottom: 40px;
    }
    .page-jackpot-games__hero-content {
        margin-top: 20px;
    }
    .page-jackpot-games__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-jackpot-games__hero-description {
        font-size: 1rem;
    }
    .page-jackpot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-jackpot-games__btn-primary,
    .page-jackpot-games__btn-secondary,
    .page-jackpot-games__btn-link {
        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__section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    .page-jackpot-games__text-block {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    .page-jackpot-games__about-section,
    .page-jackpot-games__game-categories,
    .page-jackpot-games__how-to-play,
    .page-jackpot-games__promotions,
    .page-jackpot-games__faq-section,
    .page-jackpot-games__contact-cta {
        padding: 40px 0;
    }
    .page-jackpot-games__container {
        padding: 0 15px;
    }

    .page-jackpot-games__features-grid,
    .page-jackpot-games__game-grid,
    .page-jackpot-games__promo-grid,
    .page-jackpot-games__steps-grid {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    /* Images 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__feature-item,
    .page-jackpot-games__game-card,
    .page-jackpot-games__promo-card,
    .page-jackpot-games__step-item,
    .page-jackpot-games__faq-item,
    .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;
        overflow: hidden !important; /* Ensure content doesn't overflow */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-jackpot-games__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    .page-jackpot-games__hero-image {
        height: 250px; /* Adjust height for mobile hero */
    }
    .page-jackpot-games__feature-icon {
        width: 150px;
    }
    .page-jackpot-games__game-image,
    .page-jackpot-games__promo-image {
        height: 180px;
    }
    .page-jackpot-games__faq-item summary {
        font-size: 1rem;
        padding: 15px;
    }
    .page-jackpot-games__faq-answer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-jackpot-games__main-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    .page-jackpot-games__section-title {
        font-size: 1.6rem;
    }
    .page-jackpot-games__hero-image {
        height: 200px;
    }
    .page-jackpot-games__btn-primary,
    .page-jackpot-games__btn-secondary,
    .page-jackpot-games__btn-link {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
}