
    :root {
      --page-kingfun__primary-color: #f7b200; /* Màu vàng cam */
      --page-kingfun__secondary-color: #2c3e50; /* Màu xanh đậm */
      --page-kingfun__background-light: #ecf0f1; /* Màu xám nhạt */
      --page-kingfun__text-dark: #333333;
      --page-kingfun__text-light: #ffffff;
      --page-kingfun__accent-color: #e74c3c; /* Màu đỏ nổi bật */
    }

    .page-kingfun {
      font-family: 'Arial', sans-serif;
      color: var(--page-kingfun__text-dark);
      line-height: 1.6;
      background-color: var(--page-kingfun__background-light);
    }

    .page-kingfun__hero-section {
      position: relative;
      width: 100%;
      height: 400px; /* Điều chỉnh chiều cao cho banner */
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      color: var(--page-kingfun__text-light);
      padding-top: 10px; /* Đảm bảo không bị che bởi header cố định */
      overflow: hidden;
    }

    .page-kingfun__hero-background {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: -1;
    }

    .page-kingfun__hero-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5); /* Lớp phủ tối để văn bản dễ đọc */
      z-index: 0;
    }

    .page-kingfun__hero-content {
      position: relative;
      z-index: 1;
      padding: 20px;
      max-width: 900px;
      margin: 0 auto;
    }

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

    .page-kingfun__hero-subtitle {
      font-size: 1.3em;
      margin-bottom: 25px;
      color: var(--page-kingfun__text-light);
      text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    }

    .page-kingfun__button {
      display: inline-block;
      padding: 12px 30px;
      background-color: var(--page-kingfun__accent-color);
      color: var(--page-kingfun__text-light);
      border: none;
      border-radius: 8px;
      font-size: 1.1em;
      font-weight: bold;
      cursor: pointer;
      transition: background-color 0.3s ease, transform 0.2s ease;
      text-decoration: none;
    }

    .page-kingfun__button:hover {
      background-color: #c0392b; /* Màu đỏ đậm hơn */
      transform: translateY(-2px);
    }

    .page-kingfun__section {
      padding: 40px 20px;
      max-width: 1200px;
      margin: 0 auto;
      background-color: var(--page-kingfun__text-light);
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
      margin-bottom: 30px;
    }
    
    .page-kingfun__section:first-of-type {
        margin-top: 30px; /* Điều chỉnh để không bị che bởi header cố định nếu không có hero */
    }

    .page-kingfun__section-title {
      font-size: 2.2em;
      color: var(--page-kingfun__secondary-color);
      text-align: center;
      margin-bottom: 30px;
      position: relative;
      padding-bottom: 10px;
    }

    .page-kingfun__section-title::after {
      content: '';
      position: absolute;
      left: 50%;
      bottom: 0;
      transform: translateX(-50%);
      width: 80px;
      height: 4px;
      background-color: var(--page-kingfun__primary-color);
      border-radius: 2px;
    }

    .page-kingfun__text-content {
      font-size: 1.1em;
      margin-bottom: 20px;
      text-align: justify;
      color: var(--page-kingfun__text-dark);
    }

    .page-kingfun__text-content strong {
        color: var(--page-kingfun__primary-color);
    }

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

    .page-kingfun__card {
      background-color: var(--page-kingfun__background-light);
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      display: flex;
      flex-direction: column;
      height: 100%;
    }

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

    .page-kingfun__card-image-container {
      width: 100%;
      max-width: 100%;
      overflow: hidden;
      box-sizing: border-box;
      height: 200px; /* Fixed height for consistent card appearance */
    }

    .page-kingfun__card-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      max-width: 100%; /* Important for responsiveness */
    }

    .page-kingfun__card-content {
      padding: 20px;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
    }

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

    .page-kingfun__card-description {
      font-size: 0.95em;
      color: var(--page-kingfun__text-dark);
      flex-grow: 1;
      margin-bottom: 15px;
    }

    .page-kingfun__card-button-wrapper {
        margin-top: auto;
    }

    .page-kingfun__game-card .page-kingfun__card-image-container {
        height: 180px;
    }

    .page-kingfun__game-card .page-kingfun__card-title {
        font-size: 1.3em;
        color: var(--page-kingfun__primary-color);
    }

    .page-kingfun__guide-list {
      list-style: none;
      padding: 0;
    }

    .page-kingfun__guide-item {
      background-color: var(--page-kingfun__background-light);
      padding: 20px;
      margin-bottom: 15px;
      border-radius: 8px;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
      display: flex;
      align-items: center;
    }

    .page-kingfun__guide-item-icon {
      width: 60px;
      height: 60px;
      margin-right: 20px;
      border-radius: 50%;
      background-color: var(--page-kingfun__primary-color);
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 1.8em;
      font-weight: bold;
      color: var(--page-kingfun__text-light);
      flex-shrink: 0;
    }

    .page-kingfun__guide-item-content h3 {
      font-size: 1.3em;
      color: var(--page-kingfun__secondary-color);
      margin-top: 0;
      margin-bottom: 5px;
    }

    .page-kingfun__guide-item-content p {
      font-size: 0.95em;
      margin-bottom: 0;
    }

    .page-kingfun__promo-banner {
      background-color: var(--page-kingfun__primary-color);
      color: var(--page-kingfun__text-light);
      padding: 30px;
      text-align: center;
      border-radius: 8px;
      margin-top: 30px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .page-kingfun__promo-title {
      font-size: 2em;
      margin-bottom: 10px;
    }

    .page-kingfun__promo-description {
      font-size: 1.1em;
      margin-bottom: 25px;
      max-width: 800px;
      margin-left: auto;
      margin-right: auto;
    }

    /* FAQ Styles */
    .page-kingfun__faq-section {
      padding: 40px 20px;
      max-width: 900px;
      margin: 0 auto 30px auto;
      background-color: var(--page-kingfun__text-light);
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .page-kingfun__faq-item {
      border: 1px solid #ddd;
      border-radius: 8px;
      margin-bottom: 15px;
      background-color: #fcfcfc;
      overflow: hidden;
    }

    .page-kingfun__faq-question {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 20px;
      background-color: #f5f5f5;
      cursor: pointer;
      font-size: 1.1em;
      color: var(--page-kingfun__secondary-color);
      font-weight: bold;
      user-select: none;
      transition: background-color 0.3s ease;
    }

    .page-kingfun__faq-question:hover {
      background-color: #eaeaea;
    }

    .page-kingfun__faq-question h3 {
      margin: 0;
      font-size: 1.1em;
      color: var(--page-kingfun__secondary-color);
      pointer-events: none; /* Prevent h3 from blocking click on parent */
    }

    .page-kingfun__faq-toggle {
      font-size: 1.8em;
      line-height: 1;
      color: var(--page-kingfun__primary-color);
      transition: transform 0.3s ease;
      pointer-events: none; /* Prevent toggle icon from blocking click on parent */
    }

    .page-kingfun__faq-item.active .page-kingfun__faq-toggle {
      transform: rotate(45deg); /* Plus to Minus visual effect */
    }

    .page-kingfun__faq-answer {
      max-height: 0;
      overflow: hidden;
      padding: 0 15px;
      opacity: 0;
      transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
      font-size: 0.95em;
      color: var(--page-kingfun__text-dark);
    }

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

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

    /* Floating Login Button */
    .page-kingfun__floating-button {
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 1000;
      background-color: var(--page-kingfun__primary-color);
      color: var(--page-kingfun__text-light);
      padding: 12px 25px;
      border-radius: 50px;
      font-size: 1.1em;
      font-weight: bold;
      text-align: center;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
      transition: background-color 0.3s ease, transform 0.3s ease;
      text-decoration: none;
      animation: pulse 2s infinite;
    }

    .page-kingfun__floating-button:hover {
      background-color: #d89f00; /* Darker primary color */
      transform: translateY(-3px);
    }

    @keyframes pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.05); }
      100% { transform: scale(1); }
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      .page-kingfun__hero-section {
        height: 300px;
        padding-top: 10px; /* Mobile padding for fixed header */
      }

      .page-kingfun__hero-title {
        font-size: 2em;
      }

      .page-kingfun__hero-subtitle {
        font-size: 1em;
      }

      .page-kingfun__section {
        padding: 25px 15px;
        margin-bottom: 20px;
      }

      .page-kingfun__section-title {
        font-size: 1.8em;
      }

      .page-kingfun__text-content {
        font-size: 0.95em;
      }

      .page-kingfun__grid {
        grid-template-columns: 1fr;
        gap: 20px;
      }

      .page-kingfun__card-image-container {
        height: 180px;
      }

      .page-kingfun__guide-item {
        flex-direction: column;
        text-align: center;
      }

      .page-kingfun__guide-item-icon {
        margin: 0 auto 15px auto;
      }

      .page-kingfun__promo-title {
        font-size: 1.5em;
      }

      .page-kingfun__promo-description {
        font-size: 0.95em;
      }

      .page-kingfun__faq-question {
        font-size: 1em;
        padding: 12px 15px;
      }
      
      .page-kingfun__faq-question h3 {
        font-size: 1em;
      }

      .page-kingfun__faq-answer {
        font-size: 0.9em;
        padding: 0 10px;
      }

      .page-kingfun__faq-item.active .page-kingfun__faq-answer {
        padding: 15px 10px !important;
      }

      .page-kingfun__floating-button {
        bottom: 15px;
        right: 15px;
        padding: 10px 20px;
        font-size: 1em;
      }

      .page-kingfun__card-image {
        max-width: 100% !important;
        height: auto !important;
      }
      .page-kingfun__card-image-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
      }
    }

    @media (max-width: 480px) {
      .page-kingfun__hero-section {
        height: 250px;
      }
      .page-kingfun__hero-title {
        font-size: 1.6em;
      }
      .page-kingfun__hero-subtitle {
        font-size: 0.9em;
      }
      .page-kingfun__button {
        padding: 10px 20px;
        font-size: 1em;
      }
    }
  