.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: 200px;
  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;
}