:root {
  --ink: #17323b;
  --muted: #607983;
  --primary: #0a9aae;
  --primary-dark: #086574;
  --accent: #f2b84b;
  --soft: #eef9f8;
  --panel: #ffffff;
  --line: #d6e8e9;
  --deep: #0e2b34;
  --deep-2: #133e4a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.scroll-progress {
  background: var(--accent);
  height: 4px;
  left: 0;
  position: fixed;
  top: 0;
  transform-origin: left;
  transform: scaleX(0);
  width: 100%;
  z-index: 1100;
}

.site-header {
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 1050;
}

.topbar {
  background: var(--deep);
  color: #e9fbfd;
  font-size: 13px;
  padding: 9px 0;
}

.topbar-left,
.topbar-right {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.topbar i {
  color: #8debf2;
  margin-right: 6px;
}

.main-nav {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 34px rgba(15, 48, 58, 0.08);
  padding: 12px 0;
  transition: padding 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled .main-nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  padding: 7px 0;
}

.navbar-brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.brand-symbol {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 24px;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.navbar-brand strong,
.navbar-brand small {
  display: block;
  line-height: 1.2;
}

.navbar-brand strong {
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
}

.navbar-brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-link {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  padding: 12px 13px !important;
  text-transform: uppercase;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--primary);
}

.dropdown-menu {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 20px 45px rgba(15, 48, 58, 0.16);
  padding: 10px;
}

.dropdown-item {
  border-radius: 6px;
  color: var(--ink);
  font-weight: 700;
  padding: 10px 12px;
}

.dropdown-item:hover {
  background: var(--soft);
  color: var(--primary-dark);
}

.btn {
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0;
  padding: 11px 18px;
}

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
}

.btn-outline-primary {
  --bs-btn-color: var(--primary-dark);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
}

.nav-cta i,
.hero-actions i {
  margin-right: 6px;
}

.hero-slider {
  margin-top: 123px;
}

.hero-slider,
.hero-slider .carousel-item {
  min-height: 720px;
}

.hero-slider .carousel-item {
  background: var(--deep);
  position: relative;
}

.hero-media {
  height: 720px;
  object-fit: cover;
  opacity: 0.86;
  width: 100%;
}

.hero-doctor {
  object-position: 73% 38%;
}

.hero-shade {
  background:
    radial-gradient(circle at 85% 40%, rgba(10, 154, 174, 0.2), transparent 30%),
    linear-gradient(90deg, rgba(10, 37, 46, 0.94), rgba(10, 37, 46, 0.72), rgba(10, 37, 46, 0.22));
  inset: 0;
  position: absolute;
}

.hero-content {
  align-items: center;
  bottom: 0;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) 340px;
  left: 50%;
  min-height: 720px;
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  width: 100%;
}

.hero-copy {
  color: #fff;
  max-width: 820px;
}

.pill {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #dffcff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 18px;
  padding: 8px 15px;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  color: #fff;
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0 0 22px;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.24);
  color: var(--ink);
  display: grid;
  gap: 10px;
  padding: 26px;
}

.hero-panel strong {
  font-size: 24px;
  font-weight: 900;
}

.hero-panel span {
  color: var(--muted);
}

.hero-panel a {
  color: var(--primary-dark);
  font-weight: 900;
}

.carousel-control-prev,
.carousel-control-next {
  width: 6%;
}

.feature-strip {
  margin-top: -76px;
  position: relative;
  z-index: 4;
}

.feature-grid {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15, 48, 58, 0.14);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.feature-grid article {
  border-right: 1px solid var(--line);
  padding: 28px;
}

.feature-grid article:last-child {
  border-right: 0;
}

.feature-grid i {
  align-items: center;
  background: var(--soft);
  border-radius: 8px;
  color: var(--primary-dark);
  display: inline-flex;
  font-size: 28px;
  height: 58px;
  justify-content: center;
  margin-bottom: 16px;
  width: 58px;
}

.feature-grid h3,
.department-card h3,
.mission-grid h3,
.blog-grid h3 {
  font-size: 21px;
  font-weight: 900;
}

.feature-grid p,
.department-card p,
.mission-grid p,
.blog-grid p,
.section-heading p,
.about-section p,
.faq-section p {
  color: var(--muted);
}

.section-pad {
  padding: 98px 0;
}

