/* style/index-core-features.css */

:root {
  --primary-color: #0A2463;
  --secondary-color: #E3B347;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f4f4f4;
  --background-dark: #0A2463; /* Using primary color for dark background sections */
  --border-color: #e0e0e0;
}

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

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

.page-index-core-features__section {
  padding: 60px 0;
}

.page-index-core-features__light-bg {
  background-color: var(--background-light);
  color: var(--text-color-dark);
}

.page-index-core-features__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

.page-index-core-features__heading {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-index-core-features__heading--white {
  color: var(--text-color-light);
}

.page-index-core-features__paragraph {
  font-size: 17px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-index-core-features__paragraph--white {
  color: var(--text-color-light);
}

/* Buttons */
.page-index-core-features__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-index-core-features__btn-primary {
  background: var(--secondary-color); /* Gold button */
  color: var(--primary-color); /* Dark blue text for contrast */
  border: 2px solid var(--secondary-color);
}

.page-index-core-features__btn-primary:hover {
  background: #cfa33f; /* Darker gold */
  border-color: #cfa33f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index-core-features__btn-secondary {
  background: var(--primary-color); /* Dark blue button */
  color: var(--text-color-light); /* White text for contrast */
  border: 2px solid var(--primary-color);
}

.page-index-core-features__btn-secondary:hover {
  background: #071946;
  border-color: #071946;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index-core-features__btn-outline {
  display: inline-block;
  padding: 10px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  background: transparent;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-core-features__btn-outline:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.page-index-core-features__btn-link {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.page-index-core-features__btn-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* --- HERO Section --- */
.page-index-core-features__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 content is below fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--background-dark) 100%); /* Dark gradient background */
}

.page-index-core-features__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-index-core-features__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-index-core-features__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-index-core-features__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-index-core-features__hero-title {
  font-size: 48px;
  color: var(--text-color-light);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index-core-features__hero-description {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-core-features__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Intro Section (Feature Grid) --- */
.page-index-core-features__intro-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index-core-features__feature-item {
  background: var(--text-color-light);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-index-core-features__feature-item img {
  width: 200px; /* Layout slot size, must be >= 200px */
  height: 200px; /* Layout slot size, must be >= 200px */
  min-width: 200px;
  min-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index-core-features__feature-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-index-core-features__feature-description {
  font-size: 16px;
  color: var(--text-color-dark);
}

/* --- Games Section --- */
.page-index-core-features__games-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index-core-features__game-card {
  background: rgba(255, 255, 255, 0.1); /* Light background on dark section */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 25px;
}

.page-index-core-features__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency, must be >= 200px */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index-core-features__game-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-index-core-features__game-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
  padding: 0 20px;
}

/* --- Promotions Section --- */
.page-index-core-features__promotions-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index-core-features__promo-card {
  background: var(--text-color-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 25px;
}

.page-index-core-features__promo-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistency, must be >= 200px */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index-core-features__promo-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-index-core-features__promo-description {
  font-size: 16px;
  color: var(--text-color-dark);
  margin-bottom: 25px;
  padding: 0 20px;
}