
    :root {
      --primary-color: #e44d26; /* Cam đỏ */
      --secondary-color: #333; /* Xám đậm */
      --accent-color: #f7b32b; /* Vàng cam */
      --background-light: #f9f9f9; /* Nền sáng */
      --background-dark: #222; /* Nền tối */
      --text-color-light: #333; /* Chữ sáng */
      --text-color-dark: #fff; /* Chữ tối */
      --border-color: #ddd; /* Viền */
      --shadow-light: rgba(0, 0, 0, 0.1);
      --header-offset: 122px; /* Giả định chiều cao header */
    }

    /* Base styles for the page-k8 scope */
    .page-k8 {
      font-family: 'Arial', sans-serif;
      line-height: 1.6;
      color: var(--text-color-light);
      background-color: var(--background-light);
      padding-top: 10px; /* Small decorative padding, assuming body has header offset */
    }

    .page-k8__section {
      padding: 40px 20px;
      margin-bottom: 20px;
      background-color: #fff;
      border-radius: 8px;
      box-shadow: 0 4px 8px var(--shadow-light);
      max-width: 1200px;
      margin-left: auto;
      margin-right: auto;
      box-sizing: border-box;
    }

    .page-k8__section--dark {
      background-color: var(--secondary-color);
      color: var(--text-color-dark);
    }

    .page-k8__section-title {
      font-size: 2.5em;
      color: var(--primary-color);
      text-align: center;
      margin-bottom: 30px;
      font-weight: bold;
    }

    .page-k8__section--dark .page-k8__section-title {
      color: var(--accent-color);
    }

    .page-k8__text-content {
      font-size: 1.1em;
      margin-bottom: 20px;
      text-align: justify;
    }

    .page-k8__button {
      display: inline-block;
      background-color: var(--primary-color);
      color: var(--text-color-dark);
      padding: 12px 25px;
      border-radius: 5px;
      text-decoration: none;
      font-weight: bold;
      transition: background-color 0.3s ease;
      border: none;
      cursor: pointer;
      font-size: 1em;
    }

    .page-k8__button:hover {
      background-color: #c93a18;
    }

    /* Hero Section */
    .page-k8__hero-section {
      background-image: url('[GALLERY:hero:1920x1080:k8,betting,casino,vietnam]');
      background-size: cover;
      background-position: center;
      color: var(--text-color-dark);
      text-align: center;
      padding: 100px 20px;
      border-radius: 8px;
      margin-bottom: 20px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      min-height: 400px;
      position: relative;
      overflow: hidden;
      box-sizing: border-box;
    }

    .page-k8__hero-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.6);
      z-index: 1;
    }

    .page-k8__hero-content {
      position: relative;
      z-index: 2;
      max-width: 800px;
    }

    .page-k8__hero-title {
      font-size: 3.5em;
      margin-bottom: 15px;
      color: var(--accent-color);
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }

    .page-k8__hero-subtitle {
      font-size: 1.5em;
      margin-bottom: 30px;
      text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    }

    /* Advantages Section */
    .page-k8__advantages-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
      margin-top: 30px;
    }

    .page-k8__advantage-item {
      background-color: #fff;
      padding: 30px;
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      text-align: center;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      box-sizing: border-box;
    }

    .page-k8__advantage-item:hover {
      transform: translateY(-5px);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    .page-k8__advantage-icon {
      width: 80px;
      height: 80px;
      margin-bottom: 20px;
      object-fit: contain;
    }

    .page-k8__advantage-title {
      font-size: 1.5em;
      color: var(--primary-color);
      margin-bottom: 10px;
    }

    .page-k8__advantage-description {
      font-size: 1em;
      color: var(--secondary-color);
    }

    /* Games Section */
    .page-k8__games-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 25px;
      margin-top: 30px;
    }

    .page-k8__game-card {
      background-color: var(--background-dark);
      color: var(--text-color-dark);
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      box-sizing: border-box;
    }

    .page-k8__game-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    }

    .page-k8__game-image {
      width: 100%;
      height: 200px;
      object-fit: cover;
      display: block;
    }

    .page-k8__game-content {
      padding: 20px;
      text-align: center;
    }

    .page-k8__game-title {
      font-size: 1.4em;
      color: var(--accent-color);
      margin-bottom: 10px;
    }

    .page-k8__game-description {
      font-size: 0.95em;
      line-height: 1.5;
    }

    /* Promotion Section */
    .page-k8__promotion-banner {
      background-image: url('[GALLERY:banner:1920x400:k8,promotion,bonus,188k]');
      background-size: cover;
      background-position: center;
      color: var(--text-color-dark);
      text-align: center;
      padding: 60px 20px;
      border-radius: 8px;
      position: relative;
      overflow: hidden;
      box-sizing: border-box;
    }

    .page-k8__promotion-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.7);
      z-index: 1;
    }

    .page-k8__promotion-content {
      position: relative;
      z-index: 2;
      max-width: 900px;
      margin-left: auto;
      margin-right: auto;
    }

    .page-k8__promotion-title {
      font-size: 3em;
      color: var(--accent-color);
      margin-bottom: 15px;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }

    .page-k8__promotion-text {
      font-size: 1.3em;
      margin-bottom: 30px;
      text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    }

    /* Guide Section */
    .page-k8__guide-steps {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
      margin-top: 30px;
    }

    .page-k8__guide-step {
      background-color: #fff;
      padding: 25px;
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      text-align: center;
      flex: 1 1 calc(33% - 40px); /* 3 items per row, with gap */
      min-width: 280px;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .page-k8__guide-step-number {
      background-color: var(--primary-color);
      color: var(--text-color-dark);
      width: 45px;
      height: 45px;
      border-radius: 50%;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 1.5em;
      font-weight: bold;
      margin-bottom: 15px;
    }

    .page-k8__guide-step-title {
      font-size: 1.3em;
      color: var(--secondary-color);
      margin-bottom: 10px;
    }

    .page-k8__guide-step-description {
      font-size: 0.95em;
      color: #666;
    }

    /* FAQ Section */
    .page-k8__faq-list {
      margin-top: 30px;
    }

    .page-k8__faq-item {
      background-color: #fff;
      border: 1px solid var(--border-color);
      border-radius: 8px;
      margin-bottom: 15px;
      overflow: hidden;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
      box-sizing: border-box;
    }

    .page-k8__faq-question {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 25px;
      background-color: #f0f0f0;
      cursor: pointer;
      user-select: none;
      transition: background-color 0.3s ease;
    }

    .page-k8__faq-question:hover {
      background-color: #e0e0e0;
    }

    .page-k8__faq-question-text {
      font-size: 1.2em;
      color: var(--secondary-color);
      margin: 0;
      pointer-events: none; /* Allow click on parent div */
      flex-grow: 1;
    }

    .page-k8__faq-toggle {
      font-size: 1.8em;
      font-weight: bold;
      color: var(--primary-color);
      margin-left: 15px;
      pointer-events: none; /* Allow click on parent div */
      width: 20px; /* Ensure consistent width */
      text-align: center;
    }

    .page-k8__faq-answer {
      max-height: 0;
      overflow: hidden;
      padding: 0 25px;
      opacity: 0;
      transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
      color: #555;
      font-size: 1.05em;
      box-sizing: border-box;
    }

    .page-k8__faq-item.active .page-k8__faq-answer {
      max-height: 2000px !important; /* Sufficiently large to contain content */
      padding: 20px 25px !important;
      opacity: 1;
    }

    /* Responsive Design */
    @media (max-width: 1024px) {
      .page-k8__hero-title {
        font-size: 3em;
      }
      .page-k8__hero-subtitle {
        font-size: 1.3em;
      }
      .page-k8__section-title {
        font-size: 2em;
      }
      .page-k8__promotion-title {
        font-size: 2.5em;
      }
      .page-k8__promotion-text {
        font-size: 1.1em;
      }
      .page-k8__guide-step {
        flex: 1 1 calc(50% - 20px); /* 2 items per row */
      }
    }

    @media (max-width: 768px) {
      .page-k8__section {
        padding: 30px 15px;
      }
      .page-k8__hero-section {
        padding: 80px 15px;
        min-height: 300px;
      }
      .page-k8__hero-title {
        font-size: 2.5em;
      }
      .page-k8__hero-subtitle {
        font-size: 1.1em;
      }
      .page-k8__section-title {
        font-size: 1.8em;
      }
      .page-k8__text-content {
        font-size: 1em;
      }
      .page-k8__advantages-grid,
      .page-k8__games-grid {
        grid-template-columns: 1fr; /* Single column */
      }
      .page-k8__advantage-item,
      .page-k8__game-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
      }
      .page-k8__game-image {
        height: 180px;
      }
      .page-k8__promotion-banner {
        padding: 40px 15px;
      }
      .page-k8__promotion-title {
        font-size: 2em;
      }
      .page-k8__promotion-text {
        font-size: 1em;
      }
      .page-k8__guide-steps {
        flex-direction: column;
      }
      .page-k8__guide-step {
        flex: 1 1 100%; /* Single column */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
      }
      .page-k8__faq-question {
        padding: 15px 20px;
      }
      .page-k8__faq-question-text {
        font-size: 1.1em;
      }
      .page-k8__faq-answer {
        padding: 0 20px;
      }
      .page-k8__faq-item.active .page-k8__faq-answer {
        padding: 15px 20px !important;
      }
      /* Ensure images are responsive */
      .page-k8 img {
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
      }
      .page-k8 .page-k8__game-image,
      .page-k8 .page-k8__advantage-icon {
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
      }
    }

    @media (max-width: 480px) {
      .page-k8__hero-title {
        font-size: 2em;
      }
      .page-k8__hero-subtitle {
        font-size: 0.95em;
      }
      .page-k8__section-title {
        font-size: 1.6em;
      }
      .page-k8__promotion-title {
        font-size: 1.8em;
      }
      .page-k8__promotion-text {
        font-size: 0.9em;
      }
      .page-k8__button {
        padding: 10px 20px;
        font-size: 0.9em;
      }
    }
  