/*
Theme Name: مدورا - Medora
Theme URI: https://www.skyno.ir
Author: میلاد سخن‌گو - اسکاینو (Skyno)
Author URI: https://www.skyno.ir
Description: قالب واکنش‌گرا و مینیمال برای وب‌سایت مطب و پزشک، شامل معرفی مطب، وبلاگ، حساب کاربری بیماران و سیستم نوبت‌دهی آنلاین.
Version: 2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: dr-kiani-clinic
*/

/*
 * توسعه‌دهنده: میلاد سخن‌گو
 * اسکاینو (Skyno)
 * وب‌سایت: https://www.skyno.ir
 */

:root{
  --bg:#FFFFFF;
  --bg-soft:#F6F7F6;
  --ink:#15181A;
  --ink-soft:#5B615E;
  --line:#E6E7E2;
  --teal:#eb35f2;
  --teal-soft:#EAF4FB;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:'Vazirmatn', Tahoma, sans-serif;
  line-height:1.85; font-weight:400;
}
img,svg{max-width:100%; display:block;}
a{color:inherit;}
.wrap{max-width:1080px; margin:0 auto; padding:0 28px;}

/* Header */
header.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.9); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:24px; padding:16px 28px; max-width:1080px; margin:0 auto;}
.main-nav{justify-self:center;}
.nav-actions{display:flex; align-items:center; gap:10px;}
.logo{font-weight:600; font-size:1.05rem; letter-spacing:.01em; text-decoration:none; color:var(--ink); flex-shrink:0;}
.logo span{color:var(--ink-soft); font-weight:400;}
.logo-image{display:flex; align-items:center;}
.logo-image a{display:block;}
.logo-image img{max-height:44px; width:auto; display:block;}
.menu{display:flex; gap:28px; font-size:.92rem; list-style:none; margin:0; padding:0;}
.menu li{list-style:none;}
.menu a{position:relative; display:block; padding:8px 0; text-decoration:none; color:var(--ink-soft); transition:color .2s;}
.menu a::after{content:""; position:absolute; bottom:2px; right:0; left:0; height:2px; border-radius:2px; background:var(--teal); transform:scaleX(0); transition:transform .25s;}
.menu a:hover, .menu .current-menu-item > a{color:var(--ink);}
.menu a:hover::after, .menu .current-menu-item > a::after{transform:scaleX(1);}
.book-btn{
  background:var(--teal); color:#fff; border:none; padding:11px 24px;
  border-radius:100px; font-family:inherit; font-weight:500; font-size:.88rem;
  cursor:pointer; text-decoration:none; display:inline-block;
}
.burger{display:none; width:42px; height:42px; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:12px; background:var(--bg); color:var(--ink); font-size:1.2rem; line-height:1; cursor:pointer; padding:0;}

