/* style/index-core-advantages.css */
.page-index-core-advantages {
  color: #f0f0f0; /* Sử dụng màu chữ sáng trên nền tối của body */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #0d1117;
}

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

.page-index-core-advantages__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* HERO Section Styles */
.page-index-core-advantages__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: 80px; /* Khoảng cách cho navbar cố định */
}

.page-index-core-advantages__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-index-core-advantages__hero-image {
  width: 100%;
  margin: 0;
}

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

/* Product Showcase Section Styles */
.page-index-core-advantages__products-section {
  width: 100%;
  padding: 60px 20px;
  background: #0d1117; /* Nền tối đồng bộ với body */
}

.page-index-core-advantages__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* Desktop: 4 nhỏ, 2 lớn */
  gap: 20px;
}

.page-index-core-advantages__products-grid {
  display: grid;
  gap: 20px;
}

.page-index-core-advantages__products-grid--small {
  grid-template-columns: repeat(4, 1fr);
}

.page-index-core-advantages__products-grid--large {
  grid-template-columns: repeat(2, 1fr);
}

.page-index-core-advantages__product-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05); /* Nền hơi trong suốt */
  border: 3px solid #ffd700; /* Viền vàng */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-core-advantages__product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.page-index-core-advantages__product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-index-core-advantages__product-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.page-index-core-advantages__product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* General Section Styles */
.page-index-core-advantages__main-heading {
  font-size: 3.2em;
  color: #ffd700; /* Tiêu đề chính màu vàng */
  margin-bottom: 25px;
  font-weight: 700;
  line-height: 1.2;
}

.page-index-core-advantages__section-title {
  font-size: 2.5em;
  color: #ffd700; /* Tiêu đề phụ màu vàng */
  margin-bottom: 20px;
  font-weight: 600;
}

.page-index-core-advantages__text-block {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-core-advantages__dark-bg {
  background-color: #003366;
  color: #ffffff;
}

/* Quick Access Section */
.page-index-core-advantages__quick-access-section {
  background-color: #1a1e24;
}

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

.page-index-core-advantages__button {
  display: block;
  padding: 15px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-index-core-advantages__button--primary {
  background-color: #ffd700;
  color: #003366;
}

.page-index-core-advantages__button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-index-core-advantages__button--secondary {
  background-color: #003366;
  color: #ffd700;
  border: 2px solid #ffd700;
}

.page-index-core-advantages__button--secondary:hover {
  background-color: #002244;
  transform: translateY(-2px);
}

.page-index-core-advantages__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
  display: inline-block;
  margin-top: 15px;
}

/* Games Section */
.page-index-core-advantages__games-section {
  text-align: left;
}

.page-index-core-advantages__game-category {
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
}

.page-index-core-advantages__game-category:last-child {
  border-bottom: none;
}

.page-index-core-advantages__game-title {
  font-size: 1.8em;
  color: #ffd700;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index-core-advantages__game-content {
  display: flex;
  align-items: flex-start;
  gap: 25px;
}

.page-index-core-advantages__game-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 2px solid #003366;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index-core-advantages__game-content p {
  font-size: 1em;
  color: #f0f0f0;
  text-align: justify;
}

/* Promotions Section */
.page-index-core-advantages__promotions-section {
  background-color: #1a1e24;
}

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

.page-index-core-advantages__promo-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #003366;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index-core-advantages__promo-card:hover {
  transform: translateY(-8px);
}

.page-index-core-advantages__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #ffd700;
}

.page-index-core-advantages__promo-title {
  font-size: 1.5em;
  color: #ffd700;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index-core-advantages__promo-description {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Security and Support Section */
.page-index-core-advantages__security-support-section {
  background-color: #003366;
}

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

.page-index-core-advantages__feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid #ffd700;
}

.page-index-core-advantages__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-index-core-advantages__feature-title {
  font-size: 1.4em;
  color: #ffd700;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-index-core-advantages__feature-item p {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-index-core-advantages__contact-cta {
  margin-top: 40px;
}

/* FAQ Section */
.page-index-core-advantages__faq-section {
  background-color: #0d1117;
  text-align: left;
}

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

.page-index-core-advantages__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-index-core-advantages__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-index-core-advantages__faq-item.active .page-index-core-advantages__faq-answer {
  max-height: 2000px !important; /* Sử dụng !important và giá trị lớn */
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
}

.page-index-core-advantages__faq-answer p {
  color: #cccccc;
  font-size: 1em;
  line-height: 1.6;
}

.page-index-core-advantages__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1a1e24;
  border: 1px solid #003366;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index-core-advantages__faq-question:hover {
  background: #003366;
  border-color: #ffd700;
}

