/* style/slot-games.css */

/* Custom properties for colors */
:root {
    --page-bg-color: #08160F; /* Background */
    --card-bg-color: #11271B; /* Card BG */
    --text-main-color: #F2FFF6; /* Text Main */
    --text-secondary-color: #A7D9B8; /* Text Secondary */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    --border-color: #2E7A4E; /* Border */
    --glow-color: #57E38D; /* Glow */
    --gold-color: #F2C14E; /* Gold */
    --divider-color: #1E3A2A; /* Divider */
    --deep-green-color: #0A4B2C; /* Deep Green */
}

.page-slot-games {
    background-color: var(--page-bg-color);
    color: var(--text-main-color);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

.page-slot-games__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-secondary-color);
    text-align: justify;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: var(--deep-green-color);
    overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for the image wrapper */
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-slot-games__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1; /* Ensure content is above any background elements */
}

.page-slot-games__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Use clamp for H1 */
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
}

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

.page-slot-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Max width for button group */
    margin: 0 auto;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure text wraps within button */
    text-align: center;
}

.page-slot-games__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main-color);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

.page-slot-games__btn-secondary {
    background: transparent;
    color: var(--glow-color);
    border: 2px solid var(--glow-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__btn-secondary:hover {
    background: rgba(87, 227, 141, 0.1); /* Light glow effect */
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 10px var(--glow-color);
}

/* General Section Styling */
.page-slot-games__introduction-section,
.page-slot-games__advantages-section,
.page-slot-games__game-types-section,
.page-slot-games__how-to-play-section,
.page-slot-games__strategies-section,
.page-slot-games__promotions-section,
.page-slot-games__features-section,
.page-slot-games__faq-section,
.page-slot-games__cta-final-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--divider-color);
}

.page-slot-games__cta-final-section {
    border-bottom: none;
}

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

.page-slot-games__grid--two-columns {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Card Styling */
.page-slot-games__card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%; /* Ensure cards in grid have equal height */
    box-sizing: border-box;
}

.page-slot-games__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(87, 227, 141, 0.3);
}

.page-slot-games__card-image {
    width: 100%;
    height: auto;
    max-height: 200px; /* Limit height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure image behaves as block */
}

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

.page-slot-games__card-description {
    font-size: 1em;
    color: var(--text-secondary-color);
    flex-grow: 1; /* Allow description to take available space */
}

/* Image in content */
.page-slot-games__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin: 40px auto;
    max-width: 800px; /* Limit max width for content images */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Lists */
.page-slot-games__ordered-list,
.page-slot-games__unordered-list {
    list-style-position: inside;
    margin: 20px 0;
    padding-left: 0;
}

.page-slot-games__ordered-list li,
.page-slot-games__unordered-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--text-secondary-color);
}

.page-slot-games__ordered-list li strong,
.page-slot-games__unordered-list li strong {
    color: var(--text-main-color);
}

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

.page-slot-games__faq-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main-color);
    background-color: var(--deep-green-color); /* Slightly different background for question */
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
    background-color: var(--border-color);
}

/* For <details> tag */
.page-slot-games__faq-item[open] > .page-slot-games__faq-question {
    background-color: var(--border-color);
    border-bottom: 1px solid var(--divider-color);
}

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

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

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-slot-games__faq-answer {
    padding: 20px 25px;
    font-size: 1.1em;
    color: var(--text-secondary-color);
    background-color: var(--card-bg-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-slot-games__section-title {
        font-size: 2em;
    }
    .page-slot-games__hero-content {
        padding: 0 15px;
    }
}

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

    .page-slot-games__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-slot-games__hero-section {
        padding: 10px 0 40px 0; /* Adjust padding for mobile */
    }

    .page-slot-games__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

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

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

    .page-slot-games__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to button group */
    }

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

    .page-slot-games__grid {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 20px;
    }

    .page-slot-games__grid--two-columns {
        grid-template-columns: 1fr;
    }

    .page-slot-games__card {
        padding: 25px;
    }

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

    .page-slot-games__card-title {
        font-size: 1.3em;
    }

    .page-slot-games__how-to-play-section,
    .page-slot-games__strategies-section,
    .page-slot-games__promotions-section,
    .page-slot-games__features-section,
    .page-slot-games__faq-section {
        padding: 40px 0;
    }

    .page-slot-games img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    
    .page-slot-games__video-section { /* Although this page uses image, keep the rule for consistency */
      padding-top: 10px !important; /* body đã đảm nhiệm --header-offset, tại đây cấm sử dụng var(--header-offset) */
    }

    /* Video specific mobile rules (even if this page uses image for hero, include for completeness/safety) */
    .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-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
}