:root {
  --cmc-blue: #173b8f;
  --cmc-blue-dark: #0d2868;
  --cmc-red: #e52335;
  --cmc-sky: #edf7ff;
  --cmc-ink: #1a2433;
  --cmc-muted: #607086;
  --cmc-border: #dde8f4;
  --cmc-shadow: 0 18px 45px rgba(20, 55, 112, 0.12);
}

* {
  letter-spacing: 0;
}

body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--cmc-ink);
  background: #fff;
}

.fw-black {
  font-weight: 900;
}

a {
  color: var(--cmc-blue);
  text-decoration: none;
}

.topbar {
  background: var(--cmc-blue-dark);
  color: #fff;
  font-size: 0.92rem;
}

.topbar a {
  color: #fff;
}

.social-link {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  transition: 0.2s ease;
}

.social-link:hover {
  background: var(--cmc-red);
  border-color: var(--cmc-red);
  color: #fff;
}

.navbar {
  box-shadow: 0 10px 28px rgba(17, 41, 90, 0.08);
}

.brand-logo {
  width: min(310px, 58vw);
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.navbar-nav .nav-link {
  color: var(--cmc-ink);
  font-weight: 700;
  padding: 1rem 0.8rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active,
.dropdown-item.active,
.dropdown-item:active {
  color: var(--cmc-red);
  background: transparent;
}

.btn-cmc {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--cmc-red);
  --bs-btn-border-color: var(--cmc-red);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #c81929;
  --bs-btn-hover-border-color: #c81929;
  border-radius: 8px;
  font-weight: 800;
  padding: 0.78rem 1.25rem;
}

.btn-outline-cmc {
  --bs-btn-color: var(--cmc-blue);
  --bs-btn-border-color: var(--cmc-blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--cmc-blue);
  --bs-btn-hover-border-color: var(--cmc-blue);
  border-radius: 8px;
  font-weight: 800;
  padding: 0.78rem 1.25rem;
}

.hero {
  min-height: 650px;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 28, 76, 0.88) 0%, rgba(12, 43, 105, 0.72) 45%, rgba(255, 255, 255, 0.08) 100%),
    url("../images/reception-wide.jpeg") center/cover no-repeat;
  color: #fff;
}

.video-hero {
  background: var(--cmc-blue-dark);
}

.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(7, 28, 76, 0.9) 0%, rgba(12, 43, 105, 0.72) 50%, rgba(229, 35, 53, 0.16) 100%);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: #fff;
  clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 8rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--cmc-red);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero .eyebrow {
  color: #fff;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: currentColor;
  border-radius: 999px;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.45rem, 5vw, 5.25rem);
  line-height: 1.03;
  font-weight: 900;
  margin: 1rem 0;
}

.hero p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
}

.hero-card {
  max-width: 360px;
  background: #fff;
  color: var(--cmc-ink);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--cmc-shadow);
}

.section {
  padding: 90px 0;
}

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

.section-title {
  max-width: 720px;
  margin-bottom: 2.4rem;
}

.section-title h2,
.page-hero h1 {
  color: var(--cmc-blue-dark);
  font-weight: 900;
  line-height: 1.12;
}

.section-title p,
.lead-muted {
  color: var(--cmc-muted);
}

.service-card,
.doctor-card,
.testimonial-card,
.contact-card,
.career-card,
.department-card,
.value-card,
.process-card,
.feature-panel {
  height: 100%;
  background: #fff;
  border: 1px solid var(--cmc-border);
  border-radius: 8px;
  padding: 1.6rem;
  box-shadow: 0 12px 30px rgba(20, 55, 112, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover,
.department-card:hover,
.value-card:hover,
.process-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--cmc-shadow);
}

.process-card span {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--cmc-red);
  color: #fff;
  font-weight: 900;
}

.feature-panel {
  background: linear-gradient(145deg, var(--cmc-blue-dark), var(--cmc-blue));
  color: #fff;
}

