:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background: #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 {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for dark body background */
    background-color: var(--background); /* Ensure consistency */
}

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

.page-jackpot-games__section-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-jackpot-games__text-block {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-secondary);
}

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

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

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

.page-jackpot-games__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

.page-jackpot-games__hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.page-jackpot-games__hero-description {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 30px;
}

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

/* Buttons */
.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary,
.page-jackpot-games__btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}

.page-jackpot-games__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    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-color: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
}

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

.page-jackpot-games__btn-small {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 8px rgba(42, 209, 111, 0.3);
}

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

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

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

/* Games Showcase Section */
.page-jackpot-games__games-showcase-section {
    padding: 80px 0;
    background-color: var(--card-bg);
}

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

.page-jackpot-games__game-card {
    background-color: var(--background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-color);
}

.page-jackpot-games__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
}

.page-jackpot-games__card-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 15px;
    padding: 0 15px;
}

.page-jackpot-games__card-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 25px;
    padding: 0 15px;
    flex-grow: 1;
}

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

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

.page-jackpot-games__benefit-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 1px solid var(--border-color);
}

.page-jackpot-games__benefit-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-jackpot-games__benefit-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

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

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

.page-jackpot-games__guide-step {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-color);
}

.page-jackpot-games__guide-step-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-jackpot-games__guide-step-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Promotions Section */
.page-jackpot-games__promotions-section {
    padding: 80px 0;
    background-color: var(--card-bg);
}

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

.page-jackpot-games__promotion-card {
    background-color: var(--background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--border-color);
}

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

.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-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
}

.page-jackpot-games__feature-icon {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    display: block; /* Ensure it respects max-width */
    margin-left: auto;
    margin-right: auto;
}

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

.page-jackpot-games__feature-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
}

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

.page-jackpot-games__faq-list {
    margin-top: 40px;
}

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

.page-jackpot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green);
    transition: background-color 0.3s ease;
}

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

.page-jackpot-games__faq-toggle {
    font-size: 24px;
    line-height: 1;
    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: 15px 25px 20px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--background);
}

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

/* Ensure summary doesn't have default marker */
.page-jackpot-games__faq-item summary {
    list-style: none;
}

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

/* CTA Section */
.page-jackpot-games__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--background);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-jackpot-games__hero-section {
        padding: 40px 0;
        padding-top: 10px;
    }

    .page-jackpot-games__hero-title {
        font-size: clamp(32px, 4.5vw, 56px);
    }

    .page-jackpot-games__hero-description {
        font-size: 18px;
    }

    .page-jackpot-games__section-title {
        font-size: clamp(24px, 3.5vw, 42px);
    }

    .page-jackpot-games__text-block {
        font-size: 16px;
    }

    .page-jackpot-games__btn-primary,
    .page-jackpot-games__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
    }

    .page-jackpot-games__btn-small {
        padding: 8px 18px;
        font-size: 14px;
    }

    .page-jackpot-games__game-card,
    .page-jackpot-games__benefit-item,
    .page-jackpot-games__guide-step,
    .page-jackpot-games__promotion-card,
    .page-jackpot-games__feature-item {
        padding: 25px;
    }

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

@media (max-width: 768px) {
    .page-jackpot-games__hero-section {
        padding: 30px 0;
        padding-top: 10px !important;
    }

    .page-jackpot-games__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-jackpot-games__hero-content {
        padding: 0 15px;
    }

    .page-jackpot-games__hero-title {
        font-size: clamp(28px, 6vw, 48px);
    }

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

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

    .page-jackpot-games__btn-primary,
    .page-jackpot-games__btn-secondary {
        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__btn-small {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-jackpot-games__centered-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-jackpot-games__container,
    .page-jackpot-games__game-cards-grid,
    .page-jackpot-games__benefits-grid,
    .page-jackpot-games__guide-steps,
    .page-jackpot-games__promotion-cards-grid,
    .page-jackpot-games__features-grid,
    .page-jackpot-games__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }

    .page-jackpot-games__section-title {
        font-size: clamp(22px, 5vw, 36px);
        margin-bottom: 30px;
    }

    .page-jackpot-games__text-block {
        font-size: 15px;
        line-height: 1.6;
    }

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

    .page-jackpot-games__card-image {
        height: auto; /* Allow image to scale with aspect ratio */
    }

    .page-jackpot-games__feature-icon {
        width: 150px;
        height: auto;
    }

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

    .page-jackpot-games__faq-answer {
        font-size: 14px;
        padding: 10px 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-jackpot-games__hero-title {
        font-size: clamp(24px, 7vw, 40px);
    }

    .page-jackpot-games__hero-description {
        font-size: 15px;
    }

    .page-jackpot-games__btn-primary,
    .page-jackpot-games__btn-secondary {
        font-size: 15px;
        padding: 10px 20px;
    }

    .page-jackpot-games__section-title {
        font-size: clamp(20px, 6vw, 32px);
    }

    .page-jackpot-games__game-card,
    .page-jackpot-games__benefit-item,
    .page-jackpot-games__guide-step,
    .page-jackpot-games__promotion-card,
    .page-jackpot-games__feature-item {
        padding: 20px;
    }

    .page-jackpot-games__card-title,
    .page-jackpot-games__benefit-title,
    .page-jackpot-games__guide-step-title,
    .page-jackpot-games__feature-title {
        font-size: 20px;
    }
}