/* ============================================
   SkinQure Hair Transplant - Shared Stylesheet
   ============================================ */

:root {
  --color-primary: #0c6e7e;      /* teal */
  --color-primary-dark: #084c57;
  --color-accent: #1ba9c2;       /* lighter blue/teal */
  --color-cta: #e8743b;          /* warm CTA orange, contrast vs teal */
  --color-cta-dark: #c85c28;
  --color-dark: #1a2b32;
  --color-text: #333c3f;
  --color-light-bg: #f4f9fa;
  --color-white: #ffffff;
  --color-border: #dbe7e9;
  --font-heading: 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Segoe UI', Roboto, Arial, sans-serif;
  --max-width: 1200px;
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  background: var(--color-white);
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.25;
  margin-top: 0;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

ul { padding-left: 0; }

/* ============ Skip link ============ */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ============ Top bar ============ */
.topbar {
  background: var(--color-dark);
  color: #cfe7ea;
  font-size: 0.85rem;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: #cfe7ea; }
.topbar a:hover { color: #fff; }
.topbar-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  font-size: 0.75rem;
}

/* ============ Header / Nav ============ */
.site-header {
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  position: sticky;
  top: 0;
  z-index: 500;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}
.logo span { color: var(--color-cta); }
.logo img { display: block; height: 52px; width: auto; }

.main-nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  gap: 4px;
  align-items: center;
}
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block;
  padding: 12px 14px;
  color: var(--color-dark);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li.open > a {
  color: var(--color-primary);
}

.dropdown {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  min-width: 260px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 8px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 600;
}
.nav-list > li:hover > .dropdown,
.nav-list > li.open > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li { position: relative; }
.dropdown li a {
  display: block;
  padding: 10px 18px;
  color: var(--color-text);
  font-size: 0.9rem;
}
.dropdown li a:hover { background: var(--color-light-bg); color: var(--color-primary); }

/* nested submenu (Case Studies) */
.has-submenu > a::after { content: " \25B8"; font-size: 0.7em; }
.submenu {
  list-style: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: var(--color-white);
  min-width: 240px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  border-radius: var(--radius);
  padding: 8px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s;
}
.has-submenu:hover > .submenu,
.has-submenu.open > .submenu {
  opacity: 1;
  visibility: visible;
}

.nav-cta {
  background: var(--color-cta);
  color: #fff !important;
  border-radius: 30px;
  padding: 10px 20px !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--color-cta-dark); color: #fff !important; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 3px;
  background: var(--color-dark);
  border-radius: 2px;
}

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding: 70px 0;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-content { flex: 1; min-width: 280px; }
.hero-image { flex: 1; min-width: 280px; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.1rem; color: #e3f3f5; }
.hero-small {
  padding: 46px 0;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #d7eef1;
}
.breadcrumb a { color: #d7eef1; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease;
}
.btn-cta {
  background: var(--color-cta);
  color: #fff;
}
.btn-cta:hover { background: var(--color-cta-dark); color: #fff; }
.btn-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--color-primary); }
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }

