:root {
    /* Custom Colors */
    --color-primary: #11A84E; /* Main */
    --color-secondary: #22C768; /* Auxiliary */
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Default text color for the page content */
    background-color: var(--color-background); /* Overall page background */
    line-height: 1.6;
}

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden; /* Ensure content doesn't spill */
    background-color: var(--color-deep-green); /* Dark background for hero */
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
}

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

.page-slot-games__hero-content {
    padding: 30px 20px;
    max-width: 900px;
    margin-top: -100px; /* Overlap slightly with image for visual flow */
    position: relative;
    z-index: 2;
    background-color: rgba(10, 75, 44, 0.9); /* Deep Green with slight transparency */
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
}

.page-slot-games__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
    color: var(--color-gold);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-slot-games__description {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--color-button-gradient-start); /* Fallback for gradient */
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff; /* White text for contrast */
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--color-background);
    color: var(--color-primary); /* Primary green text for contrast */
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 2px solid var(--color-primary);
    cursor: pointer;
}

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


/* General Section Styling */
.page-slot-games__introduction-section,
.page-slot-games__types-section,
.page-slot-games__providers-section,
.page-slot-games__features-section,
.page-slot-games__guide-section,
.page-slot-games__tips-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section,
.page-slot-games__conclusion-section {
    padding: 60px 0;
    text-align: center;
}

.page-slot-games__dark-section {
    background-color: var(--color-deep-green);
    color: var(--color-text-main);
}

.page-slot-games__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--color-gold);
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-slot-games__text-block {
    font-size: 1.05em;
    color: var(--color-text-secondary);
    max-width: 900px;
    margin: 0 auto 40px auto;
    text-align: left;
}

.page-slot-games__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
}

/* 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__card {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-slot-games__card-text {
    color: var(--color-text-secondary);
    font-size: 0.95em;
}

/* Providers List */
.page-slot-games__provider-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-slot-games__provider-item {
    background-color: var(--color-card-bg);
    color: var(--color-text-main);
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-slot-games__provider-item:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
}

/* Feature List */
.page-slot-games__feature-list,
.page-slot-games__tips-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 1000px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

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

.page-slot-games__feature-item:hover,
.page-slot-games__tip-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-slot-games__feature-title,
.page-slot-games__tip-title {
    font-size: 1.4em;
    color: var(--color-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-slot-games__feature-text,
.page-slot-games__tip-text {
    color: var(--color-text-secondary);
    font-size: 0.95em;
}

/* Steps List (Guide) */
.page-slot-games__steps-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 900px;
    counter-reset: step-counter;
}

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

.page-slot-games__step-item::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-primary);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-slot-games__step-title {
    font-size: 1.3em;
    color: var(--color-gold);
    margin-bottom: 8px;
    font-weight: 600;
}

.page-slot-games__step-text {
    color: var(--color-text-secondary);
    font-size: 0.95em;
}

/* Promotions Grid */
.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(--color-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__promo-title {
    font-size: 1.5em;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-slot-games__promo-text {
    color: var(--color-text-secondary);
    font-size: 0.95em;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* FAQ Section */
.page-slot-games__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-slot-games__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.page-slot-games__faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.15em;
    color: var(--color-gold);
    outline: none;
}

.page-slot-games__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for Webkit browsers */
}

.page-slot-games__faq-qtext {
    flex-grow: 1;
}

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

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

.page-slot-games__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-content {
        margin-top: -50px;
    }
}

@media (max-width: 768px) {
    .page-slot-games__container {
        padding: 0 15px; /* Add padding for smaller screens */
    }

    .page-slot-games__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-slot-games__hero-content {
        margin-top: -30px;
        padding: 25px 15px;
        border-radius: 10px;
    }

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

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

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
        width: 100% !important; /* Force full width for buttons */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 10px; /* Space between stacked buttons */
    }

    .page-slot-games__hero-content .page-slot-games__btn-primary {
        margin-bottom: 0; /* No extra margin if only one button */
    }

    .page-slot-games__section-title {
        font-size: clamp(1.6em, 6vw, 2.2em);
    }

    .page-slot-games__text-block {
        font-size: 1em;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .page-slot-games__image {
        margin: 30px auto;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-slot-games__grid,
    .page-slot-games__feature-list,
    .page-slot-games__tips-list,
    .page-slot-games__promo-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-slot-games__card,
    .page-slot-games__feature-item,
    .page-slot-games__tip-item,
    .page-slot-games__promo-card,
    .page-slot-games__step-item {
        padding: 20px;
        text-align: center;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: auto;
        margin-right: auto;
    }

    .page-slot-games__card-title,
    .page-slot-games__feature-title,
    .page-slot-games__tip-title,
    .page-slot-games__promo-title {
        font-size: 1.3em;
    }

    .page-slot-games__step-item {
        padding-left: 65px; /* Adjust padding for number */
    }

    .page-slot-games__step-item::before {
        width: 35px;
        height: 35px;
        left: 15px;
        font-size: 1.1em;
    }

    .page-slot-games__provider-list {
        gap: 15px;
    }

    .page-slot-games__provider-item {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .page-slot-games__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-slot-games__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95em;
    }

    /* Ensure all content containers have proper mobile padding and width */
    .page-slot-games__introduction-section .page-slot-games__container,
    .page-slot-games__types-section .page-slot-games__container,
    .page-slot-games__providers-section .page-slot-games__container,
    .page-slot-games__features-section .page-slot-games__container,
    .page-slot-games__guide-section .page-slot-games__container,
    .page-slot-games__tips-section .page-slot-games__container,
    .page-slot-games__promotions-section .page-slot-games__container,
    .page-slot-games__faq-section .page-slot-games__container,
    .page-slot-games__conclusion-section .page-slot-games__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Additional specific overrides for images in mobile */
@media (max-width: 768px) {
  .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__hero-section {
    padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
  }

  /* Buttons */
  .page-slot-games__cta-button,
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games a[class*="button"],
  .page-slot-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px; /* Ensure button text has padding */
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Button containers */
  .page-slot-games__cta-buttons,
  .page-slot-games__button-group,
  .page-slot-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important; /* Allow buttons to wrap */
    gap: 10px; /* Spacing between wrapped buttons */
    display: flex;
    flex-direction: column; /* Default to column for single buttons or stack */
  }

  /* If multiple buttons in a row, make them stack */
  .page-slot-games__hero-content .page-slot-games__btn-primary {
      margin-bottom: 0; /* Adjust for hero section where there might be only one button */
  }
}