/* style/slot-games.css */
:root {
    --primary-color: #003366;
    --secondary-color: #FFCC00;
    --accent-color: #CC0000;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #121212; /* Body background from shared.css */
    --card-bg: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
}

.page-slot-games {
    color: var(--text-light); /* Light text for dark body background */
    background-color: var(--bg-dark); /* Ensure consistency if not inherited */
    font-family: 'Arial', sans-serif;
}

.page-slot-games__hero-section,
.page-slot-games__introduction-section,
.page-slot-games__game-library-section,
.page-slot-games__benefits-section,
.page-slot-games__how-to-play-section,
.page-slot-games__tips-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section,
.page-slot-games__call-to-action-section {
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.page-slot-games__hero-section {
    padding-top: 120px; /* For fixed header */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero:nổ hũ,788bet,banner,jackpot]') center center/cover no-repeat;
    text-align: center;
    color: var(--text-light);
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-slot-games__hero-container,
.page-slot-games__introduction-container,
.page-slot-games__game-library-container,
.page-slot-games__benefits-container,
.page-slot-games__how-to-play-container,
.page-slot-games__tips-container,
.page-slot-games__promotions-container,
.page-slot-games__faq-container,
.page-slot-games__call-to-action-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

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

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

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

.page-slot-games__hero-cta-button {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-slot-games__hero-cta-button--primary {
    background: var(--accent-color);
    color: var(--text-light);
}

.page-slot-games__hero-cta-button--primary:hover {
    background: #a30000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__hero-cta-button--secondary {
    background: var(--primary-color);
    color: var(--text-light);
}

.page-slot-games__hero-cta-button--secondary:hover {
    background: #002244;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__introduction-section {
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.page-slot-games__introduction-title,
.page-slot-games__game-library-title,
.page-slot-games__benefits-title,
.page-slot-games__how-to-play-title,
.page-slot-games__tips-title,
.page-slot-games__promotions-title,
.page-slot-games__faq-main-title,
.page-slot-games__call-to-action-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-slot-games__introduction-content p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-slot-games__introduction-image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px auto;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__game-library-description {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 50px;
    color: var(--text-light);
}

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

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

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

.page-slot-games__game-card-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.page-slot-games__game-card-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.page-slot-games__game-card-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-light);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__game-card-button:hover {
    background: #a30000;
}

.page-slot-games__benefits-description {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 50px;
    color: var(--text-light);
}

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

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

.page-slot-games__benefit-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    filter: brightness(1.2); /* Allowed for visual enhancement without changing original colors */
}

.page-slot-games__benefit-heading {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-slot-games__benefit-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.page-slot-games__how-to-play-description {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 50px;
    color: var(--text-light);
}

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

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

.page-slot-games__step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    border: 3px solid var(--bg-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-slot-games__step-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.page-slot-games__step-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.page-slot-games__step-text a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-slot-games__step-text a:hover {
    color: var(--accent-color);
}

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

.page-slot-games__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__cta-button:hover {
    background: #a30000;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-slot-games__tips-description {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 50px;
    color: var(--text-light);
}

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

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

.page-slot-games__tip-heading {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-slot-games__tip-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.page-slot-games__promotions-description {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 50px;
    color: var(--text-light);
}

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

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

.page-slot-games__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__promotion-card-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.page-slot-games__promotion-card-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.page-slot-games__promotion-card-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--text-light);
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__promotion-card-button:hover {
    background: #a30000;
}

/* FAQ Section */
.page-slot-games__faq-section {
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-color);
}

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

.page-slot-games__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    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: 18px 25px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    color: var(--text-light);
}

.page-slot-games__faq-question:hover {
    background: rgba(255, 255, 255, 0.15);
}

.page-slot-games__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: var(--text-light);
}

.page-slot-games__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    transform: rotate(45deg); /* Plus to X for active state */
    color: var(--accent-color);
}

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

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to accommodate content */
    padding: 20px 25px !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid var(--border-color);
}

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

.page-slot-games__faq-answer a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-slot-games__faq-answer a:hover {
    color: var(--accent-color);
}

