/* style/index.css */

/* CSS Variables for theme colors */
:root {
  --primary-color: #003366; /* Royal Blue */
  --secondary-color: #FFD700; /* Gold */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --bg-color-light: #f4f4f4; /* From shared.css body background */
  --border-color: #e0e0e0;
}

/* General page-index styles for text color based on body background */
.page-index {
  color: var(--text-color-dark); /* Body background is light (#f4f4f4), so use dark text */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

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

.page-index__section-title--light {
  color: var(--secondary-color); /* Gold for dark backgrounds */
}

.page-index__section-description {
  font-size: 18px;
  color: var(--text-color-dark);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__section-description--light {
  color: var(--text-color-light); /* White for dark backgrounds */
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.page-index__cta-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-small {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
}

.page-index__btn-small:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-index__btn-read-more {
  display: inline-block;
  padding: 8px 18px;
  background: transparent;
  color: var(--primary-color);
  text-decoration: none;
  border: 1px solid var(--primary-color);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.page-index__btn-read-more:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-index__button-center {
  text-align: center;
  margin-top: 50px;
}

/* --- HERO Section --- */
.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #001a33 100%); /* Darker gradient for contrast */
  overflow: hidden; /* Prevent content overflow */
}

.page-index__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Ensure content is above potential background effects */
}

.page-index__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index__hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  /* No CSS filter allowed */
}

.page-index__hero-content {
  text-align: center;
  color: var(--text-color-light);
  max-width: 900px;
  margin: 0 auto;
}

.page-index__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--secondary-color); /* Gold for H1 on dark background */
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-color-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Module 1: Introduction Section --- */
.page-index__introduction-section {
  padding: 80px 0;
  background-color: var(--bg-color-light);
}

.page-index__grid-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-index__intro-text p {
  margin-bottom: 15px;
  font-size: 17px;
}

.page-index__intro-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min display size */
  min-height: 200px; /* Enforce min display size */
}

/* --- Module 2: Quick Access Section --- */
.page-index__quick-access-section {
  padding: 60px 0;
  background-color: var(--primary-color);
}

.page-index__access-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-index__access-button {
  display: inline-block;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  min-width: 180px; /* Ensure buttons have a minimum width */
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

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

.page-index__access-button--primary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-index__access-button--secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- Module 3: Games Section --- */
.page-index__games-section {
  padding: 80px 0;
  background-color: var(--bg-color-light);
}

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

.page-index__game-card {
  background: var(--text-color-light);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__game-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min display size */
  min-height: 200px; /* Enforce min display size */
}

.page-index__game-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__game-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-title a:hover {
  color: var(--secondary-color);
}

.page-index__game-description {
  font-size: 15px;
  color: #666;
  padding: 0 15px;
  margin-bottom: 20px;
}

/* --- Module 4: Promotions Section --- */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: var(--primary-color);
}

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

.page-index__promo-card {
  background: var(--text-color-light);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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