.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Text Main */
  background-color: #08162B; /* Deep Navy from body bg */
}

.page-index__section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-index__section-title {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #F3F8FF;
}

.page-index__tieudevip {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin: 40px auto;
  color: #113B7A;
  border: 2px solid #113B7A;
  border-radius: 8px;
  padding: 10px 20px;
  max-width: fit-content;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background-color: #F3F8FF;
  text-transform: uppercase;
}

/* Hero Carousel Section */
.page-index__hero-carousel-section {
  padding-top: 10px; /* Small top padding, not var(--header-offset) */
  padding-bottom: 0;
  max-width: 100%;
  overflow: hidden;
}

.page-index__hero-slider {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  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;
}

.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;
  font-size: 1.5em;
  z-index: 10;
  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;
}

.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: #1D5FD1;
}

/* Guide Section */
.page-index__guide-section {
  padding-top: 20px;
  padding-bottom: 40px;
}

.page-index__guide-box {
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 20px 24px;
  background: #10233F; /* Card BG */
  border-radius: 12px;
  box-sizing: border-box;
  border: 2px solid #244D84; /* Border */
  box-shadow: 0 0 20px rgba(79, 168, 255, 0.3); /* Glow */
}

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

.page-index__guide-card {
  display: block;
  flex: 0 0 calc(20% - 12px); /* 5 cards per row with gap */
  max-width: calc(20% - 12px);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

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

.page-index__guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 250 / 350; /* Maintain vertical aspect ratio */
  object-fit: contain;
  display: block;
}

/* PC staggered layout 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; }

/* Home Content Section */
.page-index__home-content-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

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

.page-index__home-content-box {
  max-width: 91%;
  width: 100%;
  margin: 0 auto;
  padding: 10px 16px;
  border: 5px solid #113B7A; /* Main color */
  border-radius: 15px;
  box-shadow: 0 0 25px #1D5FD1; /* Auxiliary color glow */
  height: 700px; /* Fixed height for desktop */
  text-align: left;
  box-sizing: border-box;
  background-color: #10233F; /* Card BG */
  color: #F3F8FF; /* Text Main */
}

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

.page-index__home-content-title {
  font-size: 2.5em;
  color: #F3F8FF; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-index__content-heading {
  font-size: 1.8em;
  color: #F2C14E; /* Gold */
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 2px solid #1B3357; /* Divider */
  padding-bottom: 5px;
}

.page-index__content-subheading {
  font-size: 1.4em;
  color: #AFC4E8; /* Text Secondary */
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-index__home-content-box p,
.page-index__home-content-box li {
  color: #F3F8FF; /* Text Main */
  margin-bottom: 10px;
}

.page-index__home-content-box strong {
  color: #F2C14E; /* Gold */
}

.page-index__wp-caption {
  margin: 20px auto;
  max-width: 100%;
  text-align: center;
}

.page-index__wp-caption img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__wp-caption-text {
  font-size: 0.9em;
  color: #AFC4E8; /* Text Secondary */
  margin-top: 10px;
}

/* Blog Section */
.page-index__blog-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

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

.page-index__blog-card {
  background-color: #10233F; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #244D84; /* Border */
}

.page-index__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-index__blog-media {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.page-index__blog-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px 12px 0 0; /* Match card radius */
}

.page-index__blog-date {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #113B7A; /* Main color */
  color: #F3F8FF; /* Text Main */
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9em;
  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;
  color: #F2C14E; /* Gold */
  padding: 15px 15px 5px;
  margin: 0;
}

.page-index__blog-excerpt {
  font-size: 0.9em;
  color: #AFC4E8; /* Text Secondary */
  padding: 0 15px 15px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

/* App Download Section */
.page-index__app-download-section {
  background-color: #08162B; /* Deep Navy */
  padding: 60px 20px;
  text-align: center;
}

.page-index__app-download-box {
  background-color: #10233F; /* Card BG */
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 0 25px rgba(79, 168, 255, 0.3); /* Glow */
  border: 2px solid #244D84; /* Border */
  max-width: 800px;
  margin: 0 auto;
}

.page-index__app-download-title {
  font-size: 2.2em;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
}

.page-index__app-download-description {
  font-size: 1.1em;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 30px;
}

.page-index__app-download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Primary Button Style */
.page-index__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button color */
  color: #F3F8FF; /* Text Main */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index__section {
    padding: 30px 15px;
  }

  .page-index__tieudevip {
    font-size: 1.8em;
    margin: 30px auto;
  }

  .page-index__guide-grid {
    gap: 10px;
  }

  .page-index__guide-card {
    flex: 0 0 calc(33.33% - 10px); /* 3 cards per row */
    max-width: calc(33.33% - 10px);
    padding-top: 0 !important; /* Reset staggered for smaller screens */
  }

  .page-index__home-content-box {
    max-width: 95%;
    height: 600px;
  }

  .page-index__home-content-title {
    font-size: 2em;
  }

  .page-index__content-heading {
    font-size: 1.5em;
  }

  .page-index__content-subheading {
    font-size: 1.2em;
  }

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

  .page-index__app-download-box {
    padding: 30px;
  }

  .page-index__app-download-title {
    font-size: 1.8em;
  }

  .page-index__app-download-description {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-index__section {
    padding: 20px 0;
  }

  .page-index__section-content {
    padding: 0 10px;
  }

  .page-index__section-title,
  .page-index__tieudevip {
    font-size: 1.5em;
    margin: 20px auto;
  }

  /* Hero Carousel Mobile */
  .page-index__hero-carousel-section {
    padding-top: 10px !important;
  }
  .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;
  }

  /* Guide Section Mobile */
  .page-index__guide-box {
    padding: 10px;
  }
  .page-index__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Temp grid for 2-3 layout */
    gap: 8px;
    margin-top: 20px;
  }
  .page-index__guide-card {
    flex: none;
    max-width: none;
    padding-top: 0 !important; /* Reset staggered for mobile */
  }
  .page-index__guide-card--pos-1,
  .page-index__guide-card--pos-2 { grid-column: span 3; }
  .page-index__guide-card--pos-3,
  .page-index__guide-card--pos-4,
  .page-index__guide-card--pos-5 { grid-column: span 2; }

  /* Home Content Section Mobile */
  .page-index__home-content-box {
    max-width: 100%;
    height: auto; /* Auto height for mobile */
    padding: 15px;
    border-width: 3px;
    box-shadow: 0 0 15px #1D5FD1;
  }
  .page-index__home-content-inner {
    height: auto; /* Auto height for mobile */
    overflow: visible; /* No scrollbar on mobile */
    padding-right: 0;
  }
  .page-index__home-content-title {
    font-size: 1.8em;
  }
  .page-index__content-heading {
    font-size: 1.3em;
  }
  .page-index__content-subheading {
    font-size: 1.1em;
  }

  /* Blog Section Mobile */
  .page-index__blog-grid {
    grid-template-columns: repeat(1, 1fr); /* 1 column for mobile */
    gap: 15px;
  }

  /* App Download Section Mobile */
  .page-index__app-download-box {
    padding: 20px;
  }
  .page-index__app-download-title {
    font-size: 1.5em;
  }
  .page-index__app-download-description {
    font-size: 0.9em;
  }
  .page-index__app-download-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* General Image and Button Mobile Adaptations */
  .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: 10px;
    padding-right: 10px;
  }

  .page-index__cta-button,
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .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;
  }
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-index__cta-buttons {
    display: flex;
    flex-direction: column; 
  }
}