/* style/index.css */

/* Custom properties for colors from the prompt */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f4f4f4; /* From body background in shared.css */
  --border-color: #e0e0e0;
}

/* 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 background */
  background-color: var(--bg-light); /* Ensure consistency with body bg */
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color); /* Use dark red for main titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin: 10px;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding doesn't cause overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

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

.page-index__cta-button--secondary:hover {
  background: var(--primary-color);
  border-color: var(--secondary-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); /* Fixed header spacing */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Gradient background for visual appeal */
  color: var(--text-light); /* Light text on dark/gradient background */
  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;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

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

.page-index__hero-content h1 {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-index__intro-section p {
  text-align: center;
  margin-bottom: 30px;
  font-size: 18px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-index__feature-item p {
  font-size: 16px;
  color: #555555;
  text-align: center; /* Ensure paragraph text is centered */
}


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

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

.page-index__quick-access-section p {
  text-align: center;
  margin-bottom: 40px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
}

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

.page-index__quick-link-card {
  display: block;
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index__quick-link-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  background-color: #ffd94f; /* Slightly lighter gold on hover */
}

.page-index__quick-link-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-index__quick-link-card p {
  font-size: 16px;
  color: #4a0000; /* Darker red for contrast */
  text-align: left; /* Align text left within card */
  margin-bottom: 0;
}

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

.page-index__games-section p {
  text-align: center;
  margin-bottom: 40px;
  font-size: 18px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__game-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-index__game-card .page-index__game-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 20px 20px 10px;
  flex-grow: 1; /* Allow title to take available space */
}

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

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

.page-index__game-card p {
  font-size: 16px;
  color: #555555;
  margin: 0 20px 20px;
  text-align: left;
}

.page-index__game-card .page-index__game-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px;
  align-self: flex-start; /* Align button to start of card */
  transition: background-color 0.3s ease;
}

.page-index__game-card .page-index__game-button:hover {
  background: var(--secondary-color);
}

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

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

.page-index__promotions-section p {
  text-align: center;
  margin-bottom: 40px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
}

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

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

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

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

.page-index__promo-card .page-index__promo-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 20px 20px 10px;
  flex-grow: 1;
}

.page-index__promo-card p {
  font-size: 16px;
  color: #555555;
  margin: 0 20px 20px;
  text-align: left;
}

.page-index__promo-card .page-index__promo-button {
  display: inline-block;
  background: var(--primary-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-index__promo-card .page-index__promo-button:hover {
  background: var(--secondary-color);
}

.page-index__all-promos-cta {
  text-align: center;
  margin-top: 50px;
}

/* Module 5: Security & Customer Service */
.page-index__security-cs-section {
  padding: 80px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-index__security-cs-section p {
  text-align: center;
  margin-bottom: 40px;
  font-size: 18px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__security-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}