/* style/index.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-button-color: #C30808;
  --login-button-color: #C30808;
  --text-on-dark-bg: #FFFFFF;
  --text-on-light-bg: #333333;
  --button-text-color: #FFFF00;
  --card-bg-light: #FFFFFF;
  --card-bg-dark: #017439;
  --section-bg-light: #FFFFFF;
  --section-bg-dark: #017439;
  --border-color: #e0e0e0;
}

.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-on-light-bg);
  background-color: var(--section-bg-light);
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  margin-top: 40px;
}

.page-index__section-title--light {
  color: var(--text-on-dark-bg);
}

.page-index__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-on-light-bg);
}

.page-index__section-description--light {
  color: var(--text-on-dark-bg);
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-on-dark-bg);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__cta-button:hover {
  background: #005a2d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--primary {
  background: var(--register-button-color);
  color: var(--button-text-color);
}

.page-index__cta-button--secondary {
  background: var(--login-button-color);
  color: var(--button-text-color);
}

/* 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);
  background-color: #017439;
}

.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;
  min-width: 200px;
  min-height: 200px;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-on-dark-bg);
}

.page-index__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-on-dark-bg);
}

.page-index__hero-description {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 30px;
  color: var(--text-on-dark-bg);
}

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

/* MÔ ĐUN 1: Giới Thiệu E88 */
.page-index__intro-section {
  padding: 80px 0;
  background-color: var(--section-bg-light);
  color: var(--text-on-light-bg);
}

.page-index__intro-content {
  text-align: center;
}

.page-index__intro-content p {
  max-width: 900px;
  margin: 0 auto 40px auto;
  font-size: 17px;
}

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

.page-index__feature-item {
  background: var(--card-bg-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  border: 1px solid var(--border-color);
}

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

/* MÔ ĐUN 2: Liên Kết Truy Cập Nhanh & Dự Phòng */
.page-index__quick-access-section {
  padding: 80px 0;
  background-color: var(--section-bg-dark);
  color: var(--text-on-dark-bg);
  text-align: center;
}

.page-index__access-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-index__access-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--register-button-color);
  color: var(--button-text-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__access-button:hover {
  background: #a80707;
}

.page-index__access-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  margin-top: 30px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* MÔ ĐUN 3: Giới Thiệu Các Trò Chơi/Dịch Vụ Chính */
.page-index__games-section {
  padding: 80px 0;
  background-color: var(--section-bg-light);
  color: var(--text-on-light-bg);
}

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

.page-index__game-card {
  background: var(--card-bg-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--border-color);
}

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

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

.page-index__game-title a {
  color: var(--primary-color);
  text-decoration: none;
}

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

.page-index__game-description {
  padding: 0 20px;
  font-size: 16px;
  margin-bottom: 20px;
}

.page-index__game-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--text-on-dark-bg);
  text-decoration: none;
  border-radius: 5px;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__game-button:hover {
  background: #005a2d;
}

/* MÔ ĐUN 4: Ưu Đãi & Khuyến Mãi */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: var(--section-bg-dark);
  color: var(--text-on-dark-bg);
  text-align: center;
}

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

.page-index__promo-card {
  background: var(--card-bg-dark);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-index__promo-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--text-on-dark-bg);
  margin-bottom: 15px;
}

.page-index__promo-description {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 25px;
}

.page-index__promo-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--register-button-color);
  color: var(--button-text-color);
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__promo-button:hover {
  background: #a80707;
}

/* MÔ ĐUN 5: An Toàn & Chăm Sóc Khách Hàng */
.page-index__security-support-section {
  padding: 80px 0;
  background-color: var(--section-bg-light);
  color: var(--text-on-light-bg);
}

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

.page-index__security-card {
  background: var(--card-bg-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-index__security-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

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