/* ===== Trang chủ daga 67 - shared scope .page-index ===== */

/* --- HERO SECTION (Mô-đun 0) --- */
.page-index__hero-section {
  padding-top: 0;
  margin-top: 0;
  width: 100%;
  overflow: hidden;
}
.page-index__hero-container {
  width: 100%;
}
.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 17/5;
}

/* --- LOGO GRID SECTION (Mô-đun 1) --- */
.page-index__logo-grid-section {
  max-width: 1200px;
  margin: 16px auto 28px;
  padding: 0 16px;
}
.page-index__logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
  justify-items: center;
}
.page-index__logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 280px;
  text-align: center;
}
.page-index__logo-image {
  width: 100%;
  height: auto;
  aspect-ratio: 2/1;
  object-fit: contain;
  display: block;
}
.page-index__logo-cta {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background-color: #017439;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(4, 119, 219, 0.18);
  transition: background-color 0.2s ease, transform 0.15s ease;
  border: none;
  line-height: 1.4;
}
.page-index__logo-cta:hover {
  background-color: #005e2d;
  transform: translateY(-1px);
}
.page-index__logo-item:nth-child(5) {
  grid-column: 2 / 3;
}
.page-index__logo-item:nth-child(6) {
  grid-column: 3 / 4;
}

/* --- GUIDE SECTION (Mô-đun 2) --- */
.page-index__guide-section {
  background-color: #FFFFFF;
}
.page-index__guide-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 16px 48px;
  font-family: 'Segoe UI', Roboto, system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  color: #2d2d2d;
}
.page-index__guide-title {
  text-align: center;
  color: #017439;
  margin: 12px 0 20px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.page-index__guide-intro {
  text-align: justify;
  font-size: 1rem;
  line-height: 1.8;
}
.page-index__guide-inner h2 {
  color: #017439;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(1, 116, 57, 0.1);
}
.page-index__guide-inner h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 24px;
  margin-bottom: 10px;
}
.page-index__guide-inner p {
  margin-bottom: 16px;
  color: #3d3d3d;
  text-align: justify;
}
.page-index__guide-inner ul {
  padding-left: 24px;
  margin-bottom: 16px;
}
.page-index__guide-inner li {
  margin-bottom: 8px;
  color: #3d3d3d;
}
.page-index__guide-figure {
  margin: 24px auto;
  text-align: center;
  max-width: 800px;
}
.page-index__guide-figure img {
  width: 100%;
  max-width: 800px;
  height: auto;
  aspect-ratio: 2/1;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.page-index__guide-figure figcaption {
  font-size: 0.85rem;
  color: #555;
  margin-top: 8px;
  font-style: italic;
}
.page-index__guide-inner a,
.page-index__guide-inner a:visited {
  color: #0477db;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-index__guide-inner a:hover {
  color: #005fa3;
}

/* --- FAQ Styles --- */
.page-index__guide-inner details {
  border: 1px solid #e3e8e6;
  border-radius: 10px;
  padding: 8px 18px;
  margin-bottom: 12px;
  background: #fff;
}
.page-index__guide-inner details[open] {
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.page-index__faq-question {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  color: #1a1a1a;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-index__faq-question::-webkit-details-marker {
  display: none;
}
.page-index__faq-icon {
  font-weight: 700;
  font-size: 1.2rem;
  color: #017439;
  line-height: 1;
}
.page-index__guide-inner details p {
  margin-bottom: 8px;
}
.page-index__guide-inner blockquote {
  border-left: 4px solid #017439;
  margin: 20px 0;
  padding: 10px 20px;
  background: rgba(1, 116, 57, 0.03);
  font-style: italic;
}

.page-index {
  color: #333333;
}
.page-index img {
  max-width: 100%;
  height: auto;
}

/* --- Responsive styles --- */

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 0;
    margin-top: 0;
  }
  .page-index__hero-image {
    aspect-ratio: 2/1;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-index__logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }
  .page-index__logo-item {
    max-width: 260px;
  }
  .page-index__logo-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    width: auto;
  }
  .page-index__logo-item:nth-child(5),
  .page-index__logo-item:nth-child(6) {
    grid-column: auto;
  }
  .page-index__logo-cta {
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    padding: 8px 14px;
  }

  .page-index__guide-inner {
    padding: 12px 12px 32px;
  }
  .page-index__guide-title {
    font-size: clamp(1.25rem, 4.5vw, 1.5rem);
    line-height: 1.4;
  }

  .page-index__guide-figure img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-index__guide-inner h2 {
    font-size: 1.25rem;
  }
  .page-index__guide-inner h3 {
    font-size: 1.05rem;
  }

  .page-index img {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-index__logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 8px;
  }
  .page-index__logo-item {
    max-width: 180px;
    gap: 8px;
  }
  .page-index__logo-cta {
    padding: 8px 10px;
    font-size: 0.8rem;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 1200px) and (min-width: 769px) {
  .page-index__logo-grid {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
}