/* style/index.css */
.page-index {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333333; /* Dark text for light background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Ensure consistency with body background */
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__section-subtitle {
  font-size: 1.2em;
  text-align: center;
  color: #555555;
  margin-bottom: 40px;
}

.page-index__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.page-index__button--primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-index__button--primary:hover {
  background-color: #1a7ea9;
  border-color: #1a7ea9;
}

.page-index__button--secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-index__button--secondary:hover {
  background-color: #e0f4ff;
  color: #1a7ea9;
  border-color: #1a7ea9;
}

.page-index__button--outline {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-index__button--outline:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-index__button--text {
  background-color: transparent;
  color: #26A9E0;
  border: none;
  padding: 0;
  text-decoration: underline;
}

.page-index__button--text:hover {
  color: #1a7ea9;
}

.page-index__button--large {
  padding: 15px 35px;
  font-size: 1.2em;
}

/* Login button color */
.page-index__button--login {
  background-color: #EA7C07;
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-index__button--login:hover {
  background-color: #c96806;
  border-color: #c96806;
}

/* Hero Section */
.page-index__hero-section {
  background: linear-gradient(135deg, #26A9E0, #a8e0f7);
  padding: 100px 0;
  color: #FFFFFF;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  position: relative;
  overflow: hidden;
}

.page-index__hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('[GALLERY:bg:abstract_pattern,geometric,light_blue,subtle]') no-repeat center center/cover; /* Background pattern for hero */
  opacity: 0.1;
  z-index: 0;
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-index__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-index__hero-image-wrapper {
  display: none; /* Hidden by default, only for larger screens or specific designs */
}

/* About Section */
.page-index__about-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.page-index__about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-index__about-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 300px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
  object-fit: cover;
}

.page-index__about-text p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #444444;
}

/* Games Section */
.page-index__games-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-index__game-card {
  background-color: #f0f8ff;
  border-radius: 10px;
  box-shadow: 0 4px 10px 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(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-index__game-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 280px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-index__game-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-index__game-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Allows description to take available space */
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #f0f8ff;
}

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

.page-index__promo-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-index__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  min-width: 300px; /* Ensure minimum size */
  min-height: 250px; /* Ensure minimum size */
}

.page-index__promo-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin: 20px 15px 10px;
  font-weight: bold;
}

.page-index__promo-description {
  font-size: 1em;
  color: #555555;
  margin: 0 15px 20px;
}

.page-index__promo-card .page-index__button {
  margin-bottom: 20px;
}

.page-index__view-all-promos {
  text-align: center;
}

/* Why Choose Us Section */
.page-index__why-choose-us-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-index__feature-item {
  text-align: center;
  padding: 25px;
  background-color: #f0f8ff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-index__feature-icon {
  width: 100%;
  max-width: 250px; /* Ensure it doesn't get too large */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px;
  min-height: 200px;
}

.page-index__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-index__feature-description {
  font-size: 1em;
  color: #555555;
}

/* Responsible Gaming Section */
.page-index__responsible-gaming-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.page-index__responsible-gaming-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-index__responsible-gaming-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 300px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
  object-fit: cover;
}

.page-index__responsible-gaming-text p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #444444;
}

/* CTA Section */
.page-index__cta-section {
  background: #26A9E0;
  padding: 80px 0;
  text-align: center;
  color: #FFFFFF;
}

.page-index__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFFFF;
  font-weight: bold;
}

.page-index__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-index__faq-item {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.page-index__faq-question {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-index__faq-answer {
  font-size: 1.1em;
  color: #555555;
}

/* Detail Pages Section */
.page-index__detail-pages-section {
  padding: 80px 0;
  background-color: #f0f8ff;
}

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

.page-index__detail-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-index__detail-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__detail-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-index__detail-title a:hover {
  text-decoration: underline;
  color: #1a7ea9;
}

.page-index__detail-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

/* Animation styles for JS */
.page-index--hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.page-index--fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .page-index__hero-section {
    text-align: left;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 100px 0;
  }

  .page-index__hero-content {
    max-width: 50%;
    margin: 0;
    padding-right: 40px;
  }

  .page-index__hero-image-wrapper {
    display: block;
    max-width: 45%;
    position: relative;
    z-index: 1;
  }

  .page-index__hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    min-width: 400px; /* Ensure minimum size */
    min-height: 300px; /* Ensure minimum size */
  }

  .page-index__hero-buttons {
    justify-content: flex-start;
  }

  .page-index__about-content,
  .page-index__responsible-gaming-content {
    flex-direction: row;
    text-align: left;
  }

  .page-index__about-image,
  .page-index__responsible-gaming-image {
    max-width: 45%;
    margin-right: 40px;
  }

  .page-index__about-text,
  .page-index__responsible-gaming-text {
    max-width: 50%;
  }

  .page-index__game-grid,
  .page-index__promotions-grid,
  .page-index__features-grid,
  .page-index__detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-index__game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-index__promotions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-index__features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}