html,
body {
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #202531;
  font-size: 1.25rem
}

.appt-card {
  border: none;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
  background: #fff
}

.procedure-link {
  display: block;
  padding: .75rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: .75rem;
  color: #102a43;
  text-decoration: none;
  transition: .15s;
  background: #fff
}

.procedure-link:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  transform: translateY(-1px)
}

.footer {
  background: #0f2147;
  color: #fff
}

.footer a {
  color: var(--accent);
  text-decoration: none
}

.footer a:hover {
  text-decoration: underline
}

.step-muted {
  opacity: .6;
  pointer-events: none
}

.hero {
  background: radial-gradient(1000px 400px at 50% -10%, #2152c6 0%, var(--brand) 50%, var(--brand-dark) 100%);
  color: #fff;
  text-align: center
}

.hero .logo {
  height: 35px;
  display: inline-block;
  margin-bottom: 14px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .2))
}

.hero .subtitle {
  font-weight: 800;
  letter-spacing: .6px;
  font-size: 1.6rem;
  text-transform: uppercase
}

.clickable-row {
  cursor: pointer;
  user-select: none;
  padding: .25rem .25rem;
  border-radius: .5rem;
}

.clickable-row:hover {
  background: rgba(0, 0, 0, .04);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1rem;
  color: #212529;
  padding: 0.6rem 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-item i {
  width: 28px;
  text-align: center;
  color: #000;
}

.feature-item:hover {
  transform: translateX(4px);
  color: #000;
}


.hero {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  padding-block: .9rem;
  transition: padding-block .22s ease, background .2s ease, box-shadow .22s ease;

  /* kích thước mặc định (chưa cuộn) */
  --logo-max: clamp(40px, 7vw, 64px);
  --title-size: clamp(16px, 2.2vw, 20px);
}

.hero .hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
}

/* QUAN TRỌNG: chỉ giới hạn max-height, để width auto -> không méo */
.hero .logo {
  display: block;
  width: auto !important;
  /* ngăn rule width:100% gây kéo ngang */
  height: auto !important;
  /* giữ đúng tỷ lệ gốc */
  max-height: var(--logo-max);
  /* co/giãn theo biến */
  object-fit: contain;
  /* phòng khi là SVG/PNG lớn */
  flex: 0 0 auto;
  transition: max-height .22s ease, transform .22s ease;
}

.hero .subtitle {
  font-size: var(--title-size);
  font-weight: 700;
  margin: 0;
  text-align: center;
  white-space: normal;
  text-wrap: balance;
  transition: font-size .22s ease, opacity .2s ease, transform .2s ease;
}

/* Khi cuộn: thu nhỏ cả logo + chữ, vẫn căn giữa, không méo */
.hero.is-stuck {
  --logo-max: 18px;
  --title-size: 11px;
  padding-block: .25rem;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.hero.is-stuck .subtitle {
  opacity: .95;
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {

  .hero,
  .hero .logo,
  .hero .subtitle {
    transition: none !important;
  }
}


/* Logo & brand base size */
.navbar-logo {
  height: 30px;
  width: auto;
  transition: height .2s ease, transform .2s ease;
}

.brand-text {
  font-size: 0.9rem;
  letter-spacing: .3px;
  transition: opacity .2s ease, font-size .2s ease;
  color: #0f172a;
}

/* Thu gọn khi cuộn */
#mainNav.is-scrolled {
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08) !important;
}

#mainNav.is-scrolled .navbar-logo {
  height: 32px;
  transform: translateY(-1px);
}

#mainNav.is-scrolled .brand-text {
  font-size: 0.9rem;
  opacity: .95;
}

/* Nav link style nhẹ nhàng */
.navbar .nav-link {
  font-weight: 500;
}

.navbar .nav-link.active {
  color: #0d6efd;
}

/* ===== Navbar compact cho mobile ===== */
@media (max-width: 576px) {

  /* logo nhỏ gọn */
  .navbar-brand img {
    height: 35px !important;
    width: auto;
  }

  /* text thương hiệu co giãn, cho phép xuống dòng */
  .brand-text {
    font-size: 0.6rem !important;
    line-height: 1.2;
    white-space: normal !important;
    /* cho phép xuống dòng */
    word-break: break-word;
  }

  /* nav link nhỏ hơn */
  .navbar-nav .nav-link {
    font-size: 0.9rem;
    padding: .4rem .6rem;
  }

  /* nút CTA */
  .navbar .btn {
    font-size: .85rem;
    padding: .35rem .6rem;
  }
}