:root {
  --navy: #16385c;
  --navy-deep: #0d2740;
  --accent: #3f7cb5;
  --accent-light: #6fa4d4;
  --cream: #f7f5f1;
  --white: #ffffff;
  --ink: #16262f;
  --muted: #5b6b75;
  --line: #e4dfd4;
  --radius: 14px;
  --shadow: 0 20px 40px rgba(15, 60, 92, 0.10);
  --font-display: "Fraunces", serif;
  --font-body: "Work Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
.section-inner { width: 90%; max-width: 1480px; margin: 0 auto; padding: 50px 0; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 14px;
}
.eyebrow-light { color: var(--accent-light); }
h1, h2, h3 { font-family: var(--font-display); color: var(--navy-deep); margin: 0 0 18px; line-height: 1.15; }
h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 600; }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }
p { line-height: 1.7; color: var(--muted); margin: 0 0 16px; }
.lead { font-size: 18px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 2000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 14px;
  letter-spacing: 0.03em; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(63,124,181,0.35); background: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(247,245,241,0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: 90%; max-width: 1480px; margin: 0 auto; padding: 12px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  display: inline-flex; align-items: center; white-space: nowrap;
}
.logo img { height: 48px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a {
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy-deep); transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--accent); }
.nav-cta {
  background: var(--navy); color: #fff !important; padding: 10px 20px; border-radius: 999px;
}
.nav-cta:hover { background: var(--accent); }
.header-call { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy-deep); white-space: nowrap; }
.header-call svg { width: 18px; height: 18px; color: var(--accent); }
.menu-toggle {
  display: none; flex-direction: column; justify-content: space-between; width: 26px; height: 16px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.menu-toggle span { height: 2px; background: var(--navy-deep); border-radius: 2px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  align-items: center;
}
.hero-slider { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,39,64,0.75) 0%, rgba(13,39,64,0.55) 45%, rgba(13,39,64,0.8) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 900px; margin: 0 auto; padding: 90px 24px;
  text-align: center;
}
.hero-text .eyebrow { color: var(--accent-light); justify-content: center; display: flex; }
.hero-text h1 { color: #fff; }
.hero-text .lead { color: rgba(255,255,255,0.85); max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-text .btn { margin-top: 10px; }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.4);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s ease, transform 0.2s ease;
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero-arrow svg { width: 22px; height: 22px; }
.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

.hero-dots {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 10px;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.25); cursor: pointer; padding: 0; transition: background 0.2s ease, transform 0.2s ease;
}
.hero-dot.is-active { background: var(--accent); border-color: var(--accent); transform: scale(1.2); }

/* About */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: center;
}
.about-media {
  background: var(--white);
  border-radius: 24px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  aspect-ratio: 4/3.4;
}
.about-content .eyebrow { justify-content: flex-start; }
.about-content h2 { color: var(--navy-deep); }
.text-accent { color: var(--accent); }
.about-content .btn { margin-top: 8px; }

/* Booking */
.booking { background: var(--navy-deep); color: #fff; }
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.booking-text h2 { color: #fff; }
.booking-text p { color: rgba(255,255,255,0.75); }
.booking-form {
  background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px;
}
.booking-form label { font-size: 13px; font-weight: 600; color: var(--navy-deep); display: flex; flex-direction: column; gap: 6px; }
.booking-form input, .booking-form textarea, .booking-form select {
  font-family: var(--font-body); font-size: 15px; padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--cream); color: var(--ink); resize: vertical;
  width: 100%;
}
.booking-form input:focus, .booking-form textarea:focus, .booking-form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; margin: 0; }
.form-note a { color: var(--navy); font-weight: 600; }

/* Stats */
.stats { background: var(--navy); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; padding: 50px 24px; }
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(32px, 4vw, 48px); font-weight: 600; color: var(--accent-light); }
.stat-label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; color: #fff; }

/* Doctor */
.doctor { background: var(--white); }
.doctor-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; }
.doctor-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.doctor-role { color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.doctor-creds { font-size: 13px; letter-spacing: 0.04em; margin-bottom: 20px; }
.doctor-title { font-weight: 700; color: var(--navy-deep); }
.doctor-phones { display: flex; gap: 20px; margin: 20px 0; flex-wrap: wrap; }
.doctor-phones a { font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.doctor-treatments { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 24px; }
.doctor-treatments li {
  background: var(--cream); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.link-arrow { font-weight: 700; color: var(--navy); display: inline-flex; gap: 6px; margin: 10px 0 28px; }
.link-arrow span { transition: transform 0.2s ease; }
.link-arrow:hover span { transform: translateX(4px); }
.doctor-ministats { display: flex; gap: 40px; }
.doctor-ministats strong { display: block; font-family: var(--font-display); font-size: 30px; color: var(--navy-deep); }
.doctor-ministats span { font-size: 13px; color: var(--muted); }

/* Treatments */
.treatments-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.treatment-card {
  background: var(--white); border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow);
  transition: transform 0.25s ease; text-align: center;
}
.treatment-card:hover { transform: translateY(-6px); }
.treatment-icon { font-size: 34px; display: block; margin-bottom: 14px; }
.stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 12px; }

/* Testimonials */
.testimonials { background: var(--navy); color: #fff; }
.testimonials .eyebrow { color: var(--accent-light); }
.testimonials h2 { color: #fff; }
.testimonials .lead { color: rgba(255,255,255,0.75); margin-bottom: 40px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: rgba(255,255,255,0.06); border-radius: var(--radius); padding: 20px; }
.testimonial-card p { color: rgba(255,255,255,0.75); font-style: italic; margin: 0; }
.testimonial-card h3 { color: #fff; font-size: 17px; }
.video-wrap { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Smile Transformations (homepage before/after strip) */
.transformations-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 40px; }
.transformation-card { background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba-pair figure { margin: 0; position: relative; }
.ba-pair img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; }
.ba-pair figcaption {
  position: absolute; bottom: 8px; left: 8px; background: rgba(22,56,92,0.85); color: #fff;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 10px; border-radius: 999px;
}
.transformation-label { text-align: center; font-weight: 700; color: var(--navy-deep); margin: 14px 0 0; }

/* Awards */
.awards { background: var(--white); text-align: center; }
.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 20px;
  margin-top: 30px;
}
.award-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.award-card:hover { transform: translateY(-6px); box-shadow: 0 28px 48px rgba(15,60,92,0.18); }
.award-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.award-card:hover img { transform: scale(1.05); }
.award-card--tall { grid-row: span 2; }
.award-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--navy-deep); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
}
@media (max-width: 980px) {
  .awards-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
}
@media (max-width: 600px) {
  .awards-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .award-card--tall { grid-row: auto; height: 320px; }
}

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.75); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 44px; width: auto;  }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--accent-light); }
.footer-privacy { display: inline-block; margin-top: 14px; font-size: 13px; text-decoration: underline; }
.footer-map { border-radius: 10px; overflow: hidden; height: 160px; }
.footer-map iframe { width: 100%; height: 100%; border: 0; }
.footer-bottom {
  text-align: center; padding: 20px 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; margin: 0;
}

