/* style/index.css */
.page-index {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

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

.page-index__hero-section {
  background-color: #0056B3; /* Primary brand color */
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-index__hero-content {
  max-width: 800px;
  margin-bottom: 40px;
  z-index: 1;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Secondary brand color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-index__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.page-index__button--primary {
  background-color: #FFD700; /* Gold */
  color: #0056B3; /* Dark Blue */
  border: 2px solid #FFD700;
}

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

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

.page-index__button--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
}

.page-index__button--tertiary {
  background-color: #0056B3;
  color: #ffffff;
  border: 2px solid #0056B3;
}

.page-index__button--tertiary:hover {
  background-color: #004494;
  transform: translateY(-2px);
}

.page-index__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
  background-color: #0056B3;
  color: #ffffff;
  border: 1px solid #0056B3;
}

.page-index__button--small:hover {
  background-color: #004494;
}

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

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-index__section-title {
  font-size: 2.8em;
  color: #0056B3;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
}

.page-index__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-index__text-content {
  font-size: 1.05em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.page-index__about-section, .page-index__security-section, .page-index__contact-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.page-index__about-section .page-index__text-content, .page-index__security-section .page-index__text-content {
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__about-section .page-index__button--tertiary, .page-index__security-section .page-index__button--tertiary, .page-index__contact-section .page-index__button--primary, .page-index__contact-section .page-index__button--tertiary {
  margin-top: 20px;
  margin-right: 15px;
}

.page-index__games-section, .page-index__promotions-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-index__game-card, .page-index__promo-card {
  background-color: #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 20px;
}

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

.page-index__game-image, .page-index__promo-image {
  width: 100%;
  height: 200px; /* Consistent height for cards */
  object-fit: cover;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 20px;
}

.page-index__game-card .page-index__game-image, .page-index__promo-card .page-index__promo-image {
  min-width: 200px;
  min-height: 200px;
}

.page-index__game-title, .page-index__promo-title {
  font-size: 1.5em;
  color: #0056B3;
  margin-bottom: 10px;
  padding: 0 15px;
}

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

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

.page-index__game-description, .page-index__promo-text {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-index__all-games-cta, .page-index__all-promos-cta {
  text-align: center;
  margin-top: 60px;
}

.page-index__app-section {
  background-color: #0056B3;
  color: #ffffff;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-index__app-section .page-index__container {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-index__app-content {
  flex: 1;
  min-width: 300px;
}

.page-index__app-section .page-index__section-title {
  color: #FFD700;
  text-align: left;
  padding-top: 0;
  margin-bottom: 20px;
}

.page-index__app-section .page-index__text-content {
  text-align: left;
  margin-bottom: 30px;
}

.page-index__app-image-wrapper {
  flex: 1;
  min-width: 250px;
  text-align: center;
}

.page-index__app-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 2.8em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__app-section .page-index__container {
    flex-direction: column;
    text-align: center;
  }
  .page-index__app-section .page-index__section-title,
  .page-index__app-section .page-index__text-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.2em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__button {
    padding: 12px 25px;
    font-size: 0.9em;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-description {
    font-size: 0.95em;
  }
  .page-index__text-content {
    font-size: 0.9em;
  }
  .page-index__game-grid, .page-index__promo-grid {
    grid-template-columns: 1fr;
  }
  .page-index__game-image, .page-index__promo-image, .page-index__app-image {
    max-width: 100%;
    height: auto;
  }
  .page-index__about-section, .page-index__games-section, .page-index__promotions-section, .page-index__security-section, .page-index__app-section, .page-index__contact-section {
    padding: 40px 0;
  }
  .page-index__hero-section {
    padding: 60px 20px;
  }
  .page-index__button--tertiary {
    margin-right: 0;
    margin-bottom: 10px;
  }
  .page-index__about-section .page-index__button--tertiary, .page-index__security-section .page-index__button--tertiary, .page-index__contact-section .page-index__button--primary, .page-index__contact-section .page-index__button--tertiary {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-index__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__hero-image-wrapper {
    display: none; /* Hide background image on small screens for better performance/focus */
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8em;
  }
  .page-index__hero-description {
    font-size: 0.9em;
  }
  .page-index__section-title {
    font-size: 1.5em;
  }
  .page-index__button {
    padding: 10px 20px;
    font-size: 0.8em;
  }
  .page-index__game-title, .page-index__promo-title {
    font-size: 1.3em;
  }
}