.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Explicitly set for content area */
}

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

/* --- 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);
  background-color: #f0f8ff; /* Light background for hero section */
}

.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;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.page-index__hero-image img:hover {
  transform: scale(1.03);
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: -80px; /* Overlap with image */
}

.page-index__hero-title {
  font-size: 44px;
  font-weight: 700;
  color: #26A9E0; /* Brand primary color */
  margin-bottom: 15px;
  line-height: 1.2;
}

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

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index__cta-button--primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-index__cta-button--primary:hover {
  background: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--secondary {
  background: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-index__cta-button--secondary:hover {
  background: #d46c06;
  border-color: #d46c06;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* --- General Section Styling --- */
.page-index__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

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

.page-index__section-title--light {
  color: #ffffff;
}

.page-index__section-title--light::after {
  background-color: #ffffff;
}

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

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

.page-index__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

.page-index__dark-bg {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
  padding: 80px 0;
}

/* --- Introduction Section --- */
.page-index__introduction-section .page-index__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.page-index__introduction-section .page-index__text-block {
  flex: 1;
  min-width: 300px;
  font-size: 17px;
  line-height: 1.7;
}

.page-index__introduction-section .page-index__text-block p {
  margin-bottom: 20px;
}

.page-index__introduction-section .page-index__image-block {
  flex: 1;
  min-width: 400px;
  text-align: center;
}

.page-index__introduction-section .page-index__image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* --- Quick Access Section --- */
.page-index__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;
  align-items: center;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px 20px;
  border-radius: 12px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-index__quick-link-icon {
  font-size: 48px;
  margin-bottom: 15px;
  line-height: 1;
}

.page-index__quick-link-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-index__quick-link-text {
  font-size: 15px;
  color: #e0e0e0;
}

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

.page-index__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-index__game-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-index__game-card .page-index__game-title {
  font-size: 24px;
  font-weight: 600;
  margin: 20px 20px 10px;
  color: #26A9E0;
}

.page-index__game-card .page-index__game-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-card .page-index__game-title a:hover {
  color: #1e87c0;
}

.page-index__game-card .page-index__game-description {
  font-size: 15px;
  color: #555555;
  padding: 0 20px 20px;
  line-height: 1.6;
}

.page-index__btn-small {
  display: inline-block;
  padding: 10px 20px;
  background: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: all 0.3s ease;
  border: 1px solid #26A9E0;
}

.page-index__btn-small:hover {
  background: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-2px);
}

.page-index__btn-small--light {
  background: #ffffff;
  color: #26A9E0;
  border: 1px solid #ffffff;
}