/* style/jackpot-games.css */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --bg-card: #11271B;
    --bg-main: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-jackpot-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
}

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

/* Hero Section */
.page-jackpot-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
    background-color: var(--bg-main);
    overflow: hidden;
}

.page-jackpot-games__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    position: relative;
}

.page-jackpot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6); /* Slightly darken image for text contrast */
}

.page-jackpot-games__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    max-width: 800px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-jackpot-games__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-jackpot-games__hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-jackpot-games__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-jackpot-games__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-jackpot-games__btn-secondary {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-jackpot-games__btn-secondary:hover {
    background: var(--gold-color);
    color: var(--bg-main);
    transform: translateY(-2px);
}

.page-jackpot-games__btn-large {
    padding: 18px 40px;
    font-size: 1.25rem;
}

/* General Section Styling */
.page-jackpot-games__section {
    padding: 80px 0;
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--divider-color);
}

.page-jackpot-games__section:last-of-type {
    border-bottom: none;
}

.page-jackpot-games__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.page-jackpot-games__intro-content p {
    font-size: 1.1rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px auto;
    color: var(--text-secondary);
}

/* Feature Grid */
.page-jackpot-games__feature-grid,
.page-jackpot-games__game-grid,
.page-jackpot-games__steps-grid,
.page-jackpot-games__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-jackpot-games__feature-card,
.page-jackpot-games__game-card,
.page-jackpot-games__step-card,
.page-jackpot-games__promo-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-jackpot-games__feature-card:hover,
.page-jackpot-games__game-card:hover,
.page-jackpot-games__step-card:hover,
.page-jackpot-games__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-jackpot-games__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

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

.page-jackpot-games__card-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-jackpot-games__feature-card p,
.page-jackpot-games__game-card p,
.page-jackpot-games__step-card p,
.page-jackpot-games__promo-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    flex-grow: 1;
}

.page-jackpot-games__step-card .page-jackpot-games__btn-primary,
.page-jackpot-games__step-card .page-jackpot-games__btn-secondary {
    margin-top: 20px;
    width: calc(100% - 20px);
}

/* Dark Background Section */
.page-jackpot-games__dark-bg {
    background-color: var(--deep-green);
    color: var(--text-main);
}

.page-jackpot-games__dark-bg .page-jackpot-games__section-title {
    color: var(--gold-color);
}

.page-jackpot-games__dark-bg .page-jackpot-games__card-title {
    color: var(--gold-color);
}

.page-jackpot-games__dark-bg .page-jackpot-games__feature-card p,
.page-jackpot-games__dark-bg .page-jackpot-games__game-card p,
.page-jackpot-games__dark-bg .page-jackpot-games__step-card p,
.page-jackpot-games__dark-bg .page-jackpot-games__promo-card p {
    color: var(--text-secondary);
}

/* Light Background Section (for contrast example, though current theme is dark) */
.page-jackpot-games__light-bg {
    background-color: var(--bg-main);
    color: var(--text-main);
}

/* Tips and Strategy List */
.page-jackpot-games__tip-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 900px;
}

.page-jackpot-games__tip-item {
    background-color: var(--bg-card);
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-jackpot-games__list-title {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-jackpot-games__tip-item p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* FAQ Section */
.page-jackpot-games__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-jackpot-games__faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-jackpot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold-color);
    cursor: pointer;
    background-color: var(--bg-card);
    transition: background-color 0.3s ease;
}

.page-jackpot-games__faq-question:hover {
    background-color: var(--deep-green);
}

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

.page-jackpot-games__faq-item[open] .page-jackpot-games__faq-toggle {
    content: '−';
}

/* Hide default details marker */
.page-jackpot-games__faq-item > summary {
    list-style: none;
}

.page-jackpot-games__faq-item > summary::-webkit-details-marker {
    display: none;
}

.page-jackpot-games__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.page-jackpot-games__faq-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.page-jackpot-games__faq-link:hover {
    color: var(--gold-color);
}

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

.page-jackpot-games__conclusion p {
    font-size: 1.15rem;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-jackpot-games__hero-content {
        max-width: 700px;
    }

    .page-jackpot-games__main-title {
        font-size: clamp(2.2rem, 4.5vw, 3rem);
    }

    .page-jackpot-games__hero-description {
        font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    }

    .page-jackpot-games__section {
        padding: 60px 0;
    }
}

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

    .page-jackpot-games__hero-section {
        padding-bottom: 40px;
    }

    .page-jackpot-games__hero-content {
        transform: translate(-50%, -50%);
        top: 50%;
        left: 50%;
        max-width: 90%;
    }

    .page-jackpot-games__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .page-jackpot-games__hero-description {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }

    .page-jackpot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-jackpot-games__btn-primary,
    .page-jackpot-games__btn-secondary,
    .page-jackpot-games a[class*="button"],
    .page-jackpot-games a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-jackpot-games__cta-buttons,
    .page-jackpot-games__button-group,
    .page-jackpot-games__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }

    .page-jackpot-games__section {
        padding: 40px 0;
    }

    .page-jackpot-games__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-jackpot-games__feature-grid,
    .page-jackpot-games__game-grid,
    .page-jackpot-games__steps-grid,
    .page-jackpot-games__promo-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-jackpot-games__feature-card,
    .page-jackpot-games__game-card,
    .page-jackpot-games__step-card,
    .page-jackpot-games__promo-card {
        padding: 25px;
    }

    .page-jackpot-games__game-thumbnail,
    .page-jackpot-games__promo-thumbnail {
        height: 180px;
    }

    .page-jackpot-games__card-title {
        font-size: 1.3rem;
    }

    .page-jackpot-games__tip-list {
        margin-top: 30px;
    }

    .page-jackpot-games__tip-item {
        padding: 20px;
    }

    .page-jackpot-games__list-title {
        font-size: 1.2rem;
    }

    .page-jackpot-games__faq-question {
        padding: 18px 20px;
        font-size: 1.1rem;
    }

    .page-jackpot-games__faq-answer {
        padding: 0 20px 18px 20px;
    }

    .page-jackpot-games__conclusion {
        padding: 60px 0;
    }

    /* Mobile image responsive adaptations */
    .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__hero-image-wrapper,
    .page-jackpot-games__feature-card,
    .page-jackpot-games__game-card,
    .page-jackpot-games__step-card,
    .page-jackpot-games__promo-card,
    .page-jackpot-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-jackpot-games__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-jackpot-games__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Ensure content area img min-width requirement */
    .page-jackpot-games__feature-icon, 
    .page-jackpot-games__game-thumbnail, 
    .page-jackpot-games__promo-thumbnail {
        min-width: 200px !important;
        min-height: 200px !important;
        width: 100% !important; /* Ensure it takes full width of parent */
        height: auto !important; /* Maintain aspect ratio */
    }
}

@media (max-width: 480px) {
    .page-jackpot-games__main-title {
        font-size: clamp(1.8rem, 9vw, 2.2rem);
    }

    .page-jackpot-games__hero-description {
        font-size: clamp(0.85rem, 3.5vw, 0.95rem);
    }

    .page-jackpot-games__btn-primary,
    .page-jackpot-games__btn-secondary {
        padding: 12px 20px;
        font-size: 1rem;
    }
}