/* style/index.css */
/* 
 * Trang Chủ KU
 * Thiết kế và phát triển bởi AI
 * 
 * Lưu ý: Tất cả các class đều tuân thủ quy tắc BEM (page-index__element-name)
 * và chỉ ảnh hưởng đến nội dung trong <main class="page-content page-index">.
 */

/* --- Biến CSS cho màu sắc --- */
:root {
  --primary-color: #1A202C; /* Màu chủ đạo: Dark Blue/Black */
  --secondary-color: #FFD700; /* Màu phụ trợ: Gold */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0F141C; /* Body background from shared.css */
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
}

/* --- Base styles for page-index (main content area) --- */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Main text color for dark body background */
  background-color: var(--bg-dark); /* Ensure consistency if section doesn't override */
  padding-bottom: 60px; /* Space 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: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--secondary-color); /* Gold for main titles */
  line-height: 1.2;
}

.page-index__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-light);
}

/* --- 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); /* Ensure space for fixed header */
  background: var(--primary-color); /* Fallback/background for content */
  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;
  border-radius: 12px;
  overflow: hidden; /* Ensure rounded corners for image */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-index__hero-content h1 {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 15px;
  color: var(--secondary-color); /* Gold for H1 */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
}

.page-index__hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-index__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--secondary-color); /* Gold button */
  color: var(--primary-color); /* Dark text on gold */
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  border: none;
  cursor: pointer;
}

.page-index__cta-button:hover {
  background: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

/* --- Module 1: Introduction Section --- */
.page-index__introduction-section {
  padding: 80px 0;
  background: var(--bg-light); /* Light background for introduction */
  color: var(--text-dark); /* Dark text for light background */
}

.page-index__introduction-section .page-index__section-title {
  color: var(--primary-color); /* Dark title on light background */
}

.page-index__introduction-section .page-index__section-description {
  color: var(--text-dark);
}

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

.page-index__feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

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

.page-index__feature-item img {
   /* Adjusting for 200x200px requirement, but displayed smaller for icon-like purpose */
  
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); /* Allowed shadow, not color filter */
  border-radius: 0; /* No border-radius for these images if they are more iconic */
  max-width: 100%; /* Ensure responsiveness */
}

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

.page-index__feature-item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
}

/* --- Module 2: Quick Access Section --- */
.page-index__quick-access-section {
  padding: 80px 0;
  background: var(--primary-color); /* Dark background */
  color: var(--text-light); /* Light text */
}

.page-index__quick-access-section .page-index__section-title {
  color: var(--secondary-color);
}

.page-index__quick-access-section .page-index__section-description {
  color: var(--text-light);
}

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

.page-index__quick-link-button {
  display: block;
  padding: 15px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-index__quick-link-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(255, 215, 0, 0.5);
}

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

.page-index__games-section .page-index__section-title {
  color: var(--primary-color);
}

.page-index__games-section .page-index__section-description {
  color: var(--text-dark);
}

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

.page-index__game-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.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;
  max-width: 100%;
}

.page-index__game-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 20px 20px 10px 20px;
  color: var(--primary-color);
  line-height: 1.3;
}

.page-index__game-card h3 a {
  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-card p {
  font-size: 16px;
  padding: 0 20px 20px 20px;
  color: var(--text-dark);
}