/* style/resources-how-to-play-jackpot-slots.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --login-button-color: #EA7C07;
    --background-color: #FFFFFF;
    --black-color-override: #000000; /* As per custom color requirements */
}

.page-resources-how-to-play-jackpot-slots {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for the page, assuming dark body background from shared.css */
    background-color: transparent; /* Let body background from shared.css dictate */
}

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

.page-resources-how-to-play-jackpot-slots__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources-how-to-play-jackpot-slots__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

/* Hero Section */
.page-resources-how-to-play-jackpot-slots__hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    min-height: 600px;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.page-resources-how-to-play-jackpot-slots__hero-content {
    flex: 1;
    max-width: 50%;
    z-index: 1;
}

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

.page-resources-how-to-play-jackpot-slots__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-resources-how-to-play-jackpot-slots__hero-image-wrapper {
    flex: 1;
    max-width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 0;
}

.page-resources-how-to-play-jackpot-slots__hero-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-resources-how-to-play-jackpot-slots__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.page-resources-how-to-play-jackpot-slots__section-title--white {
    color: var(--text-light);
}

.page-resources-how-to-play-jackpot-slots__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: justify;
}

.page-resources-how-to-play-jackpot-slots__paragraph--white {
    color: var(--text-light);
}

.page-resources-how-to-play-jackpot-slots__sub-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-resources-how-to-play-jackpot-slots__list {
    list-style: disc inside;
    margin-left: 20px;
    font-size: 1.1em;
}

.page-resources-how-to-play-jackpot-slots__list-item {
    margin-bottom: 10px;
}

.page-resources-how-to-play-jackpot-slots__image-text-block {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
}

.page-resources-how-to-play-jackpot-slots__image-left {
    flex-shrink: 0;
    width: 40%;
    min-width: 200px; /* Enforce minimum size */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-resources-how-to-play-jackpot-slots__text-content {
    flex-grow: 1;
}

/* Buttons */
.page-resources-how-to-play-jackpot-slots__btn-primary,
.page-resources-how-to-play-jackpot-slots__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

.page-resources-how-to-play-jackpot-slots__btn-primary {
    background-color: var(--login-button-color); /* Using login color for primary action */
    color: var(--text-light);
    border: 2px solid var(--login-button-color);
}

.page-resources-how-to-play-jackpot-slots__btn-primary:hover {
    background-color: darken(var(--login-button-color), 10%);
    border-color: darken(var(--login-button-color), 10%);
}

.page-resources-how-to-play-jackpot-slots__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-resources-how-to-play-jackpot-slots__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-resources-how-to-play-jackpot-slots__btn-primary--large,
.page-resources-how-to-play-jackpot-slots__btn-secondary--large {
    padding: 18px 35px;
    font-size: 1.2em;
}

/* Video Section */
.page-resources-how-to-play-jackpot-slots__video-section {
    padding: 80px 20px;
    text-align: center;
}

.page-resources-how-to-play-jackpot-slots__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-top: 40px;
}

.page-resources-how-to-play-jackpot-slots__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
}

.page-resources-how-to-play-jackpot-slots__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 2;
    cursor: pointer;
}

.page-resources-how-to-play-jackpot-slots__video-overlay:hover {
    opacity: 0.8;
}

.page-resources-how-to-play-jackpot-slots__btn-play {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--login-button-color);
    color: var(--text-light);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources-how-to-play-jackpot-slots__btn-play svg {
    width: 30px;
    height: 30px;
    fill: var(--text-light);
}

.page-resources-how-to-play-jackpot-slots__btn-play:hover {
    background-color: darken(var(--login-button-color), 10%);
}

/* How-to-play Section */
.page-resources-how-to-play-jackpot-slots__how-to-play-section {
    padding: 80px 20px;
}

