.page-index {
  background-color: #F4F7FB; /* Nền chung của trang */
  color: #1F2D3D; /* Màu chữ chính */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Nhỏ hơn so với header-offset để tránh double padding */
}

.page-index__hero-slider-section {
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-index__hero-slider-container {
  position: relative;
  width: 100%;
  max-width: 1920px; /* Kích thước tối đa của slider */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

.page-index__hero-slide {
  display: none;
  width: 100%;
  transition: opacity 0.5s ease-in-out;
}

.page-index__hero-slide--active {
  display: block;
  opacity: 1;
}

.page-index__hero-slide img {
  width: 100%;
  height: auto;
  display: block;
  min-width: 200px; /* Đảm bảo kích thước tối thiểu */
  min-height: 200px;
}

.page-index__slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.page-index__slider-dots .dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-index__slider-dots .dot.active {
  background-color: #A5C4FF; /* Glow color */
}

.page-index__slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #FFFFFF;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 24px;
  z-index: 10;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.page-index__slider-arrow:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.page-index__slider-arrow--prev {
  left: 15px;
}

.page-index__slider-arrow--prev::before {
  content: '‹';
}

.page-index__slider-arrow--next {
  right: 15px;
}

.page-index__slider-arrow--next::before {
  content: '›';
}

.page-index__section-title-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  padding: 0 15px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__divider-line {
  flex-grow: 1;
  height: 2px;
  background-color: #D6E2FF; /* Border color */
  margin: 0 20px;
  max-width: 200px;
}

.page-index__main-title {
  color: #1F2D3D; /* Text Main */
  text-align: center;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 700px;
  font-size: clamp(28px, 4vw, 48px); /* Sử dụng clamp cho H1 */
}

.page-index__category-gateway-section {
  max-width: 1200px;
  margin: 0 auto 60px auto;
  padding: 0 15px;
}

.page-index__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.page-index__category-card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: #1F2D3D;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

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

.page-index__category-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 5;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  min-width: 200px;
  min-height: 200px;
}

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

.page-index__category-label {
  padding: 15px 10px;
  font-weight: bold;
  font-size: 1.1em;
  color: #1F2D3D; /* Text Main */
  width: 100%;
}

.page-index__article-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px 60px 15px;
}

.page-index__blockquote {
  border-left: 5px solid #2F6BFF; /* Main color */
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: #1F2D3D; /* Text Main */
  background-color: #FFFFFF; /* Card BG */
  padding: 20px;
  border-radius: 8px;
}

.page-index__blockquote p {
  margin: 0;
}

.page-index__section-heading {
  color: #2F6BFF; /* Main color */
  font-size: 2.2em;
  margin-top: 50px;
  margin-bottom: 25px;
  text-align: center;
}

.page-index__sub-heading {
  color: #1F2D3D; /* Text Main */
  font-size: 1.5em;
  margin-top: 35px;
  margin-bottom: 15px;
}

.page-index__article-body p {
  margin-bottom: 1em;
  color: #1F2D3D;
}

.page-index__article-body a {
  color: #2F6BFF; /* Main color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__article-body a:hover {
  color: #6FA3FF; /* Accent color */
}

.page-index__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1em;
  color: #1F2D3D;
}

.page-index__list li {
  margin-bottom: 0.5em;
}

.page-index__list li strong {
  color: #000000; /* Custom Color_1776249996415 */
}

.page-index__article-figure {
  margin: 40px 0;
  text-align: center;
}

.page-index__article-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-index__article-figure figcaption {
  font-style: italic;
  color: #666;
  margin-top: 10px;
  font-size: 0.9em;
}

@media (max-width: 768px) {
  .page-index__hero-slider-container {
    border-radius: 0;
  }

  .page-index__main-title {
    font-size: clamp(24px, 6vw, 38px);
    margin: 0 10px;
  }

  .page-index__divider-line {
    max-width: 80px;
    margin: 0 10px;
  }

  .page-index__category-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 cột trên di động */
  }

  .page-index__article-body {
    padding: 0 10px 40px 10px;
  }

  .page-index__section-heading {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .page-index__sub-heading {
    font-size: 1.3em;
    margin-top: 30px;
    margin-bottom: 10px;
  }

  /* Mandatory mobile image overflow fix */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-index__category-grid {
    grid-template-columns: 1fr; /* 1 cột trên di động nhỏ */
  }
}