
    /* Page-specific CSS for yy777 ph m home */
    .page-yy777-ph-m-home {
      font-family: 'Arial', sans-serif;
      color: #fff; /* White text for better contrast on dark backgrounds */
      background-color: #1a1a2e; /* Dark background for casino theme */
      line-height: 1.6;
      overflow-x: hidden;
    }

    .page-yy777-ph-m-home__container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 20px;
    }

    /* Hero Section */
    .page-yy777-ph-m-home__hero-section {
      position: relative;
      background: url('[GALLERY:hero:1920x1080:casino,mobile,philippines,yy777,gaming]') no-repeat center center/cover;
      min-height: 600px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 10px 20px 80px; /* Small top padding, larger bottom for content */
      color: #fff;
      position: relative;
      z-index: 1; /* Ensure hero content is above overlay */
    }

    .page-yy777-ph-m-home__hero-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
      z-index: -1; /* Place overlay behind content */
    }

    .page-yy777-ph-m-home__hero-title {
      font-size: 3.5em;
      margin-bottom: 20px;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
      color: #fdd835; /* Gold-like color for emphasis */
      text-transform: uppercase;
      font-weight: bold;
    }

    .page-yy777-ph-m-home__hero-subtitle {
      font-size: 1.5em;
      margin-bottom: 30px;
      max-width: 800px;
      text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    }

    .page-yy777-ph-m-home__hero-buttons {
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .page-yy777-ph-m-home__button {
      background-color: #fdd835; /* Gold button */
      color: #1a1a2e; /* Dark text on gold */
      padding: 15px 30px;
      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;
      display: inline-block;
      text-align: center;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .page-yy777-ph-m-home__button:hover {
      background-color: #ffeb3b; /* Lighter gold on hover */
      transform: translateY(-2px);
    }

    /* Floating Register/Login Buttons */
    .page-yy777-ph-m-home__floating-buttons {
      position: fixed;
      top: 50%;
      right: 20px;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      gap: 15px;
      z-index: 1000; /* Ensure they are on top */
    }

    .page-yy777-ph-m-home__floating-button {
      background-color: #fdd835; /* Gold */
      color: #1a1a2e;
      padding: 12px 25px;
      border: none;
      border-radius: 50px; /* Pill shape */
      font-size: 1em;
      font-weight: bold;
      cursor: pointer;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
      transition: background-color 0.3s ease, transform 0.2s ease;
      text-align: center;
      min-width: 100px; /* Ensure consistent width */
    }

    .page-yy777-ph-m-home__floating-button:hover {
      background-color: #ffeb3b;
      transform: scale(1.05);
    }

    /* Section Styling */
    .page-yy777-ph-m-home__section {
      padding: 60px 20px;
      text-align: center;
      background-color: #1a1a2e;
    }

    .page-yy777-ph-m-home__section:nth-of-type(even) {
      background-color: #2b2b40; /* Slightly different background for alternating sections */
    }

    .page-yy777-ph-m-home__section-title {
      font-size: 2.5em;
      margin-bottom: 40px;
      color: #fdd835;
      text-transform: uppercase;
      font-weight: bold;
    }

    .page-yy777-ph-m-home__section-description {
      font-size: 1.1em;
      max-width: 800px;
      margin: 0 auto 50px;
      color: #ccc;
    }

    /* Promotions */
    .page-yy777-ph-m-home__promotions-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
      margin-top: 40px;
    }

    .page-yy777-ph-m-home__promo-card {
      background-color: #2b2b40;
      border-radius: 12px;
      padding: 30px;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
      text-align: left;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      height: 100%; /* Ensure cards are same height */
      border: 1px solid #444;
    }

    .page-yy777-ph-m-home__promo-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
    }

    .page-yy777-ph-m-home__promo-image {
      width: 100%;
      height: 200px;
      object-fit: cover;
      border-radius: 8px;
      margin-bottom: 20px;
      max-width: 100%; /* Ensure responsiveness */
      height: auto; /* Maintain aspect ratio */
      box-sizing: border-box;
    }

    .page-yy777-ph-m-home__promo-title {
      font-size: 1.8em;
      color: #fdd835;
      margin-bottom: 15px;
      font-weight: bold;
    }

    .page-yy777-ph-m-home__promo-description {
      color: #ccc;
      margin-bottom: 20px;
      flex-grow: 1;
    }

    /* Game Showcase */
    .page-yy777-ph-m-home__game-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 25px;
      margin-top: 40px;
    }

    .page-yy777-ph-m-home__game-card {
      background-color: #2b2b40;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      border: 1px solid #444;
      display: flex;
      flex-direction: column;
    }

    .page-yy777-ph-m-home__game-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    }

    .page-yy777-ph-m-home__game-image {
      width: 100%;
      height: 220px;
      object-fit: cover;
      display: block;
      max-width: 100%; /* Ensure responsiveness */
      height: auto; /* Maintain aspect ratio */
      box-sizing: border-box;
    }

    .page-yy777-ph-m-home__game-info {
      padding: 20px;
      text-align: center;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .page-yy777-ph-m-home__game-title {
      font-size: 1.5em;
      color: #fdd835;
      margin-bottom: 10px;
      font-weight: bold;
    }

    .page-yy777-ph-m-home__game-provider {
      font-size: 0.9em;
      color: #999;
      margin-bottom: 15px;
    }

    /* Payment Methods */
    .page-yy777-ph-m-home__payment-methods-list {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 25px;
      margin-top: 40px;
    }

    .page-yy777-ph-m-home__payment-method-item {
      background-color: #2b2b40;
      border-radius: 10px;
      padding: 20px 30px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
      text-align: center;
      min-width: 150px;
      transition: transform 0.3s ease;
      border: 1px solid #444;
      color: #fff;
      font-size: 1.1em;
      font-weight: bold;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .page-yy777-ph-m-home__payment-method-item:hover {
      transform: translateY(-3px);
    }

    /* Why Choose Us */
    .page-yy777-ph-m-home__features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 30px;
      margin-top: 40px;
    }

    .page-yy777-ph-m-home__feature-card {
      background-color: #2b2b40;
      border-radius: 12px;
      padding: 30px;
      box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
      text-align: center;
      border: 1px solid #444;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }

    .page-yy777-ph-m-home__feature-icon {
      width: 400px; /* Min size 200x200 */
      height: 400px; /* Min size 200x200 */
      margin-bottom: 20px;
      object-fit: contain;
      max-width: 100%; /* Ensure responsiveness */
      height: auto; /* Maintain aspect ratio */
      box-sizing: border-box;
    }

    .page-yy777-ph-m-home__feature-title {
      font-size: 1.6em;
      color: #fdd835;
      margin-bottom: 15px;
      font-weight: bold;
    }

    .page-yy777-ph-m-home__feature-description {
      color: #ccc;
      font-size: 1em;
    }

    /* Call to Action Section */
    .page-yy777-ph-m-home__cta-section {
      background: linear-gradient(135deg, #1a1a2e, #0f0f1d);
      padding: 80px 20px;
      text-align: center;
      border-top: 5px solid #fdd835;
    }

    .page-yy777-ph-m-home__cta-title {
      font-size: 3em;
      color: #fdd835;
      margin-bottom: 25px;
      text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
      font-weight: bold;
    }

    .page-yy777-ph-m-home__cta-text {
      font-size: 1.3em;
      color: #eee;
      margin-bottom: 40px;
      max-width: 900px;
      margin-left: auto;
      margin-right: auto;
    }

    /* FAQ Section */
    .page-yy777-ph-m-home__faq-list {
      max-width: 900px;
      margin: 40px auto 0;
      text-align: left;
    }

    .page-yy777-ph-m-home__faq-item {
      background-color: #2b2b40;
      border-radius: 10px;
      margin-bottom: 15px;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      border: 1px solid #444;
      overflow: hidden; /* Important for max-height transition */
    }

    .page-yy777-ph-m-home__faq-question {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 25px;
      cursor: pointer;
      user-select: none;
      background-color: #3a3a5e; /* Slightly different background for question */
      color: #fdd835;
      font-weight: bold;
      font-size: 1.2em;
      transition: background-color 0.3s ease;
    }

    .page-yy777-ph-m-home__faq-question:hover {
      background-color: #4a4a6e;
    }

    .page-yy777-ph-m-home__faq-question h3 {
      margin: 0;
      color: inherit;
      pointer-events: none; /* Prevent h3 from blocking click */
      flex-grow: 1;
    }

    .page-yy777-ph-m-home__faq-toggle {
      font-size: 1.5em;
      margin-left: 15px;
      transition: transform 0.3s ease;
      pointer-events: none; /* Prevent toggle from blocking click */
    }

    .page-yy777-ph-m-home__faq-item.active .page-yy777-ph-m-home__faq-toggle {
      transform: rotate(45deg); /* Rotate '+' to 'x' or '-' */
    }

    .page-yy777-ph-m-home__faq-answer {
      max-height: 0;
      overflow: hidden;
      padding: 0 25px; /* Initial padding */
      opacity: 0;
      transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
      color: #ccc;
      font-size: 1.05em;
    }

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

    /* Responsive Design */
    @media (max-width: 1024px) {
      .page-yy777-ph-m-home__hero-title {
        font-size: 3em;
      }
      .page-yy777-ph-m-home__hero-subtitle {
        font-size: 1.3em;
      }
      .page-yy777-ph-m-home__section-title {
        font-size: 2em;
      }
      .page-yy777-ph-m-home__cta-title {
        font-size: 2.5em;
      }
      .page-yy777-ph-m-home__cta-text {
        font-size: 1.1em;
      }
    }

    @media (max-width: 768px) {
      .page-yy777-ph-m-home__container {
        padding: 15px;
      }

      .page-yy777-ph-m-home__hero-section {
        min-height: 450px;
        padding-bottom: 60px;
      }

      .page-yy777-ph-m-home__hero-title {
        font-size: 2.5em;
      }

      .page-yy777-ph-m-home__hero-subtitle {
        font-size: 1.1em;
      }

      .page-yy777-ph-m-home__hero-buttons {
        flex-direction: column;
        gap: 15px;
      }

      .page-yy777-ph-m-home__button {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 12px 25px;
      }

      .page-yy777-ph-m-home__floating-buttons {
        right: 10px;
        gap: 10px;
        top: auto;
        bottom: 20px; /* Move to bottom on mobile */
        transform: none;
        flex-direction: row; /* Row layout on mobile */
        width: calc(100% - 20px);
        justify-content: center;
      }
      .page-yy777-ph-m-home__floating-button {
        flex: 1;
        max-width: 150px;
        font-size: 0.9em;
        padding: 10px 15px;
      }

      .page-yy777-ph-m-home__section {
        padding: 40px 15px;
      }

      .page-yy777-ph-m-home__section-title {
        font-size: 1.8em;
      }

      .page-yy777-ph-m-home__section-description {
        font-size: 1em;
        margin-bottom: 30px;
      }

      .page-yy777-ph-m-home__promo-card,
      .page-yy777-ph-m-home__game-card,
      .page-yy777-ph-m-home__feature-card {
        padding: 20px;
      }

      .page-yy777-ph-m-home__promo-title,
      .page-yy777-ph-m-home__game-title {
        font-size: 1.4em;
      }

      .page-yy777-ph-m-home__feature-title {
        font-size: 1.4em;
      }

      .page-yy777-ph-m-home__payment-methods-list {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
      }

      .page-yy777-ph-m-home__payment-method-item {
        min-width: unset;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 15px 10px;
        font-size: 0.95em;
        margin-left: 0 !important;
        margin-right: 0 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
      }

      .page-yy777-ph-m-home__cta-section {
        padding: 60px 15px;
      }

      .page-yy777-ph-m-home__cta-title {
        font-size: 2em;
      }

      .page-yy777-ph-m-home__cta-text {
        font-size: 1em;
      }

      .page-yy777-ph-m-home__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
      }

      .page-yy777-ph-m-home__faq-answer {
        padding: 0 20px;
        font-size: 1em;
      }

      .page-yy777-ph-m-home__faq-item.active .page-yy777-ph-m-home__faq-answer {
        padding: 15px 20px !important;
      }

      /* Image responsiveness for mobile */
      .page-yy777-ph-m-home__promo-image,
      .page-yy777-ph-m-home__game-image,
      .page-yy777-ph-m-home__feature-icon {
          max-width: 100% !important;
          height: auto !important;
          box-sizing: border-box !important;
      }
    }

    @media (max-width: 480px) {
      .page-yy777-ph-m-home__hero-title {
        font-size: 2em;
      }
      .page-yy777-ph-m-home__hero-subtitle {
        font-size: 1em;
      }
      .page-yy777-ph-m-home__section-title {
        font-size: 1.5em;
      }
      .page-yy777-ph-m-home__cta-title {
        font-size: 1.8em;
      }
      .page-yy777-ph-m-home__floating-buttons {
        right: 5px;
        bottom: 10px;
        width: calc(100% - 10px);
      }
      .page-yy777-ph-m-home__floating-button {
        padding: 8px 10px;
        font-size: 0.8em;
      }
    }
  