/* style/jackpot-games.css */
.page-jackpot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

.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;
    padding: 100px 0 60px; /* Adjust padding-top for header offset */
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.page-jackpot-games__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-jackpot-games__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-jackpot-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3;
}

.page-jackpot-games__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.page-jackpot-games__intro-text {
    font-size: 1.25em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

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

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

.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
}

.page-jackpot-games__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFFFF; /* Adjusted for WCAG AA contrast */
    border: 2px solid #C30808;
}

.page-jackpot-games__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-jackpot-games__btn-secondary {
    background-color: transparent;
    color: #ffffff; /* For dark background */
    border: 2px solid #ffffff;
}

.page-jackpot-games__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

.page-jackpot-games__light-bg .page-jackpot-games__btn-secondary {
    color: #017439;
    border-color: #017439;
}

.page-jackpot-games__light-bg .page-jackpot-games__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

.page-jackpot-games__btn-full-width {
    width: 100%;
    margin-top: 30px;
}

/* Sections */
.page-jackpot-games__features-section,
.page-jackpot-games__game-types-section,
.page-jackpot-games__how-to-play-section,
.page-jackpot-games__strategy-section,
.page-jackpot-games__promotions-section,
.page-jackpot-games__faq-section,
.page-jackpot-games__responsible-gaming-section,
.page-jackpot-games__join-us-section {
    padding: 80px 0;
    text-align: center;
}

.page-jackpot-games__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-jackpot-games__section-description {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 50px;
}

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

.page-jackpot-games__feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-jackpot-games__dark-bg .page-jackpot-games__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.page-jackpot-games__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439;
}

.page-jackpot-games__dark-bg .page-jackpot-games__feature-title {
    color: #ffffff;
}

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

.page-jackpot-games__game-type-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-jackpot-games__game-type-card .page-jackpot-games__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffffff;
}

/* How to Play Steps */
.page-jackpot-games__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-jackpot-games__step-item {
    background-color: #f9f9f9;
    padding: 25px 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-jackpot-games__step-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #017439;
}

.page-jackpot-games__step-item a {
    color: #017439;
    text-decoration: underline;
}

.page-jackpot-games__step-item a:hover {
    color: #005f2c;
}

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

.page-jackpot-games__strategy-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-jackpot-games__strategy-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffffff;
}

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

.page-jackpot-games__promo-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-jackpot-games__promo-card .page-jackpot-games__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439;
}

.page-jackpot-games__promo-card a {
    color: #017439;
    text-decoration: underline;
}

.page-jackpot-games__promo-card a:hover {
    color: #005f2c;
}

/* FAQ Section */
.page-jackpot-games__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-jackpot-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-jackpot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.page-jackpot-games__faq-item:last-child .page-jackpot-games__faq-question {
    border-bottom: none;
}

.page-jackpot-games__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.page-jackpot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-jackpot-games__faq-item.active .page-jackpot-games__faq-toggle {
    transform: rotate(45deg);
}

.page-jackpot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #f0f0f0;
}

.page-jackpot-games__faq-item.active .page-jackpot-games__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 25px;
}

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

.page-jackpot-games__faq-answer a {
    color: #FFFF00;
    text-decoration: underline;
}

.page-jackpot-games__faq-answer a:hover {
    color: #d4d400;
}

/* Responsible Gaming */
.page-jackpot-games__responsible-list {
    list-style: disc;
    padding-left: 20px;
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.page-jackpot-games__responsible-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Images */
.page-jackpot-games__hero-section img,
.page-jackpot-games__features-section img,
.page-jackpot-games__strategy-section img,
.page-jackpot-games__promotions-section img,
.page-jackpot-games__responsible-gaming-section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0; /* Center images below content */
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-jackpot-games__content-image {
    margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-jackpot-games__main-title {
        font-size: 3em;
    }
    .page-jackpot-games__section-title {
        font-size: 2em;
    }
    .page-jackpot-games__hero-section {
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-jackpot-games__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
        padding-bottom: 40px;
        min-height: auto;
    }
    .page-jackpot-games__main-title {
        font-size: 2.2em;
    }
    .page-jackpot-games__intro-text {
        font-size: 1em;
    }
    .page-jackpot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Limit button group width */
        margin: 0 auto;
    }
    .page-jackpot-games__btn-primary,
    .page-jackpot-games__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    
    .page-jackpot-games__features-section,
    .page-jackpot-games__game-types-section,
    .page-jackpot-games__how-to-play-section,
    .page-jackpot-games__strategy-section,
    .page-jackpot-games__promotions-section,
    .page-jackpot-games__faq-section,
    .page-jackpot-games__responsible-gaming-section,
    .page-jackpot-games__join-us-section {
        padding: 50px 0;
    }
    .page-jackpot-games__container {
        padding: 0 15px;
    }
    .page-jackpot-games__section-title {
        font-size: 1.8em;
    }
    .page-jackpot-games__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-jackpot-games__feature-item,
    .page-jackpot-games__game-type-card,
    .page-jackpot-games__strategy-item,
    .page-jackpot-games__promo-card {
        padding: 20px;
    }
    .page-jackpot-games__feature-title,
    .page-jackpot-games__game-type-card .page-jackpot-games__card-title,
    .page-jackpot-games__strategy-title,
    .page-jackpot-games__promo-card .page-jackpot-games__card-title,
    .page-jackpot-games__step-title {
        font-size: 1.2em;
    }

    /* Mobile image and container responsive */
    .page-jackpot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-jackpot-games__hero-section,
    .page-jackpot-games__features-section,
    .page-jackpot-games__game-types-section,
    .page-jackpot-games__how-to-play-section,
    .page-jackpot-games__strategy-section,
    .page-jackpot-games__promotions-section,
    .page-jackpot-games__faq-section,
    .page-jackpot-games__responsible-gaming-section,
    .page-jackpot-games__join-us-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

@media (max-width: 480px) {
    .page-jackpot-games__main-title {
        font-size: 1.8em;
    }
    .page-jackpot-games__section-title {
        font-size: 1.5em;
    }
}