* {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: #2c3e3e;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
  color: var(--primary-dark);
}

.text-primary-custom {
  color: var(--primary) !important;
}

.bg-primary-custom {
  background-color: var(--primary) !important;
}

.bg-light-custom {
  background-color: var(--light-bg);
}

.btn-primary-custom {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  padding: 0.65rem 1.75rem;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 90, 90, 0.3);
}

.btn-outline-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.65rem 1.75rem;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Top bar */
.top-bar {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
}

.top-bar a:hover {
  color: var(--accent);
}

/* Navbar */
.navbar {
  padding: 0.75rem 0;
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar-brand img {
  height: 60px;
  width: auto;
}

.nav-link {
  color: var(--primary-dark) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(45, 90, 90, 0.92) 0%, rgba(77, 146, 133, 0.85) 100%),
    var(--block-bg-image, url("https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?w=1920&q=80")) center/cover no-repeat;
  color: #fff;
  padding: 6rem 0 4rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.hero-section h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-section .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 0.5rem;
}

.hero-section .sub-tagline {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 2rem;
}

.hero-section .location {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-section .location i {
  color: var(--accent);
}

/* Section styling */
.section-padding {
  padding: 5rem 0;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* About cards */
.about-feature {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(45, 90, 90, 0.08);
  height: 100%;
  transition: transform 0.3s ease;
}

.about-feature:hover {
  transform: translateY(-5px);
}

.about-feature .icon-box {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #fff;
  font-size: 1.75rem;
}

/* Service cards */
.service-card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(45, 90, 90, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(45, 90, 90, 0.15);
}

.service-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.service-card .service-number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.service-card .card-body {
  padding: 1.75rem;
}

.service-card .card-title {
  color: var(--primary-dark);
  font-weight: 600;
}

/* Why choose us */
.why-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.why-item .icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
}

/* Stats */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 4rem 0;
}

.stat-item h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-item p {
  opacity: 0.9;
  margin: 0;
}

/* Testimonials */
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(45, 90, 90, 0.08);
  height: 100%;
}

.testimonial-card .quote-icon {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.testimonial-card .stars {
  color: #f5a623;
  margin-bottom: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.testimonial-author .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 600;
}

/* Contact */
.contact-info-card {
  background: var(--primary);
  color: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  height: 100%;
}

.contact-info-card h4 {
  color: #fff;
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-info-item i {
  font-size: 1.25rem;
  color: var(--accent);
  margin-top: 0.2rem;
}

.contact-form {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(45, 90, 90, 0.08);
}

.contact-form .form-control,
.contact-form .form-select {
  border: 1px solid #dde8e6;
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 0.2rem rgba(77, 146, 133, 0.2);
}

/* Footer */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 0;
}

.footer h5 {
  color: #fff;
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent);
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.875rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  margin-right: 0.5rem;
  transition: background 0.3s ease;
}

.social-links a:hover {
  background: var(--secondary);
  color: #fff !important;
}

/* WhatsApp FAB */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1050;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-fab:hover {
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

.whatsapp-fab .tooltip-text {
  position: absolute;
  right: 70px;
  background: #333;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.whatsapp-fab:hover .tooltip-text {
  opacity: 1;
}

/* Director message */
.director-section {
  background: var(--light-bg);
}

.director-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(45, 90, 90, 0.12);
}

