:root{
  --primary:#075fd6;
  --primary-dark:#0349a6;
  --accent:#25d366;
  --ink:#14213d;
  --muted:#667085;
  --soft:#f5f8ff;
  --border:#e4e7ec;
  --white:#fff;
  --shadow:0 14px 35px rgba(16,24,40,.08);
  --radius:22px;
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--ink);
  background:#fff;
  line-height:1.65;
}

a{text-decoration:none;color:inherit}

.container{
  width:min(1180px,92%);
  margin:auto;
}

/* HEADER */
.site-header{
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:100;
  backdrop-filter:blur(12px);
}

.nav-wrap{
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:25px;
  font-weight:900;
  color:var(--primary);
  letter-spacing:-.5px;
}

.brand em{font-style:normal;color:var(--ink)}

.brand-icon{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--primary),#4da3ff);
  color:#fff;
  font-weight:900;
}

.main-nav{
  display:flex;
  gap:24px;
  font-size:14px;
  font-weight:700;
}

.main-nav a:hover{color:var(--primary)}

.header-actions{
  display:flex;
  gap:10px;
}

.menu-btn{
  display:none;
  border:1px solid var(--border);
  background:#fff;
  border-radius:12px;
  padding:9px 12px;
  font-size:22px;
}

.mobile-panel{display:none}

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  padding:12px 18px;
  font-size:14px;
  font-weight:900;
  border:1px solid transparent;
  transition:.2s ease;
  cursor:pointer;
}

.btn:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
}

.btn-primary{
  background:var(--primary);
  color:#fff;
}

.btn-primary:hover{background:var(--primary-dark)}

.btn-light{
  background:#fff;
  color:var(--primary);
  border-color:#b9d2ff;
}

.btn-wa,
.btn-whatsapp{
  background:var(--accent);
  color:#fff;
}

.btn-call{
  background:var(--primary);
  color:#fff;
}

.btn-outline{
  background:#fff;
  color:var(--primary);
  border-color:var(--primary);
}

.btn-outline:hover{
  background:var(--primary);
  color:#fff;
}

/* HERO */
.hero{
  background:linear-gradient(120deg,#eef5ff 0%,#fff 52%,#e9f3ff 100%);
  padding:64px 0 48px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:32px;
  align-items:center;
}

.eyebrow{
  display:inline-flex;
  background:#fff;
  border:1px solid #cfe0ff;
  color:var(--primary);
  padding:7px 12px;
  border-radius:999px;
  font-weight:900;
  font-size:13px;
  margin-bottom:18px;
}

h1{
  font-size:clamp(36px,5vw,64px);
  line-height:1.08;
  margin:0 0 18px;
  letter-spacing:-1.6px;
}

.hero p{
  font-size:18px;
  color:var(--muted);
  margin:0 0 24px;
  max-width:760px;
}

.breadcrumbs{
  font-size:14px;
  color:var(--muted);
  margin-bottom:18px;
}

.breadcrumbs a{
  color:var(--primary);
  font-weight:700;
}

/* SEARCH */
.search-box{
  background:#fff;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  border-radius:20px;
  padding:10px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  max-width:780px;
}

.search-box input{
  border:0;
  outline:0;
  font-size:16px;
  padding:14px 16px;
  border-radius:14px;
}

/* STATS */
.hero-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-top:22px;
}

.stat-card,
.hero-card,
.content-card,
.listing-card,
.admin-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:var(--shadow);
}

.stat-card strong{
  display:block;
  color:var(--primary);
  font-size:26px;
}

/* SECTIONS */
.section{
  padding:58px 0;
}

.section-soft{
  background:#f8fafc;
}

.section h2{
  font-size:34px;
  margin:0 0 20px;
  letter-spacing:-.6px;
}

.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:24px;
}

.section-head p{
  margin:6px 0 0;
  color:var(--muted);
}

/* CARDS */
.card-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.link-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:22px;
  box-shadow:0 6px 18px rgba(16,24,40,.05);
  font-weight:900;
  display:flex;
  align-items:center;
  gap:12px;
  min-height:78px;
  transition:.2s ease;
}

.link-card:hover{
  transform:translateY(-2px);
  border-color:#9cc0ff;
  box-shadow:var(--shadow);
}

/* LISTING PAGE */
.main-section{
  padding:60px 0 80px;
  background:#f8fafc;
}

.layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:30px;
  align-items:start;
}

.section-title{
  font-size:28px;
  margin:0 0 22px;
  font-weight:900;
  letter-spacing:-.5px;
}

.doctor-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:22px;
  padding:26px;
  margin-bottom:24px;
  box-shadow:var(--shadow);
  transition:.2s ease;
}

.doctor-card:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 40px rgba(16,24,40,.12);
}

.doctor-head{
  display:grid;
  grid-template-columns:60px 1fr auto;
  gap:16px;
  align-items:start;
  margin-bottom:14px;
}

