/* ==============================================================================
   MASTER HOSPITAL-GRADE DESIGN SYSTEM
   Joint Replacement & Orthopedic Centre, Jaipur | Dr. Naveen Sharma
   ============================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0A2540;
  --navy-dark: #06182C;
  --navy-light: #163868;
  --blue: #1565C0;
  --blue-light: #E3F2FD;
  --teal: #0097A7;
  --teal-dark: #00838F;
  --teal-light: #E0F7FA;
  --cyan: #4DD0E1;
  --text-primary: #1A2533;
  --text-muted: #53657D;
  --bg-light: #F6F9FC;
  --bg-card: #FFFFFF;
  --border: #DDE5ED;
  --border-light: #EBF0F5;
  --accent-orange: #FF6F00;
  --success: #2E7D32;
  --gold: #FFB300;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 2px 10px rgba(10, 37, 64, 0.05);
  --shadow-md: 0 6px 24px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 16px 44px rgba(10, 37, 64, 0.12);
  --shadow-hover: 0 20px 48px rgba(0, 151, 167, 0.16);
  
  --tr: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1240px;
}

html {
  overflow-x: clip !important;
  overflow-y: visible !important;
  max-width: 100% !important;
  width: 100% !important;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background: #FFFFFF;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip !important;
  overflow-y: visible !important;
  max-width: 100% !important;
  width: 100% !important;
  position: relative;
}

body.menu-open,
body.modal-open {
  overflow-y: hidden !important;
  touch-action: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.sp {
  padding: 84px 0;
  width: 100%;
}

.sp-sm {
  padding: 56px 0;
  width: 100%;
}

.bg-l {
  background: var(--bg-light);
  width: 100%;
}

.bg-n {
  background: var(--navy);
  color: #FFFFFF;
  width: 100%;
}

/* Typography & Badges */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.tag.tag-white {
  background: rgba(255, 255, 255, 0.15);
  color: #80DEEA;
  border: 1px solid rgba(128, 222, 234, 0.3);
}

.sh {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.sh span {
  color: var(--teal);
}

.sh.white {
  color: #FFFFFF;
}

.sh.white span {
  color: var(--cyan);
}

.ss {
  font-size: 16.5px;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.75;
}

.ss.white {
  color: rgba(255, 255, 255, 0.82);
}

.sec-hdr {
  margin-bottom: 52px;
}

.sec-hdr.c {
  text-align: center;
}

.sec-hdr.c .ss {
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: var(--tr);
  white-space: nowrap;
  cursor: pointer;
}

.btn-p {
  background: var(--teal);
  color: #FFFFFF;
  border-color: var(--teal);
}

.btn-p:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 151, 167, 0.35);
}

.btn-n {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
}

.btn-n:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.3);
}

.btn-o {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}

.btn-o:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-light);
}