.page-resources-how-to-play-jackpot-slots__step-by-step {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.page-resources-how-to-play-jackpot-slots__step-item {
    background-color: var(--secondary-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-resources-how-to-play-jackpot-slots__step-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-resources-how-to-play-jackpot-slots__step-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 112px; /* For 16:9 aspect ratio */
}

.page-resources-how-to-play-jackpot-slots__step-description {
    font-size: 1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Strategy Section */
.page-resources-how-to-play-jackpot-slots__strategy-section {
    padding: 80px 20px;
}

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

.page-resources-how-to-play-jackpot-slots__strategy-card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-resources-how-to-play-jackpot-slots__card-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources-how-to-play-jackpot-slots__card-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: justify;
}

.page-resources-how-to-play-jackpot-slots__card-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 133px; /* For 3:2 aspect ratio */
}

/* FAQ Section */
.page-resources-how-to-play-jackpot-slots__faq-section {
    padding: 80px 20px;
}

.page-resources-how-to-play-jackpot-slots__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.page-resources-how-to-play-jackpot-slots__faq-item {
    background-color: var(--secondary-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: var(--text-dark);
}

.page-resources-how-to-play-jackpot-slots__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.page-resources-how-to-play-jackpot-slots__faq-question:hover {
    background-color: #eef;
}

.page-resources-how-to-play-jackpot-slots__faq-title {
    margin: 0;
    font-size: 1em; /* Adjust to fit parent */
    color: var(--primary-color);
}

.page-resources-how-to-play-jackpot-slots__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.page-resources-how-to-play-jackpot-slots__faq-item.active .page-resources-how-to-play-jackpot-slots__faq-toggle {
    transform: rotate(45deg);
}

.page-resources-how-to-play-jackpot-slots__faq-answer {
    max-height: 0 !important; /* IMPORTANT for JS transition */
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
}

.page-resources-how-to-play-jackpot-slots__faq-item.active .page-resources-how-to-play-jackpot-slots__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 25px;
    padding-top: 0;
}

.page-resources-how-to-play-jackpot-slots__faq-answer .page-resources-how-to-play-jackpot-slots__paragraph {
    margin-bottom: 10px;
}

/* CTA Section */
.page-resources-how-to-play-jackpot-slots__cta-section {
    padding: 80px 20px;
    text-align: center;
}

.page-resources-how-to-play-jackpot-slots__cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-resources-how-to-play-jackpot-slots__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-resources-how-to-play-jackpot-slots__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    color: var(--text-light);
}

.page-resources-how-to-play-jackpot-slots__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-how-to-play-jackpot-slots__hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-resources-how-to-play-jackpot-slots__hero-content,
    .page-resources-how-to-play-jackpot-slots__hero-image-wrapper {
        max-width: 100%;
    }

    .page-resources-how-to-play-jackpot-slots__image-text-block {
        flex-direction: column;
    }

    .page-resources-how-to-play-jackpot-slots__image-left {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
}

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

    .page-resources-how-to-play-jackpot-slots__hero-section,
    .page-resources-how-to-play-jackpot-slots__introduction-section,
    .page-resources-how-to-play-jackpot-slots__video-section,
    .page-resources-how-to-play-jackpot-slots__how-to-play-section,
    .page-resources-how-to-play-jackpot-slots__strategy-section,
    .page-resources-how-to-play-jackpot-slots__faq-section,
    .page-resources-how-to-play-jackpot-slots__cta-section {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure padding-top on relevant sections */
    }

    .page-resources-how-to-play-jackpot-slots__hero-title {
        font-size: 2.5em;
    }

    .page-resources-how-to-play-jackpot-slots__hero-description {
        font-size: 1em;
    }

    .page-resources-how-to-play-jackpot-slots__section-title,
    .page-resources-how-to-play-jackpot-slots__cta-title {
        font-size: 2em;
    }

    .page-resources-how-to-play-jackpot-slots__sub-title {
        font-size: 1.5em;
    }

    /* Images responsive */
    .page-resources-how-to-play-jackpot-slots img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: auto !important;
    }
    
    .page-resources-how-to-play-jackpot-slots__hero-image-wrapper,
    .page-resources-how-to-play-jackpot-slots__image-text-block,
    .page-resources-how-to-play-jackpot-slots__step-item,
    .page-resources-how-to-play-jackpot-slots__strategy-card,
    .page-resources-how-to-play-jackpot-slots__faq-item,
    .page-resources-how-to-play-jackpot-slots__cta-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Videos responsive */
    .page-resources-how-to-play-jackpot-slots video,
    .page-resources-how-to-play-jackpot-slots__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources-how-to-play-jackpot-slots__video-section,
    .page-resources-how-to-play-jackpot-slots__video-container,
    .page-resources-how-to-play-jackpot-slots__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    .page-resources-how-to-play-jackpot-slots__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio for video wrapper */
    }

    /* Buttons responsive */
    .page-resources-how-to-play-jackpot-slots__btn-primary,
    .page-resources-how-to-play-jackpot-slots__btn-secondary,
    .page-resources-how-to-play-jackpot-slots a[class*="button"],
    .page-resources-how-to-play-jackpot-slots 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-resources-how-to-play-jackpot-slots__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
    .page-resources-how-to-play-jackpot-slots__cta-buttons > * {
        margin: 0 auto; /* Center individual buttons if needed */
    }

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

    .page-resources-how-to-play-jackpot-slots__faq-answer {
        padding: 0 20px;
    }
    .page-resources-how-to-play-jackpot-slots__faq-item.active .page-resources-how-to-play-jackpot-slots__faq-answer {
        padding: 15px 20px;
        padding-top: 0;
    }
}

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

    .page-resources-how-to-play-jackpot-slots__section-title,
    .page-resources-how-to-play-jackpot-slots__cta-title {
        font-size: 1.8em;
    }

    .page-resources-how-to-play-jackpot-slots__btn-primary,
    .page-resources-how-to-play-jackpot-slots__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
    .page-resources-how-to-play-jackpot-slots__btn-play {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-resources-how-to-play-jackpot-slots__btn-play svg {
        width: 24px;
        height: 24px;
    }
}