/* style/index.css */

/* Custom properties for colors from shared.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-login-color: #EA7C07;
  --background-color: #FFFFFF;
  --black-color: #000000;
}

/* General Page Styling */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--background-color); /* Matches 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;
  padding-top: 40px;
  line-height: 1.2;
}

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

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

.page-index__section-subtitle--light {
  color: #f0f0f0;
}

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

.page-index__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-index__card-title a:hover {
  text-decoration: underline;
}

/* CTA Buttons */
.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;
  min-width: 180px; /* Ensure buttons have a minimum width */
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-index__cta-button--primary:hover {
  background: #2197cc; /* Slightly darker primary */
  border-color: #2197cc;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--secondary {
  background: var(--button-login-color); /* Using login color for secondary CTA */
  color: var(--text-light);
  border: 2px solid var(--button-login-color);
}

.page-index__cta-button--secondary:hover {
  background: #d17006; /* Slightly darker login color */
  border-color: #d17006;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-index__btn-primary:hover {
  background: #2197cc;
}

.page-index__btn-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.page-index__btn-link:hover {
  color: #2197cc;
  text-decoration: underline;
}

.page-index__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
}

.page-index__button-group--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); /* Fixed header offset */
  background-color: var(--background-color); /* Ensure background for hero */
}

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

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

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px; /* Add padding for content inside hero */
  box-sizing: border-box;
}

.page-index__hero-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* Module 1: Introduction */
.page-index__introduction-section {
  padding: 80px 0;
}

.page-index__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 60px;
}

.page-index__introduction-image {
  flex: 1;
  max-width: 50%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-index__introduction-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-index__text-content {
  flex: 1;
  font-size: 17px;
  color: var(--text-dark);
}

.page-index__text-content p {
  margin-bottom: 15px;
}

/* Module 2: Quick Access */
.page-index__quick-access-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark background for this section */
  color: var(--text-light);
}

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

.page-index__quick-link-card {
  background: rgba(255, 255, 255, 0.15); /* Light translucent background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: var(--text-light);
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__quick-link-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

.page-index__quick-link-card .page-index__card-title {
  color: var(--text-light);
  margin-top: 0;
  font-size: 24px;
}

.page-index__quick-link-card p {
  font-size: 16px;
  opacity: 0.9;
}

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

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

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

.page-index__game-card:hover {
  transform: translateY(-8px);
}
}
}
}