.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main color for general content */
  background-color: #B71C1C; /* Background color */
}

/* HERO主图区域样式 */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* Assuming shared.css handles body padding-top for fixed header */
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

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

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

/* 🚨 移动端主图防裁切（必读） */
@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;
  }
}

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

/* Sản phẩm trưng bày khu vực */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  box-sizing: border-box;
  background-color: #B71C1C; /* Background color */
}

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

.page-index__products-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(6, 1fr); /* Desktop: 6 columns in one row */
  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;
}

.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;
  border-radius: 0; /* Ensure no round corners */
}

@media (max-width: 768px) {
  .page-index__products-section {
    padding: 40px 15px;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  .page-index__products-container,
  .page-index__products-grid {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  .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;
  }
}

/* Tiêu đề chính trang trí giữa trang */
.page-index__section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  padding: 24px 12px;
  box-sizing: border-box;
  text-align: center;
  background-color: #B71C1C; /* Background color */
}
.page-index__section-title {
  margin: 0;
  font-size: clamp(1.1rem, 4.5vw, 1.75rem); /* H1 font size clamp */
  line-height: 1.35;
  color: #FFF5E1; /* Text Main color */
  font-weight: 700;
}
.page-index__section-title-line {
  flex: 1;
  max-width: 80px;
  height: 2px;
  background-color: #F2B544; /* Border color */
  opacity: 0.6;
}
@media (max-width: 768px) {
  .page-index__section-title-line { max-width: 30px !important; }
  .page-index__section-title {
    font-size: clamp(1.25rem, 5vw, 1.5rem) !important; /* Mobile H1 font size adjustment */
  }
}


/* Nội dung SEO dài */
.page-index__article-body {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px 48px;
  box-sizing: border-box;
  overflow-x: hidden;
  background-color: #B71C1C; /* Background color */
  color: #FFF5E1; /* Text Main color */
}
.page-index__article-body h2 {
  margin: 2rem 0 1rem;
  color: #F4D34D; /* Gold color for H2 */
  font-size: 2rem;
  font-weight: 700;
}
.page-index__article-body h3 {
  margin: 1.25rem 0 0.75rem;
  color: #FFCC66; /* Glow color for H3 */
  font-size: 1.5rem;
  font-weight: 600;
}
.page-index__article-body p,
.page-index__article-body li {
  margin-bottom: 1em;
  font-size: 1.05rem;
  line-height: 1.7;
}
.page-index__article-body a {
  color: #FFD86A; /* Lighter gold for links */
  text-decoration: underline;
}
.page-index__article-body a:hover {
  color: #E6B800; /* Darker gold on hover */
}
.page-index__article-figure {
  margin: 1.5rem auto;
  max-width: 800px;
  text-align: center;
  width: 100%; /* Ensure figure is responsive */
  box-sizing: border-box;
}
.page-index__article-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* Slight round for article images */
}
.page-index__article-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #FFCC66; /* Glow color */
}
.page-index__article-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #F4D34D; /* Gold border */
  background-color: #7A0E0E; /* Deep Red background for blockquote */
  color: #FFF5E1; /* Text Main color */
  border-radius: 4px;
}
.page-index__article-quote-link {
  font-weight: bold;
}
.page-index__article-list {
  list-style: disc;
  margin-left: 20px;
  padding-left: 0;
  margin-bottom: 1em;
}
.page-index__article-list li {
  margin-bottom: 0.5em;
}

/* Static FAQ styles (no JS interaction) */
.page-index__article-faq-question {
  color: #FFCC66; /* Glow color for FAQ questions */
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}
.page-index__article-faq-answer {
  background-color: #D32F2F; /* Card BG color */
  padding: 15px 20px;
  border-radius: 4px;
  color: #FFF5E1; /* Text Main color */
  margin-bottom: 1rem;
}

/* Button styles (using custom gradient and colors) */
.page-index__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E; /* Deep Red text for button */
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}
.page-index__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

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

/* 🚨 移动端 @media (max-width: 768px) 必写清单 */
@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO主图区域 - 移动端 */
  .page-index__hero-section {
    padding-top: 10px !important; /* Ensure small padding */
  }
  .page-index__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Sản phẩm trưng bày khu vực - 移动端 */
  .page-index__products-section {
    padding: 40px 15px;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  .page-index__products-container,
  .page-index__products-grid {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  .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;
  }

  /* Tiêu đề chính trang trí giữa trang + Nội dung SEO dài - 移动端 */
  .page-index__section-title-wrap {
    padding: 20px 10px;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__section-title {
    font-size: clamp(1.25rem, 5vw, 1.5rem) !important;
  }
  .page-index__section-title-line { max-width: 30px !important; }

  .page-index__article-body {
    padding: 0 15px 32px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  .page-index__article-body h2 {
    font-size: clamp(1.5rem, 6vw, 1.75rem) !important;
  }
  .page-index__article-body h3 {
    font-size: clamp(1.2rem, 5vw, 1.35rem) !important;
  }
  .page-index__article-body p,
  .page-index__article-body li {
    font-size: 15px;
  }
  .page-index__article-figure {
    width: 100% !important;
    max-width: 100% !important;
  }
  .page-index__article-figure img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__article-quote {
    padding: 15px;
  }
  .page-index__article-faq-question {
    font-size: 1.1rem !important;
  }
  .page-index__article-faq-answer {
    padding: 15px !important;
  }

  /* 通用图片与容器 - 移动端 */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Nút và vùng chứa nút - 移动端 */
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }
  .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;
    display: flex; /* Ensure flex context for wrap */
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}