/*
Theme Name: Dr. Dipanjali Nath - Doctor Portfolio
Theme URI: https://example.com/
Author: OpenAI
Description: Modern, editable medical doctor portfolio theme with carousel, appointment email form, animated sections, services, gallery and blog.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: dr-dipanjali
*/
:root{
  --primary:#116b78;
  --primary-dark:#0a4d57;
  --accent:#53b9aa;
  --soft:#eef8f7;
  --ink:#17333a;
  --muted:#63777d;
  --white:#fff;
  --shadow:0 16px 45px rgba(20,67,74,.12);
  --radius:22px;
  --container:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fff;line-height:1.65}
img{max-width:100%;height:auto;display:block}
a{color:var(--primary);text-decoration:none}
a:hover{color:var(--primary-dark)}
.container{width:min(92%,var(--container));margin:auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border-bottom:1px solid #e7eff0}
.header-inner{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:25px}
.brand{display:flex;align-items:center;gap:12px;color:var(--ink)}
.brand-mark{width:44px;height:44px;border-radius:50%;background:var(--primary);display:grid;place-items:center;color:#fff;font-weight:800}
.brand-title{font-weight:800;line-height:1.1}
.brand-subtitle{font-size:12px;color:var(--muted)}
.main-nav{display:flex;gap:24px;align-items:center}
.main-nav a{font-weight:650;color:var(--ink);font-size:15px}
.main-nav a:hover{color:var(--primary)}
.nav-toggle{display:none;border:0;background:var(--soft);font-size:24px;padding:7px 11px;border-radius:10px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;padding:13px 22px;font-weight:750;cursor:pointer;transition:.25s ease}
.btn-primary{background:var(--primary);color:#fff}
.btn-primary:hover{background:var(--primary-dark);color:#fff;transform:translateY(-2px)}
.btn-light{background:#fff;color:var(--primary);box-shadow:0 8px 22px rgba(0,0,0,.08)}
.section{padding:88px 0}
.section-soft{background:var(--soft)}
.section-heading{text-align:center;max-width:760px;margin:0 auto 45px}
.eyebrow{display:inline-block;color:var(--primary);font-size:13px;text-transform:uppercase;letter-spacing:1.6px;font-weight:800;margin-bottom:8px}
.section-heading h2{font-size:clamp(30px,4vw,46px);line-height:1.15;margin:5px 0 12px}
.section-heading p{color:var(--muted);margin:0}
.hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#edf9f8,#fff)}
.carousel{position:relative;min-height:590px}
.slide{position:absolute;inset:0;opacity:0;visibility:hidden;transform:translateX(25px);transition:opacity .7s ease,transform .7s ease,visibility .7s}
.slide.active{opacity:1;visibility:visible;transform:none}
.slide-inner{min-height:590px;display:grid;grid-template-columns:1.02fr .98fr;align-items:center;gap:55px}
.hero-copy h1{font-size:clamp(40px,5vw,66px);line-height:1.05;margin:10px 0 18px}
.hero-copy .lead{font-size:18px;color:var(--muted);max-width:620px}
.hero-actions{display:flex;gap:13px;flex-wrap:wrap;margin-top:28px}
.hero-meta{display:flex;gap:22px;flex-wrap:wrap;margin-top:25px;color:var(--muted);font-size:14px}
.hero-image{height:530px;border-radius:30px;overflow:hidden;box-shadow:var(--shadow);background:#dceeed}
.hero-image img{width:100%;height:100%;object-fit:cover}
.carousel-controls{position:absolute;bottom:26px;left:50%;transform:translateX(-50%);display:flex;gap:8px;z-index:5}
.carousel-dot{width:10px;height:10px;border:0;border-radius:50%;background:#b6c9cc;cursor:pointer;padding:0}
.carousel-dot.active{background:var(--primary);transform:scale(1.25)}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.card{background:#fff;border:1px solid #e6eeee;border-radius:var(--radius);padding:27px;box-shadow:0 10px 28px rgba(16,70,77,.06)}
.service-card{height:100%;overflow:hidden;padding:0}
.service-card img{width:100%;height:210px;object-fit:cover}
.service-body{padding:24px}
.service-body h3{margin:0 0 8px;font-size:21px}
.service-body p{color:var(--muted);margin:0}
.about-image{border-radius:28px;overflow:hidden;box-shadow:var(--shadow);min-height:450px}
.about-image img{width:100%;height:100%;object-fit:cover}
.check-list{padding:0;margin:25px 0;list-style:none}
.check-list li{margin:11px 0;display:flex;gap:10px}
.check-list li:before{content:"✓";display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--soft);color:var(--primary);font-weight:800;flex:none}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:28px}
.stat{padding:20px;background:var(--soft);border-radius:16px}
.stat strong{display:block;font-size:27px;color:var(--primary)}
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}
.gallery-item{border-radius:18px;overflow:hidden;aspect-ratio:4/3;background:#edf3f4}
.gallery-item img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.gallery-item:hover img{transform:scale(1.05)}
.blog-card{height:100%;overflow:hidden;padding:0}
.blog-card .thumb{height:205px;background:#eef5f5}
.blog-card .thumb img{width:100%;height:100%;object-fit:cover}
.blog-card .content{padding:23px}
.blog-card h3{margin:0 0 9px;font-size:21px}
.meta{font-size:13px;color:var(--muted)}
.cta{background:linear-gradient(135deg,var(--primary),#0b5964);color:#fff;border-radius:28px;padding:50px}
.cta h2{font-size:38px;line-height:1.1;margin:0 0 10px}
.cta p{opacity:.9;max-width:650px}
.site-footer{background:#0d3036;color:#d9e8e9;padding:55px 0 25px}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:35px}
.site-footer h3{color:#fff;margin-top:0}
.site-footer a{color:#d9e8e9}
.copyright{border-top:1px solid rgba(255,255,255,.12);margin-top:35px;padding-top:20px;font-size:13px;color:#a8c1c4}
.page-hero{padding:75px 0;background:var(--soft)}
.page-hero h1{font-size:48px;line-height:1.1;margin:0 0 8px}
.content-area{padding:75px 0}
.content-area .entry-content{max-width:850px;margin:auto}
.entry-content h2,.entry-content h3{line-height:1.2}
.entry-content img{border-radius:18px}
form.appointment-form{display:grid;gap:14px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
input,textarea,select{width:100%;border:1px solid #d8e5e6;border-radius:13px;padding:13px 14px;font:inherit;background:#fff}
textarea{min-height:130px;resize:vertical}
.notice{padding:14px 18px;border-radius:12px;background:var(--soft);color:var(--primary-dark);margin-bottom:20px}
.error{background:#fff1f1;color:#8d2e2e}
.reveal{opacity:0;transform:translateY(35px);transition:opacity .75s ease,transform .75s ease}
.reveal.from-left{transform:translateX(-45px)}
.reveal.from-right{transform:translateX(45px)}
.reveal.is-visible{opacity:1;transform:none}
.single-layout{max-width:900px;margin:auto}
.post-thumb{border-radius:24px;overflow:hidden;margin:25px 0 35px}
@media(max-width:980px){
  .main-nav{display:none;position:absolute;top:78px;left:0;right:0;background:#fff;padding:18px 4%;border-bottom:1px solid #e7eff0;flex-direction:column;align-items:flex-start}
  .main-nav.open{display:flex}
  .nav-toggle{display:block}
  .header-cta{display:none}
  .carousel{min-height:760px;overflow:hidden;touch-action:pan-y}
  .slide{position:absolute;inset:0;width:100%}
  .slide-inner{grid-template-columns:1fr;min-height:760px;padding:55px 0 90px;gap:28px;align-content:center}
  .hero-copy{padding-top:5px}
  .hero-image{height:390px}
  .grid-3{grid-template-columns:1fr 1fr}
  .grid-4{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
  .section{padding:62px 0}
  .grid-2,.grid-3,.grid-4,.footer-grid{grid-template-columns:1fr}
  .gallery-grid{grid-template-columns:1fr 1fr}
  .stats{grid-template-columns:1fr}
  .carousel{min-height:820px}
  .slide-inner{min-height:820px;padding:38px 0 78px;gap:22px;align-content:center}
  .hero-copy h1{font-size:40px}
  .hero-copy .lead{font-size:16px}
  .hero-actions{margin-top:20px}
  .hero-meta{font-size:13px;gap:8px;flex-direction:column}
  .hero-image{height:360px}
  .carousel-controls{bottom:25px}
  .form-grid{grid-template-columns:1fr}
  .cta{padding:34px 25px}
  .page-hero h1{font-size:38px}
}
@media(max-width:420px){
  .carousel{min-height:790px}
  .slide-inner{min-height:790px;padding-top:28px}
  .hero-copy h1{font-size:34px}
  .hero-image{height:310px}
}