.director-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 991.98px) {
  .navbar-brand img {
    height: 50px;
  }

  .hero-section {
    min-height: auto;
    padding: 5rem 0 3rem;
    text-align: center;
  }

  .section-padding {
    padding: 3.5rem 0;
  }

  .whatsapp-fab .tooltip-text {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .top-bar {
    text-align: center;
  }

  .top-bar .text-end {
    text-align: center !important;
    margin-top: 0.25rem;
  }
}


/* Doctor cards */
.doctor-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(45, 90, 90, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.doctor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(45, 90, 90, 0.15);
}

.doctor-image img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.doctor-placeholder {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
  color: var(--primary);
  font-size: 4rem;
}

.doctor-body {
  padding: 1.75rem;
}

.doctor-title {
  color: var(--secondary);
  font-weight: 600;
}

.doctor-specialization {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Website block builder */
.website-block {
  position: relative;
  overflow: hidden;
}

.website-block.has-background-image:not(.hero-section) {
  background-image: var(--block-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.website-block.has-background-image.block-effect-gradient:not(.hero-section) {
  background-image: linear-gradient(
      135deg,
      color-mix(in srgb, var(--block-color, var(--primary)) 88%, transparent) 0%,
      color-mix(in srgb, var(--block-color, var(--secondary)) 72%, transparent) 100%
    ),
    var(--block-bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.website-block.block-effect-gradient:not(.hero-section):not(.has-background-image) {
  background-image: linear-gradient(
    135deg,
    color-mix(in srgb, var(--block-color, var(--primary)) 92%, #000 8%) 0%,
    color-mix(in srgb, var(--block-color, var(--secondary)) 80%, #fff 20%) 100%
  );
}

.website-block.hero-section.has-background-image,
.website-block.hero-section.block-effect-gradient {
  background: linear-gradient(
      135deg,
      color-mix(in srgb, var(--block-color, rgba(45, 90, 90, 1)) 88%, transparent) 0%,
      color-mix(in srgb, var(--secondary) 75%, transparent) 100%
    ),
    var(--block-bg-image, url("https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?w=1920&q=80")) center/cover no-repeat;
}

.website-block.hero-section.has-background-image.block-effect-none {
  background: linear-gradient(
      135deg,
      rgba(45, 90, 90, 0.92) 0%,
      rgba(77, 146, 133, 0.85) 100%
    ),
    var(--block-bg-image) center/cover no-repeat;
}

.website-block.hero-section.block-effect-gradient[style*="--block-color"] {
  background: linear-gradient(
      135deg,
      color-mix(in srgb, var(--block-color) 88%, transparent) 0%,
      color-mix(in srgb, var(--secondary) 75%, transparent) 100%
    ),
    var(--block-bg-image, url("https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?w=1920&q=80")) center/cover no-repeat;
}

.website-block.block-effect-pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(circle at 1px 1px, currentColor 1px, transparent 0);
  background-size: 24px 24px;
}

.website-block.block-effect-glass > .container {
  position: relative;
  z-index: 1;
}

.website-block.block-effect-glass > .container > *:first-child,
.website-block.block-effect-glass .cta-banner-inner,
.website-block.block-effect-glass .contact-info-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.website-block.block-effect-glass:not(.hero-section) > .container {
  background: rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(45, 90, 90, 0.08);
}

.website-block.block-text-light,
.website-block.block-text-light h1,
.website-block.block-text-light h2,
.website-block.block-text-light h3,
.website-block.block-text-light h4,
.website-block.block-text-light h5,
.website-block.block-text-light .section-title,
.website-block.block-text-light .section-subtitle,
.website-block.block-text-light .section-desc,
.website-block.block-text-light p {
  color: #fff !important;
}

.website-block.block-text-light .section-subtitle {
  color: rgba(255, 255, 255, 0.85) !important;
}

.website-block.block-text-light .section-desc,
.website-block.block-text-light .text-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}

.website-block.block-text-dark,
.website-block.block-text-dark h1,
.website-block.block-text-dark h2,
.website-block.block-text-dark h3,
.website-block.block-text-dark .section-title {
  color: var(--primary-dark) !important;
}

.website-block .rich-text-content {
  line-height: 1.8;
  color: var(--text-muted);
}

.cta-banner-inner {
  padding: 2rem 1rem;
}

.cta-banner-image img,
.cta-banner-media-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

/* Hero split layout (content below image) */
.website-block.hero-layout-outside {
  min-height: auto;
  padding: 0;
  display: block;
  background: var(--light-bg);
  color: var(--primary-dark);
}

.hero-split-media {
  min-height: min(50vh, 420px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-split-media-fallback {
  background: linear-gradient(
      135deg,
      rgba(45, 90, 90, 0.92) 0%,
      rgba(77, 146, 133, 0.85) 100%
    ),
    url("https://images.unsplash.com/photo-1544367567-0f2fcb009e0b?w=1920&q=80") center/cover no-repeat;
}

.hero-split-content {
  padding: 3rem 0 4rem;
  text-align: center;
}

.hero-split-content h1,
.hero-split-content .tagline,
.hero-split-content .sub-tagline,
.hero-split-content .location {
  color: var(--primary-dark);
}

.hero-split-content .hero-badge {
  color: #fff;
}

.hero-split-content .hero-secondary-btn {
  color: var(--primary);
  border-color: var(--primary);
}

.hero-split-content .hero-secondary-btn:hover {
  background-color: var(--primary);
  color: #fff;
}

@media (min-width: 992px) {
  .hero-split-content {
    text-align: left;
  }

  .hero-split-content .hero-buttons {
    justify-content: flex-start !important;
  }
}

/* CTA banner overlay layout */
.cta-banner-media.cta-layout-over {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(45, 90, 90, 0.12);
}

.cta-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(
    to top,
    rgba(15, 35, 35, 0.78) 0%,
    rgba(15, 35, 35, 0.35) 55%,
    rgba(15, 35, 35, 0.15) 100%
  );
}

.cta-banner-overlay .section-title,
.cta-banner-overlay .section-desc {
  color: #fff !important;
}

.rich-text-content :is(h1, h2, h3, h4, h5, h6) {
  color: inherit;
}