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

.page-index__section {
  padding: 20px 0;
  margin-bottom: 20px;
}

.page-index__section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-index__section-title {
  font-size: 2.2em;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.tieudevip {
  font-size: 2.2em;
  color: #2F6BFF; /* Main Color */
  text-align: center;
  margin: 40px auto;
  padding: 10px 20px;
  border: 2px solid #D6E2FF; /* Border Color */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: fit-content;
  font-weight: bold;
  line-height: 1.2;
}

/* Module 0: Hero Carousel */
.page-index__hero-carousel-section {
  padding-top: 10px; /* Small top padding, assuming body already has header offset */
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.page-index__hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.page-index__hero-slide {
  display: none;
  width: 100%;
}

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

.page-index__hero-slide img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%; /* Ensure responsiveness */
}

.page-index__hero-slider-prev,
.page-index__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5em;
  border-radius: 5px;
}

.page-index__hero-slider-prev { left: 10px; }
.page-index__hero-slider-next { right: 10px; }

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

.page-index__hero-slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
}

.page-index__hero-slider-dots button.is-active {
  background-color: white;
}

/* Module 1: Guide Section */
.page-index__guide-section {
  padding: 40px 0;
  margin-top: 0;
}

.page-index__guide-box {
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 20px 24px;
  background: #f5e6d3; /* Light beige background as per demo */
  border-radius: 4px;
  box-sizing: border-box;
}

.page-index__guide-box .page-index__section-title {
  margin-top: 20px;
  margin-bottom: 30px;
}

.page-index__guide-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start; /* Align to top for mountain effect */
  justify-content: center;
  gap: 8px;
}

.page-index__guide-card {
  display: block;
  flex: 0 0 calc(20% - 8px); /* 5 cards per row, accounting for gap */
  max-width: calc(20% - 8px);
  text-decoration: none;
  transition: transform 0.3s ease;
  padding-top: 0; /* Reset for mobile, then apply desktop specific */
  box-sizing: border-box;
}

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

.page-index__guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 250 / 350; /* Fixed aspect ratio for portrait */
  object-fit: contain; /* Ensure image fits without cropping */
  display: block;
  max-width: 100%; /* Ensure responsiveness */
}

/* PC specific mountain effect for guide cards */
.page-index__guide-card--pos-1,
.page-index__guide-card--pos-5 { padding-top: 50px; }
.page-index__guide-card--pos-2,
.page-index__guide-card--pos-4 { padding-top: 25px; }
.page-index__guide-card--pos-3 { padding-top: 0; }

/* Module 2: Home Content Section */
.page-index__home-content-section {
  padding: 40px 0;
}

.page-index__home-content-row {
  display: flex;
  justify-content: center;
}

.page-index__home-content-box {
  max-width: 91%; /* As per demo */
  width: 100%;
  margin: 0 auto;
  padding: 10px 16px;
  border: 5px solid #3477c9; /* Blue border */
  border-radius: 15px;
  box-shadow: 0 0 20px #A5C4FF; /* Glow color */
  height: 700px; /* Fixed height for desktop */
  text-align: left;
  box-sizing: border-box;
  background-color: #FFFFFF; /* Card Background */
  color: #1F2D3D; /* Text Main */
}

.page-index__home-content-inner {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px; /* For scrollbar */
  box-sizing: border-box;
}

.page-index__home-content-title {
  font-size: 2.5em;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.2;
  font-weight: bold;
}

.page-index__home-content-box h2 {
  font-size: 1.8em;
  color: #2F6BFF; /* Main Color */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__home-content-box h3 {
  font-size: 1.4em;
  color: #1F2D3D; /* Text Main */
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-index__home-content-box p,
.page-index__home-content-box ul,
.page-index__home-content-box ol {
  margin-bottom: 15px;
  line-height: 1.8;
  color: #1F2D3D; /* Text Main */
  font-size: 1.05em;
}

.page-index__home-content-box ul li,
.page-index__home-content-box ol li {
  margin-bottom: 8px;
  padding-left: 10px;
}

.page-index__home-content-box figure {
  margin: 20px auto;
  text-align: center;
  max-width: 100%;
}

.page-index__home-content-box img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

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

/* Module 3: Blog Section */
.page-index__blog-section {
  padding: 40px 0;
  background-color: #F4F7FB; /* Background */
}

.page-index__blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
  gap: 20px;
}

.page-index__blog-card {
  background: #FFFFFF; /* Card Background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #1F2D3D; /* Text Main */
}

.page-index__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.page-index__blog-media {
  position: relative;
  width: 100%;
  height: 200px; /* Fixed height for consistent card size */
  overflow: hidden;
}

