/*
Theme Name: ModernDH2
Theme URI: https://example.com/moderndh2
Author: DH
Description: Premium medical specialist blogging community theme for platforms like neurologistshyderabad.com, cardiologistshyderabad.com etc. Doctors share opinions, professional encounters, emotional experiences. Features: reading progress, mobile menu, social sharing, author bios, related posts, newsletter CTA, Customizer presets, specialty taxonomy, and more.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: moderndh2
*/

/* ===========================================================
   TOKENS
   =========================================================== */
:root {
  --c-primary: #6d28d9;
  --c-primary-dark: #4c1d95;
  --c-primary-50: rgba(109,40,217,.06);
  --c-primary-100: rgba(109,40,217,.12);
  --c-primary-ring: 0 0 0 3px rgba(109,40,217,.16);

  --c-bg: #f8f9fc;
  --c-surface: #ffffff;
  --c-text: #111827;
  --c-text-2: #4b5563;
  --c-text-3: #9ca3af;
  --c-border: #e5e7eb;
  --c-border-light: #f3f4f6;

  --r-xs: 6px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  --sh-sm: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.06);
  --sh: 0 4px 16px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  --sh-lg: 0 12px 40px rgba(0,0,0,.1);
  --sh-card: 0 1px 3px rgba(0,0,0,.03);
  --sh-card-hover: 0 8px 28px rgba(0,0,0,.08);

  --header-h: 60px;
  --admin-h: 0px;
  --mw: 1180px;
  --sidebar-w: 300px;
  --gap: 24px;

  --ease: cubic-bezier(.4,0,.2,1);
  --dur: .2s;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
body.admin-bar { --admin-h: 32px; }
@media(max-width:782px){ body.admin-bar { --admin-h: 46px; } }

/* ===========================================================
   RESET
   =========================================================== */
*,*::before,*::after{box-sizing:border-box;min-width:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
html,body{max-width:100%;overflow-x:hidden}
body{margin:0;font-family:var(--font);font-size:15px;line-height:1.65;color:var(--c-text);background:var(--c-bg);-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:var(--c-primary);transition:color var(--dur) var(--ease)}
a:hover{color:var(--c-primary-dark)}
img{max-width:100%;height:auto;display:block}
h1,h2,h3,h4,h5,h6{line-height:1.3;font-weight:700;letter-spacing:-.01em;margin:0}
p{margin:0 0 .85em}
ul,ol{padding-left:1.2em}

/* ===========================================================
   CONTAINER / LAYOUT
   =========================================================== */
.container{max-width:var(--mw);margin:0 auto;padding:0 20px}
@media(max-width:520px){.container{padding:0 14px}}

.layout{
  display:grid;
  grid-template-columns:1fr var(--sidebar-w);
  gap:var(--gap);
  align-items:start;
  padding-top:var(--gap);
  padding-bottom:48px;
}
.layout > main{min-width:0}
@media(max-width:1020px){
  .layout{grid-template-columns:1fr;--sidebar-w:100%}
}

/* ===========================================================
   CARD BASE
   =========================================================== */
.card{
  background:var(--c-surface);
  border-radius:var(--r);
  border:1px solid var(--c-border-light);
  box-shadow:var(--sh-card);
  overflow:hidden;
  transition:transform var(--dur) var(--ease),box-shadow var(--dur) var(--ease);
}
.card:hover{transform:translateY(-2px);box-shadow:var(--sh-card-hover)}
.card-body{padding:14px 16px}
.card-body h3{font-size:15px;font-weight:700;margin:0 0 5px;line-height:1.35}
.card-body p{margin:0;color:var(--c-text-2);font-size:13px;line-height:1.5}

/* -----------  CARD IMAGE: always cover, fixed height, rounded top  ----------- */
.card-img{
  width:100%;
  height:180px;
  overflow:hidden;
  background:var(--c-border-light);
}
.card-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  transition:transform .35s var(--ease);
}
.card:hover .card-img img{transform:scale(1.04)}

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  padding:9px 18px;border-radius:var(--r-full);font-weight:600;font-size:13px;
  border:none;cursor:pointer;white-space:nowrap;
  transition:all var(--dur) var(--ease);line-height:1.1;
}
.btn-primary{background:var(--c-primary);color:#fff;box-shadow:0 2px 8px rgba(109,40,217,.18)}
.btn-primary:hover{background:var(--c-primary-dark);color:#fff;transform:translateY(-1px);box-shadow:0 4px 14px rgba(109,40,217,.25)}
.btn-outline{background:transparent;color:var(--c-text);border:1.5px solid var(--c-border)}
.btn-outline:hover{border-color:var(--c-primary);color:var(--c-primary);background:var(--c-primary-50)}
.btn-sm{padding:7px 14px;font-size:12.5px}
.btn-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:34px;height:34px;border-radius:var(--r-sm);
  border:1px solid var(--c-border);background:var(--c-surface);
  color:var(--c-text-2);cursor:pointer;transition:all var(--dur) var(--ease);
}
.btn-icon:hover{border-color:var(--c-primary);color:var(--c-primary);background:var(--c-primary-50)}
.btn-icon svg{width:15px;height:15px}

/* ===========================================================
   READING PROGRESS BAR
   =========================================================== */
.reading-bar{
  position:fixed;top:0;left:0;width:0%;height:3px;
  background:linear-gradient(90deg,var(--c-primary),var(--c-primary-dark));
  z-index:10001;transition:width 80ms linear;pointer-events:none;
}
body.admin-bar .reading-bar{top:var(--admin-h)}

/* ===========================================================
   HEADER
   =========================================================== */
.site-header{
  position:sticky;top:var(--admin-h);z-index:1000;
  background:rgba(255,255,255,.85);
  backdrop-filter:blur(14px) saturate(160%);
  -webkit-backdrop-filter:blur(14px) saturate(160%);
  border-bottom:1px solid var(--c-border-light);
  height:var(--header-h);
  transition:box-shadow .3s var(--ease);
}
.site-header.scrolled{box-shadow:0 2px 12px rgba(0,0,0,.05)}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  height:100%;gap:12px;
}
/* Brand */
.site-brand{display:flex;align-items:center;gap:10px;flex-shrink:0}
.site-brand .custom-logo-link img{max-height:38px;width:auto}
.brand-text h1{margin:0;font-size:16px;font-weight:800;line-height:1.15}
.brand-text p{margin:1px 0 0;font-size:10.5px;color:var(--c-text-3);line-height:1.15}
.brand-link{color:inherit}
.brand-link:hover{color:var(--c-primary)}

