
    /* CSS Styles for lucky8 page */
    :root {
      --lucky8-primary: #FFD700; /* Gold */
      --lucky8-secondary: #000080; /* Navy */
      --lucky8-accent: #FF4500; /* OrangeRed */
      --lucky8-text-light: #f8f8f8;
      --lucky8-text-dark: #333;
      --lucky8-bg-dark: #1a1a2e;
      --lucky8-bg-light: #ffffff;
      --lucky8-border-color: #e0e0e0;
    }

    body {
      font-family: 'Arial', sans-serif;
      line-height: 1.6;
      color: var(--lucky8-text-dark);
      background-color: var(--lucky8-bg-light);
    }

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

    /* Hero Section */
    .page-lucky8__hero-section {
      position: relative;
      text-align: center;
      color: var(--lucky8-text-light);
      padding-top: 10px; /* For fixed header clearance on desktop and mobile */
      margin-bottom: 30px;
      background-color: var(--lucky8-bg-dark); /* Fallback */
      border-radius: 10px;
      overflow: hidden;
      display: flex; /* Use flex to center content vertically */
      align-items: center; /* Center content vertically */
      justify-content: center; /* Center content horizontally */
      min-height: 300px; /* Minimum height for hero section */
    }

    .page-lucky8__hero-image {
      width: 100%;
      max-width: 100%;
      height: auto;
      display: block;
      object-fit: cover;
      position: absolute; /* Position image behind content */
      top: 0;
      left: 0;
      min-height: 100%; /* Ensure image covers the whole hero section */
      z-index: 1;
      border-radius: 10px;
    }

    .page-lucky8__hero-content {
      position: relative; /* Ensure content is above the image */
      z-index: 2;
      width: 90%;
      max-width: 800px;
      background-color: rgba(0, 0, 0, 0.6);
      padding: 20px;
      border-radius: 10px;
    }

    .page-lucky8__hero-title {
      font-size: 2.5em;
      margin-bottom: 10px;
      color: var(--lucky8-primary);
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }

    .page-lucky8__hero-subtitle {
      font-size: 1.2em;
      margin-bottom: 20px;
      color: var(--lucky8-text-light);
    }

    /* Floating Login Button */
    .page-lucky8__floating-button {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background-color: var(--lucky8-accent);
      color: var(--lucky8-text-light);
      padding: 15px 25px;
      border-radius: 50px;
      text-decoration: none;
      font-weight: bold;
      font-size: 1.1em;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
      z-index: 1000;
      transition: background-color 0.3s ease, transform 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      cursor: pointer;
      border: none;
      min-width: 150px; /* Ensure button is not too small */
    }

    .page-lucky8__floating-button:hover {
      background-color: #e63900;
      transform: translateY(-3px);
    }

    /* General Section Styling */
    .page-lucky8__section {
      background-color: var(--lucky8-bg-light);
      padding: 30px 20px;
      margin-bottom: 30px;
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      color: var(--lucky8-text-dark);
    }
    
    .page-lucky8__section--dark {
      background-color: var(--lucky8-bg-dark);
      color: var(--lucky8-text-light);
    }

    .page-lucky8__section-title {
      font-size: 2em;
      color: var(--lucky8-secondary);
      text-align: center;
      margin-bottom: 25px;
      position: relative;
    }
    
    .page-lucky8__section--dark .page-lucky8__section-title {
      color: var(--lucky8-primary);
    }

    .page-lucky8__section-title::after {
      content: '';
      display: block;
      width: 60px;
      height: 3px;
      background-color: var(--lucky8-primary);
      margin: 10px auto 0;
      border-radius: 2px;
    }

    .page-lucky8__text-content p {
      margin-bottom: 15px;
      font-size: 1.05em;
      line-height: 1.7;
    }

    /* Game Categories */
    .page-lucky8__game-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 20px;
      justify-content: center;
    }

    .page-lucky8__game-card {
      background-color: #f0f0f0;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      text-align: center;
      text-decoration: none;
      color: var(--lucky8-text-dark);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 15px;
      min-height: 200px;
    }
    
    .page-lucky8__section--dark .page-lucky8__game-card {
      background-color: #333;
      color: var(--lucky8-text-light);
    }

    .page-lucky8__game-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    }

    .page-lucky8__game-image {
      width: 100%;
      max-width: 250px; 
      height: auto;
      object-fit: contain;
      margin-bottom: 10px;
      border-radius: 8px;
    }

    .page-lucky8__game-title {
      font-size: 1.2em;
      font-weight: bold;
      color: var(--lucky8-secondary);
    }
    
    .page-lucky8__section--dark .page-lucky8__game-title {
      color: var(--lucky8-primary);
    }

    /* Promotions */
    .page-lucky8__promo-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 25px;
    }

    .page-lucky8__promo-item {
      background-color: var(--lucky8-bg-light);
      border: 1px solid var(--lucky8-border-color);
      border-radius: 10px;
      padding: 20px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease;
    }
    
    .page-lucky8__section--dark .page-lucky8__promo-item {
      background-color: #2b2b4d;
      border-color: #555;
    }

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

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

    .page-lucky8__promo-description {
      color: var(--lucky8-text-dark);
      margin-bottom: 15px;
    }
    
    .page-lucky8__section--dark .page-lucky8__promo-description {
      color: var(--lucky8-text-light);
    }

    .page-lucky8__promo-button {
      display: inline-block;
      background-color: var(--lucky8-primary);
      color: var(--lucky8-text-dark);
      padding: 10px 20px;
      border-radius: 5px;
      text-decoration: none;
      font-weight: bold;
      transition: background-color 0.3s ease;
    }

    .page-lucky8__promo-button:hover {
      background-color: #e0b800;
    }

    /* Game Providers */
    .page-lucky8__provider-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: 15px;
      justify-content: center;
      align-items: center;
    }

    .page-lucky8__provider-logo {
      width: 100%;
      max-width: 180px; 
      height: auto;
      object-fit: contain;
      padding: 10px;
      background-color: var(--lucky8-bg-light);
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
      transition: transform 0.2s ease;
    }
    
    .page-lucky8__section--dark .page-lucky8__provider-logo {
      background-color: #2b2b4d;
    }

    .page-lucky8__provider-logo:hover {
      transform: scale(1.05);
    }

    /* FAQ Section */
    .page-lucky8__faq-container {
      background-color: var(--lucky8-bg-light);
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      padding: 20px;
    }
    
    .page-lucky8__section--dark .page-lucky8__faq-container {
      background-color: #2b2b4d;
    }

    .page-lucky8__faq-item {
      border-bottom: 1px solid var(--lucky8-border-color);
      margin-bottom: 10px;
      padding-bottom: 10px;
    }

    .page-lucky8__faq-item:last-child {
      border-bottom: none;
      margin-bottom: 0;
      padding-bottom: 0;
    }

    .page-lucky8__faq-question {
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      padding: 15px 0;
      font-size: 1.15em;
      font-weight: bold;
      color: var(--lucky8-secondary);
      user-select: none;
      transition: color 0.3s ease;
    }
    
    .page-lucky8__section--dark .page-lucky8__faq-question {
      color: var(--lucky8-primary);
    }

    .page-lucky8__faq-question:hover {
      color: var(--lucky8-accent);
    }

    .page-lucky8__faq-question h3 {
      margin: 0;
      pointer-events: none; /* Prevent h3 from blocking click event */
      font-size: 1em; /* Adjust to fit parent font size */
      color: inherit; /* Inherit color from parent */
    }

    .page-lucky8__faq-toggle {
      font-size: 1.5em;
      line-height: 1;
      transition: transform 0.3s ease;
      pointer-events: none; /* Prevent span from blocking click event */
    }

    .page-lucky8__faq-item.active .page-lucky8__faq-toggle {
      transform: rotate(45deg);
    }

    .page-lucky8__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;
      color: var(--lucky8-text-dark);
    }
    
    .page-lucky8__section--dark .page-lucky8__faq-answer {
      color: var(--lucky8-text-light);
    }

    .page-lucky8__faq-item.active .page-lucky8__faq-answer {
      max-height: 2000px !important; /* Sufficiently large */
      padding: 20px 15px !important;
      opacity: 1;
    }
    
    .page-lucky8__faq-answer p {
        margin: 0; /* Reset margin for paragraphs inside FAQ answer */
        padding-bottom: 10px;
    }
    
    .page-lucky8__faq-answer p:last-child {
        padding-bottom: 0;
    }


    /* Call to Action */
    .page-lucky8__cta-section {
      text-align: center;
      padding: 40px 20px;
      background: linear-gradient(45deg, var(--lucky8-secondary), #00004d);
      color: var(--lucky8-text-light);
      border-radius: 10px;
      margin-bottom: 30px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .page-lucky8__cta-title {
      font-size: 2.2em;
      color: var(--lucky8-primary);
      margin-bottom: 15px;
    }

    .page-lucky8__cta-description {
      font-size: 1.1em;
      margin-bottom: 30px;
      max-width: 700px;
      margin-left: auto;
      margin-right: auto;
    }

    .page-lucky8__cta-button {
      display: inline-block;
      background-color: var(--lucky8-accent);
      color: var(--lucky8-text-light);
      padding: 15px 30px;
      border-radius: 50px;
      text-decoration: none;
      font-weight: bold;
      font-size: 1.2em;
      transition: background-color 0.3s ease, transform 0.3s ease;
      border: none;
      cursor: pointer;
    }

    .page-lucky8__cta-button:hover {
      background-color: #e63900;
      transform: translateY(-3px);
    }
    
    /* Image specific responsive rules */
    .page-lucky8__game-image,
    .page-lucky8__provider-logo,
    .page-lucky8__hero-image {
        max-width: 100%;
        height: auto;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      .page-lucky8 {
        padding: 0 10px;
      }

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

      .page-lucky8__hero-subtitle {
        font-size: 1em;
      }
      
      .page-lucky8__floating-button {
        padding: 12px 20px;
        font-size: 1em;
        bottom: 15px;
        right: 15px;
      }

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

      .page-lucky8__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      }
      
      .page-lucky8__game-card {
          min-height: 180px;
          padding: 10px;
      }
      
      .page-lucky8__game-image {
          max-width: 150px;
      }

      .page-lucky8__promo-list {
        grid-template-columns: 1fr;
      }

      .page-lucky8__provider-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
      }
      
      .page-lucky8__provider-logo {
          max-width: 150px;
      }

      .page-lucky8__faq-question {
        font-size: 1em;
        padding: 10px 0;
      }

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

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

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

      .page-lucky8__cta-button {
        padding: 12px 25px;
        font-size: 1.1em;
      }
      
      /* Force responsive image styles for mobile */
      .page-lucky8__game-image,
      .page-lucky8__provider-logo,
      .page-lucky8__hero-image {
          max-width: 100% !important;
          height: auto !important;
      }
      
      .page-lucky8__game-card,
      .page-lucky8__provider-logo { /* Apply to parent containers as well */
          width: 100% !important;
          max-width: 100% !important;
          overflow: hidden !important;
          box-sizing: border-box !important;
      }
    }
    
    @media (max-width: 480px) {
        .page-lucky8__game-grid {
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        }
        .page-lucky8__provider-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
  