/* style/jackpot-games.css */

/* Base styles for the jackpot games page */
.page-jackpot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Inherit from body, which is #121212 */
    padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
}

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

.page-jackpot-games__section-title {
    font-size: 2.8em;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-jackpot-games__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Text color for light background sections */
.page-jackpot-games__text-dark {
    color: #333333;
}
.page-jackpot-games__text-center {
    text-align: center;
}

/* Buttons */
.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary,
.page-jackpot-games__btn-small {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-jackpot-games__btn-primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-jackpot-games__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

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

.page-jackpot-games__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
    background-color: #EA7C07; /* Login color for small buttons */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-jackpot-games__btn-small:hover {
    background-color: #c96806;
    border-color: #c96806;
}

/* Hero Section */
.page-jackpot-games__hero-section {
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
    flex-wrap: wrap;
}

.page-jackpot-games__hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
    padding: 20px;
    z-index: 1;
}

.page-jackpot-games__hero-title {
    font-size: 3.5em;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-jackpot-games__hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page-jackpot-games__hero-image-wrapper {
    flex: 1;
    min-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

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

/* About Section (Dark Background) */
.page-jackpot-games__dark-bg {
    background-color: rgba(38, 169, 224, 0.1); /* Slightly transparent primary color on dark body bg */
    padding: 60px 0;
}

.page-jackpot-games__light-bg {
    background-color: #ffffff; /* White background */
    padding: 60px 0;
    color: #333333; /* Dark text for light background */
}

.page-jackpot-games__grid-2-col,
.page-jackpot-games__grid-3-col {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-jackpot-games__card {
    background-color: rgba(255, 255, 255, 0.08); /* Light transparent white on dark bg */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff; /* Light text */
}

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

.page-jackpot-games__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
    object-fit: cover;
}

.page-jackpot-games__card-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
}

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

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

.page-jackpot-games__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-jackpot-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure video is responsive */
    height: auto;
    display: block;
}

.page-jackpot-games__video-cta {
    margin-top: 30px;
}

/* Games Showcase */
.page-jackpot-games__game-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

.page-jackpot-games__game-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
    object-fit: cover;
}

.page-jackpot-games__game-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
}
.page-jackpot-games__game-title a {
    color: #26A9E0;
    text-decoration: none;
}
.page-jackpot-games__game-title a:hover {
    text-decoration: underline;
}

.page-jackpot-games__game-description {
    font-size: 0.95em;
    color: #e0e0e0;
    margin-bottom: 20px;
}

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

/* Guide Section */
.page-jackpot-games__guide-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-jackpot-games__guide-item {
    background-color: #f8f8f8; /* Light background for guide items */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.page-jackpot-games__guide-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-jackpot-games__guide-text {
    font-size: 1em;
    color: #333333;
}


/* Download Section */
.page-jackpot-games__grid-2-col-centered {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
}

.page-jackpot-games__download-content {
    text-align: left;
    padding: 20px;
}

.page-jackpot-games__download-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.page-jackpot-games__download-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
    object-fit: cover;
}


/* FAQ Section */
.page-jackpot-games__faq-section {
    padding: 60px 0;
}

.page-jackpot-games__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-jackpot-games__faq-item {
    background-color: #f8f8f8; /* Light background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-jackpot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background-color: #f0f0f0; /* Slightly darker light background */
    border-bottom: 1px solid #e0e0e0;
}

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

.page-jackpot-games__faq-title {
    font-size: 1.2em;
    color: #333333;
    margin: 0;
}

.page-jackpot-games__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-jackpot-games__faq-item.active .page-jackpot-games__faq-toggle {
    transform: rotate(45deg); /* Change to X or rotate */
}

.page-jackpot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff; /* White background for answer content */
}

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

.page-jackpot-games__faq-text {
    color: #333333;
    margin: 0;
}

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

.page-jackpot-games__cta-button {
    margin-top: 30px;
    font-size: 1.3em;
    padding: 15px 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-jackpot-games__hero-title {
        font-size: 3em;
    }
    .page-jackpot-games__section-title {
        font-size: 2.5em;
    }
    .page-jackpot-games__hero-section {
        flex-direction: column;
        text-align: center;
    }
    .page-jackpot-games__hero-content {
        max-width: 100%;
        text-align: center;
    }
    .page-jackpot-games__hero-buttons {
        justify-content: center;
    }
    .page-jackpot-games__grid-2-col,
    .page-jackpot-games__grid-3-col,
    .page-jackpot-games__guide-grid,
    .page-jackpot-games__grid-2-col-centered {
        grid-template-columns: 1fr;
    }
}

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

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

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

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

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

    /* Images responsiveness */
    .page-jackpot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-jackpot-games__hero-image-wrapper,
    .page-jackpot-games__download-image-wrapper,
    .page-jackpot-games__card,
    .page-jackpot-games__game-card,
    .page-jackpot-games__guide-item,
    .page-jackpot-games__video-wrapper,
    .page-jackpot-games__faq-item,
    .page-jackpot-games__cta-section .page-jackpot-games__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }

    /* Video responsiveness */
    .page-jackpot-games video,
    .page-jackpot-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}