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

.page-slot-jackpot-games {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--bg-color);
}

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

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

.page-slot-jackpot-games__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
    z-index: 0;
}

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

.page-slot-jackpot-games__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    color: var(--text-main);
    max-width: 900px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-jackpot-games__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-main);
}

.page-slot-jackpot-games__hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 30px;
    line-height: 1.5;
    color: var(--text-secondary);
}

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

.page-slot-jackpot-games__btn-primary,
.page-slot-jackpot-games__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
    box-sizing: border-box;
    display: inline-block;
}

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

.page-slot-jackpot-games__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-jackpot-games__btn-secondary {
    background: transparent;
    color: var(--glow-color);
    border: 2px solid var(--glow-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-jackpot-games__btn-secondary:hover {
    background: rgba(var(--glow-color), 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-jackpot-games__btn-center {
    display: block;
    margin: 30px auto 0 auto;
    max-width: 300px;
}

/* Sections */
.page-slot-jackpot-games__introduction-section,
.page-slot-jackpot-games__game-types-section,
.page-slot-jackpot-games__promotions-section,
.page-slot-jackpot-games__tips-section,
.page-slot-jackpot-games__faq-section {
    padding: 60px 0;
    background-color: var(--bg-color);
}

.page-slot-jackpot-games__dark-section {
    background-color: var(--card-bg);
    padding: 60px 0;
    color: var(--text-main);
}

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

.page-slot-jackpot-games__text-block {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-secondary);
}

.page-slot-jackpot-games__text-block strong {
    color: var(--text-main);
}

.page-slot-jackpot-games__text-link {
    color: var(--glow-color);
    text-decoration: none;
    font-weight: bold;
}

.page-slot-jackpot-games__text-link:hover {
    text-decoration: underline;
}

/* Feature Grid */
.page-slot-jackpot-games__feature-grid,
.page-slot-jackpot-games__type-grid,
.page-slot-jackpot-games__step-by-step-guide {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

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

.page-slot-jackpot-games__feature-icon,
.page-slot-jackpot-games__type-image,
.page-slot-jackpot-games__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    object-fit: cover;
}

.page-slot-jackpot-games__card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--gold-color);
}

.page-slot-jackpot-games__card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    flex-grow: 1;
}

/* Jackpot Section */
.page-slot-jackpot-games__jackpot-section .page-slot-jackpot-games__content-image {
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    border: 2px solid var(--gold-color);
    box-shadow: 0 0 20px rgba(var(--gold-color), 0.5);
}

/* Promotions List */
.page-slot-jackpot-games__promo-list,
.page-slot-jackpot-games__tips-list,
.page-slot-jackpot-games__responsible-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-slot-jackpot-games__promo-item,
.page-slot-jackpot-games__tips-item,
.page-slot-jackpot-games__responsible-item {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: var(--text-secondary);
}

.page-slot-jackpot-games__promo-item::before,
.page-slot-jackpot-games__tips-item::before,
.page-slot-jackpot-games__responsible-item::before {
    content: '✓';
    color: var(--glow-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* How to Play Steps */
.page-slot-jackpot-games__step-number {
    background-color: var(--gold-color);
    color: var(--bg-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-slot-jackpot-games__step-card .page-slot-jackpot-games__btn-secondary {
    margin-top: 20px;
    max-width: 200px;
    width: 100%;
}

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

.page-slot-jackpot-games__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-slot-jackpot-games__faq-item[open] {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-slot-jackpot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-main);
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--divider-color);
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for details summary */
}

.page-slot-jackpot-games__faq-question::-webkit-details-marker {
    display: none;
}

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

.page-slot-jackpot-games__faq-toggle {
    font-size: 1.5rem;
    margin-left: 15px;
    color: var(--glow-color);
}

.page-slot-jackpot-games__faq-answer {
    padding: 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--card-bg);
}

.page-slot-jackpot-games__faq-answer p {
    margin: 0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-jackpot-games__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-slot-jackpot-games__hero-description {
        font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    }
    .page-slot-jackpot-games__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-slot-jackpot-games__hero-section {
        padding-bottom: 40px;
    }
    .page-slot-jackpot-games__hero-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 20px 15px;
        background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
        text-shadow: none;
    }
    .page-slot-jackpot-games__hero-image-wrapper {
        max-height: 400px;
    }
    .page-slot-jackpot-games__hero-image {
        filter: brightness(0.5);
    }

    .page-slot-jackpot-games__main-title {
        font-size: 2rem;
        margin-top: 20px;
        color: var(--text-main);
    }
    .page-slot-jackpot-games__hero-description {
        font-size: 1rem;
        color: var(--text-secondary);
    }

    .page-slot-jackpot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-slot-jackpot-games__btn-primary,
    .page-slot-jackpot-games__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .page-slot-jackpot-games__introduction-section,
    .page-slot-jackpot-games__why-choose-section,
    .page-slot-jackpot-games__game-types-section,
    .page-slot-jackpot-games__jackpot-section,
    .page-slot-jackpot-games__promotions-section,
    .page-slot-jackpot-games__how-to-play-section,
    .page-slot-jackpot-games__tips-section,
    .page-slot-jackpot-games__responsible-gaming-section,
    .page-slot-jackpot-games__faq-section,
    .page-slot-jackpot-games__conclusion-section {
        padding: 40px 0;
    }

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

    .page-slot-jackpot-games__section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .page-slot-jackpot-games__text-block,
    .page-slot-jackpot-games__promo-item,
    .page-slot-jackpot-games__tips-item,
    .page-slot-jackpot-games__responsible-item,
    .page-slot-jackpot-games__card-text,
    .page-slot-jackpot-games__faq-answer {
        font-size: 0.95rem;
        text-align: left;
    }

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

    .page-slot-jackpot-games__feature-grid,
    .page-slot-jackpot-games__type-grid,
    .page-slot-jackpot-games__step-by-step-guide {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-slot-jackpot-games__feature-icon,
    .page-slot-jackpot-games__type-image,
    .page-slot-jackpot-games__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-slot-jackpot-games__faq-question {
        padding: 15px;
        font-size: 1rem;
    }
    .page-slot-jackpot-games__faq-toggle {
        font-size: 1.3rem;
    }
}

/* Ensure images within content areas do not shrink below 200px */
.page-slot-jackpot-games__feature-icon,
.page-slot-jackpot-games__type-image,
.page-slot-jackpot-games__content-image {
    min-width: 200px;
    min-height: 200px;
}

/* Specific mobile overrides for image/video containers */
@media (max-width: 768px) {
    .page-slot-jackpot-games__hero-image-wrapper,
    .page-slot-jackpot-games__feature-card,
    .page-slot-jackpot-games__type-card,
    .page-slot-jackpot-games__step-card,
    .page-slot-jackpot-games__jackpot-section .page-slot-jackpot-games__content-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0;
    }

    .page-slot-jackpot-games__hero-section {
        padding-top: 10px !important; /* body already handles header offset */
    }

    /* Generic image rules for content area to prevent overflow */
    .page-slot-jackpot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-slot-jackpot-games__section,
    .page-slot-jackpot-games__card,
    .page-slot-jackpot-games__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}