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

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

.page-index__section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main, #333333);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-top: 20px;
}

.page-index__section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #FF5A4F 0%, #E53935 100%);
  margin: 10px auto 0;
  border-radius: 2px;
}

.page-index__section-title--light {
  color: #ffffff;
}

.page-index__section-title--light::after {
  background: #ffffff;
}

.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__btn-access-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  border: none;
}

.page-index__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
}

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

.page-index__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-index__btn-secondary:hover {
  background: #f0f0f0;
  color: #E53935;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.2);
}

/* Module 1: Hero Section */
.page-index__hero-section {
  padding-top: 10px; /* Adjust if shared.css doesn't provide body padding */
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  margin-bottom: 30px;
}

.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 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1250px;
  margin: 0 auto 40px;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-index__btn-access-link {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border-radius: 10px;
  font-size: 18px;
  padding: 15px 20px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.page-index__btn-access-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(229, 57, 53, 0.6);
}

/* Module 3: Brand Intro */
.page-index__brand-intro {
  max-width: 1000px;
  margin: 0 auto 50px;
  padding: 0 15px;
  box-sizing: border-box;
  text-align: center;
}

.page-index__brand-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-main, #333333);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__brand-description {
  font-size: 17px;
  color: var(--text-main, #333333);
  line-height: 1.8;
  text-align: justify;
}

.page-index__brand-link {
  color: #E53935;
  text-decoration: none;
  font-weight: 600;
}

.page-index__brand-link:hover {
  text-decoration: underline;
}

/* Module 4: Game Lobby Entry */
.page-index__category-lobby {
  padding: 50px 0;
  background-color: #ffffff;
}

.page-index__category-lobby__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 15px;
}

.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.3s ease;
}

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

.page-index__category-card-link {
  display: block;
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
  line-height: 0; /* Remove extra space below image */
}

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

/* Info Section */
.page-index__info-section {
  padding: 60px 0;
  margin-bottom: 50px;
}

.page-index__dark-section {
  background: #E53935;
  color: #ffffff;
}

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

.page-index__feature-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-index__feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-index__feature-description {
  font-size: 15px;
  line-height: 1.7;
  color: #ffffff;
}

/* Games Showcase Section */
.page-index__games-showcase {
  padding: 50px 0;
  background-color: #F5F7FA;
  margin-bottom: 50px;
}

.page-index__game-category {
  margin-bottom: 40px;
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-index__game-category-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main, #333333);
  margin-bottom: 20px;
  text-align: center;
}

.page-index__game-image-wrapper {
  margin-bottom: 20px;
  text-align: center;
}

.page-index__game-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.page-index__game-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main, #333333);
  text-align: justify;
}

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

.page-index__promotions-intro {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main, #333333);
}

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

.page-index__promotion-item {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border: 1px solid var(--border, #E0E0E0);
}

.page-index__promotion-title {
  font-size: 20px;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 15px;
}

.page-index__promotion-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-main, #333333);
}

.page-index__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index__cta-buttons--centered {
  margin-top: 40px;
}

/* Module 5: Blog Slider */
.page-index__blog-slider {
  padding: 60px 0;
  background-color: #F5F7FA;
  margin-bottom: 50px;
}

.page-index__slider-controls {
  text-align: right;
  margin-bottom: 20px;
  padding-right: 15px;
}

.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  background: #E53935;
  color: #ffffff;
  border: none;
  padding: 10px 15px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 5px;
  margin-left: 10px;
  transition: background-color 0.3s ease;
}

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

.page-index__blog-slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px; /* Space for scrollbar */
}

.page-index__blog-slider-track::-webkit-scrollbar {
  height: 8px;
}

.page-index__blog-slider-track::-webkit-scrollbar-thumb {
  background: #E53935;
  border-radius: 10px;
}

.page-index__blog-slider-track::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 10px;
}