.page-index__blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  transition: transform 0.3s ease;
  max-width: 100%; /* Ensure responsiveness */
}

.page-index__blog-card:hover .page-index__blog-media img {
  transform: scale(1.05);
}

.page-index__blog-date {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
  color: #ffffff;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 0.8em;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
}

.page-index__blog-date span:first-child { display: block; font-size: 1.2em; }

.page-index__blog-title {
  font-size: 1.2em;
  font-weight: bold;
  padding: 15px;
  margin-top: 0;
  margin-bottom: 5px;
  color: #000000; /* Custom Color_1776249996415 */
}

.page-index__blog-excerpt {
  font-size: 0.9em;
  color: #1F2D3D; /* Text Main */
  padding: 0 15px 15px;
  margin-top: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.page-index__view-all-button {
  display: inline-block;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__view-all-button:hover {
  opacity: 0.9;
}

/* Module 4: App Download Section */
.page-index__app-download-section {
  padding: 60px 0;
  text-align: center;
  background-color: #F4F7FB; /* Background */
}

.page-index__app-download-description {
  font-size: 1.1em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__app-download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-index__btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: opacity 0.3s ease;
  min-width: 200px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-index__btn-secondary {
  background: #ffffff; /* Card Background */
  color: #2F6BFF; /* Main Color */
  border: 2px solid #2F6BFF; /* Main Color */
}

.page-index__btn-download:hover {
  opacity: 0.9;
}

/* General image and button responsive styles */
.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;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-index__guide-card {
    flex: 0 0 calc(33.333% - 8px);
    max-width: calc(33.333% - 8px);
  }
  .page-index__guide-card--pos-1, .page-index__guide-card--pos-5 {
    padding-top: 0;
  }
  .page-index__guide-card--pos-2, .page-index__guide-card--pos-4 {
    padding-top: 0;
  }
  .page-index__guide-card--pos-3 {
    padding-top: 0;
  }
  .page-index__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-index__section-title, .tieudevip {
    font-size: 1.8em;
    margin: 30px auto;
  }

  /* Module 0: Hero Carousel - Mobile */
  .page-index__hero-carousel-section {
    padding-top: 10px !important; /* Small top padding, assuming body already has header offset */
  }
  .page-index__hero-slider-prev,
  .page-index__hero-slider-next {
    padding: 8px 12px;
    font-size: 1.2em;
  }
  .page-index__hero-slider-dots {
    bottom: 5px;
    gap: 5px;
  }
  .page-index__hero-slider-dots button {
    width: 8px;
    height: 8px;
  }

  /* Module 1: Guide Section - Mobile */
  .page-index__guide-box {
    padding: 10px;
  }
  .page-index__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* For 2-3 layout */
    gap: 8px;
  }
  .page-index__guide-card {
    flex: none;
    max-width: none;
    padding-top: 0 !important; /* Reset mountain effect */
  }
  .page-index__guide-card--pos-1,
  .page-index__guide-card--pos-2 { grid-column: span 3; } /* Top 2 cards, 50% width each */
  .page-index__guide-card--pos-3,
  .page-index__guide-card--pos-4,
  .page-index__guide-card--pos-5 { grid-column: span 2; } /* Bottom 3 cards, 33.33% width each */

  /* Module 2: Home Content Section - Mobile */
  .page-index__home-content-box {
    max-width: 100%;
    height: auto; /* Auto height for mobile */
    padding: 20px 16px;
    border-width: 3px;
  }
  .page-index__home-content-inner {
    height: auto; /* Auto height for mobile */
    overflow: visible; /* Show all content */
    padding-right: 0;
  }
  .page-index__home-content-title {
    font-size: 1.8em;
  }
  .page-index__home-content-box h2 {
    font-size: 1.5em;
  }
  .page-index__home-content-box h3 {
    font-size: 1.2em;
  }
  .page-index__home-content-box p, .page-index__home-content-box ul, .page-index__home-content-box ol {
    font-size: 1em;
  }

  /* Module 3: Blog Section - Mobile */
  .page-index__blog-grid {
    grid-template-columns: 1fr; /* 1 column for mobile */
    gap: 15px;
  }
  .page-index__blog-media {
    height: 180px;
  }
  .page-index__blog-title {
    font-size: 1.1em;
  }

  /* Module 4: App Download Section - Mobile */
  .page-index__app-download-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-index__btn-download {
    min-width: unset;
    width: 100% !important;
    padding: 12px 20px;
  }
  
  /* General mobile image and button overrides */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__app-download-buttons {
    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 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;
  }
}