/* style/jackpot-games.css */

/* --- Base Styles --- */
.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, fallback to white */
}

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

.page-jackpot-games__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color for titles */
    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;
}

/* --- Color Contrast Classes (for smart color selection) --- */
.page-jackpot-games__dark-bg {
    background-color: #017439; /* Primary brand color */
    color: #ffffff; /* White text for dark background */
}

.page-jackpot-games__dark-bg .page-jackpot-games__section-title,
.page-jackpot-games__dark-bg .page-jackpot-games__text-block,
.page-jackpot-games__dark-bg .page-jackpot-games__feature-title,
.page-jackpot-games__dark-bg .page-jackpot-games__feature-text,
.page-jackpot-games__dark-bg .page-jackpot-games__game-title a,
.page-jackpot-games__dark-bg .page-jackpot-games__game-description,
.page-jackpot-games__dark-bg .page-jackpot-games__promo-title a,
.page-jackpot-games__dark-bg .page-jackpot-games__promo-description,
.page-jackpot-games__dark-bg .page-jackpot-games__faq-qtext,
.page-jackpot-games__dark-bg .page-jackpot-games__faq-answer p {
    color: #ffffff;
}

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

/* --- Buttons --- */
.page-jackpot-games__btn-primary {
    display: inline-block;
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: 2px solid transparent;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-jackpot-games__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #017439; /* Primary brand color */
    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;
    border: 2px solid #017439;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

/* Custom buttons for Register/Login */
.page-jackpot-games__btn-register {
    display: inline-block;
    background-color: #C30808; /* Custom Register color */
    color: #FFFF00; /* Custom Register/Login font color */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: 2px solid transparent;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}
.page-jackpot-games__btn-register:hover {
    background-color: #a30606;
}

.page-jackpot-games__btn-login {
    display: inline-block;
    background-color: #C30808; /* Custom Login color */
    color: #FFFF00; /* Custom Register/Login font color */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-left: 20px;
    border: 2px solid transparent;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}
.page-jackpot-games__btn-login:hover {
    background-color: #a30606;
}

/* --- Hero Section --- */
.page-jackpot-games__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    overflow: hidden; /* Ensure content doesn't spill */
}

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

.page-jackpot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability, NO COLOR CHANGE */
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-jackpot-games__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-jackpot-games__hero-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.4em;
    margin-bottom: 40px;
    color: #ffffff;
}

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

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

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

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

.page-jackpot-games__feature-icon {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

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

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

/* --- Popular Games Section --- */
.page-jackpot-games__popular-games {
    padding: 80px 20px;
}

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

.page-jackpot-games__game-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.page-jackpot-games__game-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-jackpot-games__game-info {
    padding: 25px;
    text-align: center;
}

.page-jackpot-games__game-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.page-jackpot-games__game-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-jackpot-games__game-title a:hover {
    color: #005a2e;
}

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

.page-jackpot-games__btn-play {
    display: inline-block;
    background-color: #C30808;
    color: #FFFF00;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

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

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

.page-jackpot-games__step-description {
    font-size: 1em;
    color: #555555;
    text-align: center;
}

.page-jackpot-games__step-description a {
    color: #C30808;
    text-decoration: none;
    font-weight: bold;
}

.page-jackpot-games__step-description a:hover {
    text-decoration: underline;
}

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

/* --- Promotions Section --- */
.page-jackpot-games__promotions-section {
    padding: 80px 20px;
}

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

.page-jackpot-games__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.page-jackpot-games__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-jackpot-games__promo-title {
    font-size: 1.5em;
    padding: 20px 20px 10px 20px;
    text-align: center;
}

.page-jackpot-games__promo-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-jackpot-games__promo-title a:hover {
    color: #005a2e;
}

.page-jackpot-games__promo-description {
    font-size: 0.95em;
    color: #555555;
    padding: 0 20px 20px 20px;
    text-align: center;
}

.page-jackpot-games__promo-card .page-jackpot-games__btn-secondary {
    margin: 0 auto 20px auto;
    display: block;
    width: fit-content;
}

/* --- Mobile Experience Section --- */
.page-jackpot-games__mobile-experience {
    padding: 80px 20px;
}

.page-jackpot-games__flex-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-jackpot-games__mobile-content {
    flex: 1;
    text-align: left;
}

.page-jackpot-games__mobile-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-jackpot-games__mobile-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

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

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

.page-jackpot-games__faq-item {
    background-color: #ffffff;
    border-radius: 10px;
    margin-bottom: 20px;
    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 30px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #f0f8f0; /* Light green background for question */
    border-bottom: 1px solid #e0e0e0;
}

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

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

.page-jackpot-games__faq-toggle {
    font-size: 1.5em;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

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

.page-jackpot-games__faq-answer {
    padding: 20px 30px;
    font-size: 1em;
    color: #555555;
    background-color: #ffffff;
}

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

/* 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;
}

/* --- Final CTA Section --- */
.page-jackpot-games__cta-final {
    padding: 80px 20px;
    text-align: center;
}

.page-jackpot-games__cta-content {
    max-width: 900px;
}

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


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-jackpot-games__hero-title {
        font-size: 3em;
    }
    .page-jackpot-games__hero-description {
        font-size: 1.2em;
    }
    .page-jackpot-games__section-title {
        font-size: 2em;
    }
    .page-jackpot-games__feature-title {
        font-size: 1.5em;
    }
    .page-jackpot-games__game-title {
        font-size: 1.3em;
    }
    .page-jackpot-games__promo-title {
        font-size: 1.3em;
    }
    .page-jackpot-games__step-title {
        font-size: 1.4em;
    }
}

@media (max-width: 768px) {
    .page-jackpot-games {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-jackpot-games__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-jackpot-games__hero-title {
        font-size: 2.2em;
    }
    .page-jackpot-games__hero-description {
        font-size: 1em;
    }
    .page-jackpot-games__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-jackpot-games__btn-login {
        margin-left: 0; /* Remove margin for stacked buttons */
    }

    .page-jackpot-games__section-title {
        font-size: 1.8em;
    }
    .page-jackpot-games__text-block {
        font-size: 0.95em;
    }

    .page-jackpot-games__features-grid,
    .page-jackpot-games__game-grid,
    .page-jackpot-games__promo-grid,
    .page-jackpot-games__steps-list {
        grid-template-columns: 1fr;
    }
}