/* style/jackpot-games.css */

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

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

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

.page-jackpot-games__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #333333;
}

/* --- Hero Section --- */
.page-jackpot-games__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    text-align: center;
    overflow: hidden;
    color: #FFFFFF;
}

.page-jackpot-games__dark-bg {
    background-color: #017439; /* Primary brand color for dark sections */
    color: #ffffff;
}

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

.page-jackpot-games__hero-content {
    z-index: 2;
    max-width: 800px;
}

.page-jackpot-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Yellow for high contrast on dark green */
}

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

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

.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-jackpot-games__btn-primary {
    background-color: #C30808; /* Custom red for register/login */
    color: #FFFF00; /* Custom yellow for font */
    border: 2px solid #C30808;
}

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

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

.page-jackpot-games__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
}

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

.page-jackpot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    display: block;
}

/* --- Intro Section --- */
.page-jackpot-games__intro-section {
    padding: 80px 0;
}

.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: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

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

.page-jackpot-games__feature-icon {
    width: 100%; /* Ensure card images are large */
    height: auto;
    max-height: 300px; /* Example max height for consistency */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.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;
}

/* --- Game Providers Section --- */
.page-jackpot-games__game-providers-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
}

.page-jackpot-games__game-providers-section .page-jackpot-games__section-title {
    color: #FFFF00; /* Yellow for contrast */
}

.page-jackpot-games__game-providers-section .page-jackpot-games__text-block {
    color: #f0f0f0;
}

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

.page-jackpot-games__provider-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.page-jackpot-games__provider-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-jackpot-games__provider-logo {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Minimum size requirement */
    min-height: 150px; /* Adjusted to be at least 200px wide, if height needs to be smaller for aspect ratio */
}

.page-jackpot-games__provider-name {
    font-size: 1.3em;
    color: #FFFFFF;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-jackpot-games__provider-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* --- How To Play Section --- */
.page-jackpot-games__how-to-play-section {
    padding: 80px 0;
}

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

.page-jackpot-games__list-item {
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-jackpot-games__list-item:hover {
    transform: translateX(5px);
}

.page-jackpot-games__list-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-jackpot-games__list-item p {
    color: #555555;
    margin: 0;
}

.page-jackpot-games__list-item a {
    color: #C30808; /* Link color for actions */
    text-decoration: underline;
}

.page-jackpot-games__list-item a:hover {
    color: #a00606;
}

/* --- Promotions Section --- */
.page-jackpot-games__promotions-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
}

.page-jackpot-games__promotions-section .page-jackpot-games__section-title {
    color: #FFFF00; /* Yellow for contrast */
}

.page-jackpot-games__promotions-section .page-jackpot-games__text-block {
    color: #f0f0f0;
}

.page-jackpot-games__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-jackpot-games__promotions-section .page-jackpot-games__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid #FFFF00;
    color: #ffffff;
}

.page-jackpot-games__promotions-section .page-jackpot-games__list-title {
    color: #FFFF00;
}

.page-jackpot-games__promotions-section .page-jackpot-games__list-item p {
    color: #f0f0f0;
}

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

.page-jackpot-games__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.page-jackpot-games__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.page-jackpot-games__video-link-overlay {
    display: block;
    position: relative;
    cursor: pointer;
}

.page-jackpot-games__btn-video-cta {
    margin-top: 20px;
}

/* --- FAQ Section --- */
.page-jackpot-games__faq-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.page-jackpot-games__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px 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;
    cursor: pointer;
    background-color: #017439; /* Brand primary color */
    color: #FFFF00; /* Yellow for contrast */
    font-weight: bold;
    font-size: 1.2em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.page-jackpot-games__faq-question h3 {
    margin: 0;
    color: inherit;
    font-size: 1em; /* Reset h3 font size within question */
}

.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; /* Adjust padding for collapsed state */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: #f0f0f0;
    color: #333333;
}

.page-jackpot-games__faq-item.active .page-jackpot-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px; /* Padding for expanded state */
}

.page-jackpot-games__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: #555555;
}

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

@media (max-width: 768px) {
    .page-jackpot-games {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-jackpot-games__hero-section {
        flex-direction: column;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        min-height: 500px;
    }
    
    .page-jackpot-games__hero-content {
        padding: 0 15px;
    }

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

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

    .page-jackpot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

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

    .page-jackpot-games__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
        padding: 0 15px;
    }

    .page-jackpot-games__text-block {
        font-size: 1em;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-jackpot-games__container {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    /* Images responsiveness */
    .page-jackpot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: contain; /* Ensure image fits within bounds */
    }
    .page-jackpot-games__section,
    .page-jackpot-games__card,
    .page-jackpot-games__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-jackpot-games__feature-icon,
    .page-jackpot-games__provider-logo {
        min-width: unset; /* Allow smaller widths for mobile, but max-width 100% still applies */
        min-height: unset; /* Allow smaller heights for mobile */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }

    /* Video responsiveness */
    .page-jackpot-games video,
    .page-jackpot-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-jackpot-games__video-section,
    .page-jackpot-games__video-container,
    .page-jackpot-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-jackpot-games__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* FAQ adjustments */
    .page-jackpot-games__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-jackpot-games__faq-answer {
        padding: 0 20px;
    }
    .page-jackpot-games__faq-item.active .page-jackpot-games__faq-answer {
        padding: 15px 20px;
    }
}