.section-label {
  color: var(--primary);
  display: inline-block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-label.light {
  color: #9cf3f7;
}

.section-heading {
  margin: 0 auto 44px;
  max-width: 760px;
  text-align: center;
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 18px;
}

.lead {
  color: #36535e;
  font-size: 19px;
}

.image-stack {
  position: relative;
}

.image-stack img {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  box-shadow: 0 22px 55px rgba(15, 48, 58, 0.18);
  object-fit: cover;
  width: 100%;
}

.experience-card {
  align-items: center;
  background: var(--accent);
  border-radius: 8px;
  bottom: 24px;
  box-shadow: 0 16px 35px rgba(38, 30, 7, 0.16);
  color: #352700;
  display: flex;
  gap: 12px;
  left: 24px;
  padding: 16px 18px;
  position: absolute;
}

.experience-card strong {
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.experience-card span {
  font-weight: 900;
  line-height: 1.25;
  max-width: 140px;
}

.mission-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 30px;
}

.mission-grid article {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.mission-grid i {
  color: var(--primary-dark);
  font-size: 28px;
}

.stats-band {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 44px 0;
}

.stat-card {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.stat-card strong,
.stat-card span {
  display: block;
}

.stat-card strong {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 900;
  line-height: 1;
}

.stat-card span {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  margin-top: 10px;
}

.soft-section {
  background: var(--soft);
}

.department-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 48, 58, 0.08);
  height: 100%;
  padding: 30px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.department-card:hover {
  box-shadow: 0 22px 48px rgba(15, 48, 58, 0.14);
  transform: translateY(-6px);
}

.card-icon {
  align-items: center;
  background: linear-gradient(135deg, #e4fbfc, #ffffff);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary-dark);
  display: inline-flex;
  font-size: 32px;
  height: 66px;
  justify-content: center;
  margin-bottom: 22px;
  width: 66px;
}

.department-card a {
  color: var(--primary-dark);
  font-weight: 900;
}

.procedure-tabs {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  gap: 8px;
  padding: 10px;
}

.procedure-tabs .nav-link {
  border-radius: 6px;
  color: var(--ink);
  text-align: left;
}

.procedure-tabs .nav-link.active {
  background: var(--primary);
  color: #fff;
}

.procedure-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 48, 58, 0.1);
  overflow: hidden;
}

.procedure-content .tab-pane {
  min-height: 500px;
  position: relative;
}

.procedure-content img {
  height: 500px;
  object-fit: cover;
  width: 100%;
}

.procedure-content .tab-pane > div {
  background: linear-gradient(0deg, rgba(10, 37, 46, 0.88), rgba(10, 37, 46, 0.22));
  bottom: 0;
  color: #fff;
  left: 0;
  padding: 70px 34px 30px;
  position: absolute;
  right: 0;
}

.procedure-content h3 {
  font-size: 30px;
  font-weight: 900;
}

.procedure-content p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
}

.symptoms-section {
  background: #fff;
}

.symptom-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.symptom-cloud span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(15, 48, 58, 0.07);
  color: var(--ink);
  font-weight: 800;
  padding: 11px 16px;
}

.dark-section {
  background:
    radial-gradient(circle at 12% 0%, rgba(10, 154, 174, 0.28), transparent 26%),
    linear-gradient(135deg, var(--deep), var(--deep-2));
  color: #fff;
}

.dark-section p {
  color: rgba(255, 255, 255, 0.8);
}

.facility-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.facility-list span {
  align-items: center;
  display: flex;
  font-weight: 800;
  gap: 10px;
}

.facility-list i {
  color: var(--accent);
  font-size: 22px;
}

.facility-carousel {
  border-radius: 8px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.facility-carousel img {
  height: 480px;
  object-fit: cover;
  width: 100%;
}

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.gallery-filter button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
  padding: 9px 18px;
}

.gallery-filter button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.gallery-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.gallery-item {
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
}

.gallery-item img {
  aspect-ratio: 1.22 / 1;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
  width: 100%;
}

.gallery-item span {
  background: linear-gradient(0deg, rgba(8, 31, 38, 0.84), rgba(8, 31, 38, 0));
  bottom: 0;
  color: #fff;
  font-weight: 900;
  left: 0;
  padding: 48px 18px 16px;
  position: absolute;
  right: 0;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.doctor-section {
  background: #fff;
}

.doctor-carousel {
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(15, 48, 58, 0.12);
  overflow: hidden;
}

.doctor-slide {
  align-items: center;
  background: var(--soft);
  display: grid;
  gap: 34px;
  grid-template-columns: 330px 1fr;
  min-height: 370px;
  padding: 34px;
}

.doctor-slide img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.doctor-slide h3 {
  font-size: 34px;
  font-weight: 900;
}

.doctor-slide p {
  color: var(--muted);
  font-size: 18px;
}

.blog-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}

