.nav-link:hover::after,
body,
html {
  width: 100%;
}
.btn-primary,
.btn-primary-dark {
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.35);
}
#preloader.hidden,
#scroll-top {
  opacity: 0;
  visibility: hidden;
}
#preloader,
.dark body,
.topbar {
  background: #0f172a;
}
:root {
  --primary: #dc2626;
  --primary-light: #fee2e2;
  --secondary: #0f172a;
  --accent: #0ea5e9;
  --gradient: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  --medical-gradient: linear-gradient(
    135deg,
    #0f172a 0%,
    #1e293b 60%,
    #dc2626 100%
  );
}
* {
  box-sizing: border-box;
}
body {
  font-family: Inter, sans-serif;
  background: #f8fafc;
  color: #0f172a;
}
.nav-link,
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Outfit, sans-serif;
}
body,
html {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}
#preloader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s, visibility 0.6s;
}
.btn-primary,
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.ecg-line {
  width: 260px;
  height: 60px;
  overflow: visible;
}
.ecg-path {
  fill: none;
  stroke: #dc2626;
  stroke-width: 2.5;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: 2s infinite forwards drawECG;
}
@keyframes drawECG {
  0% {
    stroke-dashoffset: 600;
    opacity: 1;
  }
  70% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}
#navbar {
  transition: 0.4s;
  backdrop-filter: blur(16px);
}
.dark #navbar.scrolled {
  background: rgba(15, 23, 42, 0.97) !important;
}
.nav-link {
  position: relative;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #dc2626;
  transition: width 0.3s;
  border-radius: 2px;
}
.hero-section {
  min-height: 100vh;
  background: var(--medical-gradient);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, #f8fafc);
}
.btn-outline:hover,
.hero-badge {
  background: rgba(255, 255, 255, 0.1);
}
.hero-badge {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  font-family: Outfit, sans-serif;
}
.btn-outline,
.btn-primary {
  font-weight: 600;
  font-family: Outfit, sans-serif;
}
.btn-primary {
  background: var(--gradient);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}
