.page-slot-games {
    color: #ffffff; /* Default text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Main content background will blend with body */
}

/* Container for sections to control max-width */
.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Section styling for alternating backgrounds */
.page-slot-games__dark-bg {
    background-color: #1a1a2e; /* Inherit from body or use a dark shade */
    color: #ffffff;
    padding: 60px 0;
}

.page-slot-games__light-bg {
    background-color: #263c5e; /* A slightly lighter dark shade for contrast */
    color: #ffffff;
    padding: 60px 0;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    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;
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit hero image height */
    /* No filter property */
}

.page-slot-games__hero-content {
    position: relative; /* Ensure content is above image if needed, but not overlaying */
    z-index: 2;
    padding: 20px;
    max-width: 800px;
    margin-top: 20px; /* Space between image and text */
}

.page-slot-games__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 15px;
}

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

/* Section Titles */
.page-slot-games__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

/* Text Blocks */
.page-slot-games__text-block {
    font-size: 1rem;
    color: #f0f0f0;
    margin-bottom: 20px;
    text-align: justify;
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    max-width: 100%;
}

.page-slot-games__btn-primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
    margin: 10px;
}

.page-slot-games__btn-primary:hover {
    background-color: #1e87b0;
    border-color: #1e87b0;
}

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    margin: 10px;
}

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

.page-slot-games__cta-button {
    margin-top: 30px;
    width: auto; /* Default width */
}

.page-slot-games__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Introduction Section */
.page-slot-games__introduction-section .page-slot-games__image-content {
    margin-top: 30px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

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

.page-slot-games__feature-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__feature-title {
    font-size: 1.4rem;
    color: #26A9E0;
    margin-bottom: 15px;
}

/* How to Play Section */
.page-slot-games__how-to-play-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-slot-games__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
}

.page-slot-games__step-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-slot-games__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #26A9E0;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-slot-games__step-title {
    font-size: 1.3rem;
    color: #26A9E0;
    margin-bottom: 10px;
}

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

.page-slot-games__game-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

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

.page-slot-games__game-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-slot-games__game-title {
    font-size: 1.3rem;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-slot-games__game-description {
    font-size: 0.95rem;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Promotions Section */
.page-slot-games__promotion-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-slot-games__promotion-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-left: 5px solid #26A9E0;
    border-radius: 5px;
    color: #f0f0f0;
    font-size: 1rem;
}

.page-slot-games__promotions-section .page-slot-games__image-content {
    margin-top: 40px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Video Section */
.page-slot-games__video-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
}

.page-slot-games__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%; /* Desktop width */
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
    /* No filter property */
}

.page-slot-games__video-description {
    margin-top: 20px;
    text-align: center;
}

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

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

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* Remove default marker for summary */
}

.page-slot-games__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
    border-bottom: 1px solid #26A9E0;
}

.page-slot-games__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #26A9E0;
}

.page-slot-games__faq-answer {
    padding: 15px 25px;
    color: #f0f0f0;
    font-size: 0.95rem;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Conclusion Section */
.page-slot-games__conclusion-section {
    text-align: center;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-slot-games__hero-image {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-slot-games__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games__hero-section {
        padding-bottom: 40px;
    }
    
    .page-slot-games__hero-content {
        margin-top: 10px;
    }

    .page-slot-games__main-title {
        font-size: 2.2rem;
    }

    .page-slot-games__hero-description {
        font-size: 1rem;
    }

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

    .page-slot-games__text-block {
        font-size: 0.95rem;
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 5px 0 !important; /* Adjust margin for stacked buttons */
    }

    .page-slot-games__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }

    .page-slot-games__features-grid,
    .page-slot-games__steps,
    .page-slot-games__game-cards-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-slot-games__how-to-play-wrapper {
        flex-direction: column;
    }

    .page-slot-games__introduction-section,
    .page-slot-games__features-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__popular-games-section,
    .page-slot-games__promotions-section,
    .page-slot-games__video-section,
    .page-slot-games__faq-section,
    .page-slot-games__conclusion-section {
        padding: 40px 0;
    }
    
    .page-slot-games__video-section {
        padding-top: 10px !important; /* Ensure small top padding */
    }

    /* Mobile image and video responsive rules */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-slot-games__video-wrapper,
    .page-slot-games__video-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-slot-games video,
    .page-slot-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-slot-games__main-title {
        font-size: 1.8rem;
    }
    .page-slot-games__section-title {
        font-size: 1.5rem;
    }
    .page-slot-games__feature-item,
    .page-slot-games__step-item,
    .page-slot-games__game-card {
        padding: 20px;
    }
    .page-slot-games__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-slot-games__faq-answer {
        padding: 10px 20px;
    }
}