/* Djinny info pages (/cach-hoat-dong, /hoi-dap, /cam-nang) — loaded after home.css and job.css */

.page-hero {
  padding: 120px 0 48px;
  background: var(--blue-soft);
}


.wrap-narrow {
  max-width: 920px;
}


.page-hero h1 {
  margin-top: 14px;
  font-size: 46px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}


.page-lead {
  margin-top: 14px;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}


.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}


.page-actions .pill,
.page-band .pill,
.article-cta .pill {
  border-radius: 10px;
}


.page-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 20px;
  background: var(--grey);
}


.page-band b {
  font-size: 19px;
}


.page-band p {
  margin-top: 4px;
  color: var(--muted);
}


.page-band-soft {
  margin-top: 48px;
  background: var(--blue-soft);
}


/* How it works */

.steps-big {
  margin: 0;
  padding: 0;
  list-style: none;
}


.steps-big li {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}


.steps-big li:first-child {
  padding-top: 12px;
}


.steps-big .how-pic {
  flex: 0 0 260px;
  margin: 0;
}


.steps-big h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}


.steps-big p {
  margin-top: 6px;
  max-width: 600px;
  font-size: 16px;
  color: var(--muted);
}


/* Questions */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


.chips a {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease;
}


.chips a:hover {
  border-color: var(--blue);
  color: var(--blue);
}


.faq-group {
  margin-top: 44px;
  scroll-margin-top: 24px;
}


.faq-group h2 {
  font-size: 24px;
}


.faq-group .faq {
  max-width: none;
  margin: 12px 0 0;
}


/* Tips */

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}


.guide-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  transition: border-color 0.2s ease;
}


.guide-card:hover {
  border-color: var(--blue);
}


.guide-photo {
  width: calc(100% + 48px);
  max-width: none;
  height: auto;
  margin: -24px -24px 0;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 19px 19px 0 0;
}


.guide-kicker {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}


.guide-card h2 {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}


.guide-card p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}


.guide-more {
  margin-top: auto;
  padding-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}


/* Cẩm nang search + filter */

.guide-search {
  position: relative;
  display: block;
}


.guide-search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}


.guide-search input {
  width: 100%;
  height: 50px;
  padding: 0 16px 0 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}


.guide-search input:focus {
  border-color: var(--blue);
  outline: none;
}


.guide-search-row {
  display: flex;
  gap: 10px;
}


.guide-search-row .guide-search {
  flex: 1;
}


.guide-filter-btn {
  display: none;
  flex: none;
  align-items: center;
  gap: 6px;
  max-width: 46%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}


.guide-filter-btn svg {
  flex: none;
  width: 20px;
  height: 20px;
}


.guide-filter-btn span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}


.guide-filter-btn.is-set {
  border-color: var(--blue);
  color: var(--blue);
}


.sheet-backdrop[hidden],
.guide-sheet[hidden] {
  display: none;
}


.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  transition: opacity 0.25s ease;
}


.guide-sheet {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 91;
  display: flex;
  flex-direction: column;
  height: 66vh;
  height: 66dvh;
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -8px 30px rgba(15, 23, 42, 0.15);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}


.sheet-open .sheet-backdrop {
  opacity: 1;
}


.sheet-open .guide-sheet {
  transform: translateY(0);
}


.sheet-head {
  position: relative;
  flex: none;
  padding: 22px 20px 14px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  touch-action: none;
}


.sheet-handle {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 40px;
  height: 5px;
  border-radius: 5px;
  background: var(--line);
  transform: translateX(-50%);
}


.sheet-head b {
  font-size: 17px;
  font-weight: 600;
}


.sheet-close {
  position: absolute;
  top: 12px;
  right: 10px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}


.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0 calc(20px + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}


.sheet-group {
  padding-top: 6px;
  border-top: 1px solid var(--grey);
}


.sheet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  padding: 0 20px 0 36px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}


.sheet-row-group {
  padding-left: 20px;
  font-weight: 600;
}


.sheet-check {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--blue);
  visibility: hidden;
}


.sheet-row[aria-pressed="true"] {
  color: var(--blue);
}


.sheet-row[aria-pressed="true"] .sheet-check {
  visibility: visible;
}


/* Desktop: filter list on the left. Phones and tablets: Lọc button + bottom sheet. */

.page-hero:has(+ .guide-section) .wrap-narrow {
  max-width: 1180px;
}


.guide-search-row {
  margin-bottom: 24px;
}


.guide-side {
  display: none;
}


.row-count {
  margin-left: auto;
  padding-left: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}


.sheet-check {
  margin-left: 12px;
}


