/* style/jackpot-slots.css */

:root {
    --page-jackpot-slots-primary-color: #017439;
    --page-jackpot-slots-secondary-color: #FFFFFF;
    --page-jackpot-slots-text-dark: #333333;
    --page-jackpot-slots-text-light: #FFFFFF;
    --page-jackpot-slots-button-register-bg: #C30808;
    --page-jackpot-slots-button-login-bg: #C30808;
    --page-jackpot-slots-button-font: #FFFF00;
    --page-jackpot-slots-background-light: #FFFFFF;
    --page-jackpot-slots-border-color: #e0e0e0;
}

.page-jackpot-slots {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-jackpot-slots-text-dark); /* Default text color for light backgrounds */
    background-color: var(--page-jackpot-slots-background-light); /* Default body background is white */
}

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

.page-jackpot-slots__section-title {
    font-size: 2.5em;
    color: var(--page-jackpot-slots-primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

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

.page-jackpot-slots__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-jackpot-slots__dark-bg {
    background-color: var(--page-jackpot-slots-primary-color);
    color: var(--page-jackpot-slots-text-light);
}

.page-jackpot-slots__dark-bg .page-jackpot-slots__section-title {
    color: var(--page-jackpot-slots-text-light);
}

.page-jackpot-slots__dark-bg .page-jackpot-slots__section-title::after {
    background-color: var(--page-jackpot-slots-text-light);
}

.page-jackpot-slots__light-bg {
    background-color: var(--page-jackpot-slots-background-light);
    color: var(--page-jackpot-slots-text-dark);
}

/* Hero Section */
.page-jackpot-slots__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
}

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

.page-jackpot-slots__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.page-jackpot-slots__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
}

.page-jackpot-slots__hero-title {
    font-size: 3.5em;
    color: var(--page-jackpot-slots-text-light);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-jackpot-slots__hero-description {
    font-size: 1.3em;
    color: var(--page-jackpot-slots-text-light);
    margin-bottom: 40px;
}

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

.page-jackpot-slots__btn-primary,
.page-jackpot-slots__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
}

.page-jackpot-slots__btn-primary {
    background-color: var(--page-jackpot-slots-button-register-bg);
    color: var(--page-jackpot-slots-button-font);
    border: 2px solid var(--page-jackpot-slots-button-register-bg);
}

.page-jackpot-slots__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
    transform: translateY(-2px);
}

.page-jackpot-slots__btn-secondary {
    background-color: transparent;
    color: var(--page-jackpot-slots-text-light);
    border: 2px solid var(--page-jackpot-slots-text-light);
}

.page-jackpot-slots__btn-secondary:hover {
    background-color: var(--page-jackpot-slots-text-light);
    color: var(--page-jackpot-slots-primary-color);
    transform: translateY(-2px);
}

/* Introduction Section */
.page-jackpot-slots__introduction-section {
    padding: 80px 0;
}

/* Game Types Section */
.page-jackpot-slots__game-types-section {
    padding: 80px 0;
}

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

.page-jackpot-slots__game-card,
.page-jackpot-slots__promotion-card {
    background-color: var(--page-jackpot-slots-background-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
    color: var(--page-jackpot-slots-text-dark);
}

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

.page-jackpot-slots__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    display: block;
}

.page-jackpot-slots__card-title {
    font-size: 1.5em;
    color: var(--page-jackpot-slots-primary-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-jackpot-slots__card-title a {
    color: var(--page-jackpot-slots-primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-jackpot-slots__card-title a:hover {
    color: #004d29;
}

.page-jackpot-slots__card-description {
    font-size: 1em;
    color: var(--page-jackpot-slots-text-dark);
    padding: 0 15px;
    text-align: justify;
}

.page-jackpot-slots__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* How to Play Section */
.page-jackpot-slots__how-to-play-section {
    padding: 80px 0;
}

.page-jackpot-slots__ordered-list,
.page-jackpot-slots__unordered-list,
.page-jackpot-slots__feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-jackpot-slots__ordered-list li,
.page-jackpot-slots__unordered-list li,
.page-jackpot-slots__feature-list li {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.5;
    position: relative;
    padding-left: 30px;
    text-align: justify;
}

.page-jackpot-slots__ordered-list li::before {
    content: counter(list-item) ".";
    counter-increment: list-item;
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--page-jackpot-slots-primary-color);
    font-size: 1.2em;
}

.page-jackpot-slots__unordered-list li::before,
.page-jackpot-slots__feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--page-jackpot-slots-primary-color);
    font-size: 1.2em;
}

.page-jackpot-slots__list-heading {
    display: inline;
    font-size: 1.1em;
    color: var(--page-jackpot-slots-primary-color);
}

/* Strategy Section */
.page-jackpot-slots__strategy-section {
    padding: 80px 0;
}

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

/* Why Choose Section */
.page-jackpot-slots__why-choose-section {
    padding: 80px 0;
}

/* Video Section */
.page-jackpot-slots__video-section {
    padding: 80px 0;
}

.page-jackpot-slots__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 40px auto;
    background-color: #000;
    border-radius: 10px;
}