.page-index-core-advantages__faq-question:active {
  background: #002244;
}

.page-index-core-advantages__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #f0f0f0;
}

.page-index-core-advantages__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #ffd700;
  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-core-advantages__faq-item.active .page-index-core-advantages__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Để biểu tượng '+' xoay thành 'x' hoặc '-' */
}

/* Blog Section */
.page-index-core-advantages__blog-section {
  background-color: #003366;
}

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

.page-index-core-advantages__blog-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  transition: transform 0.3s ease;
  border: 1px solid #1a1e24;
}

.page-index-core-advantages__blog-card:hover {
  transform: translateY(-8px);
}

.page-index-core-advantages__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-index-core-advantages__blog-content {
  padding: 20px;
}

.page-index-core-advantages__blog-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-index-core-advantages__blog-title a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index-core-advantages__blog-title a:hover {
  color: #ffffff;
}

.page-index-core-advantages__blog-excerpt {
  font-size: 0.95em;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-index-core-advantages__read-more {
  color: #ffd700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index-core-advantages__read-more:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-core-advantages__main-heading {
    font-size: 2.8em;
  }

  .page-index-core-advantages__section-title {
    font-size: 2.2em;
  }

  .page-index-core-advantages__products-container {
    grid-template-columns: 1fr; /* Stack grids vertically */
  }
  
  .page-index-core-advantages__products-grid--small {
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid for small */
  }

  .page-index-core-advantages__products-grid--large {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for large */
  }

  .page-index-core-advantages__game-content {
    flex-direction: column;
    align-items: center;
  }

  .page-index-core-advantages__game-image {
    width: 100%;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .page-index-core-advantages__hero-section {
    margin-top: 60px; /* Điều chỉnh cho navbar di động */
  }

  .page-index-core-advantages__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index-core-advantages__section {
    padding: 40px 15px;
  }

  .page-index-core-advantages__container {
    padding: 0 10px;
  }

  .page-index-core-advantages__main-heading {
    font-size: 2em;
  }

  .page-index-core-advantages__section-title {
    font-size: 1.8em;
  }

  .page-index-core-advantages__text-block {
    font-size: 1em;
  }

  /* Mobile Product Grid */
  .page-index-core-advantages__products-section {
    padding: 40px 15px;
  }
  
  .page-index-core-advantages__products-container {
    grid-template-columns: 1fr; /* Stack grids vertically */
    gap: 15px;
  }
  
  .page-index-core-advantages__products-grid--small {
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid for small */
    gap: 15px;
  }
  
  .page-index-core-advantages__products-grid--small .page-index-core-advantages__product-card {
    aspect-ratio: 1 / 1; /* Square cards */
  }
  
  .page-index-core-advantages__products-grid--small .page-index-core-advantages__product-card-image {
    height: 100%;
    aspect-ratio: 1 / 1; /* Square images */
  }
  
  .page-index-core-advantages__products-grid--large {
    grid-template-columns: 1fr; /* Each large card takes full width */
    gap: 15px;
  }
  
  .page-index-core-advantages__products-grid--large .page-index-core-advantages__product-card {
    aspect-ratio: 1 / 1; /* Square cards */
  }
  
  .page-index-core-advantages__products-grid--large .page-index-core-advantages__product-card-image {
    height: 100%;
    aspect-ratio: 1 / 1; /* Square images */
  }

  .page-index-core-advantages__link-grid,
  .page-index-core-advantages__promo-grid,
  .page-index-core-advantages__feature-grid,
  .page-index-core-advantages__blog-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-index-core-advantages__button {
    font-size: 1em;
    padding: 12px 20px;
  }

  .page-index-core-advantages__game-image {
    height: 180px;
  }

  .page-index-core-advantages__game-title {
    font-size: 1.5em;
  }

  .page-index-core-advantages__promo-title,
  .page-index-core-advantages__feature-title,
  .page-index-core-advantages__blog-title {
    font-size: 1.2em;
  }

  .page-index-core-advantages__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-index-core-advantages__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-index-core-advantages__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-index-core-advantages__faq-answer {
    padding: 0 15px;
  }
  
  .page-index-core-advantages__faq-item.active .page-index-core-advantages__faq-answer {
    padding: 15px !important;
  }

  .page-index-core-advantages img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index-core-advantages__section,
  .page-index-core-advantages__card,
  .page-index-core-advantages__container,
  .page-index-core-advantages__promo-card,
  .page-index-core-advantages__feature-item,
  .page-index-core-advantages__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}