.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Background */
}

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

.page-index__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #F3C54D; /* Gold */
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #F3C54D, transparent);
  border-radius: 2px;
}

.page-index__text-block {
  font-size: 1.1em;
  margin-bottom: 25px;
  text-align: justify;
  color: #FFF1E8;
}

/* Module 1: Hero Section */
.page-index__hero-section {
  padding-top: 10px; /* shared đã cho body padding-top */
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

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

/* Module 2: Access Links */
.page-index__access-links-section {
  background-color: #140C0C;
  padding: 30px 0;
}

.page-index__access-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
}

.page-index__btn-access-link {
  display: block;
  padding: 15px 20px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button */
  color: #140C0C; /* Dark text for bright button */
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-access-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(243, 197, 77, 0.4);
}

/* Module 3: Brand Intro */
.page-index__brand-intro-section {
  padding: 40px 0;
  background-color: #140C0C;
}

.page-index__brand-intro {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 12px;
  text-align: center;
  box-sizing: border-box;
}

.page-index__main-title {
  font-size: 3em;
  font-weight: 800;
  color: #FFF1E8; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(243, 197, 77, 0.5);
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__intro-text {
  font-size: 1.2em;
  color: #FFF1E8;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.5;
  text-align: center;
}

/* Module 4: Category Lobby */
.page-index__category-lobby-section {
  padding: 60px 0;
  background-color: #140C0C;
}

.page-index__category-lobby {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
}

.page-index__category-lobby__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.page-index__category-card {
  display: block;
  border: none;
  box-shadow: none;
  outline: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
  transition: transform 0.2s ease;
}

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

.page-index__category-card-link {
  display: block;
  border: none;
  box-shadow: none;
  outline: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

.page-index__category-card-link img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border: none;
  box-shadow: none;
  border-radius: 0;
  max-width: 100%;
}

/* Module 5: Blog Slider */
.page-index__blog-slider-section {
  padding: 60px 0;
  background-color: #140C0C;
}

.page-index__blog-slider {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
  position: relative;
}

.page-index__slider-container {
  position: relative;
  margin-top: 30px;
}

.page-index__blog-slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.page-index__blog-slider-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.page-index__post-item {
  flex: 0 0 calc(33.333% - 11px); /* 3 items per view with 16px gap */
  scroll-snap-align: start;
  background-color: #2A1212; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #6A1E1E; /* Border */
}

.page-index__post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.page-index__post-image-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.page-index__post-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: 100%;
}

.page-index__post-date {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(198, 31, 31, 0.8); /* C61F1F with transparency */
  color: #FFF1E8;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.85em;
  font-weight: bold;
}

.page-index__post-title {
  font-size: 1.3em;
  color: #F3C54D; /* Gold */
  padding: 15px 15px 10px;
  margin: 0;
  line-height: 1.3;
}

.page-index__post-excerpt {
  font-size: 0.95em;
  color: #FFF1E8;
  padding: 0 15px 15px;
  margin: 0;
}

.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(198, 31, 31, 0.7); /* C61F1F with transparency */
  color: #FFF1E8;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5em;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.page-index__blog-slider-prev:hover,
.page-index__blog-slider-next:hover {
  background-color: #C61F1F;
}

.page-index__blog-slider-prev {
  left: -20px;
}

.page-index__blog-slider-next {
  right: -20px;
}

.page-index__blog-slider-prev::before {
  content: '‹';
}

.page-index__blog-slider-next::before {
  content: '›';
}

.page-index__view-all-button-container {
  text-align: center;
  margin-top: 40px;
}

.page-index__view-all-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button */
  color: #140C0C; /* Dark text for bright button */\  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-index__view-all-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(243, 197, 77, 0.4);
}

/* Additional Sections */
.page-index__about-section,
.page-index__game-overview-section,
.page-index__promotions-section,
.page-index__support-section,
.page-index__responsible-gaming-section {
  padding: 60px 0;
  background-color: #140C0C;
}

.page-index__features-grid,
.page-index__promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.page-index__feature-item,
.page-index__promo-card {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  color: #FFF1E8;
}

.page-index__feature-item:hover,
.page-index__promo-card:hover {
  transform: translateY(-5px);
}

.page-index__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index__feature-title,
.page-index__promo-title {
  font-size: 1.4em;
  color: #F3C54D; /* Gold */
  margin-bottom: 10px;
}

.page-index__feature-description,
.page-index__promo-description {
  font-size: 0.95em;
  color: #FFF1E8;
}

.page-index__game-category {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E; /* Border */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #FFF1E8;
}

.page-index__game-category-title {
  font-size: 2em;
  color: #F3C54D; /* Gold */
  margin-bottom: 20px;
  text-align: center;
}

.page-index__game-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
  object-fit: cover;
}

.page-index__game-description {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: #FFF1E8;
}

.page-index__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background-color: #C61F1F; /* Primary */
  color: #FFF1E8; /* Text Main */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.2s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary:hover {
  background-color: #E53030; /* Secondary */
}

.page-index__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: transparent;
  color: #F3C54D; /* Gold */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  border: 2px solid #F3C54D; /* Gold */
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-secondary:hover {
  background-color: #F3C54D;
  color: #140C0C;
}

.page-index__contact-methods {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Responsive Styles */

/* General image responsive styles */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile specific styles (max-width: 768px) */
@media (max-width: 849px) {
  .page-index__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-height: none !important;
  }
}

@media (max-width: 768px) {
  .page-index {
    font-size: 15px;
  }

  .page-index__section-title {
    font-size: 2em;
  }

  /* Banner - already handled by 849px breakpoint */

  /* Three-link button bar */
  .page-index__access-links {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-index__btn-access-link {
    font-size: 1em;
    padding: 12px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Brand Intro */
  .page-index__main-title {
    font-size: 2.2em;
    padding: 0 15px;
  }

  .page-index__intro-text {
    font-size: 1em;
    padding: 0 15px;
  }

  /* Game Lobby */
  .page-index__category-lobby__grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 15px;
  }

  .page-index__category-card-link img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Blog Slider */
  .page-index__blog-slider {
    padding: 0 15px;
  }

  .page-index__post-item {
    flex: 0 0 85%; /* Show one card with some peek of next */
  }

  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    width: 30px;
    height: 30px;
    font-size: 1.2em;
  }

  .page-index__blog-slider-prev {
    left: 0px;
  }

  .page-index__blog-slider-next {
    right: 0px;
  }

  .page-index__post-title {
    font-size: 1.1em;
  }

  .page-index__post-excerpt {
    font-size: 0.9em;
  }

  /* Other sections */
  .page-index__features-grid,
  .page-index__promo-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 15px;
  }

  .page-index__feature-item,
  .page-index__promo-card,
  .page-index__game-category {
    padding: 20px;
  }

  .page-index__game-category-title {
    font-size: 1.5em;
  }

  .page-index__btn-primary,
  .page-index__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* For stacking */
  }

  .page-index__contact-methods {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-index__container {
    padding: 0 15px;
  }
  
  .page-index__text-block {
    padding: 0 15px;
  }

  /* Universal image and container responsive adjustments for mobile */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__hero-section,
  .page-index__access-links-section,
  .page-index__brand-intro-section,
  .page-index__category-lobby-section,
  .page-index__blog-slider-section,
  .page-index__about-section,
  .page-index__game-overview-section,
  .page-index__promotions-section,
  .page-index__support-section,
  .page-index__responsible-gaming-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
}

@media (max-width: 549px) {
  .page-index__category-lobby__grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-index__features-grid,
  .page-index__promo-grid {
    grid-template-columns: 1fr;
  }
}