.btn-ow {
  background: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-ow:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.btn.lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* Topbar */
.tb {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tb .i {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
}

.tbl, .tbr {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.tbi {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tbi a {
  color: #FFFFFF;
  font-weight: 700;
  transition: color var(--tr);
}

.tbi a:hover {
  color: var(--cyan);
}

.hb {
  background: rgba(0, 151, 167, 0.22);
  border: 1px solid rgba(0, 151, 167, 0.45);
  color: #80DEEA;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.tbs {
  display: flex;
  gap: 8px;
}

.tbs a {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  transition: var(--tr);
}

.tbs a:hover {
  background: var(--teal);
  border-color: var(--teal);
}

/* Header */
.sh2 {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid transparent;
  box-sizing: border-box;
  box-shadow: 0 2px 14px rgba(10, 37, 64, 0.07);
  transition: box-shadow var(--tr), border-color var(--tr), background var(--tr);
  width: 100%;
}

.ni {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 12px;
  width: 100%;
}

.nl {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.nl img {
  height: 40px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.nlt {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nlt .b {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nlt .s {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 1px;
  white-space: nowrap;
}

.nm {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-left: auto;
  flex-shrink: 0;
}

.nit {
  position: relative;
}

.nli {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 6px 7px;
  border-radius: var(--radius-sm);
  transition: var(--tr);
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.nli:hover, .nli.a {
  color: var(--teal);
  background: var(--teal-light);
}

.nli svg {
  width: 8px;
  height: 8px;
  opacity: 0.6;
  transition: transform var(--tr);
}

.nit:hover .nli svg {
  transform: rotate(180deg);
}

.dd {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 250px;
  opacity: 0;
  pointer-events: none;
  transition: var(--tr);
  z-index: 100;
}

.dd::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.nit:hover .dd {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dd a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--tr);
}

.dd a:hover {
  background: var(--bg-light);
  color: var(--teal);
}

.dd a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background var(--tr);
}

.dd a:hover::before {
  background: var(--teal);
}

.nb {
  background: var(--teal);
  color: #FFFFFF;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  margin-left: 6px;
  transition: var(--tr);
  white-space: nowrap;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.nb:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 151, 167, 0.4);
}

.hb2 {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}

.hb2 span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--tr);
}

.hb2.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hb2.open span:nth-child(2) { opacity: 0; }
.hb2.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mm {
  position: fixed;
  inset: 0;
  top: 0;
  background: #FFFFFF;
  z-index: 2999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 20px 36px;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
  visibility: hidden;
  pointer-events: none;
}

.mm.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

/* Trust Platforms Strip */
.trust-strip {
  background: #FFFFFF;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.trust-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.trust-badges-list {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.trust-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-light);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: var(--tr);
}
.trust-badge-pill:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 151, 167, 0.12);
}
.trust-badge-pill img {
  height: 22px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.trust-badge-val {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
@media (max-width: 768px) {
  .trust-strip {
    padding: 20px 0;
  }
  .trust-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .trust-badges-list {
    gap: 10px;
    width: 100%;
  }
  .trust-badge-pill {
    padding: 6px 12px;
    font-size: 11.5px;
  }
}

/* Press Cards */
.press-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--tr);
}
.press-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--teal);
}
.press-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}
.press-card:hover img {
  transform: scale(1.03);
}

.mnl {
  display: block;
  padding: 14px 0;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid var(--border-light);
}

.ms {
  padding: 8px 0 8px 16px;
}

.ms a {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--bg-light);
}

/* Page Banner Subpages */
.page-banner {
  background: linear-gradient(135deg, #06182C 0%, #0A2540 50%, #1565C0 100%);
  padding: 68px 0 72px;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 151, 167, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.page-banner h1 {
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.page-banner h1 span {
  color: var(--cyan);
}

.page-banner p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  line-height: 1.75;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--tr);
}

.breadcrumbs a:hover {
  color: var(--cyan);
}

/* Content & Sidebar Layout */
.content-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
}

.sidebar-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 9px;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-light);
  transition: var(--tr);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-link:hover, .sidebar-link.active {
  background: var(--teal-light);
  color: var(--teal);
  font-weight: 700;
}

.quick-contact-box {
  background: linear-gradient(135deg, var(--navy) 0%, #1565C0 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.quick-contact-box h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.quick-contact-box p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Article Typography */
.article-body h2 {
  font-size: 25px;
  font-weight: 800;
  color: var(--navy);
  margin: 36px 0 16px;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 26px 0 12px;
}

.article-body p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 20px;
}

.article-body ul {
  margin: 0 0 24px 20px;
  list-style: disc;
}

.article-body li {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 9px;
}

.article-img-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
  background: var(--bg-light);
}

.article-img-box img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.article-img-box .caption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text-muted);
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
  font-style: italic;
}

/* Doctor Profile Card (About Page) */
.doc-profile-card-about {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 28px 0 32px;
  box-shadow: var(--shadow-md);
  align-items: center;
  scroll-margin-top: 90px;
}

