:root {
  --font-sans: "Noto Sans Bengali", "Hind Siliguri", "SolaimanLipi", "Kalpurush", sans-serif;
  --green-900: #0f5f2d;
  --green-800: #1f7a3b;
  --green-700: #2d934a;
  --green-600: #3ead5c;
  --green-100: #e8f7ec;
  --green-50: #f3fbf5;
  --text-900: #173025;
  --text-700: #355346;
  --text-500: #5f7d6f;
  --white: #ffffff;
  --surface: #f7fcf8;
  --shadow-sm: 0 6px 16px rgba(20, 85, 45, 0.1);
  --shadow-md: 0 12px 28px rgba(20, 85, 45, 0.14);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --maxw: 1060px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 8% 0%, #dff3e5 0, transparent 28%),
    radial-gradient(circle at 90% 10%, #ecf8ef 0, transparent 32%),
    linear-gradient(180deg, #f6fbf7 0%, #edf5ef 62%, #e8f1eb 100%);
  color: var(--text-900);
  min-height: 100vh;
  padding-bottom: calc(138px + env(safe-area-inset-bottom));
  line-height: 1.45;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 12px;
  z-index: 1200;
  background: var(--green-900);
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background:
    linear-gradient(180deg, rgba(250, 255, 251, 0.97) 0%, rgba(245, 253, 247, 0.94) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid #cae3d2;
  border-radius: 18px;
  width: min(var(--maxw), calc(100% - 16px));
  margin: 8px auto 0;
  padding: 10px 12px 12px;
  box-shadow: 0 10px 24px rgba(20, 85, 45, 0.11);
}

.appbar-row {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
}

.app-title {
  margin: 0;
  text-align: center;
  font-size: 1.14rem;
  line-height: 1.2;
  color: var(--green-900);
  font-weight: 800;
  letter-spacing: 0.2px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #d1e7d8;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.appbar-row .icon-btn {
  border-color: #c6e3cf;
  background: linear-gradient(180deg, #ffffff 0%, #eff9f2 100%);
  box-shadow: 0 4px 12px rgba(20, 85, 45, 0.1);
}

.appbar-actions {
  position: relative;
}

.kebab-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 190px;
  border: 1px solid #cee6d5;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: 6px;
  display: grid;
  gap: 4px;
}

.kebab-menu button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-900);
}

.kebab-menu button:hover,
.kebab-menu button:focus-visible {
  background: var(--green-100);
}

.global-search {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.global-search input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #bddac6;
  background: #ffffff;
  height: 44px;
  padding: 0 15px;
  color: var(--text-900);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.global-search button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #f1fbf4 0%, #dff3e5 100%);
  color: var(--green-900);
  min-width: 80px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #cae2d2;
}

.updated-pill {
  margin: 9px 2px 0;
  color: var(--text-700);
  font-size: 0.84rem;
  text-align: right;
}

.app-main {
  width: min(var(--maxw), calc(100% - 16px));
  margin: 12px auto 46px;
}

.view-loading {
  display: grid;
  gap: 12px;
}

.skeleton {
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, #edf6ef 25%, #f7fcf8 37%, #edf6ef 63%);
  background-size: 220% 100%;
  animation: shimmer 1.2s linear infinite;
}

.skeleton.hero {
  height: 150px;
}

.skeleton.row {
  height: 76px;
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

.screen {
  display: grid;
  gap: 14px;
}

.section-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 24px rgba(23, 74, 44, 0.08);
  border: 1px solid #d6e7dc;
  padding: 14px;
}

.screen-title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--green-900);
}

.screen-subtitle {
  margin: 5px 0 0;
  color: var(--text-700);
  font-size: 0.9rem;
}

.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #cde4d4;
  box-shadow: 0 12px 24px rgba(20, 85, 45, 0.14);
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

.slide {
  min-width: 100%;
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.slide img {
  width: 100%;
  height: 174px;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: linear-gradient(180deg, rgba(12, 60, 30, 0.66) 0%, rgba(10, 47, 24, 0.8) 100%);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 9px 10px;
  color: #f4fff6;
}

.slide-content h3 {
  margin: 0;
  font-size: 0.95rem;
}

.slide-content p {
  margin: 3px 0 0;
  font-size: 0.78rem;
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.62);
}

