/* style/index.css */

/* Variables (if not already in shared.css) */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --bg-color-light: #ffffff;
  --bg-color-dark: #26A9E0; /* Using primary color for dark sections */
  --btn-login-color: #EA7C07;
}

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

/* General button styles */
.page-index__cta-button,
.page-index__btn-small,
.page-index__btn-contact,
.page-index__btn-read-more {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

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

.page-index__cta-button--primary:hover {
  background: #1E8BC3; /* Darker shade of #26A9E0 */
  border-color: #1E8BC3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  margin-left: 20px;
}

.page-index__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-small {
  padding: 10px 20px;
  font-size: 14px;
  background: var(--btn-login-color); /* Using login color for small buttons */
  color: var(--text-color-light);
  border: none;
}

.page-index__btn-small:hover {
  background: #C76606; /* Darker shade of #EA7C07 */
}

.page-index__btn-contact {
  background: var(--primary-color);
  color: var(--text-color-light);
  border: none;
  margin-top: 20px;
}

.page-index__btn-contact:hover {
  background: #1E8BC3; /* Darker shade of #26A9E0 */
}

.page-index__btn-read-more {
  background: var(--primary-color);
  color: var(--text-color-light);
  border: none;
  margin-top: 15px;
}

.page-index__btn-read-more:hover {
  background: #1E8BC3; /* Darker shade of #26A9E0 */
}

/* 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 spacing */
  background: linear-gradient(135deg, var(--primary-color) 0%, #000000 100%); /* Dark background for hero */
  color: var(--text-color-light);
}

.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;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

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

.page-index__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-color-light);
}

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

.page-index__hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}


/* Module 1: Homepage Introduction */
.page-index__introduction-section {
  padding: 80px 0;
  background-color: var(--bg-color-light);
  color: var(--text-color-dark);
}

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

.page-index__intro-item {
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__intro-item img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-index__intro-heading {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-index__intro-text {
  font-size: 16px;
  color: var(--text-color-dark);
}

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

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

.page-index__quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  text-align: center;
}

.page-index__access-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-color-light);
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__access-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

.page-index__access-card img {
  width: 200px; /* Enforce minimum size */
  height: 200px; /* Enforce minimum size */
  object-fit: contain;
  margin-bottom: 15px;
}

.page-index__access-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color-light);
}

/* Module 3: Core Games/Services */
.page-index__games-section {
  padding: 80px 0;
  background-color: var(--bg-color-light);
  color: var(--text-color-dark);
}

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

.page-index__game-card {
  background: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-index__game-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-index__game-title {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 15px 10px;
}

.page-index__game-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-title a:hover {
  color: #1E8BC3; /* Darker shade of #26A9E0 */
}

.page-index__game-description {
  font-size: 15px;
  color: var(--text-color-dark);
  padding: 0 15px 20px;
  flex-grow: 1;
}