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

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

.page-index-section-title {
  font-size: 2.5em;
  color: #007bff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
  padding-bottom: 15px;
}

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

.page-index-sub-heading {
  font-size: 1.8em;
  color: #0056b3; /* Darker blue for better contrast */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index-lead-paragraph, .page-index-conclusion-paragraph {
  font-size: 1.15em;
  text-align: center;
  margin-bottom: 30px;
  color: #495057;
}

.page-index-hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #007bff, #0056b3);
}

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

.page-index-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.page-index-hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-index-hero-title {
  font-size: 4em;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-index-hero-subtitle {
  font-size: 1.5em;
  margin-bottom: 40px;
  font-weight: 300;
}

.page-index-hero-cta-buttons .page-index-btn {
  margin: 10px;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index-btn-primary {
  background-color: #ffc107;
  color: #000; /* Ensuring high contrast */
  border: 2px solid #ffc107;
}

.page-index-btn-primary:hover {
  background-color: #e0a800;
  border-color: #e0a800;
  transform: translateY(-3px);
}

.page-index-btn-secondary {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.page-index-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #ffc107;
  transform: translateY(-3px);
}

.page-index-btn-download {
  background-color: #28a745; /* Green for download */
  color: #fff;
  border: 2px solid #28a745;
}

.page-index-btn-download:hover {
  background-color: #218838;
  border-color: #218838;
  transform: translateY(-3px);
}

.page-index-features {
  padding: 80px 0;
  background-color: #fff;
}

.page-index-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-index-feature-item {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index-feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.page-index-feature-heading {
  font-size: 1.5em;
  color: #007bff;
  margin-bottom: 10px;
}

.page-index-feature-description {
  color: #555;
}

.page-index-about-gamebai {
  padding: 80px 0;
  background-color: #f1f7fe;
}

.page-index-about-gamebai p {
  margin-bottom: 1em;
  color: #343a40;
  text-align: justify;
}

.page-index-about-gamebai .page-index-image-full-width {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-index-bullet-list, .page-index-ordered-list {
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 0;
}

.page-index-bullet-list li, .page-index-ordered-list li {
  margin-bottom: 8px;
  color: #343a40;
}

.page-index-bullet-list li strong {
  color: #007bff;
}

.page-index-ordered-list li strong {
  color: #007bff;
}

.page-index-text-link {
  color: #007bff;
  text-decoration: underline;
  font-weight: bold;
}

.page-index-text-link:hover {
  color: #0056b3;
}

.page-index-detail-pages {
  padding: 80px 0;
  background-color: #fff;
}

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

.page-index-detail-item {
  background-color: #f8f9fa;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index-detail-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index-detail-title {
  font-size: 1.6em;
  color: #007bff;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index-detail-title a {
  color: #007bff;
  text-decoration: none;
}

.page-index-detail-title a:hover {
  text-decoration: underline;
  color: #0056b3;
}

.page-index-detail-description {
  color: #555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index-btn-outline {
  display: inline-block;
  padding: 10px 25px;
  border: 2px solid #007bff;
  color: #007bff;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-weight: bold;
  text-align: center;
}

.page-index-btn-outline:hover {
  background-color: #007bff;
  color: #fff;
}

.page-index-floating-ad {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #ffc107;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  animation: page-index-fadeInUp 0.5s ease-out;
  transform: translateX(120%); /* Start off-screen */
  transition: transform 0.5s ease-out;
}

.page-index-floating-ad.active {
  transform: translateX(0); /* Slide in */
}

.page-index-floating-ad a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
}

.page-index-floating-ad-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  margin-right: 10px;
  object-fit: cover;
}

.page-index-floating-ad-text {
  font-weight: bold;
  font-size: 1.1em;
  color: #333;
}

.page-index-floating-ad-close {
  background: none;
  border: none;
  font-size: 1.5em;
  color: #333;
  cursor: pointer;
  margin-left: 10px;
  padding: 0 5px;
}

.page-index-floating-ad-close:hover {
  color: #000;
}

.highlight {
  color: #ffc107;
}

.highlight-text {
  color: #007bff;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-index-hero-title {
    font-size: 3em;
  }
  .page-index-hero-subtitle {
    font-size: 1.2em;
  }
  .page-index-section-title {
    font-size: 2em;
  }
  .page-index-detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index-hero {
    height: 500px;
  }
  .page-index-hero-title {
    font-size: 2.5em;
  }
  .page-index-hero-subtitle {
    font-size: 1em;
  }
  .page-index-hero-cta-buttons .page-index-btn {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-index-floating-ad {
    bottom: 15px;
    right: 15px;
    padding: 8px 12px;
  }
  .page-index-floating-ad-img {
    width: 40px;
    height: 40px;
  }
  .page-index-floating-ad-text {
    font-size: 1em;
  }
  .page-index-floating-ad-close {
    font-size: 1.3em;
  }
}

@media (max-width: 576px) {
  .page-index-hero {
    height: 400px;
  }
  .page-index-hero-title {
    font-size: 2em;
  }
  .page-index-hero-subtitle {
    font-size: 0.9em;
  }
  .page-index-hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-index-hero-cta-buttons .page-index-btn {
    width: 80%;
    max-width: 250px;
  }
  .page-index-section-title {
    font-size: 1.8em;
  }
  .page-index-sub-heading {
    font-size: 1.5em;
  }
  .page-index-lead-paragraph, .page-index-conclusion-paragraph {
    font-size: 1em;
  }
  .page-index-detail-grid {
    grid-template-columns: 1fr;
  }
  .page-index-floating-ad {
    width: calc(100% - 30px);
    right: 15px;
    left: 15px;
    bottom: 10px;
    justify-content: space-between;
  }
  .page-index-floating-ad-text {
    flex-grow: 1;
    text-align: center;
  }
  .page-index-floating-ad-img {
    display: none;
  }
  .page-index-floating-ad-close {
    order: 1;
    margin-left: 0;
  }
}

/* Keyframe for floating ad animation */
@keyframes page-index-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page-index-slideInFromRight {
  from {
    transform: translateX(120%);
  }
  to {
    transform: translateX(0);
  }
}