/* style/index.css */
:root {
  --primary-color: #FF4500; /* Cam đỏ năng động */
  --secondary-color: #00BFFF; /* Xanh da trời công nghệ */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f8f8;
  --background-dark: #2c3e50; /* Một màu nền tối để tạo độ tương phản */
  --border-color: #e0e0e0;
}

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

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

.page-index h1, .page-index h2, .page-index h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-index h1 {
  font-size: 2.8em;
  color: var(--text-light);
}

.page-index h2 {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-dark);
}

.page-index h3 {
  font-size: 1.6em;
  color: var(--text-dark);
}

.page-index p {
  margin-bottom: 20px;
}

.page-index .text-center {
  text-align: center;
}

.page-index section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-index section:last-of-type {
  border-bottom: none;
}

/* Buttons */
.page-index .btn-primary, .page-index .btn-secondary, .page-index .cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.page-index .btn-primary, .page-index .cta-button {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-index .btn-primary:hover, .page-index .cta-button:hover {
  background-color: #e63900;
  border-color: #e63900;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index .btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-light);
  border: 2px solid var(--secondary-color);
}

.page-index .btn-secondary:hover {
  background-color: #0099cc;
  border-color: #0099cc;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* HERO Section */
.page-index .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); /* Sử dụng gradient thay vì màu solid */
  min-height: 500px;
}

.page-index .hero-container {
  position: relative;
  width: 100%;
  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-width: 900px; /* Giới hạn kích thước ảnh để không quá lớn */
}

.page-index .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Lớp phủ để tăng độ tương phản cho văn bản */
  border-radius: 8px;
}

.page-index .hero-content h1 {
  color: var(--text-light);
  font-size: 3.2em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index .hero-content p {
  color: var(--text-light);
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-index .cta-button {
  font-size: 1.5em;
  padding: 15px 40px;
  margin-top: 20px;
}

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

.page-index .intro-features {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.page-index .feature-item {
  flex: 1 1 300px;
  text-align: center;
  padding: 25px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-index .feature-item:hover {
  transform: translateY(-5px);
}

.page-index .feature-icon {
  width: 120px; /* Tăng kích thước icon */
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-index .feature-item h3 {
  color: var(--primary-color);
  margin-top: 15px;
  font-size: 1.8em;
}

/* Section Quick Links */
.page-index .section-quick-links {
  background-color: #f0f0f0;
  padding: 80px 0;
}

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

.page-index .quick-link-card {
  display: block;
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index .quick-link-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-index .quick-link-card h3 {
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-size: 1.5em;
}

.page-index .quick-link-card p {
  font-size: 1em;
  color: #666;
}

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

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

.page-index .game-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-index .game-card:hover {
  transform: translateY(-5px);
}

.page-index .game-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-index .game-card h3 {
  padding: 20px 15px 10px;
  color: var(--primary-color);
  font-size: 1.6em;
}

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

.page-index .game-card .btn-secondary {
  margin-bottom: 20px;
  padding: 10px 20px;
  font-size: 1em;
}

/* Section Promotions */
.page-index .section-promotions {
  background-color: #f0f0f0;
  padding: 80px 0;
}

.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: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-index .promo-card:hover {
  transform: translateY(-5px);
}

.page-index .promo-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-index .promo-card h3 {
  padding: 20px 15px 10px;
  color: var(--primary-color);
  font-size: 1.5em;
}

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

.page-index .promo-card .btn-primary {
  margin-bottom: 20px;
  padding: 10px 20px;
  font-size: 1em;
}

/* Section Safety & Support */
.page-index .section-safety-support {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 80px 0;
}

.page-index .section-safety-support h2 {
  color: var(--text-light);
}

.page-index .section-safety-support h3 {
  color: var(--secondary-color);
}

.page-index .section-safety-support p {
  color: #ccc;
}

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

.page-index .ss-item {
  text-align: center;
  padding: 25px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index .ss-icon {
  width: 100px; /* Tăng kích thước icon */
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-index .contact-info {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.page-index .contact-info p {
  font-size: 1.1em;
  margin-bottom: 20px;
}

/* Section FAQ */
.page-index .section-faq {
  background-color: var(--background-light);
  padding: 80px 0;
}

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

.page-index .faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.page-index .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-index .faq-question:hover {
  background: #f5f5f5;
}

.page-index .faq-question h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.2em;
}

.page-index .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-index .faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

.page-index .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 20px;
  background: #f9f9f9;
  color: #555;
}

.page-index .faq-item.active .faq-answer {
  max-height: 500px; /* Đủ lớn để chứa nội dung */
  padding: 20px;
  border-top: 1px solid var(--border-color);
}

.page-index .faq-answer p {
  margin: 0;
  font-size: 1em;
}

/* Section Blog */
.page-index .section-blog {
  background-color: #f0f0f0;
  padding: 80px 0;
}

.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: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.page-index .blog-card:hover {
  transform: translateY(-5px);
}

.page-index .blog-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-index .blog-card h3 {
  padding: 20px 15px 10px;
  font-size: 1.4em;
  line-height: 1.4;
}

.page-index .blog-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-index .blog-card h3 a:hover {
  text-decoration: underline;
}

.page-index .blog-card p {
  padding: 0 15px;
  color: #555;
  font-size: 0.95em;
}

.page-index .blog-date {
  display: block;
  font-size: 0.85em;
  color: #888;
  padding: 10px 15px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index .hero-content h1 {
    font-size: 2.5em;
  }
  .page-index h2 {
    font-size: 2em;
  }
  .page-index h3 {
    font-size: 1.4em;
  }
  .page-index .feature-icon, .page-index .ss-icon {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 768px) {
  .page-index .hero-section {
    padding: 40px 15px;
  }
  .page-index .hero-content {
    padding: 15px;
  }
  .page-index .hero-content h1 {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-index .hero-content p {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-index .cta-button {
    font-size: 1.2em;
    padding: 12px 30px;
  }
  .page-index h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-index h3 {
    font-size: 1.2em;
  }
  .page-index section {
    padding: 40px 0;
  }
  .page-index .intro-features, .page-index .link-grid, .page-index .game-categories, .page-index .promo-grid, .page-index .safety-support-grid, .page-index .blog-grid {
    grid-template-columns: 1fr;
  }
  .page-index .feature-item, .page-index .quick-link-card, .page-index .game-card, .page-index .promo-card, .page-index .ss-item, .page-index .blog-card {
    margin-bottom: 20px;
  }
  .page-index .faq-question {
    padding: 15px;
  }
  .page-index .faq-question h3 {
    font-size: 1.1em;
  }
  .page-index .faq-toggle {
    font-size: 20px;
  }
  .page-index .faq-answer {
    padding: 15px;
  }
  .page-index .feature-icon, .page-index .ss-icon {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .page-index .hero-content h1 {
    font-size: 1.6em;
  }
  .page-index .cta-button {
    font-size: 1em;
    padding: 10px 25px;
  }
  .page-index h2 {
    font-size: 1.5em;
  }
  .page-index h3 {
    font-size: 1.1em;
  }
  .page-index .feature-icon, .page-index .ss-icon {
    width: 60px;
    height: 60px;
  }
}