/* style/slot-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark: #333333;
    --text-color-light: #FFFFFF;
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    --button-text-yellow: #FFFF00;
    --border-color: #e0e0e0;
}

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

.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(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-slot-games__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.8;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    background: var(--primary-color);
    color: var(--text-color-light);
    padding-top: var(--header-offset, 120px);
    overflow: hidden;
    text-align: center;
    box-sizing: border-box;
}

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

.page-slot-games__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-color-light);
}

.page-slot-games__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    line-height: 1.5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-register,
.page-slot-games__btn-login {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    border: 2px solid transparent;
}

.page-slot-games__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border-color: var(--primary-color);
}

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

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

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

.page-slot-games__btn-register {
    background-color: var(--button-register-bg);
    color: var(--button-text-yellow);
    border-color: var(--button-register-bg);
}

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

.page-slot-games__btn-login {
    background-color: var(--button-login-bg);
    color: var(--button-text-yellow);
    border-color: var(--button-login-bg);
}

.page-slot-games__btn-login:hover {
    background-color: darken(var(--button-login-bg), 10%);
    border-color: darken(var(--button-login-bg), 10%);
}

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

.page-slot-games__cta-buttons--centered {
    justify-content: center;
}

/* Intro Section */
.page-slot-games__intro-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.page-slot-games__image-full-width {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.page-slot-games__features-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.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: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.page-slot-games__feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.page-slot-games__feature-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--button-text-yellow); /* Sử dụng màu vàng cho tiêu đề nổi bật */
}

.page-slot-games__feature-description {
    font-size: 1.1em;
    line-height: 1.7;
}

/* Game Types Section */
.page-slot-games__game-types-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

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

.page-slot-games__game-type-card {
    background: var(--text-color-light);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-dark);
}

.page-slot-games__game-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

.page-slot-games__game-type-title {
    font-size: 1.5em;
    margin: 20px 15px 10px 15px;
    color: var(--primary-color);
}

.page-slot-games__game-type-description {
    font-size: 1em;
    padding: 0 15px 20px 15px;
    line-height: 1.6;
}

/* How to Play Section */
.page-slot-games__how-to-play-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

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

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

.page-slot-games__step-number {
    font-size: 3em;
    font-weight: bold;
    color: var(--button-text-yellow);
    margin-bottom: 15px;
}

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

.page-slot-games__step-description {
    font-size: 1.1em;
    line-height: 1.7;
}

/* Tips Section */
.page-slot-games__tips-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.page-slot-games__tips-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 40px auto;
}

.page-slot-games__tip-item {
    background: var(--text-color-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.7;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-slot-games__tip-item strong {
    color: var(--primary-color);
}

/* Promotions Section */
.page-slot-games__promotions-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

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

.page-slot-games__promo-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.page-slot-games__promo-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.page-slot-games__promo-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--button-text-yellow);
}

.page-slot-games__promo-description {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Safety Section */
.page-slot-games__safety-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

/* FAQ Section */
.page-slot-games__faq-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

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

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

.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(--text-color-light);
    background: rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.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-color-light);
}

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

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

/* Final CTA Section */
.page-slot-games__cta-final-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    text-align: center;
}

.page-slot-games__cta-final-content {
    max-width: 900px;
}

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

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

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

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

    .page-slot-games__hero-section {
        min-height: 600px;
        padding: var(--header-offset, 120px) 0 60px 0;
    }

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

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

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

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-register,
    .page-slot-games__btn-login {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 25px;
        font-size: 1.1em;
    }

    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

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

    .page-slot-games__text-block {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-slot-games__intro-section,
    .page-slot-games__features-section,
    .page-slot-games__game-types-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__tips-section,
    .page-slot-games__promotions-section,
    .page-slot-games__safety-section,
    .page-slot-games__faq-section,
    .page-slot-games__cta-final-section {
        padding: 60px 0;
    }

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

    .page-slot-games__image-full-width,
    .page-slot-games__hero-image,
    .page-slot-games__game-type-image {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
        display: block !important;
    }

    .page-slot-games__game-type-card,
    .page-slot-games__feature-item,
    .page-slot-games__promo-card,
    .page-slot-games__step-item,
    .page-slot-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-slot-games__hero-image-wrapper {
        opacity: 0.1;
    }

    .page-slot-games__video-section {
      padding-top: var(--header-offset, 120px) !important; /* Ensure video section respects header offset */
    }

    .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;
    }
}

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

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

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

    .page-slot-games__feature-title,
    .page-slot-games__game-type-title,
    .page-slot-games__step-title,
    .page-slot-games__promo-title {
        font-size: 1.5em;
    }

    .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 20px 20px;
    }
}