.vn-topline {
  background: var(--green);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 500;
}

.vn-topline-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.vn-topline div,
.vn-topline a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vn-topline a {
  color: #ffffff;
  font-weight: 600;
}

.vn-topline svg {
  width: 14px;
  height: 14px;
}

.vn-topline-link {
  display: inline;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.vn-topline-link:hover {
  text-decoration: underline;
  opacity: 0.92;
}

.vn-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #dce8df;
  box-shadow: 0 4px 14px rgba(4, 101, 49, 0.07);
}

.vn-header-main {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.vn-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 238px;
}

.vn-logo-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #d9eadf;
  border-radius: 50%;
  background: #f0f7f2 var(--hdl-logo-image, url("https://hoaducmediclab.com.vn/wp-content/uploads/2026/05/logo-hoa-duc.webp")) center / 82% auto no-repeat;
  flex: 0 0 auto;
}

.vn-logo-mark svg {
  display: none;
}

.vn-logo strong {
  display: block;
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.vn-logo small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.vn-search {
  height: 42px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 60px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #dce8df;
  border-radius: 8px;
  background: #f9fcfb;
}

.vn-search svg {
  justify-self: center;
  color: var(--green);
  width: 18px;
}

.vn-search input {
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--ink);
}

.vn-search button {
  height: 100%;
  border: 0;
  background: var(--green);
  color: #ffffff;
  font-weight: 600;
}

.vn-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vn-hotline {
  min-height: 42px;
  display: grid;
  grid-template-columns: 28px auto;
  grid-template-areas:
    "icon label"
    "icon value";
  align-items: center;
  column-gap: 8px;
  border: 1px solid #dce8df;
  border-radius: 8px;
  background: #ffffff;
  padding: 6px 12px;
}

.vn-hotline svg {
  grid-area: icon;
  color: var(--green);
}

.vn-hotline span {
  grid-area: label;
  color: var(--muted);
  font-size: 12px;
}

.vn-hotline strong {
  grid-area: value;
  color: var(--green);
  font-size: 15px;
}

.menu-button {
  display: none;
}

.vn-nav {
  background: var(--green);
}

.vn-nav-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 0;
}

.vn-nav a,
.vn-nav-trigger,
.vn-nav-dot {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  font-size: 13px;
}

.vn-nav a,
.vn-nav-trigger {
  padding: 0 9px;
  font-weight: 600;
}

.vn-nav-trigger {
  gap: 5px;
  border: 0;
  background: transparent;
  cursor: default;
  font-family: inherit;
}

.vn-nav-trigger svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.vn-nav-dot {
  justify-content: center;
  width: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.vn-nav-dropdown {
  position: relative;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.vn-nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 70;
  min-width: 188px;
  display: grid;
  gap: 4px;
  border: 1px solid #dce8df;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
  box-shadow: 0 16px 34px rgba(9, 42, 27, 0.16);
  opacity: 0;
  transform: translateY(8px);
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.vn-nav-menu a {
  min-height: 38px;
  border-radius: 7px;
  color: #173044;
  padding: 8px 10px;
  white-space: nowrap;
}

.vn-nav-menu a:hover,
.vn-nav-menu a.active {
  background: #eef8f2;
  color: var(--green);
}

.vn-nav-dropdown:hover .vn-nav-menu,
.vn-nav-dropdown:focus-within .vn-nav-menu {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.vn-nav a:hover,
.vn-nav a.active,
.vn-nav-trigger.active,
.vn-nav-dropdown:hover .vn-nav-trigger,
.vn-nav-dropdown:focus-within .vn-nav-trigger {
  background: rgba(255, 255, 255, 0.16);
}

.vn-nav .vn-nav-menu a:hover,
.vn-nav .vn-nav-menu a.active {
  background: #eef8f2;
  color: var(--green);
}

.mobile-menu-backdrop,
.mobile-offcanvas {
  display: none;
}

.site-footer {
  background: #023f21;
  color: #d6efdf;
  padding: 44px 0 24px;
}

.vn-footer.site-footer:not(.dynamic-footer) {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: 44px 0 24px;
  padding-inline: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.75fr 0.85fr 0.9fr;
  gap: 28px;
}

.site-footer h3,
.site-footer h4 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 16px;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  width: auto;
  max-width: 148px;
  max-height: 58px;
  display: block;
  object-fit: contain;
  margin-bottom: 14px;
}

.site-footer p,
.site-footer a {
  color: #d6efdf;
  font-size: 14px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-rich-list ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-rich-list li {
  color: #d6efdf;
  font-size: 14px;
  line-height: 1.55;
}

.footer-icon-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.footer-icon-list i,
.footer-icon-list svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: #ffffff;
}

.footer-rich-list a:hover,
.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  color: #a9cfb7;
  font-size: 13px;
}

.footer-map {
  margin-top: 16px;
}

.footer-map iframe {
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: 10px;
  display: block;
  filter: grayscale(0.1);
}

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  gap: 10px;
}

