/* style/index.css */

/* Biến màu sắc */
:root {
  --primary-color: #0A2342;
  --secondary-color: #FFD700;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f4f4f4;
  --background-dark: #0A2342;
  --border-color: #e0e0e0;
}

/* Base styles for page-index */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Body background is light, so use dark text */
  background-color: var(--background-light);
  padding-bottom: 60px; /* Add some padding at the bottom before footer */
}

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

.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-color-light);
}

.page-index__section-text {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__section-text--light {
  color: rgba(255, 255, 255, 0.9);
}

/* CTA Button Styles */
.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.page-index__cta-button:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-index__cta-button--primary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.page-index__cta-button--secondary {
  background: transparent;
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  margin-left: 20px;
}

.page-index__cta-button--secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.page-index__btn-small {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  box-sizing: border-box;
}

.page-index__btn-small:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-1px);
}

/* Image base styles */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* 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); /* Fixed header offset */
  background-color: var(--primary-color);
  overflow: hidden;
}

.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;
  max-height: 600px;
  overflow: hidden;
}

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

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

.page-index__hero-title {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Module 1: Intro Section */
.page-index__intro-section {
  padding: 80px 0;
  background-color: var(--background-light);
}

.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;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-index__feature-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-index__feature-description {
  font-size: 16px;
  color: var(--text-color-dark);
}

/* Module 2: Quick Links Section */
.page-index__quick-links-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

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

.page-index__quick-link-item {
  background: var(--primary-color);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: var(--text-color-light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-index__quick-link-item:hover {
  transform: translateY(-5px);
  background-color: var(--secondary-color);
  color: var(--primary-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-index__quick-link-item:hover .page-index__link-icon {
  color: var(--primary-color);
}

.page-index__quick-link-item:hover .page-index__link-title {
  color: var(--primary-color);
}

.page-index__quick-link-item:hover .page-index__link-description {
  color: rgba(10, 35, 66, 0.8);
}

.page-index__link-icon {
  font-size: 48px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.page-index__link-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--text-color-light);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.page-index__link-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

/* Module 3: Games Section */
.page-index__games-section {
  padding: 80px 0;
  background-color: var(--background-light);
}

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

.page-index__game-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.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: 220px;
  object-fit: cover;
  border-radius: 0;
}

.page-index__game-card h3 {
  padding: 20px 20px 10px;
  margin: 0;
}

.page-index__game-card h3 a {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__game-card h3 a:hover {
  color: var(--secondary-color);
}

.page-index__game-description {
  font-size: 15px;
  color: var(--text-color-dark);
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-index__game-card .page-index__btn-small {
  margin: 0 20px 20px;
  align-self: flex-start;
}