/* style/slot-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-login-bg: #C30808;
    --register-login-text: #FFFF00;
    --body-bg: #0a0a0a;
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --card-bg-light: #ffffff;
    --card-border-light: #e0e0e0;
}

.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-on-dark); /* Default text color for the main content area on dark body background */
    background-color: var(--body-bg);
}

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

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

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

.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-slot-games__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

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

.page-slot-games__hero-description {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 30px;
    line-height: 1.5;
}

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

.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: background-color 0.3s ease, transform 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    text-align: center;
}

.page-slot-games__btn-primary {
    background-color: var(--register-login-bg); /* Custom color for register/login type buttons */
    color: var(--register-login-text); /* Custom font color */
    border: 2px solid var(--register-login-bg);
}

.page-slot-games__btn-primary:hover {
    background-color: darken(var(--register-login-bg), 10%);
    transform: translateY(-3px);
}

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

.page-slot-games__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.page-slot-games__btn-inline {
    margin-top: 30px;
}

.page-slot-games__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    color: inherit; /* Inherit color from parent section */
}

.page-slot-games__intro-section,
.page-slot-games__game-types-section,
.page-slot-games__benefits-section,
.page-slot-games__guide-section,
.page-slot-games__promotions-section,
.page-slot-games__tips-section,
.page-slot-games__faq-section,
.page-slot-games__conclusion-section {
    padding: 80px 0;
}

.page-slot-games__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
    color: inherit;
}

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

.page-slot-games__card {
    background-color: var(--card-bg-light);
    color: var(--text-on-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

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

.page-slot-games__card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin: 20px 20px 10px 20px;
    color: var(--primary-color);
}

.page-slot-games__card-description {
    font-size: 1em;
    line-height: 1.6;
    padding: 0 20px 20px 20px;
    flex-grow: 1;
}

.page-slot-games__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-slot-games__benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 20px;
}

.page-slot-games__benefit-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    background-color: var(--primary-color);
    padding: 10px;
}

.page-slot-games__benefit-content {
    color: var(--text-on-light);
}

.page-slot-games__benefit-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-slot-games__benefit-content p {
    font-size: 1em;
    line-height: 1.7;
}

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

.page-slot-games__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: var(--text-on-dark);
}

.page-slot-games__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-slot-games__step-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-slot-games__step-item p {
    font-size: 1em;
    line-height: 1.6;
}

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

.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(--primary-color);
    color: var(--text-on-dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

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

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

.page-slot-games__promo-title {
    font-size: 1.5em;
    font-weight: bold;
    margin: 20px 20px 10px 20px;
    color: var(--secondary-color);
}

.page-slot-games__promo-description {
    font-size: 1em;
    line-height: 1.6;
    padding: 0 20px 20px 20px;
    flex-grow: 1;
}

.page-slot-games__promo-card .page-slot-games__btn-secondary {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px 20px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.page-slot-games__promo-card .page-slot-games__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.page-slot-games__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-slot-games__tip-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    padding: 25px;
    color: var(--text-on-dark);
}

.page-slot-games__tip-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.page-slot-games__tip-item p {
    font-size: 1em;
    line-height: 1.6;
}

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

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

.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;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-bottom: 1px solid var(--card-border-light);
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
    background-color: #f0f0f0;
}

.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: var(--text-on-light);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content */
    padding: 15px 25px;
}

.page-slot-games__faq-answer p {
    margin: 0;
    line-height: 1.7;
}

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

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
    }
    .page-slot-games__hero-title {
        font-size: 2em;
    }
    .page-slot-games__hero-description {
        font-size: 1em;
    }
    .page-slot-games__hero-buttons {
        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: 1.8em;
    }
    .page-slot-games__text-block {
        font-size: 0.95em;
    }
    .page-slot-games__card-grid,
    .page-slot-games__promo-grid,
    .page-slot-games__guide-steps,
    .page-slot-games__tips-list {
        grid-template-columns: 1fr;
    }
    .page-slot-games__benefits-list {
        padding: 0 15px;
    }
    .page-slot-games__benefit-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Mobile image responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games__card-image,
    .page-slot-games__promo-image {
        height: auto; /* Allow height to adjust dynamically */
        min-height: 200px; /* Ensure minimum size */
    }

    /* Mobile video responsiveness - if any video elements are added */
    .page-slot-games video,
    .page-slot-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games__video-section,
    .page-slot-games__video-container,
    .page-slot-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-slot-games__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-slot-games__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

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