/* style/index.css */

/* General Page Styles */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light background */
  background-color: #FFFFFF; /* Default body background is white */
}

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

.page-index__section-title {
  font-size: 32px;
  font-weight: bold;
  color: #017439; /* Primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-index__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

/* Hero Section Styles */
.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); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, #e0f2f1, #ffffff); /* Light background for hero section */
}

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

.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: 8px;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

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

.page-index__hero-title {
  font-size: 48px;
  font-weight: bold;
  color: #017439; /* Primary color for title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__hero-description {
  font-size: 20px;
  color: #333333;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #017439; /* Primary color for CTA */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__cta-button:hover {
  background: #005f2c; /* Slightly darker primary color */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.page-index__introduction-section {
  padding: 80px 0;
  background-color: #f9f9f9; /* Light background */
}

.page-index__grid-intro {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-index__intro-text {
  flex: 1;
  font-size: 17px;
  line-height: 1.7;
}

.page-index__intro-text p {
  margin-bottom: 15px;
}

.page-index__intro-text a {
  color: #017439;
  text-decoration: underline;
}

.page-index__intro-text a:hover {
  color: #005f2c;
}

.page-index__intro-image {
  flex: 1;
  text-align: center;
}

.page-index__intro-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Min size for images */
  min-height: 200px; /* Min size for images */
}

/* Quick Access Section */
.page-index__quick-access-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff; /* Light text */
}

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

.page-index__quick-access-section .page-index__section-description {
  color: #f0f0f0;
}

.page-index__quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.page-index__quick-link-card {
  display: block;
  background: rgba(255, 255, 255, 0.15); /* Semi-transparent white background */
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-index__quick-link-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.page-index__quick-link-card .page-index__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFFF00; /* Yellow for quick link titles */
}

.page-index__quick-link-card p {
  font-size: 15px;
  color: #f0f0f0;
}

.page-index__quick-access-image {
  text-align: center;
}

.page-index__quick-access-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

/* Core Games Section */
.page-index__core-games-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
}

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

.page-index__game-category-item {
  background: #fdfdfd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-category-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-index__game-category-item img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid #eee;
  min-width: 200px;
  min-height: 200px;
}

.page-index__game-title {
  font-size: 24px;
  font-weight: bold;
  margin: 20px 15px 10px;
}

.page-index__game-title a {
  color: #017439;
  text-decoration: none;
}

.page-index__game-title a:hover {
  color: #005f2c;
  text-decoration: underline;
}

.page-index__game-category-item p {
  font-size: 15px;
  color: #666666;
  padding: 0 15px 20px;
}

.page-index__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  margin-bottom: 20px;
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-secondary:hover {
  background: #017439;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff; /* Light text */
}

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

.page-index__promotions-section .page-index__section-description {
  color: #f0f0f0;
}

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

.page-index__promotion-card {
  background: rgba(255, 255, 255, 0.15); /* Semi-transparent white background */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-index__promotion-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-index__promotion-card .page-index__card-title {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 15px 10px;
  color: #FFFF00; /* Yellow for promotion titles */
}

.page-index__promotion-card p {
  font-size: 15px;
  color: #f0f0f0;
  padding: 0 15px 20px;
}

.page-index__btn-primary {
  display: inline-block;
  padding: 10px 25px;
  margin-bottom: 20px;
  background: #C30808; /* Red for primary buttons like register/login */
  color: #FFFF00; /* Yellow font for primary buttons */
  border: 2px solid transparent;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%; /* Responsive button */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary:hover {
  background: #a80707; /* Darker red on hover */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-index__promo-cta {
  text-align: center;
  margin-top: 20px;
}

/* Security & Support Section */
.page-index__security-support-section {
  padding: 80px 0;
  background-color: #f9f9f9; /* Light background */
}

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

.page-index__security-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-index__security-item .page-index__item-title {
  font-size: 22px;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
}

.page-index__security-item p {
  font-size: 16px;
  color: #666666;
  margin-bottom: 20px;
}

.page-index__security-image {
  text-align: center;
  margin-top: 40px;
}

.page-index__security-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}