/* style/jackpot-games.css */

/* --- Base Styles --- */
.page-jackpot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light background */
    background-color: #FFFFFF; /* Body background is white */
}

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

.page-jackpot-games__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.page-jackpot-games__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

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

/* --- Button Styles --- */
.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary,
.page-jackpot-games__btn-register {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-jackpot-games__btn-primary {
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-jackpot-games__btn-primary:hover {
    background-color: #005f2e; /* Slightly darker green */
    border-color: #005f2e;
}

.page-jackpot-games__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

.page-jackpot-games__btn-secondary:hover {
    background-color: #f0f0f0; /* Light grey */
    color: #005f2e;
    border-color: #005f2e;
}

/* Specific colors for Register/Login */
.page-jackpot-games__btn-register {
    background-color: #C30808; /* Red for register */
    color: #FFFF00; /* Yellow for register font */
    border: 2px solid #C30808;
}

.page-jackpot-games__btn-register:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-jackpot-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container doesn't overflow */
    box-sizing: border-box; /* Include padding and border */
    overflow: hidden; /* Hide overflow */
}

.page-jackpot-games__centered-buttons {
    margin-top: 40px;
}

/* --- Section Styles --- */
.page-jackpot-games__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    min-height: 600px;
    background-color: #017439; /* Dark background for hero */
    color: #FFFFFF; /* Light text for dark background */
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-jackpot-games__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-jackpot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Overlay effect */
    display: block;
    min-width: unset; /* Override global min-width for hero image */
    min-height: unset; /* Override global min-height for hero image */
}

.page-jackpot-games__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
    border-radius: 10px;
}

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

.page-jackpot-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-jackpot-games__introduction-section,
.page-jackpot-games__why-choose-section,
.page-jackpot-games__strategy-section,
.page-jackpot-games__faq-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text */
}

.page-jackpot-games__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF; /* Light text */
    padding: 80px 0;
}

.page-jackpot-games__dark-bg .page-jackpot-games__section-title {
    color: #FFFFFF;
}

.page-jackpot-games__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

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

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

.page-jackpot-games__card {
    background-color: #FFFFFF;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

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

.page-jackpot-games__card-text {
    font-size: 1em;
    color: #555555;
    text-align: justify;
}

.page-jackpot-games__steps-list {
    list-style: none;
    padding-left: 0;
    margin-top: 40px;
}

.page-jackpot-games__steps-list .page-jackpot-games__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid #FFFF00; /* Yellow accent */
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-jackpot-games__steps-list .page-jackpot-games__list-item strong {
    color: #FFFF00; /* Yellow for step titles */
    font-size: 1.2em;
    margin-bottom: 10px;
}

.page-jackpot-games__steps-list .page-jackpot-games__list-item .page-jackpot-games__btn-register {
    margin-top: 15px;
    align-self: flex-end;
}

.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-grid .page-jackpot-games__card {
    background-color: #005f2e; /* Darker green for promo cards on dark background */
    color: #FFFFFF;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: none;
}

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

.page-jackpot-games__promo-grid .page-jackpot-games__card-title {
    color: #FFFF00; /* Yellow for promo titles */
    font-size: 1.3em;
    margin-top: 0;
}

.page-jackpot-games__promo-grid .page-jackpot-games__card-text {
    color: #f0f0f0;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-jackpot-games__promo-grid .page-jackpot-games__btn-secondary {
    align-self: flex-start;
    background-color: #FFFF00; /* Yellow button for promos */
    color: #017439; /* Green text for yellow button */
    border-color: #FFFF00;
}

.page-jackpot-games__promo-grid .page-jackpot-games__btn-secondary:hover {
    background-color: #e0e000;
    border-color: #e0e000;
    color: #005f2e;
}


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

.page-jackpot-games__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-jackpot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #e8f5e9; /* Lighter green background */
    border-bottom: 1px solid #e0e0e0;
}

.page-jackpot-games__faq-item[open] .page-jackpot-games__faq-question {
    background-color: #017439;
    color: #FFFFFF;
}

.page-jackpot-games__faq-item[open] .page-jackpot-games__faq-question .page-jackpot-games__faq-qtext {
    color: #FFFFFF;
}

.page-jackpot-games__faq-item[open] .page-jackpot-games__faq-toggle {
    color: #FFFFFF;
}

.page-jackpot-games__faq-qtext {
    flex-grow: 1;
}

.page-jackpot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
}

.page-jackpot-games__faq-answer {
    padding: 15px 25px;
    font-size: 1em;
    color: #555555;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
}

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

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

/* For details tag, hide default marker */
.page-jackpot-games__faq-item summary {
    list-style: none;
}
.page-jackpot-games__faq-item summary::-webkit-details-marker {
    display: none;
}

/* --- Conclusion Section --- */
.page-jackpot-games__conclusion-section {
    padding: 80px 0;
    text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-jackpot-games__main-title {
        font-size: 3em;
    }
    .page-jackpot-games__hero-description {
        font-size: 1.2em;
    }
    .page-jackpot-games__section-title {
        font-size: 2em;
    }
    .page-jackpot-games__paragraph,
    .page-jackpot-games__list-item {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    /* Fixed header offset for mobile, if body doesn't handle it */
    .page-jackpot-games__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 60px;
        min-height: 500px;
    }
    .page-jackpot-games__main-title {
        font-size: 2.2em;
    }
    .page-jackpot-games__hero-description {
        font-size: 1em;
    }
    .page-jackpot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add horizontal padding to prevent overflow */
    }
    .page-jackpot-games__btn-primary,
    .page-jackpot-games__btn-secondary,
    .page-jackpot-games__btn-register {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-jackpot-games__container {
        padding: 0 15px;
    }

    .page-jackpot-games__introduction-section,
    .page-jackpot-games__why-choose-section,
    .page-jackpot-games__strategy-section,
    .page-jackpot-games__faq-section,
    .page-jackpot-games__dark-bg,
    .page-jackpot-games__conclusion-section {
        padding: 40px 0;
    }

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

    /* Images responsiveness */
    .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__image-grid,
    .page-jackpot-games__features-grid,
    .page-jackpot-games__promo-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent content overflow */
    }
    .page-jackpot-games__image-grid,
    .page-jackpot-games__features-grid,
    .page-jackpot-games__promo-grid {
        grid-template-columns: 1fr; /* Single column layout for grids */
        gap: 20px;
    }
    .page-jackpot-games__card {
        padding: 20px;
    }

    .page-jackpot-games__steps-list .page-jackpot-games__list-item {
        padding: 15px;
    }
    .page-jackpot-games__steps-list .page-jackpot-games__list-item .page-jackpot-games__btn-register {
        align-self: stretch; /* Make button full width in steps list */
    }

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

@media (max-width: 480px) {
    .page-jackpot-games__main-title {
        font-size: 1.8em;
    }
    .page-jackpot-games__hero-description {
        font-size: 0.9em;
    }
    .page-jackpot-games__section-title {
        font-size: 1.5em;
    }
    .page-jackpot-games__btn-primary,
    .page-jackpot-games__btn-secondary,
    .page-jackpot-games__btn-register {
        padding: 10px 15px;
        font-size: 1em;
    }
}

/* Ensure content area images are not too small */
/* This rule applies to any img within .page-jackpot-games, overriding smaller dimensions */
.page-jackpot-games img:not(.shared-header img):not(.shared-footer img) {
    min-width: 200px;
    min-height: 200px;
}
/* Specific override for hero image to allow it to cover */
.page-jackpot-games__hero-image {
    min-width: unset;
    min-height: unset;
}