/* Floating call button */
.floating-call {
  position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(63,124,181,0.4); z-index: 900; animation: pulse 2.4s infinite;
}
.floating-call svg { width: 24px; height: 24px; color: #fff; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63,124,181,0.5); }
  70% { box-shadow: 0 0 0 16px rgba(63,124,181,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,124,181,0); }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner, .booking-grid, .doctor-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { max-width: 480px; margin: 0 auto; }
  .doctor-media { max-width: 340px; }
  .treatments-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .main-nav { position: fixed; top: 68px; left: 0; right: 0; background: var(--cream); flex-direction: column;
    padding: 24px; gap: 18px; transform: translateY(-120%); transition: transform 0.3s ease; border-bottom: 1px solid var(--line); }
  .main-nav.open { transform: translateY(0); }
  .menu-toggle { display: flex; }
  .header-call span { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .treatments-grid, .testimonials-grid, .transformations-grid, .awards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badge { position: static; margin-top: -30px; width: fit-content; }
  .hero-collage { grid-template-columns: 1fr 1fr; }
  .hero-img-small img { min-height: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Nav current-page indicator */
.main-nav a.is-current { color: var(--accent); }

/* Blog dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy-deep); background: none; border: none; cursor: pointer; padding: 0;
}
.nav-dropdown-toggle:hover { color: var(--accent); }
.nav-caret { width: 12px; height: 12px; transition: transform 0.2s ease; }
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  background: var(--white); border-radius: 10px; box-shadow: var(--shadow);
  padding: 10px; min-width: 240px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}
.nav-dropdown-menu a {
  font-size: 12px; text-transform: none; letter-spacing: normal; font-weight: 500;
  padding: 10px 12px; border-radius: 6px; white-space: normal;
}
.nav-dropdown-menu a:hover { background: var(--cream); color: var(--accent); }
/* Desktop: hover to open */
@media (min-width: 761px) {
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown.open .nav-dropdown-menu {
    opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  }
}
/* Mobile: tap to open, stacked in place */
@media (max-width: 760px) {
  .nav-dropdown-menu {
    position: static; transform: none; box-shadow: none; opacity: 1; visibility: visible;
    display: none; padding: 6px 0 0 12px; min-width: 0; background: transparent;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; }
  .nav-dropdown-toggle { justify-content: center; width: 100%; }
}

/* Page hero (used on Contact, and other inner pages) */
.page-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-hero-media {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 15%;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,39,64,0.7) 0%, rgba(13,39,64,0.55) 60%, rgba(13,39,64,0.75) 100%);
}
.page-hero-inner {
  position: relative; z-index: 2;
  width: 90%; max-width: 1480px; margin: 0 auto; padding: 90px 0;
  text-align: center;
}
.page-hero-inner h1 { color: #fff; margin-bottom: 10px; font-size: clamp(32px, 4.6vw, 52px); }
.page-hero-inner p { color: rgba(255,255,255,0.85); font-size: 17px; margin: 0; }

/* Contact split section */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
}
.contact-map {
  position: relative;
  min-height: 420px;
}
.contact-map iframe {
  width: 100%; height: 100%; border: 0; display: block; min-height: 420px;
}
.map-card {
  position: absolute; top: 24px; left: 24px;
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 4px;
  max-width: 260px;
}
.map-card strong { font-family: var(--font-display); font-size: 18px; color: var(--navy-deep); }
.map-card span { font-size: 13px; color: var(--muted); }
.map-card-link { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--accent); display: inline-flex; gap: 6px; }

.contact-info {
  background: var(--white);
  padding: 90px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow-contact { color: var(--accent); }
.contact-info h2 { color: var(--navy-deep); margin-bottom: 20px; }
.contact-info p { max-width: 46ch; }

.call-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: 20px 0 32px; }
.call-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 14px;
  padding: 12px 20px; border-radius: 999px; transition: background 0.2s ease, transform 0.2s ease;
}
.call-btn svg { width: 16px; height: 16px; }
.call-btn:hover { background: var(--accent); transform: translateY(-2px); }

.contact-form { padding: 0; box-shadow: none; background: transparent; max-width: 480px; }
.contact-form input, .contact-form textarea { background: var(--cream); }

@media (max-width: 980px) {
  .contact-split { grid-template-columns: 1fr; }
  .contact-map { min-height: 360px; }
  .contact-info { padding: 60px 24px; }
}

/* ============================================================
   APPOINTMENT PAGE
   ============================================================ */

.footer-logo span { color: var(--accent-light); font-weight: 400; }

/* --- Appointment hero (no photo — built from the palette itself) --- */
.appt-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(760px 420px at 18% -10%, rgba(111,164,212,0.28), transparent 60%),
    radial-gradient(620px 420px at 88% 110%, rgba(63,124,181,0.22), transparent 55%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
}
.appt-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}
.appt-hero-inner {
  position: relative; z-index: 1;
  max-width: 860px;
  text-align: center;
  padding: 110px 0 96px;
}
.appt-hero-inner .eyebrow { justify-content: center; display: flex; }
.appt-hero-inner h1 { color: #fff; }
.appt-hero-actions {
  display: flex; align-items: center; justify-content: center; gap: 20px;
  margin-top: 30px; flex-wrap: wrap;
}
.or-divider {
  font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
}
.btn-whatsapp { background: #2f9e6e; color: #fff; gap: 9px; }
.btn-whatsapp:hover { background: #268a5e; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(47,158,110,0.35); }
.btn-outline-light { border-color: rgba(255,255,255,0.55); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy-deep); border-color: #fff; }

/* --- Appointment form section --- */
.appt-form-section { background: var(--cream); }
.appt-form-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 40px;
  align-items: start;
  padding-top: 70px;
  padding-bottom: 70px;
}
.appt-form { gap: 20px; }
.form-lead { color: var(--muted); font-size: 14px; margin: 0 0 4px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-card {
  background: var(--navy-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 30px 0;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: sticky;
  top: 110px;
}
.contact-card-phone {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 26px;
  letter-spacing: 0.01em;
}
.contact-card-illustration {
  width: 78%;
  margin: 0 auto;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.35));
}

/* --- About collage (appointment page) --- */
.about-collage-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
  align-items: center;
}
.about-collage {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 14px;
  max-width: 420px;
}
.collage-col { display: flex; flex-direction: column; gap: 18px; }
.collage-col img {
  width: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow);
}
.collage-col-narrow { margin-top: 36px; }
.collage-col-narrow img { aspect-ratio: 3/4; }
.collage-col-wide img { aspect-ratio: 4/3; }

/* --- Services carousel --- */
.services-carousel {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
}
.services-track {
  flex: 1;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 12px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.services-track::-webkit-scrollbar { display: none; }
.service-card {
  flex: 0 0 calc(25% - 18px);
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); }
.service-card-head { text-align: center; }
.service-icon { font-size: 34px; display: block; margin-bottom: 14px; }
.service-card-head .stars { justify-content: center; }
.service-card p { text-align: center; }

.carousel-arrow {
  flex: 0 0 auto;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line); color: var(--navy);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.carousel-arrow:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.carousel-arrow svg { width: 20px; height: 20px; }

.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.carousel-dot {
  width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--accent);
  background: transparent; cursor: pointer; padding: 0; transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot.is-active { background: var(--accent); transform: scale(1.2); }

@media (max-width: 980px) {
  .service-card { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 640px) {
  .service-card { flex: 0 0 88%; }
}

/* --- Text testimonials --- */
.text-testimonials { background: var(--white); }
.text-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.text-testimonial {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
}
.text-testimonial::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 60px;
  color: var(--accent-light);
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}
.text-testimonial p { color: var(--ink); font-size: 15px; margin-bottom: 18px; }
.text-testimonial cite {
  font-style: normal; font-weight: 700; color: var(--navy-deep); font-size: 14px;
}

