/* General Body and Main Content Styling */
.page-content.page-index {
  background-color: var(--background-color, #F5F7FA);
  color: var(--text-main-color, #333333);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* 1. HERO主图区域样式 */
.page-index__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* Assuming shared.css sets body padding-top */
  margin-top: 0;
  box-sizing: border-box;
}

.page-index__hero-container {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
}

.page-index__hero-image {
  width: 100%;
  margin: 0;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

@media (min-width: 850px) {
  .page-index__hero-image img {
    aspect-ratio: 16/5;
    object-fit: cover;
  }
}

/* 🚨 移动端主图防裁切（必读）：禁止 aspect-ratio + object-fit:cover + max-height 限高组合 */
@media (max-width: 849px) {
  .page-index__hero-section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-index__hero-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: unset !important;
    object-fit: contain !important;
    max-height: none !important;
    display: block !important;
  }
}

/* 🚨 移动端响应式设计 for HERO (max-width: 768px) */
@media (max-width: 768px) {
  .page-index__hero-section {
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 10px !important; /* Important for mobile specifically */
    margin-top: 0;
  }
}

/* 2. Sản phẩm hiển thị khu vực样式 */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
  background-color: var(--card-bg-color, #FFFFFF); /* Using Card BG color */
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.page-index__products-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(6, 1fr); /* Desktop: 6 columns */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__product-card {
  width: 100%;
  max-width: 300px; /* Max width for each card */
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease;
  justify-self: center; /* Center cards in grid cell */
}

.page-index__product-card:hover {
  transform: translateY(-3px);
}

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

.page-index__product-card-image {
  width: 100%;
  max-width: 300px; /* Max width for image container */
  overflow: hidden;
}

.page-index__product-card-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* 🚨 Mobile Product Display Area (max-width: 768px) */
@media (max-width: 768px) {
  .page-index__products-section {
    padding: 40px 15px !important;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-index__products-container,
  .page-index__products-grid {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-index__products-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* Mobile: 2 columns x 3 rows */
    gap: 15px;
  }
  .page-index__product-card,
  .page-index__product-card-image {
    max-width: 100% !important;
  }
  .page-index__product-card-image img {
    width: 100% !important;
    height: auto !important;
  }
}

/* 3. Tiêu đề chính trang trí giữa样式 */
.page-index__section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  padding: 48px 20px;
  box-sizing: border-box;
  text-align: center;
  background-color: var(--background-color, #F5F7FA);
}

.page-index__section-title {
  margin: 0;
  font-size: clamp(1.5rem, 4.5vw, 2.75rem);
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-main-color, #333333);
  max-width: 800px;
}

.page-index__section-title-line {
  flex: 1;
  max-width: 120px;
  height: 2px;
  background-color: var(--border-color, #E0E0E0);
  opacity: 0.6;
}

/* 🚨 Mobile Centered Decorative Main Title (max-width: 768px) */
@media (max-width: 768px) {
  .page-index__section-title-wrap {
    padding: 32px 15px !important;
    flex-wrap: wrap;
  }
  .page-index__section-title {
    font-size: clamp(1.25rem, 6vw, 2rem) !important;
    max-width: 100%;
  }
  .page-index__section-title-line {
    max-width: 40px !important;
  }
}

/* 4. Phần thân SEO dài样式 */
.page-index__article-body {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
  box-sizing: border-box;
  overflow-x: hidden;
  background-color: var(--background-color, #F5F7FA);
  color: var(--text-main-color, #333333);
}

.page-index__article-body h2 {
  margin: 2.5rem 0 1.25rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--text-main-color, #333333);
}

.page-index__article-body h3 {
  margin: 1.5rem 0 0.8rem;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--text-main-color, #333333);
}

.page-index__article-body p {
  margin-bottom: 1rem;
}

.page-index__article-body ul {
  margin-bottom: 1rem;
  padding-left: 25px;
}

.page-index__article-body li {
  margin-bottom: 0.5rem;
}

.page-index__article-figure {
  margin: 2.5rem auto;
  max-width: 800px;
  text-align: center;
}

.page-index__article-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-index__article-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.9em;
  color: #666;
}

.page-index__article-quote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 5px solid var(--primary-color, #E53935);
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 5px;
  font-style: italic;
  color: var(--text-main-color, #333333);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-index__article-quote a {
  color: var(--primary-color, #E53935);
  text-decoration: none;
  font-weight: bold;
}

.page-index__article-quote a:hover {
  text-decoration: underline;
}

/* FAQ Static Section Styling (for homepage) */
.page-index__faq-qtext {
  margin: 1.5rem 0 0.5rem;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--text-main-color, #333333);
}

/* General button styles for the article body */
.page-index__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  margin-top: 1.5rem;
  border-radius: 5px;
  background: var(--button-gradient, linear-gradient(180deg, #FF5A4F 0%, #E53935 100%));
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* 🚨 Mobile Long-form SEO Body (max-width: 768px) */
@media (max-width: 768px) {
  .page-index__article-body {
    padding: 0 15px 40px !important;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__article-body h2 {
    font-size: clamp(1.4rem, 6vw, 1.8rem) !important;
    margin: 2rem 0 1rem !important;
  }
  .page-index__article-body h3 {
    font-size: clamp(1.1rem, 4.5vw, 1.4rem) !important;
    margin: 1.25rem 0 0.6rem !important;
  }
  .page-index__article-figure {
    margin: 2rem auto !important;
  }
  .page-index__article-figure img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__article-quote {
    padding: 1rem 1.25rem !important;
    margin: 1.5rem 0 !important;
  }
  .page-index__faq-qtext {
    font-size: clamp(1.1rem, 4.5vw, 1.3rem) !important;
  }
  .page-index__btn-primary {
    padding: 10px 20px !important;
    font-size: 1em !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}

/* 🚨 General Image Responsive (max-width: 768px) */
@media (max-width: 768px) {
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-index__section,
  .page-index__container,
  .page-index__products-section,
  .page-index__article-body {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* 🚨 General Button Responsive (max-width: 768px) */
@media (max-width: 768px) {
  .page-index__btn-primary,
  .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;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 10px; /* Add some space between stacked buttons */
  }
  .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 !important;
    padding-right: 15px !important;
    display: flex !important;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }
}