/* style/index.css */

/* --- General Page Styles --- */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #f4f7fa; /* Inherited from shared.css body */
}

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

.page-index__section-title {
  font-size: 32px;
  color: #0A2463; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-index__text-block {
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 17px;
}

.page-index__card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Ensure dark text on light card background */
}

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

.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;
  margin: 10px;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-index__cta-button--primary:hover {
  background: #071a47;
  border-color: #071a47;
  transform: translateY(-2px);
}

.page-index__cta-button--secondary {
  background: #FFD700;
  color: #0A2463;
  border: 2px solid #FFD700;
}

.page-index__cta-button--secondary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

.page-index a {
  color: #0A2463;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index a:hover {
  color: #FFD700;
}

/* --- 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 not hidden by fixed header */
  background: linear-gradient(135deg, #0A2463, #335d9b); /* Dark blue gradient */
  color: #ffffff; /* White text for dark background */
  overflow: hidden;
}

.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.3);
}

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

.page-index__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700;
}

.page-index__hero-description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

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

/* --- Module 1: Introduction Section --- */
.page-index__introduction-section {
  padding: 80px 0;
  background-color: #f4f7fa;
}

.page-index__introduction-section .page-index__section-title {
  color: #0A2463;
}

.page-index__introduction-section .page-index__text-block {
  color: #333333;
}

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

.page-index__feature-item {
  padding: 25px;
}

.page-index__feature-title {
  font-size: 22px;
  color: #0A2463;
  margin-bottom: 15px;
}

/* --- Module 2: Quick Access Section --- */
.page-index__quick-access-section {
  padding: 80px 0;
  background: linear-gradient(90deg, #0A2463, #1a3e7a);
  color: #ffffff;
}

.page-index__quick-access-section .page-index__section-title {
  color: #FFD700;
}

.page-index__quick-access-section .page-index__text-block {
  color: #f0f0f0;
}

.page-index__access-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 50px;
  justify-items: center;
}

.page-index__access-link {
  padding: 15px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background: #FFD700;
  color: #0A2463;
  border: 2px solid #FFD700;
}

.page-index__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

.page-index__btn-secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-index__btn-secondary:hover {
  background: #FFD700;
  color: #0A2463;
  transform: translateY(-2px);
}


/* --- Module 3: Games Section --- */
.page-index__games-section {
  padding: 80px 0;
  background-color: #f4f7fa;
}

.page-index__games-section .page-index__section-title {
  color: #0A2463;
}

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

.page-index__game-card {
  padding: 0;
  overflow: hidden;
}

.page-index__game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  display: block;
}

.page-index__game-card .page-index__game-title {
  font-size: 20px;
  color: #0A2463;
  margin: 20px 0 10px;
  padding: 0 20px;
}

.page-index__game-card .page-index__game-title a {
  color: #0A2463;
  text-decoration: none;
}

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

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

.page-index__game-link {
  display: inline-block;
  background: #FFD700;
  color: #0A2463;
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.page-index__game-link:hover {
  background: #e6c200;
  color: #0A2463;
}