/* style/index.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --dark-text-color: #333333;
  --light-text-color: #ffffff;
  --border-color: #e0e0e0;
}

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

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 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;
}

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

.page-index__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--dark-text-color);
}

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

/* 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: linear-gradient(135deg, var(--primary-color) 0%, #007bff 100%); /* Example gradient */
  color: var(--light-text-color);
}

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

.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;
  line-height: 1.2;
  color: var(--light-text-color);
}

.page-index__hero-description {
  font-size: 22px;
  margin-bottom: 30px;
  color: var(--light-text-color);
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--login-color);
  color: var(--light-text-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
}

.page-index__cta-button:hover {
  background: #d66a06; /* Slightly darker login color */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Intro Section */
.page-index__intro-section {
  padding: 60px 0;
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
}

.page-index__intro-content p {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
}

/* Quick Access Section */
.page-index__quick-access-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

.page-index__quick-access-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-index__quick-access-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  flex-grow: 1;
  min-width: 200px; /* Ensure minimum width for buttons */
  max-width: 280px; /* Max width to prevent overly wide buttons */
}

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

/* Games Section */
.page-index__games-section {
  padding: 60px 0;
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
}

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

.page-index__game-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-index__game-card-title {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: var(--primary-color);
}

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

.page-index__game-card-title a:hover {
  color: var(--login-color);
}

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

.page-index__game-card-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--light-text-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__game-card-button:hover {
  background: #1e8dc7;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

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

.page-index__promo-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

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

.page-index__promo-card-title {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: var(--light-text-color);
}

.page-index__promo-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__promo-card-title a:hover {
  color: var(--secondary-color);
}

.page-index__promo-card p {
  font-size: 15px;
  color: #f0f0f0;
  margin: 0 20px 20px;
  flex-grow: 1;
}

.page-index__promo-card-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--login-color);
  color: var(--light-text-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}