/* style/slot-games.css */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: #FFF5E1; /* Text Main color on dark body background */
    background-color: #000; /* Default background for sections without specific color */
    line-height: 1.6;
}

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

.page-slot-games__section-title {
    font-size: 2.5em;
    color: #FFD86A; /* Gold color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 216, 106, 0.5);
}

.page-slot-games__description-text {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FFF5E1;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background-color: #000;
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 700px; /* Limit height for aesthetic */
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Pull content up over the image slightly for a dynamic look */
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-50px); /* Adjust to make sure it's not overlapping the image's visible area */
}

.page-slot-games__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Use clamp for H1 */
    color: #FFD86A; /* Gold */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(255, 216, 106, 0.7);
}

.page-slot-games__description {
    font-size: 1.2em;
    color: #FFF5E1;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-text {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-slot-games__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    color: #7A0E0E; /* Deep Red for text on gold button */
    border: 2px solid #F2B544; /* Border color */
}

.page-slot-games__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 6px 20px rgba(255, 216, 106, 0.4);
    transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
    background: #C91F17; /* Main color */
    color: #FFF5E1; /* Text Main */
    border: 2px solid #E53935; /* Auxiliary color */
}

.page-slot-games__btn-secondary:hover {
    background: #E53935; /* Auxiliary color */
    box-shadow: 0 6px 20px rgba(201, 31, 23, 0.4);
    transform: translateY(-2px);
}

.page-slot-games__btn-text {
    background: none;
    color: #FFD86A; /* Gold color */
    border: 1px solid #FFD86A;
    padding: 10px 20px;
    font-size: 1em;
    display: inline-block;
    margin-top: 15px;
}

.page-slot-games__btn-text:hover {
    background: rgba(255, 216, 106, 0.1);
    color: #FFF5E1;
    border-color: #FFF5E1;
}

/* About Slots Section */
.page-slot-games__about-slots-section {
    padding: 80px 0;
    background-color: #B71C1C; /* Background color */
    color: #FFF5E1; /* Text Main */
}

.page-slot-games__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-slot-games__text-block {
    flex: 1;
}

.page-slot-games__text-block p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-slot-games__content-image {
    flex: 1;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Game Showcase Section */
.page-slot-games__game-showcase-section {
    padding: 80px 0;
    background-color: #000; /* Dark background */
    color: #FFF5E1;
}

.page-slot-games__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-slot-games__game-card {
    background-color: #D32F2F; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-slot-games__card-title {
    font-size: 1.5em;
    color: #FFD86A; /* Gold */
    margin-bottom: 10px;
}

.page-slot-games__card-text {
    font-size: 1em;
    color: #FFF5E1;
    padding: 0 20px;
    margin-bottom: 15px;
}

/* Features Section */
.page-slot-games__features-section {
    padding: 80px 0;
    background-color: #B71C1C; /* Background color */
    color: #FFF5E1;
}

.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: #D32F2F; /* Card BG */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-slot-games__feature-item:hover {
    transform: translateY(-5px);
}

.page-slot-games__feature-title {
    font-size: 1.4em;
    color: #FFD86A; /* Gold */
    margin-bottom: 15px;
}

.page-slot-games__feature-item p {
    font-size: 1em;
    color: #FFF5E1;
}

/* How to Play Section */
.page-slot-games__how-to-play-section {
    padding: 80px 0;
    background-color: #000; /* Dark background */
    color: #FFF5E1;
}

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

.page-slot-games__step-item {
    background-color: #D32F2F; /* Card BG */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__step-title {
    font-size: 1.3em;
    color: #FFD86A; /* Gold */
    margin-bottom: 15px;
}

.page-slot-games__step-item p {
    font-size: 1em;
    color: #FFF5E1;
}

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

/* FAQ Section */
.page-slot-games__faq-section {
    padding: 80px 0;
    background-color: #B71C1C; /* Background color */
    color: #FFF5E1;
}

.page-slot-games__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__faq-item {
    background-color: #D32F2F; /* Card BG */
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #FFF5E1;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD86A; /* Gold */
    cursor: pointer;
    user-select: none;
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    transform: rotate(0deg); /* No rotation for minus */
}

.page-slot-games__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: #FFF5E1;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-slot-games__hero-content {
        margin-top: -50px;
        transform: translateY(-20px);
    }
}

@media (max-width: 768px) {
    .page-slot-games__section-title {
        font-size: 2em;
    }

    .page-slot-games__main-title {
        font-size: clamp(1.8em, 5vw, 2.2em);
    }

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

    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .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;
        display: flex; /* Ensure flex behavior for wrapping */
        flex-direction: column; /* Stack buttons vertically */
    }

    .page-slot-games__hero-section {
        padding-top: 10px !important; /* body handles --header-offset */
    }

    .page-slot-games__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-slot-games__text-block,
    .page-slot-games__content-image {
        flex: none;
        width: 100%;
    }
    
    /* Ensure all images are responsive */
    .page-slot-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All containers that might hold images or content */
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__hero-section,
    .page-slot-games__about-slots-section,
    .page-slot-games__game-showcase-section,
    .page-slot-games__features-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
}

@media (max-width: 480px) {
    .page-slot-games__section-title {
        font-size: 1.8em;
    }
    .page-slot-games__main-title {
        font-size: clamp(1.6em, 6vw, 2em);
    }
    .page-slot-games__hero-content {
        padding: 20px 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
    .page-slot-games__game-card,
    .page-slot-games__feature-item,
    .page-slot-games__step-item,
    .page-slot-games__faq-item {
        padding: 20px;
    }
    .page-slot-games__faq-question {
        font-size: 1.1em;
    }
}