/* style/index.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
  --background-light: #f9f9f9;
  --background-dark: #26A9E0; /* Using primary color for dark background sections */
}

/* Base styles for the page content */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--secondary-color); /* Body background is light */
}

/* Typography */
.page-index h1, .page-index h2, .page-index h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-index h1 {
  font-size: 3.2em;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-index h2 {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.page-index h3 {
  font-size: 1.8em;
  font-weight: 600;
}

.page-index p {
  margin-bottom: 1em;
}

/* Links */
.page-index a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index a:hover {
  color: #1a7bb0; /* Darker shade of primary for hover */
  text-decoration: underline;
}

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

/* Sections */
.page-index__section-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2.2em;
  color: var(--primary-color);
}

.page-index__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  font-size: 1.1em;
  color: var(--text-dark);
}

.page-index__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 80px 0;
}

.page-index__dark-bg .page-index__section-title,
.page-index__dark-bg h3 {
  color: var(--text-light);
}

.page-index__dark-bg .page-index__section-description,
.page-index__dark-bg p {
  color: rgba(255, 255, 255, 0.9);
}

.page-index__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  padding: 80px 0;
}

/* Buttons */
.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

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

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

.page-index__cta-button--secondary {
  background-color: var(--login-color); /* Using login color for secondary CTA */
  color: var(--text-light);
  margin-left: 20px;
}

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

/* Image styles */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* 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 offset */
  background: linear-gradient(135deg, var(--primary-color), #4dbceb); /* Gradient background for hero */
}

.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: 12px;
  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%;
  color: var(--text-light);
}

.page-index__hero-title {
  color: var(--text-light);
  font-size: 3.8em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-index__hero-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3em;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-index__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

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

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

.page-index__feature-item {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__feature-item img {
  width: 100%;
   /* Adjusting for feature icon-like images */
  height: auto;
  margin: 0 auto 20px auto;
  border-radius: 8px;
}

.page-index__feature-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-index__feature-text {
  color: var(--text-dark);
}

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

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

.page-index__quick-access-section .page-index__section-description {
  color: rgba(255, 255, 255, 0.9);
}

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

.page-index__access-button {
  background-color: var(--login-color);
  color: var(--text-light);
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

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

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

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

.page-index__game-card {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.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: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-index__game-card h3 {
  padding: 20px 20px 10px 20px;
  font-size: 1.6em;
  color: var(--primary-color);
}

.page-index__game-card h3 a {
  color: inherit;
  text-decoration: none;
}

.page-index__game-card h3 a:hover {
  text-decoration: underline;
}

.page-index__game-text {
  padding: 0 20px 20px 20px;
  color: var(--text-dark);
}

.page-index__game-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px 20px;
  padding: 12px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index__game-button:hover {
  background-color: #1a7bb0;
  text-decoration: none;
}

/* Module 4: Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

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

.page-index__promotions-section .page-index__section-description {
  color: rgba(255, 255, 255, 0.9);
}

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

.page-index__promo-card {
  background: var(--secondary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-index__promo-title {
  padding: 20px 20px 10px 20px;
  font-size: 1.6em;
  color: var(--primary-color);
}

.page-index__promo-title a {
  color: inherit;
  text-decoration: none;
}

.page-index__promo-title a:hover {
  text-decoration: underline;
}

.page-index__promo-text {
  padding: 0 20px 20px 20px;
  color: var(--text-dark);
}

.page-index__promo-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px 20px;
  padding: 12px 0;
  background-color: var(--login-color);
  color: var(--text-light);
  text-align: center;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index__promo-button:hover {
  background-color: #c96500;
  text-decoration: none;
}

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

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

.page-index__security-item {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.page-index__security-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-index__security-text {
  color: var(--text-dark);
}

.page-index__contact-cta {
  text-align: center;
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Module 6: FAQ Section */
.page-index__faq-section {
  padding: 80px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

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

.page-index__faq-section .page-index__section-description {
  color: rgba(255, 255, 255, 0.9);
}

.page-index__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: var(--background-light);
  border-color: #d0d0d0;
}