.page-index {
  --primary-color: #FFD700;
  --secondary-color: #8B0000;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f8f8;
  --bg-dark: #222222;
  --border-color: #e0e0e0;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

.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-color: var(--bg-dark); /* Để đảm bảo nền tối cho hình ảnh */
}

.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;
}

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

.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: 3.5em;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-index .hero-content p {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-index .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
}

.page-index .cta-button:hover {
  background: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-index section {
  padding: 60px 20px;
  text-align: center;
}

.page-index section:nth-of-type(even) {
  background-color: var(--bg-light);
}

.page-index h2 {
  font-size: 2.5em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-index h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-index h3 {
  font-size: 1.8em;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.page-index p {
  font-size: 1.1em;
  color: var(--text-dark);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index .intro-section .intro-container,
.page-index .quick-access-section .quick-access-container,
.page-index .games-section .games-container,
.page-index .promotions-section .promotions-container,
.page-index .security-support-section .security-support-container,
.page-index .faq-section .faq-container,
.page-index .blog-section .blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-index .feature-item {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index .feature-item img {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-index .feature-item h3 {
  color: var(--secondary-color);
}

.page-index .quick-access-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-index .quick-access-section h2, .page-index .quick-access-section p {
  color: var(--text-light);
}

.page-index .quick-access-section h2::after {
  background-color: var(--primary-color);
}

.page-index .access-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.page-index .access-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
}

.page-index .access-button:hover {
  background: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-index .games-section {
  background-color: var(--bg-light);
}

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

.page-index .game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-index .game-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-index .game-card h3 {
  padding: 15px 20px 0;
  color: var(--secondary-color);
  font-size: 1.5em;
}

.page-index .game-card h3 .game-link {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-index .game-card h3 .game-link:hover {
  color: var(--primary-color);
}

.page-index .game-card p {
  padding: 0 20px 15px;
  font-size: 0.95em;
  color: var(--text-dark);
}

.page-index .game-card .btn-game {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-index .game-card .btn-game:hover {
  background: var(--secondary-color);
  color: var(--text-light);
}

.page-index .promotions-section {
  background-color: #ffffff;
}

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

.page-index .promo-card {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index .promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-index .promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--secondary-color);
}

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

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

.page-index .promo-card h3 .promo-link:hover {
  color: var(--text-light);
}

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

.page-index .promo-card .btn-promo {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-index .promo-card .btn-promo:hover {
  background: var(--text-light);
  color: var(--secondary-color);
}

.page-index .security-support-section {
  background-color: var(--bg-light);
}

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

.page-index .security-item {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index .security-item img {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-index .security-item h3 {
  color: var(--secondary-color);
}

.page-index .security-item .btn-support {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 20px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-index .security-item .btn-support:hover {
  background: var(--primary-color);
  color: var(--text-dark);
}

.page-index .faq-section {
  background-color: #ffffff;
}

.page-index .faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-index .faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.page-index .faq-question:hover {
  background: var(--bg-light);
}

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

.page-index .faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.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 25px;
  background: #fcfcfc;
  color: var(--text-dark);
}

.page-index .faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding: 15px 25px;
  border-top: 1px solid var(--border-color);
}

.page-index .faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.8;
  color: var(--text-dark);
}

.page-index .blog-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-index .blog-section h2, .page-index .blog-section p {
  color: var(--text-light);
}

.page-index .blog-section h2::after {
  background-color: var(--primary-color);
}

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

.page-index .article-card {
  background-color: #333333;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index .article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-index .article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid #444444;
}

.page-index .article-card h3 {
  padding: 15px 20px 0;
  color: var(--primary-color);
  font-size: 1.3em;
}

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

.page-index .article-card h3 .article-link:hover {
  color: var(--text-light);
}

.page-index .article-card p {
  padding: 0 20px 15px;
  font-size: 0.9em;
  color: #bbbbbb;
}

.page-index .article-card .btn-read-more {
  display: inline-block;
  padding: 8px 15px;
  margin: 0 20px 20px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-index .article-card .btn-read-more:hover {
  background: var(--primary-color);
  color: var(--text-dark);
}

.page-index .view-all-articles {
  margin-top: 50px;
}

.page-index .btn-view-all {
  display: inline-block;
  padding: 15px 35px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-index .btn-view-all:hover {
  background: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index .hero-content h1 {
    font-size: 2.8em;
  }
  .page-index .hero-content p {
    font-size: 1.1em;
  }
  .page-index h2 {
    font-size: 2em;
  }
  .page-index h3 {
    font-size: 1.6em;
  }
  .page-index p {
    font-size: 1em;
  }
  .page-index .feature-item,
  .page-index .game-card,
  .page-index .promo-card,
  .page-index .security-item,
  .page-index .article-card {
    max-width: none;
    flex-basis: calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .page-index .hero-section {
    padding: 40px 15px;
  }
  .page-index .hero-image img {
    border-radius: 4px;
  }
  .page-index .hero-content h1 {
    font-size: 2.2em;
  }
  .page-index .hero-content p {
    font-size: 1em;
  }
  .page-index .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-index section {
    padding: 40px 15px;
  }
  .page-index h2 {
    font-size: 1.8em;
  }
  .page-index h3 {
    font-size: 1.4em;
  }
  .page-index .intro-features,
  .page-index .quick-access-section .access-links,
  .page-index .game-categories,
  .page-index .promo-cards,
  .page-index .security-features,
  .page-index .blog-articles {
    flex-direction: column;
    gap: 20px;
  }
  .page-index .feature-item,
  .page-index .game-card,
  .page-index .promo-card,
  .page-index .security-item,
  .page-index .article-card {
    flex-basis: 100%;
    width: 100%;
  }
  .page-index .quick-access-section .access-button {
    width: 100%;
  }
  .page-index .faq-question {
    padding: 15px 20px;
  }
  .page-index .faq-question h3 {
    font-size: 1.1em;
  }
  .page-index .faq-toggle {
    font-size: 1.5em;
  }
  .page-index .faq-answer {
    padding: 0 20px;
  }
  .page-index .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-index .hero-content h1 {
    font-size: 1.8em;
  }
  .page-index .hero-content p {
    font-size: 0.9em;
  }
  .page-index .cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }
  .page-index h2 {
    font-size: 1.5em;
  }
  .page-index h3 {
    font-size: 1.2em;
  }
  .page-index p {
    font-size: 0.9em;
  }
}