.feature-panel .lead-muted {
  color: rgba(255, 255, 255, 0.78);
}

.icon-box {
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  background: rgba(23, 59, 143, 0.1);
  color: var(--cmc-blue);
  font-size: 1.65rem;
  margin-bottom: 1rem;
}

.service-card .number {
  color: var(--cmc-red);
  font-weight: 900;
  font-size: 1.35rem;
}

.image-tile {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--cmc-shadow);
}

.image-stack {
  position: relative;
  min-height: 530px;
}

.image-stack img:first-child {
  width: 78%;
  height: 420px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--cmc-shadow);
}

.image-stack img:last-child {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58%;
  height: 300px;
  object-fit: cover;
  border: 8px solid #fff;
  border-radius: 8px;
  box-shadow: var(--cmc-shadow);
}

.stat-band {
  background: var(--cmc-blue);
  color: #fff;
}

.stat-item strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

.stat-item span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.cta-band {
  background:
    linear-gradient(90deg, rgba(13, 40, 104, 0.95), rgba(23, 59, 143, 0.84)),
    url("../images/cosmetology-hall.jpeg") center/cover no-repeat;
  color: #fff;
}

.cta-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.cta-info-grid div {
  min-height: 120px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.cta-info-grid i {
  display: block;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.55rem;
}

.cta-info-grid strong,
.cta-info-grid a,
.cta-info-grid span {
  display: block;
  color: #fff;
}

.cta-info-grid strong {
  margin-bottom: 0.2rem;
}

.page-hero {
  padding: 95px 0;
  background:
    linear-gradient(90deg, rgba(237, 247, 255, 0.98), rgba(237, 247, 255, 0.86)),
    url("../images/logo-banner.jpeg") center/cover no-repeat;
}

.breadcrumb-item a {
  color: var(--cmc-blue);
  font-weight: 800;
}

.gallery-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(20, 55, 112, 0.1);
}

.gallery-link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-link span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  background: rgba(13, 40, 104, 0.58);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-link:hover span {
  opacity: 1;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: var(--cmc-shadow);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.youtube-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--cmc-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(20, 55, 112, 0.07);
}

.youtube-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #071c4c;
}

.youtube-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.footer {
  background: #071c4c;
  color: rgba(255, 255, 255, 0.8);
}

.footer-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.footer a {
  color: rgba(255, 255, 255, 0.85);
}

.footer a:hover {
  color: #fff;
}

.footer-logo {
  width: 310px;
  max-width: 100%;
  height: 70px;
  object-fit: contain;
  object-position: left center; 
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
}

.form-control,
.form-select {
  border-radius: 8px;
  border-color: var(--cmc-border);
  padding: 0.8rem 0.95rem;
}

.map-box {
  min-height: 360px;
  border: 0;
  border-radius: 8px;
  width: 100%;
}

.timeline-list {
  display: grid;
  gap: 1rem;
}

.timeline-list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 1rem;
  border-left: 4px solid var(--cmc-red);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 55, 112, 0.07);
}

.timeline-list strong {
  color: var(--cmc-blue);
}

.whatsapp-float {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 1040;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 1.7rem;
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.35);
}

.whatsapp-float:hover {
  color: #fff;
  background: #1db954;
}

@media (max-width: 991.98px) {
  .topbar .contact-line {
    gap: 0.7rem !important;
  }

  .navbar-nav .nav-link {
    padding: 0.65rem 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 4rem 0 7rem;
  }

  .footer-highlight {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 64px 0;
  }

  .brand-logo {
    width: min(245px, 65vw);
    height: 46px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .image-stack {
    min-height: auto;
  }

  .image-stack img:first-child,
  .image-stack img:last-child {
    position: static;
    width: 100%;
    height: auto;
    border: 0;
    margin-bottom: 1rem;
  }

  .cta-info-grid,
  .timeline-list div {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    left: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}