.carousel-dot.active {
  width: 18px;
  border-radius: 999px;
  background: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.service-item {
  border: 1px solid #d6e8dd;
  border-radius: 15px;
  padding: 10px 7px 11px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  background:
    radial-gradient(circle at 20% 8%, rgba(142, 221, 166, 0.2) 0, transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f8fcfa 100%);
  cursor: pointer;
  min-height: 102px;
  box-shadow: 0 7px 16px rgba(20, 85, 45, 0.09);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.service-item img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.service-item span {
  font-size: 0.82rem;
  line-height: 1.3;
  text-align: center;
  color: var(--text-900);
  font-weight: 600;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.service-item:active {
  transform: scale(0.98);
}

.service-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(20, 85, 45, 0.12);
}

.toggle-more {
  border: 0;
  background: transparent;
  color: var(--green-800);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 10px 4px 2px;
}

.row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.row-head h2,
.row-head h3 {
  margin: 0;
  font-size: 1.06rem;
  color: var(--green-900);
  font-weight: 800;
}

.featured-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 2px;
}

.featured-scroll::-webkit-scrollbar {
  height: 6px;
}

.feature-card {
  scroll-snap-align: start;
  border: 1px solid #d8ebde;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.feature-card img {
  height: 92px;
  width: 100%;
  object-fit: cover;
}

.feature-card p {
  margin: 8px 9px 10px;
  font-size: 0.84rem;
  font-weight: 700;
}

.search-hidden {
  display: none !important;
}

.search-hit {
  box-shadow: 0 0 0 2px #8dd0a5 inset;
}

.quick-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fact-chip {
  border: 1px solid #d3e9d9;
  border-radius: 14px;
  background: linear-gradient(180deg, #fcfffd, #f1f9f4);
  padding: 12px;
  min-height: 102px;
}

.fact-chip p {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-700);
}

.fact-chip h4 {
  margin: 6px 0 0;
  color: var(--green-900);
  font-size: 0.9rem;
}

.filter-chip-wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filter-chip {
  border: 1px solid #cde5d4;
  background: #fff;
  color: var(--text-700);
  border-radius: 999px;
  font-size: 0.82rem;
  padding: 7px 12px;
  white-space: nowrap;
  cursor: pointer;
}

.filter-chip.active {
  border-color: var(--green-700);
  background: var(--green-100);
  color: var(--green-900);
  font-weight: 700;
}

.list-stack {
  display: grid;
  gap: 10px;
}

.item-card {
  border: 1px solid #d7ebdd;
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}

.item-card h3,
.item-card h4 {
  margin: 0;
  font-size: 0.96rem;
  color: var(--green-900);
}

.item-card p {
  margin: 5px 0 0;
  color: var(--text-700);
  font-size: 0.85rem;
}

.source {
  margin-top: 8px;
  color: var(--text-500);
  font-size: 0.72rem;
}

.source span {
  color: var(--green-800);
  font-weight: 600;
}

.link-btn,
.btn {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--green-800), var(--green-700));
  color: #fff;
  padding: 10px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn.secondary {
  background: #eff9f2;
  color: var(--green-900);
  border: 1px solid #d0e7d7;
}

.btn.outline {
  background: transparent;
  color: var(--green-900);
  border: 1px solid #b9dac4;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 28, 18, 0.42);
  z-index: 1150;
  border: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.side-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(84vw, 320px);
  background: #fff;
  z-index: 1200;
  transform: translateX(-102%);
  transition: transform 0.28s ease;
  box-shadow: 0 16px 38px rgba(10, 44, 24, 0.26);
  padding: 16px 14px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
}

.side-drawer.open {
  transform: translateX(0);
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.drawer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2efe7;
}

.drawer-head h2 {
  margin: 0;
  font-size: 1rem;
}

.drawer-head p {
  margin: 2px 0 0;
  color: var(--text-500);
  font-size: 0.78rem;
}

.drawer-nav {
  display: grid;
  gap: 5px;
}

.drawer-nav a {
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--text-900);
  border: 1px solid transparent;
}

.drawer-nav a:hover,
.drawer-nav a:focus-visible {
  background: var(--green-100);
  border-color: #d0e8d8;
}

.drawer-nav a.active {
  background: var(--green-100);
  border-color: #c6e1ce;
  color: var(--green-900);
  font-weight: 700;
}

.drawer-social h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--green-900);
}

.drawer-social ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.drawer-social a {
  font-size: 0.84rem;
  color: var(--text-700);
}

.drawer-call {
  display: inline-flex;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #278a46, #1b6d36);
  color: #fff;
  padding: 11px;
  font-weight: 700;
}

.bottom-nav {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 1100;
  background: rgba(255, 255, 255, 0.99);
  border-radius: 16px;
  border: 1px solid #d3e8da;
  box-shadow: 0 10px 24px rgba(17, 61, 34, 0.16);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.bottom-item {
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 8px 4px 7px;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--text-500);
  font-size: 0.74rem;
  line-height: 1.05;
  cursor: pointer;
}

.bottom-item img {
  width: 18px;
  height: 18px;
}

.bottom-item.active {
  background: linear-gradient(180deg, #e9f8ed 0%, #def2e4 100%);
  color: var(--green-900);
  font-weight: 700;
}

.bottom-item span {
  font-weight: 600;
}

.service-block ul,
.guide-steps,
.clean-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.service-block li,
.guide-steps li,
.clean-list li {
  margin-bottom: 5px;
  color: var(--text-700);
  font-size: 0.87rem;
}

.service-block h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--green-900);
}

.union-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.union-pill-btn {
  border: 1px solid #d5eadb;
  background: #fff;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.79rem;
  color: var(--text-700);
  cursor: pointer;
}

