/* style/slot-games.css */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --bg-dark: #0A0A0A;
    --card-bg: #111111;
    --text-main: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-slot-games {
    color: var(--text-main);
    background-color: var(--bg-dark); /* Ensure text is light on dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-slot-games__section-title {
    font-size: clamp(2em, 2.5vw, 3em); /* H1 font size rule */
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.page-slot-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--button-gradient);
    border-radius: 2px;
}

.page-slot-games__section-description {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1em;
    color: var(--text-main);
}

.page-slot-games__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px 20px; /* Small top padding */
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.page-slot-games__hero-content {
    max-width: 900px;
    margin-bottom: 40px;
    z-index: 2;
}

.page-slot-games__hero-title {
    font-size: clamp(2.5em, 4vw, 3.5em);
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-slot-games__hero-description {
    font-size: 1.2em;
    color: var(--text-main);
    margin-bottom: 30px;
}

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

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    height: auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(255, 211, 107, 0.4);
    margin-top: 20px;
    z-index: 1;
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

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

.page-slot-games__btn-primary {
    background: var(--button-gradient);
    color: #0A0A0A;
    border: 2px solid transparent;
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 211, 107, 0.4);
}

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

.page-slot-games__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 211, 107, 0.2);
}

.page-slot-games__jackpot-ticker-section {
    background-color: var(--card-bg);
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.page-slot-games__jackpot-ticker-title {
    font-size: 1.8em;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-slot-games__jackpot-display {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
    font-size: 3.5em;
    font-weight: bold;
    color: var(--secondary-color);
    text-shadow: 0 0 15px var(--glow-color);
    margin-bottom: 10px;
}

.page-slot-games__jackpot-currency {
    font-size: 0.6em;
    color: var(--text-main);
}

.page-slot-games__jackpot-slogan {
    font-size: 1.2em;
    color: var(--text-main);
    font-style: italic;
}

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

.page-slot-games__content-flex--reverse {
    flex-direction: row-reverse;
}

.page-slot-games__image-left,
.page-slot-games__image-right {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

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

.page-slot-games__text-block p {
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 1.05em;
}

.page-slot-games__text-block a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-slot-games__text-block a:hover {
    text-decoration: underline;
}

.page-slot-games__about-section,
.page-slot-games__history-section,
.page-slot-games__how-it-works-section,
.page-slot-games__strategy-section,
.page-slot-games__why-e88-section,
.page-slot-games__promotions-section,
.page-slot-games__register-guide-section,
.page-slot-games__faq-section,
.page-slot-games__conclusion-section {
    padding: 60px 0;
    background-color: var(--bg-dark);
}

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

.page-slot-games__game-tile {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__game-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 211, 107, 0.2);
}

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

.page-slot-games__game-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-slot-games__game-description {
    color: var(--text-main);
    font-size: 0.95em;
    margin-bottom: 20px;
}

.page-slot-games__game-button {
    display: inline-block;
    background: var(--button-gradient);
    color: #0A0A0A;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: background 0.3s ease;
}

.page-slot-games__game-button:hover {
    background: var(--secondary-color);
    color: var(--bg-dark);
}

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

.page-slot-games__strategy-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-slot-games__strategy-title {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-slot-games__strategy-item p {
    color: var(--text-main);
    font-size: 1em;
}

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

.page-slot-games__feature-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-slot-games__feature-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__feature-title {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-slot-games__feature-card p {
    color: var(--text-main);
    font-size: 0.95em;
}

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

.page-slot-games__promo-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

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

.page-slot-games__promo-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-slot-games__promo-description {
    color: var(--text-main);
    font-size: 0.95em;
    margin-bottom: 20px;
}

.page-slot-games__register-guide-section {
    background-color: var(--bg-dark);
}

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

.page-slot-games__step-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    padding-top: 60px; /* Space for step number */
}

.page-slot-games__step-number {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: var(--button-gradient);
    color: #0A0A0A;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
    border: 3px solid var(--bg-dark);
}

.page-slot-games__step-title {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-slot-games__step-item p {
    color: var(--text-main);
    font-size: 0.95em;
}

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

.page-slot-games__faq-list {
    margin-top: 40px;
}

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

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--secondary-color);
    background-color: #1a1a1a;
    border-bottom: 1px solid var(--border-color);
    list-style: none;
}

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

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
    border-bottom: 1px solid var(--border-color);
}

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

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

.page-slot-games__faq-answer {
    padding: 15px 25px;
    color: var(--text-main);
    font-size: 1em;
}

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

.page-slot-games__conclusion-text {
    text-align: center;
    font-size: 1.1em;
    color: var(--text-main);
    margin-bottom: 40px;
}

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

/* General image responsive styles */
.page-slot-games img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-slot-games__container {
        padding: 15px;
    }

    .page-slot-games__hero-section {
        padding: 10px 15px 40px 15px;
    }

    .page-slot-games__hero-title {
        font-size: 2.2em;
    }

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

    .page-slot-games__hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__game-button {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        text-align: center;
    }

    .page-slot-games__hero-image-wrapper {
        border-radius: 10px;
    }

    .page-slot-games__hero-image {
        object-fit: contain !important; /* Mobile: contain, not cover */
        aspect-ratio: unset !important;
        max-height: none !important;
    }

    .page-slot-games__jackpot-ticker-section {
        padding: 30px 15px;
    }

    .page-slot-games__jackpot-ticker-title {
        font-size: 1.5em;
    }

    .page-slot-games__jackpot-display {
        font-size: 2.5em;
    }

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

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

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

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

    .page-slot-games__image-left,
    .page-slot-games__image-right {
        min-width: unset;
        border-radius: 8px;
    }

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

    .page-slot-games__game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        overflow-x: hidden;
    }

    .page-slot-games__game-thumbnail {
        height: auto; /* Allow height to adjust */
        aspect-ratio: 1/1 !important; /* Force square aspect ratio */
        object-fit: cover;
    }

    .page-slot-games__strategy-list,
    .page-slot-games__feature-grid,
    .page-slot-games__promo-cards,
    .page-slot-games__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-slot-games__step-number {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }

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

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

    .page-slot-games__faq-answer {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    .page-slot-games__cta-final {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-slot-games__cta-final a {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Generic mobile image/container styles */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__hero-section,
    .page-slot-games__jackpot-ticker-section,
    .page-slot-games__about-section,
    .page-slot-games__history-section,
    .page-slot-games__how-it-works-section,
    .page-slot-games__game-types-section,
    .page-slot-games__strategy-section,
    .page-slot-games__why-e88-section,
    .page-slot-games__promotions-section,
    .page-slot-games__register-guide-section,
    .page-slot-games__faq-section,
    .page-slot-games__conclusion-section,
    .page-slot-games__hero-buttons,
    .page-slot-games__cta-bottom,
    .page-slot-games__cta-final {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}