/* style/index.css */
.page-index {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f8f9fa; /* Light grey background for the page */
}

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

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

.page-index__section:nth-of-type(odd) {
  background-color: #ffffff;
}

.page-index__section-title {
  font-size: 2.8em;
  color: #0056b3; /* Darker shade of primary for titles */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__section-description {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-index__hero-section {
  background: linear-gradient(135deg, #007BFF 0%, #0056b3 100%); /* Primary blue gradient */
  color: #ffffff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-index__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Overlay for readability */
  z-index: 1;
}

.page-index__hero-section .page-index__container {
  position: relative;
  z-index: 2;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #FFD700; /* Gold for main title */
}

.page-index__hero-subtitle {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

.page-index__hero-actions .page-index__btn {
  margin: 0 15px;
  font-size: 1.1em;
  padding: 15px 30px;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__btn--primary {
  background-color: #FFD700; /* Gold */
  color: #0056b3; /* Darker blue for text */
  border: 2px solid #FFD700;
}

.page-index__btn--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
}

.page-index__btn--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold */
  border: 2px solid #FFD700;
}

.page-index__btn--secondary:hover {
  background-color: #FFD700;
  color: #0056b3;
  transform: translateY(-3px);
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.6;
}

/* General Buttons */
.page-index__btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1em;
  text-decoration: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
}

.page-index__btn--small {
  padding: 8px 15px;
  font-size: 0.9em;
  border-radius: 5px;
  background-color: #007BFF; /* Primary blue */
  color: #ffffff;
  border: none;
  transition: background-color 0.3s ease;
}

.page-index__btn--small:hover {
  background-color: #0056b3;
}

/* Grid Layouts */
.page-index__grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-index__grid-two-cols--reversed {
  grid-template-columns: 1fr 1fr;
}

.page-index__grid-two-cols .page-index__text-content h3 {
  font-size: 1.8em;
  color: #007BFF;
  margin-bottom: 15px;
}

.page-index__grid-two-cols .page-index__text-content p {
  margin-bottom: 15px;
  color: #444;
}

.page-index__grid-two-cols .page-index__image-full {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* About UK88 Section */
.page-index__about-uk88 .page-index__text-content {
  padding-right: 20px;
}

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

.page-index__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index__game-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__game-title {
  font-size: 1.5em;
  color: #007BFF;
  margin-bottom: 10px;
}

.page-index__game-description {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Promotions Section */
.page-index__promotions {
  background-color: #f0f7ff; /* Lighter blue background */
}

.page-index__promo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.page-index__promo-list li {
  background-color: #ffffff;
  border-left: 5px solid #FFD700; /* Gold accent */
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.05em;
  color: #333;
}

.page-index__promo-list li strong {
  color: #007BFF;
}

/* App Download Section */
.page-index__app-download {
  background-color: #ffffff;
}

.page-index__app-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.page-index__app-features li {
  font-size: 1.05em;
  color: #444;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-index__app-features li::before {
  content: '✔';
  color: #FFD700; /* Gold checkmark */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-index__app-qr-codes img {
  max-width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Safety and Responsibility Section */
.page-index__safety-responsibility {
  background-color: #f0f7ff;
}

.page-index__safety-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.page-index__safety-list li {
  font-size: 1.05em;
  color: #444;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-index__safety-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
}

/* FAQ Section */
.page-index__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-index__faq-question {
  font-size: 1.4em;
  color: #007BFF;
  margin-top: 0;
  margin-bottom: 10px;
  cursor: pointer; /* Indicate clickability */
}

.page-index__faq-answer {
  font-size: 1em;
  color: #555;
  display: none; /* Hidden by default */
}

/* Detail Pages Section */
.page-index__detail-pages {
  background-color: #f8f9fa;
}

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

.page-index__detail-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__detail-title {
  font-size: 1.4em;
  color: #007BFF;
  margin-bottom: 10px;
}

.page-index__detail-title a {
  color: #007BFF;
  text-decoration: none;
}

.page-index__detail-title a:hover {
  text-decoration: underline;
}

.page-index__detail-description {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__hero-subtitle {
    font-size: 1.2em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__grid-two-cols {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .page-index__grid-two-cols--reversed {
    grid-template-columns: 1fr;
  }
  .page-index__about-uk88 .page-index__text-content,
  .page-index__promotions .page-index__text-content,
  .page-index__app-download .page-index__text-content,
  .page-index__safety-responsibility .page-index__text-content {
    padding-right: 0;
  }
  .page-index__grid-two-cols .page-index__image-full {
    margin-bottom: 30px;
  }
  .page-index__grid-two-cols--reversed .page-index__image-content {
    order: -1;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 80px 0;
  }
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-subtitle {
    font-size: 1em;
  }
  .page-index__hero-actions .page-index__btn {
    margin: 10px 0;
    display: block;
    width: 80%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  .page-index__section {
    padding: 40px 0;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__game-grid, .page-index__detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__game-card, .page-index__detail-card {
    padding: 15px;
  }
  .page-index__faq-item {
    padding: 15px;
  }
  .page-index__faq-question {
    font-size: 1.2em;
  }
}