.union-pill-btn:hover,
.union-pill-btn:focus-visible {
  border-color: #b9ddc5;
  background: #f2faf5;
}

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.specialty-card {
  border: 1px solid #d5e9db;
  border-radius: 14px;
  text-align: center;
  padding: 11px 6px;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(20, 85, 45, 0.07);
}

.specialty-card img {
  width: 26px;
  height: 26px;
  margin-inline: auto;
}

.specialty-card h3 {
  margin: 8px 0 2px;
  font-size: 0.78rem;
}

.prompt-line {
  margin: 8px 0 0;
  background: #e6f5e9;
  color: var(--green-900);
  border-left: 4px solid var(--green-700);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.ad-banner {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d4e9da;
}

.ad-banner img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.doctor-search {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.doctor-search input {
  flex: 1;
  border-radius: 12px;
  border: 1px solid #cde4d4;
  padding: 10px;
}

.doctor-list {
  display: grid;
  gap: 10px;
}

.doctor-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  border: 1px solid #d8ecde;
  border-radius: 14px;
  padding: 10px;
  background: #fff;
}

.doctor-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #d3ead9;
}

.doctor-meta h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--green-900);
}

.doctor-meta p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--text-700);
}

.doctor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.doctor-actions button {
  padding: 7px 9px;
  border-radius: 9px;
  border: 1px solid #c8e2d0;
  background: #eff9f2;
  color: var(--green-900);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.float-btn {
  position: fixed;
  right: 16px;
  bottom: calc(90px + env(safe-area-inset-bottom));
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(145deg, #2ea356, #1c7839);
  color: #fff;
  font-size: 1.7rem;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 900;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 28, 18, 0.5);
  display: grid;
  place-items: center;
  padding: 14px;
  z-index: 1300;
}

.modal {
  width: min(720px, 100%);
  max-height: calc(100vh - 30px);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid #d2e8d9;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e3f0e7;
  padding: 10px 12px;
}

.modal-head h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--green-900);
}

.modal-body {
  padding: 12px;
}

.modal-body form,
.booking-form,
.login-form {
  display: grid;
  gap: 10px;
}

.modal-body label,
.booking-form label,
.login-form label {
  display: grid;
  gap: 5px;
  font-size: 0.84rem;
  color: var(--text-700);
}

.modal-body input,
.modal-body textarea,
.booking-form input,
.booking-form textarea,
.booking-form select,
.login-form input {
  border: 1px solid #cde4d4;
  border-radius: 10px;
  padding: 10px;
  color: var(--text-900);
  background: #fff;
}

.booking-card {
  border: 1px solid #d6eadc;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.contact-hero {
  text-align: center;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
}

.notice-card {
  border: 1px solid #d7ecdd;
  border-radius: 14px;
  padding: 11px;
  background: #fff;
}

.notice-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.notice-category {
  font-size: 0.76rem;
  color: var(--green-900);
  font-weight: 700;
  text-transform: uppercase;
}

.notice-date {
  font-size: 0.76rem;
  color: var(--text-500);
}

.new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ffefc8;
  color: #925f00;
  font-size: 0.66rem;
  font-weight: 800;
}

.profile-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-user img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.quick-btn-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.quick-btn-row button {
  border: 1px solid #d2e7d8;
  border-radius: 10px;
  background: #f3fbf5;
  color: var(--green-900);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 9px 6px;
}

.profile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.profile-menu button {
  width: 100%;
  border: 1px solid #d6eadc;
  border-radius: 12px;
  background: #fff;
  color: var(--text-900);
  padding: 11px;
  text-align: left;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  color: var(--text-500);
  font-size: 0.84rem;
  border: 1px dashed #cfe5d6;
  border-radius: 12px;
  padding: 16px;
}

.toast-host {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 1400;
  display: grid;
  gap: 8px;
}

.toast {
  background: #163d25;
  color: #ecfff2;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.82rem;
  box-shadow: var(--shadow-md);
}

.noscript-box {
  margin: 10px;
  border-radius: 10px;
  border: 1px solid #f1d6a0;
  background: #fff7ea;
  color: #7f510f;
  padding: 10px 12px;
}

input:focus-visible,
button:focus-visible,
a:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #2a9050;
  outline-offset: 2px;
}

@media (min-width: 760px) {
  body {
    padding-bottom: 24px;
  }

  .app-header {
    width: min(var(--maxw), calc(100% - 24px));
    margin: 10px auto 0;
    border-radius: 18px;
    border: 1px solid #d4e8da;
    box-shadow: var(--shadow-sm);
  }

  .app-main {
    margin-top: 14px;
    margin-bottom: 26px;
  }

  .bottom-nav {
    display: none;
  }

  .featured-scroll {
    grid-auto-columns: 34%;
  }

  .quick-facts-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .specialty-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
  }

  .doctor-card {
    grid-template-columns: 72px 1fr;
  }

  .doctor-avatar {
    width: 72px;
    height: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