/* --- Location section --- */
.location-section { background: var(--cream); }
.location-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.location-map {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 340px;
}
.social-row { display: flex; gap: 14px; margin-top: 22px; }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 999px; border: 1px solid var(--navy);
  font-size: 13px; font-weight: 700; color: var(--navy);
  transition: background 0.2s ease, color 0.2s ease;
}
.social-row a:hover { background: var(--navy); color: #fff; }

@media (max-width: 980px) {
  .appt-form-grid { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .about-collage-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-collage { max-width: 380px; margin: 0 auto; }
  .text-testimonials-grid { grid-template-columns: 1fr 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .location-map { height: 280px; }
}
@media (max-width: 760px) {
  .form-row { grid-template-columns: 1fr; }
  .text-testimonials-grid { grid-template-columns: 1fr; }
  .appt-hero-inner { padding: 90px 0 70px; }
}

/* ============================================================
   TREATMENTS PAGE
   ============================================================ */

/* --- Services hero --- */
.services-hero { background: var(--cream); }
.services-hero-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 60px;
}
.services-hero-media {
  background: radial-gradient(circle at 50% 38%, rgba(111,164,212,0.22), transparent 68%), var(--white);
  border-radius: 28px;
  padding: 46px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
}
.services-hero-media img { width: 62%; margin: 0 auto; }
.services-hero-content .lead { max-width: 56ch; }

/* --- Service cards carousel (Our Best Treatments) --- */
.services-carousel { display: flex; align-items: center; gap: 18px; }
.services-track {
  flex: 1;
  display: flex; gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 4px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.services-track::-webkit-scrollbar { display: none; }
.service-card {
  flex: 0 0 calc(25% - 18px);
  scroll-snap-align: start;
}

@media (max-width: 980px) { .service-card { flex: 0 0 calc(50% - 12px); } }
@media (max-width: 640px) { .service-card { flex: 0 0 88%; } }

/* --- Clinic photo carousel --- */
.clinic-gallery { background: var(--white); padding-top: 10px; }
.clinic-carousel { display: flex; align-items: center; gap: 18px; }
.clinic-track {
  flex: 1;
  display: flex; gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 4px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.clinic-track::-webkit-scrollbar { display: none; }
.clinic-photo {
  flex: 0 0 calc(33.333% - 16px);
  scroll-snap-align: start;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}
.clinic-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 980px) { .clinic-photo { flex: 0 0 calc(50% - 12px); } }
@media (max-width: 640px) { .clinic-photo { flex: 0 0 88%; } }

/* --- Treatment tabs --- */
.treatment-tabs-section { background: var(--white); }
.tab-list {
  display: flex; gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  -ms-overflow-style: none; scrollbar-width: none;
}
.tab-list::-webkit-scrollbar { display: none; }
.tab-btn {
  flex: 0 0 auto;
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--muted);
  background: none; border: none; border-bottom: 3px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panels {
  background: var(--cream);
  border: 1px solid var(--line); border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 36px 40px;
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.tab-panel ul { display: flex; flex-direction: column; gap: 14px; }
.tab-panel li {
  color: var(--ink); line-height: 1.7;
  padding-left: 22px; position: relative; margin: 0;
}
.tab-panel li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.tab-panel li strong { color: var(--navy-deep); }

/* Smooth tab-panel crossfade, matches --ease-premium used elsewhere */
.tab-panel.is-active {
  animation: tabFadeIn 0.5s var(--ease-premium);
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .tab-panels { padding: 26px 22px; }
}

/* --- Stats (3-column variant for Treatments page) --- */
.stats-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
  .stats-grid-3 { grid-template-columns: 1fr; }
}

/* --- CTA banner --- */
.cta-banner-section { background: var(--cream); }
.cta-banner {
  background: var(--white);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  padding: 40px 46px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  flex-wrap: wrap;
}
.cta-banner-text h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 8px; }
.cta-banner-text p { margin: 0; max-width: 62ch; }
.cta-banner-btn { flex: 0 0 auto; gap: 8px; }
.cta-banner-btn svg { width: 16px; height: 16px; }

@media (max-width: 980px) {
  .services-hero-grid { grid-template-columns: 1fr; padding-top: 50px; }
  .services-hero-media { max-width: 340px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .cta-banner { padding: 30px 26px; }
}

/* ============================================================
   ABOUT PAGE STYLES (about.html)
   ============================================================ */

/* Center Helpers */
.center-eyebrow {
  display: flex;
  justify-content: center;
}

/* Hero Section */
.about-page-hero .page-hero-media {
  background-position: center 30%;
}

.page-hero-kicker {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--accent-light);
  margin-top: 10px;
}

/* Welcome Intro & Mission Grid */
.welcome-intro {
  background: var(--cream);
}

.welcome-intro-inner {
  padding-bottom: 40px;
  max-width: 900px;
}

.why-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding-top: 0;
}

.why-mission-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: relative;
  transition: transform 0.25s ease;
}

.why-mission-card:hover {
  transform: translateY(-4px);
}

.why-mission-card h3 {
  color: var(--navy-deep);
  margin-bottom: 14px;
}

/* Meet Our Doctors Grid */
.doctors-team {
  background: var(--white);
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.doctor-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}

.doctor-card:hover {
  transform: translateY(-6px);
}

.doctor-card-media {
  width: 100%;
  aspect-ratio: 4/4.5;
  overflow: hidden;
  background: var(--navy-deep);
}

.doctor-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.doctor-card:hover .doctor-card-media img {
  transform: scale(1.04);
}

.doctor-card-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.doctor-card-body h3 {
  margin-bottom: 4px;
  font-size: 19px;
}

.doctor-card-role {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
  display: block;
}

.doctor-card-creds {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 12px;
  display: block;
  font-weight: 600;
  text-transform: uppercase;
}

.doctor-card-body p {
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
}

/* --- Our Staff Section --- */
.our-staff-section {
  background: var(--cream);
  padding: 20px 0 60px;
}

.staff-card {
  background: var(--navy-deep);
  color: #fff;
  border-radius: 20px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 1000px;
  margin: 0 auto;
}

.staff-card h2 {
  color: #fff;
  font-size: 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.staff-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  max-width: 720px;
  margin: 0 auto 24px;
}

.staff-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.staff-list li {
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  font-weight: 500;
}

/* Dental Treatment & Patient Guidance */
.dental-treatment {
  background: var(--cream);
}

.dental-treatment-top {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 40px;
}

.dental-treatment-media {
  background: var(--white);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dental-treatment-media img {
  max-width: 85%;
  height: auto;
}

.dental-treatment-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dental-treatment-list li {
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
  color: var(--ink);
  font-size: 15px;
}

.dental-treatment-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Feature Grid */
.dental-treatment-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 0;
}

.feature-item {
  background: var(--white);
  padding: 28px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(63, 124, 181, 0.1);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-item h4 {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--navy-deep);
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 13px;
  margin: 0;
}

/* Call To Action Banner (Separated from Footer) */
.about-cta {
  background: var(--cream);
  padding: 60px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-cta-inner {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 46px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.about-cta-text h2 {
  color: var(--navy-deep);
  margin-bottom: 12px;
}

.about-cta-text p {
  color: var(--muted);
  margin-bottom: 6px;
}

.about-cta-text strong {
  color: var(--navy);
}

.about-cta-btn {
  white-space: nowrap;
  flex-shrink: 0;
  gap: 8px;
}

.about-cta-btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   GALLERY PAGE STYLES (gallery.html)
   ============================================================ */

.gallery-header {
  position: relative;
  padding: 100px 0 60px;
  text-align: center;
  background: var(--cream);
  overflow: hidden;
}

.gallery-header .section-inner {
  position: relative;
  padding: 0;
}

.gallery-subtitle {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.32em;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  display: block;
  margin-bottom: 18px;
}

.gallery-title {
  font-family: var(--font-display);
  color: var(--navy-deep);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 22px;
  line-height: 1;
}

.gallery-header::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto;
  border-radius: 3px;
}

.gallery-section {
  padding-top: 0px;
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  align-items: start;
}

.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Vary tile heights for a true masonry rhythm */
.gallery-col:nth-child(odd) .gallery-item:nth-child(2n) {
  margin-top: 32px;
}
.gallery-col:nth-child(even) .gallery-item:nth-child(2n+1) {
  margin-top: 32px;
}

.gallery-item {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--navy-deep);
  box-shadow: 0 1px 3px rgba(15,60,92,0.08);
  transition: box-shadow 0.35s ease;
}

.gallery-item:hover {
  box-shadow: 0 24px 44px rgba(13,39,64,0.22);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  filter: saturate(0.94);
}

.gallery-item:hover img {
  transform: scale(1.08);
  filter: saturate(1.05);
}

/* Dark reveal overlay with a view icon on hover */
.gallery-item::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,39,64,0) 40%, rgba(13,39,64,0.75) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.gallery-item::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%) scale(0.7);
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316385c' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Responsive Grid */
@media (max-width: 1180px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-col:nth-child(odd) .gallery-item:nth-child(2n),
  .gallery-col:nth-child(even) .gallery-item:nth-child(2n+1) {
    margin-top: 0;
  }
}
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery-col { gap: 14px; }
  .gallery-header { padding: 70px 0 44px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   PATIENT GALLERY PAGE STYLES (patientgallery.html)
   ============================================================ */

.pg-intro {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.pg-intro-inner {
  padding: 50px 0 40px;
  display: flex;
  justify-content: center;
}

.pg-intro-logo {
  height: 64px;
  width: auto;
}

.pg-section {
  background: var(--white);
  padding-top: 0;
}

.pg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pg-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pg-item {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy-deep);
  position: relative;
}

.pg-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pg-item:hover img {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 980px) {
  .pg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pg-grid { grid-template-columns: 1fr; }
  .pg-intro-logo { height: 52px; }
  .pg-intro-inner { padding: 40px 0 30px; }
}

.gallery-video-inner {
  padding-top: 20px;
  text-align: center;
}
 
.gallery-video-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.24em;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 10px;
}
 
