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

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-index__section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-index__section-description {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.page-index__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-index__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary {
  display: inline-block;
  background: #11271B;
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-index__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__btn-text {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index__btn-text:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

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

.page-index__dark-section {
  background-color: var(--bg-color);
  color: var(--text-main);
  padding: 60px 0;
}

.page-index__light-bg {
  background-color: #0A4B2C; /* Sử dụng Deep Green cho phần light-bg để contrast tốt hơn */
  color: #F2FFF6;
  padding: 60px 0;
}

/* LOGO Carousel Section */
.page-index__logo-carousel-section {
  width: 100%;
  padding: 10px 0 30px;
  background-color: var(--bg-color);
  margin-top: 0;
}

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

.page-index__logo-carousel {
  display: flex;
  gap: 15px;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 20px;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.page-index__logo-carousel::-webkit-scrollbar {
  display: none;
}

.page-index__logo-item {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto;
}

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

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

.page-index__logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  padding: 0;
  margin-top: 0;
  width: 100%;
}

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

.page-index__hero-image {
  width: 100%;
  margin: 0;
}

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

/* Games Section */
.page-index__games-section {
  width: 100%;
  padding: 60px 0;
  background-color: var(--bg-color);
}

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

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

.page-index__featured-game-area {
  width: 100%;
}

.page-index__featured-game-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: var(--gold-color);
  text-align: left;
}

.page-index__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__featured-game:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.page-index__featured-game-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-index__featured-game-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.page-index__featured-game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-index__games-grid-area {
  width: 100%;
}

.page-index__games-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
}

.page-index__games-tab {
  background: none;
  border: none;
  padding: 0;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.3s ease, text-decoration 0.3s ease;
  text-decoration: none;
  position: relative;
}

.page-index__games-tab:hover {
  color: var(--text-main);
}

.page-index__games-tab.active {
  color: #ff0000;
  text-decoration: underline;
}

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

.page-index__games-grid.active {
  display: grid;
}

.page-index__game-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__game-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.page-index__game-card-title {
  font-size: 14px;
  font-weight: 500;
  margin: 10px 0 0 0;
  padding: 0 5px 10px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

/* Intro Section */
.page-index__intro-section {
  padding: 60px 0;
}

.page-index__main-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-index__intro-description {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  line-height: 1.7;
}

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

.page-index__feature-item {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-index__feature-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-index__feature-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Quick Access Section */
.page-index__quick-access-section {
  padding: 60px 0;
}

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

.page-index__quick-link {
  width: 100%;
}

/* Core Games Section */
.page-index__core-games-section {
  padding: 60px 0;
}

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

.page-index__category-item {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-index__category-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}

.page-index__category-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-index__category-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-index__category-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.page-index__category-item .page-index__btn-secondary {
  margin-top: 20px;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 60px 0;
}

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

.page-index__promo-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

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

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

.page-index__promo-card .page-index__promo-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  margin: 20px 20px 10px;
}

.page-index__promo-card p {
  font-size: 15px;
  color: var(--text-secondary);
  padding: 0 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.page-index__promo-card .page-index__btn-primary {
  margin: 20px;
  width: calc(100% - 40px);
}

/* Security & Support Section */
.page-index__security-support-section {
  padding: 60px 0;
}

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

.page-index__security-item {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-index__security-item img {
  
  
  object-fit: contain;
  margin-bottom: 15px;
}

.page-index__security-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-index__security-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 60px 0;
}

.page-index__faq-list {
  margin-top: 40px;
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-index__faq-item summary.page-index__faq-question::-webkit-details-marker {
  display: none;
}
details.page-index__faq-item summary.page-index__faq-question:hover {
  background: #11271B;
}
.page-index__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-main);
  text-align: left;
}
.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-index__faq-item .page-index__faq-answer {
  padding: 0 20px 20px;
  background: #0D1C14; /* Slightly lighter than card-bg */
  border-radius: 0 0 8px 8px;
}

details.page-index__faq-item .page-index__faq-answer p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Blog Section */
.page-index__blog-section {
  padding: 60px 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: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

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

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

.page-index__blog-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index__blog-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-index__blog-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-title a:hover {
  color: var(--primary-color);
}

.page-index__blog-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-index__blog-summary {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Universal image responsive styles */
.page-index img:not(.page-index__logo-item img) {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsive Design */
/* Tablet */
@media (max-width: 1024px) {
  .page-index__container {
    padding: 0 15px;
  }

  .page-index__section-title {
    font-size: 28px;
  }

  .page-index__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* Games Section */
  .page-index__games-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__featured-game-title {
    font-size: 22px;
    text-align: center;
  }

  .page-index__featured-game-image {
    height: 400px;
  }

  .page-index__games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-index__game-card-image {
    height: 180px;
  }

  /* Intro Section */
  .page-index__main-title {
    font-size: 32px;
  }

  .page-index__intro-description {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .page-index__intro-features {
    gap: 20px;
  }

  .page-index__feature-title {
    font-size: 20px;
  }

  /* Quick Access Section */
  .page-index__links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Core Games Section */
  .page-index__game-categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Promotions Section */
  .page-index__promotions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Security & Support Section */
  .page-index__security-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* FAQ Section */
  details.page-index__faq-item summary.page-index__faq-question {
    padding: 16px 18px;
  }

  .page-index__faq-qtext {
    font-size: 17px;
  }

  /* Blog Section */
  .page-index__blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .page-index__blog-card img {
    
  }

  .page-index__blog-title {
    font-size: 18px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-index__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .page-index__section-description {
    font-size: 14px;
    margin-bottom: 25px;
  }

  .page-index__dark-section, .page-index__light-bg {
    padding: 40px 0;
  }

  /* LOGO Carousel Section */
  .page-index__logo-carousel-section {
    padding: 10px 0 20px;
  }

  .page-index__logo-carousel {
    gap: 12px;
    padding: 8px 15px;
  }
  
  .page-index__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    box-sizing: border-box;
  }
  
  /* HERO Section */
  .page-index__hero-section {
    padding-top: 0 !important;
  }

  /* Games Section */
  .page-index__games-section {
    padding: 40px 0;
  }
  
  .page-index__games-container {
    padding: 0 15px;
  }

  .page-index__games-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__featured-game-title {
    font-size: 20px;
  }

  .page-index__featured-game-image {
    height: 300px;
  }

  .page-index__games-tabs {
    gap: 15px;
    justify-content: center;
  }

  .page-index__games-tab {
    font-size: 16px;
  }

  .page-index__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .page-index__game-card-image {
    height: 150px;
  }

  .page-index__game-card-title {
    font-size: 13px;
    margin: 8px 0 0 0;
    padding: 0 3px 8px;
  }

  /* Intro Section */
  .page-index__main-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .page-index__intro-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-index__intro-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__feature-item {
    padding: 25px;
  }

  .page-index__feature-title {
    font-size: 18px;
  }

  /* Quick Access Section */
  .page-index__links-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* Core Games Section */
  .page-index__game-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__category-item {
    padding: 25px;
  }

  .page-index__category-title {
    font-size: 18px;
  }

  /* Promotions Section */
  .page-index__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__promo-card img {
    
  }

  .page-index__promo-card .page-index__promo-title {
    font-size: 18px;
    margin: 15px 15px 8px;
  }

  .page-index__promo-card p {
    font-size: 14px;
    padding: 0 15px;
  }

  .page-index__promo-card .page-index__btn-primary {
    margin: 15px;
    width: calc(100% - 30px);
  }

  /* Security & Support Section */
  .page-index__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__security-item {
    padding: 25px;
  }

  .page-index__security-title {
    font-size: 18px;
  }

  /* FAQ Section */
  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px;
  }

  .page-index__faq-qtext {
    font-size: 16px;
  }

  .page-index__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px;
  }

  /* Blog Section */
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__blog-card img {
    
  }

  .page-index__blog-content {
    padding: 15px;
  }

  .page-index__blog-title {
    font-size: 18px;
  }

  .page-index__blog-meta {
    font-size: 12px;
  }

  .page-index__blog-summary {
    font-size: 14px;
  }

  /* Universal image responsive styles */
  .page-index img:not(.page-index__logo-item img) {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Universal button responsive styles */
  .page-index__cta-button, .page-index__btn-primary, .page-index__btn-secondary, .page-index a[class*="button"], .page-index a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__cta-buttons, .page-index__button-group, .page-index__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }
}