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

.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: #1F2D3D;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-top: 40px;
}

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

.page-index__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #4A5568;
}

/* Hero Section (Module 1) */
.page-index__hero-section {
  padding-top: 10px; /* Small top padding, assuming body has padding-top from shared */
  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;
}

/* Access Links (Module 2) */
.page-index__access-links {
  padding: 30px 15px;
  background-color: #F4F7FB;
}

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

.page-index__btn-access-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 25px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button custom color */
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-access-link:hover {
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.4);
  transform: translateY(-3px);
}

/* Brand Intro (Module 3) */
.page-index__brand-intro {
  padding: 40px 15px;
  background-color: #F4F7FB;
}

.page-index__brand-intro-content h1 {
  font-size: 38px;
  font-weight: 800;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__brand-intro-content p {
  font-size: 17px;
  color: #4A5568;
  text-align: justify;
  max-width: 1000px;
  margin: 0 auto;
}

.page-index__brand-intro-content p a {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: 600;
}

.page-index__brand-intro-content p a:hover {
  text-decoration: underline;
}

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

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

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

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

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

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

/* Advantages Section */
.page-index__advantages-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-index__advantage-item {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border custom color */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__advantage-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-index__advantage-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index__advantage-item h3 {
  font-size: 22px;
  color: #1F2D3D;
  margin-bottom: 15px;
}

.page-index__advantage-item p {
  font-size: 15px;
  color: #4A5568;
  line-height: 1.7;
}

/* Blog Slider (Module 5) */
.page-index__blog-slider {
  padding: 60px 0;
  background-color: #F4F7FB;
}

.page-index__blog-slider-wrapper {
  position: relative;
  margin-top: 40px;
}

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

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

.page-index__blog-slider-track::-webkit-scrollbar-thumb {
  background: #A5C4FF; /* Glow color */
  border-radius: 4px;
}

.page-index__blog-slider-track::-webkit-scrollbar-track {
  background: #D6E2FF; /* Border color */
  border-radius: 4px;
}

.page-index__post-item {
  flex: 0 0 calc(33.333% - 11px); /* 3 cards visible, 16px gap */
  scroll-snap-align: start;
  background: #FFFFFF; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.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: 15px;
  right: 15px;
  background: rgba(47, 107, 255, 0.9); /* Primary color with opacity */
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  z-index: 10;
}

.page-index__post-content {
  padding: 20px;
}

.page-index__post-title {
  font-size: 18px;
  font-weight: 700;
  color: #1F2D3D;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-index__post-title:hover {
  color: #2F6BFF;
}

.page-index__post-excerpt {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(47, 107, 255, 0.8); /* Primary color with opacity */
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 20;
  transition: background-color 0.3s ease;
}

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

.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-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-index__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button custom color */
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-index__view-all-button:hover {
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
  transform: translateY(-2px);
}

/* About Section */
.page-index__about-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-index__about-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-index__about-image {
  flex: 1;
  max-width: 50%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  display: block;
  height: auto;
  object-fit: cover;
}

.page-index__about-text {
  flex: 1;
  max-width: 50%;
}

.page-index__about-text p {
  font-size: 16px;
  color: #4A5568;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-index__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary:hover {
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
  transform: translateY(-2px);
}

/* Contact CTA Section */
.page-index__contact-cta-section {
  padding: 60px 0;
  background-color: #F4F7FB;
}

.page-index__contact-cta-content {
  text-align: center;
  background: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border custom color */
  border-radius: 12px;
  padding: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.page-index__contact-cta-content .page-index__section-title {
  padding-top: 0;
  margin-bottom: 15px;
}

.page-index__contact-cta-content .page-index__section-title::after {
  margin-top: 5px;
}

.page-index__contact-cta-content .page-index__section-description {
  margin-bottom: 30px;
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-index__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff;
  color: #2F6BFF;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #2F6BFF;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* General Image & Button Responsive */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-index a[class*="button"],
.page-index a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__cta-buttons,
.page-index__button-group,
.page-index__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-index__section-title {
    font-size: 28px;
  }
  .page-index__brand-intro-content h1 {
    font-size: 32px;
  }
  .page-index__access-links-container {
    gap: 12px;
  }
  .page-index__category-lobby__grid {
    gap: 12px;
  }
  .page-index__advantages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  .page-index__post-item {
    flex: 0 0 calc(50% - 8px); /* 2 cards visible */
  }
  .page-index__about-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__about-image,
  .page-index__about-text {
    max-width: 100%;
  }
}

@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: 24px;
    padding-top: 30px;
  }

  .page-index__brand-intro-content h1 {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .page-index__brand-intro-content p {
    font-size: 15px;
    text-align: left;
  }

  /* Module 1: Hero Section */
  .page-index__hero-section {
    padding-top: 10px; /* Still small padding */
  }
  .page-index__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Module 2: Access Links */
  .page-index__access-links {
    padding: 20px 15px;
  }
  .page-index__access-links-container {
    grid-template-columns: 1fr; /* Single column */
    gap: 10px;
  }
  .page-index__btn-access-link {
    padding: 12px 20px;
    font-size: 16px;
    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 {
    padding: 40px 0;
  }
  .page-index__category-lobby__grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 10px;
    margin-top: 30px;
  }
  .page-index__category-card-link img {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    object-fit: contain;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }

  /* Advantages Section */
  .page-index__advantages-section {
    padding: 40px 0;
  }
  .page-index__advantages-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
    margin-top: 30px;
  }
  .page-index__advantage-item {
    padding: 25px;
  }

  /* Module 5: Blog Slider */
  .page-index__blog-slider {
    padding: 40px 0;
  }
  .page-index__blog-slider-track {
    padding-bottom: 10px;
  }
  .page-index__post-item {
    flex: 0 0 85%; /* Single card visible */
  }
  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
  .page-index__blog-slider-prev {
    left: 0px;
  }
  .page-index__blog-slider-next {
    right: 0px;
  }

  /* About Section */
  .page-index__about-content {
    margin-top: 30px;
  }
  .page-index__about-image {
    max-width: 90%;
  }
  .page-index__about-text {
    max-width: 100%;
  }

  /* Contact CTA Section */
  .page-index__contact-cta-section {
    padding: 40px 0;
  }
  .page-index__contact-cta-content {
    padding: 30px;
  }
  .page-index__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__btn-primary,
  .page-index__btn-secondary {
    font-size: 15px;
    padding: 12px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Image & Container Responsive */
  .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;
  }
}

@media (max-width: 549px) {
  .page-index__brand-intro-content h1 {
    font-size: 24px;
  }
  .page-index__category-lobby__grid {
    grid-template-columns: 1fr 1fr; /* Still 2 columns, but smaller gap if needed */
  }
}