.gallery-video-title {
  font-family: var(--font-display);
  color: var(--navy-deep);
  margin: 0 0 30px;
}
 
.gallery-video-wrap {
  position: relative;
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}

/* Works if using HTML5 <video> */
.gallery-video-wrap video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 80vh;
  object-fit: contain;
}

/* Works if using <iframe> */
.gallery-video-wrap iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}
 
@media (max-width: 600px) {
  .gallery-video-inner { padding-top: 10px; }
}

/* ============================================================
   BLOG PAGE & CLINIC PROFILE SECTION
   ============================================================ */

/* Blog Hero Banner */
.blog-hero-overlay {
  width: 100%;
}

.blog-hero-bg {
  width: 100%;
  height: 580px; /* Increased height so the head isn't cropped */
  background-size: cover;
  background-position: center top; /* Focuses the image on the face */
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
}

.blog-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.blog-hero-content h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

/* Article Body */
.blog-article-section {
  padding: 50px 0;
  background: var(--white);
}

.blog-article-container {
  width: 90%;
  max-width: 1100px;
  margin: 30px auto;
  font-family: var(--font-body);
}

.intro-paragraph {
  font-size: 17px;
  text-align: center;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 35px;
}

.sub-heading-center {
  text-align: center;
  font-family: var(--font-display);
  color: var(--navy-deep);
  font-size: 22px;
  margin-bottom: 20px;
}

.blog-services-list h3 {
  font-size: 16px;
  color: var(--navy-deep);
  margin-top: 24px;
  margin-bottom: 6px;
}

.blog-services-list p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.blog-conclusion {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.blog-conclusion h2 {
  font-size: 22px;
  color: var(--navy-deep);
  margin-bottom: 12px;
}

/* Clinic Profile Section (Screen 2 Layout) */
.clinic-profile-section {
  padding: 60px 0;
  background: var(--cream);
}

.clinic-profile-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: start;
}

.doctor-photo-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.doctor-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-info-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.founder-card {
  background: #0f0a34;
  color: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.founder-card h2 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 4px;
}

.founder-card h3 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.founder-card .credentials {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.founder-card .bio {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

.founder-phones {
  display: flex;
  gap: 12px;
}

.phone-btn {
  background: #008738;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.info-split-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.treatments-column {
  background: #fff;
  padding: 25px;
}

.treatments-column h4 {
  color: var(--navy-deep);
  font-size: 16px;
  margin-bottom: 14px;
}

.treatments-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.treatments-column li {
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px dotted var(--line);
}

.location-column {
  background: #0f0a34;
  color: #fff;
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.location-column h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 12px;
}

.location-column p {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.directions-link {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 20px;
}

.location-stats {
  display: flex;
  gap: 20px;
  margin-top: auto;
}

.stat-num {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.stat-lbl {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 850px) {
  .clinic-profile-container {
    grid-template-columns: 1fr;
  }
  
  .info-split-card {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   COMMENT FORM & POST NAVIGATION STYLES
   ============================================================ */

.post-navigation {
  display: flex;
  justify-content: flex-end;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.next-post-link {
  color: #0066cc;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.next-post-link:hover {
  text-decoration: underline;
}

.comment-section {
  background: #fdfdfd;
  padding: 30px 0;
}

.comment-section h2 {
  font-size: 24px;
  color: var(--navy-deep);
  margin-bottom: 8px;
}

.comment-note {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}

.comment-form textarea:focus,
.comment-form input:focus {
  border-color: #0066cc;
  background: #fff;
}

.comment-form .form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0;
}

.form-checkbox input[type="checkbox"] {
  cursor: pointer;
}

.submit-comment-btn {
  align-self: flex-start;
  background: #0066cc;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-comment-btn:hover {
  background: #004d99;
}

@media (max-width: 768px) {
  .comment-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   BLOG — DENTAL IMPLANTS PAGE (blogs/blog-dental-implants.html)
   ============================================================ */

/* ============================================================
   BLOG — IMPLANT HERO (replaces the previous .implant-hero block)
   ============================================================ */

.implant-hero {
  position: relative;
  background: linear-gradient(160deg, #0c1017 0%, #10151e 60%, #12181f 100%);
  padding: 60px 0 130px;
  overflow: visible;
}

/* Wave dipping down in the middle, rising back up at the edges */
.implant-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 110px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 220' preserveAspectRatio='none'%3E%3Cpath d='M0,0 C420,190 1180,190 1600,0 L1600,220 L0,220 Z' fill='%23f7f5f1'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.implant-hero-container {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 0.9fr;
  gap: 40px;
  align-items: center;
}

/* Left image card */
.implant-hero-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.45);
  height: 280px;
  background: #1a1f28;
}

.implant-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.hero-card-title {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(10,14,20,0) 35%, rgba(10,14,20,0.92) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  padding: 90px 22px 24px;
}

/* Center heading */
.implant-hero-center {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 10px;
}

.implant-hero-center h1 {
  font-family: var(--font-body);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}

/* Right video card */
.implant-hero-video-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  padding: 0;
}

.video-label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 11px;
  color: var(--navy-deep);
  background: #fff;
  border-radius: 50%;
  line-height: 1;
}

.video-thumbnail-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.45);
  height: 250px;
  background: #1a1f28;
}

.video-thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.video-overlay-info {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 70px 18px 16px;
  background: linear-gradient(180deg, rgba(10,14,20,0) 35%, rgba(10,14,20,0.9) 100%);
}

.video-overlay-info .doctor-name {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 6px;
}

.video-overlay-info .rating-stars {
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Responsive --- */
@media (max-width: 1080px) {
  .implant-hero-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .implant-hero-card { height: 220px; order: 2; }
  .implant-hero-center { order: 1; padding: 10px 0; }
  .implant-hero-video-card { order: 3; }
  .video-thumbnail-wrap { height: 220px; }
  .implant-hero { padding-bottom: 110px; }
}

@media (max-width: 600px) {
  .implant-hero { padding: 40px 0 90px; }
  .hero-card-title { font-size: 17px; padding: 70px 18px 18px; }
}


/* --- Main content layout --- */
.implant-main-content {
  background: var(--white);
  padding: 70px 0;
}

.implant-layout-grid {
  width: 90%;
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.4fr;
  gap: 60px;
  align-items: start;
}

.implant-article-body h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin-top: 40px;
}

.implant-article-body h3 {
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 26px;
  margin-bottom: 8px;
}

.implant-article-body p {
  color: var(--muted);
  font-size: 16px;
}

.implant-article-body ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 24px;
}

.implant-article-body ul li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  line-height: 1.7;
}

.implant-article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.author-sign {
  margin-top: 30px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--navy-deep);
}

