/* style/slot-games.css */
:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --background-color: #F5F7FA;
    --border-color: #E0E0E0;
    --button-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
}

.page-slot-games {
    font-family: Arial, sans-serif;
    color: var(--text-main-color);
    line-height: 1.6;
    background-color: var(--background-color);
}

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

.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--primary-color);
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover for desktop to fill space */
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Pull content up slightly over image for visual appeal, but not covering text */
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

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

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

.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-play,
.page-slot-games__btn-link {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-slot-games__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

.page-slot-games__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-slot-games__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.page-slot-games__section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main-color);
    font-weight: 700;
}

.page-slot-games__dark-bg .page-slot-games__section-title,
.page-slot-games__dark-bg .page-slot-games__description {
    color: #ffffff;
}

.page-slot-games__intro-section,
.page-slot-games__how-to-play-section,
.page-slot-games__faq-section {
    background-color: var(--background-color);
    padding: 60px 0;
}

.page-slot-games__dark-bg {
    background-color: var(--primary-color);
    padding: 60px 0;
}

.page-slot-games__text-block {
    font-size: 1.05rem;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-main-color);
}

.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: var(--card-bg-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.page-slot-games__feature-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__feature-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-slot-games__game-showcase {
    text-align: center;
}

.page-slot-games__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-slot-games__game-tile {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

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

.page-slot-games__game-tile img {
    width: 100%;
    height: 250px; /* Fixed height for consistent grid */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-slot-games__game-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-slot-games__game-provider {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
}

.page-slot-games__btn-play {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    margin-top: auto; /* Push button to bottom */
}

.page-slot-games__btn-play:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-slot-games__how-to-play-section {
    text-align: center;
}

.page-slot-games__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-slot-games__step-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-slot-games__step-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-slot-games__step-item p {
    margin-bottom: 20px;
    color: var(--text-main-color);
}

.page-slot-games__step-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
    object-fit: cover;
}

.page-slot-games__btn-link {
    background: var(--secondary-color);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 0.95rem;
}

.page-slot-games__btn-link:hover {
    opacity: 0.9;
}

.page-slot-games__promotions-section {
    text-align: center;
}

.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: var(--card-bg-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

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

.page-slot-games__promo-image {
    width: 100%;
    height: 200px; /* Consistent height for promo images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-slot-games__promo-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-slot-games__promo-text {
    font-size: 1rem;
    color: var(--text-main-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-slot-games__faq-section {
    text-align: center;
}

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

.page-slot-games__faq-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    overflow: hidden;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none; /* For <summary> tag */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.page-slot-games__faq-question::-webkit-details-marker {
    display: none;
}

.page-slot-games__faq-qtext {
    flex-grow: 1;
}

.page-slot-games__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    content: '−';
}

.page-slot-games__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--text-main-color);
    border-top: 1px solid var(--border-color);
}

.page-slot-games__faq-answer p {
    margin-bottom: 0;
}

.page-slot-games__cta-final {
    text-align: center;
    padding: 80px 0;
}

@media (max-width: 1024px) {
    .page-slot-games__container {
        padding: 20px 30px;
    }

    .page-slot-games__hero-content {
        margin-top: -80px;
        padding: 30px 20px;
    }

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

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

    .page-slot-games__section-title {
        font-size: 2.5rem;
    }

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

    .page-slot-games__game-tile img {
        height: 200px;
    }

    .page-slot-games__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .page-slot-games__promo-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
    }

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

    /* Hero Section */
    .page-slot-games__hero-section {
        padding-top: 10px !important; /* Small top padding */
    }

    .page-slot-games__hero-image {
        object-fit: contain !important; /* Contain for mobile to prevent cropping */
        height: auto !important;
        max-height: 300px !important;
        width: 100% !important;
        aspect-ratio: unset !important;
    }

    .page-slot-games__hero-content {
        margin-top: 0; /* Remove negative margin on mobile */
        padding: 20px 15px;
        margin-bottom: 20px;
        background: var(--primary-color); /* Simpler background */
        box-shadow: none;
        border-radius: 0;
    }

    .page-slot-games__main-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .page-slot-games__description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

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

    /* Buttons */
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-play,
    .page-slot-games__btn-link,
    .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: 0;
        padding-right: 0;
        flex-wrap: wrap !important;
        gap: 10px;
    }

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

    /* General Images and Containers */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-slot-games__intro-section,
    .page-slot-games__game-showcase,
    .page-slot-games__how-to-play-section,
    .page-slot-games__promotions-section,
    .page-slot-games__faq-section,
    .page-slot-games__cta-final {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 40px 0; /* Adjust vertical padding */
    }

    /* Feature Grid */
    .page-slot-games__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-slot-games__feature-item {
        padding: 20px;
    }

    .page-slot-games__feature-icon {
        max-width: 150px;
    }

    /* Game Grid */
    .page-slot-games__game-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
        gap: 15px;
    }

    .page-slot-games__game-tile {
        padding: 15px;
    }

    .page-slot-games__game-tile img {
        height: auto; /* Allow auto height for aspect ratio */
        aspect-ratio: 1/1; /* Enforce square aspect ratio */
        object-fit: cover;
    }

    .page-slot-games__game-title {
        font-size: 1.1rem;
    }

    /* How-To-Play Steps */
    .page-slot-games__step-list {
        gap: 20px;
    }

    .page-slot-games__step-item {
        padding: 20px;
    }

    .page-slot-games__step-title {
        font-size: 1.3rem;
    }

    /* Promotions Grid */
    .page-slot-games__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-slot-games__promo-card {
        padding: 20px;
    }

    .page-slot-games__promo-image {
        height: 150px;
    }

    .page-slot-games__promo-title {
        font-size: 1.2rem;
    }

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

    .page-slot-games__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-slot-games__faq-toggle {
        font-size: 1.2rem;
    }

    .page-slot-games__faq-answer {
        padding: 0 20px 15px;
    }
}

/* Color Contrast Fixes (if needed) */
.page-slot-games__dark-section {
    background: var(--primary-color);
    color: #ffffff; /* Forced white text */
}

.page-slot-games__text-contrast-fix {
    color: #333333 !important;
    text-shadow: none !important;
}