:root {
  --deep-navy-color: #08162B;
}

.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Text Main */
  background-color: var(--deep-navy-color);
}

.page-index__section {
  padding: 40px 0;
  margin-bottom: 20px;
  box-sizing: border-box;
}

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

.page-index__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F3F8FF; /* Text Main */
}

.tieudevip {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin: 30px auto 50px auto;
  color: #1D5FD1; /* Auxiliary Color */
  position: relative;
  display: inline-block;
  padding: 10px 30px;
  border: 2px solid #244D84; /* Border Color */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  max-width: 90%;
}

.page-index__hero-carousel-section {
  padding-top: 10px; /* Small top padding, assuming body has padding-top from shared */
  margin-bottom: 0;
}

.page-index__hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.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-dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
}

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

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

.page-index__guide-box .tieudevip {
  color: #113B7A;
  border-color: #1D5FD1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__guide-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start; /* For mountain layout */
  justify-content: center;
  gap: 8px;
}

.page-index__guide-card {
  display: block;
  flex: 0 0 18%; /* Adjusted to fit 5 cards with gap */
  max-width: 18%;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 5px;
  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;
  object-fit: contain;
  display: block;
}

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

.page-index__home-content-section {
  padding: 60px 0;
  background-color: var(--deep-navy-color);
}

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

.page-index__home-content-box {
  max-width: 91%;
  width: 100%;
  margin: 0 auto;
  padding: 20px 25px;
  border: 5px solid #3477c9; /* Custom blue border */
  border-radius: 15px;
  box-shadow: 0 0 20px #3477c9;
  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; /* Scrollable content */
  overflow-x: hidden;
  padding-right: 15px; /* Space for scrollbar */
}

.page-index__home-content-inner::-webkit-scrollbar {
  width: 8px;
}

.page-index__home-content-inner::-webkit-scrollbar-thumb {
  background-color: #1D5FD1; /* Auxiliary Color */
  border-radius: 4px;
}

.page-index__home-content-title {
  font-size: 2.8em;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
  font-weight: bold;
}

.page-index__home-content-box h2 {
  font-size: 2em;
  color: #1D5FD1; /* Auxiliary Color */
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 2px solid #244D84; /* Border Color */
  padding-bottom: 5px;
}

.page-index__home-content-box h3 {
  font-size: 1.5em;
  color: #F3F8FF; /* Text Main */
  margin-top: 25px;
  margin-bottom: 10px;
}

.page-index__home-content-box p {
  margin-bottom: 15px;
  color: #AFC4E8; /* Text Secondary */
}

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

.page-index__home-content-box ul,
.page-index__home-content-box ol {
  margin-bottom: 15px;
  padding-left: 25px;
  color: #AFC4E8; /* Text Secondary */
}

.page-index__home-content-box li {
  margin-bottom: 8px;
}

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

.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 figcaption {
  font-size: 0.9em;
  color: #AFC4E8; /* Text Secondary */
  margin-top: 10px;
}

.page-index__faq-question {
  cursor: pointer;
  background-color: #113B7A; /* Main Color */
  color: #F3F8FF; /* Text Main */
  padding: 15px 20px;
  border-radius: 8px;
  margin-top: 15px;
  position: relative;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-index__faq-question:hover {
  background-color: #1D5FD1; /* Auxiliary Color */
}

.page-index__faq-answer {
  padding: 15px 20px;
  background-color: #10233F; /* Card BG */
  color: #AFC4E8; /* Text Secondary */
  border-radius: 0 0 8px 8px;
  margin-top: -5px;
  border: 1px solid #244D84;
  border-top: none;
}

.page-index__blog-section {
  padding: 60px 0;
  background-color: var(--deep-navy-color);
}

.page-index__blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Changed to 3 columns for better fit with 6-8 cards */
  gap: 30px;
}

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

.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;
  overflow: hidden;
  height: 200px; /* Fixed height for blog card image container */
}

.page-index__blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure image covers the area */
  display: block;
  border-radius: 15px 15px 0 0;
}

.page-index__blog-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #1D5FD1; /* Auxiliary Color */
  color: #F3F8FF; /* Text Main */
  padding: 8px 12px;
  border-radius: 5px;
  font-size: 0.9em;
  text-align: center;
  line-height: 1.2;
}

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

.page-index__blog-title {
  font-size: 1.4em;
  color: #F2C14E; /* Gold */
  padding: 15px 20px 0;
  margin: 0;
  line-height: 1.3;
}

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

.page-index__app-download-section {
  padding: 60px 0;
  background-color: #113B7A; /* Main Color */
  text-align: center;
}

.page-index__app-download-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-index__app-download-text {
  max-width: 600px;
}

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

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

.page-index__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button gradient */
  color: #F3F8FF; /* Text Main */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  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);
}

.page-index__app-download-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.page-index__copyright {
  text-align: center;
  padding: 20px 15px;
  font-size: 0.9em;
  color: #AFC4E8; /* Text Secondary */
  background-color: #08162B; /* Deep Navy */
}

/* General image and button responsiveness for mobile */
.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 (max-width: 1024px) {
  .page-index__guide-card {
    flex: 0 0 22%;
    max-width: 22%;
  }
  .page-index__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .page-index__section-title, .tieudevip {
    font-size: 1.8em;
    margin-top: 20px;
    margin-bottom: 30px;
    padding: 8px 20px;
  }

  /* Module 0: Hero Carousel */
  .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-dot {
    width: 8px;
    height: 8px;
  }

  /* Module 1: Guide Section */
  .page-index__guide-box {
    padding: 15px;
  }
  .page-index__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Basis for 2+3 layout */
    gap: 10px;
  }
  .page-index__guide-card {
    flex: none;
    max-width: none;
    padding-top: 0 !important; /* Reset mountain layout */
  }
  .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; }

  /* Module 2: Home Content Long Article */
  .page-index__home-content-box {
    max-width: 100% !important;
    height: auto !important; /* Auto height for mobile */
    padding: 20px 15px;
    border-width: 3px;
  }
  .page-index__home-content-inner {
    height: auto !important;
    overflow-y: visible !important; /* Disable scroll for mobile */
    padding-right: 0;
  }
  .page-index__home-content-title {
    font-size: 2em;
  }
  .page-index__home-content-box h2 {
    font-size: 1.6em;
  }
  .page-index__home-content-box h3 {
    font-size: 1.3em;
  }

  /* Module 3: Latest Blog Posts */
  .page-index__blog-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }
  .page-index__blog-title {
    font-size: 1.2em;
  }
  .page-index__blog-media {
    height: 180px;
  }

  /* Module 4: App Download Promotion */
  .page-index__app-download-box {
    flex-direction: column;
  }
  .page-index__app-download-title {
    font-size: 2em;
  }
  .page-index__app-download-description {
    font-size: 1em;
  }
  .page-index__app-download-button {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  /* General image responsiveness */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__app-download-box {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* General button responsiveness */
  .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; /* Mobile vertical stacking */
  }
}