/* --- Sidebar --- */
.implant-sidebar {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.subscribe-card {
  background: var(--navy-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 26px;
  color: #fff;
}

.subscribe-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 14px;
}

.subscribe-card-header i {
  font-size: 14px;
}

.subscribe-card p {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  margin-bottom: 20px;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.subscribe-form input {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.subscribe-form input::placeholder {
  color: rgba(255,255,255,0.5);
}

.subscribe-form input:focus {
  outline: 2px solid var(--accent-light);
  outline-offset: 1px;
}

.subscribe-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.subscribe-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.sidebar-social-icons {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-btn:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Bottom section --- */
.implant-bottom-section {
  background: var(--cream);
  padding: 60px 0 0;
}

.implant-bottom-container {
  width: 90%;
  max-width: 1480px;
  margin: 0 auto;
}

/* Ratings / share bar */
.ratings-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 28px;
  margin-bottom: 40px;
}

.ratings-share-bar .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 8px;
}

.rating-box .score {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--navy-deep);
  font-weight: 600;
}

.critic-rating .stars {
  color: var(--accent);
  letter-spacing: 2px;
}

.share-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.share-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.share-btn.fb { background: #3b5998; }
.share-btn.tw { background: #1da1f2; }
.share-btn.in { background: #0077b5; }

/* Carousel */
.implant-gallery-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 60px;
}

.carousel-viewport {
  flex: 1;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 12px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-viewport::-webkit-scrollbar { display: none; }

.carousel-card {
  flex: 0 0 calc(20% - 16px);
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.carousel-card:hover img {
  transform: scale(1.06);
}

.carousel-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.carousel-arrow:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .carousel-card { flex: 0 0 calc(33.333% - 14px); }
}
@media (max-width: 640px) {
  .carousel-card { flex: 0 0 70%; }
}

/* Dark footer banner */
.dark-footer-banner {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 50px 46px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.5fr;
  gap: 40px;
  color: #fff;
}

.dark-footer-banner h2 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 12px;
}

.dark-footer-banner p {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
}

.subscribe-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.subscribe-banner-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.search-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-links a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  transition: color 0.2s ease;
}

.search-links a:hover {
  color: var(--accent-light);
}

.social-col {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
}

.social-col a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-col a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* --- Responsive --- */
@media (max-width: 1080px) {
  .implant-hero-container { grid-template-columns: 1fr; }
  .implant-hero-card { min-height: 220px; }
  .implant-layout-grid { grid-template-columns: 1fr; }
  .implant-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .subscribe-card { flex: 1 1 320px; }
  .dark-footer-banner { grid-template-columns: 1fr; }
  .social-col { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .ratings-share-bar { flex-direction: column; align-items: flex-start; }
  .implant-sidebar { flex-direction: column; }
  .dark-footer-banner { padding: 36px 26px; }
}

/* ============================================================
   INVISALIGN BLOG PAGE STYLES (MATCHING SCREENSHOTS)
   ============================================================ */

.invisalign-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Hero Section & Slanted Banner --- */
.invisalign-hero-section {
  padding-top: 30px;
  background: #ffffff;
}

.invisalign-page-title {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}

.invisalign-meta {
  font-size: 13px;
  color: #0066cc;
  margin-bottom: 24px;
}

/* Slanted Banner Container */
.invisalign-banner {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background-color: #7d72b0;
}

/* Background Image Layer */
.invisalign-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.invisalign-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Slanted Purple Overlay Shape */
.invisalign-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 88%;
  height: 100%;
  background: rgba(125, 114, 176, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%);
  z-index: 2;
}

.invisalign-banner-overlay h2 {
  color: #ffffff;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  margin: 0;
}

/* --- Article Intro Row --- */
.invisalign-main-content {
  padding: 40px 0;
  background: #ffffff;
}

.invisalign-intro-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
}

.intro-left-graphic {
  position: relative;
  background: #f8fafc;
  padding: 30px;
  border-radius: 100px 20px 20px 20px;
}

.intro-left-graphic .icon-circle {
  width: 50px;
  height: 50px;
  background: #ffedd5;
  color: #ea580c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.intro-left-graphic p {
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
  margin: 0;
}

.intro-right-image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

/* --- Article Typography --- */
.invisalign-article-body h2 {
  font-size: 22px;
  color: #0f172a;
  margin: 28px 0 12px;
}

.invisalign-article-body p {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 16px;
}

.invisalign-tips-list {
  padding-left: 20px;
  margin-bottom: 24px;
}

.invisalign-tips-list li {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 10px;
}

/* --- Screenshot 2: Comment Section Styles --- */
.comment-area-wrapper {
  background: #f8fafc;
  padding: 30px 0 60px;
}

.prev-post-nav {
  padding: 12px 0 30px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 30px;
}

.prev-post-nav a {
  color: #0066cc;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
}

.prev-post-nav a:hover {
  text-decoration: underline;
}

.comment-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.comment-card h2 {
  font-size: 24px;
  color: #0f172a;
  margin-bottom: 8px;
}

.comment-subtext {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
}

.comment-form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-form-grid textarea,
.comment-form-grid input[type="text"],
.comment-form-grid input[type="email"],
.comment-form-grid input[type="url"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #f1f5f9;
  background: #f8fafc;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  color: #1e293b;
  box-sizing: border-box;
}

.comment-form-grid textarea:focus,
.comment-form-grid input:focus {
  background: #ffffff;
  border-color: #cbd5e1;
}

.form-inputs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.form-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #475569;
  margin: 6px 0;
}

.post-comment-btn {
  align-self: flex-start;
  background: #0066cc;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.post-comment-btn:hover {
  background: #0052a3;
}

@media (max-width: 768px) {
  .invisalign-intro-row,
  .form-inputs-row {
    grid-template-columns: 1fr;
  }
  
  .invisalign-banner {
    height: 240px;
  }

  .invisalign-banner-overlay {
    width: 100%;
    clip-path: none;
    background: rgba(125, 114, 176, 0.88);
    padding: 0 20px;
  }
  
  .invisalign-banner-overlay h2 {
    font-size: 24px;
    text-align: center;
  }
}

/* ============================================================
   PREMIUM MOTION SYSTEM
   ============================================================ */

:root {
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Scroll-triggered reveal. JS adds [data-reveal] and toggles .is-visible
   when the element enters the viewport. Direction is set by the
   attribute value: up (default), fade, left, right. Stagger by setting
   the --reveal-delay custom property inline per element. */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-premium), transform 0.9s var(--ease-premium);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal="fade"] { transform: translateY(0) scale(0.98); }
[data-reveal="fade"].is-visible { transform: scale(1); }
[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="left"].is-visible { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="right"].is-visible { transform: translateX(0); }

/* Header gains depth once the page has scrolled */
.site-header {
  transition: box-shadow 0.4s var(--ease-out-soft), background 0.4s var(--ease-out-soft);
}
.site-header.is-scrolled {
  box-shadow: 0 14px 32px rgba(15,60,92,0.12);
  background: rgba(247,245,241,0.97);
}

/* Nav links: underline sweeps in from the left on hover/focus */
.main-nav a:not(.nav-cta) { position: relative; }
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  transition: right 0.4s var(--ease-out-soft);
}
.main-nav a:not(.nav-cta):hover::after,
.main-nav a:not(.nav-cta):focus-visible::after { right: 0; }

/* Hero copy enters as a soft staggered sequence on load */
.hero-text .eyebrow,
.hero-text h1,
.hero-text .lead,
.hero-text .btn {
  opacity: 0;
  transform: translateY(22px);
  animation: heroEnter 1s var(--ease-premium) forwards;
}
.hero-text .eyebrow { animation-delay: 0.1s; }
.hero-text h1 { animation-delay: 0.25s; }
.hero-text .lead { animation-delay: 0.42s; }
.hero-text .btn { animation-delay: 0.58s; }
@keyframes heroEnter {
  to { opacity: 1; transform: translateY(0); }
}

/* Slightly richer card lift, matched to the premium easing curve */
.treatment-card,
.gallery-item,
.service-card,
.testimonial-card,
.doctor-card,
.clinic-photo,
.why-mission-card,
.pg-item {
  transition: transform 0.55s var(--ease-premium), box-shadow 0.55s var(--ease-premium);
}
.treatment-card:hover { box-shadow: 0 28px 48px rgba(15,60,92,0.16); }

/* Gentle image zoom on the about / doctor portrait frames */
.about-media img,
.doctor-media img,
.doctor-photo-card img {
  transition: transform 0.8s var(--ease-premium);
}
.about-media:hover img,
.doctor-media:hover img,
.doctor-photo-card:hover img { transform: scale(1.035); }

/* Buttons: soften the press, keep the lift on hover from before */
.btn { transition: transform 0.35s var(--ease-out-soft), box-shadow 0.35s var(--ease-out-soft), background 0.3s ease; }
.btn:active { transform: translateY(0) scale(0.97); }

/* Stat numbers lift a touch on hover, reinforcing the counter animation */
.stat { transition: transform 0.4s var(--ease-out-soft); }
.stat-num { display: inline-block; transition: transform 0.3s var(--ease-out-soft); }
.stat:hover .stat-num { transform: translateY(-3px); }

