/* style/slot-games.css */

/* Base Styles for .page-slot-games (assuming body background is --deep-navy from shared.css) */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-main, #F3F8FF); /* Default text color for dark background */
    background-color: transparent; /* Main content background is transparent, letting body background show */
}

.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: var(--text-main, #F3F8FF);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-slot-games__text-block {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-secondary, #AFC4E8);
    text-align: center;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
    background-color: var(--deep-navy, #08162B); /* Fallback background if image not loaded */
}

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

.page-slot-games__hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
    position: relative; /* Ensure content is above any potential background effects */
}

.page-slot-games__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    color: var(--text-main, #F3F8FF);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-slot-games__hero-description {
    font-size: 1.2em;
    color: var(--text-secondary, #AFC4E8);
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-tertiary {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-slot-games__btn-primary {
    background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    color: var(--text-main, #F3F8FF);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__btn-secondary {
    background: transparent;
    color: var(--glow, #4FA8FF);
    border: 2px solid var(--glow, #4FA8FF);
}

.page-slot-games__btn-secondary:hover {
    background: var(--glow, #4FA8FF);
    color: var(--deep-navy, #08162B);
    transform: translateY(-2px);
}

.page-slot-games__btn-tertiary {
    background: var(--main-color, #1D5FD1); /* Using auxiliary color as a default for tertiary */
    color: var(--text-main, #F3F8FF);
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
}

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

/* Intro Section */
.page-slot-games__intro-section {
    padding: 80px 0;
}

/* Dark Section variant */
.page-slot-games__dark-section {
    background-color: var(--deep-navy, #08162B); /* Use deep navy for dark sections */
    color: var(--text-main, #F3F8FF);
}

.page-slot-games__dark-section .page-slot-games__section-title {
    color: var(--text-main, #F3F8FF);
}

.page-slot-games__dark-section .page-slot-games__text-block {
    color: var(--text-secondary, #AFC4E8);
}


/* Game Types Grid */
.page-slot-games__game-types-section {
    padding: 80px 0;
    background-color: #0d1e38; /* Slightly lighter dark background */
}

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

.page-slot-games__card {
    background-color: var(--card-bg, #10233F); /* Custom Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border, #244D84);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-slot-games__card-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Enforce min image size */
    min-width: 200px; /* Enforce min image size */
}

.page-slot-games__card-title {
    font-size: 1.5em;
    color: var(--text-main, #F3F8FF);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__card-description {
    font-size: 1em;
    color: var(--text-secondary, #AFC4E8);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Advantages Section */
.page-slot-games__advantages-section {
    padding: 80px 0;
}

.page-slot-games__feature-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-slot-games__feature-item {
    background-color: var(--card-bg, #10233F);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border, #244D84);
}

.page-slot-games__feature-title {
    font-size: 1.4em;
    color: var(--gold, #F2C14E);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__feature-description {
    font-size: 1em;
    color: var(--text-secondary, #AFC4E8);
    line-height: 1.6;
}

/* How To Play Section */
.page-slot-games__how-to-play-section {
    padding: 80px 0;
    background-color: #0d1e38; /* Slightly lighter dark background */
}

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

.page-slot-games__step-card {
    background-color: var(--card-bg, #10233F);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border, #244D84);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-slot-games__step-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
    min-height: 200px; /* Enforce min image size */
    min-width: 200px; /* Enforce min image size */
}

.page-slot-games__step-title {
    font-size: 1.3em;
    color: var(--gold, #F2C14E);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__step-description {
    font-size: 0.95em;
    color: var(--text-secondary, #AFC4E8);
    line-height: 1.5;
}

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

/* Promotion Section */
.page-slot-games__promotion-section {
    padding: 80px 0;
}

.page-slot-games__promotion-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: var(--card-bg, #10233F);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border, #244D84);
    margin-top: 40px;
    gap: 30px;
}

.page-slot-games__promotion-image {
    width: 50%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Enforce min image size */
    min-width: 200px; /* Enforce min image size */
}

.page-slot-games__promotion-content {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-slot-games__promotion-title {
    font-size: 2em;
    color: var(--text-main, #F3F8FF);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-slot-games__promotion-description {
    font-size: 1.1em;
    color: var(--text-secondary, #AFC4E8);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Game Trial Section */
.page-slot-games__game-trial-section {
    padding: 80px 0;
    background-color: #0d1e38; /* Slightly lighter dark background */
}

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

.page-slot-games__game-trial-item {
    background-color: var(--card-bg, #10233F);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border, #244D84);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-slot-games__game-trial-title {
    font-size: 1.4em;
    color: var(--text-main, #F3F8FF);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-slot-games__game-trial-frame {
    width: 100%;
    height: 400px; /* Fixed height for consistency */
    border: 1px solid var(--border, #244D84);
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #000; /* Placeholder background for iframe */
}

/* FAQ Section */
.page-slot-games__faq-section {
    padding: 80px 0;
    background-color: #0d1e38; /* Slightly lighter dark background */
}

.page-slot-games__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-slot-games__faq-item {
    background-color: var(--card-bg, #10233F);
    border: 1px solid var(--border, #244D84);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-slot-games__faq-question {
    display: block;
    padding: 20px 25px;
    font-size: 1.2em;
    color: var(--text-main, #F3F8FF);
    font-weight: bold;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
    background-color: rgba(var(--main-color, #113B7A), 0.5);
}

.page-slot-games__faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    font-size: 1.5em;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: var(--gold, #F2C14E);
}

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

.page-slot-games__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05em;
    color: var(--text-secondary, #AFC4E8);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-image {
        max-height: 500px;
    }
    .page-slot-games__promotion-card {
        flex-direction: column;
        text-align: center;
    }
    .page-slot-games__promotion-image,
    .page-slot-games__promotion-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-slot-games__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-slot-games__main-title {
        font-size: clamp(2em, 8vw, 2.8em);
    }
    .page-slot-games__hero-description {
        font-size: 1em;
    }
    .page-slot-games__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, this is for aesthetic */
    }
    .page-slot-games__container {
        padding: 0 15px;
    }

    /* Images responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
        min-width: 200px !important; /* Enforce min image size */
        min-height: 200px !important; /* Enforce min image size */
    }
    
    .page-slot-games__card-image,
    .page-slot-games__step-image,
    .page-slot-games__promotion-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* All containers with images/content */
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__hero-section,
    .page-slot-games__intro-section,
    .page-slot-games__game-types-section,
    .page-slot-games__advantages-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__promotion-section,
    .page-slot-games__faq-section,
    .page-slot-games__promotion-card,
    .page-slot-games__game-trial-section,
    .page-slot-games__game-trial-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent overflow */
    }

    /* Button responsiveness */
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-tertiary,
    .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__grid,
    .page-slot-games__steps-grid,
    .page-slot-games__feature-list,
    .page-slot-games__game-trial-grid {
        grid-template-columns: 1fr;
    }

    .page-slot-games__promotion-card {
        padding: 20px 15px;
    }
    .page-slot-games__promotion-title {
        font-size: 1.5em;
    }
    .page-slot-games__promotion-description {
        font-size: 0.95em;
    }
    .page-slot-games__game-trial-frame {
        height: 300px; /* Adjust height for mobile */
    }
}

@media (max-width: 480px) {
    .page-slot-games__section-title {
        font-size: 1.8em;
    }
    .page-slot-games__main-title {
        font-size: clamp(1.8em, 9vw, 2.5em);
    }
    .page-slot-games__card-title {
        font-size: 1.3em;
    }
    .page-slot-games__feature-title,
    .page-slot-games__step-title,
    .page-slot-games__game-trial-title {
        font-size: 1.2em;
    }
    .page-slot-games__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-slot-games__faq-question::after {
        right: 20px;
    }
    .page-slot-games__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }
}