
    /* Base styles for the yy777.home page */
    .page-yy777-home {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      color: #333;
      line-height: 1.6;
      background-color: #f8f8f8;
      padding-bottom: 60px; /* Space for floating buttons */
    }

    .page-yy777-home__section {
      padding: 40px 20px;
      margin: 0 auto;
      max-width: 1200px;
      background-color: #fff;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      margin-bottom: 20px;
    }

    .page-yy777-home__section:first-of-type {
        padding-top: 10px; /* Small decorative padding, main offset from body */
    }

    .page-yy777-home__section-title {
      text-align: center;
      color: #0056b3;
      margin-bottom: 30px;
      font-size: 2.2em;
      font-weight: 700;
    }

    .page-yy777-home__section-subtitle {
      text-align: center;
      color: #555;
      margin-bottom: 40px;
      font-size: 1.1em;
    }

    /* Hero Section */
    .page-yy777-home__hero-section {
      position: relative;
      background-color: #007bff;
      color: #fff;
      text-align: center;
      padding: 10px 0 80px 0; /* Adjusted for header offset and content */
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 500px;
      background-size: cover;
      background-position: center;
    }

    .page-yy777-home__hero-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
        opacity: 0.7;
    }

    .page-yy777-home__hero-content {
      position: relative;
      z-index: 2;
      max-width: 900px;
      padding: 20px;
      background: rgba(0, 0, 0, 0.5);
      border-radius: 10px;
    }

    .page-yy777-home__hero-title {
      font-size: 3.5em;
      margin-bottom: 15px;
      font-weight: 900;
      color: #fff;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }

    .page-yy777-home__hero-description {
      font-size: 1.4em;
      margin-bottom: 30px;
      color: #eee;
      text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    }

    .page-yy777-home__cta-link {
      display: inline-block;
      background-color: #ffc107;
      color: #333;
      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;
    }

    .page-yy777-home__cta-link:hover {
      background-color: #e0a800;
      transform: translateY(-2px);
    }

    /* Floating Buttons */
    .page-yy777-home__floating-buttons {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      display: flex;
      justify-content: space-around;
      padding: 10px 0;
      background-color: rgba(0, 0, 0, 0.8);
      z-index: 1000;
      box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    }

    .page-yy777-home__floating-button {
      flex: 1;
      text-align: center;
      padding: 12px 0;
      margin: 0 5px;
      background-color: #007bff;
      color: #fff;
      border: none;
      border-radius: 8px;
      font-size: 1.1em;
      font-weight: bold;
      cursor: pointer;
      transition: background-color 0.3s ease, transform 0.2s ease;
      max-width: 48%; /* Ensure two buttons fit well */
      box-sizing: border-box;
    }

    .page-yy777-home__floating-button--register {
      background-color: #28a745;
    }
    .page-yy777-home__floating-button--register:hover {
      background-color: #218838;
      transform: translateY(-2px);
    }

    .page-yy777-home__floating-button--login {
      background-color: #007bff;
    }
    .page-yy777-home__floating-button--login:hover {
      background-color: #0056b3;
      transform: translateY(-2px);
    }

    /* Promotions Section */
    .page-yy777-home__promotions-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 25px;
    }

    .page-yy777-home__promo-card {
      background-color: #fefefe;
      border-radius: 10px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      display: flex;
      flex-direction: column;
      height: 100%;
      box-sizing: border-box;
    }

    .page-yy777-home__promo-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

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

    .page-yy777-home__promo-content {
      padding: 20px;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .page-yy777-home__promo-title {
      font-size: 1.5em;
      color: #007bff;
      margin-bottom: 10px;
      font-weight: 600;
    }

    .page-yy777-home__promo-description {
      font-size: 0.95em;
      color: #555;
      margin-bottom: 15px;
      flex-grow: 1;
    }

    .page-yy777-home__promo-button {
      background-color: #ffc107;
      color: #333;
      padding: 10px 20px;
      border-radius: 5px;
      text-decoration: none;
      font-weight: bold;
      font-size: 0.9em;
      transition: background-color 0.3s ease;
      display: inline-block; /* Ensure button styling */
      border: none;
      cursor: pointer;
    }

    .page-yy777-home__promo-button:hover {
      background-color: #e0a800;
    }

    /* Game Categories / Providers / Payments Grid */
    .page-yy777-home__grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 20px;
      text-align: center;
    }

    .page-yy777-home__grid-item {
      background-color: #fefefe;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      box-sizing: border-box;
    }

    .page-yy777-home__grid-item:hover {
      transform: translateY(-3px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

    .page-yy777-home__grid-image {
      width: 100%;
      max-width: 250px;
      height: auto;
      min-height: 200px; /* Enforce minimum size */
      object-fit: contain;
      margin-bottom: 15px;
      border-radius: 5px;
    }

    .page-yy777-home__grid-title {
      font-size: 1.2em;
      color: #0056b3;
      font-weight: 600;
    }
    
    /* Why Choose Section */
    .page-yy777-home__advantages-list {
      list-style: none;
      padding: 0;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 20px;
    }

    .page-yy777-home__advantage-item {
      background-color: #fefefe;
      padding: 25px;
      border-left: 5px solid #007bff;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      transition: transform 0.3s ease;
      box-sizing: border-box;
    }

    .page-yy777-home__advantage-item:hover {
      transform: translateX(5px);
    }

    .page-yy777-home__advantage-title {
      font-size: 1.4em;
      color: #007bff;
      margin-bottom: 10px;
      font-weight: 700;
    }

    .page-yy777-home__advantage-description {
      font-size: 0.95em;
      color: #666;
    }

    /* Call to Action Section */
    .page-yy777-home__cta-section {
      text-align: center;
      background-color: #007bff;
      color: #fff;
      padding: 60px 20px;
      border-radius: 8px;
      margin-top: 20px;
    }

    .page-yy777-home__cta-heading {
      font-size: 2.5em;
      margin-bottom: 20px;
      font-weight: 800;
    }

    .page-yy777-home__cta-buttons {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin-top: 30px;
    }

    .page-yy777-home__cta-button {
      background-color: #ffc107;
      color: #333;
      padding: 15px 40px;
      border-radius: 50px;
      font-weight: bold;
      font-size: 1.2em;
      transition: background-color 0.3s ease, transform 0.3s ease;
      border: none;
      cursor: pointer;
    }

    .page-yy777-home__cta-button:hover {
      background-color: #e0a800;
      transform: translateY(-2px);
    }
    
    /* FAQ Section */
    .page-yy777-home__faq-section {
      padding: 40px 20px;
      max-width: 1000px;
      margin: 20px auto;
      background-color: #fff;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .page-yy777-home__faq-item {
      border-bottom: 1px solid #eee;
      margin-bottom: 10px;
      box-sizing: border-box;
    }

    .page-yy777-home__faq-item:last-child {
      border-bottom: none;
      margin-bottom: 0;
    }

    .page-yy777-home__faq-question {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 15px;
      background-color: #f9f9f9;
      cursor: pointer;
      user-select: none;
      border-radius: 5px;
      transition: background-color 0.3s ease;
      box-sizing: border-box;
    }

    .page-yy777-home__faq-question:hover {
      background-color: #f0f0f0;
    }

    .page-yy777-home__faq-question h3 {
      margin: 0;
      font-size: 1.1em;
      color: #333;
      pointer-events: none; /* Prevent h3 from intercepting click */
    }

    .page-yy777-home__faq-toggle {
      font-size: 1.5em;
      font-weight: bold;
      color: #007bff;
      transition: transform 0.3s ease;
      pointer-events: none; /* Prevent toggle from intercepting click */
    }

    .page-yy777-home__faq-item.active .page-yy777-home__faq-toggle {
      transform: rotate(45deg); /* Visually change + to X or - */
    }

    .page-yy777-home__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;
      background-color: #fff;
      color: #555;
      font-size: 0.95em;
      box-sizing: border-box;
    }

    .page-yy777-home__faq-item.active .page-yy777-home__faq-answer {
      max-height: 2000px !important; /* Sufficiently large */
      padding: 20px 15px !important;
      opacity: 1;
    }
    
    /* General Image Responsiveness */
    .page-yy777-home img {
      max-width: 100%;
      height: auto;
      display: block;
      box-sizing: border-box;
    }

    /* Responsive Adjustments */
    @media (max-width: 1024px) {
      .page-yy777-home__hero-title {
        font-size: 2.8em;
      }
      .page-yy777-home__hero-description {
        font-size: 1.2em;
      }
      .page-yy777-home__section-title {
        font-size: 1.8em;
      }
      .page-yy777-home__cta-heading {
        font-size: 2em;
      }
    }

    @media (max-width: 768px) {
      .page-yy777-home__section {
        padding: 30px 15px;
        margin-bottom: 15px;
      }
      .page-yy777-home__hero-section {
        min-height: 400px;
        padding-bottom: 60px;
      }
      .page-yy777-home__hero-title {
        font-size: 2.2em;
      }
      .page-yy777-home__hero-description {
        font-size: 1em;
      }
      .page-yy777-home__cta-link {
        padding: 12px 25px;
        font-size: 1em;
      }

      .page-yy777-home__floating-buttons {
        padding: 8px 0;
      }
      .page-yy777-home__floating-button {
        font-size: 1em;
        padding: 10px 0;
        margin: 0 3px;
      }

      .page-yy777-home__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
      }
      .page-yy777-home__promo-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
      }
      .page-yy777-home__promo-image {
        height: 180px;
      }

      .page-yy777-home__grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
      }
      .page-yy777-home__grid-item {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 15px;
      }
      .page-yy777-home__grid-image {
        min-height: 150px;
        margin-bottom: 10px;
      }
      .page-yy777-home__grid-title {
        font-size: 1.1em;
      }

      .page-yy777-home__advantages-list {
        grid-template-columns: 1fr;
        gap: 15px;
      }
      .page-yy777-home__advantage-item {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 20px;
      }
      .page-yy777-home__advantage-title {
        font-size: 1.2em;
      }
      .page-yy777-home__advantage-description {
        font-size: 0.9em;
      }

      .page-yy777-home__cta-section {
        padding: 40px 15px;
      }
      .page-yy777-home__cta-heading {
        font-size: 1.8em;
      }
      .page-yy777-home__cta-buttons {
        flex-direction: column;
        gap: 15px;
      }
      .page-yy777-home__cta-button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 12px 20px;
        font-size: 1.1em;
      }

      .page-yy777-home__faq-section {
        padding: 30px 15px;
      }
      .page-yy777-home__faq-question {
        padding: 12px 10px;
      }
      .page-yy777-home__faq-question h3 {
        font-size: 1em;
      }
      .page-yy777-home__faq-answer {
        padding: 15px 10px;
      }
      .page-yy777-home__faq-item.active .page-yy777-home__faq-answer {
        padding: 15px 10px !important;
      }

      /* Image responsive important rules */
      .page-yy777-home img {
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
      }
      .page-yy777-home__hero-image {
          min-height: 300px; /* Ensure hero image is not too small */
      }
    }

    @media (max-width: 480px) {
      .page-yy777-home__hero-title {
        font-size: 1.8em;
      }
      .page-yy777-home__hero-description {
        font-size: 0.9em;
      }
      .page-yy777-home__section-title {
        font-size: 1.5em;
      }
      .page-yy777-home__floating-button {
        font-size: 0.9em;
        padding: 8px 0;
      }
    }
  