/* style/index.css */
.page-index {
  color: #F2FFF6; /* Text Main */
  background: #08160F; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.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;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #F2FFF6;
}

/* tieudevip styles */
.page-index__section-title.tieudevip {
  font-size: clamp(1.8em, 2.5vw, 2.5em);
  font-weight: 700;
  color: #F2C14E; /* Gold */
  text-shadow: 0 0 5px rgba(242, 193, 78, 0.7);
  position: relative;
  padding-bottom: 15px;
  margin-top: 20px;
}

.page-index__section-title.tieudevip::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #F2C14E, transparent);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Hero Carousel Section */
.page-index__hero-carousel-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  background: #08160F; /* Background */
  position: relative;
  overflow: hidden;
}

.page-index__hero-slider {
  position: relative;
  max-width: 1020px; /* Max width for slider content */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.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(0, 0, 0, 0.5);
  color: #F2FFF6;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5em;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.page-index__hero-slider-prev:hover,
.page-index__hero-slider-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.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::before {
  content: '';
  display: block;
  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__hero-slider-dots::before.is-active {
  background-color: #F2FFF6;
}

/* Guide Section */
.page-index__guide-section {
  background: #08160F;
  padding-top: 40px;
  padding-bottom: 40px;
}

.page-index__guide-box {
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 20px 24px;
  background: #11271B; /* Card BG */
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(17, 168, 78, 0.3);
  text-align: center;
  box-sizing: border-box;
}

.page-index__guide-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.page-index__guide-card {
  display: block;
  flex: 0 0 calc(20% - 12px); /* 5 cards with gap */
  max-width: calc(20% - 12px);
  text-decoration: none;
  background: #0A4B2C; /* Deep Green */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

/* Home Content Section */
.page-index__home-content-section {
  background: #08160F;
  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: 20px 25px;
  border: 5px solid #2E7A4E; /* Border */
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(46, 122, 78, 0.7);
  height: 700px;
  text-align: left;
  box-sizing: border-box;
  background: #11271B; /* Card BG */
}

.page-index__home-content-inner {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 15px; /* Space for scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #2E7A4E #1E3A2A;
}

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

.page-index__home-content-inner::-webkit-scrollbar-track {
  background: #1E3A2A; /* Divider */
  border-radius: 10px;
}

.page-index__home-content-inner::-webkit-scrollbar-thumb {
  background-color: #2E7A4E; /* Border */
  border-radius: 10px;
  border: 2px solid #1E3A2A;
}

.page-index__home-content-title {
  font-size: clamp(1.8em, 2.5vw, 2.8em);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__home-content-box h2 {
  font-size: clamp(1.5em, 2vw, 2em);
  color: #F2C14E; /* Gold */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index__home-content-box h3 {
  font-size: clamp(1.2em, 1.8vw, 1.6em);
  color: #57E38D; /* Glow */
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: 500;
}

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

.page-index__home-content-box ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: #A7D9B8;
}

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

.page-index__home-content-box strong {
  color: #F2FFF6;
}

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

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

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

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

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

.page-index__blog-card {
  background: #11271B; /* Card BG */
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  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.6);
}

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

.page-index__blog-media {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.page-index__blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.page-index__blog-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
  font-size: 0.9em;
}

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

.page-index__blog-title {
  font-size: 1.25em;
  color: #F2FFF6; /* Text Main */
  padding: 15px;
  margin: 0;
  line-height: 1.3;
}

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

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

.page-index__view-all-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index__view-all-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Download App Section */
.page-index__download-app-section {
  background: #08160F;
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
}

.page-index__download-app-box {
  background: #11271B; /* Card BG */
  border-radius: 15px;
  padding: 40px 30px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

.page-index__download-app-title {
  font-size: clamp(1.8em, 2.5vw, 2.5em);
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: 700;
}

.page-index__download-app-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  line-height: 1.5;
}

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

.page-index__download-btn {
  display: inline-block;
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.2em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-index__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-index__btn-secondary {
  background: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  border: 2px solid #57E38D; /* Glow */
}

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

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

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

  /* 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-dots::before {
    width: 8px;
    height: 8px;
  }

  /* Guide Section */
  .page-index__guide-section {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .page-index__guide-box {
    padding: 15px;
    border-radius: 10px;
  }
  .page-index__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 15px;
  }
  .page-index__guide-card {
    flex: none;
    max-width: none;
    padding-top: 0 !important; /* Reset staggered padding */
  }
  .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 */
  .page-index__home-content-section {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .page-index__home-content-box {
    max-width: 100%;
    height: auto; /* Allow content to expand */
    padding: 20px 15px;
    border-radius: 10px;
    border: 3px solid #2E7A4E;
  }
  .page-index__home-content-inner {
    height: auto; /* Allow content to expand */
    overflow: visible; /* Disable scrollbar */
    padding-right: 0;
  }
  .page-index__home-content-title {
    font-size: 1.6em;
    margin-bottom: 15px;
  }
  .page-index__home-content-box h2 {
    font-size: 1.3em;
    margin-top: 25px;
  }
  .page-index__home-content-box h3 {
    font-size: 1.1em;
    margin-top: 20px;
  }
  .page-index__home-content-box p,
  .page-index__home-content-box ul li {
    font-size: 0.95em;
  }

  /* Blog Section */
  .page-index__blog-section {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .page-index__blog-grid {
    grid-template-columns: repeat(1, 1fr); /* Single column for mobile */
    gap: 20px;
    margin-top: 20px;
  }
  .page-index__blog-card {
    border-radius: 10px;
  }
  .page-index__blog-media {
    height: 180px;
  }
  .page-index__blog-date {
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    font-size: 0.8em;
  }
  .page-index__blog-title {
    font-size: 1.1em;
    padding: 10px;
  }
  .page-index__blog-excerpt {
    padding: 0 10px 10px;
  }
  .page-index__view-all-button-container {
    margin-top: 30px;
  }
  .page-index__view-all-button {
    padding: 10px 25px;
    font-size: 1em;
  }

  /* Download App Section */
  .page-index__download-app-section {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .page-index__download-app-box {
    padding: 30px 20px;
    border-radius: 10px;
  }
  .page-index__download-app-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-index__download-app-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-index__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 10px; /* Add padding to button container */
  }
  .page-index__download-btn {
    padding: 12px 25px;
    font-size: 1.1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General mobile image and button adaptations */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__download-app-box {
    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;
  }
  .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: 10px;
    padding-right: 10px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}