/* Desktop nav */
.desk-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:2px;align-items:center}
.desk-nav a{
  display:block;padding:6px 14px;border-radius:var(--r-full);
  font-weight:600;font-size:13px;color:var(--c-text);
  transition:all var(--dur) var(--ease);
}
.desk-nav a:hover{background:var(--c-primary-50);color:var(--c-primary)}
.desk-nav .current-menu-item>a,.desk-nav .current_page_item>a{background:var(--c-primary);color:#fff}

/* Header login */
.header-cta{
  display:inline-flex;align-items:center;gap:5px;
  padding:7px 16px;border-radius:var(--r-full);
  background:var(--c-primary);color:#fff;font-weight:700;font-size:12.5px;
  transition:all var(--dur) var(--ease);white-space:nowrap;
}
.header-cta:hover{background:var(--c-primary-dark);color:#fff;transform:translateY(-1px)}
.header-cta svg{width:14px;height:14px}

/* Hamburger */
.hamburger{
  display:none;width:38px;height:38px;align-items:center;justify-content:center;
  border:none;background:transparent;cursor:pointer;padding:0;border-radius:var(--r-sm);
}
.hamburger:hover{background:var(--c-primary-50)}
.ham-line,.ham-line::before,.ham-line::after{
  display:block;width:18px;height:2px;background:var(--c-text);border-radius:2px;
  position:relative;transition:all .3s var(--ease);
}
.ham-line::before,.ham-line::after{content:'';position:absolute;left:0}
.ham-line::before{top:-5px}.ham-line::after{top:5px}
.hamburger.open .ham-line{background:transparent}
.hamburger.open .ham-line::before{top:0;transform:rotate(45deg);background:var(--c-text)}
.hamburger.open .ham-line::after{top:0;transform:rotate(-45deg);background:var(--c-text)}

/* Mobile overlay */
.mobile-nav{
  display:none;position:fixed;
  top:calc(var(--header-h) + var(--admin-h));
  left:0;right:0;bottom:0;
  background:rgba(255,255,255,.97);backdrop-filter:blur(20px);
  z-index:999;padding:20px 24px;overflow-y:auto;
  opacity:0;transform:translateY(-6px);
  transition:opacity .25s var(--ease),transform .25s var(--ease);
}
.mobile-nav.show{opacity:1;transform:translateY(0)}
.mobile-nav ul{list-style:none;padding:0;margin:0}
.mobile-nav li{border-bottom:1px solid var(--c-border-light)}
.mobile-nav a{display:block;padding:13px 0;font-size:15px;font-weight:600;color:var(--c-text)}
.mobile-nav a:hover{color:var(--c-primary)}
.mobile-nav .current-menu-item>a,.mobile-nav .current_page_item>a{color:var(--c-primary)}
.mob-cta{
  display:flex;align-items:center;justify-content:center;gap:8px;
  margin-top:16px;padding:13px;border-radius:var(--r);
  background:var(--c-primary);color:#fff;font-weight:700;font-size:14px;
}

@media(max-width:860px){
  .desk-nav,.header-cta{display:none}
  .hamburger{display:flex}
}

/* ===========================================================
   BANNER SLIDER
   =========================================================== */
.hero-banner{margin-bottom:6px}
.banner-slider{position:relative;width:100%;overflow:hidden;border-radius:var(--r-xl)}
.banner-track{display:flex;will-change:transform;touch-action:pan-y}
.banner-slide{min-width:100%;position:relative}

.banner-media{
  position:relative;width:100%;
  height:clamp(220px, 42vw, 480px);
  overflow:hidden;
}
.banner-media img{
  width:100%;height:100%;object-fit:cover;object-position:center;display:block;
}
.banner-overlay{
  position:absolute;inset:0;
  background:linear-gradient(0deg,rgba(0,0,0,.55) 0%,rgba(0,0,0,.15) 45%,rgba(0,0,0,.05) 100%);
  z-index:2;
}
.banner-caption{
  position:absolute;left:0;right:0;bottom:0;z-index:3;
  padding:28px 28px 24px;color:#fff;
}
.banner-caption h2{margin:0 0 6px;font-size:clamp(18px,3vw,26px);font-weight:800;text-shadow:0 1px 6px rgba(0,0,0,.25)}
.banner-caption p{margin:0;opacity:.88;font-size:clamp(12px,1.5vw,14px);max-width:55ch;line-height:1.5}
.banner-caption.anim{animation:capFade .45s ease both}
@keyframes capFade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}

.banner-dots{
  position:absolute;left:50%;transform:translateX(-50%);bottom:14px;
  display:flex;gap:7px;z-index:5;
}
.bdot{
  width:8px;height:8px;border-radius:var(--r-full);
  border:1.5px solid rgba(255,255,255,.7);background:rgba(255,255,255,.2);
  padding:0;cursor:pointer;transition:all .2s;
}
.bdot.on{background:#fff;width:22px}

/* ===========================================================
   SECTION HEADERS
   =========================================================== */
.sec-head{
  display:flex;align-items:baseline;justify-content:space-between;
  gap:10px;flex-wrap:wrap;margin:28px 0 12px;
}
.sec-head:first-child{margin-top:4px}
.sec-head h2{font-size:19px;font-weight:800}
.sec-sub{color:var(--c-text-2);font-size:13px;width:100%;margin:-2px 0 0}

/* ===========================================================
   HORIZONTAL SCROLL
   =========================================================== */
.hscroll{
  display:flex;gap:16px;overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding:4px 2px 14px;
  scrollbar-width:none;-webkit-overflow-scrolling:touch;
}
.hscroll::-webkit-scrollbar{display:none}
.hscroll-item{
  scroll-snap-align:start;
  flex:0 0 var(--tw,300px);
  display:flex;
}
.hscroll-item>*{width:100%;display:flex;flex-direction:column}

.hscroll--blog{--tw:310px}
.hscroll--service{--tw:340px}
.hscroll--doctor{--tw:260px}

@media(max-width:640px){
  .hscroll-item{flex-basis:80vw !important}
}

/* Arrows */
.hscroll-wrap{position:relative}
.hscroll-arr{display:none}
@media(min-width:860px){
  .hscroll-arr{
    display:flex;align-items:center;justify-content:center;
    position:absolute;top:50%;transform:translateY(-50%);
    width:36px;height:36px;border-radius:var(--r-sm);
    border:1px solid var(--c-border);background:rgba(255,255,255,.85);
    backdrop-filter:blur(6px);box-shadow:var(--sh-sm);
    cursor:pointer;z-index:10;transition:all var(--dur) var(--ease);
  }
  .hscroll-arr--l{left:4px}.hscroll-arr--r{right:4px}
  .hscroll-arr:hover{background:#fff;box-shadow:var(--sh)}
  .hscroll-arr:disabled{opacity:.25;cursor:default}
  .arr-ico{width:14px;height:14px;position:relative;display:block}
  .arr-ico::before{
    content:'';position:absolute;inset:0;margin:auto;
    width:8px;height:8px;border-right:2px solid var(--c-text-2);border-bottom:2px solid var(--c-text-2);
    transform:rotate(-45deg);
  }
  .hscroll-arr--l .arr-ico::before{transform:rotate(135deg)}
}

/* ===========================================================
   BLOG CARDS
   =========================================================== */
.blog-card{height:100%;display:flex;flex-direction:column}
.blog-card a{display:flex;flex-direction:column;height:100%;color:inherit}
.blog-card .card-img{height:170px;position:relative}
.blog-card .card-body{flex:1;display:flex;flex-direction:column;padding:12px 14px}
.blog-card .card-body h3{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
  font-size:14.5px;margin-bottom:5px;
}
.blog-card .card-body p{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
  font-size:12.5px;margin-bottom:8px;
}
.blog-card .meta-row{margin-top:auto}

/* Meta row */
.meta-row{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--c-text-3);flex-wrap:wrap}
.meta-row .av{width:20px;height:20px;border-radius:var(--r-full);object-fit:cover;border:1px solid var(--c-border)}
.meta-row .sep{opacity:.4}
.meta-row .rt{display:inline-flex;align-items:center;gap:2px}
.meta-row .rt svg{width:11px;height:11px;opacity:.55}

/* Category pill */
.cat-pill{
  position:absolute;top:8px;left:8px;z-index:3;
  background:var(--c-primary);color:#fff;
  padding:3px 9px;border-radius:var(--r-full);
  font-size:10.5px;font-weight:700;line-height:1;
}

/* ===========================================================
   SERVICE CARDS
   =========================================================== */
.service-card{height:100%;display:flex;flex-direction:column}
.service-card a{display:flex;flex-direction:column;height:100%;color:inherit}
.service-card .card-img{height:180px}
.service-card .card-body{flex:1;display:flex;flex-direction:column}

/* ===========================================================
   DOCTOR CARDS
   =========================================================== */
.doctor-card{height:100%;display:flex;flex-direction:column;text-align:center}
.doctor-card a{display:flex;flex-direction:column;height:100%;color:inherit;align-items:center}
.doctor-card .doc-photo{
  width:100px;height:100px;border-radius:var(--r-full);
  overflow:hidden;border:3px solid var(--c-border-light);
  margin:20px auto 0;flex-shrink:0;
  box-shadow:0 4px 16px rgba(0,0,0,.06);
}
.doctor-card .doc-photo img{width:100%;height:100%;object-fit:cover}
.doctor-card .card-body{padding:10px 14px 16px;text-align:center}
.doctor-card .card-body h3{font-size:14.5px;margin-bottom:3px}
.doctor-card .card-body p{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
  font-size:12px;margin-bottom:6px;
}
.spec-tag{
  display:inline-flex;align-items:center;gap:3px;
  padding:3px 10px;border-radius:var(--r-full);
  background:var(--c-primary-50);color:var(--c-primary);
  font-size:11px;font-weight:600;
}
.spec-tag svg{width:11px;height:11px}

/* ===========================================================
   SIDEBAR — split into separate cards
   =========================================================== */
@media(min-width:1021px){
  .site-sidebar{
    position:sticky;
    top:calc(var(--header-h) + var(--admin-h) + 16px);
    align-self:start;
  }
}
.sb-stack{display:flex;flex-direction:column;gap:16px}

/* Sidebar card */
.sb-card{
  background:var(--c-surface);border-radius:var(--r);
  border:1px solid var(--c-border-light);box-shadow:var(--sh-card);
  padding:16px;overflow:hidden;
}
.sb-card:hover{box-shadow:var(--sh-card)} /* don't lift sidebar cards */
.sb-label{
  font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;
  color:var(--c-text-3);margin:0 0 10px;
}

/* Search form */
.sb-search{display:flex;gap:6px}
.sb-search input[type="search"]{
  flex:1;padding:8px 12px;border-radius:var(--r-sm);
  border:1.5px solid var(--c-border);background:var(--c-bg);
  outline:none;font-size:13px;transition:border var(--dur) var(--ease);
}
.sb-search input[type="search"]:focus{border-color:var(--c-primary);box-shadow:var(--c-primary-ring)}
.sb-search input[type="submit"]{
  padding:8px 12px;border-radius:var(--r-sm);border:none;
  background:var(--c-primary);color:#fff;font-weight:700;cursor:pointer;font-size:12.5px;
}

/* Category list */
.sb-cats{list-style:none;padding:0;margin:0}
.sb-cats li a{
  display:flex;align-items:center;justify-content:space-between;
  padding:6px 8px;border-radius:var(--r-xs);
  font-size:13px;font-weight:550;color:var(--c-text);
  transition:all var(--dur) var(--ease);
}
.sb-cats li a:hover{background:var(--c-primary-50);color:var(--c-primary)}
.sb-cats .cat-count{font-size:11px;color:var(--c-text-3);font-weight:400}

/* Sidebar post list */
.sb-posts{display:flex;flex-direction:column;gap:12px;list-style:none;padding:0;margin:0}
.sb-post-item{display:flex;gap:10px;align-items:flex-start}
.sb-post-thumb{
  width:48px;min-width:48px;height:48px;border-radius:var(--r-sm);
  overflow:hidden;background:var(--c-border-light);
}
.sb-post-thumb img{width:100%;height:100%;object-fit:cover}
.sb-post-body{flex:1;min-width:0}
.sb-post-title{
  display:block;font-weight:700;font-size:13px;color:var(--c-text);
  line-height:1.3;margin:0 0 2px;
  overflow:hidden;text-overflow:ellipsis;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
}
.sb-post-title:hover{color:var(--c-primary)}
.sb-post-meta{font-size:11px;color:var(--c-text-3)}

/* Tag cloud */
.sb-tags{display:flex;flex-wrap:wrap;gap:5px}
.sb-tags a{
  display:inline-block;padding:3px 9px;border-radius:var(--r-full);
  border:1px solid var(--c-border);font-size:11.5px;font-weight:550;
  color:var(--c-text-2);transition:all var(--dur) var(--ease);
}
.sb-tags a:hover{border-color:var(--c-primary);color:var(--c-primary);background:var(--c-primary-50)}

/* Sidebar CTA */
.sb-cta{
  background:linear-gradient(135deg,var(--c-primary),var(--c-primary-dark));
  border-radius:var(--r);padding:20px 16px;color:#fff;text-align:center;
  border:none;
}
.sb-cta h4{margin:0 0 4px;font-size:15px;color:#fff}
.sb-cta p{margin:0 0 12px;font-size:12.5px;opacity:.85}
.sb-cta .btn{background:#fff;color:var(--c-primary);font-weight:700;width:100%}
.sb-cta .btn:hover{box-shadow:0 4px 14px rgba(0,0,0,.15)}

/* ===========================================================
   LIST PAGES (Blogs / Doctors / Services listing)
   =========================================================== */
.list-card{margin-bottom:12px}
.list-card:hover{transform:translateY(-1px)}
.list-row{display:flex;gap:14px;align-items:center;padding:14px}
.list-thumb{
  width:130px;min-width:130px;height:90px;border-radius:var(--r-sm);
  overflow:hidden;background:var(--c-border-light);flex-shrink:0;
}
.list-thumb img{width:100%;height:100%;object-fit:cover;object-position:center}
.list-info h2{margin:0 0 4px;font-size:16px;font-weight:700}
.list-info p{margin:0;color:var(--c-text-2);font-size:13px;line-height:1.5}
.list-info .meta-row{margin-top:5px}

@media(max-width:520px){
  .list-row{flex-direction:column}
  .list-thumb{width:100%;height:170px}
}

/* ===========================================================
   SINGLE POST
   =========================================================== */
.post-hero{
  position:relative;overflow:hidden;border-radius:var(--r-lg);
  height:clamp(200px,38vw,440px);background:#e5e7eb;
}
.post-hero img{width:100%;height:100%;object-fit:cover;display:block}

.post-header{margin:18px 0 14px}
.post-header h1{font-size:clamp(22px,3.5vw,30px);font-weight:800;line-height:1.2;margin-bottom:12px}
.post-cats{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:10px}
.post-cats a{
  display:inline-block;padding:3px 10px;border-radius:var(--r-full);
  background:var(--c-primary-50);color:var(--c-primary);font-size:11.5px;font-weight:700;
}

/* Meta bar */
.meta-bar{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  padding:10px 0;border-top:1px solid var(--c-border-light);border-bottom:1px solid var(--c-border-light);
}
.meta-bar .author-chip{display:flex;align-items:center;gap:7px}
.meta-bar .author-chip img{width:30px;height:30px;border-radius:var(--r-full);object-fit:cover;border:2px solid var(--c-border)}
.meta-bar .author-chip .name{font-weight:700;font-size:13px}
.meta-bar .m-item{display:flex;align-items:center;gap:3px;font-size:12px;color:var(--c-text-3)}
.meta-bar .m-item svg{width:13px;height:13px;opacity:.5}
.meta-bar .dot{width:3px;height:3px;border-radius:50%;background:var(--c-text-3);opacity:.4}

/* Post content */
.post-content{font-size:15.5px;line-height:1.8;color:var(--c-text)}
.post-content h2{margin:1.6em 0 .5em;font-size:21px}
.post-content h3{margin:1.3em 0 .4em;font-size:17.5px}
.post-content img{border-radius:var(--r-sm);margin:1.2em 0}
.post-content blockquote{
  margin:1.2em 0;padding:14px 18px;
  border-left:3px solid var(--c-primary);background:var(--c-primary-50);
  border-radius:0 var(--r-sm) var(--r-sm) 0;font-style:italic;color:var(--c-text-2);
}
.post-content blockquote p:last-child{margin-bottom:0}
.post-content pre{
  background:#1e293b;color:#e2e8f0;padding:14px 18px;
  border-radius:var(--r-sm);overflow-x:auto;font-size:13px;
}
.post-content a{color:var(--c-primary);text-decoration:underline;text-underline-offset:2px}

/* Share bar */
.share-bar{display:flex;align-items:center;gap:7px;padding:14px 0;border-top:1px solid var(--c-border-light);margin-top:20px}
.share-bar .label{font-size:12.5px;font-weight:700;color:var(--c-text-2);margin-right:2px}

/* Author bio */
.author-card{
  display:flex;gap:14px;align-items:flex-start;
  padding:18px;margin-top:20px;
  background:var(--c-bg);border-radius:var(--r);border:1px solid var(--c-border-light);
}
.author-card .a-avatar{width:52px;height:52px;border-radius:var(--r-full);object-fit:cover;border:2px solid var(--c-border);flex-shrink:0}
.author-card .a-body{flex:1}
.author-card .a-label{font-size:10.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--c-text-3);font-weight:600;margin:0 0 1px}
.author-card .a-name{font-size:15px;font-weight:800;margin:0 0 4px}
.author-card .a-bio{font-size:13px;color:var(--c-text-2);margin:0;line-height:1.5}
@media(max-width:520px){.author-card{flex-direction:column;align-items:center;text-align:center}}

/* Related posts grid */
.related{margin-top:24px}
.related h3{font-size:17px;margin:0 0 12px}
.rel-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
.rel-grid .card-img{height:120px}

/* ===========================================================
   SINGLE DOCTOR / SERVICE HERO
   =========================================================== */
.cpt-hero{
  position:relative;overflow:hidden;border-radius:var(--r-lg);
  height:clamp(220px,40vw,460px);background:var(--c-border-light);
}
.cpt-hero img{width:100%;height:100%;object-fit:cover;display:block}

/* ----------- Doctor single page hero (no crop) ----------- */
.doctor-single .card-body{position:relative}
.doctor-single__name{font-size:clamp(22px,3.5vw,30px);font-weight:800;margin:0 0 8px;line-height:1.2}
.doctor-single__specs{margin-bottom:16px;display:flex;flex-wrap:wrap;gap:6px}
.doctor-hero{
  position:relative;overflow:hidden;border-radius:var(--r-lg) var(--r-lg) 0 0;
  background:var(--c-border-light);
}
.doctor-hero__bg{
  position:absolute;inset:0;
  background-size:cover;background-position:center;
  filter:blur(28px) brightness(.85) saturate(1.2);
  transform:scale(1.15);
  opacity:.5;
}
.doctor-hero__img-wrap{
  position:relative;z-index:1;
  display:flex;justify-content:center;align-items:center;
  padding:24px 20px;
  min-height:200px;
  max-height:520px;
}
.doctor-hero__img-wrap img{
  max-width:100%;max-height:480px;
  width:auto;height:auto;
  object-fit:contain;display:block;
  border-radius:var(--r);
  box-shadow:0 8px 32px rgba(0,0,0,.12);
}
@media(max-width:640px){
  .doctor-hero__img-wrap{padding:16px 12px;min-height:160px;max-height:400px}
  .doctor-hero__img-wrap img{max-height:360px}
}

/* ===========================================================
   NEWSLETTER CTA
   =========================================================== */
.news-cta{
  background:linear-gradient(135deg,var(--c-primary),var(--c-primary-dark));
  border-radius:var(--r-lg);padding:28px 24px;color:#fff;
  margin:28px 0;position:relative;overflow:hidden;
}
.news-cta::before{
  content:'';position:absolute;top:-50%;right:-15%;
  width:280px;height:280px;border-radius:50%;background:rgba(255,255,255,.06);
}
.news-cta h3{margin:0 0 4px;font-size:18px;color:#fff;position:relative}
.news-cta p{margin:0 0 14px;opacity:.82;font-size:13.5px;max-width:46ch;position:relative}
.news-form{display:flex;gap:8px;max-width:440px;position:relative}
.news-form input{
  flex:1;padding:10px 14px;border-radius:var(--r-sm);
  border:1.5px solid rgba(255,255,255,.2);background:rgba(255,255,255,.1);
  color:#fff;font-size:13.5px;outline:none;
}
.news-form input::placeholder{color:rgba(255,255,255,.55)}
.news-form input:focus{border-color:rgba(255,255,255,.45);background:rgba(255,255,255,.15)}
.news-form button{
  padding:10px 18px;border-radius:var(--r-sm);border:none;
  background:#fff;color:var(--c-primary);font-weight:700;font-size:13.5px;
  cursor:pointer;white-space:nowrap;transition:all var(--dur) var(--ease);
}
.news-form button:hover{transform:translateY(-1px);box-shadow:0 4px 14px rgba(0,0,0,.12)}
@media(max-width:520px){.news-form{flex-direction:column}.news-cta{padding:22px 18px}}

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer{background:var(--c-surface);border-top:1px solid var(--c-border-light);margin-top:40px}
.ft-top{
  display:grid;grid-template-columns:2fr 1fr 1fr;
  gap:28px;padding:32px 0 24px;
}
@media(max-width:768px){.ft-top{grid-template-columns:1fr;gap:20px}}
.ft-about{max-width:320px}
.ft-about p{font-size:13px;color:var(--c-text-2);line-height:1.55;margin:6px 0 0}
.ft-col h4{margin:0 0 10px;font-size:12.5px;text-transform:uppercase;letter-spacing:.05em;color:var(--c-text-3);font-weight:700}
.ft-col ul{list-style:none;padding:0;margin:0}
.ft-col ul a{display:block;padding:4px 0;font-size:13px;color:var(--c-text-2);font-weight:550}
.ft-col ul a:hover{color:var(--c-primary)}

.ft-bottom{
  display:flex;justify-content:space-between;align-items:center;gap:14px;
  flex-wrap:wrap;padding:14px 0;border-top:1px solid var(--c-border-light);
  font-size:12px;color:var(--c-text-3);
}
.ft-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:14px}
.ft-nav a{font-weight:600;color:var(--c-text-2);font-size:12px}
.ft-nav a:hover{color:var(--c-primary)}

/* ===========================================================
   SCROLL TO TOP
   =========================================================== */
.totop{
  position:fixed;right:18px;bottom:18px;
  width:40px;height:40px;display:flex;align-items:center;justify-content:center;
  border-radius:var(--r-sm);background:var(--c-primary);color:#fff;
  z-index:9999;opacity:0;transform:translateY(8px);pointer-events:none;
  transition:all .3s var(--ease);cursor:pointer;border:none;
  box-shadow:0 4px 14px rgba(109,40,217,.25);
}
.totop.vis{opacity:1;transform:translateY(0);pointer-events:auto}
.totop:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(109,40,217,.35)}
.totop svg{width:16px;height:16px}

/* ===========================================================
   AUTH PAGES (Login)
   =========================================================== */
.auth-wrap{min-height:calc(100vh - 160px);display:flex;align-items:center;justify-content:center;padding:28px 0}
.auth-box{width:min(440px,100%);padding:28px}
.auth-box h1{font-size:22px;margin:0 0 4px}
.auth-box .sub{margin:0 0 18px;color:var(--c-text-2);font-size:13.5px}
.auth-box label{display:block;font-weight:650;font-size:13px;margin-bottom:4px}
.auth-box input[type="text"],.auth-box input[type="password"],.auth-box input[type="email"]{
  width:100%;padding:10px 12px;border-radius:var(--r-sm);
  border:1.5px solid var(--c-border);background:var(--c-bg);
  outline:none;font-size:14px;margin-bottom:12px;
  transition:all var(--dur) var(--ease);
}
.auth-box input:focus{border-color:var(--c-primary);box-shadow:var(--c-primary-ring)}
.auth-box .check{display:flex;gap:7px;align-items:center;margin-bottom:14px;color:var(--c-text-2);font-size:13px}
.auth-box .links{display:flex;gap:14px;margin-top:12px}
.auth-box .links a{font-size:13px;font-weight:650}
.auth-alert{
  background:rgba(239,68,68,.06);border:1px solid rgba(239,68,68,.15);
  color:#991b1b;padding:10px 12px;border-radius:var(--r-sm);margin:0 0 14px;font-size:13px;
}

/* ===========================================================
   DASHBOARD
   =========================================================== */
.dash-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin-bottom:20px}
.dash-stat{padding:16px;text-align:center}
.dash-stat .num{font-size:26px;font-weight:900;color:var(--c-primary);line-height:1}
.dash-stat .lbl{font-size:11px;color:var(--c-text-3);font-weight:600;text-transform:uppercase;letter-spacing:.04em;margin-top:4px}
.dash-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:768px){.dash-grid{grid-template-columns:1fr}}
.dash-card{padding:18px}
.dash-card h3{font-size:15px;margin:0 0 12px}
.dash-card label{display:block;font-weight:650;font-size:12.5px;margin-bottom:3px}
.dash-card input[type="text"],.dash-card textarea{
  width:100%;padding:9px 12px;border-radius:var(--r-sm);
  border:1.5px solid var(--c-border);background:var(--c-bg);
  outline:none;font-size:14px;margin-bottom:10px;
}
.dash-card input:focus,.dash-card textarea:focus{border-color:var(--c-primary);box-shadow:var(--c-primary-ring)}

