/* Biến màu sắc */
:root {
    --page-slot-games-primary-color: #2F6BFF;
    --page-slot-games-secondary-color: #6FA3FF;
    --page-slot-games-button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --page-slot-games-card-bg: #FFFFFF;
    --page-slot-games-background-color: #F4F7FB;
    --page-slot-games-text-main: #1F2D3D;
    --page-slot-games-text-dark: #000000;
    --page-slot-games-border-color: #D6E2FF;
    --page-slot-games-glow-color: #A5C4FF;
}

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

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, shared.css handles body padding */
    background-color: var(--page-slot-games-background-color);
    overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    height: 600px; /* Adjust height as needed */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-slot-games__hero-content {
    max-width: 900px;
    margin: 40px auto;
    text-align: center;
    padding: 0 15px;
}

.page-slot-games__main-title {
    font-size: clamp(2em, 4vw, 3.2em);
    color: var(--page-slot-games-primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

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

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__btn-primary {
    background: var(--page-slot-games-button-gradient);
    color: #ffffff;
    border: none;
}

.page-slot-games__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-slot-games__btn-secondary {
    background: var(--page-slot-games-card-bg);
    color: var(--page-slot-games-primary-color);
    border: 2px solid var(--page-slot-games-primary-color);
}

.page-slot-games__btn-secondary:hover {
    background: var(--page-slot-games-primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-slot-games__cta-buttons--bottom {
    margin-top: 50px;
}

/* General Section Styling */
.page-slot-games__section {
    padding: 60px 0;
    background-color: var(--page-slot-games-background-color);
}

.page-slot-games__section:nth-of-type(even) {
    background-color: var(--page-slot-games-card-bg);
}

.page-slot-games__section-title {
    font-size: 2.5em;
    color: var(--page-slot-games-text-dark);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.3;
}

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

.page-slot-games__text-block a {
    color: var(--page-slot-games-primary-color);
    text-decoration: none;
}

.page-slot-games__text-block a:hover {
    text-decoration: underline;
}

/* Grid Layouts */
.page-slot-games__grid {
    display: grid;
    gap: 30px;
}

.page-slot-games__game-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-slot-games__benefit-list {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-slot-games__promo-cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-slot-games__image-text-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Card Styling */
.page-slot-games__card {
    background: var(--page-slot-games-card-bg);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.page-slot-games__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.page-slot-games__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    min-width: 200px; /* Min size enforcement */
    min-height: 200px; /* Min size enforcement */
}

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

.page-slot-games__card-description {
    font-size: 1em;
    color: var(--page-slot-games-text-main);
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: justify;
}

.page-slot-games__btn-card {
    display: inline-block;
    padding: 10px 20px;
    background: var(--page-slot-games-button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__btn-card:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Feature Item Styling */
.page-slot-games__feature-item {
    background: var(--page-slot-games-card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease;
}

.page-slot-games__feature-item:hover {
    transform: translateY(-5px);
}

.page-slot-games__feature-title {
    font-size: 1.3em;
    color: var(--page-slot-games-primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-slot-games__feature-description {
    font-size: 0.95em;
    color: var(--page-slot-games-text-main);
}

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

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

.page-slot-games__ordered-list li strong {
    color: var(--page-slot-games-primary-color);
}

.page-slot-games__promo-note {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: rgba(47, 107, 255, 0.05);
    border-radius: 8px;
    border: 1px dashed var(--page-slot-games-primary-color);
}

/* Image Text Grid */
.page-slot-games__image-text-item {
    text-align: center;
}

.page-slot-games__content-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__item-title {
    font-size: 1.4em;
    color: var(--page-slot-games-primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.page-slot-games__item-description {
    font-size: 1em;
    color: var(--page-slot-games-text-main);
}

/* FAQ Section */
details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--page-slot-games-border-color);
  overflow: hidden;
  background: var(--page-slot-games-card-bg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question::-webkit-details-marker {
  display: none;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question:hover {
  background: rgba(47, 107, 255, 0.05);
}
.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--page-slot-games-text-dark);
}
.page-slot-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--page-slot-games-primary-color);
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
  line-height: 1;
}
details.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
    color: var(--page-slot-games-text-dark);
}
details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 25px 20px;
  background: #fcfdff;
  border-radius: 0 0 8px 8px;
  color: var(--page-slot-games-text-main);
}
details.page-slot-games__faq-item .page-slot-games__faq-answer p {
    margin-top: 10px;
    margin-bottom: 0;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .page-slot-games__hero-image-wrapper {
        height: 500px;
    }
    .page-slot-games__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }
    .page-slot-games__lead-text {
        font-size: 1.1em;
    }
    .page-slot-games__section-title {
        font-size: 2em;
    }
    .page-slot-games__text-block {
        font-size: 1em;
    }
    .page-slot-games__card-title {
        font-size: 1.4em;
    }
    .page-slot-games__feature-title {
        font-size: 1.2em;
    }
    .page-slot-games__faq-qtext {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-slot-games__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO 主图区域 */
    .page-slot-games__hero-section {
        padding-top: 10px;
    }
    .page-slot-games__hero-image-wrapper {
        height: 300px;
        aspect-ratio: unset !important;
    }
    .page-slot-games__hero-image {
        object-fit: contain !important; /* Prevent cropping */
        width: 100% !important;
        height: auto !important;
    }
    .page-slot-games__hero-content {
        margin: 20px auto;
        padding: 0 10px;
    }
    .page-slot-games__main-title {
        font-size: clamp(1.5em, 7vw, 2.2em);
        margin-bottom: 15px;
    }
    .page-slot-games__lead-text {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 1em;
        padding: 12px 20px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* General Section Styling */
    .page-slot-games__section {
        padding: 40px 0;
    }
    .page-slot-games__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-slot-games__text-block {
        font-size: 0.95em;
        text-align: left;
    }

    /* Grid Layouts */
    .page-slot-games__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-slot-games__game-cards,
    .page-slot-games__promo-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Keep 2 cols on slightly wider mobiles */
        overflow-x: hidden;
    }
    .page-slot-games__benefit-list {
        grid-template-columns: 1fr;
    }
    .page-slot-games__image-text-grid {
        grid-template-columns: 1fr;
    }

    /* Card Styling */
    .page-slot-games__card {
        padding: 20px;
    }
    .page-slot-games__card-image {
        height: 180px;
        min-width: 200px !important;
        min-height: 180px !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-slot-games__card-title {
        font-size: 1.3em;
    }
    .page-slot-games__card-description {
        font-size: 0.9em;
    }
    .page-slot-games__btn-card {
        font-size: 0.9em;
        padding: 8px 15px;
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Feature Item Styling */
    .page-slot-games__feature-title {
        font-size: 1.1em;
    }
    .page-slot-games__feature-description {
        font-size: 0.9em;
    }

    /* Lists */
    .page-slot-games__ordered-list li,
    .page-slot-games__unordered-list li {
        font-size: 0.95em;
    }

    /* Image-Text Item */
    .page-slot-games__content-image {
        height: 200px;
        min-width: 200px !important;
        min-height: 200px !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-slot-games__item-title {
        font-size: 1.2em;
    }
    .page-slot-games__item-description {
        font-size: 0.9em;
    }

    /* FAQ */
    details.page-slot-games__faq-item summary.page-slot-games__faq-question {
      padding: 15px;
    }
    .page-slot-games__faq-qtext {
      font-size: 1em;
    }
    .page-slot-games__faq-toggle {
      font-size: 24px;
      margin-left: 15px;
    }
    details.page-slot-games__faq-item .page-slot-games__faq-answer {
      padding: 0 15px 15px;
    }

    /* Ensure all images are responsive */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    /* Ensure all containers for images are responsive */
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__hero-section,
    .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;
    }
    /* Specific override for flex containers to prevent overflow */
    .page-slot-games__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-slot-games__image-text-grid {
        overflow-x: hidden;
    }
    .page-slot-games__promo-note {
        padding: 15px;
    }
}