.rank{
  width:48px;
  height:48px;
  border-radius:14px;
  background:linear-gradient(135deg,var(--primary),#4da3ff);
  color:#fff;
  display:grid;
  place-items:center;
  font-size:20px;
  font-weight:900;
}

.doctor-card h2{
  margin:0 0 6px;
  font-size:24px;
  font-weight:900;
  color:#101828;
  letter-spacing:-.3px;
}

.meta{
  color:var(--muted);
  font-size:14px;
  margin-bottom:5px;
}

.rating-box{
  text-align:right;
  font-weight:900;
  color:#f59e0b;
  font-size:16px;
  white-space:nowrap;
}

.reviews{
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

.doctor-card p{
  color:#344054;
  margin:14px 0 18px;
  line-height:1.7;
}

.doctor-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.content-block,
.sidebar-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:22px;
  padding:24px;
  box-shadow:var(--shadow);
  margin-bottom:22px;
}

.sidebar-card h3{
  margin:0 0 12px;
  font-size:21px;
}

.city-links a{
  display:block;
  padding:11px 0;
  border-bottom:1px solid var(--border);
  color:var(--primary);
  font-weight:800;
  transition:.2s ease;
}

.city-links a:hover{
  color:var(--primary-dark);
}

/* OLD LISTING CARD */
.listing-card{
  margin-bottom:18px;
}

.listing-head{
  display:flex;
  justify-content:space-between;
  gap:15px;
}

.rating{
  color:#f59e0b;
  font-weight:900;
}

.grid-2{
  display:grid;
  grid-template-columns:1fr 330px;
  gap:24px;
}

/* FORMS */
input,
select,
textarea{
  width:100%;
  padding:12px;
  border:1px solid var(--border);
  border-radius:10px;
  font:inherit;
}

textarea{
  min-height:120px;
}

/* TABLE */
.table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
}

.table th,
.table td{
  border-bottom:1px solid var(--border);
  padding:12px;
  text-align:left;
}

/* ADMIN */
.admin-layout{
  display:grid;
  grid-template-columns:230px 1fr;
  min-height:100vh;
}

.admin-sidebar{
  background:#08172d;
  color:#fff;
  padding:24px;
}

.admin-sidebar a{
  display:block;
  color:#fff;
  padding:10px 0;
}

.admin-main{
  padding:28px;
  background:#f8fafc;
}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

/* FOOTER */
.site-footer{
  background:#08172d;
  color:#d0d5dd;
  padding:48px 0 92px;
}

.footer-grid{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr 1fr;
  gap:28px;
}

.site-footer h3{
  color:#fff;
  margin:0 0 12px;
}

.site-footer a{
  display:block;
  color:#d0d5dd;
  margin:7px 0;
}

.site-footer a:hover{
  color:#fff;
}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  margin-top:28px;
  padding-top:18px;
  display:flex;
  justify-content:space-between;
  gap:16px;
  color:#98a2b3;
  font-size:14px;
}

/* STICKY CONTACT */
.sticky-contact{
  position:fixed;
  right:18px;
  bottom:20px;
  z-index:999;
  display:flex;
  gap:10px;
}

.sticky-contact a{
  color:#fff;
  border-radius:999px;
  padding:14px 18px;
  font-weight:900;
  box-shadow:0 12px 26px rgba(16,24,40,.22);
}

.sticky-call{
  background:var(--primary);
}

.sticky-wa{
  background:var(--accent);
}

/* RESPONSIVE */
@media(max-width:980px){
  .main-nav,
  .header-actions{
    display:none;
  }

  .menu-btn{
    display:block;
  }

  .menu-open .mobile-panel{
    display:grid;
    border-top:1px solid var(--border);
    background:#fff;
  }

  .mobile-panel a{
    padding:14px 4%;
    border-bottom:1px solid var(--border);
    font-weight:800;
  }

  .hero-grid,
  .grid-2,
  .footer-grid,
  .layout{
    grid-template-columns:1fr;
  }

  .card-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .hero-stats{
    grid-template-columns:1fr;
  }

  .search-box{
    grid-template-columns:1fr;
  }

  .doctor-head{
    grid-template-columns:50px 1fr;
  }

  .rating-box{
    grid-column:2;
    text-align:left;
    margin-top:5px;
  }

  .doctor-actions{
    flex-direction:column;
  }

  .doctor-actions .btn{
    width:100%;
  }

  .sticky-contact{
    left:0;
    right:0;
    bottom:0;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0;
  }

  .sticky-contact a{
    border-radius:0;
    text-align:center;
    padding:15px 8px;
  }

  .site-footer{
    padding-bottom:86px;
  }

  .admin-layout{
    grid-template-columns:1fr;
  }

  .form-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:560px){
  .card-grid{
    grid-template-columns:1fr;
  }

  .section{
    padding:42px 0;
  }

  .main-section{
    padding:42px 0 70px;
  }

  .hero{
    padding:42px 0;
  }

  .brand{
    font-size:20px;
  }

  h1{
    font-size:34px;
  }

  .section h2{
    font-size:28px;
  }

  .doctor-card{
    padding:20px;
  }
}