/* style/index.css */
/* 
 * Màu sắc chính: #26A9E0 (Xanh lam nhạt)
 * Màu phụ: #FFFFFF (Trắng)
 * Màu đăng nhập: #EA7C07 (Cam)
 * Màu nền: #FFFFFF (Trắng)
 * Màu chữ mặc định: #333333
 */

/* Cấu hình chung cho trang chủ */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Mặc định chữ đen trên nền trắng */
  background-color: #ffffff; /* Nền trắng cho toàn bộ trang */
}

/* 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); /* Đảm bảo không bị header che */
  background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Gradient cho hero */
  color: #ffffff; /* Chữ trắng trên nền xanh/trắng */
}

.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;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.page-index__hero-content h1 {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-index__hero-content p {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-index__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Cho phép xuống dòng trên mobile */
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  text-align: center;
}

.page-index__cta-button--primary {
  background: #EA7C07; /* Màu đăng nhập */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-index__cta-button--primary:hover {
  background: #d66f06;
  border-color: #d66f06;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.page-index__cta-button--secondary {
  background: #26A9E0; /* Màu chủ đạo */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-index__cta-button--secondary:hover {
  background: #1e8dc2;
  border-color: #1e8dc2;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* General Section Styling */
.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Màu chủ đạo cho tiêu đề */
}

.page-index__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #555555;
}

.page-index__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

.page-index__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 80px 0;
}

.page-index__dark-bg .page-index__section-title,
.page-index__dark-bg .page-index__section-description {
  color: #ffffff;
}

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

.page-index__intro-item {
  background: #f9f9f9;
  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;
}

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

.page-index__intro-item img {
  width: 100%;
  max-width: 400px; /* Đảm bảo hình ảnh không quá nhỏ */
  height: 300px; /* Chiều cao cố định để hình ảnh đồng đều */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__intro-item h3 {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-index__intro-item p {
  font-size: 1em;
  color: #555555;
}

/* Quick Access Section */
.page-index__access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-index__access-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-index__access-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.page-index__access-card-title {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-index__access-card p {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
  color: #f0f0f0;
}

.page-index__access-card-btn {
  display: inline-block;
  padding: 10px 25px;
  background: #EA7C07; /* Màu đăng nhập */
  color: #ffffff;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
}

.page-index__access-card:hover .page-index__access-card-btn {
  background: #d66f06;
}

/* Games Section */
.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: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

.page-index__game-card img {
  width: 100%;
  height: 250px; /* Chiều cao cố định cho ảnh game */
  object-fit: cover;
  display: block;
}

.page-index__game-card h3 {
  font-size: 1.6em;
  margin: 20px 15px 10px 15px;
}

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

.page-index__game-card h3 a:hover {
  color: #EA7C07;
}

.page-index__game-card p {
  font-size: 1em;
  color: #555555;
  padding: 0 15px 20px 15px;
}

.page-index__game-card .page-index__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  margin-bottom: 25px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__game-card .page-index__btn-primary:hover {
  background: #1e8dc2;
  transform: translateY(-2px);
}

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

.page-index__promo-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-index__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.page-index__promo-card img {
  width: 100%;
  height: 250px; /* Chiều cao cố định cho ảnh khuyến mãi */
  object-fit: cover;
  display: block;
}

.page-index__promo-card h3 {
  font-size: 1.6em;
  margin: 20px 15px 10px 15px;
}

.page-index__promo-card h3 a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__promo-card h3 a:hover {
  color: #f0f0f0;
}

.page-index__promo-card p {
  font-size: 1em;
  color: #f0f0f0;
  padding: 0 15px 20px 15px;
}

.page-index__promo-card .page-index__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff;
  color: #26A9E0;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  margin-bottom: 25px;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
  border: 2px solid #ffffff;
  box-sizing: border-box;
  text-align: center;
}

.page-index__promo-card .page-index__btn-secondary:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
}

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

.page-index__info-card {
  background: #f9f9f9;
  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;
}

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

.page-index__info-card img {
  width: 100%;
  max-width: 400px; /* Đảm bảo hình ảnh không quá nhỏ */
  height: 250px; /* Chiều cao cố định */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__info-card h3 {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-index__info-card p {
  font-size: 1em;
  color: #555555;
}

.page-index__contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}

/* FAQ Section */
.page-index__faq-section {
  background-color: #26A9E0; /* Nền màu chủ đạo */
  color: #ffffff;
  padding: 80px 0;
}

.page-index__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ容器样式 */
.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ默认状态 - 答案隐藏 */
.page-index__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height */
.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng !important và giá trị đủ lớn */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9; /* Nền sáng cho câu trả lời */
  border-radius: 0 0 5px 5px;
  color: #333333; /* Chữ đen trên nền sáng */
}

/* 问题样式 */
.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-index__faq-question:active {
  background: #eeeeee;
}

/* 问题标题样式 */
.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #333333; /* Chữ đen trên nền sáng */
}

/* 切换图标 */
.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #26A9E0; /* Màu chủ đạo khi mở */
  transform: rotate(45deg); /* Thêm hiệu ứng xoay cho dấu + */
}

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

.page-index__blog-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-index__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.page-index__blog-card img {
  width: 100%;
  height: 220px; /* Chiều cao cố định cho ảnh blog */
  object-fit: cover;
  display: block;
}

.page-index__blog-card h3 {
  font-size: 1.4em;
  margin: 20px 15px 10px 15px;
}

.page-index__blog-card h3 a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-card h3 a:hover {
  color: #EA7C07;
}

.page-index__blog-card p {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 20px 15px;
}

/* Buttons general styling for other sections */
.page-index__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #26A9E0;
  box-sizing: border-box;
  text-align: center;
}

.page-index__btn-primary:hover {
  background: #1e8dc2;
  border-color: #1e8dc2;
  transform: translateY(-2px);
}