/* ============================================================
   Dr. Anita Paul — Design 2 (OptiCO-style, Green + Teal)
   ============================================================ */
:root {
    --primary: #2f9e54;        /* brand green */
    --primary-dark: #1f5d3a;
    --primary-light: #e9f5ec;
    --teal: #15a8a8;           /* teal accent */
    --teal-dark: #0d7d7d;
    --teal-light: #e2f6f6;
    --dark: #123b2c;
    --ink: #16243a;
    --body: #2f3e37;          /* darker body text — higher contrast on light green/blue backgrounds */
    --bg-soft: #f2f9f4;
    --shadow: 0 16px 44px rgba(18, 59, 44, .12);
    --shadow-sm: 0 8px 22px rgba(18, 59, 44, .08);
    --radius: 16px;
}

* { scroll-behavior: smooth; }
html { font-size: 112.5%; scroll-padding-top: 90px; } /* 16px -> 18px base for readability (whole site scales via rem) */
body { font-family: 'Inter', sans-serif; color: var(--body); line-height: 1.7; overflow-x: hidden; overflow-wrap: break-word; word-wrap: break-word; }
h1, h2, h3, h4, h5, h6, .navbar-brand { font-family: 'Poppins', sans-serif; color: var(--ink); font-weight: 700; }
a { text-decoration: none; transition: all .25s ease; }
img { max-width: 100%; }
.row > * { min-width: 0; } /* let flex grid columns shrink so long words/headings never overflow on mobile */
.d2-soft { background: var(--bg-soft); }

/* Buttons */
.btn { font-weight: 600; border-radius: 8px; padding: .7rem 1.7rem; transition: all .25s ease; }
.btn-lg { padding: .9rem 2.1rem; }
.btn-teal { background: var(--teal); border: 2px solid var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; transform: translateY(-3px); box-shadow: 0 12px 26px rgba(21,168,168,.35); }
.btn-green { background: var(--primary); border: 2px solid var(--primary); color: #fff; }
.btn-green:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-3px); box-shadow: 0 12px 26px rgba(47,158,84,.35); }
.btn-ghost { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); transform: translateY(-3px); }
.btn-ghost-dark { background: transparent; border: 2px solid #dfe7e2; color: var(--ink); }
.btn-ghost-dark:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-3px); }

/* Section helpers */
.d2-section { padding: 5.5rem 0; position: relative; }
.d2-eyebrow { display: inline-block; color: var(--teal); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: .8rem; margin-bottom: .7rem; }
.d2-title { font-size: 2.4rem; line-height: 1.18; margin-bottom: .9rem; }
.d2-head { max-width: 660px; margin: 0 auto 3rem; }

/* ---------- Topbar ---------- */
.d2-topbar { background: var(--dark); color: #cfe6d8; font-size: .85rem; padding: .55rem 0; }
.d2-topbar a { color: #cfe6d8; }
.d2-topbar a:hover { color: #fff; }
.d2-topbar .sep { opacity: .4; margin: 0 1rem; }
.d2-topbar .social a { margin-left: 1rem; }

/* ---------- Navbar ---------- */
.d2-nav { background: #fff; box-shadow: var(--shadow-sm); padding: .7rem 0; transition: all .3s ease; }
.d2-nav.scrolled { padding: .45rem 0; }
.d2-nav .navbar-brand img { height: 50px; transition: height .3s ease; }
.d2-nav.scrolled .navbar-brand img { height: 42px; }
.d2-nav .nav-link { color: var(--ink); font-weight: 600; margin: 0 .5rem; font-size: .98rem; position: relative; }
.d2-nav .nav-link:hover, .d2-nav .nav-link.active { color: var(--teal); }
.d2-nav .nav-link::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--teal); transition: width .25s ease; }
.d2-nav .nav-link:hover::after, .d2-nav .nav-link.active::after { width: 100%; }

/* ---------- Hero ---------- */
.d2-hero { position: relative; background: linear-gradient(135deg, #eef7f1 0%, #e2f6f6 100%); overflow: hidden; padding: 4.5rem 0; }
.d2-hero::before { content: ''; position: absolute; top: -140px; right: 8%; width: 480px; height: 480px; background: radial-gradient(circle, rgba(21,168,168,.14), transparent 68%); border-radius: 50%; }
.d2-hero-circle { position: absolute; top: 12%; right: 6%; width: 360px; height: 360px; background: linear-gradient(140deg, var(--teal), var(--primary)); border-radius: 50%; z-index: 1; opacity: .92; }
.d2-hero-inner { position: relative; z-index: 2; }
.d2-hero h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 1.2rem; font-weight: 600; }
.d2-hero h1 .hl { color: var(--teal); }
.d2-hero .lead { font-size: 1.12rem; max-width: 500px; margin-bottom: 1.8rem; }
.d2-hero-btns { display: flex; flex-wrap: wrap; gap: .9rem; }
.d2-hero-img-wrap { position: relative; z-index: 2; text-align: center; }
.d2-hero-img { max-width: 100%; position: relative; z-index: 2; filter: drop-shadow(0 26px 40px rgba(18,59,44,.22)); height: auto;}
.d2-hero-tag { position: absolute; z-index: 3; background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: .8rem 1rem; display: flex; align-items: center; gap: .7rem; }
.d2-hero-tag i { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--teal); font-size: 1.1rem; }
.d2-hero-tag strong { display: block; font-family: 'Poppins'; color: var(--ink); font-size: .95rem; line-height: 1.1; }
.d2-hero-tag small { color: var(--body); font-size: .78rem; }
.d2-hero-tag.t1 { top: 16%; left: -10px; animation: d2float 4s ease-in-out infinite; }
.d2-hero-tag.t2 { bottom: 12%; right: 0; animation: d2float 4s ease-in-out 1.6s infinite; }
@keyframes d2float { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-12px);} }

