/* =========================================================
   MUKTA KIDNEY & DIALYSIS CLINIC — DESIGN 3
   Reference-matched responsive theme
   ========================================================= */

:root{
  --d3-navy:#032f4a;
  --d3-navy2:#02263c;
  --d3-teal:#0b9b9d;
  --d3-teal2:#087e8c;
  --d3-blue:#0a3f78;
  --d3-amber:#ffb33f;
  --d3-cream:#fbf8ee;
  --d3-pale:#eef8fa;
  --d3-line:#d8e8ee;
  --d3-text:#123f56;
  --d3-muted:#587487;
}

html{scroll-behavior:smooth}
body{background:#fff;color:var(--d3-text);font-family:Arial,Helvetica,sans-serif}
.container{width:min(1160px,calc(100% - 42px))}
.topline{height:0;background:none}

/* Header */
header{position:sticky;top:0;z-index:100;background:var(--d3-navy);border:0;box-shadow:0 3px 14px rgba(0,0,0,.12)}
.nav{min-height:74px;gap:20px}
.brand{min-width:270px;gap:10px;color:#fff}
.brand img{width:56px;height:56px;border-radius:50%;object-fit:cover}
.brand strong{font-family:Georgia,"Times New Roman",serif;color:#fff;font-size:17px;line-height:1.08}
.brand span{color:#b8d5df;font-size:9px;margin-top:4px}
.menu{gap:19px;font-size:10px}
.menu a{color:#fff;padding:9px 2px}
.menu a:hover,.menu a.active{color:#fff}
.menu a.active:after{height:2px;background:var(--d3-amber)}
.nav-actions{gap:8px}
.nav-actions .btn{font-size:10px;padding:11px 15px}
.btn{font-size:11px;padding:10px 16px;border-radius:999px}
.btn-teal{background:linear-gradient(135deg,#119da1,#087e8c);color:#fff}
.btn-amber{background:linear-gradient(135deg,#ffc15a,#ffa72e);color:#173c4b}
.btn-outline-dark{display:inline-flex;align-items:center;border:1px solid rgba(255,255,255,.7);border-radius:999px;color:#fff;padding:8px 14px;font-size:10px;font-weight:800}
.menu-toggle{color:#fff}

/* Hero */
.d3-hero{position:relative;overflow:hidden;background:#f5f9fb url('design3-hero-bg.jpg') center/cover no-repeat;min-height:267px}
.d3-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(250,251,249,.97) 0%,rgba(250,251,249,.94) 33%,rgba(250,251,249,.18) 56%,rgba(250,251,249,0) 72%);pointer-events:none}
.d3-hero .hero-grid{min-height:267px;display:block;position:relative;z-index:2}
.d3-hero .hero-copy{width:48%;padding-top:30px}
.d3-hero-kicker{font-family:Georgia,"Times New Roman",serif;font-weight:700;font-size:24px;line-height:1.12;color:#0a4063}
.d3-hero h1{font-family:Georgia,"Times New Roman",serif;font-size:30px;line-height:1.04;color:#073f68;margin:2px 0 9px;letter-spacing:-.4px}
.d3-hero h1 strong{display:block;font-size:36px;line-height:1.04}
.d3-hero h1 small{display:block;font-size:21px;font-weight:700;margin-top:2px}
.d3-hero-values{font-size:12px;color:#154f6a;margin:10px 0 14px}
.d3-hero-values span{padding:0 10px;color:#6c8b97}
.d3-hero .hero-actions{gap:9px}
.d3-hero .hero-actions .btn{padding:10px 15px;font-size:10px}
.d3-hero .hero-visual{display:none}

/* General section */
.d3-section{padding:18px 0;background:#fff}
.d3-heading h2{font-family:Georgia,"Times New Roman",serif;font-size:21px;line-height:1.1;color:#073f68;margin:0 0 3px}
.d3-heading p{font-size:11px;color:#3f6680;margin:0 0 12px}
.centres-section{padding-top:18px;padding-bottom:20px}
.d3-centres-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.d3-centre{min-height:51px;border:1px solid #dbeaf0;border-radius:9px;display:flex;align-items:center;padding:10px 13px;gap:10px;background:#fff;box-shadow:0 3px 10px rgba(7,63,91,.035)}
.d3-centre .d3-pin{color:#087f8e;font-size:22px;line-height:1;flex:0 0 auto}
.d3-centre strong{font-family:Georgia,"Times New Roman",serif;font-size:12px;color:#123f56;flex:1}
.d3-centre>a{color:#0a3f78;font-size:19px;line-height:1}
.d3-centre.upcoming{background:linear-gradient(110deg,#eaf9fa,#dff4f6);border-color:#c9e7ec}
.d3-centre.upcoming .d3-plus{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#087f8e;color:#fff;font-size:16px;font-weight:700;flex:0 0 auto}
.d3-centre.upcoming strong{font-family:Arial,sans-serif;font-size:11px;line-height:1.15}

/* Services + patient information */
.d3-services-area{background:#f8fbfc;padding-top:18px;padding-bottom:18px}
.d3-services-grid{display:grid;grid-template-columns:1.75fr 1fr;gap:14px}
.d3-panel{border-radius:10px;border:1px solid #dcebef;background:#f7fbfc;padding:13px 16px}
.services-panel{background:linear-gradient(110deg,#f7fbfd,#eef8fa)}
.patient-panel{background:linear-gradient(120deg,#e7f7f9,#dff2f4)}
.d3-services{display:grid;grid-template-columns:repeat(5,1fr);margin-top:7px}
.d3-service{min-height:105px;text-align:center;border-right:1px solid #d7e9ee;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5px 7px}
.d3-service:last-child{border-right:0}
.d3-service-icon{width:47px;height:47px;border-radius:50%;background:#dff5f7;border:1px solid #c8e8ed;color:#087f8e;display:grid;place-items:center;font-size:25px;font-weight:700;margin-bottom:9px}
.d3-service span{font-size:10px;line-height:1.35;color:#063e66;font-weight:700}
.d3-info-list{display:grid;gap:6px;margin-top:8px}
.d3-info-list a{display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.7);border:1px solid #d7e8ec;border-radius:6px;padding:7px 9px;font-size:10px;color:#124b67}
.d3-info-list a span{color:#087f8e;font-weight:900;width:16px;text-align:center}
.d3-info-list a b{margin-left:auto;color:#0a3f78;font-size:15px}

/* Dark appointment / doctor section */
.d3-dark-section{background:linear-gradient(105deg,#033957,#032d47);padding:14px 0 16px;color:#fff}
.d3-bottom-grid{display:grid;grid-template-columns:1.35fr .9fr .55fr;gap:24px;align-items:center}
.d3-form-panel{background:#fff;color:#173f56;border-radius:8px;padding:12px 17px}
.d3-form-panel h2,.d3-doctor-copy h2{font-family:Georgia,"Times New Roman",serif;font-size:15px;margin:0 0 3px;color:inherit}
.d3-form-panel p{font-size:9px;margin:0 0 8px;color:#527184}
.d3-form-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:7px}
.d3-form-panel input,.d3-form-panel select{height:27px;padding:5px 8px;border:1px solid #d8e7ec;border-radius:6px;background:#fbfeff;font-size:9px;color:#315a6c}
.d3-form-panel button{width:100%;height:27px;padding:5px 10px;border:0;font-size:9px}
.d3-doctor-copy p{font-size:10px;line-height:1.4;color:#d8edf3;margin:5px 0}
.d3-doctor-photo{background:#9ed6e1;border-radius:8px;overflow:hidden;align-self:stretch;min-height:125px}
.d3-doctor-photo img{width:100%;height:100%;object-fit:cover;object-position:center top}

/* Existing pages */
.page-hero{background:linear-gradient(105deg,#eaf6f8,#dff1f4);padding:35px 0;border-bottom:1px solid var(--d3-line)}
.page-hero h1{font-family:Georgia,"Times New Roman",serif;color:#073f68;font-size:34px}
.breadcrumb{color:#67818d}
h2,h3,.card h3{font-family:Georgia,"Times New Roman",serif;color:#073f68}
.card,.form-card,.contact-item,details{box-shadow:0 5px 18px rgba(5,55,76,.05)}
.notice{border-left-color:var(--d3-amber)}

/* Footer */
footer{background:linear-gradient(105deg,#032d47,#02253a);padding:22px 0 10px;color:#d8edf3;border-top:1px solid #0a5973}
.footer-grid{grid-template-columns:1.25fr 1fr 1fr 1fr;gap:24px}
footer .brand{min-width:0}
footer .brand strong{font-size:13px}
footer .brand img{width:50px;height:50px}
footer h4{font-family:Georgia,"Times New Roman",serif;font-size:11px;color:#fff;margin-bottom:8px}
footer a,footer p{font-size:9px;color:#a8cad5;margin:4px 0}
.copyright{border-top:1px solid rgba(255,255,255,.16);margin-top:10px;padding-top:7px;font-size:8px;color:#9dbdc7}
.mobile-bar{display:none}

/* =========================================================
   MOBILE — Design 3 reference composition
   ========================================================= */
@media(max-width:820px){
  body{padding-bottom:62px;background:#fff}
  .container{width:calc(100% - 22px)}
  header{position:sticky;top:0}
  .nav{min-height:58px;gap:7px}
  .brand{min-width:0;flex:1;gap:7px}
  .brand img{width:42px;height:42px}
  .brand strong{font-size:11px;line-height:1.05}
  .menu,.nav-actions{display:none}
  .menu-toggle{display:block;width:38px;height:38px;font-size:0}
  .menu-toggle:before{content:'☰';font-size:22px;line-height:38px}
  .mobile-menu{top:62px;left:10px;right:10px;border-radius:10px;background:#fff}

  .d3-hero{min-height:310px;background-size:auto 100%;background-position:61% center}
  .d3-hero:after{background:linear-gradient(90deg,rgba(251,250,245,.98) 0%,rgba(251,250,245,.90) 45%,rgba(251,250,245,.22) 73%,rgba(251,250,245,0) 100%)}
  .d3-hero .hero-grid{min-height:310px}
  .d3-hero .hero-copy{width:59%;padding-top:25px}
  .d3-hero-kicker{font-size:15px}
  .d3-hero h1{font-size:19px;line-height:1.05;margin-top:2px}
  .d3-hero h1 strong{font-size:23px}
  .d3-hero h1 small{font-size:14px}
  .d3-hero-values{font-size:8px;margin:9px 0 10px;white-space:nowrap}
  .d3-hero-values span{padding:0 4px}
  .d3-hero .hero-actions{gap:5px;flex-wrap:nowrap}
  .d3-hero .hero-actions .btn{padding:7px 7px;font-size:7px;min-width:0;white-space:nowrap}
  .d3-hero .hero-actions .btn svg{width:11px;height:11px}

  .d3-section{padding:14px 0}
  .d3-heading h2{font-size:17px}
  .d3-heading p{font-size:8px;margin-bottom:8px}
  .centres-section{padding-top:13px;padding-bottom:13px}
  .d3-centres-grid{grid-template-columns:1fr;gap:5px}
  .d3-centre{min-height:30px;height:30px;border-radius:6px;padding:4px 7px;gap:6px}
  .d3-centre .d3-pin{font-size:15px}
  .d3-centre strong{font-size:9px}
  .d3-centre>a{font-size:13px}
  .d3-centre.upcoming{height:36px}
  .d3-centre.upcoming .d3-plus{width:14px;height:14px;font-size:12px}
  .d3-centre.upcoming strong{font-size:8px}

  .d3-services-area{padding:13px 0}
  .d3-services-grid{grid-template-columns:1fr;gap:9px}
  .d3-panel{padding:10px 9px;border-radius:7px}
  .d3-services{grid-template-columns:repeat(3,1fr);margin-top:2px}
  .d3-service{min-height:78px;padding:4px 3px}
  .d3-service-icon{width:34px;height:34px;font-size:18px;margin-bottom:5px}
  .d3-service span{font-size:7px}
  .d3-service:nth-child(4){grid-column:1/3;border-top:1px solid #d7e9ee;padding-top:7px}
  .d3-service:nth-child(5){border-top:1px solid #d7e9ee;padding-top:7px}
  .d3-info-list{gap:4px;margin-top:4px}
  .d3-info-list a{padding:5px 6px;font-size:7px}
  .d3-info-list a b{font-size:11px}

  .d3-dark-section{padding:10px 0 12px}
  .d3-bottom-grid{grid-template-columns:1fr;gap:10px}
  .d3-form-panel{padding:10px 11px}
  .d3-form-panel h2{font-size:13px}
  .d3-form-panel p{font-size:7px;margin-bottom:6px}
  .d3-form-row{gap:5px;margin-bottom:5px}
  .d3-form-panel input,.d3-form-panel select{height:24px;font-size:7px;padding:4px 6px}
  .d3-form-panel button{height:24px;font-size:8px}
  .d3-doctor-copy{padding:0 8px}
  .d3-doctor-copy h2{font-size:14px}
  .d3-doctor-copy p{font-size:8px}
  .d3-doctor-photo{height:125px;min-height:125px;max-width:150px;margin:0 auto}

  .footer-grid{grid-template-columns:1fr 1fr;gap:12px}
  footer{padding:18px 0 9px}
  footer .footer-grid>div:first-child{grid-column:1/-1}
  footer .brand img{width:42px;height:42px}
  footer .brand strong{font-size:11px}
  footer a,footer p{font-size:8px}
  .copyright{font-size:7px;white-space:nowrap;overflow:hidden;text-align:center}
  .mobile-bar{position:fixed;display:grid;left:0;right:0;bottom:0;height:60px;grid-template-columns:repeat(3,1fr);background:var(--d3-navy2);z-index:200;border-top:1px solid rgba(255,255,255,.14)}
  .mobile-bar a{display:flex;align-items:center;justify-content:center;flex-direction:column;color:#fff;font-size:8px;font-weight:800;gap:2px}
  .mobile-bar a svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}
  .mobile-bar a:nth-child(2){background:#078d98}
  .mobile-bar a:last-child{background:linear-gradient(135deg,#ffc15a,#ffa72e);color:#173c4b}
}

@media(max-width:480px){
  .d3-hero{min-height:295px;background-size:auto 100%;background-position:58% center}
  .d3-hero .hero-grid{min-height:295px}
  .d3-hero .hero-copy{width:61%;padding-top:21px}
  .d3-hero-kicker{font-size:13px}
  .d3-hero h1{font-size:17px}
  .d3-hero h1 strong{font-size:21px}
  .d3-hero h1 small{font-size:12px}
  .d3-hero-values{font-size:7px}
  .d3-hero .hero-actions .btn{font-size:6.5px;padding:6px 5px}
  .d3-centre{height:29px;min-height:29px}
}

/* Final Design 3 navigation/action refinements */
.nav-actions .btn-outline-dark{border:1px solid rgba(255,255,255,.65);background:transparent;color:#fff;padding:10px 13px}
.nav-actions .btn-teal{border:1px solid rgba(255,255,255,.18)}

@media(max-width:820px){
  .mobile-bar{grid-template-columns:repeat(5,1fr);height:60px}
  .mobile-bar a{font-size:7px;gap:1px}
  .mobile-bar a:first-child,.mobile-bar a:nth-child(2),.mobile-bar a:nth-child(4),.mobile-bar a:nth-child(5){background:var(--d3-navy2);color:#fff}
  .mobile-bar a.mobile-book{background:linear-gradient(135deg,#ffc15a,#ffa72e);color:#173c4b;border-radius:50%;width:50px;height:50px;align-self:center;justify-self:center;margin-top:-16px;border:3px solid #fff;box-shadow:0 4px 12px rgba(0,0,0,.2)}
  .mobile-bar a.mobile-book span{font-weight:900}
}