.floating-cta a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(236, 28, 36, 0.22);
}

@media (max-width: 1080px) {
  .vn-topline-inner {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
    padding: 8px 0;
    text-align: center;
  }

  .vn-topline div {
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 7px;
    max-width: 100%;
    line-height: 1.45;
  }

  .vn-topline div > svg {
    align-self: flex-start;
    margin-top: 2px;
  }

  .vn-topline a {
    justify-content: center;
    line-height: 1.35;
  }

  .vn-header-main {
    min-height: 74px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    align-items: center;
    gap: 12px;
  }

  .vn-search,
  .vn-header-actions,
  .vn-nav {
    display: none;
  }

  .menu-button {
    position: static;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: var(--red);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(236, 28, 36, 0.18);
  }

  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block;
    background: rgba(9, 26, 18, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .mobile-offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    width: min(92vw, 370px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    background: #ffffff;
    padding: 16px;
    box-shadow: -18px 0 42px rgba(9, 42, 27, 0.18);
    transform: translateX(104%);
    visibility: hidden;
    transition: transform 0.24s ease, visibility 0.24s ease;
  }

  .mobile-menu-open .mobile-menu-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-open .mobile-offcanvas {
    transform: translateX(0);
    visibility: visible;
  }

  .mobile-offcanvas-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e5edf2;
    padding-bottom: 14px;
  }

  .mobile-close {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: var(--red);
    color: #ffffff;
  }

  .mobile-contact-card {
    display: grid;
    gap: 3px;
    border: 1px solid #dfece4;
    border-radius: 12px;
    background: radial-gradient(circle at 92% 18%, rgba(236, 28, 36, 0.1), transparent 28%), #f3faf6;
    padding: 14px;
  }

  .mobile-contact-card span,
  .mobile-contact-card small {
    color: var(--muted);
    font-size: 12.5px;
  }

  .mobile-contact-card a {
    color: var(--green);
    font-size: 22px;
    font-weight: 700;
  }

  .mobile-slinky {
    display: grid;
    gap: 8px;
  }

  .mobile-slinky > a,
  .mobile-slinky summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #e3ece7;
    border-radius: 10px;
    background: #ffffff;
    color: #143425;
    padding: 12px 13px;
    font-size: 14px;
    font-weight: 650;
  }

  .mobile-slinky > a,
  .mobile-slinky summary span {
    display: flex;
    align-items: center;
    gap: 9px;
  }

  .mobile-slinky > a.active,
  .mobile-slinky details[open] > summary {
    border-color: rgba(4, 101, 49, 0.16);
    background: #eef8f2;
    color: var(--green);
  }

  .mobile-slinky summary {
    cursor: pointer;
    list-style: none;
  }

  .mobile-slinky summary::-webkit-details-marker {
    display: none;
  }

  .mobile-slinky details > div {
    display: grid;
    gap: 6px;
    border-left: 2px solid #e0efe6;
    margin: 8px 0 4px 18px;
    padding-left: 10px;
  }

  .mobile-slinky details > div a {
    border-radius: 8px;
    color: #40566a;
    padding: 9px 10px;
    font-size: 13.5px;
  }

  .mobile-slinky details > div a.active {
    background: #eef8f2;
    color: var(--green);
    font-weight: 650;
  }

  .mobile-menu-actions {
    display: grid;
    gap: 8px;
    margin-top: auto;
  }
}

@media (max-width: 760px) {
  .vn-logo {
    min-width: 0;
  }

  .vn-logo-mark {
    width: 44px;
    height: 44px;
  }

  .vn-logo > span:last-child {
    min-width: 0;
  }

  .vn-logo strong {
    font-size: 16px;
  }

  .vn-logo small {
    max-width: min(250px, calc(100vw - 154px));
    font-size: 11px;
    line-height: 1.35;
  }

  .menu-button {
    width: 46px;
    height: 46px;
    border-radius: 11px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-map iframe {
    height: 220px;
  }
}