/* Floating call button: soften the entrance so it doesn't just pop in */
.floating-call {
  animation: pulse 2.4s infinite, floatIn 0.6s var(--ease-premium) 1s backwards;
}
@keyframes floatIn {
  from { opacity: 0; transform: scale(0.6) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ============================================================
   MOBILE VIEW ADDITIONS
   Fills gaps left by the section-specific breakpoints above:
   doctors grid, dental treatment/features grids, about CTA,
   why/mission grid, staff card, blog hero, clinic profile,
   comment/founder cards, invisalign title, hero/page-hero sizing.
   Uses the same breakpoints already established in this file
   (980 / 760 / 640 / 600px) so nothing conflicts.
   ============================================================ */

@media (max-width: 980px) {
  /* About page: doctors + dental treatment sections */
  .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .dental-treatment-top { grid-template-columns: 1fr; gap: 34px; }
  .dental-treatment-media { max-width: 340px; margin: 0 auto; }
  .dental-treatment-features { grid-template-columns: repeat(2, 1fr); }
  .about-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 34px 30px;
  }
  .about-cta-btn { width: 100%; justify-content: center; }

  /* Header logo trims slightly before the hamburger kicks in */
  .logo img { height: 42px; }

  /* Hero / page hero shrink a bit earlier than mobile-only */
  .hero { min-height: 560px; }
  .page-hero { min-height: 420px; }

  /* Blog hero image was fixed at 580px — far too tall on tablets */
  .blog-hero-bg { height: 420px; }
  .blog-hero-content h1 { font-size: 24px; }

  .services-hero-media { padding: 30px; }
}

@media (max-width: 760px) {
  /* Why / Mission cards stack */
  .why-mission-grid { grid-template-columns: 1fr; }
  .doctors-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  .about-cta { padding: 40px 0; }
  .about-cta-inner { padding: 28px 22px; }

  .staff-card { padding: 36px 20px; }
  .staff-desc { font-size: 14px; }

  /* Comment / founder cards use large fixed padding on desktop */
  .comment-card { padding: 26px 20px; }
  .founder-card { padding: 22px 20px; }

  .invisalign-page-title { font-size: 24px; }

  .hero-inner { padding: 70px 20px; }
  .page-hero-inner { padding: 60px 0; }
}

@media (max-width: 600px) {
  .doctors-grid { grid-template-columns: 1fr !important; gap: 20px; }
  .dental-treatment-features { grid-template-columns: 1fr; }
  .doctor-card-media { aspect-ratio: 4/3.4; }
  .doctor-card-body { padding: 20px 18px; }

  .blog-hero-bg { height: 320px; }

  .hero { min-height: 500px; }
  .page-hero { min-height: 360px; }

  .founder-phones,
  .location-stats { flex-wrap: wrap; }

  .contact-card-illustration { width: 60%; }
}

/* Safety net: force single-column doctors grid on narrow phones
   regardless of any conflicting/duplicate rule elsewhere in the stylesheet */
@media (max-width: 480px) {
  .doctors-team .doctors-grid,
  .doctors-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   BLOG ARTICLE REDESIGN (blog-best-dental-clinic-gajuwaka.html)
   Card/grid based layout — replaces cramped unstyled lists.
   ============================================================ */

.blog2-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(760px 420px at 18% -10%, rgba(111,164,212,0.28), transparent 60%),
    radial-gradient(620px 420px at 88% 110%, rgba(63,124,181,0.22), transparent 55%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
}
.blog2-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}
.blog2-hero-inner {
  position: relative; z-index: 1;
  width: 90%; max-width: 860px; margin: 0 auto;
  text-align: center;
  padding: 60px 0 84px;
}
.blog2-hero-inner .eyebrow { justify-content: center; display: flex; }
.blog2-hero-inner h1 { color: #fff; }
.blog2-hero-sub { color: rgba(255,255,255,0.8); font-size: 17px; max-width: 62ch; margin: 0 auto 20px; }
.blog2-breadcrumb {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,0.55); margin-bottom: 18px;
}
.blog2-breadcrumb a { color: rgba(255,255,255,0.75); }
.blog2-breadcrumb a:hover { color: var(--accent-light); }
.blog2-hero-meta {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  margin-top: 8px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.75);
}
.blog2-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.blog2-hero-meta svg { width: 15px; height: 15px; color: var(--accent-light); }

.blog2-section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.blog2-section:last-of-type { border-bottom: none; }
.blog2-section-tint { background: var(--cream); margin: 0 -20px; padding: 56px 20px; }
.blog2-eyebrow {
  font-family: var(--font-body); text-transform: uppercase; font-size: 12px;
  letter-spacing: 0.2em; font-weight: 700; color: var(--accent); margin: 0 0 8px;
}

.blog2-icon-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(63,124,181,0.1); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.blog2-icon-circle svg { width: 22px; height: 22px; }

/* Quick-answer chip grid */
.blog2-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.blog2-chip {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px; font-weight: 600; color: var(--navy-deep);
  display: flex; align-items: center; gap: 10px;
}
.blog2-chip::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: 0 0 auto;
}

/* How-to-choose 4-card grid */
.blog2-choose-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.blog2-choose-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
}
.blog2-choose-num {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-display); font-size: 32px; font-weight: 700;
  color: rgba(63,124,181,0.18);
}
.blog2-choose-card h4 { color: var(--navy-deep); margin-bottom: 8px; }
.blog2-choose-card p { font-size: 14px; margin: 0; }

/* Specialist match-up */
.blog2-specialist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.blog2-specialist-card {
  background: var(--white);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 4px;
}
.blog2-specialist-card strong { color: var(--navy-deep); font-size: 14px; }
.blog2-specialist-card span { color: var(--muted); font-size: 13px; }

/* When-to-visit checklist */
.blog2-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.blog2-check-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink); font-weight: 500;
}
.blog2-check-item svg {
  width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto;
}

/* Treatment deep-dive cards */
.blog2-treatment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.blog2-treatment-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
  transition: transform 0.3s ease;
}
.blog2-treatment-card:hover { transform: translateY(-4px); }
.blog2-treatment-card h4 { color: var(--navy-deep); margin-bottom: 8px; }
.blog2-treatment-card p { font-size: 14px; margin: 0; }

/* First-visit stepper */
.blog2-steps { margin-top: 26px; }
.blog2-step {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px dashed var(--line);
}
.blog2-step:last-child { border-bottom: none; }
.blog2-step-num {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
}
.blog2-step-content h4 { color: var(--navy-deep); font-size: 16px; margin-bottom: 4px; }
.blog2-step-content p { font-size: 14px; margin: 0; }

/* Cost CTA card */
.blog2-cost-card {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 46px 40px;
  text-align: center;
  margin: 48px 0;
}
.blog2-cost-card h3 { color: #fff; margin-bottom: 10px; }
.blog2-cost-card p { color: rgba(255,255,255,0.78); max-width: 56ch; margin: 0 auto 24px; }

/* FAQ accordion */
.blog2-faq { border-top: 1px solid var(--line); margin-top: 24px; }
.blog2-faq-item { border-bottom: 1px solid var(--line); }
.blog2-faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 2px;
  font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--navy-deep);
}
.blog2-faq-item summary::-webkit-details-marker { display: none; }
.blog2-faq-item summary::after {
  content: "+"; font-size: 24px; font-weight: 400; color: var(--accent);
  flex: 0 0 auto; transition: transform 0.25s ease;
}
.blog2-faq-item[open] summary::after { transform: rotate(45deg); }
.blog2-faq-item p { padding: 0 2px 22px; margin: 0; font-size: 14px; color: var(--muted); max-width: 70ch; }

@media (max-width: 760px) {
  .blog2-hero-inner { padding: 46px 0 60px; }
  .blog2-choose-grid,
  .blog2-treatment-grid,
  .blog2-check-grid { grid-template-columns: 1fr; }
  .blog2-section-tint { margin: 0 -20px; padding: 40px 20px; }
  .blog2-cost-card { padding: 34px 24px; }
}

/* ============================================================
   BLOG ARTICLE REDESIGN (blog-best-dental-clinic-gajuwaka.html)
   Card/grid based layout — replaces cramped unstyled lists.
   ============================================================ */

.blog2-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(760px 420px at 18% -10%, rgba(111,164,212,0.28), transparent 60%),
    radial-gradient(620px 420px at 88% 110%, rgba(63,124,181,0.22), transparent 55%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
}
.blog2-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}
.blog2-hero-inner {
  position: relative; z-index: 1;
  width: 90%; max-width: 860px; margin: 0 auto;
  text-align: center;
  padding: 60px 0 84px;
}
.blog2-hero-inner .eyebrow { justify-content: center; display: flex; }
.blog2-hero-inner h1 { color: #fff; }
.blog2-hero-sub { color: rgba(255,255,255,0.8); font-size: 17px; max-width: 62ch; margin: 0 auto 20px; }
.blog2-breadcrumb {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,0.55); margin-bottom: 18px;
}
.blog2-breadcrumb a { color: rgba(255,255,255,0.75); }
.blog2-breadcrumb a:hover { color: var(--accent-light); }
.blog2-hero-meta {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  margin-top: 8px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.75);
}
.blog2-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.blog2-hero-meta svg { width: 15px; height: 15px; color: var(--accent-light); }

