/* style/index.css */

/* Variables and basic resets (ensure consistency with shared.css if any) */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --accent-color-login: #EA7C07;
  --bg-light: #F8F9FA; /* Slightly off-white for sections */
  --bg-dark: #26A9E0;
  --border-color: #e0e0e0;
  --padding-section: 60px 20px;
  --padding-section-mobile: 40px 15px;
}

.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light body background */
  background-color: var(--secondary-color); /* Matches default body background */
}

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

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

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

.page-index__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Color Contrast Enforcement */
.page-index__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-index__light-bg {
  background-color: var(--secondary-color); /* White */
  color: var(--text-dark);
}

.page-index__dark-section .page-index__section-title,
.page-index__dark-section .page-index__section-description {
  color: var(--text-light);
}

.page-index__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-index__dark-section .page-index__card-title {
  color: var(--text-light);
}

/* Buttons */
.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Ensure long words break */
}

.page-index__cta-button {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 15px 40px;
  font-size: 18px;
  margin-top: 30px;
}

.page-index__cta-button:hover {
  background: #1e87b6; /* Slightly darker primary */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-index__btn-primary:hover {
  background: #1e87b6; /* Slightly darker primary */
  border-color: #1e87b6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

/* Image styles - ensuring no filters */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* Consistent with HERO */
  object-fit: cover;
  /* NO CSS FILTERS ALLOWED */
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--padding-section);
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background: linear-gradient(135deg, var(--primary-color), #4dbceb); /* Light gradient for hero background */
}

.page-index__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-index__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-index__hero-image img {
  width: 100%;
  height: auto; /* HTML width/height attributes define aspect ratio */
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-light);
}

.page-index__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

/* Intro Section */
.page-index__intro-section {
  padding: var(--padding-section);
}

.page-index__intro-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-index__intro-image {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__text-block {
  flex: 2;
  text-align: left;
}

.page-index__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
  color: #555555;
}

/* Quick Access Section */
.page-index__quick-access-section {
  padding: var(--padding-section);
}

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

.page-index__quick-link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.15); /* Light transparent white */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: var(--text-light);
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__quick-link-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-index__quick-link-card .page-index__card-title {
  color: var(--text-light);
  margin-bottom: 10px;
}

.page-index__quick-link-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

/* Games Section */
.page-index__games-section {
  padding: var(--padding-section);
}

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

.page-index__game-card {
  background: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  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(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

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

.page-index__game-card .page-index__card-title {
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-index__game-card p {
  font-size: 15px;
  color: #666666;
  padding: 0 20px;
  margin-bottom: 20px;
}

.page-index__game-card .page-index__btn-primary {
  margin-top: auto; /* Push button to bottom */
}

/* Promotions Section */
.page-index__promotions-section {
  padding: var(--padding-section);
}

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