/* Base styles for page-index */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  box-sizing: border-box;
}

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

.page-index__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF3E6; /* Text Main */
  position: relative;
  padding-bottom: 15px;
}

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

.page-index__text-block {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
}

.page-index__text-block a {
  color: #FFA53A; /* Auxiliary color for links */
  text-decoration: none;
}

.page-index__text-block a:hover {
  text-decoration: underline;
}

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

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

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

.page-index__btn-access-link {
  display: block;
  padding: 15px 20px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #FFF3E6; /* Text Main */
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.page-index__btn-access-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: width 0.4s ease-out, height 0.4s ease-out;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.page-index__btn-access-link:hover::before {
  width: 200%;
  height: 200%;
}

.page-index__btn-access-link:hover {
  box-shadow: 0 6px 15px rgba(255, 140, 26, 0.4);
  transform: translateY(-2px);
}

/* Module 3: Brand Intro */
.page-index__brand-intro {
  padding: 60px 0;
  background-color: #0D0E12; /* Background */
}

.page-index__main-title {
  font-size: 44px;
  font-weight: 900;
  text-align: center;
  color: #FF8C1A; /* Primary color */
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-index__intro-text {
  font-size: 18px;
  line-height: 1.8;
  text-align: justify;
  color: #FFF3E6; /* Text Main */
}

/* Module 4: Category Lobby */
.page-index__category-lobby {
  padding: 60px 0;
  background-color: #17191F; /* Card BG */
}

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

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

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

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

.page-index__blog-slider-wrapper {
  position: relative;
  margin: 0 -12px;
  padding: 0 12px;
}

.page-index__blog-slider-track {
  display: flex;
  gap: 20px;
  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, Edge */
}

.page-index__post-item {
  flex: 0 0 calc(33.333% - 13.333px); /* 3 items with 20px gap */
  scroll-snap-align: start;
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-index__post-item:hover {
  transform: translateY(-5px);
}

.page-index__post-link {
  text-decoration: none;
  color: #FFF3E6; /* Text Main */
  display: block;
}

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

.page-index__post-image-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-index__post-item:hover .page-index__post-image-cover img {
  transform: scale(1.05);
}

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

.page-index__post-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
  color: #FF8C1A; /* Primary color */
}

.page-index__post-meta {
  font-size: 14px;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #A84F0C; /* Border color */
}

.page-index__post-excerpt {
  font-size: 15px;
  color: #FFF3E6;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

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

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

/* About Us Summary */
.page-index__about-us-summary {
  padding: 60px 0;
  background-color: #0D0E12; /* Background */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 38px;
  }
  .page-index__intro-text {
    font-size: 17px;
  }
  .page-index__category-lobby__grid {
    gap: 15px;
  }
  .page-index__post-item {
    flex: 0 0 calc(50% - 10px); /* 2 items with 20px gap */
  }
  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
}

@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__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-index__hero-section {
    padding-top: 10px !important;
  }

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

  .page-index__section,
  .page-index__card,
  .page-index__container,
  .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;
  }

  .page-index__cta-button,
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index a[class*="button"],
  .page-index a[class*="btn"],
  .page-index__btn-access-link {
    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__access-links {
    grid-template-columns: 1fr !important;
    gap: 10px;
    padding: 20px 15px;
  }

  .page-index__main-title {
    font-size: 30px;
    margin-bottom: 20px;
  }

  .page-index__intro-text {
    font-size: 16px;
  }

  .page-index__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

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

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

  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
  .page-index__blog-slider-wrapper {
    margin: 0;
    padding: 0 15px;
  }
  .page-index__post-content {
    padding: 15px;
  }
  .page-index__post-title {
    font-size: 18px;
  }
  .page-index__post-meta {
    font-size: 13px;
  }
  .page-index__post-excerpt {
    font-size: 14px;
  }
}

@media (max-width: 549px) {
  .page-index__category-lobby__grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .page-index__main-title {
    font-size: 28px;
  }
  .page-index__section-title {
    font-size: 24px;
  }
}