.blog-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
}

.blog-grid span {
  color: var(--primary);
  display: block;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 18px;
}

.testimonial-band {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 58px 0;
  text-align: center;
}

.testimonial-band blockquote {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 auto;
  max-width: 980px;
}

.faq-section .accordion-item {
  border: 1px solid var(--line);
  border-radius: 8px !important;
  margin-bottom: 14px;
  overflow: hidden;
}

.accordion-button {
  color: var(--ink);
  font-weight: 900;
}

.accordion-button:not(.collapsed) {
  background: var(--soft);
  color: var(--primary-dark);
}

.contact-section {
  background: var(--soft);
}

.contact-card,
.appointment-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(15, 48, 58, 0.09);
  padding: 28px;
}

.contact-card p {
  align-items: flex-start;
  color: var(--muted);
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-card i {
  color: var(--primary);
  font-size: 20px;
}

.form-control,
.form-select {
  border-color: var(--line);
  border-radius: 6px;
  min-height: 54px;
}

textarea.form-control {
  min-height: 130px;
}

.site-footer {
  background: #09232b;
  color: rgba(255, 255, 255, 0.78);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
  font-weight: 900;
  margin-bottom: 16px;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 42px;
  padding-top: 22px;
}

.back-to-top {
  align-items: center;
  background: var(--primary);
  border: 0;
  border-radius: 8px;
  bottom: 22px;
  box-shadow: 0 14px 30px rgba(8, 101, 116, 0.28);
  color: #fff;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 22px;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: 46px;
  z-index: 1040;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.modal-content {
  border: 0;
  border-radius: 8px;
}

.modal-note {
  color: var(--muted);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lightbox {
  align-items: center;
  background: rgba(6, 21, 26, 0.86);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 28px;
  position: fixed;
  z-index: 1200;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  border-radius: 8px;
  max-height: 84vh;
  object-fit: contain;
}

.lightbox-close {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  position: absolute;
  right: 24px;
  top: 24px;
  width: 42px;
}

.reveal {
  animation: riseIn 0.8s ease both;
}

.delay-1 {
  animation-delay: 0.16s;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1200px) {
  .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

@media (max-width: 1199px) {
  html {
    scroll-padding-top: 92px;
  }

  .topbar {
    display: none;
  }

  .hero-slider {
    margin-top: 80px;
  }

  .main-nav {
    padding: 13px 0;
  }

  .navbar-collapse {
    background: #fff;
    border-top: 1px solid var(--line);
    margin-top: 12px;
    padding: 12px 0 18px;
  }

  .nav-cta {
    margin-left: 12px;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: none;
  }

  .feature-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid article:nth-child(2) {
    border-right: 0;
  }

  .feature-grid article {
    border-bottom: 1px solid var(--line);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .section-pad {
    padding: 74px 0;
  }

  .mission-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .procedure-content .tab-pane,
  .procedure-content img,
  .facility-carousel img {
    height: 420px;
    min-height: 420px;
  }

  .doctor-slide {
    grid-template-columns: 1fr;
  }

  .doctor-slide img {
    max-width: 360px;
  }
}

@media (max-width: 767px) {
  .navbar-brand strong {
    font-size: 19px;
  }

  .brand-symbol {
    height: 46px;
    width: 46px;
  }

  .hero-slider,
  .hero-slider .carousel-item,
  .hero-media,
  .hero-content {
    min-height: 660px;
  }

  .hero-media {
    height: 660px;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(10, 37, 46, 0.95), rgba(10, 37, 46, 0.42));
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 39px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-actions .btn,
  .modal-actions .btn {
    width: 100%;
  }

  .feature-strip {
    margin-top: 0;
  }

  .feature-grid,
  .mission-grid,
  .gallery-grid,
  .blog-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    border-right: 0;
  }

  .experience-card {
    bottom: 14px;
    left: 14px;
    right: 14px;
  }

  .procedure-content .tab-pane,
  .procedure-content img,
  .facility-carousel img {
    height: 360px;
    min-height: 360px;
  }

  .procedure-content .tab-pane > div {
    padding: 80px 22px 22px;
  }

  .doctor-slide {
    padding: 22px;
  }

  .doctor-slide h3 {
    font-size: 26px;
  }

  .footer-bottom {
    display: block;
  }
}