.page-index__post-item {
  flex: 0 0 calc(33.333% - 13.333px); /* 3 items visible, 20px gap */
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 1px solid var(--border, #E0E0E0);
  position: relative;
}

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

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

.page-index__post-date {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(229, 57, 53, 0.8);
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  z-index: 1;
}

.page-index__post-title {
  font-size: 18px;
  font-weight: 700;
  margin: 15px;
  line-height: 1.4;
}

.page-index__post-title a {
  color: var(--text-main, #333333);
  text-decoration: none;
}

.page-index__post-title a:hover {
  color: #E53935;
  text-decoration: underline;
}

.page-index__post-excerpt {
  font-size: 14px;
  color: #666666;
  margin: 0 15px 15px;
  line-height: 1.6;
}

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

/* CTA Section */
.page-index__cta-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-align: center;
}

.page-index__cta-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-index__cta-description {
  font-size: 18px;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #ffffff;
}

.page-index__cta-buttons--centered .page-index__btn-primary,
.page-index__cta-buttons--centered .page-index__btn-secondary {
  border: 2px solid #ffffff;
  color: #ffffff;
  background: transparent;
}

.page-index__cta-buttons--centered .page-index__btn-primary:hover,
.page-index__cta-buttons--centered .page-index__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index__brand-title {
    font-size: 36px;
  }
  .page-index__section-title {
    font-size: 28px;
  }
  .page-index__category-lobby__grid {
    gap: 15px;
  }
  .page-index__post-item {
    flex: 0 0 calc(50% - 10px); /* 2 items visible */
  }
}

@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: 16px;
    line-height: 1.6;
  }

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

  .page-index__section, .page-index__card, .page-index__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-index__cta-buttons {
    flex-direction: column;
  }

  /* Banner Hero Section */
  .page-index__hero-section {
    padding-top: 10px;
    margin-bottom: 20px;
  }

  /* Access Links */
  .page-index__access-links {
    grid-template-columns: 1fr;
    margin-bottom: 30px;
  }

  .page-index__btn-access-link {
    font-size: 16px;
    padding: 12px 15px;
  }

  /* Brand Intro */
  .page-index__brand-title {
    font-size: 30px;
  }

  .page-index__brand-description {
    font-size: 15px;
  }

  /* Game Lobby Entry */
  .page-index__category-lobby {
    padding: 30px 0;
  }

  .page-index__category-lobby__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .page-index__category-card-link img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border: none;
    box-shadow: none;
  }

  /* Info Section */
  .page-index__info-section {
    padding: 40px 0;
    margin-bottom: 30px;
  }

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

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

  /* Games Showcase Section */
  .page-index__games-showcase {
    padding: 30px 0;
    margin-bottom: 30px;
  }

  .page-index__game-category {
    padding: 20px;
    margin-bottom: 30px;
  }

  .page-index__game-category-title {
    font-size: 24px;
  }

  .page-index__game-description {
    font-size: 15px;
  }

  /* Promotions Section */
  .page-index__promotions-section {
    padding: 40px 0;
    margin-bottom: 30px;
  }

  .page-index__promotions-intro {
    font-size: 16px;
  }

  .page-index__promotions-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

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

  /* Blog Slider */
  .page-index__blog-slider {
    padding: 40px 0;
    margin-bottom: 30px;
  }

  .page-index__slider-controls {
    text-align: center;
  }

  .page-index__blog-slider-prev, .page-index__blog-slider-next {
    padding: 8px 12px;
    font-size: 18px;
  }

  .page-index__blog-slider-track {
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__post-item {
    flex: 0 0 85%; /* 1 item visible */
  }

  .page-index__post-title {
    font-size: 16px;
  }

  .page-index__post-excerpt {
    font-size: 13px;
  }

  /* CTA Section */
  .page-index__cta-section {
    padding: 40px 0;
  }

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

  .page-index__cta-description {
    font-size: 16px;
  }

  .page-index__cta-buttons--centered {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 549px) {
  .page-index__category-lobby__grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-index__brand-title {
    font-size: 26px;
  }
  .page-index__cta-title {
    font-size: 24px;
  }
}