.page-slot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Assuming shared.css handles body background */
}

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 0;
    background-color: #017439; /* Brand color for hero background */
    color: #ffffff;
    overflow: hidden; /* For video */
    padding-top: var(--header-offset, 120px); /* Apply header offset here */
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.page-slot-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-slot-games__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-slot-games__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* For mobile */
}

/* Video Wrapper for Hero */
.page-slot-games__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-slot-games__video-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-slot-games__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Dim video for text readability */
}

/* General Section Styles */
.page-slot-games__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff; /* Default for dark sections */
}

.page-slot-games__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0; /* Default for dark sections */
}

/* Dark Section */
.page-slot-games__dark-section {
    background-color: #017439; /* Main brand color */
    padding: 60px 0;
    color: #ffffff;
}

.page-slot-games__dark-section .page-slot-games__section-title {
    color: #ffffff;
}
.page-slot-games__dark-section .page-slot-games__section-description {
    color: #f0f0f0;
}

/* Light Section */
.page-slot-games__light-bg {
    background-color: #ffffff; /* Auxiliary color */
    padding: 60px 0;
    color: #333333; /* Dark text for light background */
}

.page-slot-games__light-bg .page-slot-games__section-title {
    color: #017439; /* Brand color for title on light background */
}
.page-slot-games__light-bg .page-slot-games__section-description {
    color: #555555;
}
.page-slot-games__light-bg .page-slot-games__tip-title {
    color: #017439;
}
.page-slot-games__light-bg .page-slot-games__tip-text {
    color: #333333;
}


/* Buttons */
.page-slot-games__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
    box-sizing: border-box;
}

.page-slot-games__btn-primary:hover {
    background-color: #e02020;
    transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    font-size: 1em;
    box-sizing: border-box;
}

.page-slot-games__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* About Slots Section */
.page-slot-games__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
}

.page-slot-games__feature-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #FFFF00; /* Highlight feature titles */
}

.page-slot-games__feature-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Game Library */
.page-slot-games__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.page-slot-games__game-card:hover {
    transform: translateY(-5px);
}

.page-slot-games__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-slot-games__game-title {
    font-size: 1.4em;
    margin: 15px 15px 10px;
    color: #017439;
}

.page-slot-games__game-desc {
    font-size: 0.95em;
    margin: 0 15px 20px;
    color: #555555;
}

.page-slot-games__game-btn {
    margin-bottom: 20px;
    width: calc(100% - 30px);
    max-width: 200px;
}

/* How To Play Section */
.page-slot-games__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__step-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
}

.page-slot-games__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFFF00;
    margin-bottom: 15px;
}

.page-slot-games__step-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-slot-games__step-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-slot-games__step-btn {
    width: calc(100% - 30px);
    max-width: 180px;
}

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

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

.page-slot-games__promo-card:hover {
    transform: translateY(-5px);
}

.page-slot-games__promo-image {
    width: 100%;
    height: 200px; /* Fixed height */
    object-fit: cover;
    display: block;
}

.page-slot-games__promo-title {
    font-size: 1.4em;
    margin: 15px 15px 10px;
    color: #017439;
}

.page-slot-games__promo-text {
    font-size: 0.95em;
    margin: 0 15px 20px;
    color: #555555;
}

.page-slot-games__promo-btn {
    margin-bottom: 20px;
    width: calc(100% - 30px);
    max-width: 150px;
}

.page-slot-games__cta-center {
    text-align: center;
    margin-top: 40px;
}

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

.page-slot-games__tip-item {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-slot-games__tip-title {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.page-slot-games__tip-text {
    font-size: 1em;
}

.page-slot-games__strategy-link {
    display: block;
    margin: 40px auto 0;
    max-width: 250px;
    text-align: center;
}

/* FAQ Section */
.page-slot-games__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: #ffffff;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
    color: #ffffff;
}

.page-slot-games__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFFF00; /* Highlight toggle icon */
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    transform: rotate(45deg);
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 20px;
}

.page-slot-games__faq-answer p {
    margin: 0;
    padding-bottom: 15px; /* Add some padding to the last paragraph */
}

/* Final CTA Section */
.page-slot-games__cta-final {
    text-align: center;
    padding: 60px 0;
    background-color: #017439; /* Brand color */
    color: #ffffff;
}

.page-slot-games__large-cta-btn {
    font-size: 1.4em;
    padding: 18px 40px;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 2.8em;
    }
    .page-slot-games__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px);
    }
    .page-slot-games__hero-title {
        font-size: 2.2em;
    }
    .page-slot-games__hero-description {
        font-size: 1em;
    }
    .page-slot-games__hero-cta {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
    }
    .page-slot-games__hero-cta .page-slot-games__btn-primary,
    .page-slot-games__hero-cta .page-slot-games__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-slot-games__section-title {
        font-size: 1.8em;
    }
    .page-slot-games__section-description {
        font-size: 0.95em;
    }

    .page-slot-games__dark-section,
    .page-slot-games__light-bg,
    .page-slot-games__cta-final {
        padding: 40px 0;
    }

    /* Images responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games__game-card,
    .page-slot-games__promo-card,
    .page-slot-games__feature-item,
    .page-slot-games__step-item,
    .page-slot-games__tip-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-slot-games__game-image, .page-slot-games__promo-image {
        height: auto; /* Allow auto height on mobile */
    }
    
    /* Video responsiveness */
    .page-slot-games__video-wrapper {
        position: relative;
        height: 250px; /* Fixed height for mobile video */
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .page-slot-games__video-link {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .page-slot-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        object-fit: cover;
    }

    /* Buttons responsiveness */
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games a[class*="button"],
    .page-slot-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-slot-games__cta-buttons,
    .page-slot-games__button-group,
    .page-slot-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-slot-games__cta-center .page-slot-games__btn-secondary,
    .page-slot-games__large-cta-btn {
        width: calc(100% - 30px) !important;
        max-width: none !important;
        margin-left: 15px;
        margin-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-slot-games__hero-title {
        font-size: 1.8em;
    }
    .page-slot-games__section-title {
        font-size: 1.5em;
    }
    .page-slot-games__hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-slot-games__container {
        padding: 0 15px;
    }
}