/* ============ Sections ============ */
.section { padding: 60px 0; }
.section-alt { background: var(--color-light-bg); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 40px; }
.section-header p { color: #5d6b6e; }
.eyebrow {
  display: inline-block;
  color: var(--color-cta);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* ============ Grids ============ */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  height: 100%;
}
.card h3, .card .h3-style { margin-bottom: 10px; }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-light-bg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* Before/After grid */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ba-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ba-images { display: flex; position: relative; }
.ba-images::before, .ba-images::after {
  position: absolute;
  bottom: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(26, 43, 50, 0.75);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  pointer-events: none;
}
.ba-images::before { content: "Before"; left: 10px; }
.ba-images::after { content: "After"; left: calc(50% + 10px); }
.ba-images img { width: 50%; aspect-ratio: 1 / 1; object-fit: cover; }
.ba-caption { padding: 14px; }
.ba-caption h4, .ba-caption .h4-style { margin: 0 0 6px; font-size: 1rem; }
.ba-caption p { margin: 0; font-size: 0.85rem; color: #5d6b6e; }

/* Stats */
.stats-bar {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 36px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--color-accent); }
.stat-label { font-size: 0.9rem; color: #d7eef1; }

/* Testimonial */
.testimonial-card {
  background: #fff;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.testimonial-card p { font-style: italic; }
.testimonial-name { font-weight: 700; color: var(--color-dark); }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--color-cta), var(--color-cta-dark));
  color: #fff;
  padding: 46px 0;
  text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #ffe9dd; }

/* Forms */
.form-box {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note {
  font-size: 0.78rem;
  color: #8a9598;
  margin-top: -4px;
}

/* Table */
.table-wrap { overflow-x: auto; }
table.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
table.compare-table th, table.compare-table td {
  border: 1px solid var(--color-border);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.92rem;
}
table.compare-table th { background: var(--color-light-bg); }

/* Blog cards */
.blog-card img { border-radius: var(--radius) var(--radius) 0 0; }
.blog-card { padding: 0; overflow: hidden; }
.blog-card-body { padding: 20px; }
.blog-meta { font-size: 0.8rem; color: #8a9598; margin-bottom: 8px; }

/* Accordion-ish / list styles */
.check-list { list-style: none; padding: 0; }
.check-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--color-dark);
  color: #c4d3d6;
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer h4, .site-footer .footer-title { color: #fff; margin-bottom: 16px; font-size: 1.05rem; }
.site-footer a { color: #c4d3d6; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; }
.footer-links li { margin-bottom: 9px; font-size: 0.9rem; }
.footer-logo { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-logo span { color: var(--color-cta); }
.footer-logo { display: inline-block; }
.footer-logo img { display: block; height: 56px; width: auto; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 0;
  font-size: 0.82rem;
}
.footer-bottom a { margin-left: 16px; }

/* ============ Misc page elements ============ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.placeholder-box {
  background: var(--color-light-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a9598;
  min-height: 220px;
}
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tag {
  background: var(--color-light-bg);
  color: var(--color-primary);
  border-radius: 30px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 600;
}
.timeline { border-left: 3px solid var(--color-primary); padding-left: 24px; margin-left: 6px; }
.timeline-item { margin-bottom: 26px; position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* ============ Responsive ============ */
@media (max-width: 991px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ Blog ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}
.blog-card img { width: 100%; }
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { font-size: 0.8rem; color: #5d6b6e; margin-bottom: 8px; }
.blog-card h3, .blog-card .h3-style { font-size: 1.15rem; margin-bottom: 10px; }
.blog-card p { color: #5d6b6e; flex: 1; }
.blog-card .btn { align-self: flex-start; margin-top: 10px; }

.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}
.blog-post-meta {
  display: flex;
  gap: 20px;
  color: #5d6b6e;
  font-size: 0.9rem;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.blog-post-hero { border-radius: var(--radius); margin-bottom: 30px; width: 100%; }
.blog-body h2 { margin-top: 36px; }
.blog-body h3, .blog-body .h3-style { margin-top: 26px; }
.blog-body ul { padding-left: 22px; margin-bottom: 16px; }
.blog-body li { margin-bottom: 6px; }
.blog-body table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.blog-body table th, .blog-body table td {
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  text-align: left;
  font-size: 0.92rem;
}
.blog-body table th { background: var(--color-light-bg); }
.blog-tags { margin-top: 30px; display: flex; gap: 8px; flex-wrap: wrap; }
.blog-tag {
  background: var(--color-light-bg);
  color: var(--color-primary);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.8rem;
}
.blog-faq { margin-top: 20px; }
.blog-faq dt { font-weight: 700; color: var(--color-dark); margin-top: 16px; }
.blog-faq dd { margin: 4px 0 0; color: #5d6b6e; }

.sidebar-box {
  background: var(--color-light-bg);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
}
.sidebar-box h4, .sidebar-box .sidebar-title { margin-bottom: 14px; }
.sidebar-post { display: flex; gap: 12px; margin-bottom: 14px; align-items: flex-start; }
.sidebar-post img { width: 64px; height: 64px; border-radius: 6px; flex-shrink: 0; }
.sidebar-post a { font-size: 0.9rem; font-weight: 600; color: var(--color-dark); }
.sidebar-post a:hover { color: var(--color-primary); }
.sidebar-cta { text-align: center; }
.sidebar-cta .btn { width: 100%; box-sizing: border-box; }

.related-posts { margin-top: 50px; }

@media (max-width: 992px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .main-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: right .3s ease;
    overflow-y: auto;
    padding-top: 70px;
  }
  .main-nav.nav-open { right: 0; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .nav-list > li > a { padding: 14px 20px; border-bottom: 1px solid var(--color-border); }
  .dropdown, .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    display: none;
    transform: none;
    box-shadow: none;
    width: 100%;
    border-radius: 0;
    background: var(--color-light-bg);
  }
  .nav-list > li.open > .dropdown,
  .has-submenu.open > .submenu { display: block; }
  .nav-cta { margin: 14px 20px; text-align: center; }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 400;
  }
  .nav-overlay.show { display: block; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .topbar .container { flex-direction: column; align-items: flex-start; }
}

/* ============ Social icons (official brand colours) ============ */
.topbar-social a.social-icon,
.footer-social a.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.topbar-social a.social-icon { width: 26px; height: 26px; }
.topbar-social a.social-icon svg { width: 14px; height: 14px; }
.footer-social a.social-icon { width: 36px; height: 36px; }
.footer-social a.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover { transform: translateY(-2px); opacity: 0.9; color: #fff; }
.social-facebook { background: #1877F2 !important; }
.social-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important; }
.social-youtube { background: #FF0000 !important; }
.social-linkedin { background: #0A66C2 !important; }

@media (max-width: 768px) {
  .logo img { height: 42px; }
}

/* Safety: ignore stray empty paragraphs the Markdown converter can insert inside grids */
.ba-grid > p:empty, .grid > p:empty { display: none; }

/* ============ Enquiry form section ============ */
.enquiry-section { background: #38b5b7; padding: 60px 0; color: #fff; }
.enquiry-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.enquiry-intro h2 { color: #fff; margin: 0 0 14px; }
.enquiry-rule { display: block; width: 46px; height: 2px; background: #fff; margin-bottom: 18px; }
.enquiry-lead { font-weight: 700; margin-bottom: 12px; }
.enquiry-intro p { color: #fff; }
.enquiry-card { background: #fff; border-radius: 12px; padding: 32px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); color: var(--color-text); }
.enquiry-card h3 { text-align: center; color: #164d66; font-size: 1.45rem; line-height: 1.3; margin: 0 0 20px; }
.ef-group { margin-bottom: 14px; }
.ef-group label { display: block; font-style: italic; color: #164d66; margin-bottom: 6px; }
.ef-group input, .ef-group textarea {
  width: 100%; border: 2px solid transparent; border-radius: 10px;
  background: #38b5b7; color: #fff; padding: 12px 14px; font: inherit;
}
.ef-group textarea { resize: vertical; min-height: 48px; }
.ef-group input:focus, .ef-group textarea:focus { outline: none; border-color: #164d66; background: #2fa3a5; }
.enquiry-form.was-validated :invalid { border-color: #c0392b; }
.ef-submit {
  width: 100%; margin-top: 6px; padding: 14px; border: 0; border-radius: 30px;
  background: #164d66; color: #fff; font: inherit; font-size: 1.05rem; font-style: italic; cursor: pointer;
}
.ef-submit:hover { background: #0f3a4d; }
.ef-submit:disabled { opacity: 0.7; cursor: wait; }
.ef-status { margin: 12px 0 0; font-size: 0.95rem; min-height: 1.2em; text-align: center; }
.ef-status.is-success { color: #1e7e4a; font-weight: 600; }
.ef-status.is-error { color: #c0392b; }
.hp-field { position: absolute; left: -9999px; }
@media (max-width: 768px) {
  .enquiry-wrap { grid-template-columns: 1fr; gap: 30px; }
  .enquiry-card { padding: 24px 18px; }
}

/* ============ Achievements strip ============ */
.achievements { background: #38b5b7; padding: 44px 0; }
.achievements-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; text-align: center;
}
.achievements-list li { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #12303d; font-size: 0.98rem; line-height: 1.4; }
.achievements-list img { width: 64px; height: auto; }

/* ============ Benefits section ============ */
.benefits-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.benefits-photo { border: 4px solid #111; border-radius: 18px; padding: 10px; background: #fff; max-width: 520px; }
.benefits-photo img { width: 100%; border-radius: 12px; }
.benefits-text h2 { color: #164d66; margin: 0 0 14px; }
.benefits-rule { display: block; width: 46px; height: 2px; background: #164d66; margin-bottom: 18px; }
.benefits-text h3 { color: #3c8a8c; font-weight: 500; font-size: 1.35rem; margin: 22px 0 8px; }
.benefits-text p { margin: 0; }

@media (max-width: 991px) {
  .achievements-list { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
}
@media (max-width: 768px) {
  .achievements-list { grid-template-columns: repeat(2, 1fr); }
  .benefits-wrap { grid-template-columns: 1fr; gap: 30px; }
  .benefits-photo { margin: 0 auto; }
}

/* Headings whose tag level was adjusted for SEO keep their original look */
.h3-style { font-size: 1.4rem; }
.h4-style { font-size: 1.05rem; }
.footer-title { font-weight: 700; font-family: var(--font-heading); }
.sidebar-title { font-weight: 700; font-family: var(--font-heading); font-size: 1.05rem; }

/* ============ Shared buttons / helpers ============ */
.btn-navy { background: #164d66; color: #fff; }
.btn-navy:hover { background: #0f3a4d; color: #fff; }
.btn-teal { background: #38b5b7; color: #fff; letter-spacing: 0.5px; }
.btn-teal:hover { background: #2a9a9c; color: #fff; }
.section-cta { text-align: center; margin-top: 32px; }

/* ============ Why choose SkinQure ============ */
.why-choose .section-header { max-width: 900px; }
.why-choose h2, .video-results h2, .latest-blogs h2, .google-reviews h2 { color: #164d66; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-card {
  position: relative; overflow: hidden; text-align: center;
  background: #fff; border-radius: 6px; padding: 22px 16px 28px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.why-card::before {
  content: ""; position: absolute; top: -10%; left: 10%; width: 45%; height: 120%;
  background: #f1eff0; transform: skewX(-18deg); z-index: 0;
}
.why-card > * { position: relative; z-index: 1; }
.why-card img { width: 62px; height: auto; margin: 0 auto 14px; }
.why-card h3 { color: #164d66; font-size: 1.1rem; margin: 0 0 12px; }
.why-card p { margin: 0; line-height: 1.8; }

/* ============ YouTube videos (lightweight: iframe loads only on click) ============ */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.yt-lite { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-radius: 4px; }
.yt-lite iframe, .yt-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { padding: 0; cursor: pointer; background: #000; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; }
.yt-icon {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%);
  background: #f00; border-radius: 12px; transition: background .15s;
}
.yt-icon::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; }
.yt-play:hover .yt-icon, .yt-play:focus-visible .yt-icon { background: #c00; }

/* ============ Choosing the right clinic ============ */
.clinic-choice { background: #38b5b7; padding: 60px 0; }
.clinic-choice-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.clinic-choice-text h2 { color: #164d66; margin: 0 0 14px; }
.clinic-choice-text p { color: #10262f; }
.clinic-choice-text .btn { margin-top: 10px; }
.clinic-photo { justify-self: end; }

/* ============ Google reviews ============ */
.google-badge { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.google-word { font-family: Arial, Helvetica, sans-serif; font-size: 2.6rem; font-weight: 500; letter-spacing: -1px; line-height: 1; }
.g-b { color: #4285f4; } .g-r { color: #ea4335; } .g-y { color: #fbbc05; } .g-g { color: #34a853; }
.google-rating { font-size: 0.9rem; color: #5d6b6e; }
.google-count { color: #1a0dab; }
.review-stars { color: #f5b301; letter-spacing: 2px; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.review-card { margin: 0; background: #38b5b7; border-radius: 16px; padding: 30px 18px 36px 0; position: relative; }
.review-name {
  position: relative; z-index: 2; display: inline-block; margin-left: 4px;
  background: linear-gradient(90deg, #6f95a3 0%, #1f5a73 25%, #164d66 100%);
  color: #fff; font-size: 1.35rem; padding: 12px 56px 12px 40px;
  clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%);
}
.review-body {
  position: relative; margin: -22px 0 0 34px; background: #fff; border-radius: 14px;
  padding: 36px 24px 26px; box-shadow: 0 10px 20px rgba(0,0,0,0.15); min-height: 220px;
}
.review-body .review-stars { font-size: 1.1rem; }
.review-quote { position: absolute; right: 22px; top: 30px; font-size: 2.4rem; line-height: 1; color: #164d66; }
.review-body p { margin: 10px 0 0; font-size: 0.85rem; line-height: 1.6; text-align: justify; color: #222; }

/* ============ Latest blogs ============ */
.latest-blog-card .latest-blog-img { display: block; }
.latest-blog-card img { aspect-ratio: 1100 / 500; object-fit: cover; }
.latest-blog-card h3 { font-size: 1.15rem; margin: 6px 0 0; }
.latest-blog-card h3 a { color: #164d66; }
.latest-blog-card h3 a:hover { text-decoration: underline; }

@media (max-width: 991px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .clinic-choice-wrap { grid-template-columns: 1fr; gap: 32px; }
  .clinic-photo { justify-self: center; }
}
@media (max-width: 768px) {
  .why-grid, .video-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .review-body p { text-align: left; }
}

/* ============ Natural hairline videos ============ */
.hairline-video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; display: block; }

/* ============ FAQs (always open, no JavaScript) ============ */
.faq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 40px; max-width: 1050px; margin: 0 auto; }
.faq-item h3 { color: #164d66; font-size: 1.12rem; margin: 0 0 8px; }
.faq-item p { margin: 0; color: #46545a; }

/* ============ News & media ============ */
.news-media { background: #4fb2b4; padding: 46px 0; }
.news-media h2 { color: #fff; }
.news-media .section-header { margin-bottom: 26px; }
.media-logos {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px;
}
.media-logos li { background: #fff; border-radius: 10px; padding: 10px 18px; box-shadow: 0 4px 10px rgba(0,0,0,0.08); }
.media-logos img { width: 180px; height: auto; }
.news-media .btn-navy { background: #164d66; }

@media (max-width: 768px) {
  .faq-list { grid-template-columns: 1fr; }
  .media-logos img { width: 140px; }
}

/* ============ Results gallery (filters + sliders + lightbox) ============ */
.results-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 26px; }
.filter-btn {
  border: 2px solid var(--color-border); background: #fff; color: #164d66;
  padding: 11px 26px; border-radius: 30px; font: inherit; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; transition: all .15s ease;
}
.filter-btn:hover { border-color: #164d66; }
.filter-btn.is-active { background: #164d66; border-color: #164d66; color: #fff; }
.results-count { text-align: center; color: #5d6b6e; font-size: 0.9rem; margin: 0 0 20px; }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.result-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: 12px;
  overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,0.05); display: flex; flex-direction: column;
}
.result-card[hidden] { display: none; }
.result-slider { position: relative; background: #f4f9fa; overflow: hidden; }
.result-track { display: flex; transition: transform .3s ease; }
.result-slide { flex: 0 0 100%; margin: 0; }
.result-slide img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: #fff; display: block; }
.slide-nav, .lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(22,77,102,0.75); color: #fff; font-size: 1.5rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.slide-nav:hover, .lightbox-nav:hover { background: #164d66; }
.slide-nav.prev { left: 10px; } .slide-nav.next { right: 10px; }
.slide-count {
  position: absolute; bottom: 10px; right: 12px; background: rgba(0,0,0,0.6); color: #fff;
  font-size: 0.78rem; padding: 3px 9px; border-radius: 12px;
}
.result-zoom {
  position: absolute; bottom: 10px; left: 12px; border: 0; border-radius: 20px;
  background: rgba(255,255,255,0.92); color: #164d66; font: inherit; font-size: 0.78rem; font-weight: 700;
  padding: 5px 12px; cursor: pointer;
}
.result-zoom:hover { background: #fff; }
.result-info { padding: 18px; }
.result-info h2, .result-info .h3-style { color: #164d66; font-size: 1.05rem; margin: 0 0 12px; }
.result-specs { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; }
.result-specs li { display: flex; flex-direction: column; font-size: 0.85rem; }
.result-specs span { color: #7b898d; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; }
.result-specs strong { color: var(--color-dark); }
.result-category { margin: 0; }
.result-tag { display: inline-block; background: #e8f4f6; color: #0c6e7e; font-size: 0.78rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.results-empty { text-align: center; color: #5d6b6e; margin-top: 20px; }

.lightbox { position: fixed; inset: 0; background: rgba(9,20,25,0.92); z-index: 900; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox-inner { position: relative; width: min(94vw, 1000px); }
.lightbox-figure { margin: 0; text-align: center; }
.lightbox-figure img { max-width: 100%; max-height: 78vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox-figure figcaption { color: #dfeaed; font-size: 0.9rem; margin-top: 12px; }
.lightbox-nav.prev { left: -14px; } .lightbox-nav.next { right: -14px; }
.lightbox-nav { width: 46px; height: 46px; font-size: 1.8rem; background: rgba(255,255,255,0.18); }
.lightbox-close {
  position: absolute; top: -46px; right: 0; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.18); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
body.lightbox-open { overflow: hidden; }

@media (max-width: 991px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .results-grid { grid-template-columns: 1fr; }
  .filter-btn { padding: 9px 18px; font-size: 0.88rem; }
  .lightbox-nav.prev { left: 4px; } .lightbox-nav.next { right: 4px; }
}

/* ============ Results page intro ============ */
.results-intro { background: #ebebeb; text-align: center; }
.results-intro h2 { color: #164d66; margin-bottom: 20px; }
.results-intro p { max-width: 900px; margin: 0 auto 16px; color: #2f3c41; }
.results-intro .section-cta { margin-top: 26px; }

/* ============ Schedule your visit + enquiry form ============ */
.visit-contact { background: #fff; }
.visit-wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: start; }
.visit-info h2 { color: var(--color-dark); margin-bottom: 14px; }
.visit-info .check-list { margin-bottom: 24px; }
.visit-maps { display: grid; gap: 18px; }
.visit-map { margin: 0; }
.visit-map iframe { width: 100%; height: 220px; border-radius: 10px; display: block; }
.visit-map figcaption { font-size: 0.85rem; color: #5d6b6e; margin-top: 6px; }
.visit-form-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: 12px;
  padding: 28px; box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.visit-form-card h3 { color: var(--color-dark); margin: 0 0 18px; font-size: 1.35rem; }
.visit-form .ef-group label { font-style: normal; font-weight: 600; color: var(--color-dark); }
.visit-form .ef-group input, .visit-form .ef-group textarea {
  background: #fff; color: var(--color-text); border: 1px solid var(--color-border); border-radius: 8px;
}
.visit-form .ef-group input:focus, .visit-form .ef-group textarea:focus { border-color: var(--color-primary); background: #fff; }
.visit-form .ef-submit { background: var(--color-primary); border-radius: 8px; font-style: normal; }
.visit-form .ef-submit:hover { background: var(--color-primary-dark); }
.visit-form .form-note { font-size: 0.82rem; color: #7b898d; margin: 10px 0 0; text-align: center; }

@media (max-width: 991px) {
  .visit-wrap { grid-template-columns: 1fr; gap: 32px; }
}

/* Photo itself opens the lightbox (no extra button) */
.photo-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.photo-open img { transition: transform .25s ease; }
.result-card:hover .photo-open img { transform: scale(1.02); }
.photo-open:focus-visible { outline: 3px solid var(--color-primary); outline-offset: -3px; }

/* ============ Case study cards ============ */
.case-card { overflow: hidden; }
.case-card .case-badge {
  display: inline-block; align-self: flex-start;
  margin: 14px 0 12px 16px; padding: 7px 20px;
  background: #164d66; color: #fff; border-radius: 30px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.4px;
}
.case-photo { display: block; background: #f4f9fa; }
.case-photo img { width: 100%; height: auto; display: block; transition: transform .25s ease; }
.case-card:hover .case-photo img { transform: scale(1.02); }
.case-card .result-info h2 a { color: #164d66; }
.case-card .result-info h2 a:hover { text-decoration: underline; }
.case-link { margin: 6px 0 0; }

/* ============ Case study journey page ============ */
.case-summary-heading { text-align: center; color: #164d66; margin-bottom: 24px; }
.case-facts {
  list-style: none; margin: 0 0 34px; padding: 0;
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; text-align: center;
}
.case-facts li { background: #f4f9fa; border-radius: 10px; padding: 14px 8px; }
.case-facts span { display: block; font-size: 0.72rem; letter-spacing: 0.5px; text-transform: uppercase; color: #7b898d; margin-bottom: 4px; }
.case-facts strong { color: var(--color-dark); font-size: 0.98rem; }
.ba-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ba-compare figure { margin: 0; }
.ba-compare img { width: 100%; height: auto; border-radius: 10px; }
.ba-compare figcaption { text-align: center; font-weight: 700; color: #164d66; margin-top: 10px; }

.journey-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.journey-step {
  display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center;
  background: #fff; border: 1px solid var(--color-border); border-radius: 14px; padding: 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.journey-step:nth-child(even) .journey-text { order: 2; }
.journey-num {
  display: inline-block; background: linear-gradient(135deg, #38b5b7, #164d66); color: #fff;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 20px; margin: 0 0 12px;
}
.journey-step h2 { color: #164d66; font-size: 1.35rem; margin: 0 0 14px; }
.journey-step .check-list { margin-bottom: 14px; }
.journey-step .check-list li { font-size: 0.95rem; }
.journey-photo { margin: 0; }
.journey-photo img { width: 100%; height: auto; border-radius: 12px; }

.doctor-note-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: center; }
.doctor-note-photo { margin: 0; }
.doctor-note-photo img { width: 100%; height: auto; border-radius: 12px; }
.doctor-note blockquote {
  margin: 0; padding: 22px 26px; background: #f4f9fa; border-left: 5px solid #38b5b7; border-radius: 0 12px 12px 0;
}
.doctor-note blockquote p { margin: 0 0 12px; font-size: 1.05rem; color: #2f3c41; }
.doctor-note blockquote footer { font-weight: 700; color: #164d66; font-size: 0.92rem; }

@media (max-width: 991px) {
  .case-facts { grid-template-columns: repeat(3, 1fr); }
  .journey-step { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .journey-step:nth-child(even) .journey-text { order: 0; }
  .doctor-note-wrap { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  .case-facts { grid-template-columns: repeat(2, 1fr); }
  .ba-compare { grid-template-columns: 1fr; }
}

/* ============ Case details table ============ */
.case-details h2 { color: #164d66; margin-bottom: 20px; }
.case-table { width: 100%; border-collapse: collapse; margin-bottom: 26px; }
.case-table th, .case-table td { text-align: left; padding: 13px 16px; border: 1px solid var(--color-border); vertical-align: top; }
.case-table th { width: 38%; background: #f4f9fa; color: var(--color-dark); font-weight: 700; }
.case-table td { color: #3c4a4e; }
@media (max-width: 600px) {
  .case-table th, .case-table td { display: block; width: 100%; border-bottom: 0; }
  .case-table tr { display: block; border-bottom: 1px solid var(--color-border); }
  .case-table td { padding-top: 6px; }
}

/* ============ About Dr. Jangid: credential panels ============ */
.creds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: start;
}
.cred-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 26px 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.cred-card h3 {
  color: #164d66;
  font-size: 1.12rem;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
}
.cred-card ul { list-style: none; padding: 0; margin: 0; }
.cred-card li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 11px;
  font-size: 0.93rem;
  line-height: 1.6;
  color: #3f5057;
}
.cred-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-cta);
}
.cred-card li strong { color: #164d66; }
.cred-card.span-2 { grid-column: 1 / -1; }
.cred-card.span-2 ul { columns: 2; column-gap: 34px; }
.cred-card.span-2 li { break-inside: avoid; }

/* ============ About Dr. Jangid: conference gallery ============ */
.conf-gallery { position: relative; }
.conf-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.conf-item {
  flex: 0 0 calc((100% - 36px) / 3);
  scroll-snap-align: start;
  margin: 0;
}
.conf-item button {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
}
.conf-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
}
.conf-item figcaption {
  font-size: 0.86rem;
  color: #56666d;
  margin-top: 10px;
  line-height: 1.45;
  text-align: center;
}
.conf-nav {
  position: absolute;
  top: 34%;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.6rem; line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.22);
  z-index: 2;
}
.conf-nav.prev { left: -18px; }
.conf-nav.next { right: -18px; }
.conf-nav:disabled { opacity: 0.35; cursor: default; }

@media (max-width: 900px) {
  .creds-grid { grid-template-columns: 1fr; }
  .cred-card.span-2 ul { columns: 1; }
  .conf-item { flex-basis: calc((100% - 18px) / 2); }
  .conf-nav.prev { left: -6px; } .conf-nav.next { right: -6px; }
}
@media (max-width: 620px) {
  .conf-item { flex-basis: 100%; }
}

/* ============================================================
   Tablet navigation fix
   The horizontal menu needs about 1070px to fit, but the mobile
   menu only used to start at 768px - so between those widths the
   menu pushed off the right edge of the screen. Use the slide-in
   menu for anything under 1080px.
   ============================================================ */
@media (max-width: 1080px) {
  .hamburger { display: flex; }
  .main-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: right .3s ease;
    overflow-y: auto;
    padding-top: 70px;
    z-index: 500;
  }
  .main-nav.nav-open { right: 0; }
  .nav-list { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-list > li > a { padding: 14px 20px; border-bottom: 1px solid var(--color-border); }
  .dropdown, .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    display: none;
    transform: none;
    box-shadow: none;
    width: 100%;
    border-radius: 0;
    background: var(--color-light-bg);
  }
  .nav-list > li.open > .dropdown,
  .has-submenu.open > .submenu { display: block; }
  .nav-cta { margin: 14px 20px; text-align: center; }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 400;
  }
  .nav-overlay.show { display: block; }
}

/* Screen-reader-only text (table captions and similar) */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Grid children default to min-width:auto, which stops a wide image from
   shrinking and pushes the page sideways. Let them shrink. */
.two-col > *, .creds-grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > *,
.why-grid > *, .video-grid > *, .ba-grid > * { min-width: 0; }

/* Full-width banner image band (wide, short photos) */
.section-banner { padding: 0 0 10px; }
.section-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
/* Single readable text column */
.container.narrow-col { max-width: 900px; }

/* ================================================================
   PAGE TEMPLATE v2  —  standard layout for treatment / service pages
   Everything is scoped under .tpl so pages already built are
   completely unaffected. Reuse this markup for every new page.
   ================================================================ */

/* ---- 1. Hero: text left, banner right ---- */
.tpl-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, #0a5d6b 100%);
  color: #fff;
  padding: 34px 0 44px;
}
.tpl-hero-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.tpl-hero .breadcrumb, .tpl-hero .breadcrumb a { color: #a9d8e1; font-size: 0.86rem; }
.tpl-hero .breadcrumb a:hover { color: #fff; }
.tpl-eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #bfe9ef;
  margin: 10px 0 6px;
}
.tpl-hero h1 { color: #fff; font-size: 2.5rem; line-height: 1.18; margin: 0 0 14px; }
.tpl-lead { font-size: 1.06rem; color: #dcf0f4; margin: 0 0 20px; max-width: 56ch; }
.tpl-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.tpl-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tpl-chips li {
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 40px;
  padding: 5px 14px;
  font-size: 0.82rem;
  color: #eaf7fa;
}
.tpl-hero-media img { border-radius: 14px; box-shadow: 0 14px 34px rgba(0,0,0,0.26); }

/* ---- 2. Quick facts strip ---- */
.tpl-facts { background: var(--color-light-bg); border-bottom: 1px solid var(--color-border); }
.tpl-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 26px 0;
}
.tpl-fact { text-align: center; padding: 6px 16px; border-right: 1px solid var(--color-border); }
.tpl-fact:last-child { border-right: 0; }
.tpl-fact-num { font-size: 1.6rem; font-weight: 700; color: var(--color-primary); line-height: 1.2; }
.tpl-fact-label { font-size: 0.85rem; color: #5d6c72; margin-top: 4px; }

/* ---- 3. "On this page" jump links ---- */
.tpl-toc { border-bottom: 1px solid var(--color-border); background: #fff; }
.tpl-toc-inner { display: flex; align-items: center; gap: 14px; padding: 12px 0; flex-wrap: wrap; }
.tpl-toc-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: #7b8a90; font-weight: 700; }
.tpl-toc ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tpl-toc a {
  display: block;
  font-size: 0.86rem;
  padding: 6px 13px;
  border: 1px solid var(--color-border);
  border-radius: 40px;
  color: var(--color-primary);
  background: #fff;
}
.tpl-toc a:hover { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

/* ---- 4. Section rhythm ---- */
.tpl-section { padding: 58px 0; scroll-margin-top: 90px; }
.tpl-section.alt { background: var(--color-light-bg); }
.tpl-head { max-width: 780px; margin: 0 auto 36px; text-align: center; }
.tpl-head .tpl-kicker {
  font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--color-accent); display: block; margin-bottom: 8px;
}
.tpl-head h2 { font-size: 1.85rem; margin: 0 0 12px; color: #12414b; }
.tpl-head p { color: #56666d; margin: 0; }
.tpl-split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.tpl-split.wide-left { grid-template-columns: 1.2fr 0.8fr; }
.tpl-split > * { min-width: 0; }
.tpl-prose > :first-child { margin-top: 0; }
.tpl-prose p { margin: 0 0 15px; }
.tpl-prose h2 { font-size: 1.75rem; color: #12414b; margin: 0 0 14px; }
.tpl-prose h3 { font-size: 1.15rem; color: #164d66; margin: 22px 0 10px; }
.tpl-media img { border-radius: 14px; box-shadow: 0 8px 24px rgba(12,110,126,0.13); }

/* ---- 5. Key takeaway callout ---- */
.tpl-note {
  border-left: 5px solid var(--color-cta);
  background: #fff8f4;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.tpl-note strong { color: #b4541f; display: block; margin-bottom: 4px; }
.tpl-note p { margin: 0; color: #4a3b33; }

/* ---- 6. Numbered process steps ---- */
.tpl-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; counter-reset: s; }
.tpl-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 22px 20px 66px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.045);
  min-width: 0;
}
.tpl-step::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 20px; top: 20px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.tpl-step h3 { margin: 0 0 6px; font-size: 1.04rem; color: #12414b; }
.tpl-step p { margin: 0; font-size: 0.94rem; color: #4b5b61; }

/* ---- 7. Benefit / feature cards ---- */
.tpl-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tpl-cards.two { grid-template-columns: repeat(2, 1fr); }
.tpl-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  min-width: 0;
}
.tpl-card h3 { margin: 0 0 10px; font-size: 1.08rem; color: #12414b; padding-bottom: 9px; border-bottom: 2px solid var(--color-accent); }
.tpl-card p { margin: 0 0 10px; font-size: 0.95rem; color: #4b5b61; }
.tpl-card ul { margin: 0; padding: 0; list-style: none; }
.tpl-card li { position: relative; padding-left: 20px; margin-bottom: 9px; font-size: 0.94rem; color: #4b5b61; }
.tpl-card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--color-cta); }

/* plain tick list */
.tpl-ticks { list-style: none; padding: 0; margin: 0 0 18px; }
.tpl-ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.tpl-ticks li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--color-primary); font-weight: 700;
}

/* ---- 8. Video ---- */
.tpl-video { max-width: 820px; margin: 0 auto; }
.tpl-video .yt-lite { border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.tpl-video-caption { text-align: center; color: #56666d; font-size: 0.92rem; margin-top: 14px; }

/* ---- 9. Surgeon block ---- */
.tpl-doctor { background: linear-gradient(135deg, #0d3c46 0%, #0c6e7e 100%); color: #eaf7fa; }
.tpl-doctor h2 { color: #fff; }
.tpl-doctor p { color: #d3ecf1; }
.tpl-doctor .tpl-eyebrow { color: #7fd4e4; }
.tpl-doctor-wrap { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 40px; align-items: center; }
.tpl-doctor-wrap > * { min-width: 0; }
.tpl-doctor-photo {
  background: linear-gradient(180deg, #f2f6f8 0%, #dfe8ec 100%);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.tpl-doctor-photo img { display: block; width: 100%; }
.tpl-creds { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 34px; list-style: none; padding: 0; }
.tpl-creds li { text-align: center; font-size: 0.8rem; color: #d3ecf1; line-height: 1.35; min-width: 0; }
.tpl-creds img { width: 62px; height: auto; margin: 0 auto 8px; filter: brightness(0) invert(1); opacity: 0.92; }

/* ---- 10. FAQ (always open) ---- */
.tpl-faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 34px; }
.tpl-faq > * { min-width: 0; }
.tpl-faq-item { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 20px 22px; }
.tpl-faq-item h3 { margin: 0 0 8px; font-size: 1.02rem; color: #12414b; }
.tpl-faq-item p { margin: 0; font-size: 0.94rem; color: #4b5b61; }

/* ---- 11. Closing CTA ---- */
.tpl-cta { background: var(--color-cta); color: #fff; padding: 46px 0; text-align: center; }
.tpl-cta h2 { color: #fff; margin: 0 0 10px; font-size: 1.7rem; }
.tpl-cta p { color: #fff2ea; margin: 0 0 22px; }
.tpl-cta .btn { margin: 0 6px 8px; }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .tpl-hero-wrap, .tpl-split, .tpl-split.wide-left, .tpl-doctor-wrap { grid-template-columns: 1fr; gap: 28px; }
  .tpl-hero h1 { font-size: 2.05rem; }
  .tpl-cards { grid-template-columns: repeat(2, 1fr); }
  .tpl-creds { grid-template-columns: repeat(3, 1fr); }
  .tpl-doctor-photo { max-width: 340px; }
}
@media (max-width: 760px) {
  .tpl-section { padding: 42px 0; }
  .tpl-facts-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .tpl-fact:nth-child(2n) { border-right: 0; }
  .tpl-steps, .tpl-cards, .tpl-cards.two, .tpl-faq { grid-template-columns: 1fr; }
  .tpl-head h2 { font-size: 1.5rem; }
  .tpl-hero h1 { font-size: 1.8rem; }
  .tpl-creds { grid-template-columns: repeat(2, 1fr); }
  .tpl-toc-inner { gap: 8px; }
}

/* Trademark mark kept small and raised without stretching the line */
sup { font-size: 0.55em; line-height: 0; vertical-align: super; }
h1 sup, h2 sup, h3 sup { font-size: 0.45em; }

/* ================= Results slider (shared include) ================= */
.rs-slider { position: relative; }
.rs-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.rs-item {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  margin: 0;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  min-width: 0;
}
.rs-item img { width: 100%; height: auto; display: block; }
.rs-item figcaption {
  padding: 12px 16px 14px;
  font-size: 0.88rem;
  color: #56666d;
  text-align: center;
  border-top: 1px solid var(--color-border);
}
.rs-item figcaption strong { display: block; color: #12414b; margin-bottom: 2px; }
.rs-nav {
  position: absolute;
  top: 38%;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.6rem; line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.22);
  z-index: 2;
}
.rs-nav.prev { left: -18px; }
.rs-nav.next { right: -18px; }
.rs-nav:disabled { opacity: 0.3; cursor: default; }

@media (max-width: 1000px) {
  .rs-item { flex-basis: calc((100% - 20px) / 2); }
  .rs-nav.prev { left: -6px; } .rs-nav.next { right: -6px; }
}
@media (max-width: 680px) {
  .rs-item { flex-basis: 100%; }
}

/* Case study video grid — 3 per row, caption under each */
.csv-grid { grid-template-columns: repeat(3, 1fr); gap: 26px 22px; }
.csv-item { margin: 0; min-width: 0; }
.csv-item .yt-lite { border-radius: 10px; box-shadow: 0 5px 16px rgba(0,0,0,0.14); }
.csv-item figcaption {
  margin-top: 12px;
  font-size: 0.93rem;
  line-height: 1.45;
  color: #12414b;
  font-weight: 600;
  text-align: center;
}
@media (max-width: 1000px) { .csv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .csv-grid { grid-template-columns: 1fr; } }

/* ================================================================
   MEGA MENU
   Full-width multi-column dropdown under the main navigation.
   Below 1080px it folds into the existing slide-in mobile menu.
   ================================================================ */
.nav-list > li.has-mega { position: static; }   /* out-ranks .nav-list > li */
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 3px solid var(--color-primary);
  box-shadow: 0 18px 38px rgba(0,0,0,0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 300;
}
.has-mega:hover > .mega,
.has-mega:focus-within > .mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 34px;
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  gap: 30px 44px;
}
.mega-col { min-width: 0; }
.mega-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  color: #12414b;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li { margin-bottom: 11px; }
.mega-col a {
  display: block;
  font-size: 0.94rem;
  color: #3f5057;
  line-height: 1.4;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
}
.mega-col a:hover { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.mega-toggle { display: none; }

/* A column heading that is itself a link (e.g. "Types of Hair Transplant"). */
.mega-title a {
  color: inherit;
  border-bottom: 0;
  display: inline;
  font-size: inherit;
  line-height: inherit;
  padding: 0;
}
.mega-title a:hover { color: var(--color-primary); }

/* Short menus (Results, Videos, Hair Loss, About Us) drop down as a normal
   panel next to the parent item instead of spanning the whole header. */
.nav-list > li.has-mega.narrow-parent { position: relative; }
.mega.mega-narrow { left: 0; right: auto; min-width: 286px; border-radius: 0 0 6px 6px; }
.mega.mega-narrow .mega-inner { padding: 16px 22px 18px; display: block; }
.mega.mega-narrow .mega-col li { margin-bottom: 6px; }
.mega.mega-narrow .mega-col a { padding: 6px 0; white-space: nowrap; }

/* ---- Mobile / tablet: fold the mega menu into the slide-in panel ---- */
@media (max-width: 1080px) {
  .mega {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: 0;
    background: var(--color-light-bg);
    display: none;
  }
  .has-mega.open > .mega { display: block; }
  .has-mega:hover > .mega { display: none; }
  .has-mega.open:hover > .mega { display: block; }
  .mega-inner { display: block; padding: 6px 0 10px; }
  .mega-col { padding: 8px 20px 2px; }
  .mega-title { font-size: 0.86rem; margin-bottom: 8px; padding-bottom: 6px; }
  .mega-col li { margin-bottom: 0; }
  .mega-col a { padding: 9px 0; font-size: 0.92rem; }

  .nav-list > li.has-mega { position: relative; }
  .mega-toggle {
    display: block;
    position: absolute;
    top: 0; right: 10px;
    width: 46px; height: 49px;
    border: 0; background: none; cursor: pointer;
  }
  .mega-toggle::before {
    content: "";
    position: absolute; top: 20px; right: 16px;
    width: 9px; height: 9px;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(45deg);
    transition: transform .2s ease;
  }
  .has-mega.open > .mega-toggle::before { transform: rotate(-135deg); }
}


/* ================================================================
   BLOG INDEX: category bar, card links, pagination
   ================================================================ */
.blog-cats {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin: 0 0 34px;
}
.blog-cats a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border: 1px solid #d6e2e6; border-radius: 999px;
  font-size: 0.92rem; color: #3f5057; background: #fff; line-height: 1;
}
.blog-cats a span { font-size: 0.78rem; color: #7b8c93; }
.blog-cats a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.blog-cats a.is-active {
  background: var(--color-primary); border-color: var(--color-primary); color: #fff;
}
.blog-cats a.is-active span { color: rgba(255,255,255,0.8); }

.blog-card-img { display: block; }
.blog-card-img img { display: block; width: 100%; height: auto; }
.blog-card-body h2 a { color: inherit; }
.blog-card-body h2 a:hover { color: var(--color-primary); }

.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin-top: 38px; flex-wrap: wrap;
}
.pagination a {
  padding: 10px 20px; border: 1px solid var(--color-primary); border-radius: 6px;
  color: var(--color-primary); font-weight: 600; font-size: 0.94rem;
}
.pagination a:hover { background: var(--color-primary); color: #fff; }
.pg-status { color: #6b7d84; font-size: 0.92rem; }

/* ================================================================
   MOBILE NAVIGATION v2  (overrides the older mobile nav rules above)
   A wider slide-in panel, a proper close button, whole-row tap
   targets, and submenus that slide open instead of snapping.
   ================================================================ */
.nav-panel-head { display: none; }
.nav-close {
  position: relative;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: var(--color-light-bg);
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-close::before, .nav-close::after {
  content: "";
  position: absolute; left: 11px; top: 19px;
  width: 18px; height: 2px; border-radius: 2px;
  background: #12414b;
}
.nav-close::before { transform: rotate(45deg); }
.nav-close::after  { transform: rotate(-45deg); }
.nav-close:hover { background: #e6eef0; }

@media (max-width: 1080px) {
  /* ---- the panel itself ---- */
  .main-nav {
    position: fixed;
    top: 0; right: 0; left: auto;
    width: min(88vw, 360px);
    height: 100vh;
    height: 100dvh;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    background: #fff;
    box-shadow: -6px 0 26px rgba(0,0,0,0.18);
    transform: translateX(105%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    z-index: 500;
  }
  .main-nav.nav-open { right: 0; transform: translateX(0); }
  body.nav-locked { overflow: hidden; }

  .nav-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    padding: 13px 16px 13px 22px;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-panel-head span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #7b8c93;
  }

  .main-nav .nav-list {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 30px;
  }

  /* ---- top-level rows ---- */
  .nav-list > li { position: relative; }
  .nav-list > li > a {
    padding: 16px 22px;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-list > li.has-mega > a { padding-right: 56px; }
  .nav-list > li.has-mega.open > a { color: var(--color-primary); }

  /* The whole row is the toggle, so a tap never mis-fires on the label. */
  .nav-list > li.has-mega > .mega-toggle {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0;
    width: auto;
    /* Must cover the ROW only. Never 100% of the <li> - the <li> grows when
       the submenu opens, and the button would then sit on top of every link
       inside it. JS syncs this to the exact height of the row's <a>. */
    height: 58px;
    border: 0; background: none; cursor: pointer;
    padding: 0;
  }
  .mega-toggle::before {
    content: "";
    position: absolute; top: 50%; right: 24px;
    width: 9px; height: 9px;
    margin-top: -7px;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(45deg);
    transition: transform .25s ease;
  }
  .has-mega.open > .mega-toggle::before {
    transform: rotate(-135deg);
    margin-top: -2px;
  }

  /* ---- the sliding submenu ---- */
  .mega,
  .has-mega:hover > .mega,
  .has-mega.open > .mega,
  .has-mega.open:hover > .mega {
    display: block;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: 0;
    background: var(--color-light-bg);
  }
  .mega {
    height: 0;
    overflow: hidden;
    transition: height .3s cubic-bezier(.4,0,.2,1);
  }
  .mega.mega-narrow { min-width: 0; border-radius: 0; }
  .mega-inner,
  .mega.mega-narrow .mega-inner {
    display: block;
    max-width: none;
    padding: 4px 0 12px;
  }
  .mega-col { padding: 10px 22px 2px; }
  .mega-title {
    font-size: 0.74rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #7b8c93;
    margin: 0 0 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d8e4e7;
  }
  .mega-title a { color: inherit; }
  .mega-col li { margin-bottom: 0; }
  .mega-col a,
  .mega.mega-narrow .mega-col a {
    padding: 12px 0;
    font-size: 0.95rem;
    white-space: normal;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
  .mega-col li:last-child a { border-bottom: 0; }

  .nav-cta-wrap { padding: 4px 0; }
  .nav-cta { display: block; margin: 16px 22px; text-align: center; padding: 14px 18px; }

  .nav-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 400;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
  }
  .nav-overlay.show { opacity: 1; visibility: visible; }
}

@media (max-width: 1080px) and (prefers-reduced-motion: reduce) {
  .main-nav, .mega, .nav-overlay, .mega-toggle::before { transition: none; }
}

/* Blog cards keep an even grid whatever shape the source photo is. */
/* Cards share one shape so the grid lines up. 1.9:1 matches the banner
   template, so almost nothing is trimmed. */
.blog-card-img img { aspect-ratio: 1.9; object-fit: cover; object-position: center; }

/* ================================================================
   BLOG POST v2 — matches the layout of the old site: featured image
   at the top, article left, "Latest Blog" sidebar on the right.
   ================================================================ */
.blog-post-top { padding-top: 34px; }
.blog-body > .breadcrumb { margin-bottom: 10px; }
.blog-body > h1 { font-size: 2.05rem; line-height: 1.22; margin-bottom: 22px; }

/* The article's featured image is shown whole - never cropped. */
.blog-post-hero {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.blog-post-meta {
  align-items: center;
  gap: 8px 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 26px;
}
.blog-post-meta .bpm-author a { color: var(--color-primary); font-weight: 600; }
.blog-post-meta time { color: inherit; }
.blog-post-meta .bpm-cat {
  margin-left: auto;
  background: var(--color-light-bg);
  color: var(--color-primary);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: 600;
}
.blog-prose > *:first-child { margin-top: 0; }
.blog-prose h2 { margin-top: 36px; }
.blog-prose h3 { margin-top: 26px; }
.blog-prose ul, .blog-prose ol { padding-left: 22px; margin-bottom: 16px; }
.blog-prose li { margin-bottom: 6px; }
.blog-prose img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 22px 0; }
.blog-prose blockquote {
  margin: 22px 0;
  padding: 14px 20px;
  border-left: 4px solid var(--color-cta);
  background: #fff7f2;
  border-radius: 0 6px 6px 0;
}
.blog-prose blockquote p:last-child { margin-bottom: 0; }

/* "Latest Blog" list, styled like the boxed list on the old site */
.latest-list { list-style: none; margin: 0; padding: 0; }
.latest-list li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 13px 15px;
  margin-bottom: 10px;
}
.latest-list a {
  display: block;
  font-size: 0.93rem;
  font-weight: 600;
  color: #12414b;
  line-height: 1.4;
}
.latest-list a:hover { color: var(--color-primary); }
.latest-list time { display: block; margin-top: 6px; font-size: 0.8rem; color: #7b8c93; }
.latest-all { display: inline-block; margin-top: 6px; font-size: 0.9rem; font-weight: 600; color: var(--color-primary); }

.blog-author-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 40px;
  padding: 22px;
  background: var(--color-light-bg);
  border-radius: var(--radius);
}
.blog-author-card > * { min-width: 0; }
.blog-author-card img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.blog-author-card .bac-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: #12414b; margin: 0 0 6px; }
.blog-author-card p { color: #5d6b6e; margin-bottom: 8px; }
.blog-author-card a { font-weight: 600; color: var(--color-primary); }

/* Two columns of cards inside the listing, because the sidebar takes a third */
.blog-grid.two-up { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 1080px) {
  .blog-grid.two-up { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .blog-body > h1 { font-size: 1.62rem; }
  .blog-grid.two-up { grid-template-columns: 1fr; }
  .blog-post-meta .bpm-cat { margin-left: 0; }
  .blog-author-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

/* ---- Blog title search ---- */
.blog-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 620px;
  margin: 0 auto 22px;
}
.blog-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 13px 18px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-dark);
  border: 1px solid #d6e2e6;
  border-radius: 999px;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
}
.blog-search input[type="search"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14,116,144,0.14);
}
.blog-search button {
  flex: 0 0 auto;
  padding: 13px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.blog-search button:hover { background: #0b5f70; }
.blog-search-clear { flex: 0 0 auto; font-size: 0.9rem; color: #7b8c93; }
.blog-search-clear:hover { color: var(--color-primary); }

.blog-noresults {
  background: var(--color-light-bg);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: center;
}
.blog-noresults p { margin-bottom: 8px; }
.blog-noresults p:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .blog-search { flex-wrap: wrap; }
  .blog-search input[type="search"] { flex: 1 1 100%; }
  .blog-search button { flex: 1 1 auto; }
}

/* Blog listing: three cards to a row, full width, no sidebar. */
.blog-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .blog-grid { grid-template-columns: 1fr; } }

/* The "Latest Blog" list holds up to 20 articles, so it scrolls
   inside its box instead of stretching the page. */
.sidebar-box .latest-list {
  max-height: 560px;
  overflow-y: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
}
.sidebar-box .latest-list::-webkit-scrollbar { width: 6px; }
.sidebar-box .latest-list::-webkit-scrollbar-thumb { background: #cbd9dd; border-radius: 3px; }

/* ================================================================
   RECENT POSTS on an article page - two cards, featured image and
   title, with "See All" beside the heading.
   ================================================================ */
.recent-posts-block { padding-top: 10px; }
.recent-posts-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.recent-posts-head h2 { margin: 0; font-size: 1.6rem; }
.recent-see-all {
  flex: 0 0 auto;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
}
.recent-see-all:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .recent-posts-head h2 { font-size: 1.35rem; }
}

/* A wide table inside an article scrolls sideways on its own rather than
   pushing the whole page wider on a phone. */
.blog-prose .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 22px 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.blog-prose .table-scroll table { margin: 0; border: 0; min-width: 760px; }
.blog-prose table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 0.9rem; }
.blog-prose th, .blog-prose td {
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.blog-prose thead th { background: var(--color-light-bg); color: #12414b; font-weight: 700; }
.blog-prose .table-scroll table th:first-child,
.blog-prose .table-scroll table td:first-child { border-left: 0; }
.blog-prose .table-scroll table th:last-child,
.blog-prose .table-scroll table td:last-child { border-right: 0; }

/* Videos inside an article keep their 16:9 shape */
.blog-prose .yt-lite { margin: 24px 0; }

/* Grid children default to min-width:auto, which lets a wide table push the
   whole page sideways. This is the same fix applied to the other grids. */
.blog-layout > * { min-width: 0; }
.blog-body, .blog-prose { min-width: 0; max-width: 100%; }

/* ---------------------------------------------------------------
   Article extras: contents list, "read also" links, reviewer line
   --------------------------------------------------------------- */
.blog-toc {
  margin: 26px 0 30px;
  padding: 18px 22px;
  background: #f4f8f9;
  border-left: 4px solid var(--color-primary, #0c6e7e);
  border-radius: 8px;
}
.blog-toc-title {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #0c5966;
}
.blog-toc ol { margin: 0; padding-left: 20px; }
.blog-toc li { margin: 5px 0; line-height: 1.45; }
.blog-toc a { color: #10596b; text-decoration: none; }
.blog-toc a:hover,
.blog-toc a:focus-visible { text-decoration: underline; }

.blog-prose .read-also {
  margin: 22px 0;
  padding: 12px 16px;
  background: #fff8ec;
  border-left: 4px solid #e8a33d;
  border-radius: 6px;
  font-size: 0.97rem;
}
.blog-prose .read-also a { font-weight: 600; }

.blog-prose .reviewed-by {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: #5a6b70;
}
.blog-prose .reviewed-by:first-of-type { margin-top: 28px; }

/* the click-to-play video sits in the text flow, never wider than it */
.blog-prose .yt-lite { margin: 24px 0; }

@media (max-width: 480px) {
  .blog-toc { padding: 14px 16px; }
  .blog-toc ol { padding-left: 18px; }
}

/* A long web address pasted into the text must wrap, not push the page
   sideways on a phone. */
.blog-prose a,
.blog-prose p,
.blog-prose li { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------
   Blog listing: two columns of cards beside a sidebar, then pages
   --------------------------------------------------------------- */
.blog-list-head { text-align: left; margin-bottom: 26px; }
.blog-list-head h2 { margin: 4px 0 8px; }
.blog-list-head p { margin: 0; max-width: 56ch; }

.blog-count {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: #5a6b70;
}

/* two across next to the sidebar, instead of three across full width */
.blog-grid.blog-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* category chips, as on the reference page */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chips a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #e8f2f4;
  color: #10596b;
  font-size: 0.9rem;
  line-height: 1.3;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.cat-chips a span {
  font-size: 0.78rem;
  opacity: .7;
  font-variant-numeric: tabular-nums;
}
.cat-chips a:hover,
.cat-chips a:focus-visible { background: #d2e7eb; }
.cat-chips a.is-active {
  background: var(--color-primary, #0c6e7e);
  color: #fff;
}
.cat-chips a.is-active span { opacity: .85; }

/* page numbers */
.blog-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 38px 0 4px;
}
.blog-pager a,
.blog-pager .pager-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #cfdfe3;
  border-radius: 8px;
  color: #10596b;
  text-decoration: none;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.blog-pager a:hover,
.blog-pager a:focus-visible { background: #e8f2f4; border-color: #9cc3cc; }
.blog-pager .pager-num.is-current {
  background: var(--color-primary, #0c6e7e);
  border-color: var(--color-primary, #0c6e7e);
  color: #fff;
}
.blog-pager .pager-gap { padding: 0 2px; color: #8aa1a7; }
.blog-pager .pager-step { font-weight: 600; }

@media (max-width: 1024px) {
  .blog-grid.blog-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .blog-pager .pager-step { width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------------
   Sticky WhatsApp and call buttons
   --------------------------------------------------------------- */
.sticky-contact {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sticky-contact a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px 12px 15px;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  transition: transform .15s ease, box-shadow .15s ease;
}
.sticky-contact a:hover,
.sticky-contact a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
}
.sticky-contact a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.sticky-wa   { background: #25d366; }
.sticky-call { background: var(--color-cta, #e2703a); }
.sticky-contact svg { flex: none; }

/* On a phone the label costs room the thumb needs - show circles instead,
   and sit them above the thumb rather than under it. */
@media (max-width: 640px) {
  .sticky-contact { right: 12px; bottom: 12px; gap: 12px; }
  .sticky-contact a { padding: 0; width: 54px; height: 54px; justify-content: center; }
  .sticky-contact a span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-contact a { transition: none; }
  .sticky-contact a:hover { transform: none; }
}

/* keep the buttons clear of the footer's last line on short pages */
.site-footer { padding-bottom: 90px; }
@media (min-width: 641px) { .site-footer { padding-bottom: 60px; } }

/* ---------------------------------------------------------------
   News & Media
   --------------------------------------------------------------- */
.media-banner,
.about-banner { width: 100%; height: auto; border-radius: 12px; display: block; }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}
.media-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e3ecee;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
}
.media-card:hover { box-shadow: 0 8px 22px rgba(12, 110, 126, .13); transform: translateY(-2px); }
.media-thumb { display: block; background: #f1f6f7; }
.media-thumb img { width: 100%; height: auto; display: block; aspect-ratio: 316/400; object-fit: cover; }
.media-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.media-pub {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-primary, #0c6e7e);
}
.media-title { margin: 0; font-size: 1rem; line-height: 1.38; font-weight: 700; }
.media-title a { color: #15323a; text-decoration: none; }
.media-title a:hover, .media-title a:focus-visible { color: var(--color-primary, #0c6e7e); text-decoration: underline; }
/* a small mark so a reader knows the link leaves the site */
.media-title a[target="_blank"]::after {
  content: "\2197";
  display: inline-block;
  margin-left: 4px;
  font-size: .82em;
  opacity: .6;
}
.media-teaser { margin: 0; font-size: 0.9rem; color: #5a6b70; line-height: 1.5; }
.media-date { margin: 2px 0 0; font-size: 0.8rem; color: #8aa1a7; }

/* ---------------------------------------------------------------
   About SkinQure: result galleries and rating badges
   --------------------------------------------------------------- */
/* Three result cards, each a 4-slide carousel.
   The slides are a scroll-snap strip, so swiping works on a phone and the
   whole thing still works if the JavaScript never runs - in that case the
   arrows stay hidden and the strip simply scrolls. */
.result-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.result-card {
  background: #fff;
  border: 1px solid #e3ecee;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}
.result-case-title { margin: 0 0 2px; font-size: 1.05rem; }
.result-case-meta { margin: 0 0 14px; font-size: .85rem; color: #5a6b70; }

.rc-viewport {
  position: relative;
  margin-top: auto;   /* equal-height cards, so the photos line up across all three */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: 10px;
}
.rc-viewport::-webkit-scrollbar { display: none; }
.rc-track { display: flex; }
.rc-slide { flex: 0 0 100%; min-width: 100%; scroll-snap-align: start; }
.rc-slide img { width: 100%; height: auto; display: block; border-radius: 10px; }

.rc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(16,58,67,.72);
  color: #fff;
  font-size: 22px; line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,.25);
}
.rc-ready .rc-btn { display: flex; }
.rc-btn:hover { background: rgba(16,58,67,.95); }
.rc-btn:focus-visible { outline: 3px solid var(--color-cta, #e2725b); outline-offset: 2px; }
.rc-prev { left: 8px; }
.rc-next { right: 8px; }

.rc-dots { display: none; justify-content: center; gap: 7px; margin-top: 12px; }
.rc-ready .rc-dots { display: flex; }
.rc-dot {
  width: 8px; height: 8px;
  padding: 0; border: none; border-radius: 50%;
  background: #cfdee1;
  cursor: pointer;
}
.rc-dot[aria-current="true"] { background: var(--color-primary, #0c6e7e); width: 20px; border-radius: 4px; }

@media (max-width: 960px) {
  .result-cards { grid-template-columns: 1fr; gap: 20px; }
  .result-card { max-width: 560px; margin: 0 auto; width: 100%; }
}

.rating-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}
.rating-card {
  background: #fff;
  border: 1px solid #e3ecee;
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
}
/* Clinic location cards with their Google map */
.loc-card .loc-map {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 10px;
  display: block;
  margin-top: 14px;
}
.loc-link { margin: 10px 0 0; font-size: .9rem; }
@media (max-width: 600px) {
  .loc-card .loc-map { height: 210px; }
}

.rating-card img { max-width: 150px; width: 100%; height: auto; margin: 0 auto 12px; display: block; }
.rating-score { margin: 0; font-size: 1.7rem; font-weight: 800; color: var(--color-primary, #0c6e7e); line-height: 1; }
.rating-count { margin: 4px 0 0; font-size: .85rem; color: #5a6b70; }

@media (max-width: 480px) {
  .media-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .media-body { padding: 12px 12px 16px; }
  .media-title { font-size: .9rem; }
  .media-teaser { display: none; }
}

/* ============================================
   Doctor credentials (NMC disclosure) and the
   "Medically reviewed by" byline.
   Markup comes from /includes/doctor.php
   ============================================ */
.doctor-credentials {
  margin: -4px 0 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text);
}
.doctor-credentials .dc-degrees {
  display: block;
  font-weight: 600;
  color: var(--color-primary-dark);
}
.doctor-credentials .dc-regs {
  display: block;
  font-size: 0.85rem;
  color: #5b6a6e;
}
.hero .hero-doctor-name { margin: 0 0 4px; font-size: 1.2rem; color: #fff; }
.hero .doctor-credentials.on-dark,
.hero .doctor-credentials.on-dark .dc-degrees,
.hero .doctor-credentials.on-dark .dc-regs { color: #e3f3f5; }
.hero .doctor-credentials.on-dark .dc-degrees { color: #fff; }
.hero .doctor-credentials.on-dark { margin-top: 0; font-size: 0.95rem; }

.reviewed-byline-wrap { padding-top: 20px; padding-bottom: 4px; }
.reviewed-byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  background: var(--color-light-bg);
  font-size: 0.9rem;
  line-height: 1.45;
}
.reviewed-byline > div { min-width: 0; }
.reviewed-byline img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.reviewed-byline p { margin: 0; }
.reviewed-byline .rb-line { color: var(--color-dark); }
.reviewed-byline .rb-line a { font-weight: 700; }
.reviewed-byline .rb-degrees { color: var(--color-text); }
.reviewed-byline .rb-meta { font-size: 0.82rem; color: #5b6a6e; }
.blog-post-meta .bpm-degrees { font-size: 0.85em; }
.blog-post-meta .bpm-reviewed a { color: var(--color-primary); font-weight: 600; }
.blog-author-card .doctor-credentials { margin: 0 0 8px; }
@media (max-width: 600px) {
  .reviewed-byline { align-items: flex-start; padding: 12px; }
  .reviewed-byline img { width: 44px; height: 44px; }
}
/* credentials inside the dark "Your Surgeon" band on procedure pages */
.tpl-doctor .doctor-credentials .dc-degrees { color: #fff; }
.tpl-doctor .doctor-credentials .dc-regs { color: #bfe3ea; }
.reg-no { white-space: nowrap; }

/* ---- NMC disclosure block (blog author card + footer) ---- */
.doctor-disclosure {
  margin: 10px 0 12px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
  font-size: 0.88rem;
  line-height: 1.5;
}
.doctor-disclosure p { margin: 0 0 2px; }
.blog-author-card .doctor-disclosure p { margin: 0 0 2px; color: #4a5a5e; }
.doctor-disclosure .dd-name strong { color: #12414b; }
.doctor-disclosure .dd-label { font-weight: 600; }
.site-footer .doctor-disclosure {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 0;
  padding: 16px 0 4px;
  font-size: 0.82rem;
}
.site-footer .doctor-disclosure p,
.site-footer .doctor-disclosure .dd-name strong { color: rgba(255,255,255,0.85); }

/* ---- Medical disclaimer at the end of every article ---- */
.medical-disclaimer {
  margin: 28px 0 8px;
  padding: 14px 18px;
  background: #fff8f1;
  border: 1px solid #f3d9c4;
  border-left: 4px solid var(--color-cta);
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4a3a2e;
}
.medical-disclaimer p { margin: 0; }

/* ---- DPDP privacy notice under every enquiry form ---- */
.privacy-notice {
  margin: 10px 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  opacity: 0.85;
  text-align: left;
}
.privacy-notice a { color: inherit; text-decoration: underline; }

/* ---- "Results vary" notice on outcome content ---- */
.results-disclaimer {
  margin: 14px auto 0;
  max-width: 900px;
  padding: 10px 14px;
  background: #fffaf3;
  border: 1px solid #f0dcc6;
  border-radius: var(--radius);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #5a4a3c;
}
.results-disclaimer strong { color: #4a3a2e; }
.reviewed-byline-wrap .results-disclaimer { max-width: none; margin-top: 10px; }