.page-slot-games__call-to-action-section {
    background: linear-gradient(to right, var(--primary-color), #002244);
    text-align: center;
    padding: 80px 20px;
    border-top: 1px solid var(--border-color);
}

.page-slot-games__call-to-action-title {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 2.8em;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-slot-games__call-to-action-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.page-slot-games__cta-button--large {
    padding: 18px 50px;
    font-size: 1.3em;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 3em;
    }
    .page-slot-games__introduction-title,
    .page-slot-games__game-library-title,
    .page-slot-games__benefits-title,
    .page-slot-games__how-to-play-title,
    .page-slot-games__tips-title,
    .page-slot-games__promotions-title,
    .page-slot-games__faq-main-title,
    .page-slot-games__call-to-action-title {
        font-size: 2em;
    }
    .page-slot-games__hero-cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding-top: 100px; /* For fixed header on mobile */
        min-height: 450px;
    }
    .page-slot-games__hero-title {
        font-size: 2.2em;
    }
    .page-slot-games__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-slot-games__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-slot-games__hero-cta-button,
    .page-slot-games__game-card-button,
    .page-slot-games__cta-button,
    .page-slot-games__promotion-card-button {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-slot-games__hero-cta-button--primary,
    .page-slot-games__hero-cta-button--secondary {
        width: 100%;
    }
    
    .page-slot-games__introduction-title,
    .page-slot-games__game-library-title,
    .page-slot-games__benefits-title,
    .page-slot-games__how-to-play-title,
    .page-slot-games__tips-title,
    .page-slot-games__promotions-title,
    .page-slot-games__faq-main-title,
    .page-slot-games__call-to-action-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-slot-games__introduction-content p,
    .page-slot-games__game-library-description,
    .page-slot-games__benefits-description,
    .page-slot-games__how-to-play-description,
    .page-slot-games__tips-description,
    .page-slot-games__promotions-description,
    .page-slot-games__call-to-action-description {
        font-size: 0.95em;
    }
    .page-slot-games__game-grid,
    .page-slot-games__benefits-grid,
    .page-slot-games__steps-grid,
    .page-slot-games__tips-grid,
    .page-slot-games__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-slot-games__game-card,
    .page-slot-games__benefit-item,
    .page-slot-games__step-item,
    .page-slot-games__tip-item,
    .page-slot-games__promotion-card {
        padding: 20px;
    }
    .page-slot-games__game-card-title,
    .page-slot-games__benefit-heading,
    .page-slot-games__step-heading,
    .page-slot-games__tip-heading,
    .page-slot-games__promotion-card-title {
        font-size: 1.3em;
    }
    .page-slot-games__faq-question {
        padding: 15px 20px;
    }
    .page-slot-games__faq-question h3 {
        font-size: 1em;
    }
    .page-slot-games__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    .page-slot-games__faq-answer {
        padding: 0 20px;
    }
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 15px 20px !important;
    }
    .page-slot-games__call-to-action-title {
        font-size: 2em;
    }
    .page-slot-games__cta-button--large {
        padding: 15px 30px;
        font-size: 1.1em;
    }
    /* Mobile image and video responsive */
    .page-slot-games img,
    .page-slot-games video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games__introduction-image,
    .page-slot-games__game-card-image,
    .page-slot-games__benefit-icon,
    .page-slot-games__step-image,
    .page-slot-games__promotion-card-image {
        max-width: 100% !important;
        width: auto !important; /* Allow icons to scale down but not stretch */
        height: auto !important;
    }
    .page-slot-games__hero-container,
    .page-slot-games__introduction-container,
    .page-slot-games__game-library-container,
    .page-slot-games__benefits-container,
    .page-slot-games__how-to-play-container,
    .page-slot-games__tips-container,
    .page-slot-games__promotions-container,
    .page-slot-games__faq-container,
    .page-slot-games__call-to-action-container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-slot-games__hero-section,
    .page-slot-games__introduction-section,
    .page-slot-games__game-library-section,
    .page-slot-games__benefits-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__tips-section,
    .page-slot-games__promotions-section,
    .page-slot-games__faq-section,
    .page-slot-games__call-to-action-section {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .page-slot-games__hero-title {
        font-size: 1.8em;
    }
    .page-slot-games__introduction-title,
    .page-slot-games__game-library-title,
    .page-slot-games__benefits-title,
    .page-slot-games__how-to-play-title,
    .page-slot-games__tips-title,
    .page-slot-games__promotions-title,
    .page-slot-games__faq-main-title,
    .page-slot-games__call-to-action-title {
        font-size: 1.5em;
    }
}