/* ===========================================================
   BREADCRUMBS
   =========================================================== */
.crumbs{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--c-text-3);flex-wrap:wrap;margin:0 0 10px}
.crumbs a{color:var(--c-text-2);font-weight:550}
.crumbs a:hover{color:var(--c-primary)}
.crumbs .sep{opacity:.35}

/* ===========================================================
   PAGINATION
   =========================================================== */
.pag{margin:20px 0}
.pag .nav-links{display:flex;gap:5px;justify-content:center;align-items:center}
.pag .page-numbers{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:34px;height:34px;padding:0 9px;border-radius:var(--r-xs);
  border:1px solid var(--c-border);font-size:13px;font-weight:600;
  color:var(--c-text-2);transition:all var(--dur) var(--ease);
}
.pag .page-numbers:hover{border-color:var(--c-primary);color:var(--c-primary);background:var(--c-primary-50)}
.pag .page-numbers.current{background:var(--c-primary);color:#fff;border-color:var(--c-primary)}

/* ===========================================================
   COMMENTS
   =========================================================== */
.comments-area{margin-top:20px}
.comments-area h3{font-size:17px;margin:0 0 14px}
.comment-list{list-style:none;padding:0;margin:0}
.comment-list .comment{padding:14px 0;border-bottom:1px solid var(--c-border-light)}
.comment-list .comment-author img{width:32px;height:32px;border-radius:var(--r-full);float:left;margin-right:10px}
.comment-respond label{display:block;font-weight:650;font-size:13px;margin-bottom:3px}
.comment-respond input[type="text"],.comment-respond input[type="email"],.comment-respond textarea{
  width:100%;padding:9px 12px;border-radius:var(--r-sm);border:1.5px solid var(--c-border);
  background:var(--c-bg);outline:none;font-size:14px;margin-bottom:10px;
}
.comment-respond input:focus,.comment-respond textarea:focus{border-color:var(--c-primary);box-shadow:var(--c-primary-ring)}
.comment-respond .submit{
  padding:9px 18px;border-radius:var(--r-full);background:var(--c-primary);color:#fff;
  font-weight:700;border:none;cursor:pointer;
}

/* ===========================================================
   MISC UTILITIES
   =========================================================== */
.home-editor-content{margin-top:6px}
.page-content .card-body{padding:20px}
.page-content .card-body h1{margin:0 0 14px;font-size:24px}
.post-meta{display:flex;flex-wrap:wrap;gap:7px;color:var(--c-text-3);font-size:12px;margin:6px 0}
.post-meta a{color:var(--c-primary)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.layout,main,aside{max-width:100%}
input,textarea,select,button{max-width:100%}

/* ===========================================================
   RESPONSIVE ENHANCEMENTS
   =========================================================== */

/* --- Global smooth transitions --- */
.card,.btn,.btn-icon,.sb-card,.list-card{transition:all var(--dur) var(--ease)}

/* --- Better container padding at various breakpoints --- */
@media(max-width:768px){
  :root{--gap:16px}
  .layout{padding-top:16px;padding-bottom:32px}
}

/* --- Header improvements for small screens --- */
@media(max-width:360px){
  .brand-text h1{font-size:14px}
  .brand-text p{font-size:9.5px}
  .header-inner{gap:8px}
}

/* --- Banner slider responsive --- */
@media(max-width:520px){
  .banner-slider{border-radius:var(--r-lg)}
  .banner-caption{padding:18px 16px 16px}
  .banner-caption h2{font-size:16px}
  .banner-caption p{font-size:11.5px;-webkit-line-clamp:2;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
  .banner-dots{bottom:10px}
}

/* --- Section headers responsive --- */
@media(max-width:520px){
  .sec-head{margin:20px 0 10px}
  .sec-head h2{font-size:17px}
}

/* --- List cards responsive enhancements --- */
@media(max-width:520px){
  .list-row{padding:0}
  .list-thumb{height:180px;border-radius:var(--r) var(--r) 0 0;min-width:100%}
  .list-info{padding:12px 14px 14px}
  .list-info h2{font-size:15px}
  .list-info p{font-size:12.5px}
}
@media(min-width:521px) and (max-width:768px){
  .list-thumb{width:110px;min-width:110px;height:80px}
}

/* --- Blog cards on small horizontal scroll --- */
@media(max-width:400px){
  .hscroll-item{flex-basis:85vw !important}
  .hscroll{gap:12px;padding-left:0;padding-right:0}
}

/* --- Doctor cards responsive --- */
@media(max-width:640px){
  .hscroll--doctor{--tw:200px}
  .doctor-card .doc-photo{width:80px;height:80px;margin-top:14px}
  .doctor-card .card-body{padding:8px 10px 14px}
  .doctor-card .card-body h3{font-size:13.5px}
}

/* --- Single post responsive --- */
@media(max-width:640px){
  .post-hero{border-radius:var(--r);height:clamp(180px,50vw,280px)}
  .post-header{margin:14px 0 10px}
  .post-header h1{font-size:20px;margin-bottom:8px}
  .card-body{padding:12px 14px}
  .meta-bar{gap:8px;padding:8px 0}
  .meta-bar .author-chip img{width:26px;height:26px}
  .meta-bar .m-item{font-size:11px}
  .post-content{font-size:14.5px;line-height:1.75}
  .post-content h2{font-size:18px}
  .post-content h3{font-size:16px}
  .share-bar{flex-wrap:wrap;gap:6px}
}

/* --- Author bio card responsive --- */
@media(max-width:520px){
  .author-card{padding:14px;gap:10px}
  .author-card .a-avatar{width:44px;height:44px}
  .author-card .a-name{font-size:14px}
  .author-card .a-bio{font-size:12px}
}

/* --- Related posts responsive --- */
@media(max-width:520px){
  .rel-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
  .rel-grid .card-img{height:100px}
  .rel-grid .card-body h3{font-size:12.5px}
}

/* --- Sidebar responsive improvements --- */
@media(max-width:1020px){
  .site-sidebar{margin-top:8px}
  .sb-stack{gap:12px}
}
@media(max-width:520px){
  .sb-card{padding:14px}
  .sb-cta{padding:16px 14px}
}

/* --- Footer responsive --- */
@media(max-width:520px){
  .ft-top{padding:24px 0 16px;gap:16px}
  .ft-about{max-width:100%}
  .ft-about p{font-size:12.5px}
  .ft-col h4{font-size:11.5px;margin-bottom:8px}
  .ft-col ul a{font-size:12.5px;padding:3px 0}
  .ft-bottom{flex-direction:column;align-items:flex-start;gap:8px;padding:12px 0;font-size:11px}
  .ft-nav ul{gap:10px}
}

/* --- Auth / Login responsive --- */
@media(max-width:520px){
  .auth-wrap{padding:16px 0;min-height:calc(100vh - 120px)}
  .auth-box{padding:20px 16px}
  .auth-box h1{font-size:19px}
  .auth-box .sub{font-size:12.5px}
  .auth-box input[type="text"],
  .auth-box input[type="password"],
  .auth-box input[type="email"]{font-size:16px;padding:11px 12px}
  .auth-box .links{flex-direction:column;gap:8px}
}

/* --- Dashboard responsive --- */
@media(max-width:520px){
  .dash-stats{grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:8px}
  .dash-stat{padding:12px}
  .dash-stat .num{font-size:22px}
  .dash-stat .lbl{font-size:10px}
  .dash-grid{gap:12px}
  .dash-card{padding:14px}
  .dash-card h3{font-size:14px}
}

/* --- 404 page responsive --- */
@media(max-width:520px){
  .container[style*="padding:48px"]{padding:24px 14px !important}
}

/* --- Search results responsive --- */
@media(max-width:520px){
  .pag .page-numbers{min-width:30px;height:30px;font-size:12px;padding:0 7px}
}

/* --- Comments responsive --- */
@media(max-width:520px){
  .comments-area h3{font-size:15px}
  .comment-list .comment{padding:10px 0}
  .comment-list .comment-author img{width:28px;height:28px}
  .comment-respond input[type="text"],
  .comment-respond input[type="email"],
  .comment-respond textarea{font-size:16px}
}

/* --- Breadcrumbs responsive --- */
@media(max-width:520px){
  .crumbs{font-size:11px;margin-bottom:8px}
}

/* --- Page content card padding on mobile --- */
@media(max-width:520px){
  .page-content .card-body{padding:16px !important}
  .page-content .card-body h1{font-size:20px}
}

/* --- Prevent horizontal overflow globally --- */
.post-content img,
.post-content iframe,
.post-content video,
.post-content embed,
.post-content object{max-width:100%;height:auto}
.post-content pre{max-width:100%;overflow-x:auto;word-wrap:break-word}
.post-content table{max-width:100%;overflow-x:auto;display:block}

/* --- Card hover: disable lift on touch devices --- */
@media(hover:none){
  .card:hover{transform:none;box-shadow:var(--sh-card)}
  .list-card:hover{transform:none}
}

/* --- Improve focus styles for accessibility --- */
a:focus-visible,.btn:focus-visible,.btn-icon:focus-visible,
input:focus-visible,textarea:focus-visible,select:focus-visible,
button:focus-visible{
  outline:2px solid var(--c-primary);
  outline-offset:2px;
}

/* --- Newsletter CTA responsive refinement --- */
@media(max-width:400px){
  .news-cta{padding:18px 14px}
  .news-cta h3{font-size:16px}
  .news-cta p{font-size:12.5px;margin-bottom:10px}
}

/* --- Mobile menu: fullscreen feel on very small screens --- */
@media(max-width:360px){
  .mobile-nav{padding:16px 14px}
  .mobile-nav a{font-size:14px;padding:11px 0}
  .mob-cta{padding:11px;font-size:13px}
}

/* --- Spec tags wrap nicely --- */
.spec-tag{white-space:nowrap}

/* --- Smooth image loading appearance --- */
img{background-color:var(--c-border-light)}

/* --- Fix touch scrolling for horizontal carousels --- */
.hscroll{-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}

