﻿html, body {
  font-family: 'Hind Siliguri', sans-serif;
  background: radial-gradient(circle at top, #eefbfd 0%, #f4fcff 35%, #f8fcff 100%);
  color: #0b4f57;
  min-height: 100%;
}
:root {
  --primary: #0a899a;
  --primary-light: #dff6fa;
  --primary-dark: #065f6b;
  --doctor-accent: #0db4ca;
  --doctor-soft: #ecfbff;
  --dark-bg: #121212;
  --dark-card: #181932;
  --dark-card-box: #201f43;
  --dark-card-faq: #12112f;
  --dark-text: #9193a8;
  --dark-border: #374151;
  --dark-footer: #1a1b2e;
  --transition: all .25s cubic-bezier(.23,1.08,.77,1.01);
}
body.dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}
/* BG */
.bg-primary { background-color: #197a87 !important; }
.dark .bg-primary { background-color: rgb(15 14 43) !important; }
.dark .bg-light, .dark .bg-white {
  background: var(--dark-card) !important;
  color: var(--dark-text);
}
.dark .bg-primary-subtle { background-color: rgba(13,110,253,0.2) !important; color: #93c5fd !important; }
.dark .bg-success-subtle { background-color: rgba(25,135,84,0.2) !important; color: #86efac !important; }
/* TEXT */
.dark .text-muted { color: #bbb !important; }
.dark .text-secondary { color: #aaa !important; }
/* CARDS */
.dark .card {
  background: var(--dark-card-box) !important;
  border-color: var(--dark-border) !important;
  color: var(--dark-text);
}
.dark .doctor-card { background: var(--dark-card-box); border-color: var(--dark-border); }
.dark .doctor-card img { border-color: var(--primary-dark) !important; }
.dark .doctor-card h2, .dark .doctor-card .rating span { color: #93c5fd !important; }
/* NAVBAR */
.dark .navbar, .dark .drawer-header { border-bottom: 1px solid var(--dark-border); }
.dark .app-drawer, .dark .drawer-header { background: var(--dark-card) !important; color: var(--dark-text); }
.dark .app-drawer .nav-link { color: var(--dark-text); }
.dark .app-drawer .nav-link:hover { background: var(--dark-border); }
.dark .navbar-nav .nav-link { color: var(--dark-text); }
.dark .navbar-nav .nav-link.active { color: #7fb1fa !important; }
/* HEADER */
header { background: var(--primary-light); }
.dark header { background: var(--dark-card); }
/* MARQUEE */
.banner-slide {
  background: linear-gradient(135deg, #065f6b 0%, #0a899a 40%, #0db4ca 70%, #0a899a 100%);
  position: relative; overflow: hidden;
}
.banner-slide::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.04) 100%);
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
.marquee {
  animation: marquee 20s linear infinite;
  white-space: nowrap; display: inline-block;
  color: #ffffff; font-weight: 600; font-size: 1rem;
  letter-spacing: 0.3px; text-shadow: 0 1px 3px rgba(0,0,0,0.2);
  position: relative; z-index: 1;
}
.dark .marquee { color: #b2ebf2; }
.dark .banner-slide { background: linear-gradient(135deg, #021a1f 0%, #032d33 50%, #054f5a 100%) !important; }
@keyframes marquee { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
/* BANNER PLACEHOLDER */
.banner-placeholder {
  position: relative; width: 100%;
  border-radius: 18px; background: var(--primary-light);
  overflow: hidden; aspect-ratio: 2.5/1; min-height: 180px;
}
.banner-imgs {
  position: absolute; width: 100%; object-fit: cover;
  left: 0; top: 0; opacity: 0; filter: blur(6px);
  transition: opacity 1.3s, filter 1.3s;
}
.banner-imgs.active { opacity: 1; filter: blur(0); }
.dark .banner-placeholder { background: #112044; }
@media (max-width: 768px) { .banner-placeholder { aspect-ratio: 2.4/1; min-height: 110px; } }
/* FORMS */
.dark .form-control, .dark .form-select {
  background-color: var(--dark-card); color: var(--dark-text); border-color: var(--dark-border);
}
.dark .form-control:focus, .dark .form-select:focus {
  background-color: var(--dark-card); color: var(--dark-text);
  border-color: var(--primary); box-shadow: 0 0 0 0.25rem rgba(10,137,154,0.25);
}
.dark .form-control::placeholder { color: #6b7280; }
/* BUTTONS */
.dark .btn-outline-secondary { color: var(--dark-text); border-color: var(--dark-border); }
.dark .btn-outline-secondary:hover { background-color: var(--dark-border); color: var(--dark-text); }
.btn-primary {
  --bs-btn-color: #fff; --bs-btn-bg: #0a899a;
  --bs-btn-border-color: #077686; --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0b9fb3; --bs-btn-hover-border-color: #0892a5;
  --bs-btn-active-color: #fff; --bs-btn-active-bg: #066876;
  --bs-btn-active-border-color: #055763;
  box-shadow: 0 10px 24px rgba(10,137,154,0.28);
}
/* SEARCH FORM BOX */
.search-form-box {
  background: linear-gradient(180deg, #ffffff 0%, #f3fcff 100%);
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid rgba(10,137,154,0.16);
  box-shadow: 0 10px 28px rgba(6,95,107,0.12);
}
.dark .search-form-box {
  background: var(--dark-card) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
/* FILTER SIDEBAR */
.filter-sidebar {
  border: 1px solid rgba(10,137,154,0.2);
  background: linear-gradient(180deg, #ffffff 0%, #f7fdff 100%);
  box-shadow: 0 10px 24px rgba(6,95,107,0.1);
  position: sticky;
  top: 20px;
}
.dark .filter-sidebar { background: var(--dark-card) !important; border-color: var(--dark-border); color: var(--dark-text); }
.dark .filter-sidebar h5, .dark .filter-sidebar h6, .dark .form-check-label { color: #e2e8f0; }
.dark .filter-sidebar hr { border-color: var(--dark-border); }
@media (max-width: 991px) {
  .filter-select { font-size: 0.8rem; padding: 0.375rem 1.5rem 0.375rem 0.5rem; }
}
.rating-option { color: #f1c40f; }
/* DOCTOR CARD */
.doctor-card {
  overflow: hidden; display: flex; align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f5fcff 100%);
  border: 1px solid rgba(10,137,154,0.14);
  border-radius: 12px; padding: 20px;
  grid-gap: 15px; margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(6,95,107,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.doctor-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(10,137,154,0.26); }
.doctor-photo { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin-bottom: 5px; }
.rating-stars { color: #f1c40f; font-size: 16px; margin-bottom: 5px; }
.rating-stars span { font-size: 0.8em; color: #444; }
.dark .rating-stars span { color: #93c5fd; }
.fee-badge {
  position: absolute; top: 10px; right: -25px;
  width: 100px; background: linear-gradient(135deg, rgba(11,127,212,0.95), rgba(232,29,98,0.92)); color: white;
  padding: 5px 0; border-radius: 4px; font-size: 12px;
  font-weight: 600; transform: rotate(45deg); transform-origin: center;
  z-index: 10; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  text-align: center;
}
.dark .fee-badge { background: linear-gradient(135deg, rgba(74,144,226,0.95), rgba(133,78,255,0.92)); color: #fff; }
@media (max-width: 480px) {
  .fee-badge { padding: 4px 0; font-size: 10px; top: 10px; right: -25px; width: 100px; text-align: center; }
}
.book-btn {
  background: linear-gradient(90deg, #037989, #4bb3b9); color: white;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 0.9rem; font-weight: 600; padding: 5px 10px;
  border-radius: 8px; border: none; cursor: pointer;
  transition: all 0.3s ease; flex: 1; text-decoration: none;
  position: relative; overflow: hidden; isolation: isolate;
}
.book-btn::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -45%;
  width: 40%;
  height: 140%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.72), rgba(255,255,255,0));
  transform: skewX(-22deg);
  pointer-events: none;
  animation: doctorListBookShine 2.4s linear infinite;
}
.book-btn:hover { background-color: #009e7a; color: white; }
@keyframes doctorListBookShine {
  0% { left: -45%; opacity: 0; }
  15% { opacity: 1; }
  55% { left: 120%; opacity: 0; }
  100% { left: 120%; opacity: 0; }
}
.doctor-list-marquee-wrap {
  width: 100%;
  border-radius: 0;
  background: linear-gradient(90deg, #044f58 0%, #0a899a 45%, #0db4ca 100%);
  padding: 12px 0;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(6,95,107,0.28);
}
.doctor-list-marquee {
  display: inline-block;
  white-space: nowrap;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  padding-left: 100%;
  animation: doctorListMarquee 20s linear infinite;
}
.doctor-list-marquee i { color: #ffd166; }
.dark .doctor-list-marquee-wrap {
  background: linear-gradient(90deg, #043840, #086677);
  box-shadow: 0 6px 18px rgba(5,26,31,0.45);
}
.form-select:focus, .form-control:focus {
  border-color: #0a899a;
  box-shadow: 0 0 0 0.25rem rgba(10,137,154,0.2);
}
#mainSearchBtn {
  background: linear-gradient(90deg, #067486, #0a899a);
  border-color: #067486;
  box-shadow: 0 12px 24px rgba(10,137,154,0.3);
}
#mainSearchBtn:hover {
  background: linear-gradient(90deg, #06616f, #07879a);
  border-color: #06616f;
}
@keyframes doctorListMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.doctor-info { margin-left: 20px; flex: 1; text-align: left; }
.doctor-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(45deg, #0b7fd4, #e81d62);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-transform: capitalize;
}
.dark .doctor-name {
  background: linear-gradient(45deg, #7bc6ff, #f28bb8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.doctor-name a {
  color: inherit;
  text-decoration: none;
  text-transform: inherit;
}
.doctor-info p { margin: 5px 0; font-size: 14px; color: #444; }
.dark .doctor-info p { color: #b0bec5; }
.doc-icon { color: #00b894; font-size: 12px; margin-right: 5px; }
@media (max-width: 480px) {
  .doctor-card { align-items: flex-start; }
  .doctor-info { margin-left: 0; margin-top: 10px; }
}
/* NAVBAR */
.navbar { padding: 0.7rem 0; }
.navbar-brand { font-size: 1.5rem; font-weight: bold; }
.navbar-nav .nav-link { font-weight: 500; color: #222; }
.navbar-nav .nav-link.active, .navbar-nav .nav-link:focus { color: var(--primary) !important; }
@media (max-width: 991px) {
  .navbar-brand { order: 1; margin-right: auto; }
  .theme-toggle-mobile { order: 2; margin-left: auto; margin-right: 10px; }
  .drawer-toggle-mobile { order: 3; }
}
/* DRAWER */
.app-drawer {
  position: fixed; top: 0; left: -260px;
  width: 250px; height: 100%; background: #fff;
  z-index: 2000; box-shadow: 2px 0 10px rgba(0,0,0,0.09);
  transition: left 0.32s var(--transition);
}
.app-drawer.open { left: 0; }
.drawer-header {
  padding: 1.1rem 1.4rem 0.6rem; font-size: 1.18rem; font-weight: 600;
  border-bottom: 1px solid #eee;
  display: flex; align-items: center; justify-content: space-between;
}
.app-drawer .nav-link { color: #222; font-size: 1.08rem; padding: 1rem 1.5rem; }
.app-drawer .nav-link:hover { background: #f6f8fa; color: var(--primary); }
.drawer-backdrop {
  position: fixed; z-index: 1099;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.15); display: none;
}
.drawer-backdrop.show { display: block; }
/* SECTION */
.section-alt { background: #f0f8f9; }
.dark .section-alt { background: var(--dark-card-faq) !important; }
/* MEET SECTION */
.meet { text-align: center; }
.meet .border-bottom {
  border-bottom: 2px solid var(--primary);
  width: 100px;
  margin: 1rem auto;
}
/* FILTER CONTAINER */
.filter-container { display: flex; justify-content: flex-end; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 10px; }
.filter-container select { max-width: 220px; }
@media (max-width: 768px) { .filter-container { justify-content: center; } .filter-container select { max-width: 100%; } }
/* FORM LABELS */
.form-label { margin-bottom: .1rem; margin-top: .5rem; }
.form-label-header { font-size: 17px; font-weight: 700; text-align: center; border-bottom: 1px solid currentColor; padding-bottom: 4px; color: var(--primary); }
/* SELECT AREA */
.select-area { text-align: center; }
.select-area-img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
/* SOCIAL */
.social-icons a { font-size: 1.38rem; margin-right: 0.8rem; color: #3dd6e8; }
.dark .social-icons a { color: #3dd6e8; }
.social-icons a:last-child { margin-right: 0; }
/* CARD */
.card { transition: var(--transition); }
.card:hover { transform: translateY(-4px); }
/* FOOTER */
footer {
  background: linear-gradient(160deg, #043d46 0%, #065f6b 50%, #043d46 100%);
  padding: 4rem 0 2rem; color: #cce8ec;
  position: relative; overflow: hidden;
}
footer::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(10,137,154,0.2) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
footer::after {
  content: ''; position: absolute; bottom: -40px; left: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(13,180,202,0.12) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.dark footer { background: linear-gradient(160deg, #021a1f 0%, #032d33 50%, #021a1f 100%) !important; color: #90c8cf; }
.dark footer h4, .dark footer h5 { color: #3dd6e8 !important; }
/* RESPONSIVE */
@media (max-width: 480px) {
  .navbar-nav .nav-link { font-size: 1.03rem; }
  .navbar-brand { font-size: 1.15rem; }
}
