/* style/slot-games.css */

/* Base Styles for .page-slot-games */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Deep dark grey for readability on light background */
    background: #FFFFFF; /* Body background is light, so use dark text */
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Primary brand color gradient */
    color: #FFFFFF; /* White text on brand color background */
    overflow: hidden; /* Prevent content overflow */
}

.page-slot-games__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-slot-games__hero-image {
    width: 100%;
    margin-bottom: 30px;
    z-index: 1; /* Image below text if text is overlayed */
}

.page-slot-games__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2; /* Text above image if image is background-like */
    text-align: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.page-slot-games__hero-content h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.page-slot-games__hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%; /* Ensure container takes full width for responsive */
    max-width: 500px; /* Limit width on desktop */
    margin: 0 auto;
}

.page-slot-games__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
    max-width: 220px; /* Limit individual button width */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-slot-games__btn-primary:hover {
    background: #1e87b8;
    border-color: #1e87b8;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-secondary {
    background: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-slot-games__btn-secondary:hover {
    background: #c76706;
    border-color: #c76706;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-slot-games__section {
    padding: 80px 20px;
    text-align: center;
    background: #FFFFFF;
    color: #333333;
}

.page-slot-games__section:nth-of-type(even) {
    background: #f8f8f8; /* Light grey for alternating sections */
}

.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: #26A9E0;
    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: #26A9E0;
    border-radius: 2px;
}

.page-slot-games__text-block {
    font-size: 1.1em;
    margin-bottom: 25px;
    line-height: 1.7;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

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

.page-slot-games__game-card,
.page-slot-games__benefit-item,
.page-slot-games__news-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-slot-games__game-card:hover,
.page-slot-games__benefit-item:hover,
.page-slot-games__news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-slot-games__game-card img,
.page-slot-games__benefit-item img,
.page-slot-games__news-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Minimum size enforcement */
    min- /* Minimum size enforcement */
}

.page-slot-games__card-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
}

.page-slot-games__card-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-slot-games__card-title a:hover {
    color: #1e87b8;
    text-decoration: underline;
}

.page-slot-games__game-card p,
.page-slot-games__benefit-item p,
.page-slot-games__news-card p {
    font-size: 1em;
    color: #555555;
    line-height: 1.6;
    text-align: center;
}

/* Promotions List */
.page-slot-games__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-slot-games__promo-list li {
    background: #f0f0f0;
    margin-bottom: 15px;
    padding: 20px 25px;
    border-left: 5px solid #26A9E0;
    border-radius: 5px;
    font-size: 1.1em;
    color: #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-slot-games__promo-list li strong {
    color: #26A9E0;
}

/* How-To-Play Steps */
.page-slot-games__step-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-slot-games__step-list li {
    position: relative;
    padding: 20px 20px 20px 80px;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    font-size: 1.1em;
    color: #333333;
}

.page-slot-games__step-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #26A9E0;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3em;
}

.page-slot-games__step-list li strong {
    color: #26A9E0;
    display: block;
    margin-bottom: 5px;
}

/* Benefit Items */
.page-slot-games__benefit-item {
    padding: 30px;
}

.page-slot-games__benefit-item img {
    width: 100%;
    max-width: 250px; /* Adjust max-width for benefit icons/images */
    height: auto;
    object-fit: contain; /* Ensure image fits without cropping */
    margin-bottom: 15px;
}

.page-slot-games__benefit-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

/* FAQ Section */
.page-slot-games__faq-section {
    padding-bottom: 80px;
}

.page-slot-games__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

.page-slot-games__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    color: #555555;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 2000px !important; /* Use !important and large value */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-slot-games__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-slot-games__faq-question:active {
    background: #eeeeee;
}

.page-slot-games__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #333333;
}

.page-slot-games__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    color: #26A9E0;
    transform: rotate(45deg); /* Change to X or just rotate for - */
}

/* News/Blog Cards */
.page-slot-games__news-card {
    padding: 20px;
    align-items: stretch; /* Ensure cards stretch to same height */
}

.page-slot-games__news-card img {
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-slot-games__card-excerpt {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow excerpt to take available space */
    text-align: left;
}

.page-slot-games__read-more {
    display: inline-block;
    margin-top: 10px;
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-slot-games__read-more:hover {
    color: #1e87b8;
    text-decoration: underline;
}

/* CTA Center */
.page-slot-games__cta-center {
    margin-top: 50px;
    text-align: center;
}

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

@media (max-width: 768px) {
    /* Fixed header offset for mobile */
    .page-slot-games__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games__hero-content h1 {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-slot-games__hero-content p {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-slot-games__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        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 {
        padding: 50px 15px;
    }

    .page-slot-games__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-slot-games__text-block {
        font-size: 0.9em;
        text-align: center;
    }

    .page-slot-games__game-grid,
    .page-slot-games__benefit-grid,
    .page-slot-games__news-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }

    .page-slot-games__game-card,
    .page-slot-games__benefit-item,
    .page-slot-games__news-card {
        padding: 20px;
    }

    .page-slot-games__game-card img,
    .page-slot-games__benefit-item img,
    .page-slot-games__news-card img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px; /* Still enforce minimum size */
        min- /* Still enforce minimum size */
    }

    .page-slot-games__promo-list li,
    .page-slot-games__step-list li {
        font-size: 1em;
        padding: 15px 15px 15px 60px;
    }
    .page-slot-games__step-list li::before {
        left: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.1em;
    }

    .page-slot-games__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-slot-games__faq-question h3 {
        font-size: 1em;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-slot-games__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-slot-games__faq-answer {
        padding: 0 15px;
    }
    
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 15px !important;
    }
}