/* style/index.css */
.page-index {
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Assuming body background is white from shared.css */
}

.page-index__section {
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.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: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
  line-height: 1.2;
}

.tieudevip {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  color: #26A9E0;
  text-transform: uppercase;
  margin-bottom: 30px;
  padding: 10px 20px;
  border: 2px solid #26A9E0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(38, 169, 224, 0.3);
  display: inline-block;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* Module 0: Hero Carousel */
.page-index__hero-carousel-section {
  padding-top: 10px; /* Small top padding, assuming body handles main header offset */
  padding-bottom: 0;
}

.page-index__hero-slider {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-index__hero-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-index__hero-slider-prev,
.page-index__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(38, 169, 224, 0.7);
  color: #ffffff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1.5em;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.page-index__hero-slider-prev:hover,
.page-index__hero-slider-next:hover {
  background-color: #26A9E0;
}

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

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

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

.page-index__hero-slider-dots::before {
  content: ''; /* Placeholder for dots, JS will add actual dots */
}

/* Module 1: Guide Section */
.page-index__guide-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-index__guide-box {
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 20px 24px;
  background: #f5e6d3;
  border-radius: 8px;
  box-sizing: border-box;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-index__guide-box .tieudevip {
  margin-bottom: 30px;
}

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

.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 25px rgba(0, 0, 0, 0.2);
}

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

/* PC mountain effect */
.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: 60px 0;
  background-color: #ffffff;
}

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

.page-index__home-content-box {
  max-width: 91%;
  margin: 0 auto;
  padding: 20px 25px;
  border: 5px solid #26A9E0;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(38, 169, 224, 0.5);
  height: 700px; /* Fixed height for desktop */
  text-align: left;
  box-sizing: border-box;
  background-color: #ffffff;
}

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

.page-index__home-content-title {
  font-size: 2.8em;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-index__home-content-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

.page-index__home-content-subtitle {
  font-size: 2em;
  font-weight: 600;
  color: #26A9E0;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-index__home-content-subheading {
  font-size: 1.5em;
  font-weight: 600;
  color: #333333;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-index__home-content-box p,
.page-index__home-content-box li {
  color: #333333;
  margin-bottom: 15px;
}

.page-index__home-content-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

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

.page-index__wp-caption {
  margin: 30px 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 2px 10px rgba(0, 0, 0, 0.1);
}

.page-index__wp-caption figcaption {
  font-size: 0.9em;
  color: #777777;
  margin-top: 10px;
}

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

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

.page-index__blog-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  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.2);
}

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

.page-index__blog-media {
  position: relative;
  height: 200px; /* Fixed height for blog card images */
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.page-index__blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-index__blog-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  line-height: 1;
  font-size: 0.9em;
}

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

.page-index__blog-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #333333;
  padding: 15px 20px 10px;
  line-height: 1.4;
}

.page-index__blog-excerpt {
  font-size: 0.95em;
  color: #666666;
  padding: 0 20px 20px;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Module 4: App Download Section */
.page-index__app-download-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
}

.page-index__app-download-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-index__app-download-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-index__app-download-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-index__app-download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-index__app-download-btn {
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__btn-primary {
  background: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-index__btn-primary:hover {
  background: #d46b00;
  border-color: #d46b00;
  transform: translateY(-2px);
}

.page-index__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #ffffff;
}

.page-index__btn-secondary:hover {
  background: #e0e0e0;
  border-color: #e0e0e0;
  transform: translateY(-2px);
}

/* General image rules */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-index__section-title,
  .tieudevip {
    font-size: 1.8em;
    margin-bottom: 25px;
    padding: 8px 15px;
    max-width: 95%;
  }

  /* Hero Carousel */
  .page-index__hero-carousel-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-index__hero-slider-prev,
  .page-index__hero-slider-next {
    padding: 8px 12px;
    font-size: 1.2em;
  }

  .page-index__hero-slider-dots {
    bottom: 10px;
  }

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

  .page-index__guide-box {
    padding: 15px;
  }

  .page-index__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 2+3 layout */
    gap: 10px;
  }

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

  .page-index__guide-card--pos-3,
  .page-index__guide-card--pos-4,
  .page-index__guide-card--pos-5 {
    grid-column: span 2;
  }

  .page-index__guide-card img {
    aspect-ratio: 250 / 350;
    object-fit: contain;
  }

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

  .page-index__home-content-box {
    max-width: 100%;
    height: auto; /* Auto height for mobile */
    padding: 20px;
    border-width: 3px;
    box-shadow: 0 0 15px rgba(38, 169, 224, 0.4);
  }

  .page-index__home-content-inner {
    height: auto; /* Auto height for mobile */
    overflow-y: visible; /* Show full content */
    padding-right: 0;
  }

  .page-index__home-content-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .page-index__home-content-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-index__home-content-subtitle {
    font-size: 1.6em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-index__home-content-subheading {
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

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

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

  .page-index__blog-media {
    height: 180px;
  }

  .page-index__blog-title {
    font-size: 1.1em;
    padding: 12px 15px 8px;
  }

  .page-index__blog-excerpt {
    font-size: 0.9em;
    padding: 0 15px 15px;
  }

  /* App Download Section */
  .page-index__app-download-section {
    padding: 50px 0;
  }

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

  .page-index__app-download-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-index__app-download-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-index__app-download-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-index__app-download-btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-index__section-content,
  .page-index__card,
  .page-index__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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