/* style/index.css */

/* --- Base Styles & Variables (assuming shared.css defines primary/secondary colors and header-offset) --- */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background: var(--background-color, #FFFFFF); /* Inherit from shared or default to white */
}

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

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

.page-index__text-block {
  font-size: 16px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

.page-index__card {
  background: #ffffff; /* White background for cards */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a grid have equal height */
  display: flex;
  flex-direction: column;
}

.page-index__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.page-index__card-title {
  font-size: 20px;
  color: #26A9E0; /* Primary brand color */
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-index__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-index__card-title a:hover {
  text-decoration: underline;
}

.page-index__btn-primary,
.page-index__cta-button--primary {
  display: inline-block;
  padding: 12px 25px;
  background: #EA7C07; /* Login color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: auto; /* Push button to bottom of flex container */
}

.page-index__btn-primary:hover,
.page-index__cta-button--primary:hover {
  background: #c26505; /* Darker shade for hover */
  transform: translateY(-2px);
}

.page-index__btn-secondary,
.page-index__cta-button--secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff; /* White background */
  color: #EA7C07; /* Login color text */
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  border: 2px solid #EA7C07; /* Login color border */
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
  margin-top: auto; /* Push button to bottom of flex container */
}

.page-index__btn-secondary:hover,
.page-index__cta-button--secondary:hover {
  background: #EA7C07; /* Login color background */
  color: #ffffff; /* White text */
  transform: translateY(-2px);
}

.page-index__btn-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* --- HERO主图区域样式 --- */
.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 spacing */
  background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Gradient background for visual appeal */
  overflow: hidden; /* Ensure no overflow from image */
}

.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;
  position: relative;
  z-index: 1; /* Ensure image is behind content if content overlays */
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-index__hero-content {
  position: relative;
  z-index: 2; /* Content above image */
  text-align: center;
  width: 100%;
  max-width: 800px; /* Constrain content width */
  padding: 20px;
  background: rgba(255, 255, 255, 0.85); /* Semi-transparent white background for text readability */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: -80px; /* Overlap with image for integrated look */
}

.page-index__hero-title {
  font-size: 42px;
  color: #26A9E0; /* Primary brand color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__hero-description {
  font-size: 18px;
  color: #333333;
  margin-bottom: 30px;
}

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

.page-index__cta-button {
  padding: 15px 40px;
  font-size: 18px;
  margin-top: 0; /* Override auto margin from general btn styles */
}

/* --- Module 1: Giới Thiệu Trang Chủ --- */
.page-index__introduction-section {
  padding: 80px 0;
  background: #f0f8ff; /* Light blue background */
  color: #333333;
  text-align: center;
}

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

.page-index__feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.page-index__feature-title {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: 600;
}

/* --- Module 2: Liên Kết Truy Cập Nhanh --- */
.page-index__quick-access-section {
  padding: 80px 0;
  background: #ffffff;
  color: #333333;
}

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

/* --- Module 3: Giới Thiệu Trò Chơi/Dịch Vụ Chính --- */
.page-index__games-section {
  padding: 80px 0;
  background: #26A9E0; /* Primary brand color for dark background */
  color: #ffffff; /* White text for dark background */
}

.page-index__games-section .page-index__section-title,
.page-index__games-section .page-index__text-block {
  color: #ffffff; /* Ensure titles and text are white on dark background */
}

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

.page-index__game-card {
  background: #ffffff;
  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;
  display: flex;
  flex-direction: column;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

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

.page-index__game-title {
  font-size: 20px;
  color: #26A9E0;
  margin: 20px 15px 10px;
  font-weight: 600;
}

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

.page-index__game-title a:hover {
  text-decoration: underline;
}

.page-index__game-card p {
  color: #555555;
  padding: 0 15px 20px;
  flex-grow: 1;
}

/* --- Module 4: Ưu Đãi & Khuyến Mãi --- */
.page-index__promotions-section {
  padding: 80px 0;
  background: #f0f8ff;
  color: #333333;
}

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

.page-index__promo-card img {
  width: 100%;
   /* Fixed height for promo images */
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  min-height: 200px; /* Minimum image size */
}

.page-index__promo-card .page-index__card-title {
  margin-top: 20px;
}