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

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

.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;
  margin-bottom: 30px;
  color: #F2C14E; /* Main Color */
}

/* tieudevip style */
.tieudevip {
  display: inline-block;
  padding: 10px 20px;
  border: 2px solid #F2C14E; /* Main Color */
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.5); /* Glow effect */
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 40px;
  background-color: #111111; /* Card BG */
}

/* Hero Carousel Section */
.page-index__hero-carousel-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  margin-bottom: 40px;
}

.page-index__hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 211, 107, 0.3); /* Glow */
}

.page-index__hero-slide {
  display: none;
}

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

.page-index__hero-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.page-index__hero-slider-prev,
.page-index__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(242, 193, 78, 0.7); /* Main Color with opacity */
  color: #0A0A0A;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1.5em;
  border-radius: 50%;
  z-index: 10;
}

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

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

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

.page-index__guide-box {
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 20px 24px;
  background: #111111; /* Card BG */
  border-radius: 8px;
  box-sizing: border-box;
  border: 1px solid #3A2A12; /* Border */
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.2);
}

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

.page-index__guide-card {
  display: block;
  flex: 0 0 calc(20% - 12px); /* 5 cards per row, accounting for 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(255, 211, 107, 0.4);
}

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

/* 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 {
  margin-top: 60px;
}

.page-index__home-content-box {
  max-width: 91%;
  margin: 0 auto;
  padding: 10px 16px;
  border: 5px solid #F2C14E; /* Main Color */
  border-radius: 15px;
  box-shadow: 0 0 20px #FFD36B; /* Glow */
  height: 700px;
  text-align: left;
  box-sizing: border-box;
  background-color: #111111; /* Card BG */
}

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

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

.page-index__home-content-inner::-webkit-scrollbar-track {
  background: #3A2A12; /* Border */
  border-radius: 10px;
}

.page-index__home-content-inner::-webkit-scrollbar-thumb {
  background: #F2C14E; /* Main Color */
  border-radius: 10px;
}

.page-index__home-content-title {
  font-size: 2.2em;
  color: #F2C14E;
  margin-bottom: 20px;
  text-align: center;
}

.page-index__home-content-section h2 {
  font-size: 1.8em;
  color: #FFD36B; /* Accent Color */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-index__home-content-section h3 {
  font-size: 1.4em;
  color: #FFF6D6; /* Text Main */
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-index__home-content-section p {
  margin-bottom: 15px;
  color: #FFF6D6;
}

.page-index__home-content-section ul,
.page-index__home-content-section ol {
  margin-bottom: 15px;
  padding-left: 25px;
  color: #FFF6D6;
}

.page-index__home-content-section li {
  margin-bottom: 8px;
  color: #FFF6D6;
}

.page-index__home-content-box img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 211, 107, 0.1);
}

.page-index__wp-caption {
  text-align: center;
  margin-bottom: 20px;
}

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

/* Blog Section */
.page-index__blog-section {
  margin-top: 60px;
}

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

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

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

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

.page-index__blog-media {
  position: relative;
  height: 200px; /* Fixed height for image container */
  overflow: hidden;
}

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

.page-index__blog-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #F2C14E; /* Main Color */
  color: #0A0A0A;
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  font-size: 0.85em;
}

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

.page-index__blog-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD36B; /* Accent Color */
  padding: 15px 15px 0;
  margin: 0;
}

.page-index__blog-excerpt {
  font-size: 0.9em;
  color: #FFF6D6;
  padding: 10px 15px 20px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* App Download Section */
.page-index__app-download-section {
  margin-top: 60px;
  margin-bottom: 60px;
}

.page-index__app-download-box {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: #111111; /* Card BG */
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 0 20px rgba(255, 211, 107, 0.3);
  border: 1px solid #3A2A12; /* Border */
  flex-wrap: wrap;
}

.page-index__app-info {
  flex: 1;
  min-width: 300px;
  text-align: left;
  margin-right: 30px;
}

.page-index__app-title {
  font-size: 2em;
  color: #F2C14E; /* Main Color */
  margin-bottom: 15px;
}

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

.page-index__app-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button Gradient */
  color: #0A0A0A; /* Dark text for light button */
  border: none;
}

.page-index__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-index__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Main Color */
  border: 2px solid #F2C14E; /* Main Color */
}

.page-index__btn-secondary:hover {
  background-color: #F2C14E;
  color: #0A0A0A;
  transform: translateY(-2px);
}

.page-index__app-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-index__app-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 211, 107, 0.3);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index__guide-card {
    flex: 0 0 calc(25% - 11.25px); /* 4 cards per row */
    max-width: calc(25% - 11.25px);
  }
  .page-index__blog-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablet */
  }
  .page-index__app-download-box {
    flex-direction: column;
    padding: 30px;
  }
  .page-index__app-info {
    margin-right: 0;
    margin-bottom: 30px;
    text-align: center;
  }
  .page-index__app-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-index__section-content {
    padding: 0 10px;
  }
  .page-index__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }
  .tieudevip {
    padding: 8px 15px;
    font-size: 0.9em;
  }

  /* Hero Carousel Mobile */
  .page-index__hero-carousel-section {
    padding-top: 10px !important;
    margin-bottom: 20px;
  }
  .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 Mobile */
  .page-index__guide-box {
    padding: 15px;
  }
  .page-index__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Temporary for precise layout */
    gap: 8px;
  }
  .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 { /* Top 2 cards */
    grid-column: span 3;
  }
  .page-index__guide-card--pos-3,
  .page-index__guide-card--pos-4,
  .page-index__guide-card--pos-5 { /* Bottom 3 cards */
    grid-column: span 2;
  }
  .page-index__guide-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Home Content Section Mobile */
  .page-index__home-content-box {
    max-width: 100%;
    height: auto;
    padding: 20px 15px;
    border-width: 3px;
  }
  .page-index__home-content-inner {
    height: auto;
    overflow: visible;
    padding-right: 0;
  }
  .page-index__home-content-title {
    font-size: 1.8em;
  }
  .page-index__home-content-section h2 {
    font-size: 1.5em;
  }
  .page-index__home-content-section h3 {
    font-size: 1.2em;
  }
  .page-index__home-content-box img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Blog Section Mobile */
  .page-index__blog-grid {
    grid-template-columns: 1fr; /* 1 column for mobile */
    gap: 20px;
  }
  .page-index__blog-media img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* App Download Section Mobile */
  .page-index__app-download-box {
    padding: 20px;
  }
  .page-index__app-info {
    margin-bottom: 20px;
  }
  .page-index__app-title {
    font-size: 1.5em;
  }
  .page-index__app-description {
    font-size: 1em;
  }
  .page-index__app-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 10px;
    padding-right: 10px;
  }
  .page-index__btn-primary,
  .page-index__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-index__app-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* General image and button responsive */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section-content,
  .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: 10px;
    padding-right: 10px;
  }
}