/* Màu sắc tùy chỉnh */
:root {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --card-bg-color: #D32F2F;
  --body-bg-color: #B71C1C; /* Lấy từ shared.css, nhưng dùng làm tham chiếu */
  --text-main-color: #FFF5E1;
  --border-color: #F2B544;
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --deep-red-color: #7A0E0E;
  --header-offset: 122px; /* Placeholder, giá trị thực từ shared.css */
}

/* Base styles for page-index */
.page-index {
  color: var(--text-main-color); /* Light text for dark body background */
  background: var(--body-bg-color); /* Ensure content area has consistent background */
}

.page-index p,
.page-index li,
.page-index th,
.page-index td {
  color: var(--text-main-color);
}

.page-index a {
  color: var(--gold-color);
  text-decoration: none;
}

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

/* MÔ-ĐUN 1: TRƯỢT ANH HÙNG */
.page-index__hero-slider {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  max-width: 1920px; /* Limit slider width */
  margin: 0 auto;
  box-sizing: border-box;
}

.page-index__hero-slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease-in-out;
}

.page-index__hero-slider-slide {
  flex: 0 0 100%;
  width: 100%;
  display: none;
}

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

.page-index__hero-slider-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-index__hero-slider-prev,
.page-index__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  line-height: 1;
  border-radius: 4px;
}

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

.page-index__hero-slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
}

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

/* MÔ-ĐUN 2: KHOẢNG TRẮNG */
.page-index__spacing {
  height: 30px;
  width: 100%;
}

/* MÔ-ĐUN 3: KHU VỰC KHUYẾN MÃI HAI CỘT */
.page-index__promo-duo {
  max-width: 1250px;
  margin: 0 auto 30px auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-index__promo-duo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.page-index__promo-duo-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: var(--card-bg-color);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.page-index__promo-duo-col img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  min-width: 200px;
  min-height: 200px;
}

.page-index__promo-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  background: var(--button-gradient);
  color: #000; /* Text color for gold button */
  border-radius: 4px;
  text-decoration: none;
  max-width: 100%;
  box-sizing: border-box;
  font-weight: bold;
  font-size: 18px;
  border: 2px solid var(--border-color); /* Gold border for button */
  box-shadow: 0 0 10px var(--glow-color); /* Glow effect */
}

.page-index__promo-cta:hover {
  opacity: 0.9;
}

/* MÔ-ĐUN 4: TIÊU ĐỀ TRANG TRÍ (H1 DUY NHẤT) */
.page-index__section-title {
  text-align: center;
  margin: 30px auto;
  max-width: 1250px;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-index__main-heading {
  font-size: 3em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold-color); /* Gold color for main heading */
  text-shadow: 0 0 10px var(--glow-color);
  margin: 0;
  padding: 0;
}

/* MÔ-ĐUN 5: NỘI DUNG SEO DÀI (HỘP CUỘN CÓ ĐỘ CAO CỐ ĐỊNH) */
.page-index__home-content {
  max-width: 900px;
  margin: 24px auto;
  height: 700px; /* Fixed height for desktop */
  padding: 10px;
  box-sizing: border-box;
  border: 5px solid var(--border-color); /* F2B544 */
  border-radius: 15px;
  box-shadow: 0 0 20px var(--glow-color); /* FFCC66 */
  background: var(--deep-red-color); /* 7A0E0E for content background */
}

.page-index__home-content-inner {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 16px;
  text-align: justify;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

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

.page-index__home-content-inner::-webkit-scrollbar-thumb {
  background-color: var(--gold-color); /* F4D34D */
  border-radius: 20px;
  border: 3px solid var(--border-color); /* F2B544 */
}

.page-index__home-content-inner h2 {
  color: var(--gold-color);
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 2em;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(244, 211, 77, 0.5);
}

.page-index__home-content-inner h3 {
  color: var(--gold-color);
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.5em;
  font-weight: 500;
}

.page-index__home-content-inner p {
  line-height: 1.7;
  margin-bottom: 1em;
}

.page-index__home-content-inner ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 1em;
}

.page-index__home-content-inner li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

.page-index__home-content-inner figure {
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
  background: var(--card-bg-color); /* D32F2F */
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.page-index__home-content-inner figure img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  min-width: 200px;
  min-height: 200px;
}

.page-index__home-content-inner figcaption {
  font-size: 0.9em;
  color: var(--text-main-color);
  margin-top: 10px;
}

.page-index__table-wrapper {
  overflow-x: auto;
  margin-top: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-index__home-content-inner table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg-color); /* D32F2F */
  min-width: 600px; /* Ensure table is wide enough for scroll */
}

.page-index__home-content-inner th,
.page-index__home-content-inner td {
  border: 1px solid var(--border-color);
  padding: 12px 15px;
  text-align: left;
}

.page-index__home-content-inner th {
  background: var(--primary-color); /* C91F17 */
  color: #fff;
  font-weight: bold;
}

/* MÔ-ĐUN 6: BÀI VIẾT MỚI NHẤT · TRƯỢT THẺ BLOG */
.page-index__blog-slider {
  max-width: 1250px;
  margin: 30px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.page-index__blog-slider-title {
  text-align: center;
  color: var(--gold-color); /* E53935 */
  text-transform: uppercase;
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 30px;
  text-shadow: 0 0 8px var(--glow-color);
}