.blog2-section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.blog2-section:last-of-type { border-bottom: none; }
.blog2-section-tint {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 56px 40px;
  margin: 40px 0;
  border: 1px solid var(--line);
}
.blog2-eyebrow {
  font-family: var(--font-body); text-transform: uppercase; font-size: 12px;
  letter-spacing: 0.2em; font-weight: 700; color: var(--accent); margin: 0 0 8px;
}

.blog2-icon-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(63,124,181,0.1); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.blog2-icon-circle svg { width: 22px; height: 22px; }

/* Quick-answer chip grid */
.blog2-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.blog2-chip {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px; font-weight: 600; color: var(--navy-deep);
  display: flex; align-items: center; gap: 10px;
}
.blog2-chip::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex: 0 0 auto;
}

/* How-to-choose 4-card grid */
.blog2-choose-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.blog2-choose-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
}
.blog2-choose-num {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-display); font-size: 32px; font-weight: 700;
  color: rgba(63,124,181,0.18);
}
.blog2-choose-card h4 { color: var(--navy-deep); margin-bottom: 8px; }
.blog2-choose-card p { font-size: 14px; margin: 0; }

/* Specialist match-up */
.blog2-specialist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.blog2-specialist-card {
  background: var(--white);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 4px;
}
.blog2-specialist-card strong { color: var(--navy-deep); font-size: 14px; }
.blog2-specialist-card span { color: var(--muted); font-size: 13px; }

/* When-to-visit checklist */
.blog2-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.blog2-check-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink); font-weight: 500;
}
.blog2-check-item svg {
  width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto;
}

/* Treatment deep-dive cards */
.blog2-treatment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.blog2-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}
.blog2-treatment-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
  transition: transform 0.3s ease;
}
.blog2-treatment-card:hover { transform: translateY(-4px); }
.blog2-treatment-card h4 { color: var(--navy-deep); margin-bottom: 8px; }
.blog2-treatment-card p { font-size: 14px; margin: 0; }

/* First-visit stepper */
.blog2-steps { margin-top: 26px; }
.blog2-step {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 0; border-bottom: 1px dashed var(--line);
}
.blog2-step:last-child { border-bottom: none; }
.blog2-step-num {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
}
.blog2-step-content h4 { color: var(--navy-deep); font-size: 16px; margin-bottom: 4px; }
.blog2-step-content p { font-size: 14px; margin: 0; }

/* Cost CTA card */
.blog2-cost-card {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 46px 40px;
  text-align: center;
  margin: 48px 0;
}
.blog2-cost-card h3 { color: #fff; margin-bottom: 10px; }
.blog2-cost-card p { color: rgba(255,255,255,0.78); max-width: 56ch; margin: 0 auto 24px; }

/* FAQ accordion */
.blog2-faq { border-top: 1px solid var(--line); margin-top: 24px; }
.blog2-faq-item { border-bottom: 1px solid var(--line); }
.blog2-faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 2px;
  font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--navy-deep);
}
.blog2-faq-item summary::-webkit-details-marker { display: none; }
.blog2-faq-item summary::after {
  content: "+"; font-size: 24px; font-weight: 400; color: var(--accent);
  flex: 0 0 auto; transition: transform 0.25s ease;
}
.blog2-faq-item[open] summary::after { transform: rotate(45deg); }
.blog2-faq-item p { padding: 0 2px 22px; margin: 0; font-size: 14px; color: var(--muted); max-width: 70ch; }

@media (max-width: 760px) {
  .blog2-hero-inner { padding: 46px 0 60px; }
  .blog2-choose-grid,
  .blog2-treatment-grid,
  .blog2-check-grid { grid-template-columns: 1fr; }
  .blog2-section-tint { padding: 34px 22px; margin: 28px 0; }
  .blog2-cost-card { padding: 34px 24px; }
}

/* ============================================================
   DENTAL IMPLANTS PAGE (blog-dental-implants.html)
   Distinct from the blog2-* card-grid system used on the
   Gajuwaka clinic guide. This page is built around a single
   procedure told as a journey: a split hero, an "anatomy of
   an implant" explainer, and a vertical timeline for the
   actual treatment steps (a genuine sequence, unlike the
   choose-a-clinic cards on the other post).
   ============================================================ */

