/* style/jackpot-games.css */
: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 the page */
    background-color: var(--background);
}

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

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

.page-jackpot-games__hero-image-wrapper {
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-jackpot-games__hero-content {
    position: relative;
    z-index: 1;
    padding: 30px 20px;
    max-width: 900px;
    margin-top: -100px; /* Pull content up slightly over image for better flow */
    background: rgba(17, 39, 27, 0.8); /* Card BG with transparency */
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.page-jackpot-games__main-title {
    font-size: clamp(2em, 4vw, 3.2em);
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-jackpot-games__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    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-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.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-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(17, 168, 78, 0.3);
}

.page-jackpot-games__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.5);
}

.page-jackpot-games__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

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

/* About Jackpot Section */
.page-jackpot-games__about-jackpot-section {
    padding: 60px 0;
    background-color: var(--card-bg);
    border-top: 1px solid var(--divider-color);
}

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

.page-jackpot-games__image-left {
    flex: 1;
    min-width: 200px; /* Minimum size requirement */
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-jackpot-games__text-block {
    flex: 2;
    line-height: 1.7;
    font-size: 1.05em;
    color: var(--text-secondary);
}

.page-jackpot-games__text-block p {
    margin-bottom: 20px;
}

.page-jackpot-games__text-block .page-jackpot-games__btn-primary {
    margin-top: 20px;
}

/* Game List Section */
.page-jackpot-games__game-list-section {
    padding: 60px 0;
    background-color: var(--background);
}

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

.page-jackpot-games__game-card,
.page-jackpot-games__promotion-card,
.page-jackpot-games__step-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 20px;
}

.page-jackpot-games__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, adjust as needed */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.page-jackpot-games__card-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 20px 10px;
}

.page-jackpot-games__card-text {
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 20px 20px;
    flex-grow: 1;
}

.page-jackpot-games__btn-play {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    margin: 0 20px;
    box-shadow: 0 2px 10px rgba(42, 209, 111, 0.3);
}

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

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

/* Why FV88 Section */
.page-jackpot-games__why-fv88-section {
    padding: 60px 0;
    background-color: var(--card-bg);
    border-top: 1px solid var(--divider-color);
}

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

.page-jackpot-games__advantage-item {
    background-color: var(--background);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-jackpot-games__advantage-icon {
    width: 100%;
    max-width: 200px; /* Ensure icons are not tiny */
    height: auto;
    margin-bottom: 20px;
    object-fit: cover;
    border-radius: 8px;
}

.page-jackpot-games__advantage-title {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
}

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

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

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

/* How To Play Section */
.page-jackpot-games__how-to-play-section {
    padding: 60px 0;
    background-color: var(--card-bg);
    border-top: 1px solid var(--divider-color);
}

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

.page-jackpot-games__step-card {
    background-color: var(--background);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-jackpot-games__step-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-jackpot-games__step-text {
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

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

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

.page-jackpot-games__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 25px;
    background-color: var(--deep-green);
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.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.5em;
    line-height: 1;
    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: 20px 25px;
    background-color: var(--card-bg);
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95em;
}

.page-jackpot-games__faq-answer p {
    margin-bottom: 10px;
}

.page-jackpot-games__faq-answer .page-jackpot-games__btn-play {
    margin-top: 15px;
    margin-left: 0;
    margin-right: 0;
    display: inline-block;
    max-width: 200px;
}

/* Final CTA Section */
.page-jackpot-games__cta-final-section {
    padding: 80px 0;
    background-color: var(--deep-green);
    text-align: center;
    border-top: 1px solid var(--divider-color);
}

.page-jackpot-games__cta-final-section .page-jackpot-games__section-title {
    color: var(--gold-color);
    padding-top: 0;
}

.page-jackpot-games__cta-final-section .page-jackpot-games__section-description {
    color: var(--text-main);
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-jackpot-games__hero-content {
        margin-top: -80px;
        padding: 25px 20px;
    }
    .page-jackpot-games__main-title {
        font-size: clamp(1.8em, 4.5vw, 2.8em);
    }
    .page-jackpot-games__section-title {
        font-size: 2em;
    }
    .page-jackpot-games__content-wrapper {
        flex-direction: column;
    }
    .page-jackpot-games__image-left {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .page-jackpot-games__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-jackpot-games__hero-section {
        padding-bottom: 40px;
    }

    .page-jackpot-games__hero-content {
        margin-top: -60px;
        padding: 20px 15px;
        width: calc(100% - 30px);
    }

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

    .page-jackpot-games__hero-description,
    .page-jackpot-games__section-description,
    .page-jackpot-games__text-block p,
    .page-jackpot-games__advantage-text,
    .page-jackpot-games__card-text,
    .page-jackpot-games__step-text,
    .page-jackpot-games__faq-answer p {
        font-size: 1em;
    }

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

    .page-jackpot-games__btn-primary,
    .page-jackpot-games__btn-secondary,
    .page-jackpot-games__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-games__section-title {
        font-size: 1.8em;
        padding-top: 20px;
    }

    .page-jackpot-games__content-wrapper {
        gap: 20px;
    }

    .page-jackpot-games__image-left,
    .page-jackpot-games__card-image,
    .page-jackpot-games__advantage-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-jackpot-games__game-grid,
    .page-jackpot-games__advantages-grid,
    .page-jackpot-games__promotion-grid,
    .page-jackpot-games__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-jackpot-games__game-card,
    .page-jackpot-games__promotion-card,
    .page-jackpot-games__step-card,
    .page-jackpot-games__advantage-item,
    .page-jackpot-games__faq-item,
    .page-jackpot-games__hero-section,
    .page-jackpot-games__about-jackpot-section,
    .page-jackpot-games__game-list-section,
    .page-jackpot-games__why-fv88-section,
    .page-jackpot-games__promotions-section,
    .page-jackpot-games__how-to-play-section,
    .page-jackpot-games__faq-section,
    .page-jackpot-games__cta-final-section,
    .page-jackpot-games__video-section,
    .page-jackpot-games__video-container,
    .page-jackpot-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

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

    .page-jackpot-games__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }

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

    .page-jackpot-games__video-section {
        padding-top: 10px !important;
    }

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

    .page-jackpot-games__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-jackpot-games__main-title {
        font-size: 1.6em;
    }
    .page-jackpot-games__section-title {
        font-size: 1.5em;
    }
    .page-jackpot-games__hero-content {
        margin-top: -40px;
    }
    .page-jackpot-games__card-image {
        height: 150px;
    }
}