/* style/index.css */

/* --- General Page Styles --- */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f5f5f5; /* Light background to ensure contrast with #333333 */
}

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

.page-index__section-title {
  font-size: 38px;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-index__section-description {
  font-size: 18px;
  color: #555555;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__sub-title {
  font-size: 24px;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index__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;
  min-width: 180px; /* Ensure buttons are not too small */
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__cta-button--primary {
  background: #26A9E0; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-index__cta-button--primary:hover {
  background: #1e87b7; /* Darker shade for hover */
  border-color: #1e87b7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  margin-left: 20px;
}

.page-index__cta-button--secondary:hover {
  background: #f0f8ff; /* Lighter shade for hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-index__btn-text {
  display: inline-flex;
  align-items: center;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
  transition: color 0.3s ease;
}

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

.page-index__btn-text span {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.page-index__btn-text:hover span {
  transform: translateX(5px);
}

/* --- 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); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Faded brand color to white */
  overflow: hidden; /* Prevent image 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;
  max-width: 100%; /* Ensure image container fits */
  overflow: hidden;
  border-radius: 12px;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px;
  color: #ffffff; /* White text on blue gradient */
}

.page-index__hero-title {
  font-size: 52px;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-index__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: #f0f8ff;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-index__intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-index__intro-content p {
  margin-bottom: 15px;
  font-size: 17px;
}

.page-index__intro-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* --- Quick Access Section --- */
.page-index__quick-access-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
}

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

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

.page-index__quick-link-card {
  display: block;
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on blue */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-height: 150px;
  box-sizing: border-box;
}

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

.page-index__quick-link-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

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

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

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

.page-index__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px;
}

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

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

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

.page-index__game-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-title a:hover {
  color: #1e87b7;
}

.page-index__game-description {
  font-size: 16px;
  color: #555555;
  margin: 0 20px 15px 20px;
}

/* --- Promotions Section --- */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
}

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

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