.doc-profile-avatar-wrap {
  background: linear-gradient(135deg, #F0F9FA 0%, #E0F7FA 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 151, 167, 0.25);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 340px;
  overflow: hidden;
}

.doc-profile-avatar-wrap img {
  max-height: 335px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.12));
}

.doc-profile-info .tag {
  display: inline-block;
  margin-bottom: 8px;
}

.doc-profile-info .doc-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.25;
}

.doc-profile-qualification {
  font-size: 13.5px;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.doc-profile-summary {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.doc-creds-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-creds-pills .cred-pill {
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid rgba(0, 151, 167, 0.15);
}

@media (max-width: 768px) {
  .doc-profile-card-about {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    text-align: center;
  }
  .doc-profile-avatar-wrap {
    height: 310px;
    max-width: 280px;
    margin: 0 auto;
    padding-top: 14px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }
  .doc-profile-avatar-wrap img {
    max-height: 280px;
    object-fit: contain;
  }
  .doc-creds-pills {
    justify-content: center;
  }
}


/* Hospital Comparison Table */
.clinical-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}

.clinical-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
}

.clinical-table th {
  background: var(--navy);
  color: #FFFFFF;
  padding: 16px 20px;
  font-weight: 700;
}

.clinical-table th:first-child {
  width: 25%;
}

.clinical-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
  line-height: 1.6;
}

.clinical-table tr:nth-child(even) td {
  background: var(--bg-light);
}

.clinical-table tr:hover td {
  background: var(--teal-light);
}

.clinical-table .highlight {
  font-weight: 700;
  color: var(--teal);
}

@media (max-width: 768px) {
  .clinical-table-wrapper {
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
  }
  .clinical-table {
    min-width: 500px;
    font-size: 13.5px;
  }
  .clinical-table th,
  .clinical-table td {
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  .clinical-table {
    min-width: 460px;
    font-size: 12.5px;
  }
  .clinical-table th,
  .clinical-table td {
    padding: 10px 10px;
  }
}

/* Interactive FAQ Accordion */
.faq-container {
  max-width: 880px;
  margin: 0 auto;
}

.faq-item-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--tr);
}

.faq-item-card.open {
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
}

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  gap: 16px;
  background: none;
  border: none;
}

.faq-item-card.open .faq-btn {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.faq-toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--tr);
}

.faq-item-card.open .faq-toggle-icon {
  background: var(--teal);
  transform: rotate(45deg);
}

.faq-toggle-icon svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.faq-item-card.open .faq-toggle-icon svg {
  color: #FFFFFF;
}

.faq-ans {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  opacity: 0;
  transition: max-height 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.3s ease;
}

.faq-item-card.open .faq-ans {
  max-height: 600px;
  padding-bottom: 22px;
  opacity: 1;
}

/* Modal Overlay */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  background: linear-gradient(135deg, var(--navy) 0%, #1565C0 100%);
  color: #FFFFFF;
  padding: 24px 30px;
  position: relative;
}

.modal-header h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #FFFFFF;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--tr);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.modal-body {
  padding: 28px 30px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text-primary);
  background: #FFFFFF;
  transition: var(--tr);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 151, 167, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-success-alert {
  display: none;
  background: #E8F5E9;
  border: 1.5px solid #A5D6A7;
  color: #1B5E20;
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
  margin-top: 14px;
}

/* Footer */
.footer {
  background: #061324;
  color: rgba(255, 255, 255, 0.72);
  padding: 76px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 340px repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}

.fl {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.fl img {
  height: 48px;
  border-radius: 6px;
  background: #FFFFFF;
  padding: 3px;
}

.flt .b {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
}

.flt .s {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

.ftg {
  font-size: 13.5px;
  line-height: 1.8;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.7);
}

.fso {
  display: flex;
  gap: 10px;
}

.fso a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  color: #FFFFFF;
  transition: var(--tr);
}

.fso a:hover {
  background: var(--teal);
  border-color: var(--teal);
}