@media (min-width: 960px) {
  .guide-layout {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }


  .guide-side {
    position: sticky;
    top: 104px;
    display: block;
    max-height: calc(100vh - 128px);
    overflow-y: auto;
    padding: 18px 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    scrollbar-width: thin;
  }


  .guide-side-title {
    padding: 0 12px 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }


  .guide-side .sheet-group {
    margin-top: 6px;
    padding-top: 6px;
  }


  .guide-side .sheet-row {
    min-height: 38px;
    padding: 0 12px 0 24px;
    border-radius: 10px;
    font-size: 15px;
    transition: background 0.15s ease;
  }


  .guide-side .sheet-row-group {
    padding-left: 12px;
    font-weight: 600;
  }


  .guide-side .sheet-row:hover {
    background: var(--grey);
  }


  .guide-side .sheet-row[aria-pressed="true"] {
    background: var(--blue-soft);
  }


  .guide-side .sheet-row[aria-pressed="true"] .row-count {
    color: var(--blue);
  }


  .guide-side .sheet-check {
    display: none;
  }


  /* Only the picked group shows its services, so the list fits on screen. */
  .guide-side .sheet-group:not(.is-open) .sheet-row:not(.sheet-row-group) {
    display: none;
  }


  .guide-side .sheet-group .sheet-row-group::after {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    margin: -3px 2px 0 10px;
    border-right: 1.6px solid var(--muted);
    border-bottom: 1.6px solid var(--muted);
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
  }


  .guide-side .sheet-group.is-open .sheet-row-group::after {
    margin-top: -5px;
    transform: rotate(45deg);
  }
}


@media (max-width: 959px) {
  .guide-filter-btn {
    display: inline-flex;
  }
}


.guide-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
}


.guide-more-wrap [hidden] {
  display: none;
}


.guide-more-wrap {
  margin-top: 28px;
  text-align: center;
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


.more-guides .guide-grid {
  grid-template-columns: repeat(3, 1fr);
}


.more-guides h2 {
  margin-bottom: 24px;
  font-size: 26px;
}


.more-guides .guide-card h2 {
  margin-bottom: 0;
  font-size: 18px;
}


/* Article */

.section-article {
  padding-top: 44px;
}


.article {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.7;
}


.article h2 {
  margin-top: 36px;
  font-size: 24px;
  line-height: 1.3;
}


.article p {
  margin-top: 14px;
}


.article-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin-bottom: 28px;
  border-radius: 20px;
}


.article-photo + p {
  margin-top: 0;
  font-size: 19px;
}


.article ul {
  margin: 14px 0 0;
  padding-left: 22px;
}


.article li + li {
  margin-top: 8px;
}


.article .safety {
  margin-top: 24px;
  background: #FFF7E6;
}


.article-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 44px;
  padding: 24px;
  border-radius: 20px;
  background: var(--blue-soft);
}


.article-cta div {
  flex: 1;
}


.article-cta b {
  font-size: 18px;
}


.article-cta p {
  margin-top: 2px;
  font-size: 15px;
  color: var(--muted);
}


@media (max-width: 959px) {
  .more-guides .guide-grid {
    grid-template-columns: 1fr 1fr;
  }
}


@media (max-width: 767px) {
  .page-hero .crumbs > :nth-child(n+4) {
    display: none;
  }

  .page-hero {
    padding: 28px 0 32px;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .page-lead {
    font-size: 16px;
  }

  .section {
    padding: 40px 0;
  }

  .page-actions .pill {
    width: 100%;
  }

  .page-band,
  .article-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
  }

  .page-band .pill,
  .article-cta .pill {
    width: 100%;
  }

  .steps-big li {
    align-items: flex-start;
    gap: 20px;
    padding: 22px 0;
  }

  .steps-big li {
    flex-direction: column;
  }

  .steps-big .how-pic {
    flex: none;
    width: 100%;
  }

  .steps-big h2 {
    font-size: 18px;
  }

  .steps-big p {
    font-size: 15px;
  }

  .guide-grid,
  .more-guides .guide-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .guide-card {
    padding: 20px;
  }

  .guide-photo {
    width: calc(100% + 40px);
    margin: -20px -20px 0;
  }

  .article {
    font-size: 16px;
  }

  .article-photo + p {
    font-size: 17px;
  }

  .article h2 {
    font-size: 21px;
  }
}


/* Contact (/lien-he) */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}


.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
}


.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}


.contact-icon svg {
  width: 24px;
  height: 24px;
}


.contact-card h2 {
  margin-top: 16px;
  font-size: 19px;
  font-weight: 600;
}


.contact-card p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}


.contact-action {
  margin-top: auto;
  padding-top: 16px;
  font-weight: 600;
  color: var(--blue);
}


/* 404 */

.page-actions-top {
  margin-top: 0;
}


.notfound-title {
  margin: 48px 0 16px;
  font-size: 22px;
  font-weight: 600;
}


@media (max-width: 767px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 22px;
  }
}
