/* style/index.css */

/* Variables from shared.css are assumed to be available */
:root {
  --primary-color: #E44D26;
  --secondary-color: #333333;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #f8f9fa; /* Assuming body is light, using a light background for sections */
  --border-color: #e0e0e0;
}

/* Page content base styles */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--background-light); /* Ensure content area has a light background */
}

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

.page-index__section {
  padding: 60px 0;
  text-align: center;
}

.page-index__section-title {
  font-size: 36px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: 700;
}

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

/* Dark background section for contrast */
.page-index__dark-section {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

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

.page-index__dark-section .page-index__section-description {
  color: #cccccc;
}

/* CTA Button styles */
.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-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-index__cta-button:hover {
  background: #c23d1f; /* A darker shade of #E44D26 */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-primary {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary:hover {
  background: #c23d1f; /* A darker shade of #E44D26 */
}

.page-index__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: var(--text-light);
  color: var(--primary-color);
  text-decoration: none;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-index__btn-text {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-index__btn-text:hover {
  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 offset */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Using brand colors */
  color: var(--text-light);
}

.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;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.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: 800;
  margin-bottom: 20px;
  color: var(--text-light); /* Ensure high contrast */
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-index__hero-description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0; /* Slightly off-white for softer look, still high contrast */
}

/* Module 1: Introduction Section */
.page-index__introduction-section {
  background-color: var(--background-light);
  color: var(--text-dark);
}

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

.page-index__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-index__text-block {
  flex: 1;
}

.page-index__text-block p {
  margin-bottom: 15px;
  font-size: 16px;
  color: #555555;
}

.page-index__image-block {
  flex: 1;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-index__image-block img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Module 2: Quick Access Section */
.page-index__quick-access-section {
  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 .page-index__section-description {
  color: #cccccc;
}

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

.page-index__quick-link-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-light);
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: left;
  display: block;
}

.page-index__quick-link-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.page-index__quick-link-title {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-index__quick-link-text {
  font-size: 15px;
  color: #cccccc;
}

/* Module 3: Core Games Section */
.page-index__games-section {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-index__games-section .page-index__section-title {
  color: var(--secondary-color);
}

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

.page-index__game-card {
  background: var(--text-light);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
}

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

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

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

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

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

.page-index__game-card .page-index__btn-primary {
  margin: 0 20px 20px 20px;
  width: calc(100% - 40px);
  text-align: center;
}

/* Module 4: Promotions Section */
.page-index__promotions-section {
  background-color: var(--background-light); /* Light background for promo section */
  color: var(--text-dark);
}

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

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

.page-index__promo-card {
  background: var(--text-light);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
}

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

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

.page-index__promo-card .page-index__promo-description {
  font-size: 15px;
  color: #666666;
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-index__promo-card .page-index__btn-primary {
  margin: 0 20px 20px 20px;
  width: calc(100% - 40px);
  text-align: center;
}

.page-index__button-group {
  margin-top: 50px;
  text-align: center;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Module 5: Security & Support Section */
.page-index__security-support-section {
  background-color: #f0f2f5; /* Slightly darker light background for contrast */
  color: var(--text-dark);
}

.page-index__security-support-section .page-index__section-title {
  color: var(--secondary-color);
}