.fc2 h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}

.flnks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flnks a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--tr);
  display: flex;
  align-items: center;
  gap: 6px;
}

.flnks a::before {
  content: '›';
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
}

.flnks a:hover {
  color: #FFFFFF;
  padding-left: 3px;
}

.fbot {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.fbot a {
  color: rgba(255, 255, 255, 0.65);
}

.fbot a:hover {
  color: #FFFFFF;
}

/* Floating Action Buttons */
.float-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: var(--tr);
  border: none;
  text-decoration: none;
}

.float-btn:hover {
  transform: scale(1.1);
}

.fw2 {
  background: #25D366;
}

.fw2 img {
  width: 32px;
  height: 32px;
}

.fc3 {
  background: var(--teal);
}

.fc3 svg {
  width: 22px;
  height: 22px;
  color: #FFFFFF;
}

/* ==============================================================================
   RESPONSIVE LAYOUT & BREAKPOINTS
   ============================================================================== */

@media (max-width: 1200px) {
  .container {
    padding: 0 16px;
  }
  .nli {
    font-size: 11px;
    padding: 4px 4px;
    gap: 2px;
  }
  .nlt .s {
    display: none;
  }
  .nlt .b {
    font-size: 12.5px;
    white-space: nowrap;
  }
  .nb {
    padding: 6px 10px;
    font-size: 11.5px;
  }
  .footer-grid {
    grid-template-columns: 280px repeat(3, 1fr);
    gap: 32px;
  }
}

@media (max-width: 1050px) {
  .tb {
    display: none;
  }
  .nm {
    display: none;
  }
  .hb2 {
    display: flex;
  }
  .content-sidebar {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .sp {
    padding: 60px 0;
  }
  .sp-sm {
    padding: 40px 0;
  }
  .sh {
    font-size: clamp(24px, 5vw, 32px);
  }
  .form-input, .form-select, .form-textarea {
    font-size: 16px !important;
  }
}

@media (max-width: 640px) {
  .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.35;
    padding: 12px 20px;
  }
  .btn.lg {
    white-space: normal !important;
    max-width: 100% !important;
    text-align: center;
  }
  .ni {
    height: 64px;
  }
  .nl img {
    height: 38px;
  }
  .nlt .b {
    font-size: 12.5px;
    max-width: 190px;
    white-space: normal;
  }
  .nb {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .float-cta {
    bottom: 18px;
    right: 18px;
  }
  .float-btn {
    width: 48px;
    height: 48px;
  }
}

/* Tablet 3-Card Grid Balancing */
@media (max-width: 1024px) and (min-width: 641px) {
  .knee-features-grid > *:nth-child(3):last-child,
  .fellowship-highlights-grid > *:nth-child(3):last-child,
  .hip-perks-grid > *:nth-child(3):last-child,
  .shoulder-perks-grid > *:nth-child(3):last-child,
  .press-grid > *:nth-child(3):last-child,
  .news-media-grid > *:nth-child(3):last-child,
  .insurance-grid > *:nth-child(3):last-child {
    grid-column: span 2;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .knee-features-grid > *:nth-child(3):last-child,
  .fellowship-highlights-grid > *:nth-child(3):last-child,
  .hip-perks-grid > *:nth-child(3):last-child,
  .shoulder-perks-grid > *:nth-child(3):last-child,
  .press-grid > *:nth-child(3):last-child,
  .news-media-grid > *:nth-child(3):last-child,
  .insurance-grid > *:nth-child(3):last-child {
    grid-column: auto;
    max-width: 100%;
  }
}

@media (min-width: 993px) {
  .content-sidebar > aside {
    position: sticky;
    top: 96px;
    align-self: start;
  }
}

/* Global Overflow Safeguard */
img, iframe, video, table, svg {
  max-width: 100%;
}
.article-body, aside, .sidebar-card, .quick-contact-box {
  min-width: 0;
  max-width: 100%;
}
