/* style/index.css */

/* General page styling */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #f9f9f9); /* Use shared background variable */
}

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

.page-index__section-title {
  font-size: 32px;
  color: #26A9E0; /* Primary brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* 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); /* Ensure space for fixed header */
  background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Brand color gradient */
  overflow: hidden; /* Prevent content overflow */
}

.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;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  filter: none; /* Ensure no filter is applied */
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: #ffffff; /* White text for contrast on dark/gradient background */
}

.page-index__hero-content h1 {
  font-size: 48px;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #EA7C07; /* Specific color for login/register */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-index__cta-button:hover {
  background: #d46c06;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Module 1: Homepage Introduction */
.page-index__intro-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

.page-index__intro-text {
  font-size: 17px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #444444;
}

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

.page-index__intro-item {
  background: #fdfdfd;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__intro-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-index__intro-item-title {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-index__intro-item p {
  font-size: 16px;
  color: #555555;
}

/* Module 2: Quick Access & Backup Links */
.page-index__quick-access-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Dark background */
  color: #ffffff;
}

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

.page-index__link-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-index__quick-link {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff;
  color: #26A9E0;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-index__quick-link:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Module 3: Core Games/Services Introduction */
.page-index__games-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

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

.page-index__game-card {
  background: #fdfdfd;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__game-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no filter is applied */
}

.page-index__game-card h3 {
  padding: 20px 20px 10px;
  font-size: 22px;
  color: #26A9E0;
}

.page-index__game-card h3 a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-index__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px;
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-index__btn-secondary:hover {
  background: #26A9E0;
  color: #ffffff;
}

/* Module 4: Promotional Activities */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark background */
  color: #ffffff;
}

.page-index__promotions-section .page-index__section-title,
.page-index__promotions-section .page-index__section-description {
  color: #ffffff;
}

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

.page-index__promo-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background for dark section */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff; /* White text for contrast */
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__promo-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no filter is applied */
}

.page-index__promo-title {
  padding: 20px 20px 10px;
  font-size: 22px;
  color: #ffffff;
}

.page-index__promo-card p {
  padding: 0 20px 20px;
  font-size: 16px;
  color: #f0f0f0;
}