/* style/jackpot-games.css */

/* Biến màu sắc tùy chỉnh */
:root {
    --page-jackpot-games-primary-color: #11A84E;
    --page-jackpot-games-secondary-color: #22C768;
    --page-jackpot-games-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-jackpot-games-card-bg: #11271B;
    --page-jackpot-games-background: #08160F;
    --page-jackpot-games-text-main: #F2FFF6;
    --page-jackpot-games-text-secondary: #A7D9B8;
    --page-jackpot-games-border: #2E7A4E;
    --page-jackpot-games-glow: #57E38D;
    --page-jackpot-games-gold: #F2C14E;
    --page-jackpot-games-divider: #1E3A2A;
    --page-jackpot-games-deep-green: #0A4B2C;
}

/* Global styles for the page content, assuming body has a dark background from shared.css */
.page-jackpot-games {
    font-family: 'Arial', sans-serif;
    color: var(--page-jackpot-games-text-main); /* Light text for dark body background */
    background-color: var(--page-jackpot-games-background);
    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;
    position: relative;
    overflow: hidden;
}

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

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

.page-jackpot-games__background {
    background-color: var(--page-jackpot-games-background);
    color: var(--page-jackpot-games-text-main);
}

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

.page-jackpot-games__gold-text {
    color: var(--page-jackpot-games-gold);
}

.page-jackpot-games__text-main {
    color: var(--page-jackpot-games-text-main);
}

.page-jackpot-games__text-secondary {
    color: var(--page-jackpot-games-text-secondary);
}

.page-jackpot-games__section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--page-jackpot-games-gold);
}

.page-jackpot-games__section-description {
    font-size: clamp(16px, 2vw, 18px);
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--page-jackpot-games-text-secondary);
}

/* Hero Section */
.page-jackpot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* body handles top padding, this is for visual spacing */
    min-height: 700px;
    overflow: hidden;
}

.page-jackpot-games__hero-image-wrapper {
    width: 100%;
    position: relative;
    order: 1; /* Image first */
}

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

.page-jackpot-games__hero-content {
    order: 2; /* Content after image */
    position: relative;
    z-index: 10;
    padding: 40px 20px;
    max-width: 900px;
    text-align: center;
    margin-top: -100px; /* Pull content up slightly over the image for better flow */
    background-color: rgba(17, 39, 27, 0.8); /* Card BG with transparency for readability */
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.page-jackpot-games__main-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--page-jackpot-games-gold);
    letter-spacing: -0.02em;
}

.page-jackpot-games__subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    margin-bottom: 30px;
    line-height: 1.5;
    color: var(--page-jackpot-games-text-main);
}

.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-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;
    min-width: 180px;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-jackpot-games__btn-primary {
    background: var(--page-jackpot-games-button-gradient);
    color: #ffffff; /* White text for gradient button */
    border: 2px solid transparent;
    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(--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-background);
    transform: translateY(-3px);
}

/* Feature Section */
.page-jackpot-games__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

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

.page-jackpot-games__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-jackpot-games__feature-icon {
    width: 100%; /* Ensure full width in card */
    height: auto;
    max-height: 200px; /* Limit height for better presentation */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-jackpot-games__feature-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--page-jackpot-games-text-main);
}

.page-jackpot-games__feature-text {
    font-size: 16px;
    color: var(--page-jackpot-games-text-secondary);
}

/* Games Showcase */
.page-jackpot-games__games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-jackpot-games__game-card {
    background-color: var(--page-jackpot-games-card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid var(--page-jackpot-games-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-jackpot-games__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-jackpot-games__game-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 20px;
}

.page-jackpot-games__game-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--page-jackpot-games-text-main);
}

.page-jackpot-games__game-description {
    font-size: 15px;
    color: var(--page-jackpot-games-text-secondary);
    flex-grow: 1;
    margin-bottom: 20px;
}

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

/* How to Play Section */
.page-jackpot-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-jackpot-games__step-card {
    background-color: var(--page-jackpot-games-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--page-jackpot-games-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-jackpot-games__step-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--page-jackpot-games-gold);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    line-height: 1;
}

.page-jackpot-games__step-number::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: var(--page-jackpot-games-gold);
}

.page-jackpot-games__step-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--page-jackpot-games-text-main);
}

