.page-index-new88-popular-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f8f8;
}

.page-index-new88-popular-games__hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #003366, #FFCC00);
  padding: 60px 20px;
  color: #fff;
  text-align: center;
  gap: 30px;
}

.page-index-new88-popular-games__hero-content {
  max-width: 600px;
  flex: 1 1 50%;
}

.page-index-new88-popular-games__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #fff;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-index-new88-popular-games__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-index-new88-popular-games__hero-image-wrapper {
  flex: 1 1 40%;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index-new88-popular-games__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

.page-index-new88-popular-games__section-title {
  font-size: 2em;
  color: #003366;
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 10px;
  position: relative;
}

.page-index-new88-popular-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFCC00;
  border-radius: 2px;
}

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

.page-index-new88-popular-games__feature-card {
  text-align: center;
  padding: 25px;
  border-radius: 8px;
  background-color: #f0f8ff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-new88-popular-games__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.page-index-new88-popular-games__feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.page-index-new88-popular-games__feature-card h3 {
  font-size: 1.4em;
  color: #003366;
  margin-bottom: 10px;
}

.page-index-new88-popular-games__feature-card p {
  font-size: 0.95em;
  color: #555;
}

.page-index-new88-popular-games__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-index-new88-popular-games__game-card {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index-new88-popular-games__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-index-new88-popular-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.page-index-new88-popular-games__game-card h3 {
  font-size: 1.5em;
  color: #003366;
  margin: 20px 20px 10px;
}

.page-index-new88-popular-games__game-card p {
  font-size: 1em;
  color: #666;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-index-new88-popular-games__game-button {
  display: inline-block;
  background-color: #FFCC00;
  color: #003366;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
}

.page-index-new88-popular-games__game-button:hover {
  background-color: #e6b800;
  color: #002244;
}

.page-index-new88-popular-games__guide-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 40px;
  background-color: #003366;
  color: #fff;
}

.page-index-new88-popular-games__guide-content {
  flex: 1 1 55%;
  min-width: 300px;
}

.page-index-new88-popular-games__guide-cta .page-index-new88-popular-games__section-title {
  color: #FFCC00;
  text-align: left;
  margin-bottom: 20px;
}

.page-index-new88-popular-games__guide-cta .page-index-new88-popular-games__section-title::after {
  background-color: #fff;
  left: 0;
  transform: translateX(0);
}

.page-index-new88-popular-games__guide-cta p {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.page-index-new88-popular-games__guide-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.page-index-new88-popular-games__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-index-new88-popular-games__cta-button--primary {
  background-color: #FFCC00;
  color: #003366;
}

.page-index-new88-popular-games__cta-button--primary:hover {
  background-color: #e6b800;
  transform: translateY(-2px);
}

.page-index-new88-popular-games__cta-button--secondary {
  background-color: #fff;
  color: #003366;
  border: 2px solid #FFCC00;
}

.page-index-new88-popular-games__cta-button--secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-index-new88-popular-games__cta-button--small {
  padding: 10px 20px;
  font-size: 1em;
}

.page-index-new88-popular-games__guide-image-wrapper {
  flex: 1 1 35%;
  min-width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index-new88-popular-games__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-index-new88-popular-games__responsible-gambling {
  text-align: center;
  padding: 40px 20px;
}

.page-index-new88-popular-games__responsible-gambling p {
  max-width: 800px;
  margin: 0 auto 20px;
  color: #555;
}

.page-index-new88-popular-games__responsible-list {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 20px auto 30px;
  text-align: left;
}

.page-index-new88-popular-games__responsible-list li {
  background-color: #f9f9f9;
  border-left: 5px solid #003366;
  margin-bottom: 10px;
  padding: 12px 15px;
  border-radius: 4px;
  font-size: 1em;
  color: #444;
}

/* Floating Promotion Button */
.page-index-new88-popular-games__floating-promo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.page-index-new88-popular-games__floating-promo-link {
  background-color: #FFCC00;
  color: #003366;
  padding: 12px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-index-new88-popular-games__floating-promo-link:hover {
  transform: translateY(-3px);
  background-color: #e6b800;
}

.page-index-new88-popular-games__floating-promo-icon {
  width: 30px;
  height: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-index-new88-popular-games__hero-title {
    font-size: 2em;
  }
  .page-index-new88-popular-games__hero-description {
    font-size: 1em;
  }
  .page-index-new88-popular-games__hero-content, .page-index-new88-popular-games__hero-image-wrapper {
    flex: 1 1 100%;
  }
  .page-index-new88-popular-games__hero {
    padding: 40px 15px;
  }
  .page-index-new88-popular-games__section {
    margin: 30px auto;
    padding: 15px;
  }
  .page-index-new88-popular-games__section-title {
    font-size: 1.8em;
  }
  .page-index-new88-popular-games__why-new88-grid, .page-index-new88-popular-games__game-grid {
    grid-template-columns: 1fr;
  }
  .page-index-new88-popular-games__guide-cta {
    flex-direction: column;
    padding: 30px 20px;
  }
  .page-index-new88-popular-games__guide-cta .page-index-new88-popular-games__section-title {
    text-align: center;
  }
  .page-index-new88-popular-games__guide-cta .page-index-new88-popular-games__section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .page-index-new88-popular-games__guide-buttons {
    flex-direction: column;
    align-items: center;
  }
  .page-index-new88-popular-games__floating-promo {
    bottom: 15px;
    right: 15px;
  }
  .page-index-new88-popular-games__floating-promo-link {
    padding: 10px 15px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-index-new88-popular-games__hero-title {
    font-size: 1.8em;
  }
  .page-index-new88-popular-games__section-title {
    font-size: 1.5em;
  }
  .page-index-new88-popular-games__cta-button {
    width: 100%;
    text-align: center;
  }
}