/* ============ RESET & SCOPE ============ */
.page-index {
  color: #FFF1E8;
  background-color: #140C0C;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.65;
}
.page-index h1,
.page-index h2,
.page-index h3 {
  color: #F3C54D;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}
.page-index h1 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
.page-index h2 { font-size: clamp(1.2rem, 2.4vw, 1.7rem); }
.page-index h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }
.page-index p { margin-bottom: 14px; color: #FFF1E8; }
.page-index a { text-decoration: none;}
.page-index img { display: block; max-width: 100%; }

/* ============ HERO SECTION ============ */
.page-index__hero-section {
  position: relative;
  width: 100%;
  padding-top: 0;
  margin-top: 0;
  overflow: hidden;
  background: #140C0C;
}
.page-index__hero-carousel {
  position: relative;
  width: 100%;
}
.page-index__hero-slide {
  display: none;
  width: 100%;
}
.page-index__hero-slide.is-active {
  display: block;
}
.page-index__hero-slide a {
  display: block;
}
.page-index__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 1920 / 660;
}
.page-index__hero-prev,
.page-index__hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #6A1E1E;
  background: rgba(42, 18, 18, 0.75);
  color: #F3C54D;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.page-index__hero-prev:hover,
.page-index__hero-next:hover { background: #7E0D0D; }
.page-index__hero-prev { left: 12px; }
.page-index__hero-next { right: 12px; }
.page-index__hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.page-index__hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 241, 232, 0.4);
  cursor: pointer;
  padding: 0;
}
.page-index__hero-dots button.is-active { background: #F3C54D; }

/* ============ BANNER THUMBS ============ */
.page-index__banner-section {
  max-width: 1200px;
  margin: 14px auto 0;
  padding: 0 16px;
}
.page-index__banner-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.page-index__banner-thumbs a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #6A1E1E;
  transition: transform 0.2s ease;
}
.page-index__banner-thumbs a:hover { transform: translateY(-3px); }
.page-index__banner-thumbs img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ============ INTRO ============ */
.page-index__intro-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 16px;
}
.page-index__intro-section h1 {
  color: #F3C54D;
  margin-bottom: 20px;
}
.page-index__intro-section p {
  font-size: 1rem;
  color: #FFF1E8;
}

/* ============ POSTS ============ */
.page-index__posts-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}
.page-index__posts-section h2 { margin-bottom: 20px; }
.page-index__posts-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-index__posts-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  width: 100%;
}
.page-index__post-card {
  flex: 0 0 calc(25% - 12px);
  background: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.page-index__post-card:hover { transform: translateY(-4px); }
.page-index__post-card a { display: block; color: inherit; }
.page-index__post-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
.page-index__post-card time {
  display: block;
  padding: 10px 14px 0;
  font-size: 0.82rem;
  color: #F3C54D;
}
.page-index__post-card h3 {
  padding: 6px 14px 6px;
  font-size: 1rem;
  color: #FFF1E8;
}
.page-index__post-more {
  display: block;
  padding: 0 14px 14px;
  color: #F3C54D;
  font-size: 0.88rem;
  text-decoration: underline;
}
.page-index__posts-prev,
.page-index__posts-next {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #6A1E1E;
  background: #2A1212;
  color: #F3C54D;
  font-size: 22px;
  cursor: pointer;
}

/* ============ PROMO ============ */
.page-index__promo-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
  text-align: center;
}
.page-index__promo-section p {
  max-width: 720px;
  margin: 0 auto 20px;
}
.page-index__promo-section a { display: block; max-width: 520px; margin: 0 auto; }
.page-index__promo-section img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid #6A1E1E;
}

/* ============ LIST ============ */
.page-index__list-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}
.page-index__list-section h2 { margin-bottom: 20px; }
.page-index__list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.page-index__list-item {
  background: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.page-index__list-item:hover { transform: translateY(-4px); }
.page-index__list-item a { display: block; color: inherit; }
.page-index__list-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.page-index__list-item h3 {
  padding: 12px 16px 6px;
  color: #F3C54D;
  font-size: 1.1rem;
}
.page-index__list-item p {
  padding: 0 16px 16px;
  font-size: 0.92rem;
  color: #FFF1E8;
  margin: 0;
}

/* ============ FAQ ============ */
.page-index__faq-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}
.page-index__faq-section h2 { margin-bottom: 20px; }
.page-index__faq-item {
  background: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 12px 16px;
}
.page-index__faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: #F3C54D;
  list-style: none;
  padding-right: 20px;
  position: relative;
}
.page-index__faq-item summary::-webkit-details-marker { display: none; }
.page-index__faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  color: #F3C54D;
  font-size: 1.2rem;
}
.page-index__faq-item[open] summary::after { content: '−'; }
.page-index__faq-item p {
  margin-top: 10px;
  margin-bottom: 0;
  color: #FFF1E8;
}

/* ============ OVERLAY ============ */
.page-index__overlay-section {
  position: relative;
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.page-index__overlay-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.page-index__overlay-mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 12, 0.72);
  z-index: 1;
}
.page-index__overlay-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 32px 20px;
}
.page-index__overlay-content h2 { color: #F3C54D; }
.page-index__overlay-content p { color: #FFF1E8; }

/* ============ CTA ============ */
.page-index__cta-section {
  position: relative;
  max-width: 1200px;
  margin: 24px auto 40px;
  padding: 0 16px;
  border-radius: 16px;
  overflow: hidden;
}
.page-index__cta-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}
.page-index__cta-overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 24px;
  text-align: center;
  z-index: 2;
  padding: 16px;
  background: rgba(20, 12, 12, 0.78);
  border: 1px solid #6A1E1E;
  border-radius: 12px;
}
.page-index__cta-overlay h2 {
  color: #F3C54D;
  margin-bottom: 12px;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
}
.page-index__cta-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #140C0C;
  font-weight: 700;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

/* ============ RESPONSIVE 768 ============ */
@media (max-width: 768px) {
  .page-index {
    max-width: 100%;
    overflow-x: hidden;
  }
  .page-index img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-index__hero-prev,
  .page-index__hero-next {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .page-index__hero-prev { left: 6px; }
  .page-index__hero-next { right: 6px; }
  .page-index__banner-section { padding: 0 12px; }
  .page-index__banner-thumbs {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .page-index__intro-section,
  .page-index__posts-section,
  .page-index__promo-section,
  .page-index__list-section,
  .page-index__faq-section { padding-left: 12px; padding-right: 12px; }
  .page-index__posts-wrap { flex-direction: column; align-items: stretch; }
  .page-index__posts-prev,
  .page-index__posts-next { display: none; }
  .page-index__posts-track { gap: 12px; }
  .page-index__post-card { flex: 0 0 85%; }
  .page-index__list-grid { grid-template-columns: 1fr; }
  .page-index__overlay-section { min-height: 220px; }
  .page-index__cta-section { padding: 0 12px; }
  .page-index__cta-overlay {
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
    margin: -40px 12px 20px;
  }
  .page-index__cta-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
  }
}