.btn-outline,
.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  gap: 8px;
  font-size: 15px;
  color: #fff;
  transition: 0.3s;
  cursor: pointer;
}
.btn-primary-dark:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.45);
}
.btn-outline {
  background: 0 0;
  padding: 13px 28px;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.btn-outline:hover {
  border-color: #fff;
}
.btn-primary-dark {
  background: var(--gradient);
  padding: 14px 28px;
  font-weight: 600;
  font-family: Outfit, sans-serif;
  border: none;
  text-decoration: none;
}
.btn-outline-dark,
.section-tag {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-family: Outfit, sans-serif;
}
.btn-outline-dark {
  gap: 8px;
  background: 0 0;
  color: #dc2626;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  border: 2px solid #dc2626;
  transition: 0.3s;
  cursor: pointer;
  text-decoration: none;
}
.btn-outline-dark:hover {
  background: #dc2626;
  color: #fff;
}
.faq-question:hover,
.section-tag {
  color: #dc2626;
}
.card-medical {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(220, 38, 38, 0.08);
  transition: 0.3s;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}
.card-medical:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.2);
}
.blog-card:hover,
.dept-card:hover {
  transform: translateY(-4px);
}
.section-padding {
  padding: 96px 0;
}
.section-tag {
  gap: 6px;
  background: #fee2e2;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.stat-item {
  text-align: center;
  padding: 32px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-item:last-child {
  border-right: none;
}
.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.06);
}
.faq-item {
  border-bottom: 1px solid #e2e8f0;
}
.faq-question {
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 16px;
  font-family: Outfit, sans-serif;
  transition: color 0.3s;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s, padding 0.3s;
  color: #64748b;
  line-height: 1.7;
  font-size: 15px;
}
.faq-answer.open {
  max-height: 360px;
  padding-bottom: 20px;
}
.faq-icon {
  transition: transform 0.3s;
  flex-shrink: 0;
}
#scroll-top,
.dept-card {
  transition: 0.3s;
  cursor: pointer;
}
.faq-question.active .faq-icon {
  transform: rotate(45deg);
}
.timeline-line {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, #dc2626, #fca5a5);
}
#scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
  z-index: 100;
  border: none;
}
.blog-card,
.dept-card {
  border-radius: 16px;
  overflow: hidden;
}
#scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
#scroll-top:hover {
  transform: translateY(-3px) scale(1.05);
}
.dark body {
  color: #e2e8f0;
}
.dark .blog-card,
.dark .card-medical {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.06);
}
.dark .topbar {
  background: #020617;
}
.dark .testimonial-card {
  background: #1e293b;
}
.dark .faq-item {
  border-color: rgba(255, 255, 255, 0.08);
}
.dark .section-tag {
  background: rgba(220, 38, 38, 0.15);
}
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
  .mobile-cta {
    display: block;
  }
}
input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.blog-img img,
.slider-track {
  transition: transform 0.5s;
}
.blog-img,
.slider-container {
  overflow: hidden;
}
.slider-track {
  display: flex;
}
.slide {
  min-width: 100%;
  padding: 0 8px;
}
@media (min-width: 768px) {
  .slide {
    min-width: 50%;
  }
}
@media (min-width: 1024px) {
  .slide {
    min-width: 33.333%;
  }
}
@keyframes heartbeat {
  0%,
  100%,
  28%,
  56% {
    transform-origin: center;
    transform: scale(1);
  }
  14%,
  42% {
    transform-origin: center;
    transform: scale(1.3);
  }
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.sticky {
  position: sticky;
}
.top-0 {
  top: 0;
}
.z-50 {
  z-index: 50;
}
.blog-card {
  background: #fff;
  transition: 0.3s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.blog-card:hover {
  box-shadow: 0 16px 36px rgba(220, 38, 38, 0.1);
}
.blog-card:hover .blog-img img {
  transform: scale(1.06);
}
.newsletter-section {
  background-color: #10192b;
}
footer {
  background: #050d1a;
}
/* Autovibis sign-up form layout */
.av-form .av-grid{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:16px;margin-bottom:20px}
@media(min-width:768px){.av-form .av-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.av-form .form-control{width:100%;background:#334155;border:1px solid #475569;color:#fff;border-radius:8px;padding:12px 16px;font-size:14px;transition:all .2s}
.av-form .form-control::placeholder{color:#94a3b8}
.av-form .form-control:focus{outline:none;border-color:#dc2626}
.av-form .av-check{display:flex;gap:12px;align-items:flex-start;color:#cbd5e1;font-size:12px;line-height:1.55;margin-bottom:14px}
.av-form .av-check input{margin-top:3px;flex-shrink:0;width:16px;height:16px;accent-color:#dc2626}
.av-form .av-submit{display:flex;margin:22px auto 0;padding:14px 40px;font-size:16px;border:0;cursor:pointer;justify-content:center}
.av-form .form-message{color:#fff}
.ml-2{margin-left:.5rem}
.pb-12{padding-bottom:3rem}
.pb-2{padding-bottom:.5rem}
.text-sky-400{color:#38bdf8}
/* Follow the OS dark setting the same way the dark: utilities do */
@media (prefers-color-scheme: dark) {
  body { background: #0f172a; color: #e2e8f0; }
  .card-medical { background: #1e293b; border-color: rgba(255,255,255,.06); }
  .faq-item { border-color: rgba(255,255,255,.08); }
  .faq-answer { color: #94a3b8; }
  .section-tag { background: rgba(220,38,38,.15); }
  .topbar { background: #020617; }
}
.w-1\.5{width:.375rem}.h-1\.5{height:.375rem}.space-y-1\.5>*+*{margin-top:.375rem}.mt-12{margin-top:3rem}.mb-12{margin-bottom:3rem}.mb-14{margin-bottom:3.5rem}.mx-auto{margin-left:auto;margin-right:auto}.rounded-full{border-radius:9999px}.flex-shrink-0{flex-shrink:0}
.mt-1\.5{margin-top:.375rem}.max-w-3xl{max-width:48rem}.text-center{text-align:center}.mb-8{margin-bottom:2rem}.mb-6{margin-bottom:1.5rem}.mb-3{margin-bottom:.75rem}.mt-3{margin-top:.75rem}
.gap-x-12{column-gap:3rem}.gap-y-4{row-gap:1rem}.mt-auto{margin-top:auto}.mt-10{margin-top:2.5rem}.max-w-4xl{max-width:56rem}.max-w-6xl{max-width:72rem}

/* legal pages */
.legal{color:#334155;font-size:15px;line-height:1.75}
.legal h2{font-family:Outfit,sans-serif;font-weight:700;font-size:22px;color:#0f172a;margin:36px 0 12px}
.legal p{margin:0 0 14px}
.legal ul{margin:0 0 16px;padding-left:22px;list-style:disc}
.legal li{margin-bottom:6px}
.legal a{color:blue;text-decoration:underline}
.legal-table{overflow-x:auto;margin:0 0 18px}
.legal table{width:100%;border-collapse:collapse;font-size:14px}
.legal th,.legal td{border:1px solid #e2e8f0;padding:10px 12px;text-align:left}
.legal th{background:#f1f5f9;color:#0f172a}
@media (prefers-color-scheme: dark){
  .legal{color:#cbd5e1}.legal h2{color:#fff}.legal th{background:#1e293b;color:#fff}.legal th,.legal td{border-color:#334155}
}

#preloader{display:none!important}

@media (prefers-color-scheme: dark){.legal a{color:#60a5fa}}

/* section rhythm: tighter spacing and a visible partition between sections */
.section-padding { padding-top: 64px; padding-bottom: 64px; }
@media (max-width: 640px) { .section-padding { padding-top: 48px; padding-bottom: 48px; } }
section.section-padding, section.bg-white, section.bg-slate-50 { border-top: 1px solid #e2e8f0; }
@media (prefers-color-scheme: dark) {
  section.section-padding, section.bg-white, section.bg-slate-50 { border-top-color: rgba(148,163,184,.22); }
}

/* png logos */
.site-logo{height:34px;width:auto;display:block}
.logo-b{display:none}
#navbar.scrolled .logo-w{display:none}
#navbar.scrolled .logo-b{display:block}
