/* style/index.css */
.page-index {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #f8f8f8;
}

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

.page-index__section-title {
  font-size: 2.8em;
  color: #1A2A4E;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-index__button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.page-index__button--primary {
  background-color: #FFD700;
  color: #1A2A4E;
  border: 2px solid #FFD700;
}

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

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

.page-index__button--secondary:hover {
  background-color: #1A2A4E;
  color: #FFD700;
  transform: translateY(-2px);
}

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

.page-index__call-to-action {
  text-align: center;
  margin-top: 60px;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  padding: 80px 20px;
  overflow: hidden;
  min-height: 600px;
}

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

.page-index__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 42, 78, 0.7); /* Dark overlay */
  z-index: -1;
}

.page-index__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-index__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.1;
  font-weight: bold;
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
  line-height: 1.5;
}

.page-index__hero-buttons .page-index__button {
  margin: 0 15px;
}

.page-index__hero-buttons .page-index__button--secondary {
  border-color: #FFD700;
  color: #FFD700;
}

.page-index__hero-buttons .page-index__button--secondary:hover {
  background-color: #FFD700;
  color: #1A2A4E;
}

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

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

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

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

.page-index__feature-icon {
  width: 200px; /* Minimum size requirement */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-index__feature-title {
  font-size: 1.5em;
  color: #1A2A4E;
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

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

.page-index__category-card {
  display: block;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #333333;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__category-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

.page-index__category-title {
  font-size: 1.6em;
  color: #1A2A4E;
  padding: 20px 20px 10px 20px;
  font-weight: bold;
}

.page-index__category-text {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 20px 20px;
}

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

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

.page-index__promo-card {
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  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: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__promo-title {
  font-size: 1.6em;
  color: #1A2A4E;
  margin-bottom: 10px;
  font-weight: bold;
  padding: 0 20px;
}

.page-index__promo-text {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  padding: 0 20px;
}

/* Download Section */
.page-index__download-section {
  background-color: #1A2A4E;
  padding: 80px 0;
  color: #ffffff;
}

.page-index__download-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  gap: 40px;
}

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

.page-index__download-text .page-index__section-title {
  color: #FFD700;
  text-align: left;
  font-size: 2.5em;
}

.page-index__download-text .page-index__section-description {
  color: #f0f0f0;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 40px;
}

.page-index__download-image {
  width: 300px;
  height: 400px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

.page-index__faq-items {
  margin-top: 50px;
  display: grid;
  gap: 20px;
}

.page-index__faq-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index__faq-question {
  font-size: 1.3em;
  color: #1A2A4E;
  margin-bottom: 10px;
  font-weight: bold;
}

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

/* Blog Preview Section */
.page-index__blog-preview {
  padding: 80px 0;
  background-color: #f0f2f5;
}

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

.page-index__article-card {
  display: block;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #333333;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__article-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

.page-index__article-title {
  font-size: 1.4em;
  color: #1A2A4E;
  padding: 20px 20px 10px 20px;
  font-weight: bold;
}

.page-index__article-excerpt {
  font-size: 0.95em;
  color: #555555;
  padding: 0 20px 20px 20px;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__section-title {
    font-size: 2.2em;
  }
  .page-index__download-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__download-text {
    text-align: center;
  }
  .page-index__download-text .page-index__section-title {
    text-align: center;
  }
  .page-index__download-text .page-index__section-description {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header */
  }
  .page-index__hero-title {
    font-size: 2.5em;
  }
  .page-index__hero-description {
    font-size: 1em;
  }
  .page-index__hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .page-index__hero-buttons .page-index__button {
    margin: 0;
    width: 100%;
  }
  .page-index__section-title {
    font-size: 1.8em;
  }
  .page-index__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-index__feature-card,
  .page-index__category-card,
  .page-index__promo-card,
  .page-index__article-card {
    padding: 20px;
  }
  .page-index__feature-title,
  .page-index__category-title,
  .page-index__promo-title,
  .page-index__article-title {
    font-size: 1.3em;
  }
  .page-index__feature-icon,
  .page-index__category-image,
  .page-index__promo-image,
  .page-index__article-image {
    max-width: 100%;
    height: auto; /* Ensure images are responsive */
  }
  .page-index__download-image {
    width: 250px;
    height: 333px;
  }
  /* Content area images must not be smaller than 200px */
  .page-index__features-grid img,
  .page-index__game-categories img,
  .page-index__promo-cards img,
  .page-index__blog-articles img {
    min-width: 200px;
    min-height: 200px;
    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.6em;
  }
  .page-index__hero-section,
  .page-index__about-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__download-section,
  .page-index__responsible-gaming-section,
  .page-index__faq-section,
  .page-index__blog-preview {
    padding: 50px 0;
  }
}