/* style/index.css */
.page-index {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
  background-color: #ffffff; /* Explicitly set for clarity */
}

/* Section General Styling */
.page-index__section {
  padding: 40px 0;
  margin-bottom: 20px;
}

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

.page-index__section-title.tieudevip {
  font-size: 2.5em;
  font-weight: bold;
  color: #017439; /* Brand green */
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 10px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
}

.page-index__section-title.tieudevip::before,
.page-index__section-title.tieudevip::after {
  content: '';
  position: absolute;
  bottom: 0;
  height: 3px;
  background-color: #017439; /* Brand green border */
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.page-index__section-title.tieudevip::before {
  left: calc(50% - 100px);
  width: 80px;
}

.page-index__section-title.tieudevip::after {
  right: calc(50% - 100px);
  width: 80px;
}

/* Module 0: Hero Carousel Section */
.page-index__hero-carousel-section {
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  padding-bottom: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.page-index__hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.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: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5em;
  border-radius: 5px;
}

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

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

.page-index__hero-slider-prev::before { content: '‹'; }
.page-index__hero-slider-next::before { content: '›'; }

.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-dot {
  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-dot.is-active {
  background-color: #fff;
}

/* Module 1: Operation Guide Section */
.page-index__guide-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.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-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start; /* For staggered effect */
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.page-index__guide-card {
  display: block;
  flex: 0 0 18%; /* Adjusted to fit 5 items with gap */
  max-width: 18%;
  text-decoration: none;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 250 / 350; /* Fixed aspect ratio for portrait */
  object-fit: contain; /* Ensure image fits without cropping */
  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; }

/* Module 2: Home Content Long Text 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%; /* As per demo */
  width: 100%;
  margin: 0 auto;
  padding: 10px 16px;
  border: 5px solid #017439; /* Brand green border */
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(1, 116, 57, 0.5); /* Green shadow */
  height: 700px; /* Fixed height for desktop */
  text-align: left;
  box-sizing: border-box;
  background-color: #ffffff; /* Ensure white background for content */
}

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

.page-index__home-content-title {
  font-size: 2.2em;
  color: #017439; /* Brand green */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-index__home-content-subtitle {
  font-size: 1.8em;
  color: #017439; /* Brand green */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}