.page-jackpot-games__step-text {
    font-size: 16px;
    color: var(--page-jackpot-games-text-secondary);
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-jackpot-games__btn-link {
    color: var(--page-jackpot-games-secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-jackpot-games__btn-link:hover {
    color: var(--page-jackpot-games-gold);
}

/* Tips Section */
.page-jackpot-games__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-jackpot-games__tip-card {
    background-color: var(--page-jackpot-games-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
    border: 1px solid var(--page-jackpot-games-border);
}

.page-jackpot-games__tip-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--page-jackpot-games-text-main);
}

.page-jackpot-games__tip-text {
    font-size: 16px;
    color: var(--page-jackpot-games-text-secondary);
}

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

/* Promotions Section */
.page-jackpot-games__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-jackpot-games__promo-card {
    background-color: var(--page-jackpot-games-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
    border: 1px solid var(--page-jackpot-games-border);
}

.page-jackpot-games__promo-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--page-jackpot-games-text-main);
}

.page-jackpot-games__promo-text {
    font-size: 16px;
    color: var(--page-jackpot-games-text-secondary);
    margin-bottom: 20px;
}

/* FAQ Section */
.page-jackpot-games__faq-list {
    max-width: 900px;
    margin: 50px auto 0;
    text-align: left;
}

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

.page-jackpot-games__faq-item[open] {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.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(--page-jackpot-games-text-main);
    cursor: pointer;
    background-color: var(--page-jackpot-games-deep-green);
    border-bottom: 1px solid var(--page-jackpot-games-divider);
    list-style: none; /* Hide default marker for details summary */
}

.page-jackpot-games__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome/Safari */
}

.page-jackpot-games__faq-qtext {
    flex-grow: 1;
    color: var(--page-jackpot-games-text-main);
}

.page-jackpot-games__faq-toggle {
    font-size: 24px;
    font-weight: 700;
    margin-left: 15px;
    color: var(--page-jackpot-games-gold);
}

.page-jackpot-games__faq-answer {
    padding: 20px 25px;
    font-size: 16px;
    color: var(--page-jackpot-games-text-secondary);
    line-height: 1.6;
}

/* Final CTA Section */
.page-jackpot-games__cta-final {
    padding: 80px 0;
    background-image: linear-gradient(rgba(8, 22, 15, 0.9), rgba(8, 22, 15, 0.9)), url('[GALLERY:bg:1920x600:awin68 win,jackpot games,golden coins,abstract background,vietnam]');
    background-size: cover;
    background-position: center;
}

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

.page-jackpot-games__btn-large {
    padding: 18px 40px;
    font-size: 20px;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-jackpot-games__hero-content {
        margin-top: -80px;
        padding: 30px 20px;
    }
}

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

    .page-jackpot-games__section {
        padding: 40px 0;
    }

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

    .page-jackpot-games__hero-image {
        max-height: 400px;
    }

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

    .page-jackpot-games__main-title {
        font-size: clamp(30px, 8vw, 40px);
    }

    .page-jackpot-games__subtitle {
        font-size: clamp(16px, 3vw, 18px);
    }

    .page-jackpot-games__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: 15px 15px;
    }

    .page-jackpot-games__features-grid,
    .page-jackpot-games__games-grid,
    .page-jackpot-games__steps-grid,
    .page-jackpot-games__tips-grid,
    .page-jackpot-games__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-jackpot-games__feature-icon,
    .page-jackpot-games__game-image {
        max-height: 200px;
    }

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

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

    .page-jackpot-games__faq-toggle {
        font-size: 20px;
    }

    /* Ensure all images are responsive and do not overflow */
    .page-jackpot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-jackpot-games__section,
    .page-jackpot-games__card,
    .page-jackpot-games__container,
    .page-jackpot-games__hero-image-wrapper,
    .page-jackpot-games__hero-content,
    .page-jackpot-games__cta-buttons,
    .page-jackpot-games__features-grid,
    .page-jackpot-games__feature-card,
    .page-jackpot-games__games-grid,
    .page-jackpot-games__game-card,
    .page-jackpot-games__how-to-play,
    .page-jackpot-games__steps-grid,
    .page-jackpot-games__step-card,
    .page-jackpot-games__tips-section,
    .page-jackpot-games__tips-grid,
    .page-jackpot-games__tip-card,
    .page-jackpot-games__promotions-section,
    .page-jackpot-games__promotions-grid,
    .page-jackpot-games__promo-card,
    .page-jackpot-games__faq-section,
    .page-jackpot-games__faq-list,
    .page-jackpot-games__faq-item,
    .page-jackpot-games__cta-final,
    .page-jackpot-games__cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Remove specific padding-top from hero-section if it conflicts with body padding-top */
    .page-jackpot-games__hero-section {
        padding-top: 10px !important; 
    }
}