/* ---------- Hero: asymmetric split, doctor photo bleeds off the card ---------- */
.imp-hero {
  background: var(--cream);
  padding: 64px 0 0;
  overflow: hidden;
}
.imp-hero-grid {
  width: 90%; max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0 56px;
  align-items: center;
}
.imp-breadcrumb {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted); margin-bottom: 22px;
}
.imp-breadcrumb a { color: var(--muted); }
.imp-breadcrumb a:hover { color: var(--accent); }
.imp-hero-copy h1 {
  color: var(--navy-deep);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  max-width: 14ch;
  margin: 0 0 18px;
}
.imp-hero-lede {
  font-size: 17px; line-height: 1.6; color: var(--ink);
  max-width: 46ch; margin: 0 0 28px;
}
.imp-hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 40px; }
.imp-hero-facts {
  display: grid; grid-template-columns: repeat(3, auto);
  gap: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.imp-hero-fact strong {
  display: block; font-family: var(--font-display); font-size: 15px;
  color: var(--navy-deep); margin-bottom: 3px;
}
.imp-hero-fact span { font-size: 12.5px; color: var(--muted); }

.imp-hero-photo {
  position: relative;
  align-self: end;
}
.imp-hero-photo img {
  width: 100%; height: 480px; object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
}
.imp-hero-photo-caption {
  background: var(--navy-deep);
  color: #fff;
  padding: 18px 24px;
  border-radius: 0 0 var(--radius) var(--radius);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.imp-hero-photo-caption strong { font-family: var(--font-display); font-size: 15px; display: block; }
.imp-hero-photo-caption span { font-size: 12.5px; color: rgba(255,255,255,0.7); }

@media (max-width: 900px) {
  .imp-hero-grid { grid-template-columns: 1fr; }
  .imp-hero-photo { margin-top: 34px; }
  .imp-hero-photo img { height: 320px; }
  .imp-hero-facts { grid-template-columns: 1fr 1fr; }
}

/* ---------- Shared section rhythm ---------- */
.imp-section { padding: 64px 0; }
.imp-section-inner { width: 90%; max-width: 860px; margin: 0 auto; }
.imp-section-wide .imp-section-inner { max-width: 1080px; }
.imp-kicker {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 700;
  color: var(--accent); margin: 0 0 8px;
}
.imp-section h2 { color: var(--navy-deep); max-width: 24ch; }
.imp-section-lede { color: var(--muted); max-width: 65ch; font-size: 15.5px; }

/* ---------- Candidacy chips (who it's for) ---------- */
.imp-candidacy-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px; margin-top: 26px;
}
.imp-candidacy-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.imp-candidacy-item svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.imp-candidacy-item p { margin: 0; font-size: 14.5px; color: var(--ink); }
.imp-candidacy-item strong { display: block; color: var(--navy-deep); font-size: 14.5px; margin-bottom: 2px; }
@media (max-width: 700px) { .imp-candidacy-list { grid-template-columns: 1fr; } }

/* ---------- Anatomy explainer: exploded "post + abutment + crown" row ---------- */
.imp-anatomy {
  background: var(--navy-deep);
  color: #fff;
}
.imp-anatomy .imp-kicker { color: var(--accent-light); }
.imp-anatomy h2 { color: #fff; }
.imp-anatomy .imp-section-lede { color: rgba(255,255,255,0.68); }

.imp-anatomy-row {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; flex-wrap: wrap;
  margin-top: 40px;
}
.imp-anatomy-part {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 26px 22px;
  width: 220px;
  text-align: left;
}
.imp-anatomy-part .part-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.imp-anatomy-part .part-icon svg { width: 19px; height: 19px; }
.imp-anatomy-part h4 { color: #fff; font-size: 15.5px; margin: 0 0 6px; }
.imp-anatomy-part p { font-size: 13.5px; color: rgba(255,255,255,0.65); margin: 0; }
.imp-anatomy-plus {
  font-family: var(--font-display); font-size: 26px; color: rgba(255,255,255,0.35);
  flex: 0 0 auto;
}
@media (max-width: 760px) {
  .imp-anatomy-row { flex-direction: column; }
  .imp-anatomy-plus { transform: rotate(90deg); }
  .imp-anatomy-part { width: 100%; max-width: 320px; }
}

/* ---------- Treatment timeline: genuine sequence, vertical line ---------- */
.imp-timeline { margin-top: 44px; position: relative; }
.imp-timeline::before {
  content: "";
  position: absolute; left: 21px; top: 6px; bottom: 6px;
  width: 1px; background: var(--line);
}
.imp-timestep {
  position: relative;
  display: flex; gap: 24px;
  padding-bottom: 40px;
}
.imp-timestep:last-child { padding-bottom: 0; }
.imp-timestep-num {
  position: relative; z-index: 1;
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--accent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
}
.imp-timestep-body h3 { color: var(--navy-deep); font-size: 17px; margin: 6px 0 6px; }
.imp-timestep-body p { font-size: 14.5px; color: var(--muted); margin: 0; max-width: 56ch; }
.imp-timestep-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--accent);
}

/* ---------- Doctor credibility panel ---------- */
.imp-doctor {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 42px 40px;
  display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center;
}
.imp-doctor img {
  width: 108px; height: 108px; border-radius: 50%; object-fit: cover;
}
.imp-doctor h3 { color: var(--navy-deep); margin: 0 0 6px; font-size: 18px; }
.imp-doctor p { margin: 0; font-size: 14.5px; color: var(--muted); max-width: 62ch; }
@media (max-width: 600px) {
  .imp-doctor { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
  .imp-doctor img { margin: 0 auto; }
}

/* ---------- FAQ (reuses accordion pattern, own namespace) ---------- */
.imp-faq { border-top: 1px solid var(--line); margin-top: 24px; }
.imp-faq-item { border-bottom: 1px solid var(--line); }
.imp-faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 2px;
  font-family: var(--font-display); font-size: 16.5px; font-weight: 600; color: var(--navy-deep);
}
.imp-faq-item summary::-webkit-details-marker { display: none; }
.imp-faq-item summary::after {
  content: "+"; font-size: 24px; font-weight: 400; color: var(--accent);
  flex: 0 0 auto; transition: transform 0.25s ease;
}
.imp-faq-item[open] summary::after { transform: rotate(45deg); }
.imp-faq-item p { padding: 0 2px 22px; margin: 0; font-size: 14px; color: var(--muted); max-width: 68ch; }

/* ---------- Cost / CTA band ---------- */
.imp-cta-band {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff; text-align: center;
  border-radius: var(--radius);
  padding: 48px 40px;
}
.imp-cta-band h3 { color: #fff; margin-bottom: 10px; }
.imp-cta-band p { color: rgba(255,255,255,0.78); max-width: 56ch; margin: 0 auto 24px; }

/* ---------- Related reading ---------- */
.imp-related { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.imp-related a {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; color: var(--navy-deep);
}
.imp-related a span { display: block; font-size: 12px; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.imp-related a strong { font-family: var(--font-display); font-size: 15.5px; font-weight: 600; }
@media (max-width: 620px) { .imp-related { grid-template-columns: 1fr; } }


/* ============================================================
   9 TIPS FOR LIVING WITH INVISALIGN (blog-9-tips-invisalign.html)
   Editorial/magazine listicle layout: large faded serif numerals
   carry the "9 tips" structure instead of icon cards (blog2-*)
   or a vertical timeline (imp-*). A horizontal tip index at the
   top gives quick-jump navigation and doubles as a scannable
   answer block for AEO.
   Page container: 90% width throughout.
   ============================================================ */

/* ---------- Masthead ---------- */
.inv-masthead {
  background: var(--cream);
  padding: 56px 0 0;
}
.inv-masthead-inner {
  width: 90%; max-width: none; margin: 0 auto;
  text-align: center;
}
.inv-breadcrumb {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted); margin-bottom: 22px;
}
.inv-breadcrumb a { color: var(--muted); }
.inv-breadcrumb a:hover { color: var(--accent); }
.inv-masthead h1 {
  color: var(--navy-deep);
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.12;
  margin: 0 0 16px;
}
.inv-masthead-meta {
  display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted); margin-bottom: 36px;
}
.inv-masthead-meta span { display: inline-flex; align-items: center; gap: 6px; }
.inv-masthead-meta svg { width: 14px; height: 14px; color: var(--accent); }

.inv-masthead-photo { width: 90%; max-width: none; margin: 0 auto; padding-bottom: 0; }
.inv-masthead-photo img {
  width: 100%; height: 340px; object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
}
@media (max-width: 700px) { .inv-masthead-photo img { height: 220px; } }

/* ---------- Intro ---------- */
.inv-section { padding: 56px 0; }
.inv-section-inner { width: 90%; max-width: none; margin: 0 auto; }
.inv-kicker { font-size: 12.5px; font-weight: 700; color: var(--accent); margin: 0 0 8px; }
.inv-section h2 { color: var(--navy-deep); }
.inv-lede { color: var(--ink); font-size: 16px; line-height: 1.65; }

/* ---------- Tip index: horizontal quick-jump strip ---------- */
.inv-index-wrap { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.inv-index {
  width: 90%; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 20px 0;
}
.inv-index a {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px 8px 10px;
  font-size: 13px; font-weight: 600; color: var(--navy-deep);
  white-space: nowrap;
}
.inv-index a span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
}

/* ---------- Tips: magazine numeral list ---------- */
.inv-tips { border-top: 1px solid var(--line); }
.inv-tip {
  display: grid; grid-template-columns: 110px 1fr;
  gap: 8px 30px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.inv-tip-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 64px; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  align-self: start;
}
.inv-tip h3 { color: var(--navy-deep); font-size: 19px; margin: 6px 0 8px; }
.inv-tip p { color: var(--ink); font-size: 15px; line-height: 1.6; margin: 0; max-width: none; }
@media (max-width: 620px) {
  .inv-tip { grid-template-columns: 1fr; }
  .inv-tip-num { font-size: 44px; }
}

/* ---------- FAQ ---------- */
.inv-faq { border-top: 1px solid var(--line); margin-top: 24px; }
.inv-faq-item { border-bottom: 1px solid var(--line); }
.inv-faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 2px;
  font-family: var(--font-display); font-size: 16.5px; font-weight: 600; color: var(--navy-deep);
}
.inv-faq-item summary::-webkit-details-marker { display: none; }
.inv-faq-item summary::after {
  content: "+"; font-size: 24px; font-weight: 400; color: var(--accent);
  flex: 0 0 auto; transition: transform 0.25s ease;
}
.inv-faq-item[open] summary::after { transform: rotate(45deg); }
.inv-faq-item p { padding: 0 2px 22px; margin: 0; font-size: 14px; color: var(--muted); max-width: none; }

/* ---------- CTA band ---------- */
.inv-cta-band {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: #fff; text-align: center;
  border-radius: var(--radius);
  padding: 48px 40px;
}
.inv-cta-band h3 { color: #fff; margin-bottom: 10px; }
.inv-cta-band p { color: rgba(255,255,255,0.78); max-width: none; margin: 0 auto 24px; }

/* ---------- Related reading ---------- */
.inv-related { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.inv-related a {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; color: var(--navy-deep);
}
.inv-related a span { display: block; font-size: 12px; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.inv-related a strong { font-family: var(--font-display); font-size: 15.5px; font-weight: 600; }
@media (max-width: 620px) { .inv-related { grid-template-columns: 1fr; } }

/* ---------- Page-scoped container override ----------
   .blog-article-container is shared with other blog pages,
   so it's scoped to this page only via the body class. */
.page-invisalign .blog-article-container {
  width: 100%;
  max-width: none;
}
.page-invisalign .comment-section,
.page-invisalign .post-navigation {
  width: 90%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}