/* style/index-latest-games-features.css */
.page-index-latest-games-features {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Màu chữ mặc định cho nền tối */
  background-color: #121212; /* Màu nền body từ shared.css */
}

/* HERO Section */
.page-index-latest-games-features__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* Khoảng cách cho fixed header */
  margin-top: 0;
  background-color: #121212;
}

.page-index-latest-games-features__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-index-latest-games-features__hero-image {
  width: 100%;
  margin: 0;
}

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

/* LOGO Carousel Section */
.page-index-latest-games-features__logo-carousel-section {
  width: 100%;
  padding: 30px 20px;
  background-color: #0d0d0d; /* Nền tối hơn một chút so với body */
  border-bottom: 1px solid #2a2a2a;
}

.page-index-latest-games-features__logo-carousel-container {
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.page-index-latest-games-features__logo-carousel {
  display: flex;
  gap: 15px;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.page-index-latest-games-features__logo-carousel::-webkit-scrollbar {
  display: none;
}

.page-index-latest-games-features__logo-item {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #2a2a2a; /* Nền tối cho logo */
  border: 1px solid #3a3a3a;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto;
}

.page-index-latest-games-features__logo-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.page-index-latest-games-features__logo-item a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px;
  box-sizing: border-box;
  pointer-events: auto;
}

.page-index-latest-games-features__logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Games Section */
.page-index-latest-games-features__games-section {
  width: 100%;
  padding: 60px 20px;
  background-color: #1a1a1a; /* Nền tối cho phần game */
}

.page-index-latest-games-features__games-container {
  max-width: 1400px;
  margin: 0 auto;
}

.page-index-latest-games-features__games-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  align-items: start;
}

.page-index-latest-games-features__featured-game-area {
  width: 100%;
}

.page-index-latest-games-features__featured-game-title {
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: #ffc107; /* Màu vàng phụ trợ */
  text-align: left;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-index-latest-games-features__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background-color: #2a2a2a;
  border: 1px solid #3a3a3a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-latest-games-features__featured-game:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.page-index-latest-games-features__featured-game-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-index-latest-games-features__featured-game-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.page-index-latest-games-features__featured-game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-index-latest-games-features__games-grid-area {
  width: 100%;
}

.page-index-latest-games-features__games-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
}

.page-index-latest-games-features__games-tab {
  background: none;
  border: none;
  padding: 0;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #888888; /* Màu xám cho tab không hoạt động */
  transition: color 0.3s ease;
  text-decoration: none;
  position: relative;
  text-transform: uppercase;
}

.page-index-latest-games-features__games-tab:hover {
  color: #ffffff;
}

.page-index-latest-games-features__games-tab.active {
  color: #007bff; /* Màu xanh chính cho tab hoạt động */
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.page-index-latest-games-features__games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  display: none;
}

.page-index-latest-games-features__games-grid.active {
  display: grid;
}

.page-index-latest-games-features__game-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background-color: #2a2a2a;
  border: 1px solid #3a3a3a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-latest-games-features__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-index-latest-games-features__game-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-index-latest-games-features__game-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.page-index-latest-games-features__game-card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 10px 0 12px 0;
  padding: 0 8px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

/* General Section Styles */
.page-index-latest-games-features__section {
  padding: 60px 20px;
  background-color: #121212; /* Nền giống body */
  color: #ffffff;
}

.page-index-latest-games-features__section:nth-child(even) {
  background-color: #0d0d0d; /* Nền xen kẽ */
}

