.page-slot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default for light body background */
    background-color: #f8f9fa; /* Light background for sections */
}

/* Header offset for fixed header */
.page-slot-games__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px; /* Adjusted padding-bottom */
    background: linear-gradient(135deg, #007bff, #0056b3); /* Using brand primary color */
    color: #ffffff; /* White text for dark background */
    overflow: hidden;
}

.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;
    position: relative;
    z-index: 1; /* Image behind content if content is overlaid */
}

.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 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px; /* Add horizontal padding for content */
}

.page-slot-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 15px;
    color: #ffc107; /* Auxiliary color for highlight */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-slot-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #e0e0e0;
}

.page-slot-games__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: #ffc107; /* Auxiliary color for CTA */
    color: #333333; /* Dark text for light background button */
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-slot-games__cta-button:hover {
    background: #e0a800; /* Darker shade for hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-slot-games__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-slot-games__section:nth-of-type(even) {
    background-color: #f0f0f0; /* Alternating background for readability */
}

.page-slot-games__section-title {
    font-size: 2.5em;
    color: #007bff;
    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: #ffc107;
    border-radius: 2px;
}

.page-slot-games__text-block {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 20px;
    text-align: left;
}

/* Image styles */
.page-slot-games img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 20px auto;
}

/* Card layout for game types */
.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: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

.page-slot-games__game-card-icon {
    font-size: 3em;
    color: #007bff;
    margin-bottom: 20px;
}

.page-slot-games__game-card-title {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 15px;
}

.page-slot-games__game-card-description {
    font-size: 1em;
    color: #666666;
}

/* How to play steps */
.page-slot-games__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.page-slot-games__step-item {
    background: #ffffff;
    border-left: 5px solid #007bff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.page-slot-games__step-title {
    font-size: 1.4em;
    color: #007bff;
    margin-bottom: 10px;
}

.page-slot-games__step-description {
    font-size: 1em;
    color: #555555;
}

/* 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: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.page-slot-games__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-slot-games__promo-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0; /* Override general img border-radius */
    margin: 0;
}

.page-slot-games__promo-content {
    padding: 25px;
}

.page-slot-games__promo-title {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 10px;
}

.page-slot-games__promo-description {
    font-size: 1em;
    color: #666666;
    margin-bottom: 20px;
}

.page-slot-games__promo-button {
    display: inline-block;
    padding: 12px 25px;
    background: #ffc107;
    color: #333333;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
}

.page-slot-games__promo-button:hover {
    background: #e0a800;
}

/* Safety & Support section */
.page-slot-games__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__info-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.page-slot-games__info-icon {
    font-size: 3em;
    color: #007bff;
    margin-bottom: 20px;
}

.page-slot-games__info-title {
    font-size: 1.5em;
    color: #007bff;
    margin-bottom: 15px;
}

.page-slot-games__info-description {
    font-size: 1em;
    color: #666666;
}

/* FAQ Section */
.page-slot-games__faq-section {
    background-color: #f8f9fa;
}

.page-slot-games__faq-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    padding-top: 20px;
}

/* FAQ item styles */
.page-slot-games__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

/* FAQ default state - answer hidden */
.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;
}

/* FAQ expanded state - ⚠️ Use!important and sufficiently large max-height */
.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 2000px !important; /* ⚠️ Use!important to ensure priority, value large enough to accommodate any content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #ffffff; /* White background for answer content */
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Question styles */
.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #007bff; /* Primary color for question background */
    color: #ffffff; /* White text for contrast */
    border: 1px solid #0056b3;
    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: #0056b3; /* Darker blue on hover */
    border-color: #004085;
}

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

/* Question title styles */
.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; /* Prevent h3 from blocking click events */
    color: #ffffff; /* Ensure white text for contrast */
}

/* Toggle icon */
.page-slot-games__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #ffc107; /* Auxiliary color for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click events */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    color: #ffffff; /* White icon when active */
    transform: rotate(45deg); /* Optional rotation for 'X' effect if '-' is used */
    background-color: #ffc107;
}

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

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

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

    .page-slot-games__hero-title {
        font-size: 2.2em;
    }
    .page-slot-games__hero-description {
        font-size: 1em;
    }
    .page-slot-games__cta-button {
        padding: 15px 30px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General section padding */
    .page-slot-games__section {
        padding: 40px 15px;
    }

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

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

    /* Images responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-slot-games__hero-image img {
        border-radius: 4px;
    }

    /* Card layout for game types and promotions */
    .page-slot-games__game-grid,
    .page-slot-games__promo-grid,
    .page-slot-games__info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-slot-games__game-card,
    .page-slot-games__promo-card,
    .page-slot-games__info-card {
        padding: 20px;
    }

    .page-slot-games__promo-image img {
        
    }

    /* How to play steps */
    .page-slot-games__steps-list {
        gap: 15px;
    }
    .page-slot-games__step-item {
        padding: 20px;
    }
    .page-slot-games__step-title {
        font-size: 1.2em;
    }

    /* FAQ Mobile */
    .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;
    }

    /* Ensure containers don't cause overflow */
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__game-grid,
    .page-slot-games__promo-grid,
    .page-slot-games__info-grid,
    .page-slot-games__faq-container,
    .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;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-slot-games__hero-title {
        font-size: 1.8em;
    }
    .page-slot-games__cta-button {
        font-size: 0.9em;
        padding: 12px 25px;
    }
    .page-slot-games__section-title {
        font-size: 1.6em;
    }
    .page-slot-games__game-card-title,
    .page-slot-games__promo-title,
    .page-slot-games__info-title {
        font-size: 1.3em;
    }
}