/* style/index.css */

:root {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --text-color: #333333;
  --light-background: #F8F8F8;
  --dark-background-variant: #1a2c4e; /* Slightly lighter than primary for contrast */
  --button-hover-color: #e6c200;
}

.page-index {
  color: var(--text-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background-color: var(--light-background);
}

.page-index__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

.page-index__button--primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-index__button--primary:hover {
  background-color: var(--button-hover-color);
  border-color: var(--button-hover-color);
  transform: translateY(-2px);
}

.page-index__button--secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

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

.page-index__button--small {
  padding: 8px 18px;
  font-size: 0.9em;
  border-radius: 6px;
}

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

.page-index__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  min-height: 700px;
  background-color: var(--primary-color);
}

.page-index__hero-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

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

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3); /* Dark overlay for text readability */
  border-radius: 10px;
}

.page-index__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  font-weight: 700;
  line-height: 1.2;
}

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

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

.page-index__about-section {
  padding: 80px 20px;
  background-color: #ffffff;
}

.page-index__about-container,
.page-index__games-container,
.page-index__promotions-container,
.page-index__app-download-container,
.page-index__cta-container,
.page-index__blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-index__feature-card {
  background-color: var(--light-background);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__feature-icon {
  width: 100%; /* Ensure image fills card area */
  height: auto;
  max-height: 250px; /* Limit height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-index__feature-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

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

.page-index__games-section {
  padding: 80px 20px;
  background-color: var(--dark-background-variant);
  color: #ffffff;
}

.page-index__games-section .page-index__section-title {
  color: var(--secondary-color);
}

.page-index__games-section .page-index__section-description {
  color: #e0e0e0;
}

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

.page-index__game-card {
  background-color: var(--primary-color);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  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 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-index__game-card-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-index__game-card-title a {
  color: var(--secondary-color);
  text-decoration: none;
}

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

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

.page-index__view-all-button-wrapper {
  text-align: center;
  margin-top: 60px;
}

.page-index__promotions-section {
  padding: 80px 20px;
  background-color: #ffffff;
}

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

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

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

.page-index__promo-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 8px;
}

.page-index__promo-card-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-index__promo-card-title a {
  color: var(--primary-color);
  text-decoration: none;
}

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

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

.page-index__app-download-section {
  padding: 80px 20px;
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
}

.page-index__app-download-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__app-download-content {
  flex: 1;
  text-align: left;
}

.page-index__app-download-content .page-index__section-title {
  color: var(--secondary-color);
  text-align: left;
}

.page-index__app-download-content .page-index__section-description {
  color: #e0e0e0;
  text-align: left;
  margin-bottom: 40px;
}

.page-index__app-download-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.page-index__app-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-index__cta-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-background-variant) 100%);
  color: #ffffff;
  text-align: center;
}

.page-index__cta-container .page-index__section-title {
  color: var(--secondary-color);
}

.page-index__cta-container .page-index__section-description {
  color: #e0e0e0;
  margin-bottom: 50px;
}

.page-index__blog-section {
  padding: 80px 20px;
  background-color: #f0f0f0;
}

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

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

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

.page-index__blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 8px;
}

.page-index__blog-card-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-index__blog-card-title a {
  color: var(--primary-color);
  text-decoration: none;
}

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

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

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }

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

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

  .page-index__app-download-container {
    flex-direction: column;
    gap: 30px;
  }

  .page-index__app-download-content,
  .page-index__app-download-image-wrapper {
    text-align: center;
  }

  .page-index__app-download-content .page-index__section-title,
  .page-index__app-download-content .page-index__section-description {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px);
  }

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

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

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

  .page-index__button {
    width: 100%;
    max-width: 300px;
  }

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

  .page-index__section-description {
    font-size: 0.9em;
  }

  .page-index__feature-card,
  .page-index__game-card,
  .page-index__promo-card,
  .page-index__blog-card {
    padding: 20px;
  }

  .page-index__feature-icon,
  .page-index__game-card-image,
  .page-index__promo-card-image,
  .page-index__blog-card-image,
  .page-index__app-image {
    max-width: 100%;
    height: auto;
  }

  /* CRITICAL: Ensure all content images are responsive and do not overflow */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

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

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

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

  .page-index__feature-title,
  .page-index__game-card-title,
  .page-index__promo-card-title,
  .page-index__blog-card-title {
    font-size: 1.4em;
  }
}