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

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

/* Module 1: Hero Section */
.page-index__hero-section {
  padding-top: 10px; /* Small top margin, as body padding-top is handled by shared */
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.page-index__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
}

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

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

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

.page-index__btn-access-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index__btn-access-link:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2), 0 0 15px #A5C4FF; /* Glow */
  transform: translateY(-2px);
}

/* Module 3: Brand Intro */
.page-index__brand-intro {
  padding: 40px 0;
  text-align: center;
}

.page-index__main-title {
  font-size: 44px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__intro-text {
  font-size: 18px;
  color: #1F2D3D; /* Text Main */
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
  text-align: justify;
}

.page-index__link-brand,
.page-index__link-text {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: bold;
}

.page-index__link-brand:hover,
.page-index__link-text:hover {
  text-decoration: underline;
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
}

.page-index__section-description {
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 15px;
}

.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;
  overflow: hidden;
}

.page-index__category-card-link {
  display: block;
  text-decoration: none;
  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;
  transition: transform 0.3s ease;
}

.page-index__category-card-link:hover img {
  transform: scale(1.03);
}

/* Why Choose Us Section */
.page-index__why-choose-us {
  padding: 60px 0;
  background-color: #FFFFFF; /* Card BG */
}

.page-index__text-block {
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
  max-width: 900px;
  margin: 20px auto 40px;
  padding: 0 15px;
  text-align: justify;
}

.page-index__feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-index__feature-item {
  background-color: #F4F7FB; /* Background */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index__feature-title {
  font-size: 22px;
  font-weight: 600;
  color: #2F6BFF;
  margin-bottom: 15px;
}

.page-index__feature-description {
  font-size: 15px;
  color: #1F2D3D; /* Text Main */
}

/* How to Start Section */
.page-index__how-to-start {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
}

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

.page-index__step-item {
  background-color: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index__step-title {
  font-size: 20px;
  font-weight: 600;
  color: #2F6BFF;
  margin-bottom: 15px;
}

.page-index__step-description {
  font-size: 15px;
  color: #1F2D3D; /* Text Main */
}

.page-index__cta-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-index__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-index__btn-primary:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2), 0 0 15px #A5C4FF; /* Glow */
  transform: translateY(-2px);
}

/* Module 5: Blog Slider */
.page-index__blog-slider {
  padding: 60px 0;
  background-color: #FFFFFF; /* Card BG */
  position: relative;
}

.page-index__slider-controls {
  position: absolute;
  top: 100px; /* Adjust based on title height */
  right: 15px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  background-color: #2F6BFF;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__blog-slider-prev:hover,
.page-index__blog-slider-next:hover {
  background-color: #4A8BFF;
  transform: scale(1.1);
}

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

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

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

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

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

.page-index__blog-slider-track::-webkit-scrollbar-track {
  background-color: #F4F7FB;
}

.page-index__post-item {
  flex: 0 0 calc(33.333% - 11px); /* 3 cards with 16px gap */
  scroll-snap-align: start;
  background-color: #FFFFFF;
  border: 1px solid #D6E2FF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-index__post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-index__image-cover 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-color: rgba(47, 107, 255, 0.8); /* Primary color with opacity */
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: bold;
}

.page-index__post-title {
  font-size: 18px;
  font-weight: 600;
  color: #1F2D3D;
  padding: 15px;
  margin: 0;
  line-height: 1.4;
}

.page-index__post-divider {
  height: 1px;
  background-color: #D6E2FF;
  margin: 0 15px;
}

.page-index__post-summary {
  font-size: 14px;
  color: #1F2D3D;
  padding: 15px;
  margin: 0;
}

/* Responsible Gaming Section */
.page-index__responsible-gaming {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
  text-align: center;
}

.page-index__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: #ffffff;
  color: #2F6BFF; /* Primary color */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  border: 2px solid #2F6BFF;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-index__btn-secondary:hover {
  background: #2F6BFF;
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1), 0 0 15px #A5C4FF;
  transform: translateY(-2px);
}

/* About C54C Section */
.page-index__about-c54c {
  padding: 60px 0;
  background-color: #FFFFFF; /* Card BG */
  text-align: center;
}

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

.page-index__cta-button-wrapper a,
.page-index__access-links-container a {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Media Queries */

/* Mobile specific styles */
@media (max-width: 849px) {
  .page-index__hero-image-wrapper 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__hero-section {
    padding-top: 10px; /* Ensure small top padding */
  }

  .page-index__main-title {
    font-size: 32px;
  }

  .page-index__intro-text,
  .page-index__text-block,
  .page-index__section-description {
    font-size: 15px;
    padding: 0 10px;
  }

  /* Module 2: Access Links */
  .page-index__access-links-container {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

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

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

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

  /* Why Choose Us */
  .page-index__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

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

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

  /* How to Start */
  .page-index__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-index__step-item {
    padding: 20px;
  }

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

  .page-index__btn-primary,
  .page-index__btn-secondary {
    font-size: 16px;
    padding: 12px 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index__cta-button-wrapper {
    padding: 0 15px;
  }

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

  .page-index__post-item {
    flex: 0 0 85%; /* Show roughly 1 card at a time */
  }

  .page-index__slider-controls {
    top: 80px;
    right: 15px;
    left: auto;
    transform: none;
  }

  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

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

  .page-index__post-summary {
    font-size: 13px;
    padding: 10px;
  }

  .page-index__post-divider {
    margin: 0 10px;
  }

  /* General image and container rules */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__container,
  .page-index__access-links-section,
  .page-index__brand-intro,
  .page-index__category-lobby,
  .page-index__why-choose-us,
  .page-index__how-to-start,
  .page-index__blog-slider,
  .page-index__responsible-gaming,
  .page-index__about-c54c {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 549px) {
  .page-index__main-title {
    font-size: 28px;
  }
  .page-index__category-lobby__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-index__post-item {
    flex: 0 0 95%;
  }
}