/* style/slot-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --dark-bg-color: #1a1a2e;
    --light-text-color: #ffffff;
    --dark-text-color: #333333;
    --register-btn-color: #C30808;
    --login-btn-color: #C30808;
    --register-login-font-color: #FFFF00;
}

.page-slot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--light-text-color); /* Default text color for dark body background */
    background-color: var(--dark-bg-color); /* Inherited from body, but good to define scope */
}

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

.page-slot-games__dark-bg {
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
}

.page-slot-games__light-bg {
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
}

.page-slot-games__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: var(--light-text-color);
    padding-top: 40px;
}

.page-slot-games__light-bg .page-slot-games__section-title {
    color: var(--primary-color);
}

.page-slot-games__section-subtitle {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.8);
}

.page-slot-games__light-bg .page-slot-games__section-subtitle {
    color: var(--dark-text-color);
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    padding: var(--header-offset, 120px) 20px 60px;
    overflow: hidden;
    text-align: center;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-slot-games__hero-title {
    font-size: 3.8em;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--light-text-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

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

.page-slot-games__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-slot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Dim image to ensure text contrast */
}

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

.page-slot-games__btn-primary {
    background-color: var(--register-btn-color);
    color: var(--register-login-font-color);
    border: 2px solid var(--register-btn-color);
}

.page-slot-games__btn-primary:hover {
    background-color: darken(var(--register-btn-color), 10%);
    border-color: darken(var(--register-btn-color), 10%);
}

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

.page-slot-games__btn-secondary:hover {
    background-color: var(--light-text-color);
    color: var(--dark-bg-color);
}

/* Content Wrapper */
.page-slot-games__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

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

.page-slot-games__text-block {
    flex: 1;
    font-size: 1.1em;
}

.page-slot-games__text-block p {
    margin-bottom: 15px;
}

.page-slot-games__text-block a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-slot-games__light-bg .page-slot-games__text-block a {
    color: var(--primary-color);
}

.page-slot-games__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-slot-games__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-slot-games__step-title {
    font-size: 1.5em;
    color: var(--register-login-font-color);
    margin-bottom: 15px;
}

.page-slot-games__step-item p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

.page-slot-games__guide-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Featured Games Section */
.page-slot-games__games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-slot-games__game-card {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
}

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

.page-slot-games__game-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

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

.page-slot-games__game-title a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-slot-games__game-title a:hover {
    text-decoration: underline;
}

.page-slot-games__game-description {
    font-size: 0.95em;
    color: var(--dark-text-color);
    padding: 0 15px;
}

/* Strategy Section */
.page-slot-games__strategy-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 20px;
}

.page-slot-games__strategy-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
}

.page-slot-games__strategy-list li strong {
    color: var(--register-login-font-color);
}

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

.page-slot-games__promo-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
}

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

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

.page-slot-games__promo-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-slot-games__promo-description {
    font-size: 1em;
    color: var(--dark-text-color);
    padding: 0 15px;
}

.page-slot-games__promo-description a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-slot-games__promo-cta-group {
    text-align: center;
    margin-top: 50px;
}

/* App Section */
.page-slot-games__app-section .page-slot-games__text-block a.page-slot-games__btn-primary {
    margin-top: 20px;
    display: inline-block;
}

/* Video Section */
.page-slot-games__video-section {
    padding: 60px 20px;
    text-align: center;
}

.page-slot-games__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.page-slot-games__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-slot-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.page-slot-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: var(--light-text-color);
    background-color: var(--primary-color);
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
    background-color: darken(var(--primary-color), 5%);
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    transform: rotate(45deg);
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px 20px;
}

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

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

.page-slot-games__conclusion-cta {
    text-align: center;
    margin-top: 50px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 3em;
    }
}

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

    .page-slot-games__hero-section {
        min-height: 500px;
        padding: var(--header-offset, 120px) 15px 40px;
    }

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

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

    .page-slot-games__hero-cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-slot-games__section-title {
        font-size: 2em;
        padding-top: 30px;
    }

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

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

    .page-slot-games__text-block,
    .page-slot-games__image-block {
        flex: none;
        width: 100%;
    }

    .page-slot-games__content-image,
    .page-slot-games__game-image,
    .page-slot-games__promo-image,
    .page-slot-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-slot-games__steps-grid,
    .page-slot-games__games-grid,
    .page-slot-games__promo-grid {
        grid-template-columns: 1fr;
    }

    .page-slot-games__guide-cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-slot-games__video-section {
        padding: var(--header-offset, 120px) 15px 40px !important;
    }

    .page-slot-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-slot-games__container,
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__faq-item,
    .page-slot-games__video-section,
    .page-slot-games__video-container,
    .page-slot-games__video-wrapper,
    .page-slot-games__hero-section,
    .page-slot-games__about-section,
    .page-slot-games__guide-section,
    .page-slot-games__featured-games-section,
    .page-slot-games__strategy-section,
    .page-slot-games__promo-section,
    .page-slot-games__app-section,
    .page-slot-games__faq-section,
    .page-slot-games__conclusion-section,
    .page-slot-games__hero-cta-group,
    .page-slot-games__guide-cta-group,
    .page-slot-games__promo-cta-group,
    .page-slot-games__conclusion-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 10px 20px 15px;
    }

    .page-slot-games__promo-description a {
        display: inline;
    }
}

@media (max-width: 480px) {
    .page-slot-games__hero-title {
        font-size: 2em;
    }

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

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        padding: 10px 15px;
        font-size: 0.9em;
    }
}