/* Slider */
.slider{position:relative; overflow:hidden; background:var(--bg-soft); border-bottom:1px solid var(--line); height:480px;}
.slide{position:absolute; inset:0; opacity:0; visibility:hidden; transition:opacity .9s ease, transform .9s ease; transform:translateX(18px);}
.slide.active{opacity:1; visibility:visible; transform:translateX(0);}
.slide-inner{height:100%; max-width:1080px; margin:0 auto; padding:0 28px; display:grid; grid-template-columns:1fr 1fr; gap:52px; align-items:center;}
.slide-photo{height:78%; border-radius:14px; overflow:hidden; position:relative; background-size:cover; background-position:center; border:1px solid var(--line);}
.slide-photo.is-placeholder{background:repeating-linear-gradient(135deg, var(--bg-soft), var(--bg-soft) 12px, #EFF1EF 12px, #EFF1EF 24px); display:flex; align-items:center; justify-content:center;}
.slide-photo.is-placeholder span{color:var(--ink-soft); font-size:.82rem; background:var(--bg); border:1px dashed var(--line); padding:8px 14px; border-radius:100px;}
.slide-text .tag{color:var(--teal); font-size:.88rem; font-weight:500; margin-bottom:16px;}
.slide-text h2{font-size:clamp(1.6rem, 3.2vw, 2.3rem); font-weight:500; margin:0 0 16px; line-height:1.5;}
.slide-text p{color:var(--ink-soft); max-width:46ch; margin:0 0 26px; font-size:1.02rem;}
.slider-arrow{position:absolute; top:50%; transform:translateY(-50%); background:var(--bg); border:1px solid var(--line); width:40px; height:40px; border-radius:50%; cursor:pointer; font-size:1.2rem; color:var(--ink); display:flex; align-items:center; justify-content:center; z-index:2;}
.slider-arrow.prev{right:24px;}
.slider-arrow.next{left:24px;}
.slider-dots{position:absolute; bottom:22px; left:50%; transform:translateX(-50%); display:flex; gap:8px; z-index:2;}
.dot{width:8px; height:8px; border-radius:50%; background:var(--line); cursor:pointer; border:none; padding:0; transition:width .2s;}
.dot.active{background:var(--teal); width:22px; border-radius:4px;}
@media (max-width:860px){
  .slider{height:auto;}
  .slide{position:relative; inset:auto; display:none; opacity:1; visibility:visible; transform:none;}
  .slide.active{display:block;}
  .slide-inner{grid-template-columns:1fr; padding:40px 28px 64px; gap:24px;}
  .slide-photo{height:260px; order:-1;}
  .slider-arrow{top:auto; bottom:12px; transform:none; width:34px; height:34px; font-size:1rem;}
  .slider-arrow.prev{right:20px;}
  .slider-arrow.next{left:20px;}
  .slider-dots{bottom:25px;}
}

/* Sections */
section{padding:80px 0;}
.section-head{max-width:56ch; margin-bottom:48px;}

/* Section bands: alternating full-width backgrounds for clear separation */
.band{position:relative; border-bottom:1px solid var(--line);}
.band-light{background:var(--bg);}
.band-soft{background:var(--bg-soft);}
.band-tint{background:linear-gradient(180deg, var(--teal-soft) 0%, color-mix(in srgb, var(--teal-soft) 55%, var(--bg)) 100%);}
.band-tint .booking-panel{background:var(--bg); box-shadow:0 20px 40px -28px color-mix(in srgb, var(--teal) 70%, transparent);}
.band-soft .service, .band-soft .post-card{background:var(--bg);}
.band-light .doc-photo{background:var(--bg-soft);}
.band .section-head h2{position:relative; padding-bottom:14px;}
.band .section-head h2::after{content:""; position:absolute; bottom:0; right:0; width:44px; height:3px; border-radius:3px; background:var(--teal);}

/* Kicker dot accent */
.section-head .kicker{color:var(--teal); font-weight:500; font-size:.88rem; margin-bottom:10px; display:flex; align-items:center; gap:8px;}
.section-head .kicker::before{content:""; width:7px; height:7px; border-radius:50%; background:var(--teal); display:inline-block;}
.section-head h2{font-size:1.7rem; margin:0 0 12px; font-weight:500;}
.section-head p{color:var(--ink-soft); margin:0; font-size:1rem;}

/* Decorative blobs behind slider */
.slider::before, .slider::after{
  content:""; position:absolute; border-radius:50%; z-index:0; pointer-events:none;
  background:radial-gradient(circle, color-mix(in srgb, var(--teal) 22%, transparent) 0%, transparent 70%);
}
.slider::before{width:520px; height:520px; top:-220px; left:-160px;}
.slider::after{width:380px; height:380px; bottom:-200px; right:-120px;}
.slide{z-index:1;}

/* About doctor */
.about-grid{display:grid; grid-template-columns:260px 1fr; gap:56px; align-items:start;}
.doc-photo-wrap{position:relative; width:260px;}
.doc-photo-wrap::before{
  content:""; position:absolute; top:14px; right:-14px; width:100%; height:100%;
  border:1.5px solid var(--teal); border-radius:6px; z-index:0;
}
.doc-photo{position:relative; z-index:1; aspect-ratio:3/3.6; width:260px; border-radius:6px; background:var(--bg-soft); border:1px solid var(--line); overflow:hidden; display:flex; align-items:center; justify-content:center; color:var(--ink-soft); font-size:2.4rem; font-weight:300;}
.doc-photo img{width:100%; height:100%; object-fit:cover;}
.doc-name{font-size:1.15rem; font-weight:600; margin:0 0 4px;}
.doc-role{color:var(--ink-soft); font-size:.92rem; margin:0 0 22px;}
.credentials{list-style:none; margin:24px 0 0; padding:0; display:flex; flex-direction:column;}
.credentials li{padding:14px 0; border-top:1px solid var(--line); font-size:.94rem; color:var(--ink-soft); display:flex; align-items:center; justify-content:space-between; gap:16px;}
.credentials li:last-child{border-bottom:1px solid var(--line);}
.credentials li .cred-label{display:flex; align-items:center; gap:10px; flex-shrink:0;}
.credentials li .check{width:22px; height:22px; border-radius:50%; background:var(--teal-soft); color:var(--teal); font-size:.72rem; display:flex; align-items:center; justify-content:center; flex-shrink:0;}
.credentials li b{color:var(--ink); font-weight:500; text-align:left;}

/* Services */
.services-list{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.service{position:relative; padding:28px 26px 30px; background:var(--bg); border:1px solid var(--line); border-radius:16px; display:flex; flex-direction:column; gap:12px; overflow:hidden; transition:transform .25s, box-shadow .25s, border-color .25s;}
.service::before{content:""; position:absolute; top:0; right:0; left:0; height:3px; background:var(--teal); opacity:0; transition:opacity .25s;}
.service:hover{transform:translateY(-4px); border-color:color-mix(in srgb, var(--teal) 40%, var(--line)); box-shadow:0 16px 32px -20px color-mix(in srgb, var(--teal) 60%, transparent);}
.service:hover::before{opacity:1;}
.service-icon{width:54px; height:54px; border-radius:16px; background:var(--teal-soft); display:flex; align-items:center; justify-content:center; font-size:1.55rem; margin-bottom:4px;}
.service h3{margin:0; font-size:1.08rem; font-weight:600;}
.service p{margin:0; font-size:.93rem; color:var(--ink-soft); line-height:1.95;}

/* Booking */
.booking-grid{display:grid; grid-template-columns:1fr 1.1fr; gap:64px; align-items:start;}
.booking-info{position:sticky; top:96px;}
.booking-info .section-head{margin-bottom:28px;}
.booking-steps{list-style:none; margin:0 0 26px; padding:0; display:flex; flex-direction:column; gap:14px;}
.booking-steps li{display:flex; align-items:center; gap:14px; font-size:.95rem;}
.step-num{width:34px; height:34px; border-radius:50%; background:var(--bg); color:var(--teal); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-weight:700; flex-shrink:0;}
.booking-sub{color:var(--ink-soft); margin:0;}
.booking-note{border-top:1px solid var(--line); padding-top:18px; margin-top:18px; font-size:.9rem; color:var(--ink-soft);}
.booking-panel{background:var(--bg-soft); border:1px solid var(--line); border-radius:12px; padding:28px;}
.days{display:grid; grid-template-columns:repeat(5, 1fr); gap:8px; margin-bottom:22px;}
.day{text-align:center; padding:10px 6px; border-radius:8px; font-size:.85rem; border:1px solid var(--line); color:var(--ink-soft); cursor:pointer; background:none; font-family:inherit; min-width:0;}
.day.active{background:var(--teal); color:#fff; border-color:var(--teal);}
.day small{display:block; opacity:.7; font-size:.72rem; margin-top:2px;}
.slots{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:24px;}
.periods{display:flex; gap:10px; margin-bottom:18px;}
.period-btn{flex:1; padding:13px 0; text-align:center; border-radius:8px; font-size:.9rem; font-weight:600; border:1px solid var(--line); color:var(--ink-soft); cursor:pointer; background:none; font-family:inherit;}
.period-btn.active{background:var(--teal); color:#fff; border-color:var(--teal);}
.period-btn:disabled{opacity:.4; cursor:not-allowed;}
.booking-locked{padding:4px 0;}
.auth-intro{margin:0 0 18px; color:var(--ink-soft); font-size:.92rem; line-height:1.9;}
.auth-tabs{display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px; margin-bottom:22px; background:var(--bg); border:1px solid var(--line); border-radius:10px;}
.auth-tab{padding:11px 0; border-radius:7px; border:none; background:none; color:var(--ink-soft); font-family:inherit; font-size:.92rem; font-weight:600; cursor:pointer; transition:background .2s,color .2s;}
.auth-tab.active{background:var(--teal); color:#fff;}
.auth-form{width:100%; display:flex; flex-direction:column; text-align:right;}
.auth-form .field{margin-bottom:16px;}
.auth-form .contact-submit{width:100%; margin-top:4px; padding:15px; border-radius:8px;}
.auth-form .form-msg{text-align:center;}
.auth-row{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
@media (max-width:520px){ .auth-row{grid-template-columns:1fr; gap:0;} .booking-panel{padding:20px;} }
.slot{padding:11px 0; text-align:center; border-radius:8px; font-size:.85rem; border:1px solid var(--line); color:var(--ink-soft); cursor:pointer; background:none; font-family:inherit;}
.slot.taken{opacity:.4; text-decoration:line-through; cursor:not-allowed;}
.slot.selected{border-color:var(--teal); color:var(--teal); font-weight:600; background:var(--teal-soft);}
.book-confirm{width:100%; background:var(--teal); color:#fff; border:none; padding:15px; border-radius:8px; font-family:inherit; font-weight:600; font-size:.94rem; cursor:pointer;}
.book-confirm:disabled{opacity:.5; cursor:not-allowed;}
.booking-fields{display:none; margin-top:18px; flex-direction:column; gap:12px;}
.booking-fields.show{display:flex; margin-bottom:18px;}
.booking-fields input{border:1px solid var(--line); border-radius:8px; padding:11px 14px; font-family:inherit; font-size:.92rem;}
.form-msg{margin-top:14px; font-size:.88rem;}
.form-msg.ok{color:var(--teal);}
.form-msg.err{color:#B3261E;}

/* Blog */
.blog-list{display:flex; flex-direction:column;}
.post-row{padding:26px 0; border-top:1px solid var(--line); display:grid; grid-template-columns:70px 84px 1fr; gap:20px; align-items:center;}
.post-row-thumb{display:block; width:84px; height:84px; border-radius:12px; overflow:hidden; background:var(--teal-soft); flex-shrink:0;}
.post-row-thumb img{width:100%; height:100%; object-fit:cover; margin:0;}
.post-row-thumb.no-img{display:flex; align-items:center; justify-content:center; font-size:1.7rem;}
.blog-list .post-row:last-child{border-bottom:1px solid var(--line);}
.post-date{color:var(--teal); font-weight:600; text-align:center; background:var(--teal-soft); border-radius:12px; padding:12px 6px; line-height:1.4;}
.post-date b{display:block; font-size:1.5rem; font-weight:700; line-height:1.2;}
.post-date small{display:block; font-size:.74rem; opacity:.85; margin-top:2px;}
.post-row h3{margin:0 0 8px; font-size:1.1rem; font-weight:600; line-height:1.7;}
.post-row h3 a{text-decoration:none;}
.post-row h3 a:hover{color:var(--teal);}
.post-row p{margin:0 0 12px; font-size:.94rem; color:var(--ink-soft); max-width:62ch;}
.read-more{font-size:.88rem; font-weight:600; text-decoration:none; color:var(--teal); display:inline-flex; align-items:center; gap:6px;}
.read-more::after{content:"←"; transition:transform .2s;}
.read-more:hover::after{transform:translateX(-4px);}
.see-all{margin-top:34px; text-align:center;}
.btn-outline{display:inline-block; border:1.5px solid var(--teal); color:var(--teal); padding:12px 32px; border-radius:100px; text-decoration:none; font-weight:600; font-size:.92rem; transition:background .2s, color .2s;}
.btn-outline:hover{background:var(--teal); color:#fff;}

.blog-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.post-card{display:flex; flex-direction:column; background:var(--bg); border:1px solid var(--line); border-radius:16px; overflow:hidden; transition:transform .25s, box-shadow .25s;}
.post-card:hover{transform:translateY(-4px); box-shadow:0 16px 32px -20px rgba(20,30,40,.35);}
.post-card-thumb{display:block; aspect-ratio:16/10; background:var(--teal-soft); overflow:hidden;}
.post-card-thumb img{width:100%; height:100%; object-fit:cover; transition:transform .5s;}
.post-card:hover .post-card-thumb img{transform:scale(1.04);}
.post-card-thumb.no-img{display:flex; align-items:center; justify-content:center; font-size:2.4rem;}
.post-card-body{padding:20px 22px 24px; display:flex; flex-direction:column; flex:1;}
.post-card-meta{display:flex; align-items:center; gap:10px; font-size:.78rem; color:var(--ink-soft); margin-bottom:10px; flex-wrap:wrap;}
.post-card-meta .cat{background:var(--teal-soft); color:var(--teal); padding:2px 10px; border-radius:100px; font-weight:600;}
.post-card h3{margin:0 0 10px; font-size:1.05rem; line-height:1.7; font-weight:600;}
.post-card h3 a{text-decoration:none;}
.post-card h3 a:hover{color:var(--teal);}
.post-card p{margin:0 0 16px; font-size:.9rem; color:var(--ink-soft); flex:1;}

.cat-chips{display:flex; flex-wrap:wrap; gap:8px; margin:-20px 0 34px;}
.chip{padding:8px 18px; border:1px solid var(--line); border-radius:100px; font-size:.86rem; text-decoration:none; color:var(--ink-soft); transition:all .2s;}
.chip.active, .chip:hover{background:var(--teal); border-color:var(--teal); color:#fff;}

.pagination{margin-top:44px;}
.pagination .nav-links{display:flex; gap:8px; justify-content:center; flex-wrap:wrap;}
.page-numbers{min-width:40px; height:40px; padding:0 14px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:10px; text-decoration:none; font-size:.9rem; color:var(--ink-soft);}
.page-numbers.current{background:var(--teal); color:#fff; border-color:var(--teal);}
a.page-numbers:hover{border-color:var(--teal); color:var(--teal);}

/* Contact */
.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start;}
.field{display:flex; flex-direction:column; gap:8px; margin-bottom:18px;}
.field label{font-size:.88rem; color:var(--ink-soft);}
.field input, .field textarea{width:100%; min-width:0; border:1px solid var(--line); border-radius:8px; padding:12px 14px; font-family:inherit; font-size:.94rem; color:var(--ink); background:var(--bg); resize:vertical;}
.field input:focus, .field textarea:focus{outline:2px solid var(--teal); outline-offset:1px; border-color:var(--teal);}
.contact-submit{background:var(--teal); color:#fff; border:none; padding:14px 28px; border-radius:8px; font-family:inherit; font-weight:600; font-size:.94rem; cursor:pointer;}
.contact-info{display:flex; flex-direction:column;}
.contact-info .row{padding:18px 0; border-top:1px solid var(--line); display:flex; align-items:flex-start; gap:14px;}
.contact-info .row:last-child{border-bottom:1px solid var(--line);}
.contact-info .row-icon{width:34px; height:34px; border-radius:50%; background:var(--teal-soft); display:flex; align-items:center; justify-content:center; font-size:1rem; flex-shrink:0;}
.contact-info .row span{display:block; font-size:.85rem; color:var(--ink-soft); margin-bottom:6px;}
.contact-info .row b{font-weight:500; font-size:.98rem;}
.map-box{margin-top:24px; height:200px; border-radius:10px; border:1px dashed var(--line); background:var(--bg-soft); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:var(--ink-soft); font-size:.85rem;}
.map-box .map-icon{font-size:1.6rem;}
.map-box small{display:block; font-size:.74rem; margin-top:4px; opacity:.8;}
.map-embed{margin-top:24px; height:220px; border-radius:10px; overflow:hidden; border:1px solid var(--line);}
.map-embed iframe{width:100%; height:100%; border:0; display:block;}

/* Footer */
footer.site-footer{background:var(--f-bg,#0F1B1F); color:var(--f-text,#C7D0D2); padding:60px 0 30px;}
.foot-grid{display:grid; grid-template-columns:repeat(var(--foot-cols, 3), 1fr); gap:32px 40px; margin-bottom:44px;}
@media (max-width:980px){ .foot-grid{grid-template-columns:repeat(2, 1fr);} }
.foot-grid h4{font-size:.95rem; font-weight:600; margin:0 0 16px; color:var(--f-head,#fff);}
.foot-grid p, .foot-grid a{font-size:.9rem; color:var(--f-muted,#A9B5B8); display:block; text-decoration:none; margin-bottom:10px;}
.foot-about{line-height:1.95;}
.foot-menu{list-style:none; margin:0; padding:0;}
.foot-menu li{margin:0;}
.foot-menu a:hover, .foot-grid p a:hover{color:var(--f-head,#fff);}
.social-links{display:flex; flex-wrap:wrap; gap:8px; margin-top:16px;}
.foot-grid .social-links a{display:inline-block; margin:0; padding:6px 14px; border:1px solid var(--f-line2,rgba(255,255,255,.2)); border-radius:100px; font-size:.82rem; color:var(--f-text,#C7D0D2); transition:all .2s;}
.foot-grid .social-links a:hover{background:var(--teal); border-color:var(--teal); color:#fff;}
.foot-bottom{border-top:1px solid var(--f-line,rgba(255,255,255,.12)); padding-top:22px; text-align:center; font-size:.82rem; color:var(--f-dim,#8A979B);}

/* Generic page / single post */
.page-content{padding:70px 0; max-width:760px; margin:0 auto;}
.page-content h1{font-size:2rem; font-weight:600; margin:0 0 24px;}
.blog-archive{padding:64px 0 80px;}
.narrow{max-width:800px; margin-inline:auto;}

.single-hero{background:var(--bg-soft); border-bottom:1px solid var(--line); padding:56px 0 44px;}
.breadcrumb{font-size:.84rem; color:var(--ink-soft); margin-bottom:18px;}
.breadcrumb a{text-decoration:none;}
.breadcrumb a:hover{color:var(--teal);}
.breadcrumb .sep{margin:0 8px; opacity:.5;}
.post-cat{display:inline-block; background:var(--teal-soft); color:var(--teal); padding:4px 14px; border-radius:100px; font-size:.82rem; font-weight:600; text-decoration:none; margin-bottom:14px;}
.single-hero h1{font-size:clamp(1.7rem, 3.6vw, 2.4rem); line-height:1.6; font-weight:700; margin:0 0 20px;}
.single-meta{display:flex; flex-wrap:wrap; gap:8px 22px; font-size:.86rem; color:var(--ink-soft);}
.single-cover{margin-top:36px; border-radius:16px; overflow:hidden; aspect-ratio:16/9; background:var(--bg-soft);}
.single-cover img{width:100%; height:100%; object-fit:cover; margin:0;}

.entry{font-size:1.06rem; line-height:2.15; padding:36px 0 10px;}
.entry p{margin:0 0 1.4em;}
.entry h2{font-size:1.5rem; margin:2em 0 .7em; font-weight:700; line-height:1.7;}
.entry h3{font-size:1.2rem; margin:1.8em 0 .6em; font-weight:600; line-height:1.7;}
.entry a{color:var(--teal); text-decoration:underline; text-underline-offset:3px;}
.entry ul, .entry ol{margin:0 0 1.4em; padding-inline-start:1.6em;}
.entry li{margin-bottom:.4em;}
.entry blockquote{margin:1.8em 0; padding:18px 24px; border-inline-start:4px solid var(--teal); background:var(--teal-soft); border-radius:12px;}
.entry blockquote p:last-child{margin-bottom:0;}
.entry img{border-radius:12px; margin:1.6em auto; height:auto;}
.entry figure{margin:1.6em 0;}
.entry figcaption{font-size:.84rem; color:var(--ink-soft); text-align:center; margin-top:-.8em;}
.entry table{width:100%; border-collapse:collapse; margin:1.6em 0; font-size:.95rem;}
.entry th, .entry td{border:1px solid var(--line); padding:10px 14px;}
.entry th{background:var(--bg-soft);}

.post-tags{display:flex; flex-wrap:wrap; gap:8px; padding:22px 0 0; margin-top:26px; border-top:1px solid var(--line);}
.post-tags a{font-size:.82rem; padding:5px 14px; background:var(--bg-soft); border:1px solid var(--line); border-radius:100px; text-decoration:none; color:var(--ink-soft);}
.post-tags a:hover{border-color:var(--teal); color:var(--teal);}

.post-nav{display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:36px 0;}
.post-nav a{display:block; padding:18px 20px; border:1px solid var(--line); border-radius:14px; text-decoration:none; line-height:1.7; transition:border-color .2s;}
.post-nav a:hover{border-color:var(--teal);}
.post-nav small{display:block; color:var(--teal); font-size:.78rem; font-weight:600; margin-bottom:4px;}
.post-nav .next{text-align:left;}

.related{padding:8px 0 6px;}
.related h2{font-size:1.3rem; font-weight:700; margin:0 0 20px;}
.related .blog-grid{grid-template-columns:repeat(2,1fr);}

/* Comments */
.comments-area{margin-top:48px; padding-top:36px; border-top:1px solid var(--line); padding-bottom:70px;}
.comments-title{font-size:1.3rem; font-weight:700; margin:0 0 24px;}
.comment-list{list-style:none; padding:0; margin:0 0 40px;}
.comment-list .children{list-style:none; margin:14px 18px 0 0; padding:0 22px 0 0; border-right:2px solid var(--line);}
.drk-comment{margin-bottom:14px;}
.comment-body{display:flex; gap:14px; padding:18px; background:var(--bg-soft); border:1px solid var(--line); border-radius:14px;}
.comment-avatar span{width:44px; height:44px; border-radius:50%; background:var(--teal); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; flex-shrink:0;}
.comment-main{flex:1; min-width:0;}
.comment-head{display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:6px;}
.comment-head span{font-size:.8rem; color:var(--ink-soft);}
.comment-text p{margin:0 0 .6em; font-size:.95rem; line-height:1.95;}
.comment-pending{font-size:.84rem; color:#9a6b00; background:#fff6dd; padding:6px 12px; border-radius:8px; margin:0 0 10px;}
.comment-reply-link{font-size:.82rem; color:var(--teal); text-decoration:none; font-weight:600;}
.comment-respond{background:var(--bg-soft); border:1px solid var(--line); border-radius:16px; padding:28px;}
.comment-reply-title{font-size:1.15rem; margin:0 0 18px; font-weight:700;}
.comment-reply-title small{margin-inline-start:10px; font-size:.8rem;}
.comment-form .form-submit{margin:0;}
.comment-form .logged-in-as, .comment-form .must-log-in{font-size:.88rem; color:var(--ink-soft); margin:0 0 16px;}
.comment-form input.contact-submit{width:auto;}
.no-comments{color:var(--ink-soft); font-size:.9rem;}

/* Responsive */
@media (max-width:860px){
  .nav{grid-template-columns:1fr auto; gap:12px; padding:12px 20px;}
  .main-nav{display:none; justify-self:stretch; position:absolute; top:100%; right:0; left:0; background:var(--bg); border-bottom:1px solid var(--line); box-shadow:0 20px 30px -24px rgba(0,0,0,.35); padding:4px 20px 12px; z-index:40;}
  .main-nav.open{display:block;}
  .menu{flex-direction:column; gap:0;}
  .menu li{border-bottom:1px solid var(--line);}
  .menu li:last-child{border-bottom:none;}
  .menu a{padding:14px 4px; font-size:1rem;}
  .menu a::after{display:none;}
  .nav-actions{gap:8px;}
  .book-btn{padding:10px 18px; font-size:.84rem;}
  .burger{display:inline-flex;}
  .about-grid{grid-template-columns:1fr;}
  .doc-photo-wrap{width:180px; margin:0 auto 14px;}
  .doc-name, .doc-role{text-align:center;}
  .doc-photo{max-width:180px; aspect-ratio:1/1;}
  .booking-grid{grid-template-columns:1fr; gap:32px;}
  .booking-info{position:static;}
  .days{grid-template-columns:repeat(3, 1fr);}
  .day{padding:9px 4px; font-size:.8rem;}
  .post-row{grid-template-columns:52px 60px 1fr; gap:12px;}
  .post-row-thumb{width:60px; height:60px; border-radius:10px;}
  .post-nav{grid-template-columns:1fr;}
  .post-nav .next{text-align:right;}
  .single-hero{padding:40px 0 32px;}
  .contact-grid{grid-template-columns:1fr; gap:36px;}
  .foot-grid{grid-template-columns:1fr; gap:28px;}
  .foot-extra-content img{max-width:120px; height:auto;}
  section{padding:56px 0;}
}

@media (max-width:980px){
  .services-list, .blog-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:600px){
  .services-list, .blog-grid, .related .blog-grid{grid-template-columns:1fr;}
  .comment-body{padding:14px;}
  .comment-respond{padding:20px;}
  .post-date b{font-size:1.25rem;}
}

/* Header account link */
.account-link{display:inline-flex; align-items:center; gap:6px; font-size:.86rem; text-decoration:none; color:var(--ink-soft); padding:9px 16px; border:1px solid var(--line); border-radius:100px; white-space:nowrap; transition:color .2s, border-color .2s;}
.account-link:hover{color:var(--teal); border-color:var(--teal);}
.booking-account-note{font-size:.8rem; color:var(--ink-soft); margin:14px 0 0; text-align:center;}
.booking-account-note a{color:var(--teal); font-weight:600;}

/* Account page */
.account-page{background:var(--bg-soft); padding:56px 0 80px; min-height:60vh;}
.account-top{display:flex; align-items:center; gap:16px; margin-bottom:28px; flex-wrap:wrap;}
.account-avatar{width:60px; height:60px; border-radius:50%; background:var(--teal); color:#fff; font-size:1.5rem; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0;}
.account-who h1{margin:0; font-size:1.4rem; font-weight:700;}
.account-who span{color:var(--ink-soft); font-size:.9rem;}
.account-logout{margin-inline-start:auto; padding:9px 22px; font-size:.86rem;}
.account-grid{display:grid; grid-template-columns:1.35fr 1fr; gap:24px; align-items:start;}
.account-card{background:var(--bg); border:1px solid var(--line); border-radius:16px; padding:26px;}
.account-card-head{display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:20px; flex-wrap:wrap;}
.account-card-head h2{margin:0; font-size:1.15rem; font-weight:700;}
.appt-list{display:flex; flex-direction:column; gap:12px;}
.appt-card{display:flex; justify-content:space-between; align-items:center; gap:14px; padding:16px 18px; border:1px solid var(--line); border-inline-start:4px solid var(--ink-soft); border-radius:12px;}
.appt-card.status-pending{border-inline-start-color:#E0A100;}
.appt-card.status-confirmed{border-inline-start-color:#1E9E5A;}
.appt-card.status-cancelled{border-inline-start-color:#B9BFC1; opacity:.7;}
.appt-card.status-expired{border-inline-start-color:#B9BFC1; opacity:.6;}
.appt-when b{display:block; font-size:.98rem; font-weight:600;}
.appt-when span{font-size:.86rem; color:var(--ink-soft);}
.appt-side{display:flex; flex-direction:column; align-items:flex-end; gap:8px;}
.appt-status{font-size:.78rem; font-weight:600; padding:3px 12px; border-radius:100px; background:var(--bg-soft);}
.status-pending .appt-status{background:#FFF4D6; color:#8A6100;}
.status-confirmed .appt-status{background:#DDF4E7; color:#12723F;}
.status-cancelled .appt-status, .status-expired .appt-status{background:#ECEEEE; color:#6B7275;}
.appt-cancel{background:none; border:1px solid #E5B1AC; color:#B3261E; border-radius:8px; padding:6px 14px; font-family:inherit; font-size:.8rem; cursor:pointer; transition:background .2s;}
.appt-cancel:hover{background:#FDECEA;}
.appt-cancel:disabled{opacity:.5; cursor:not-allowed;}
.appt-hint{font-size:.82rem; color:var(--ink-soft); margin:16px 0 0;}
.appt-empty{color:var(--ink-soft); margin:0;}
.pw-title{font-weight:600; font-size:.92rem; margin:6px 0 14px; padding-top:18px; border-top:1px solid var(--line);}
.pw-title small, .field label small{font-weight:400; color:var(--ink-soft);}
.field input:disabled{background:var(--bg-soft); color:var(--ink-soft);}
.account-guest{max-width:460px;}
@media (max-width:860px){
  .account-grid{grid-template-columns:1fr;}
  .account-page{padding:36px 0 56px;}
  .account-logout{margin-inline-start:0;}
  .account-txt{display:none;}
  .account-link{padding:8px 11px;}
}
@media (max-width:520px){
  .appt-card{flex-direction:column; align-items:flex-start;}
  .appt-side{flex-direction:row; align-items:center; width:100%; justify-content:space-between;}
  .account-card{padding:20px;}
}

/* Active appointment notice inside booking panel */
.booking-active{text-align:center; padding:8px 6px;}
.booking-active .ba-icon{font-size:2rem; margin-bottom:6px;}
.booking-active h3{margin:0 0 10px; font-size:1.1rem; font-weight:700;}
.booking-active .ba-when{margin:0 0 12px; line-height:2; font-size:.96rem;}
.booking-active .appt-status{display:inline-block; margin-bottom:14px;}
.booking-active .ba-note{font-size:.84rem; color:var(--ink-soft); margin:0 0 18px; line-height:1.9;}
.booking-active .ba-success{display:inline-block; background:#DDF4E7; color:#12723F; padding:6px 18px; border-radius:100px; font-size:.86rem; font-weight:600; margin-bottom:14px;}

@media (min-width:861px) and (max-width:1000px){
  .nav{gap:14px;}
  .menu{gap:18px;}
}
@media (max-width:600px){
  .logo span{display:none;}
  .logo{overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0;}
  .book-btn{padding:9px 14px;}
}
.foot-extra-content{font-size:.9rem; color:var(--f-text,#A9B5B8); line-height:1.9;}
.foot-extra-content img{max-width:150px; height:auto; border-radius:4px;}
.foot-extra-content a{display:inline-block;}