/* Hero with a photo background */
.d2-hero--photo { background: linear-gradient(120deg, rgba(11,40,29,.86) 0%, rgba(11,40,29,.62) 55%, rgba(11,40,29,.42) 100%), var(--hero-bg) center/cover no-repeat; }
.d2-hero--photo::before { display: none; }
.d2-hero--photo .d2-eyebrow { color: #6fd6d6; }
.d2-hero--photo h1, .d2-hero--photo .lead { color: #fff; }
.d2-hero--photo .lead { color: rgba(255,255,255,.92); }
.d2-hero--photo .btn-ghost-dark { color: #fff; border-color: rgba(255,255,255,.55); }
.d2-hero--photo .btn-ghost-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Specialists (circular cards) ---------- */
.d2-spec { text-align: center; padding: 1rem .5rem; }
.d2-spec-circle { width: 150px; height: 150px; margin: 0 auto 1.2rem; border-radius: 50%; padding: 8px; border: 2px dashed var(--teal); position: relative; transition: transform .4s ease; }
.d2-spec:hover .d2-spec-circle { transform: translateY(-8px); }
.d2-spec-circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.d2-spec-icon { position: absolute; bottom: 0; right: 6px; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; border: 3px solid #fff; }
.d2-spec h5 { font-size: 1.12rem; margin-bottom: .5rem; }
.d2-spec p { font-size: .92rem; margin-bottom: .7rem; }
.d2-spec a { color: var(--teal); font-weight: 600; font-size: .9rem; }

/* ---------- Why (dark) ---------- */
.d2-why { background: var(--dark); color: #cfe6d8; position: relative; overflow: hidden; }
.d2-why .d2-eyebrow { color: #6fd6d6; }
.d2-why h2 { color: #fff; }
.d2-why h2 .hl { color: #6fd6d6; }
.d2-why-list { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.d2-why-list li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 500; color: #e4f1ea; }
.d2-why-list i { color: #6fd6d6; margin-top: 4px; }
.d2-why-list li div { display: flex; flex-direction: column; gap: .15rem; }
.d2-why-list strong { color: #fff; font-weight: 600; }
.d2-why-desc { font-weight: 400; font-size: .85rem; color: #bcd6c8; line-height: 1.55; }
.d2-why-desc a { color: #6fd6d6; text-decoration: underline; white-space: nowrap; }
.d2-why-note { margin: 1rem 0 0; font-size: .78rem; font-style: italic; color: #9fbfae; }
.d2-why-img-wrap { position: relative; }
.d2-why-img { width: 100%; border-radius: var(--radius); height:auto;}
.d2-why-badge { position: absolute; top: -18px; right: -10px; width: 110px; height: 110px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; text-align: center; font-family: 'Poppins'; font-weight: 600; font-size: .8rem; line-height: 1.2; box-shadow: var(--shadow); }
@keyframes d2spin { to { transform: rotate(360deg); } }
.d2-sign { font-family: 'Poppins'; font-style: italic; color: #fff; font-size: 1.3rem; }
.d2-sign-name { font-size: .85rem; color: #9fc2b1; }

/* ---------- Stats bar ---------- */
.d2-stats { background: linear-gradient(120deg, var(--teal) 0%, var(--primary) 100%); padding: 2.6rem 0; }
.d2-stat { text-align: center; color: #fff; }
.d2-stat i { font-size: 1.7rem; opacity: .85; margin-bottom: .5rem; }
.d2-stat-num { font-family: 'Poppins'; font-size: 2.4rem; font-weight: 700; line-height: 1; }
.d2-stat-label { font-size: .92rem; opacity: .9; margin-top: .3rem; }

/* ---------- Services tabs ---------- */
.d2-tabs { display: flex; flex-wrap: nowrap; gap: .8rem; overflow-x: auto; width: fit-content; max-width: 100%; margin: 0 auto 2.4rem; padding-bottom: .5rem; scroll-snap-type: x proximity; scrollbar-width: none; -ms-overflow-style: none; }
.d2-tabs::-webkit-scrollbar { display: none; height: 0; }
.d2-tab { flex: 0 0 auto; scroll-snap-align: center; background: #fff; border: 1px solid #e4eee8; border-radius: 12px; padding: 1.2rem 1rem; min-width: 150px; cursor: pointer; text-align: center; transition: all .3s ease; box-shadow: var(--shadow-sm); position: relative; }
.d2-tab i { font-size: 1.6rem; color: var(--teal); display: block; margin-bottom: .5rem; transition: color .3s; }
.d2-tab span { font-family: 'Poppins'; font-weight: 600; font-size: .92rem; color: var(--ink); transition: color .3s; }
.d2-tab:hover { transform: translateY(-4px); }
.d2-tab.active { background: var(--teal); border-color: var(--teal); }
.d2-tab.active i, .d2-tab.active span { color: #fff; }
.d2-tab.active::after { content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 16px; height: 16px; background: var(--teal); }
.d2-panel { display: none; animation: d2fade .5s ease; }
.d2-panel.active { display: block; }
@keyframes d2fade { from { opacity: 0; transform: translateY(14px);} to { opacity: 1; transform: none;} }
.d2-panel h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.d2-panel-points { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; }
.d2-panel-points li { display: flex; gap: .7rem; align-items: center; font-weight: 600; color: var(--ink); margin-bottom: .7rem; }
.d2-panel-points i { width: 24px; height: 24px; min-width: 24px; border-radius: 50%; background: var(--teal-light); color: var(--teal); display: grid; place-items: center; font-size: .72rem; }
.d2-panel-img { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.d2-panel-img img { width: 100%; height: 360px; object-fit: cover; display: block; transition: transform .6s; }
.d2-panel-img:hover img { transform: scale(1.05); }

/* ---------- Partners ---------- */
.d2-partners { padding: 2.5rem 0; border-bottom: 1px solid #eef3f0; overflow: hidden; }
.d2-partner { display: flex; align-items: center; justify-content: center; gap: .5rem; color: #9bb0a6; font-family: 'Poppins'; font-weight: 700; font-size: 1.2rem; opacity: .8; transition: color .3s, opacity .3s; }
.d2-partner i { font-size: 1.4rem; }
.d2-partner:hover { color: var(--teal); opacity: 1; }

/* Infinite auto marquee (continuous, never stops) */
.d2-marquee { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.d2-marquee-track { display: flex; flex-wrap: nowrap; width: max-content; animation: d2-marquee 28s linear infinite; }
.d2-marquee-track .d2-partner { flex: 0 0 auto; padding: 0 3rem; white-space: nowrap; }
@keyframes d2-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Note: marquee intentionally runs even with prefers-reduced-motion (client requested
   a continuous auto-slider). It is a decorative, non-essential loop. */

/* ---------- Gallery strip ---------- */
.d2-gallery-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; }
.d2-gal { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1/1; cursor: pointer; }
.d2-gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.d2-gal::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(21,168,168,.55), transparent 60%); opacity: 0; transition: opacity .3s; }
.d2-gal:hover img { transform: scale(1.1); }
.d2-gal:hover::after { opacity: 1; }
.d2-gal i { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--teal); display: grid; place-items: center; opacity: 0; transform: scale(.5); transition: all .3s; z-index: 2; }
.d2-gal:hover i { opacity: 1; transform: scale(1); }
/* Gallery marquee slides */
.d2-marquee.pausable:hover .d2-marquee-track { animation-play-state: paused; }
.d2-marquee-track .d2-gal-slide { flex: 0 0 auto; width: 300px; height: 300px; aspect-ratio: auto; margin: 0 .5rem; }
@media (max-width: 575px) { .d2-marquee-track .d2-gal-slide { width: 230px; height: 230px; } }

/* ---------- Testimonials + quote ---------- */
.d2-testi-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 2.4rem; position: relative; }
.d2-quote-mark { position: absolute; top: 1.4rem; right: 1.8rem; font-size: 3rem; color: var(--teal-light); }
.d2-testi-stars { color: #f5a623; margin-bottom: 1rem; }
.d2-testi-text { font-size: 1.05rem; color: var(--ink); font-style: italic; margin-bottom: 1.6rem; }
.d2-testi-slide { display: none; animation: d2fade .5s ease; }
.d2-testi-slide.active { display: block; }
.d2-testi-author { display: flex; align-items: center; gap: 1rem; }
.d2-testi-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-family: 'Poppins'; font-weight: 700; font-size: 1.3rem; }
.d2-testi-author strong { display: block; font-family: 'Poppins'; color: var(--ink); }
.d2-testi-author span { font-size: .88rem; color: var(--teal); font-weight: 600; }
.d2-testi-dots { display: flex; gap: .5rem; margin-top: 1.5rem; }
.d2-testi-dots button { width: 11px; height: 11px; border-radius: 50%; border: none; background: #d6e3db; cursor: pointer; padding: 0; transition: all .3s; }
.d2-testi-dots button.active { background: var(--teal); width: 28px; border-radius: 6px; }
.d2-quote-box { background: var(--dark); border-radius: var(--radius); padding: 2.4rem; color: #cfe6d8; }
.d2-quote-box h4 { color: #fff; margin-bottom: 1.2rem; }
.d2-quote-box .form-control { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; border-radius: 8px; padding: .7rem .9rem; margin-bottom: .9rem; }
.d2-quote-box .form-control::placeholder { color: #9fc2b1; }
.d2-quote-box .form-control:focus { background: rgba(255,255,255,.12); border-color: var(--teal); box-shadow: none; color: #fff; }

/* ---------- Emergency CTA ---------- */
.d2-emergency { background: var(--ink); color: #fff; text-align: center; padding: 3.2rem 0; position: relative; overflow: hidden; }
.d2-emergency::before { content: '\f095'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 6%; top: 50%; transform: translateY(-50%); font-size: 7rem; opacity: .06; }
.d2-emergency h3 { color: #fff; font-size: 1.5rem; font-weight: 600; margin-bottom: .6rem; }
.d2-emergency .num { font-family: 'Poppins'; font-size: 2.6rem; font-weight: 700; color: #6fd6d6; }
.d2-emergency .num:hover { color: #fff; }

/* ---------- Blog ---------- */
.d2-blog-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); height: 100%; transition: all .3s ease; }
.d2-blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.d2-blog-img { display: block; position: relative; height: 210px; overflow: hidden; }
.d2-blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.d2-blog-card:hover .d2-blog-img img { transform: scale(1.08); }
.d2-blog-cat { position: absolute; top: 1rem; left: 1rem; background: var(--teal); color: #fff; font-size: .75rem; font-weight: 600; padding: .3rem .8rem; border-radius: 50px; }
.d2-blog-body { padding: 1.6rem; }
.d2-blog-date { font-size: .82rem; color: var(--teal); font-weight: 600; margin-bottom: .5rem; }
.d2-blog-body h5 { font-size: 1.15rem; line-height: 1.35; margin-bottom: .7rem; }
.d2-blog-body h5 a { color: var(--ink); }
.d2-blog-body h5 a:hover { color: var(--teal); }
.d2-blog-body p { font-size: .92rem; margin-bottom: 1rem; }
.d2-read { color: var(--teal); font-weight: 600; font-size: .9rem; }

/* ---------- Bottom CTA bar ---------- */
.d2-ctabar-wrap { margin-bottom: -3.5rem; position: relative; z-index: 3; }
.d2-ctabar { background: linear-gradient(120deg, var(--teal) 0%, var(--primary) 100%); border-radius: 20px; padding: 2.2rem 2.6rem; color: #fff; box-shadow: var(--shadow); }
.d2-ctabar h4 { color: #fff; margin: 0; font-size: 1.3rem; }
.d2-ctabar .ic { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 1.4rem; }

/* ---------- Footer ---------- */
.d2-footer { background: #0e2d22; color: #9fbcae; padding: 6rem 0 1.6rem; }
.d2-footer h6 { color: #fff; margin-bottom: 1.2rem; font-size: 1.05rem; }
.d2-footer-logo { height: 52px; filter: brightness(0) invert(1); margin-bottom: 1.2rem; }
.d2-footer ul { list-style: none; padding: 0; margin: 0; }
.d2-footer-links li { margin-bottom: .6rem; }
.d2-footer-links a { color: #9fbcae; font-size: .94rem; }
.d2-footer-links a:hover { color: var(--teal); padding-left: 5px; }
.d2-footer-contact li { display: flex; gap: .7rem; margin-bottom: .9rem; font-size: .94rem; }
.d2-footer-contact i { color: var(--teal); margin-top: 4px; }
.d2-footer-contact a { color: #9fbcae; }
.d2-footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.d2-footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; }
.d2-footer-social a:hover { background: var(--teal); transform: translateY(-3px); }
.d2-footer-divider { border-color: rgba(255,255,255,.1); margin: 2.4rem 0 1.4rem; }

/* Thank-you page */
.d2-thankyou { padding: 2.5rem 1rem; }
.d2-thankyou__icon { font-size: 4.5rem; color: var(--teal); line-height: 1; display: inline-block; animation: d2-pop .45s ease; }
@keyframes d2-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }

/* Doctify icon in social bars (logo image instead of FA glyph) */
.d2-doctify-ico img { width: 60%; height: 60%; object-fit: contain; }
.d2-topbar .social a.d2-doctify-ico { display: inline-grid; place-items: center; vertical-align: middle; }
.d2-topbar .social a.d2-doctify-ico img { width: 16px; height: 16px; }
.d2-footer-social a.d2-doctify-ico { background: #fff; }
.d2-footer-social a.d2-doctify-ico:hover { background: #fff; }
.d2-footer-social a.d2-doctify-ico img { width: 22px; height: 22px; }

/* Doctify trust badge */
.d2-doctify-badge { display: inline-flex; align-items: center; gap: .7rem; margin-top: 1.2rem; padding: .55rem .9rem; background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; max-width: 320px; }
.d2-doctify-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.12); }
.d2-doctify-badge__stars { color: #f5a623; font-size: .82rem; letter-spacing: 1px; flex-shrink: 0; }
.d2-doctify-badge__body { display: flex; flex-direction: column; line-height: 1.25; }
.d2-doctify-badge__top { font-size: .74rem; color: #64748b; display: flex; align-items: center; gap: .35rem; }
.d2-doctify-badge__top b { color: var(--ink); }
.d2-doctify-badge__logo { height: 18px; width: auto; object-fit: contain; }
.d2-doctify-badge__cta { font-size: .9rem; font-weight: 700; color: var(--teal); display: flex; align-items: center; gap: .3rem; }
.d2-doctify-badge__cta small { font-weight: 500; color: #94a3b8; }

/* Floating WhatsApp */
.d2-whatsapp { position: fixed; right: 22px; bottom: 22px; width: 56px; height: 56px; background: #25d366; color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 8px 24px rgba(37,211,102,.45); z-index: 999; }
.d2-whatsapp:hover { color: #fff; transform: scale(1.08); }

/* Lightbox */
.d2-lightbox { position: fixed; inset: 0; background: rgba(10,28,18,.93); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 2rem; }
.d2-lightbox.open { display: flex; }
.d2-lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 12px; }
.d2-lb-close { position: absolute; top: 1.2rem; right: 1.6rem; background: none; border: none; color: #fff; font-size: 2.6rem; cursor: pointer; z-index: 2; }
.d2-lb-prev, .d2-lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: none; background: rgba(255,255,255,.15); color: #fff; font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; transition: background .2s; z-index: 2; }
.d2-lb-prev:hover, .d2-lb-next:hover { background: var(--teal); }
.d2-lb-prev { left: 1.2rem; }
.d2-lb-next { right: 1.2rem; }
@media (max-width: 575px) { .d2-lb-prev { left: .4rem; } .d2-lb-next { right: .4rem; } .d2-lb-prev, .d2-lb-next { width: 40px; height: 40px; } }

/* Reveal animations */
.r-up, .r-left, .r-right { opacity: 0; transition: opacity .8s ease, transform .8s cubic-bezier(.22,.61,.36,1); transition-delay: var(--d, 0s); }
.r-up { transform: translateY(40px); }
.r-left { transform: translateX(-45px); }
.r-right { transform: translateX(45px); }
.r-up.in, .r-left.in, .r-right.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .r-up,.r-left,.r-right { opacity:1!important; transform:none!important; } }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .d2-hero { padding: 3rem 0; text-align: center; }
    .d2-hero h1 { font-size: 2.1rem; }
    .d2-hero .lead { margin: 0 auto 1.8rem; }
    .d2-hero-btns { justify-content: center; }
    .d2-hero-circle { display: none; }
    .d2-hero-img-wrap { margin-top: 2rem; }
    .d2-title { font-size: 1.8rem; }
    .d2-why-img-wrap { margin-bottom: 2.5rem; max-width: 460px; }
    .d2-gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .d2-nav .navbar-collapse { background: #fff; border-radius: 12px; padding: 1rem; margin-top: .6rem; box-shadow: var(--shadow); }
    .d2-nav .nav-link::after { display: none; }
}


/* ============================================================
   About page components
   ============================================================ */
/* Page banner */
.d2-banner { position: relative; background: linear-gradient(135deg, #eef7f1 0%, #e2f6f6 100%); padding: 4rem 0; overflow: hidden; text-align: center; }
.d2-banner-circle { position: absolute; top: -120px; right: -80px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(21,168,168,.14), transparent 68%); }
.d2-banner-inner { position: relative; z-index: 2; }
.d2-banner h1 { font-size: 2.8rem; margin-bottom: .6rem; }
.d2-banner p { color: var(--body); font-size: 1.05rem; }
.d2-crumb { margin-top: 1rem; font-size: .9rem; color: var(--body); }
.d2-crumb a { color: var(--teal); font-weight: 600; }
.d2-crumb i { margin: 0 .4rem; font-size: .75rem; opacity: .6; }
.d2-crumb span { color: var(--ink); font-weight: 600; }

/* Credential chips */
.d2-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.d2-chip { display: inline-flex; align-items: center; gap: .5rem; background: var(--primary-light); color: var(--primary-dark); font-weight: 600; font-size: .85rem; padding: .5rem .9rem; border-radius: 50px; }
.d2-chip i { color: var(--primary); }

/* Qualification cards */
.d2-qual { background: #fff; border: 1px solid #e8efe9; border-radius: var(--radius); padding: 1.4rem 1.2rem; text-align: center; height: 100%; min-width: 160px; transition: transform .3s, box-shadow .3s; }
.d2-qual:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.d2-qual-short { display: block; font-family: 'Poppins'; font-weight: 700; font-size: 1.5rem; color: var(--teal); }
.d2-qual-full { display: block; font-size: .8rem; color: var(--body); margin-top: .4rem; }

/* Expertise cards */
.d2-exp { background: #fff; border: 1px solid #e8efe9; border-radius: var(--radius); padding: 2rem 1.6rem; height: 100%; transition: transform .3s, box-shadow .3s; }
.d2-exp:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.d2-exp:hover .d2-exp-ic { background: var(--teal); color: #fff; }
.d2-exp-ic { width: 60px; height: 60px; border-radius: 16px; background: var(--teal-light); color: var(--teal); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1.2rem; transition: all .3s; }
.d2-exp h5 { font-size: 1.18rem; margin-bottom: .5rem; }
.d2-exp p { font-size: .92rem; margin: 0; }

/* Timeline */
.d2-timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 0; }
.d2-timeline::before { content: ''; position: absolute; top: 6px; bottom: 6px; left: 120px; width: 2px; background: rgba(111,214,214,.3); }
.d2-tl-item { position: relative; padding-left: 150px; padding-bottom: 2rem; }
.d2-tl-item:last-child { padding-bottom: 0; }
.d2-tl-dot { position: absolute; left: 113px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--teal); border: 3px solid var(--dark); }
.d2-tl-year { display: inline-block; position: absolute; left: 0; top: 2px; width: 100px; text-align: right; font-family: 'Poppins'; font-weight: 600; color: #6fd6d6; font-size: .85rem; }
.d2-tl-item h5 { color: #fff; font-size: 1.1rem; margin-bottom: .3rem; }
.d2-tl-item p { color: #cfe6d8; font-size: .92rem; margin: 0; }

/* Alternating (zig-zag) timeline — Training & Career */
/* Reviews — "read all" link */
.d2-reviews-all { display: inline-flex; align-items: center; font-weight: 600; color: var(--teal, #15a8a8); text-decoration: none; }
.d2-reviews-all:hover { text-decoration: underline; }

/* Care journeys — medical vs aesthetic */
.d2-journey { height: 100%; background: #fff; border: 1px solid #e6eef0; border-radius: 18px; padding: 2rem 1.8rem; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.d2-journey-icon { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; background: var(--teal, #15a8a8); color: #fff; font-size: 1.4rem; margin-bottom: 1rem; }
.d2-journey h3 { margin-bottom: .25rem; }
.d2-journey-tag { color: var(--body, #5b6b6b); margin-bottom: 1rem; }
.d2-journey-list { list-style: none; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .55rem 1.3rem; }
.d2-journey-list li { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.d2-journey-list i { color: var(--teal, #15a8a8); font-size: .85rem; }
.d2-journey-link { font-weight: 600; color: var(--teal, #15a8a8); text-decoration: none; }
.d2-journey-link:hover { text-decoration: underline; }

/* Private health insurance — logo grid */
.d2-insurers .d2-title { margin-bottom: 1rem; }
.d2-insurer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.d2-insurer { background: #eef2f7; border-radius: 14px; min-height: 96px; display: grid; place-items: center; padding: 1rem 1.4rem; }
.d2-insurer img { max-height: 46px; max-width: 80%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 575px) { .d2-insurer { min-height: 76px; } .d2-insurer img { max-height: 38px; } }

/* Doctify award badges (near the doctor's profile) */
.d2-awards-wrap { margin-top: 1.4rem; text-align: center; }
.d2-awards-label { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--teal, #15a8a8); margin-bottom: .6rem; }
.d2-awards { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; align-items: stretch; }
.d2-awards a { display: block; flex: 0 0 auto; width: 150px; max-width: 47%; transition: transform .2s ease; }
.d2-awards a:hover { transform: translateY(-3px); }
.d2-awards img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 8px 22px rgba(16,51,59,.18); }

/* About / bio — simple paragraph format */
.d2-about-creds { font-weight: 600; color: var(--teal, #15a8a8); letter-spacing: .2px; margin: -.4rem 0 1rem; }
.d2-about-body p { margin-bottom: 1rem; line-height: 1.75; }
.d2-about-body p:last-child { margin-bottom: 0; }

.d2-atimeline { position: relative; max-width: 940px; margin: 2.5rem auto 0; }
.d2-atimeline::before { content: ''; position: absolute; top: 8px; bottom: 8px; left: 50%; width: 2px; transform: translateX(-50%); background: linear-gradient(180deg, var(--teal), rgba(21,168,168,.25)); }
.d2-atl-item { position: relative; width: 50%; padding: 0 2.6rem 2.2rem; box-sizing: border-box; }
.d2-atl-item.left { left: 0; }
.d2-atl-item.right { left: 50%; }
.d2-atl-dot { position: absolute; top: 1.3rem; width: 16px; height: 16px; border-radius: 50%; background: var(--teal); border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(21,168,168,.18); z-index: 2; }
.d2-atl-item.left .d2-atl-dot { right: -8px; }
.d2-atl-item.right .d2-atl-dot { left: -8px; }
.d2-atl-card { position: relative; background: #fff; border: 1px solid #e6ece9; border-radius: 14px; padding: 1.15rem 1.35rem; box-shadow: 0 6px 22px rgba(15,45,34,.06); transition: transform .25s ease, box-shadow .25s ease; }
.d2-atl-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(15,45,34,.12); }
/* little arrow connecting the card to the centre line */
.d2-atl-card::after { content: ''; position: absolute; top: 1.15rem; width: 12px; height: 12px; background: #fff; border: 1px solid #e6ece9; transform: rotate(45deg); }
.d2-atl-item.left .d2-atl-card::after { right: -7px; border-left: none; border-bottom: none; }
.d2-atl-item.right .d2-atl-card::after { left: -7px; border-right: none; border-top: none; }
.d2-atl-year { display: inline-block; background: var(--teal-light); color: var(--teal-dark); font-family: 'Poppins'; font-weight: 700; font-size: .72rem; letter-spacing: .02em; padding: .22rem .7rem; border-radius: 50px; margin-bottom: .55rem; }
.d2-atl-card h5 { color: var(--ink); font-size: 1.08rem; margin-bottom: .35rem; }
.d2-atl-card p { color: var(--body); font-size: .92rem; line-height: 1.6; margin: 0; }
@media (max-width: 767px) {
    .d2-atimeline::before { left: 7px; }
    .d2-atl-item, .d2-atl-item.left, .d2-atl-item.right { width: 100%; left: 0; padding: 0 0 1.8rem 2.4rem; }
    .d2-atl-item.left .d2-atl-dot, .d2-atl-item.right .d2-atl-dot { left: 0; right: auto; }
    .d2-atl-item.left .d2-atl-card::after, .d2-atl-item.right .d2-atl-card::after { left: -7px; right: auto; border: 1px solid #e6ece9; border-right: none; border-top: none; }
}

/* Memberships */
.d2-member { display: flex; gap: .8rem; align-items: center; height: 100%; padding: 1rem 1.2rem; background: #fff; border: 1px solid #e8efe9; border-radius: 12px; font-weight: 500; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.d2-member:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.d2-member i { color: var(--teal); font-size: 1.1rem; }

/* Interests */
.d2-interest { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.2rem; background: var(--bg-soft); border-radius: 12px; }
.d2-interest-ic { width: 50px; height: 50px; min-width: 50px; border-radius: 12px; background: #fff; color: var(--primary); display: grid; place-items: center; font-size: 1.2rem; box-shadow: var(--shadow-sm); }
.d2-interest h6 { font-size: 1.02rem; }
.d2-interest p { font-size: .88rem; }

/* ============================================================
   Service page
   ============================================================ */
.svc-hero { width: 100%; border-radius: var(--radius); margin-bottom: 1.6rem; object-fit: cover;}
.svc-content { font-size: 1.02rem; color: var(--body); }
.svc-content .lead { font-size: 1.12rem; color: var(--ink); font-weight: 500; }
.svc-content h2 { font-size: 1.6rem; margin: 2rem 0 .8rem; scroll-margin-top: 100px; }
.svc-content h3 { font-size: 1.2rem; margin: 1.4rem 0 .6rem; color: var(--primary-dark); scroll-margin-top: 100px; }
.svc-content p { margin-bottom: 1rem; }
.svc-content ul { padding-left: 0; list-style: none; margin: 0 0 1.2rem; }
.svc-content ul li { position: relative; padding-left: 1.8rem; margin-bottom: .6rem; }
.svc-content ul li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--teal); position: absolute; left: 0; top: 2px; }

/* IOL lens guide — responsive comparison table */
.iol-table-wrap { margin: 1.4rem 0 1.6rem; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #e2efe6; border-radius: 12px; }
.iol-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .9rem; }
.iol-table th, .iol-table td { padding: .8rem .95rem; text-align: left; border-bottom: 1px solid #eef3f0; vertical-align: top; }
.iol-table thead th { background: var(--teal); color: #fff; font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; border-bottom: none; }
.iol-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.iol-table tbody tr:hover { background: var(--teal-light); }
.iol-table tbody td:first-child { font-weight: 600; color: var(--ink); }
.iol-table td:nth-child(2), .iol-table td:nth-child(3), .iol-table td:nth-child(4) { color: var(--teal-dark); font-weight: 600; white-space: nowrap; }
.iol-table tbody tr:last-child td { border-bottom: none; }
.iol-scroll-hint { display: none; font-size: .78rem; color: var(--muted); margin: -.6rem 0 1.2rem; }
@media (max-width: 640px) { .iol-scroll-hint { display: block; } }

/* TOC */
.svc-toc { background: var(--bg-soft); border: 1px solid #e2efe6; border-left: 4px solid var(--teal); border-radius: 12px; padding: 1.2rem 1.4rem; margin-bottom: 1.8rem; }
.svc-toc h4 { font-size: 1.05rem; margin-bottom: .8rem; color: var(--ink); }
.svc-toc ul { list-style: none; padding: 0; margin: 0; }
.svc-toc li { margin-bottom: .35rem; }
.svc-toc li.toc-sub { padding-left: 1.2rem; }
.svc-toc a { color: var(--body); font-size: .92rem; font-weight: 500; }
.svc-toc a:hover, .svc-toc a.active { color: var(--teal); }
.svc-toc a.active { font-weight: 700; }

.svc-cta { margin-top: 2rem; background: linear-gradient(120deg, var(--teal), var(--primary)); color: #fff; border-radius: var(--radius); padding: 1.6rem 1.8rem; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }
.svc-cta h4 { color: #fff; }
.svc-cta p { color: rgba(255,255,255,.9); }

/* Service FAQ */
.svc-faq { margin-top: 2.5rem; }
.svc-faq-title { font-size: 1.6rem; margin-bottom: 1rem; scroll-margin-top: 100px; }
.svc-faq-item { border: 1px solid #e6ece9; border-radius: 12px; margin-bottom: .7rem; overflow: hidden; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.svc-faq-item.open { border-color: var(--teal); box-shadow: 0 6px 20px rgba(21,168,168,.08); }
.svc-faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; background: none; border: none; cursor: pointer; padding: 1.05rem 1.2rem; font-family: inherit; font-size: 1.03rem; font-weight: 600; color: var(--ink); }
.svc-faq-q:hover { color: var(--teal-dark); }
.svc-faq-ico { flex-shrink: 0; font-size: .85rem; color: var(--teal); transition: transform .25s ease; }
.svc-faq-item.open .svc-faq-ico { transform: rotate(45deg); }
.svc-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.svc-faq-item.open .svc-faq-a { max-height: 1500px; }
.svc-faq-a-inner { padding: 0 1.2rem 1.15rem; color: var(--body); line-height: 1.7; }
/* "All open" style needs no JS — everything is expanded and non-interactive */
.svc-faq.is-open .svc-faq-q { cursor: default; }
.svc-faq.is-open .svc-faq-ico { display: none; }

/* Sidebar widgets */
.svc-widget { background: #fff; border: 1px solid #e8efe9; border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.4rem; }
.svc-widget-title { font-size: 1.12rem; margin-bottom: 1rem; padding-bottom: .7rem; border-bottom: 2px solid var(--bg-soft); position: relative; }
.svc-widget-title::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 44px; height: 2px; background: var(--teal); }
.svc-doctor { text-align: center; }
.svc-doctor img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid var(--bg-soft); margin-bottom: .8rem; }
.svc-doctor h5 { margin-bottom: .2rem; }
.svc-doctor-role { display: block; color: var(--teal); font-size: .82rem; font-weight: 600; margin-bottom: .7rem; }
.svc-doctor p { font-size: .88rem; margin-bottom: 1rem; }

.svc-list { list-style: none; padding: 0; margin: 0; }
.svc-list li { margin-bottom: .4rem; }
.svc-list a { display: flex; align-items: center; gap: .6rem; padding: .65rem .8rem; border-radius: 9px; color: var(--ink); font-weight: 500; font-size: .92rem; background: var(--bg-soft); transition: all .25s; }
.svc-list a > i:first-child { color: var(--teal); }
.svc-list a:hover { background: var(--teal); color: #fff; }
.svc-list a:hover i { color: #fff; }
.svc-list li.active a { background: var(--teal); color: #fff; }
.svc-list li.active a i { color: #fff; }

.svc-post { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.svc-post:last-child { margin-bottom: 0; }
.svc-post img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.svc-post-date { font-size: .75rem; color: var(--teal); font-weight: 600; }
.svc-post h6 { font-size: .9rem; margin: .2rem 0 0; color: var(--ink); line-height: 1.35; }
.svc-post:hover h6 { color: var(--teal); }

.svc-help { background: var(--dark); color: #cfe6d8; text-align: center; }
.svc-help i { font-size: 1.8rem; color: #6fd6d6; margin-bottom: .6rem; }
.svc-help h5 { color: #fff; margin-bottom: .3rem; }
.svc-help p { font-size: .88rem; margin-bottom: .7rem; }
.svc-help-phone { color: #fff; font-family: 'Poppins'; font-weight: 700; font-size: 1.3rem; }
.svc-help-phone:hover { color: #6fd6d6; }

@media (min-width: 992px) { aside .svc-widget:first-child { position: relative; } }

/* TOC toggle + sticky sidebar */
.svc-toc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: none; padding: 0; margin-bottom: .8rem; font-family: 'Poppins'; font-weight: 700; color: var(--ink); font-size: 1.05rem; cursor: pointer; }
.svc-toc-caret { color: var(--teal); font-size: .85rem; transition: transform .25s ease; }
.svc-toc ul { overflow: hidden; transition: max-height .3s ease, opacity .25s ease; max-height: 1200px; opacity: 1; }
.svc-toc.collapsed ul { max-height: 0; opacity: 0; margin: 0; }
.svc-toc.collapsed .svc-toc-caret { transform: rotate(180deg); }
@media (min-width: 992px) {
    .svc-sidebar { position: sticky; top: 100px; }
}
.svc-meta { color: var(--teal); font-weight: 600; font-size: .85rem; margin-bottom: .8rem; }

/* Services listing cards */
.svc-card { background: #fff; border: 1px solid #e8efe9; border-radius: var(--radius); overflow: hidden; height: 100%; transition: transform .3s, box-shadow .3s; }
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.svc-card-img { display: block; position: relative; height: 250px; overflow: hidden; }
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc-card:hover .svc-card-img img { transform: scale(1.07); }
.svc-card-icon { position: absolute; bottom: -22px; right: 20px; width: 50px; height: 50px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 1.2rem; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.svc-card-body { padding: 1.6rem 1.4rem 1.4rem; }
.svc-card-body h5 { font-size: 1.18rem; margin-bottom: .5rem; }
.svc-card-body h5 a { color: var(--ink); }
.svc-card-body h5 a:hover { color: var(--teal); }
.svc-card-body p { font-size: .92rem; margin-bottom: 1rem; }
.svc-card-link { color: var(--teal); font-weight: 600; font-size: .9rem; }

@media (max-width: 575px) {
    .d2-section { padding: 3.5rem 0; }
    .d2-hero h1 { font-size: 1.6rem; }
    .d2-title { font-size: 1.5rem; }
    .d2-why-list { grid-template-columns: 1fr; }
    .d2-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: .6rem; scroll-snap-type: x mandatory; }
    .d2-tabs::-webkit-scrollbar { height: 0; }
    .d2-tab { flex: 0 0 130px; scroll-snap-align: center; }
    .d2-tab.active::after { display: none; }
    .d2-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .d2-ctabar { padding: 1.8rem; text-align: center; }
    .d2-emergency .num { font-size: 2rem; }
    .d2-banner h1 { font-size: 2.1rem; }
    .d2-timeline { padding-left: 0; }
    .d2-timeline::before { left: 16px; }
    .d2-tl-item { padding-left: 46px; }
    .d2-tl-dot { left: 9px; }
}
/* ============================================================
   Mobile/tablet: cap row horizontal gutter so wide gutters
   (g-4/g-5) never push rows past the container -> no x-overflow.
   Vertical gutter (gy) is preserved for spacing.
   ============================================================ */
@media (max-width: 991px) {
    .row { --bs-gutter-x: 1.5rem; }
}

/* Gallery page grid */
.d2-gallery-page { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.d2-gallery-page .d2-gal { aspect-ratio: 4/3; }
@media (max-width: 767px) { .d2-gallery-page { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 459px) { .d2-gallery-page { grid-template-columns: 1fr; } }

/* Service packages / pricing cards */
/* Masonry layout — cards keep their natural height and pack without gaps */
.d2-pkg-grid { column-count: 3; column-gap: 1.5rem; }
.d2-pkg-item { break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; margin-bottom: 1.5rem; }
@media (max-width: 991px) { .d2-pkg-grid { column-count: 2; } }
@media (max-width: 575px) { .d2-pkg-grid { column-count: 1; } }

.d2-pkg { position: relative; background: #fff; border: 1px solid #e8efe9; border-radius: var(--radius); padding: 2rem 1.6rem; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.d2-pkg:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.d2-pkg.featured { border-color: var(--teal); box-shadow: var(--shadow); }
.d2-pkg-badge { position: absolute; top: 1rem; right: 1rem; background: var(--teal); color: #fff; font-size: .7rem; font-weight: 700; padding: .25rem .7rem; border-radius: 50px; text-transform: uppercase; letter-spacing: .5px; }
.d2-pkg-head { text-align: center; padding-bottom: 1.2rem; border-bottom: 1px solid #eef3f0; margin-bottom: 1.2rem; }
.d2-pkg-icon { width: 60px; height: 60px; border-radius: 16px; background: var(--teal-light); color: var(--teal); display: grid; place-items: center; font-size: 1.5rem; margin: 0 auto 1rem; }
.d2-pkg-head h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.d2-pkg-price { color: var(--teal); font-family: 'Poppins'; font-weight: 700; font-size: 1.1rem; }
.d2-pkg-list { list-style: none; padding: 0; margin: 0 0 1.2rem; flex-grow: 1; }
.d2-pkg-list li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem 0; border-bottom: 1px dashed #eef3f0; font-size: .92rem; }
.d2-pkg-list li span { display: flex; align-items: center; gap: .55rem; color: var(--body); }
.d2-pkg-list li span i { color: var(--teal); font-size: .8rem; }
.d2-pkg-list li strong { color: var(--ink); font-family: 'Poppins'; white-space: nowrap; }
.d2-pkg-note { font-size: .82rem; color: var(--body); margin-bottom: 1.2rem; }

/* Package card body (rich content) */
.d2-pkg-body { font-size: .92rem; color: var(--body); flex-grow: 1; }
.d2-pkg-body .pkg-block { background: var(--bg-soft); border-radius: 10px; padding: .9rem 1rem; margin-bottom: 1rem; }
.d2-pkg-body .pkg-block p { margin-bottom: .5rem; }
.d2-pkg-body .pkg-block p:last-child { margin-bottom: 0; }
.d2-pkg-body h4 { font-size: 1.02rem; color: var(--ink); margin: 1rem 0 .6rem; }
.d2-pkg-body ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.d2-pkg-body ul li { position: relative; padding-left: 1.4rem; margin-bottom: .45rem; }
.d2-pkg-body ul li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--teal); position: absolute; left: 0; top: 2px; font-size: .75rem; }
.d2-pkg-body strong { color: var(--ink); font-family: 'Poppins'; }
.d2-pkg-body p { margin-bottom: .6rem; }

/* Packages footer note */
.d2-pkg-note-box { background: var(--bg-soft); border-left: 4px solid var(--teal); border-radius: 10px; padding: 1.1rem 1.3rem; font-size: .92rem; color: var(--body); }
.d2-pkg-note-box strong { color: var(--ink); }

/* ---------- Navbar dropdown (hover on desktop, styled) ---------- */
.d2-nav .d2-caret { font-size: .65rem; margin-left: .25rem; transition: transform .25s ease; opacity: .8; }
.d2-nav .d2-dropdown .dropdown-menu { border: none; box-shadow: var(--shadow); border-radius: 12px; padding: .5rem; min-width: 220px; }
.d2-nav .dropdown-item { font-weight: 600; color: var(--ink); border-radius: 8px; padding: .55rem .85rem; font-size: .92rem; transition: all .2s ease; }
.d2-nav .dropdown-item:hover, .d2-nav .dropdown-item:focus { background: var(--teal-light); color: var(--teal-dark); }
@media (min-width: 992px) {
    .d2-nav .d2-dropdown > .dropdown-menu { display: block; opacity: 0; visibility: hidden; transform: translateY(10px); margin-top: 0; top: 100%; transition: opacity .2s ease, transform .2s ease, visibility .2s; pointer-events: none; }
    .d2-nav .d2-dropdown:hover > .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
    .d2-nav .d2-dropdown:hover .d2-caret { transform: rotate(180deg); }
}
@media (max-width: 991px) {
    .d2-nav .d2-dropdown > .dropdown-menu { display: block; border: none; box-shadow: none; padding: 0 0 0 1rem; min-width: 0; }
    .d2-nav .d2-caret { display: none; }
}

/* Nested submenu (any depth): side flyout on desktop, accordion on mobile */
.d2-nav .d2-submenu { position: relative; }
.d2-nav .d2-submenu-toggle { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.d2-nav .d2-sub-caret { font-size: .6rem; opacity: .55; flex-shrink: 0; transition: transform .2s ease; }
@media (min-width: 992px) {
    .d2-nav .d2-submenu > .d2-submenu-menu {
        display: block; position: absolute; top: -.5rem; left: 100%; margin-left: .25rem;
        opacity: 0; visibility: hidden; transform: translateX(8px); pointer-events: none;
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .d2-nav .d2-submenu:hover > .d2-submenu-menu { opacity: 1; visibility: visible; transform: translateX(0); pointer-events: auto; }
    .d2-nav .d2-submenu:hover > .d2-submenu-toggle { background: var(--teal-light); color: var(--teal-dark); }
    /* Flip to the left when the flyout would run off the right edge */
    .d2-nav .d2-submenu.flip > .d2-submenu-menu { left: auto; right: 100%; margin-left: 0; margin-right: .25rem; }
}
@media (max-width: 991px) {
    .d2-nav .d2-submenu-menu { display: none; border: none; box-shadow: none; padding: 0 0 0 1rem; min-width: 0; }
    .d2-nav .d2-submenu.open > .d2-submenu-menu { display: block; }
    .d2-nav .d2-sub-caret { padding: .35rem .5rem; margin: -.35rem -.5rem -.35rem 0; opacity: .8; }
    .d2-nav .d2-submenu.open > .d2-submenu-toggle .d2-sub-caret { transform: rotate(90deg); }
}

/* Book appointment — consultation cards + info + maps */
.d2-consult-card { background: #fff; border: 1px solid #e8efe9; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.d2-consult-card:hover { transform: translateY(-6px); }
.d2-consult-head { background: linear-gradient(120deg, var(--teal), var(--primary)); color: #fff; padding: 1.8rem 1.5rem 1.6rem; text-align: center; position: relative; }
.d2-consult-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 1.5rem; margin: 0 auto .8rem; border: 2px solid rgba(255,255,255,.35); }
.d2-consult-head h3 { color: #fff; font-size: 1.3rem; margin: 0; }
.d2-consult-body { padding: 1.8rem; text-align: center; }
.d2-consult-body h4 { font-size: 1.05rem; color: var(--ink); margin: 0 0 .9rem; display: inline-block; position: relative; padding-bottom: .5rem; }
.d2-consult-body h4::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: 36px; height: 2px; background: var(--teal); }
.d2-consult-body p { margin-bottom: .8rem; color: var(--body); line-height: 1.9; }
.d2-consult-body p strong { color: var(--ink); font-family: 'Poppins'; font-size: 1.05rem; }
.d2-consult-body a { color: var(--teal); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.d2-consult-body a:hover { color: var(--teal-dark); }
.d2-consult-body a[href^="tel:"]::before { content: '\f095'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .85em; }
.d2-consult-body a[href^="mailto:"]::before { content: '\f0e0'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .85em; }
.d2-consult-body hr { border: none; border-top: 1px dashed #d9e6df; margin: 1.4rem auto; max-width: 80%; }

/* Appointment info — icon cards grid */
.d2-info-content ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; text-align: left; }
.d2-info-content ul li { background: #fff; border: 1px solid #e8efe9; border-radius: 12px; padding: 1.1rem 1.2rem 1.1rem 3rem; position: relative; font-size: .95rem; box-shadow: var(--shadow-sm); margin: 0; }
.d2-info-content ul li::before { content: '\f0eb'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 1rem; top: 1.1rem; color: var(--teal); }
.d2-info-content p { margin-bottom: 1rem; }
@media (max-width: 767px) { .d2-info-content ul { grid-template-columns: 1fr; } }

/* Maps */
.d2-map { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 4px solid #fff; }
.d2-map iframe { width: 100%; height: 340px; border: 0; display: block; }

/* Contact page */
.d2-contact-list { list-style: none; padding: 0; margin: 1.4rem 0; }
.d2-contact-list li { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.2rem; }
.d2-contact-ic { width: 48px; height: 48px; min-width: 48px; border-radius: 12px; background: var(--teal-light); color: var(--teal); display: grid; place-items: center; font-size: 1.1rem; text-align: center; line-height: 48px;}
.d2-contact-list strong { display: block; color: var(--ink); font-family: 'Poppins'; font-size: .95rem; margin-bottom: .15rem; }
.d2-contact-list span, .d2-contact-list a { display: block; color: var(--body); }
.d2-contact-list a:hover { color: var(--teal); }
.d2-contact-form { background: #fff; border: 1px solid #e8efe9; border-radius: 18px; box-shadow: var(--shadow); padding: 2rem; }
.d2-contact-form h3 { margin-bottom: 1.2rem; }
.d2-contact-form .form-control { border: 1px solid #dce7e0; border-radius: 10px; padding: .8rem 1rem; }
.d2-contact-form .form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 .2rem rgba(21,168,168,.12); }

/* ------------------------------------------------------------------
   Client request (Sep 2026): +2px on sub-16px CONTENT text for readability.
   (base body text is already 16px; UI labels/badges/nav/icons left as-is.)
   ------------------------------------------------------------------ */
.d2-spec p, .d2-blog-body p, .d2-exp p, .d2-tl-item p, .d2-atl-card p,
.svc-card-body p, .d2-pkg-list li, .d2-pkg-body, .d2-pkg-note-box,
.d2-stat-label, .svc-list a, .svc-toc a { font-size: calc(.92rem + 2px); }

.d2-why-desc { font-size: calc(.85rem + 2px); }

.d2-interest p, .svc-doctor p, .svc-help p { font-size: calc(.88rem + 2px); }

.d2-read, .svc-card-link, .d2-spec a, .svc-post h6, .iol-table, .iol-table td { font-size: calc(.9rem + 2px); }

.d2-footer-links a, .d2-footer-contact li { font-size: calc(.94rem + 2px); }

.d2-info-content ul li, .d2-contact-list strong { font-size: calc(.95rem + 2px); }

.d2-qual-full, .d2-pkg-note { font-size: calc(.82rem + 2px); }
