/* style/jackpot-games.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --dark-text-color: #333333;
    --light-text-color: #ffffff;
    --login-color: #EA7C07;
    --background-color: #FFFFFF;
    --black-color: #000000;
}

.page-jackpot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--light-text-color); /* Default to light text for dark body background */
    background-color: transparent; /* Body background handled by shared.css var(--dark-bg-1) */
}

.page-jackpot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    overflow: hidden;
}

.page-jackpot-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 40px;
}

.page-jackpot-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: var(--light-text-color);
}

.page-jackpot-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--light-text-color);
}

.page-jackpot-games__hero-image-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
}

.page-jackpot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-jackpot-games__btn-primary {
    background-color: var(--login-color); /* Using login color for primary CTA */
    color: var(--light-text-color);
    border: 2px solid var(--login-color);
}

.page-jackpot-games__btn-primary:hover {
    background-color: darken(var(--login-color), 10%);
    border-color: darken(var(--login-color), 10%);
    transform: translateY(-2px);
}

.page-jackpot-games__btn-secondary {
    background-color: transparent;
    color: var(--light-text-color);
    border: 2px solid var(--light-text-color);
}

.page-jackpot-games__btn-secondary:hover {
    background-color: var(--light-text-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.page-jackpot-games__section {
    padding: 80px 20px;
}

.page-jackpot-games__light-bg {
    background-color: var(--background-color);
    color: var(--dark-text-color);
}

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

.page-jackpot-games__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-jackpot-games__section-title {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    color: inherit;
}

.page-jackpot-games__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
    color: inherit;
}

.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-card {
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.page-jackpot-games__feature-card:hover {
    transform: translateY(-5px);
}

.page-jackpot-games__card-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--primary-color);
}

.page-jackpot-games__card-description {
    font-size: 1em;
    line-height: 1.7;
    color: var(--dark-text-color);
}

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

.page-jackpot-games__btn-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-jackpot-games__btn-link:hover {
    color: darken(var(--primary-color), 10%);
}

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

.page-jackpot-games__step-item {
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.page-jackpot-games__step-image {
    width: 100%;
    height: auto;
    max-width: 400px; /* Ensure images are not too wide */
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px;
    min-height: 200px;
}

.page-jackpot-games__step-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--primary-color);
}

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

.page-jackpot-games__list {
    list-style: disc inside;
    margin-top: 20px;
    margin-left: 20px;
    color: inherit;
}

.page-jackpot-games__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
    line-height: 1.7;
}

.page-jackpot-games__ordered-list {
    list-style: decimal inside;
    margin-top: 20px;
    margin-left: 20px;
    color: inherit;
}

.page-jackpot-games__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

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

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

.page-jackpot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
    transition: background-color 0.3s ease;
}

.page-jackpot-games__faq-question:hover {
    background-color: #f9f9f9;
}

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

.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, padding 0.3s ease;
    color: var(--dark-text-color);
}

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

.page-jackpot-games__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
    line-height: 1.7;
    color: var(--dark-text-color);
}

/* Ensure content images meet minimum size requirements */
.page-jackpot-games__container img,
.page-jackpot-games__guide-steps img {
    min-width: 200px;
    min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-jackpot-games__hero-title {
        font-size: 2.8em;
    }

    .page-jackpot-games__hero-description {
        font-size: 1.1em;
    }

    .page-jackpot-games__section-title {
        font-size: 2.2em;
    }

    .page-jackpot-games__feature-card {
        padding: 25px;
    }

    .page-jackpot-games__card-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-jackpot-games__hero-section {
        padding: 40px 15px;
    }

    .page-jackpot-games__hero-title {
        font-size: 2em;
    }

    .page-jackpot-games__hero-description {
        font-size: 1em;
    }

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

    .page-jackpot-games__btn-primary,
    .page-jackpot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-jackpot-games__section {
        padding: 50px 15px;
    }

    .page-jackpot-games__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-jackpot-games__paragraph,
    .page-jackpot-games__list-item,
    .page-jackpot-games__card-description,
    .page-jackpot-games__step-description,
    .page-jackpot-games__faq-answer p {
        font-size: 0.95em;
    }

    .page-jackpot-games__features-grid,
    .page-jackpot-games__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-jackpot-games__image-full-width,
    .page-jackpot-games__hero-image,
    .page-jackpot-games__step-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    
    .page-jackpot-games__container,
    .page-jackpot-games__hero-section,
    .page-jackpot-games__section,
    .page-jackpot-games__feature-card,
    .page-jackpot-games__step-item,
    .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__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-jackpot-games__faq-item.active .page-jackpot-games__faq-answer {
        padding: 10px 20px;
    }

    .page-jackpot-games__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
}

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

    .page-jackpot-games__section-title {
        font-size: 1.6em;
    }

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

    .page-jackpot-games__faq-question {
        font-size: 1em;
    }
}