.page-index {
  color: #333333; /* Default text color for light body background */
}

.page-index__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh; /* Minimum height for hero section */
  background-color: #003366; /* Dark blue background for hero content */
  color: #ffffff;
  overflow: hidden;
}

.page-index__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Slightly dim the background image */
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
}

.page-index__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFCC00; /* Gold for emphasis */
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.page-index__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__button--primary {
  background-color: #FFCC00;
  color: #003366;
  border: 2px solid #FFCC00;
}

.page-index__button--primary:hover {
  background-color: #e6b800;
  color: #002244;
  transform: translateY(-2px);
}

.page-index__button--secondary {
  background-color: transparent;
  color: #FFCC00;
  border: 2px solid #FFCC00;
}

.page-index__button--secondary:hover {
  background-color: #FFCC00;
  color: #003366;
  transform: translateY(-2px);
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #003366;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-index__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__section-text {
  font-size: 1.1em;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-index__about-section, .page-index__games-section, .page-index__promotions-section, .page-index__mobile-section, .page-index__why-choose-section, .page-index__responsible-gaming-section, .page-index__faq-section, .page-index__contact-cta-section {
  padding: 60px 0;
}

.page-index__about-section {
  background-color: #f9f9f9;
}

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

.page-index__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 500px; /* Ensure cards are not too small */
}

.page-index__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.page-index__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__card-title {
  font-size: 1.6em;
  color: #003366;
  margin-bottom: 15px;
  flex-grow: 0;
}

.page-index__card-description {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
  flex-grow: 1;
}

.page-index__games-section {
  background-color: #ffffff;
}

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

.page-index__game-card {
  background-color: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-index__game-image {
  width: 100%;
  height: 220px; /* Fixed height for game images */
  object-fit: cover;
}

.page-index__game-title {
  font-size: 1.4em;
  color: #003366;
  padding: 15px 20px 0;
}

.page-index__game-title a {
  color: inherit;
  text-decoration: none;
}

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

.page-index__game-description {
  font-size: 0.95em;
  color: #666666;
  padding: 10px 20px;
  line-height: 1.5;
  flex-grow: 1;
}

.page-index__game-card .page-index__button {
  margin: 0 20px 20px;
  text-align: center;
}

.page-index__promotions-section {
  background-color: #eef4f8;
}

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

.page-index__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-index__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for promo images */
  object-fit: cover;
}

.page-index__promo-title {
  font-size: 1.5em;
  color: #003366;
  padding: 20px 20px 0;
}

.page-index__promo-description {
  font-size: 1em;
  color: #666666;
  padding: 10px 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.page-index__promo-card .page-index__button {
  margin: 0 20px 20px;
  text-align: center;
}

.page-index__text-center {
  text-align: center;
  margin-top: 40px;
}

.page-index__mobile-section {
  background-color: #ffffff;
}

.page-index__mobile-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.page-index__mobile-text {
  flex: 1;
  text-align: left;
}

.page-index__mobile-text p {
  font-size: 1.1em;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 20px;
}

.page-index__mobile-footnote {
  font-size: 0.9em;
  color: #888888;
  margin-top: 15px;
}

.page-index__mobile-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-index__mobile-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index__why-choose-section {
  background-color: #f9f9f9;
}

.page-index__why-choose-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-index__why-choose-item {
  background-color: #ffffff;
  border-left: 5px solid #003366;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__why-choose-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-index__list-title {
  font-size: 1.4em;
  color: #003366;
  margin-bottom: 10px;
}

.page-index__why-choose-item p {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
  text-align: left;
}

.page-index__responsible-gaming-section {
  background-color: #eef4f8;
}

.page-index__responsible-gaming-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.page-index__responsible-gaming-content p {
  flex: 1;
  font-size: 1.1em;
  line-height: 1.7;
  color: #555555;
  text-align: left;
}

.page-index__responsible-gaming-content p a {
  color: #003366;
  text-decoration: underline;
}

.page-index__responsible-gaming-content p a:hover {
  color: #FFCC00;
}

.page-index__responsible-gaming-image {
  flex: 1;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-index__faq-section {
  background-color: #ffffff;
}

.page-index__faq-list {
  margin-top: 40px;
}

.page-index__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.page-index__faq-question {
  font-size: 1.3em;
  color: #003366;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-index__faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2em;
  color: #FFCC00;
  transition: transform 0.3s ease;
}

.page-index__faq-question.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-index__faq-answer {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
  display: none;
  padding-top: 10px;
}

.page-index__faq-answer.active {
  display: block;
}

.page-index__faq-answer a {
  color: #003366;
  text-decoration: underline;
}

.page-index__faq-answer a:hover {
  color: #FFCC00;
}

.page-index__contact-cta-section {
  background-color: #003366;
  color: #ffffff;
  text-align: center;
  padding: 80px 0;
}

.page-index__contact-cta-section .page-index__section-title {
  color: #FFCC00;
}

.page-index__contact-cta-section .page-index__section-title::after {
  background-color: #FFCC00;
}

.page-index__contact-cta-section .page-index__section-text {
  color: #f0f0f0;
  margin-bottom: 50px;
}

@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }

  .page-index__hero-description {
    font-size: 1.2em;
  }

  .page-index__section-title {
    font-size: 2.2em;
  }

  .page-index__section-text {
    font-size: 1em;
  }

  .page-index__mobile-content, .page-index__responsible-gaming-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-index__mobile-text, .page-index__responsible-gaming-content p {
    text-align: center;
  }

  .page-index__mobile-image-wrapper, .page-index__responsible-gaming-image {
    order: -1; /* Image appears above text on mobile */
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 60vh;
    padding: 40px 15px;
  }

  .page-index__hero-title {
    font-size: 2.2em;
  }

  .page-index__hero-description {
    font-size: 1em;
  }

  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-index__container {
    padding: 30px 15px;
  }

  .page-index__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-index__section-text {
    margin-bottom: 30px;
  }

  .page-index__cards-grid, .page-index__games-grid, .page-index__promos-grid, .page-index__why-choose-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__card-image, .page-index__game-image, .page-index__promo-image {
    height: 180px;
  }

  .page-index__card, .page-index__game-card, .page-index__promo-card, .page-index__why-choose-item, .page-index__faq-item {
    padding: 20px;
  }

  .page-index__card-title, .page-index__game-title, .page-index__promo-title, .page-index__list-title {
    font-size: 1.3em;
  }

  .page-index__card-description, .page-index__game-description, .page-index__promo-description, .page-index__why-choose-item p, .page-index__faq-answer {
    font-size: 0.95em;
  }

  .page-index__mobile-image, .page-index__responsible-gaming-image {
    max-width: 100%;
    height: auto;
  }

  /* Critical: prevent content overflow on mobile */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}