/* style/index.css */

/* Base styles for the page */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #FFFFFF;
}

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

.page-index__section-title {
  font-size: 32px;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-index__description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #555555;
}

.page-index__btn-primary {
  display: inline-block;
  background: #26A9E0;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 2px solid transparent;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-index__btn-primary:hover {
  background-color: #1e87b7;
}

.page-index__btn-primary.page-index__btn-login {
  background: #EA7C07;
}

.page-index__btn-primary.page-index__btn-login:hover {
  background: #c76706;
}

.page-index__btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: #26A9E0;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #26A9E0;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-index__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  padding: 0;
  margin: 0;
  width: 100%;
  overflow: hidden;
  padding-top: 0; /* Assuming shared.css handles body padding-top */
}

.page-index__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-index__hero-image {
  width: 100%;
  margin: 0;
}

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

/* Products Section */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  background: #f9f9f9;
  box-sizing: border-box;
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* Desktop: All 6 cards in one row */
  gap: 20px;
}

.page-index__products-grid {
  display: contents; /* Allow cards to flow into the parent grid */
}

.page-index__products-grid--small {
  grid-column: span 4; /* Occupy 4 columns for the first 4 cards */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.page-index__products-grid--large {
  grid-column: span 2; /* Occupy 2 columns for the last 2 cards */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.page-index__product-card {
  width: 100%;
  max-width: 300px; /* Max width for each card */
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease;
  justify-self: center; /* Center cards in their grid cells */
}

.page-index__product-card:hover {
  transform: translateY(-3px);
}

.page-index__product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-index__product-card-image {
  width: 100%;
  max-width: 300px; /* Max width for image container */
  overflow: hidden;
}

.page-index__product-card-image img {
  max-width: 100%;
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  display: block;
}

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

.page-index__main-title {
  font-size: 42px;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-index__feature-item {
  text-align: center;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.page-index__feature-title {
  font-size: 22px;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 15px;
}

/* Quick Links Section */
.page-index__quick-links-section {
  padding: 60px 0;
  background: #26A9E0; /* Dark background */
  color: #ffffff;
  text-align: center;
}

.page-index__quick-links-section .page-index__section-title {
  color: #ffffff;
}

.page-index__button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

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