.page-jackpot-slots__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-jackpot-slots__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

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

.page-jackpot-slots__faq-item {
    background-color: var(--page-jackpot-slots-background-light);
    border: 1px solid var(--page-jackpot-slots-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-jackpot-slots-text-dark);
}

.page-jackpot-slots__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--page-jackpot-slots-primary-color);
    cursor: pointer;
    list-style: none;
    transition: background-color 0.3s ease;
}

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

.page-jackpot-slots__faq-question:hover {
    background-color: #f0f0f0;
}

.page-jackpot-slots__faq-qtext {
    flex-grow: 1;
    pointer-events: none; /* Ensure click on summary opens/closes details */
}

.page-jackpot-slots__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 15px;
    color: var(--page-jackpot-slots-primary-color);
    pointer-events: none; /* Ensure click on summary opens/closes details */
}

.page-jackpot-slots__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--page-jackpot-slots-text-dark);
    text-align: justify;
}

.page-jackpot-slots__faq-answer p {
    margin-top: 10px;
}

.page-jackpot-slots__faq-answer a {
    color: var(--page-jackpot-slots-primary-color);
    text-decoration: underline;
}

/* Call to Action Section */
.page-jackpot-slots__cta-section {
    padding: 80px 0;
    text-align: center;
}

/* General Image Styling */
.page-jackpot-slots img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-jackpot-slots__hero-title {
        font-size: 3em;
    }

    .page-jackpot-slots__hero-description {
        font-size: 1.1em;
    }

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

    .page-jackpot-slots__game-grid,
    .page-jackpot-slots__promotion-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

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

    .page-jackpot-slots__hero-section {
        min-height: 500px;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
    }

    .page-jackpot-slots__hero-title {
        font-size: 2.5em;
    }

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

    .page-jackpot-slots__hero-buttons,
    .page-jackpot-slots__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-jackpot-slots__btn-primary,
    .page-jackpot-slots__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-jackpot-slots__container,
    .page-jackpot-slots__game-card,
    .page-jackpot-slots__promotion-card,
    .page-jackpot-slots__faq-item,
    .page-jackpot-slots__video-wrapper {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-jackpot-slots__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-jackpot-slots__text-block,
    .page-jackpot-slots__ordered-list li,
    .page-jackpot-slots__unordered-list li,
    .page-jackpot-slots__feature-list li,
    .page-jackpot-slots__card-description,
    .page-jackpot-slots__faq-answer {
        font-size: 0.95em;
    }

    .page-jackpot-slots img,
    .page-jackpot-slots__card-image,
    .page-jackpot-slots__hero-image,
    .page-jackpot-slots__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-jackpot-slots__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Video section must have header offset */
    }

    .page-jackpot-slots__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-jackpot-slots__faq-toggle {
        font-size: 1.3em;
    }

    .page-jackpot-slots__faq-answer {
        padding: 0 20px 15px;
    }

    /* Ensure no horizontal scroll for content areas */
    .page-jackpot-slots__introduction-section,
    .page-jackpot-slots__game-types-section,
    .page-jackpot-slots__how-to-play-section,
    .page-jackpot-slots__strategy-section,
    .page-jackpot-slots__promotions-section,
    .page-jackpot-slots__why-choose-section,
    .page-jackpot-slots__video-section,
    .page-jackpot-slots__faq-section,
    .page-jackpot-slots__cta-section {
        padding-left: 0;
        padding-right: 0;
    }

}

@media (max-width: 480px) {
    .page-jackpot-slots__hero-title {
        font-size: 2em;
    }

    .page-jackpot-slots__section-title {
        font-size: 1.5em;
    }
}