:root {
    --main-color: #11A84E;
    --accent-color: #22C768;
    --card-bg: #11271B;
    --background: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-jackpot-games {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Light text on dark background */
    background-color: var(--background); /* Deep green background */
    line-height: 1.6;
}

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

/* Hero Section */
.page-jackpot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above, content below */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-jackpot-games__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for large screens */
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and content */
}

.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: 1;
    max-width: 800px;
    padding: 0 20px;
}

.page-jackpot-games__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    color: var(--gold); /* Gold color for main title */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Soft glow */
}

.page-jackpot-games__description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.page-jackpot-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-jackpot-games__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Green gradient */
    color: #F2FFF6; /* Light text */
    border: none;
}

.page-jackpot-games__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-jackpot-games__btn-secondary {
    background-color: transparent;
    color: var(--text-main); /* Light text */
    border: 2px solid var(--border); /* Green border */
}

.page-jackpot-games__btn-secondary:hover {
    background-color: var(--deep-green); /* Darker green on hover */
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-jackpot-games__section {
    padding: 60px 0;
    text-align: center;
}

.page-jackpot-games__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--gold);
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-jackpot-games__sub-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--text-main);
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}

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

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

/* Why Choose Us Section */
.page-jackpot-games__why-choose-us {
    background-color: var(--card-bg); /* Slightly lighter dark green */
}

.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-card {
    background-color: var(--deep-green);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid var(--border);
}

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

.page-jackpot-games__feature-icon {
    width: 100%;
    height: auto;
    max-width: 150px; /* Adjust size for feature icons */
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* Game Types Section */
.page-jackpot-games__game-types {
    background-color: var(--background);
}

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

.page-jackpot-games__game-card {
    background-color: var(--deep-green);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    border: 1px solid var(--border);
}

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

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

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

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

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

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

.page-jackpot-games__step-card {
    background-color: var(--deep-green);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    text-align: left;
    border: 1px solid var(--border);
}

.page-jackpot-games__step-title {
    font-size: 1.25rem;
    color: var(--gold);
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-jackpot-games__step-text a {
    color: var(--glow); /* Greenish link color */
    text-decoration: none;
    font-weight: 600;
}

.page-jackpot-games__step-text a:hover {
    text-decoration: underline;
}

.page-jackpot-games__tips-section {
    margin-top: 60px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-jackpot-games__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.page-jackpot-games__tips-list li {
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-jackpot-games__list-icon {
    color: var(--glow); /* Green checkmark */
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

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

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

.page-jackpot-games__promo-card {
    background-color: var(--deep-green);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.page-jackpot-games__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.page-jackpot-games__promo-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    object-fit: cover;
}

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

.page-jackpot-games__promo-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex-grow: 1; /* Push button to bottom */
    margin-bottom: 20px;
}

/* Security & Fair Play Section */
.page-jackpot-games__security-fairplay {
    background-color: var(--card-bg);
}

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

.page-jackpot-games__security-item {
    background-color: var(--deep-green);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    text-align: center;
    border: 1px solid var(--border);
}

.page-jackpot-games__security-icon {
    width: 100%;
    height: auto;
    max-width: 120px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-jackpot-games__security-title {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 600;
}

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

/* Mobile Experience Section */
.page-jackpot-games__mobile-experience {
    background-color: var(--background);
}

.page-jackpot-games__mobile-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
    text-align: left;
}

.page-jackpot-games__mobile-text {
    flex: 1;
}

.page-jackpot-games__mobile-features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-jackpot-games__mobile-features-list li {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-jackpot-games__mobile-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 50%; /* Limit image width */
}

.page-jackpot-games__mobile-mockup {
    width: 100%;
    height: auto;
    max-width: 400px; /* Max width for the phone mockup */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: block;
}

.page-jackpot-games__app-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 15px;
}

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

.page-jackpot-games__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-jackpot-games__faq-item {
    background-color: var(--deep-green);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: var(--text-secondary); /* Default text color for answer */
}

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

.page-jackpot-games__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-jackpot-games__faq-item summary:hover {
    background-color: rgba(17, 168, 78, 0.1); /* Slight green tint on hover */
}

.page-jackpot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-jackpot-games__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-jackpot-games__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--glow);
    font-weight: bold;
}

.page-jackpot-games__faq-item[open] .page-jackpot-games__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-jackpot-games__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

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


/* Final Call to Action Section */
.page-jackpot-games__call-to-action-final {
    padding-bottom: 80px;
    background-color: var(--background);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-jackpot-games__container {
        padding: 0 15px;
    }

    .page-jackpot-games__hero-content {
        max-width: 90%;
    }

    .page-jackpot-games__mobile-content {
        flex-direction: column;
        text-align: center;
    }

    .page-jackpot-games__mobile-image-wrapper {
        max-width: 100%;
        margin-top: 30px;
    }

    .page-jackpot-games__mobile-text {
        order: 2;
    }
}

@media (max-width: 768px) {
    .page-jackpot-games__hero-section {
        padding-top: 10px !important; /* body handles header offset */
        padding-bottom: 30px;
    }

    .page-jackpot-games__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .page-jackpot-games__description {
        font-size: 1rem;
    }

    .page-jackpot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent overflow */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-jackpot-games__btn-primary,
    .page-jackpot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-jackpot-games__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
    }

    .page-jackpot-games__section-intro {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-jackpot-games__features-grid,
    .page-jackpot-games__game-cards-grid,
    .page-jackpot-games__steps-grid,
    .page-jackpot-games__promo-cards-grid,
    .page-jackpot-games__security-points {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Ensure all images are responsive */
    .page-jackpot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-jackpot-games__hero-image-wrapper,
    .page-jackpot-games__feature-card,
    .page-jackpot-games__game-card,
    .page-jackpot-games__step-card,
    .page-jackpot-games__promo-card,
    .page-jackpot-games__security-item,
    .page-jackpot-games__mobile-image-wrapper,
    .page-jackpot-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-jackpot-games__feature-icon {
        max-width: 100px; /* Smaller icon on mobile */
    }

    .page-jackpot-games__mobile-content {
        gap: 30px;
    }
    
    .page-jackpot-games__mobile-mockup {
        max-width: 250px; /* Smaller mockup on mobile */
    }

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

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

@media (max-width: 480px) {
    .page-jackpot-games__main-title {
        font-size: clamp(1.8rem, 9vw, 2.2rem);
    }

    .page-jackpot-games__section-title {
        font-size: clamp(1.6rem, 8vw, 2rem);
    }
}