.page-index-latest-games-features__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index-latest-games-features__heading {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #007bff; /* Màu xanh chính */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-index-latest-games-features__sub-heading {
  font-size: 22px;
  font-weight: 600;
  color: #ffc107; /* Màu vàng phụ trợ */
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-index-latest-games-features__paragraph {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 15px;
  color: #f0f0f0;
}

/* Intro Section */
.page-index-latest-games-features__intro-section {
  background-color: #1a1a1a;
}

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

.page-index-latest-games-features__feature-item {
  background-color: #2a2a2a;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #3a3a3a;
}

.page-index-latest-games-features__feature-item .page-index-latest-games-features__sub-heading {
  color: #007bff;
}

/* Quick Access Section */
.page-index-latest-games-features__quick-access-section {
  background-color: #0d0d0d;
}

.page-index-latest-games-features__link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-index-latest-games-features__button-link {
  display: block;
  background-color: #007bff;
  color: #ffffff;
  text-align: center;
  padding: 15px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.page-index-latest-games-features__button-link:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

/* Core Games Section */
.page-index-latest-games-features__core-games-section {
  background-color: #1a1a1a;
}

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

.page-index-latest-games-features__game-feature-card {
  background-color: #2a2a2a;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #3a3a3a;
  text-align: center;
}

.page-index-latest-games-features__game-feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index-latest-games-features__game-feature-card .page-index-latest-games-features__sub-heading {
  color: #ffc107;
}

.page-index-latest-games-features__read-more-link {
  display: inline-block;
  margin-top: 20px;
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index-latest-games-features__read-more-link:hover {
  color: #ffc107;
}

/* Promotion Section */
.page-index-latest-games-features__promotion-section {
  background-color: #0d0d0d;
}

.page-index-latest-games-features__promotion-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-index-latest-games-features__promotion-item {
  background-color: #2a2a2a;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #3a3a3a;
}

.page-index-latest-games-features__promotion-item .page-index-latest-games-features__sub-heading {
  color: #007bff;
}

.page-index-latest-games-features__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-index-latest-games-features__button-primary {
  background-color: #ffc107;
  color: #121212;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-index-latest-games-features__button-primary:hover {
  background-color: #e0a800;
  transform: translateY(-3px);
}

/* Security Section */
.page-index-latest-games-features__security-section {
  background-color: #1a1a1a;
}

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

.page-index-latest-games-features__security-feature-card {
  background-color: #2a2a2a;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #3a3a3a;
}

.page-index-latest-games-features__security-feature-card .page-index-latest-games-features__sub-heading {
  color: #ffc107;
}

/* FAQ Section */
.page-index-latest-games-features__faq-section {
  background-color: #0d0d0d;
}

.page-index-latest-games-features__faq-list {
  margin-top: 40px;
}

.page-index-latest-games-features__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-index-latest-games-features__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;
  color: #f0f0f0;
}

.page-index-latest-games-features__faq-item.active .page-index-latest-games-features__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background-color: #2a2a2a; /* Nền cho câu trả lời */
  border-radius: 0 0 5px 5px;
}

.page-index-latest-games-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background-color: #1a1a1a; /* Nền cho câu hỏi */
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index-latest-games-features__faq-question:hover {
  background-color: #2a2a2a;
  border-color: #4a4a4a;
}

.page-index-latest-games-features__faq-question:active {
  background-color: #3a3a3a;
}

.page-index-latest-games-features__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.page-index-latest-games-features__faq-toggle {
  font-size: 26px;
  font-weight: bold;
  line-height: 1;
  color: #007bff;
  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-latest-games-features__faq-item.active .page-index-latest-games-features__faq-toggle {
  color: #ffc107;
  transform: rotate(45deg);
}

.page-index-latest-games-features__faq-answer a {
  color: #007bff;
  text-decoration: underline;
}

.page-index-latest-games-features__faq-answer a:hover {
  color: #ffc107;
}

/* Blog Section */
.page-index-latest-games-features__blog-section {
  background-color: #1a1a1a;
}

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

.page-index-latest-games-features__blog-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #3a3a3a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-latest-games-features__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index-latest-games-features__blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-index-latest-games-features__blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-index-latest-games-features__blog-card-content {
  padding: 20px;
}

.page-index-latest-games-features__blog-card-title {
  font-size: 18px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
  color: #007bff;
}

.page-index-latest-games-features__blog-card-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin-bottom: 15px;
  line-height: 1.6;
}

.page-index-latest-games-features__blog-card-date {
  font-size: 13px;
  color: #888888;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-latest-games-features__games-layout {
    grid-template-columns: 1fr;
  }
  
  .page-index-latest-games-features__games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .page-index-latest-games-features__featured-game-image {
    height: 400px;
  }
  
  .page-index-latest-games-features__heading {
    font-size: 32px;
  }
  
  .page-index-latest-games-features__sub-heading {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-index-latest-games-features__hero-section {
    padding-top: 10px;
  }
  
  .page-index-latest-games-features__logo-carousel-section {
    padding: 20px 15px;
  }
  
  .page-index-latest-games-features__logo-carousel {
    gap: 12px;
  }

  .page-index-latest-games-features__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
  }

  .page-index-latest-games-features__logo-item a {
    padding: 8px;
  }
  
  .page-index-latest-games-features__games-section {
    padding: 40px 15px;
  }
  
  .page-index-latest-games-features__games-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-index-latest-games-features__featured-game-title {
    font-size: 24px;
  }
  
  .page-index-latest-games-features__featured-game-image {
    height: 300px;
  }
  
  .page-index-latest-games-features__games-tabs {
    gap: 15px;
  }
  
  .page-index-latest-games-features__games-tab {
    font-size: 17px;
  }
  
  .page-index-latest-games-features__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .page-index-latest-games-features__game-card-image {
    height: 150px;
  }
  
  .page-index-latest-games-features__game-card-title {
    font-size: 13px;
    margin: 8px 0 0 0;
    padding: 0 3px;
  }

  .page-index-latest-games-features__section {
    padding: 40px 15px;
  }
  
  .page-index-latest-games-features__heading {
    font-size: 28px;
    margin-bottom: 30px;
  }
  
  .page-index-latest-games-features__sub-heading {
    font-size: 18px;
  }
  
  .page-index-latest-games-features__paragraph {
    font-size: 15px;
  }
  
  .page-index-latest-games-features__feature-list,
  .page-index-latest-games-features__link-grid,
  .page-index-latest-games-features__game-features-grid,
  .page-index-latest-games-features__promotion-list,
  .page-index-latest-games-features__security-features-grid,
  .page-index-latest-games-features__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-index-latest-games-features__game-feature-image {
    height: 200px;
  }
  
  .page-index-latest-games-features__button-primary {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-index-latest-games-features__faq-question {
    padding: 15px;
  }
  
  .page-index-latest-games-features__faq-question h3 {
    font-size: 15px;
  }
  
  .page-index-latest-games-features__faq-toggle {
    font-size: 22px;
    width: 24px;
    height: 24px;
  }
  
  .page-index-latest-games-features__faq-item.active .page-index-latest-games-features__faq-answer {
    padding: 15px !important;
  }

  .page-index-latest-games-features__blog-card-image {
    height: 180px;
  }

  .page-index-latest-games-features__blog-card-title {
    font-size: 16px;
  }

  .page-index-latest-games-features__blog-card-excerpt {
    font-size: 14px;
  }

  .page-index-latest-games-features img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index-latest-games-features__section,
  .page-index-latest-games-features__card,
  .page-index-latest-games-features__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Global image styles to prevent filter usage */
.page-index-latest-games-features img {
  filter: none !important;
}