
    /* General Styles */
    :root {
      --page-ph777__primary-color: #ffcc00; /* Gold/Yellow */
      --page-ph777__secondary-color: #333333; /* Dark Grey */
      --page-ph777__accent-color: #e74c3c; /* Red for alerts/buttons */
      --page-ph777__text-light: #ffffff;
      --page-ph777__text-dark: #2c3e50;
      --page-ph777__bg-dark: #1a1a1a;
      --page-ph777__bg-medium: #2a2a2a;
      --page-ph777__bg-light: #3a3a3a;
      --page-ph777__border-color: #444444;
    }

    .page-ph777 {
      font-family: 'Arial', sans-serif;
      color: var(--page-ph777__text-light);
      background-color: var(--page-ph777__bg-dark);
      line-height: 1.6;
      padding-top: 120px; /* Space for fixed header */
    }

    .page-ph777__container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 20px;
    }

    .page-ph777__section {
      padding: 60px 0;
      text-align: center;
    }

    .page-ph777__section:nth-of-type(even) {
      background-color: var(--page-ph777__bg-medium);
    }

    .page-ph777__heading-primary {
      font-size: 2.8em;
      color: var(--page-ph777__primary-color);
      margin-bottom: 20px;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .page-ph777__heading-secondary {
      font-size: 2em;
      color: var(--page-ph777__text-light);
      margin-bottom: 30px;
      position: relative;
      padding-bottom: 10px;
    }

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

    .page-ph777__heading-tertiary {
      font-size: 1.5em;
      color: var(--page-ph777__primary-color);
      margin-bottom: 15px;
    }

    .page-ph777__paragraph {
      font-size: 1.1em;
      margin-bottom: 20px;
      color: var(--page-ph777__text-light);
    }

    .page-ph777__button {
      display: inline-block;
      background-color: var(--page-ph777__primary-color);
      color: var(--page-ph777__text-dark);
      padding: 15px 30px;
      border-radius: 8px;
      text-decoration: none;
      font-weight: bold;
      font-size: 1.1em;
      transition: background-color 0.3s ease, transform 0.3s ease;
      border: none;
      cursor: pointer;
    }

    .page-ph777__button:hover {
      background-color: #ffd700;
      transform: translateY(-3px);
    }

    /* Hero Section */
    .page-ph777__hero-section {
      position: relative;
      overflow: hidden;
      background-color: var(--page-ph777__bg-dark);
      padding: 0; /* No padding here, content will handle spacing */
    }

    .page-ph777__hero-image-wrapper {
      width: 100%;
      max-width: 100%;
      overflow: hidden;
      box-sizing: border-box;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 20px; /* Space between image and text */
    }

    .page-ph777__hero-image {
      display: block;
      width: 100%;
      height: auto;
      object-fit: contain; /* Ensure original ratio is maintained */
      max-width: 100%;
    }

    .page-ph777__hero-content {
      padding: 20px;
      text-align: center;
      background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background for text clarity */
      border-radius: 10px;
      max-width: 90%;
      margin: 0 auto 40px auto; /* Centered, with space at bottom */
    }

    .page-ph777__hero-title {
      font-size: 3.5em;
      color: var(--page-ph777__primary-color);
      margin-bottom: 15px;
      line-height: 1.2;
    }

    .page-ph777__hero-subtitle {
      font-size: 1.5em;
      color: var(--page-ph777__text-light);
      margin-bottom: 30px;
    }

    /* Floating Login Button */
    .page-ph777__floating-login {
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 1000;
      animation: page-ph777__pulse 2s infinite;
    }

    .page-ph777__floating-login .page-ph777__button {
      background-color: var(--page-ph777__accent-color);
      color: var(--page-ph777__text-light);
      padding: 18px 35px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
      border-radius: 50px;
      white-space: nowrap;
    }

    .page-ph777__floating-login .page-ph777__button:hover {
      background-color: #c0392b;
      transform: scale(1.05) translateY(-3px);
    }

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

    /* Game Categories */
    .page-ph777__game-categories {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 25px;
      margin-top: 40px;
    }

    .page-ph777__game-card {
      background-color: var(--page-ph777__bg-light);
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      text-align: center;
      display: flex;
      flex-direction: column;
    }

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

    .page-ph777__game-card-image-wrapper {
      width: 100%;
      max-width: 100%;
      overflow: hidden;
      box-sizing: border-box;
      height: 200px; /* Fixed height for consistency */
    }

    .page-ph777__game-card-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

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

    .page-ph777__game-card-title {
      font-size: 1.4em;
      color: var(--page-ph777__primary-color);
      margin-bottom: 15px;
      text-decoration: none;
      display: block;
    }
    
    .page-ph777__game-card-title a {
        color: var(--page-ph777__primary-color);
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .page-ph777__game-card-title a:hover {
        color: #ffd700;
    }

    .page-ph777__game-card-description {
      font-size: 0.95em;
      color: var(--page-ph777__text-light);
      margin-bottom: 20px;
      flex-grow: 1;
    }

    /* App Download Section */
    .page-ph777__app-download-content {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 30px;
      margin-top: 40px;
    }

    .page-ph777__app-image-wrapper {
      width: 100%;
      max-width: 400px; /* Limit image size for desktop */
      overflow: hidden;
      box-sizing: border-box;
      border-radius: 15px;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }

    .page-ph777__app-image {
      width: 100%;
      height: auto;
      display: block;
    }

    .page-ph777__app-buttons {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .page-ph777__app-button {
      background-color: var(--page-ph777__bg-light);
      border: 2px solid var(--page-ph777__primary-color);
      color: var(--page-ph777__primary-color);
      padding: 15px 25px;
      border-radius: 8px;
      font-size: 1.1em;
      text-decoration: none;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      transition: background-color 0.3s ease, color 0.3s ease;
    }

    .page-ph777__app-button:hover {
      background-color: var(--page-ph777__primary-color);
      color: var(--page-ph777__text-dark);
    }

    /* Game Providers */
    .page-ph777__provider-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 20px;
      margin-top: 40px;
      justify-items: center;
    }

    .page-ph777__provider-item {
      background-color: var(--page-ph777__bg-light);
      border-radius: 8px;
      padding: 15px;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100px; /* Fixed height for provider logos */
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
      transition: transform 0.2s ease;
      width: 100%;
      max-width: 200px; /* Max width for individual provider logo */
      box-sizing: border-box;
    }

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

    .page-ph777__provider-logo-wrapper {
      width: 100%;
      max-width: 100%;
      overflow: hidden;
      box-sizing: border-box;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100%;
    }

    .page-ph777__provider-logo {
      max-width: 90%;
      max-height: 90%;
      width: auto;
      height: auto;
      object-fit: contain;
      display: block;
    }

    /* FAQ Section */
    .page-ph777__faq-list {
      margin-top: 40px;
      text-align: left;
    }

    .page-ph777__faq-item {
      background-color: var(--page-ph777__bg-light);
      border-radius: 8px;
      margin-bottom: 15px;
      overflow: hidden;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .page-ph777__faq-question {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 25px;
      cursor: pointer;
      user-select: none;
      background-color: var(--page-ph777__bg-medium);
      border-bottom: 1px solid var(--page-ph777__border-color);
    }

    .page-ph777__faq-question:hover {
      background-color: #383838;
    }

    .page-ph777__faq-question h3 {
      margin: 0;
      color: var(--page-ph777__primary-color);
      font-size: 1.2em;
      pointer-events: none; /* Prevent h3 text from blocking click event */
    }

    .page-ph777__faq-toggle {
      font-size: 1.8em;
      font-weight: bold;
      color: var(--page-ph777__primary-color);
      transition: transform 0.3s ease;
      pointer-events: none; /* Prevent toggle icon from blocking click event */
    }

    .page-ph777__faq-item.active .page-ph777__faq-toggle {
      transform: rotate(45deg); /* Changes '+' to 'x' visually */
    }

    .page-ph777__faq-answer {
      max-height: 0;
      overflow: hidden;
      padding: 0 25px;
      transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
      color: var(--page-ph777__text-light);
      opacity: 0;
    }

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

    /* Responsive Adjustments */
    @media (max-width: 768px) {
      .page-ph777 {
        padding-top: 100px; /* Adjust for mobile fixed header */
      }

      .page-ph777__container {
        padding: 15px;
      }

      .page-ph777__section {
        padding: 40px 0;
      }

      .page-ph777__hero-title {
        font-size: 2.5em;
      }

      .page-ph777__hero-subtitle {
        font-size: 1.2em;
      }

      .page-ph777__heading-primary {
        font-size: 2.2em;
      }

      .page-ph777__heading-secondary {
        font-size: 1.7em;
      }

      .page-ph777__paragraph {
        font-size: 1em;
      }

      .page-ph777__button {
        padding: 12px 25px;
        font-size: 1em;
      }

      .page-ph777__floating-login {
        bottom: 15px;
        right: 15px;
      }

      .page-ph777__floating-login .page-ph777__button {
        padding: 15px 25px;
        font-size: 0.95em;
      }

      .page-ph777__game-categories {
        grid-template-columns: 1fr;
      }

      .page-ph777__game-card-image-wrapper {
        height: 180px;
      }

      .page-ph777__app-download-content {
        flex-direction: column;
        gap: 20px;
      }
      
      .page-ph777__app-image-wrapper {
          max-width: 100%;
          width: 100%;
      }

      .page-ph777__app-buttons {
        width: 100%;
      }

      .page-ph777__app-button {
        font-size: 1em;
        padding: 12px 20px;
      }

      .page-ph777__provider-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      }

      .page-ph777__provider-item {
        height: 80px;
        padding: 10px;
      }

      .page-ph777__faq-question {
        padding: 15px 20px;
      }

      .page-ph777__faq-question h3 {
        font-size: 1.1em;
      }

      .page-ph777__faq-answer {
        padding: 0 20px;
      }

      .page-ph777__faq-item.active .page-ph777__faq-answer {
        padding: 15px 20px !important;
      }

      /* Image responsive optimization with !important */
      .page-ph777__hero-image,
      .page-ph777__game-card-image,
      .page-ph777__app-image,
      .page-ph777__provider-logo {
        max-width: 100% !important;
        height: auto !important;
      }

      .page-ph777__hero-image-wrapper,
      .page-ph777__game-card-image-wrapper,
      .page-ph777__app-image-wrapper,
      .page-ph777__provider-logo-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
      }
    }
  