/* style/jackpot-games.css */
:root {
    --primary-color: #FFD700;
    --secondary-color: #1E90FF;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f9f9f9;
    --background-dark: #1a1a1a;
}

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

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

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

.page-jackpot-games__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-jackpot-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-jackpot-games__text-block {
    font-size: 18px;
    text-align: center;
    max-width: 900px;
    margin: 20px auto 30px auto;
}

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

.page-jackpot-games__cta-buttons--center {
    margin-top: 40px;
}

.page-jackpot-games__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-jackpot-games__cta-button--primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-jackpot-games__cta-button--primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-jackpot-games__cta-button--secondary {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}

.page-jackpot-games__cta-button--secondary:hover {
    background-color: #1a7fd9;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-jackpot-games__hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-light);
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
}

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

.page-jackpot-games__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: -1;
}

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

.page-jackpot-games__main-title {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-jackpot-games__hero-description {
    font-size: 22px;
    margin-bottom: 40px;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* About Jackpot Section */
.page-jackpot-games__about-jackpot-section {
    background-color: var(--background-light);
}

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

.page-jackpot-games__feature-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-jackpot-games__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-jackpot-games__feature-item img {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-jackpot-games__feature-title {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-jackpot-games__feature-item p {
    font-size: 16px;
    color: var(--text-color-dark);
}

/* How To Play Section */
.page-jackpot-games__dark-section {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}

.page-jackpot-games__dark-section .page-jackpot-games__section-title {
    color: var(--primary-color);
}

.page-jackpot-games__dark-section .page-jackpot-games__text-block {
    color: var(--text-color-light);
}

.page-jackpot-games__dark-section .page-jackpot-games__section-title::after {
    background-color: var(--text-color-light);
}

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

.page-jackpot-games__steps-list li {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    text-align: left;
    position: relative;
    counter-increment: step-counter;
}

.page-jackpot-games__steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: var(--primary-color);
    color: var(--text-color-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-jackpot-games__step-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-top: 10px;
    margin-bottom: 10px;
}

.page-jackpot-games__steps-list p {
    font-size: 16px;
    color: var(--text-color-light);
}

/* Promotions Section */
.page-jackpot-games__promotions-section {
    background-color: var(--background-light);
}

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

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

.page-jackpot-games__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-jackpot-games__promo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-jackpot-games__promo-title {
    font-size: 22px;
    color: var(--secondary-color);
    margin: 20px 15px 10px 15px;
}

.page-jackpot-games__promo-card p {
    font-size: 16px;
    color: var(--text-color-dark);
    padding: 0 15px 20px 15px;
}

.page-jackpot-games__promo-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.page-jackpot-games__promo-link:hover {
    background-color: #e6c200;
}

/* FAQ Section */
.page-jackpot-games__faq-section {
    background-color: var(--background-light);
}

.page-jackpot-games__faq-list {
    margin-top: 40px;
}

.page-jackpot-games__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-jackpot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    font-size: 16px;
    color: var(--text-color-dark);
}

.page-jackpot-games__faq-item.active .page-jackpot-games__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #ffffff;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-jackpot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-jackpot-games__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.page-jackpot-games__faq-question:active {
    background: #eeeeee;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.page-jackpot-games__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--secondary-color);
    pointer-events: none;
}

.page-jackpot-games__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-jackpot-games__faq-item.active .page-jackpot-games__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg);
}

/* Brand Section */
.page-jackpot-games__brand-section {
    background-color: var(--background-dark);
    color: var(--text-color-light);
}

.page-jackpot-games__brand-section .page-jackpot-games__section-title {
    color: var(--primary-color);
}

.page-jackpot-games__brand-section .page-jackpot-games__text-block {
    color: var(--text-color-light);
}

.page-jackpot-games__brand-section .page-jackpot-games__section-title::after {
    background-color: var(--text-color-light);
}

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

.page-jackpot-games__brand-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-jackpot-games__brand-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-jackpot-games__brand-item img {
    width: 100%;
    
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-jackpot-games__brand-item-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-jackpot-games__brand-item p {
    font-size: 16px;
    color: var(--text-color-light);
}

/* Blog Section */
.page-jackpot-games__blog-section {
    background-color: var(--background-light);
}

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

.page-jackpot-games__blog-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-jackpot-games__blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-jackpot-games__blog-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.page-jackpot-games__blog-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 10px 10px 0 0;
}

.page-jackpot-games__blog-item-title {
    font-size: 22px;
    color: var(--secondary-color);
    margin: 20px 15px 10px 15px;
    line-height: 1.3;
}

.page-jackpot-games__blog-item-excerpt {
    font-size: 16px;
    color: #666;
    padding: 0 15px;
    margin-bottom: 15px;
}

.page-jackpot-games__blog-item-date {
    display: block;
    font-size: 14px;
    color: #999;
    padding: 0 15px 20px 15px;
    text-align: right;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-jackpot-games__hero-section {
        height: 60vh;
        min-height: 450px;
    }
    .page-jackpot-games__main-title {
        font-size: 44px;
    }
    .page-jackpot-games__hero-description {
        font-size: 20px;
    }
    .page-jackpot-games__section-title {
        font-size: 32px;
    }
    .page-jackpot-games__text-block {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-jackpot-games__hero-section {
        height: auto;
        min-height: 400px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure spacing for fixed header */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-jackpot-games__main-title {
        font-size: 36px;
        margin-bottom: 15px;
    }
    .page-jackpot-games__hero-description {
        font-size: 18px;
        margin-bottom: 30px;
    }
    .page-jackpot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .page-jackpot-games__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-jackpot-games__section-spacing {
        padding: 40px 0;
    }
    .page-jackpot-games__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-jackpot-games__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-jackpot-games__text-block {
        font-size: 16px;
        margin: 15px auto 25px auto;
    }
    .page-jackpot-games__features-grid, .page-jackpot-games__promo-grid, .page-jackpot-games__blog-list, .page-jackpot-games__brand-grid, .page-jackpot-games__steps-list {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }
    .page-jackpot-games__feature-title, .page-jackpot-games__promo-title, .page-jackpot-games__brand-item-title, .page-jackpot-games__blog-item-title {
        font-size: 20px;
    }
    .page-jackpot-games__feature-item p, .page-jackpot-games__promo-card p, .page-jackpot-games__brand-item p, .page-jackpot-games__blog-item-excerpt, .page-jackpot-games__steps-list p {
        font-size: 15px;
    }
    .page-jackpot-games__feature-item img, .page-jackpot-games__promo-card img, .page-jackpot-games__brand-item img, .page-jackpot-games__blog-item img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-jackpot-games__faq-question {
        padding: 15px;
    }
    .page-jackpot-games__faq-question h3 {
        font-size: 16px;
    }
    .page-jackpot-games__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    .page-jackpot-games__faq-item.active .page-jackpot-games__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-jackpot-games__main-title {
        font-size: 30px;
    }
    .page-jackpot-games__hero-description {
        font-size: 16px;
    }
    .page-jackpot-games__section-title {
        font-size: 24px;
    }
    .page-jackpot-games__cta-button {
        font-size: 15px;
        padding: 10px 20px;
    }
    .page-jackpot-games__faq-question h3 {
        font-size: 15px;
    }
}