/* style/index.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-button-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #26A9E0; /* Using primary color for dark sections */
  --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-index {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark); /* Default text color for light background */
  background: var(--background-light); /* Default light background */
  line-height: 1.6;
}

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

.page-index__section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

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

.page-index__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
}

.page-index__light-text {
  color: var(--text-light);
}

/* Buttons styles */
.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin: 10px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-index__btn-primary:hover {
  background: #208bc2; /* Slightly darker primary */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-index__btn-secondary:hover {
  background: #f0f0f0; /* Slightly darker secondary */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-index__btn-link {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-link:hover {
  background: #208bc2; /* Slightly darker primary */
}

.page-index__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
  gap: 15px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-index__cta-buttons--center {
  justify-content: center;
}

/* 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); /* Ensures content is below fixed header */
  background: linear-gradient(135deg, var(--primary-color), #40c0f0); /* Gradient background for visual appeal */
  overflow: hidden;
}

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

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

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 30px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for text */
  color: var(--text-light);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  margin-top: -80px; /* Overlap with image for integrated look */
}

.page-index__hero-title {
  font-size: 52px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #e0e0e0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Section Backgrounds */
.page-index__dark-section {
  background: var(--background-dark);
  color: var(--text-light);
}

.page-index__light-bg {
  background: var(--background-light);
  color: var(--text-dark);
}

/* Quick Access Section */
.page-index__quick-access-section {
  padding: 80px 0;
}

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

.page-index__quick-link-card {
  display: flex;
  flex-direction: column;
  background: var(--secondary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-index__quick-link-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.page-index__quick-link-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-index__quick-link-card .page-index__card-title {
  font-size: 20px;
  font-weight: bold;
  margin: 15px 15px 10px;
  color: var(--primary-color);
}

.page-index__quick-link-card .page-index__card-description {
  font-size: 15px;
  margin: 0 15px 20px;
  line-height: 1.5;
  color: #666;
  flex-grow: 1;
}

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

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

.page-index__game-category-item {
  background: var(--secondary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  border: 1px solid var(--border-color);
}

.page-index__game-category-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-index__category-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

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

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

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