/* style/index.css */
.page-index {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on light body background */
  background-color: #ffffff; 
}

.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: #017439; /* Primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-index__section-title--white {
  color: #ffffff;
}

.page-index__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  color: #555555;
}

.page-index__section-description--white {
  color: #f0f0f0;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
}

.page-index__cta-button:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-primary {
  background: #017439;
  color: #ffffff;
}

.page-index__btn-primary:hover {
  background: #005a2e;
}

.page-index__btn-secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  padding: 13px 38px; /* Adjust padding for border */
}

.page-index__btn-secondary:hover {
  background: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
}

/* 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 header offset */
  background: linear-gradient(135deg, #017439, #005a2e); /* Darker green gradient */
  color: #ffffff;
  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;
}

.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: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

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

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

/* Module 1: Intro Section */
.page-index__intro-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-index__intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
}

.page-index__intro-content p {
  font-size: 17px;
  text-align: justify;
  margin-bottom: 15px;
  max-width: 800px;
}

.page-index__intro-image {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__intro-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
  text-align: center;
}

.page-index__feature-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-top: 4px solid #017439;
}

.page-index__feature-item h3 {
  font-size: 22px;
  color: #017439;
  margin-bottom: 15px;
}

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

/* Module 2: Quick Access Section */
.page-index__quick-access-section {
  padding: 80px 0;
  background-color: #017439; /* Primary color background */
  color: #ffffff;
}

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

.page-index__access-button {
  min-width: 200px;
  text-align: center;
  padding: 15px 25px;
  font-size: 16px;
  border-radius: 6px;
  background-color: #C30808; /* Register/Login color for quick access */
  color: #FFFF00;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  white-space: nowrap;
}

.page-index__access-button:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

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

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

.page-index__game-card {
  background: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  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.15);
}

.page-index__game-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-index__game-card h3 {
  font-size: 24px;
  color: #017439;
  margin: 20px 20px 10px;
  line-height: 1.3;
}

.page-index__game-card h3 a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-card h3 a:hover {
  color: #005a2e;
  text-decoration: underline;
}

.page-index__game-description {
  font-size: 16px;
  color: #666666;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__game-button {
  margin: 0 20px 20px;
  display: block;
  text-align: center;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 6px;
  text-decoration: none;
  box-sizing: border-box;
  white-space: nowrap;
}

/* Module 4: Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #017439;
  color: #ffffff;
}

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

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

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

.page-index__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-index__promo-card h3 {
  font-size: 24px;
  margin: 20px 20px 10px;
  color: #FFFF00; /* Yellow for promo titles */
  line-height: 1.3;
}

.page-index__promo-card h3 a {
  color: #FFFF00;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__promo-card h3 a:hover {
  color: #fff;
  text-decoration: underline;
}

.page-index__promo-description {
  font-size: 16px;
  color: #f0f0f0;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__promo-button {
  margin: 0 20px 20px;
  display: block;
  text-align: center;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 6px;
  text-decoration: none;
  background-color: #C30808;
  color: #FFFF00;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  white-space: nowrap;
}

.page-index__promo-button:hover {
  background-color: #a30606;
}

.page-index__all-promos-button-wrapper,
.page-index__all-news-button-wrapper {
  text-align: center;
  margin-top: 60px;
}

/* Module 5: Security & Support Section */
.page-index__security-support-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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