/**
 * UDMDR / UMDRS � Government portal design system
 * Aligned with mockups: deep forest green, gold accents, watermarks, responsive.
 */

:root {
  /* Bangladesh-inspired palette */
  --udmdr-green-mock: #1b4332;
  --udmdr-green: #006a4e;
  --udmdr-green-deep: #004d33;
  --udmdr-green-dark: #003d28;
  --udmdr-green-soft: #e6f2ed;
  --udmdr-gold: #c9a227;
  --udmdr-gold-bright: #e8c547;
  --udmdr-cream: #faf6eb;
  --udmdr-cream-page: #f9fbf7;
  --udmdr-cream-dark: #f0e8d5;
  --udmdr-body: #f0f3f2;
  --udmdr-text: #1a1a1a;
  --udmdr-muted: #5c6560;
  --udmdr-font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --udmdr-mono: "Space Mono", ui-monospace, monospace;
  --udmdr-radius: 14px;
  --udmdr-shadow: 0 8px 32px rgba(0, 61, 40, 0.08);
  --udmdr-shadow-sm: 0 4px 16px rgba(0, 61, 40, 0.06);

  /* Legacy aliases � existing HTML class names */
  --umdrs-primary: var(--udmdr-green);
  --umdrs-primary-dark: var(--udmdr-green-deep);
  --umdrs-primary-light: var(--udmdr-green-soft);
  --umdrs-accent: var(--udmdr-gold);
  --umdrs-navy: #1a2e2a;
  --umdrs-body: var(--udmdr-body);
  --umdrs-font: var(--udmdr-font);
  --umdrs-mono: var(--udmdr-mono);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--udmdr-font);
  color: var(--udmdr-text);
  background: var(--udmdr-body);
  -webkit-font-smoothing: antialiased;
}

/* ========== Top utility strip ========== */
.udmdr-topstrip {
  background: #fff;
  border-bottom: 1px solid rgba(0, 77, 51, 0.12);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--udmdr-muted);
}

.udmdr-topstrip img {
  display: block;
}

.udmdr-topstrip .udmdr-topstrip-seal {
  height: 26px;
  width: auto;
}

/* ========== Main brand band ========== */
.umdrs-header,
.udmdr-brand-band {
  background: linear-gradient(180deg, #ffffff 0%, #fafcfb 100%);
  border-bottom: 1px solid rgba(0, 106, 78, 0.12);
}

/* Citizen portal � compact header (login / register) */
.udmdr-citizen-bar {
  background: linear-gradient(180deg, #ffffff 0%, #fafcfb 100%);
  border-bottom: 1px solid rgba(0, 106, 78, 0.12);
}

.udmdr-citizen-bar__brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--udmdr-green);
  text-decoration: none;
}

.udmdr-citizen-bar__brand:hover {
  color: var(--udmdr-green-deep);
}

/* Citizen login � compact layout */
.udmdr-login-page .udmdr-citizen-bar .container {
  padding-block: 0.5rem;
}

.udmdr-login-page .udmdr-citizen-bar__brand {
  font-size: 1.05rem;
}

.udmdr-login-shell {
  width: 100%;
  max-width: 22rem;
}

.udmdr-login-card {
  background: #fff;
  border: 1px solid rgba(0, 106, 78, 0.1);
  border-radius: 1rem;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 14px 44px rgba(0, 61, 40, 0.08);
}

.udmdr-login-card .form-control,
.udmdr-login-card .form-select {
  border-radius: 10px;
  min-height: 2.65rem;
  font-size: 0.9375rem;
}

.udmdr-login-otp {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.28em;
  text-indent: 0.14em;
}

.udmdr-login-page .udmdr-citizen-portal-sub {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.udmdr-login-title {
  letter-spacing: -0.02em;
}

.udmdr-login-lede {
  font-size: 0.78rem;
  line-height: 1.45;
}

.udmdr-login-hint {
  font-size: 0.72rem;
}

.udmdr-login-footnote {
  font-size: 0.72rem;
}

.udmdr-login-footer-meta {
  font-size: 0.72rem;
}

/* ========== Kazi portal � sign-in ========== */
.udmdr-kazi-login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #062a22;
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -30%, rgba(192, 161, 107, 0.18), transparent 55%),
    linear-gradient(155deg, #063529 0%, #0a5c45 38%, #042c23 78%, #021a15 100%);
  color: #fff;
  position: relative;
}

.udmdr-kazi-login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    url("../../images/bd-emblem.svg") no-repeat center 38% / min(72vmin, 28rem),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' fill-opacity='0.035' d='M30 0L45 15L30 30L15 15z'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 1;
}

.udmdr-kazi-login-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 0, 0, 0.22), transparent 70%);
  pointer-events: none;
}

.udmdr-kazi-login-top {
  position: relative;
  z-index: 2;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.18);
}

.udmdr-kazi-login-main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
}

.udmdr-kazi-login-card-foot {
  font-size: 0.68rem;
  line-height: 1.4;
  color: #6b7872;
}

.udmdr-kazi-login-shell {
  width: 100%;
  max-width: 22rem;
}

.udmdr-kazi-login-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.06),
    0 20px 48px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(0, 106, 78, 0.06);
  border-top: 3px solid var(--udmdr-gold);
}

.udmdr-kazi-login-card .form-control {
  border-radius: 10px;
  border: 1px solid rgba(0, 77, 51, 0.14);
  min-height: 2.55rem;
  font-size: 0.9375rem;
}

.udmdr-kazi-login-card .form-control:focus {
  border-color: rgba(0, 106, 78, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(0, 106, 78, 0.15);
}

.udmdr-kazi-login-card .form-check-input:checked {
  background-color: var(--udmdr-green);
  border-color: var(--udmdr-green);
}

.udmdr-kazi-login-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(0, 106, 78, 0.12) 0%, rgba(192, 161, 107, 0.2) 100%);
  border: 1px solid rgba(0, 106, 78, 0.15);
  color: var(--udmdr-green);
  font-size: 1.35rem;
}

.udmdr-kazi-login-title {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f2418;
  line-height: 1.2;
}

.udmdr-kazi-login-lede {
  font-size: 0.75rem;
  line-height: 1.4;
  color: #5c6a64;
}

.udmdr-kazi-login-field-hint {
  font-size: 0.7rem;
  color: #6b7872;
}

.udmdr-kazi-login-reveal {
  border-radius: 10px;
  border: 1px solid rgba(0, 77, 51, 0.14);
  color: #4a5752;
  padding-inline: 0.65rem;
  min-height: 2.55rem;
  align-self: stretch;
}

.udmdr-kazi-login-reveal:hover {
  background: rgba(0, 106, 78, 0.06);
  border-color: rgba(0, 106, 78, 0.22);
  color: var(--udmdr-green);
}

.udmdr-kazi-login-foot {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
}

.udmdr-kazi-login-foot a {
  color: var(--udmdr-gold-bright);
  text-decoration: none;
  font-weight: 600;
}

.udmdr-kazi-login-foot a:hover {
  text-decoration: underline;
}

.udmdr-kazi-login-top__tagline {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

.udmdr-kazi-login-badge {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.udmdr-kazi-login-skip {
  z-index: 1080;
}

.udmdr-kazi-login-page .input-group-text {
  border-color: rgba(0, 77, 51, 0.14);
}

.udmdr-kazi-login-page .input-group .btn-outline-secondary {
  border-color: rgba(0, 77, 51, 0.14);
  color: #4a5752;
}

.btn-udmdr-kazi-signin {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding-block: 0.5rem;
  border: 2px solid rgba(192, 161, 107, 0.85);
  box-shadow: 0 4px 14px rgba(0, 61, 40, 0.22);
}

.btn-udmdr-kazi-signin:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 20px rgba(0, 61, 40, 0.3);
}

.udmdr-form-section-title {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #004d40;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(0, 106, 78, 0.12);
}

.udmdr-step-pill {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (min-width: 992px) {
  .udmdr-citizen-sticky-aside {
    position: sticky;
    top: 5.5rem;
  }
}

.udmdr-brand-band__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.5rem;
  align-items: center;
  padding: 1.25rem 0;
  max-width: 1140px;
  margin: 0 auto;
}

@media (max-width: 767.98px) {
  .udmdr-brand-band__inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

.udmdr-emblem {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  .udmdr-emblem {
    width: 56px;
    height: 56px;
  }
}

.udmdr-brand-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--udmdr-green);
}

.udmdr-brand-title a {
  color: inherit;
  text-decoration: none;
}

.udmdr-brand-title a:hover {
  color: var(--udmdr-green-deep);
}

.udmdr-brand-line {
  margin: 0.35rem 0 0;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  font-weight: 700;
  color: #111;
}

.udmdr-brand-tagline {
  margin: 0.5rem 0 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.35;
  color: #333;
  max-width: 36rem;
}

@media (min-width: 768px) {
  .udmdr-brand-tagline {
    margin-left: auto;
    margin-right: auto;
  }
}

.umdrs-brand-title {
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  margin: 0;
}

.umdrs-brand-title a {
  color: var(--udmdr-green);
  text-decoration: none;
}

.umdrs-brand-title a:hover {
  color: var(--udmdr-green-deep);
}

.umdrs-brand-sub {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
}

.umdrs-brand-desc {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.055em;
  color: #333;
  text-transform: uppercase;
  line-height: 1.35;
}

.umdrs-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
}

@media (max-width: 767.98px) {
  .umdrs-header-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.umdrs-seal {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--udmdr-green-soft);
  border: 2px solid var(--udmdr-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--udmdr-green);
  text-align: center;
  line-height: 1.1;
}

/* ========== Navigation ========== */
.navbar-umdrs {
  background: var(--udmdr-green-deep) !important;
  box-shadow: 0 4px 20px rgba(0, 30, 20, 0.25);
  padding-top: 0;
  padding-bottom: 0;
}

.navbar-umdrs .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

.navbar-umdrs .nav-link {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 1rem 0.85rem !important;
  border-bottom: 4px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.navbar-umdrs .nav-link:hover,
.navbar-umdrs .nav-link:focus {
  background: rgba(0, 0, 0, 0.12);
  border-bottom-color: var(--udmdr-gold);
}

.navbar-umdrs .nav-link.active {
  background: rgba(0, 0, 0, 0.18);
  border-bottom-color: var(--udmdr-gold-bright);
}

.navbar-umdrs .dropdown-menu {
  border: none;
  border-radius: 0 0 var(--udmdr-radius) var(--udmdr-radius);
  box-shadow: var(--udmdr-shadow);
  margin-top: 0 !important;
}

.navbar-umdrs .dropdown-item {
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
}

.navbar-umdrs .dropdown-item:active {
  background-color: var(--udmdr-green-soft);
  color: var(--udmdr-green-deep);
}

@media (max-width: 991.98px) {
  .navbar-umdrs .nav-link {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid transparent;
    padding: 0.75rem 1rem !important;
  }

  .navbar-umdrs .nav-link:hover,
  .navbar-umdrs .nav-link.active {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    border-left-color: var(--udmdr-gold);
  }
}

/* ========== Hero (landing) ========== */
.umdrs-hero,
.udmdr-hero {
  position: relative;
  color: #fff;
  padding: 3rem 0 3.5rem;
  overflow: hidden;
  background-color: var(--udmdr-green-deep);
  background-image: linear-gradient(
      105deg,
      rgba(0, 61, 51, 0.92) 0%,
      rgba(0, 90, 68, 0.78) 40%,
      rgba(0, 61, 40, 0.9) 100%
    ),
    url("https://images.unsplash.com/photo-1582650625119-3a31f8fa2699?auto=format&fit=crop&w=1920&q=75");
  background-size: cover;
  background-position: center;
}

.umdrs-hero::after,
.udmdr-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' fill-opacity='0.04' d='M40 0L60 20L40 40L20 20z'/%3E%3C/svg%3E");
  pointer-events: none;
}

.umdrs-hero .container,
.udmdr-hero .container {
  position: relative;
  z-index: 1;
}

.udmdr-hero--simple {
  background-image: linear-gradient(135deg, var(--udmdr-green-deep) 0%, var(--udmdr-green) 100%);
  padding: 2rem 0;
}

/* Gold-border CTAs */
.udmdr-hero-cta-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

@media (min-width: 576px) {
  .udmdr-hero-cta-row {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    max-width: none;
  }
}

.udmdr-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1.15rem 1.5rem;
  border-radius: 999px;
  border: 3px solid var(--udmdr-gold);
  min-height: 88px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  flex: 1 1 auto;
}

@media (min-width: 576px) {
  .udmdr-hero-cta {
    flex: 1 1 240px;
    max-width: 320px;
  }
}

.udmdr-hero-cta:hover {
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.udmdr-hero-cta--solid {
  background: var(--udmdr-green);
}

.udmdr-hero-cta--solid:hover {
  background: var(--udmdr-green-deep);
}

.udmdr-hero-cta--glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
}

.udmdr-hero-cta--glass:hover {
  background: rgba(255, 255, 255, 0.2);
}

.umdrs-hero-pill {
  border: 3px solid var(--udmdr-gold);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}

.umdrs-hero-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* ========== Watermark main ========== */
.udmdr-main-watermark {
  position: relative;
  background: #f7f9f8;
}

.udmdr-main-watermark::before {
  content: "";
  position: absolute;
  top: 2rem;
  right: -5%;
  width: min(70vw, 400px);
  height: min(70vw, 400px);
  background: url("../../images/bd-emblem.svg") no-repeat center / contain;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

.udmdr-main-watermark > .container,
.udmdr-main-watermark > section > .container {
  position: relative;
  z-index: 1;
}

/* ========== Panels & cards ========== */
.umdrs-panel,
.udmdr-card {
  background: #fff;
  border-radius: var(--udmdr-radius);
  border: 1px solid rgba(0, 77, 51, 0.08);
  box-shadow: var(--udmdr-shadow-sm);
}

.umdrs-panel-floral {
  position: relative;
  overflow: hidden;
}

.umdrs-panel-floral::before,
.umdrs-panel-floral::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  opacity: 0.12;
  background: radial-gradient(circle, var(--udmdr-gold) 0%, transparent 70%);
  pointer-events: none;
}

.umdrs-panel-floral::before {
  top: -40px;
  left: -40px;
}

.umdrs-panel-floral::after {
  bottom: -40px;
  right: -40px;
}

.udmdr-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 1.25rem;
}

.udmdr-section-title--center {
  text-align: center;
}

/* Pre-registration search */
.udmdr-search-bar .form-control {
  border-radius: 10px 0 0 10px;
  border: 1px solid rgba(0, 77, 51, 0.2);
}

.udmdr-search-bar .btn-udmdr-search {
  border-radius: 0 10px 10px 0;
  background: var(--udmdr-green);
  border: 1px solid var(--udmdr-green-deep);
  color: #fff;
  padding-inline: 1.25rem;
}

.udmdr-search-bar .btn-udmdr-search:hover {
  background: var(--udmdr-green-deep);
  color: #fff;
}

/* Citizen portal buttons */
.udmdr-btn-citizen {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--udmdr-green-deep);
  background: linear-gradient(180deg, #eef5f1 0%, #e2ebe6 100%);
  border: 1px solid rgba(0, 106, 78, 0.2);
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.udmdr-btn-citizen:hover {
  color: var(--udmdr-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 61, 40, 0.12);
}

/* Feature icon rings */
.udmdr-feature {
  text-align: center;
  padding: 1rem 0.5rem;
}

.udmdr-feature__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.udmdr-feature__title {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  color: #222;
}

.umdrs-stat-card {
  border-left: 4px solid var(--udmdr-gold);
}

.umdrs-mono-label {
  font-family: var(--udmdr-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--udmdr-muted);
}

/* ========== Footer ========== */
.umdrs-footer,
.udmdr-footer {
  background: var(--udmdr-green-deep);
  color: rgba(255, 255, 255, 0.92);
  padding: 1.25rem 0;
  font-size: 0.8125rem;
  border-top: 3px solid var(--udmdr-gold);
}

.umdrs-footer a,
.udmdr-footer a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 500;
}

.umdrs-footer a:hover,
.udmdr-footer a:hover {
  color: var(--udmdr-gold-bright);
  text-decoration: underline;
}

.umdrs-footer .text-muted {
  color: rgba(255, 255, 255, 0.78) !important;
}

.udmdr-footer__help {
  font-weight: 600;
}

/* ========== Feedback tab ========== */
.feedback-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: right center;
  background: var(--udmdr-green);
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px 8px 0 0;
  z-index: 1080;
  border: 2px solid var(--udmdr-gold);
  border-bottom: none;
  box-shadow: -4px 4px 16px rgba(0, 0, 0, 0.15);
}

.feedback-tab:hover {
  background: var(--udmdr-green-deep);
  color: #fff !important;
}

@media (max-width: 575.98px) {
  .feedback-tab {
    font-size: 0.62rem;
    padding: 0.45rem 0.85rem;
  }
}

/* ========== Buttons ========== */
.btn-umdrs-primary {
  --bs-btn-bg: var(--udmdr-green);
  --bs-btn-border-color: var(--udmdr-green-deep);
  --bs-btn-hover-bg: var(--udmdr-green-deep);
  --bs-btn-hover-border-color: var(--udmdr-green-dark);
  font-weight: 600;
}

.text-umdrs-primary {
  color: var(--udmdr-green) !important;
}

.bg-umdrs-primary-subtle {
  background-color: var(--udmdr-green-soft) !important;
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 0.75rem;
}

.badge-status-pending {
  background: #fff3cd;
  color: #664d03;
  font-weight: 600;
}

.badge-status-approved {
  background: #d1e7dd;
  color: #0f5132;
  font-weight: 600;
}

.badge-status-rejected {
  background: #f8d7da;
  color: #842029;
  font-weight: 600;
}

/* ========== Kazi dashboard (horizontal nav) ========== */
.udmdr-kazi-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--udmdr-body);
}

.udmdr-kazi-page::before {
  content: "";
  position: fixed;
  bottom: -80px;
  left: -60px;
  width: 280px;
  height: 280px;
  background: url("../../images/bd-emblem.svg") no-repeat center / contain;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.udmdr-kazi-header {
  background: #fff;
  border-bottom: 1px solid rgba(0, 77, 51, 0.1);
  position: relative;
  z-index: 2;
}

.udmdr-kazi-header__grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
}

@media (max-width: 767.98px) {
  .udmdr-kazi-header__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.udmdr-kazi-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  justify-content: flex-end;
}

@media (max-width: 767.98px) {
  .udmdr-kazi-user {
    justify-content: center;
  }
}

.udmdr-kazi-user__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--udmdr-green-soft);
  border: 2px solid var(--udmdr-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--udmdr-green-deep);
}

.udmdr-kazi-user__status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  margin-right: 4px;
}

.udmdr-kazi-nav {
  background: var(--udmdr-green-deep);
  position: sticky;
  top: 0;
  z-index: 1030;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.udmdr-kazi-nav .nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.udmdr-kazi-nav .nav-link {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  padding: 0.9rem 1rem !important;
  border-bottom: 4px solid transparent;
}

.udmdr-kazi-nav .nav-link:hover {
  background: rgba(0, 0, 0, 0.1);
  border-bottom-color: var(--udmdr-gold);
}

.udmdr-kazi-nav .nav-link.active {
  background: rgba(0, 0, 0, 0.15);
  border-bottom-color: var(--udmdr-gold-bright);
}

.udmdr-kazi-main {
  flex: 1;
  padding: 1.5rem 0 2.5rem;
  position: relative;
  z-index: 1;
}

.udmdr-kazi-hero-card {
  background: linear-gradient(180deg, var(--udmdr-cream) 0%, #f5f0e3 100%);
  border: 2px solid var(--udmdr-gold);
  border-radius: var(--udmdr-radius);
  box-shadow: var(--udmdr-shadow-sm);
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.udmdr-kazi-hero-card::before,
.udmdr-kazi-hero-card::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(201, 162, 39, 0.25);
  border-radius: 50%;
  pointer-events: none;
}

.udmdr-kazi-hero-card::before {
  top: -30px;
  left: -20px;
}

.udmdr-kazi-hero-card::after {
  bottom: -30px;
  right: -20px;
}

.udmdr-kazi-stat {
  background: #fff;
  border-radius: var(--udmdr-radius);
  padding: 1.15rem;
  box-shadow: var(--udmdr-shadow-sm);
  border: 1px solid rgba(0, 77, 51, 0.06);
  height: 100%;
}

.udmdr-kazi-stat__num {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--udmdr-green-deep);
}

/* ========== Kazi dashboard � modern sidebar workspace ========== */
.udmdr-kazi-dashboard {
  font-family: "Inter", var(--udmdr-font);
}

.udmdr-kazi-dashboard .umdrs-content {
  background: linear-gradient(180deg, #e8eeea 0%, var(--udmdr-body) 9rem, var(--udmdr-body) 100%);
  padding-top: 1.25rem;
}

@media (min-width: 992px) {
  .udmdr-kazi-dashboard .umdrs-content {
    padding-top: 1.5rem;
  }
}

.udmdr-kazi-dash-topbar {
  border-bottom: 3px solid var(--udmdr-gold);
  box-shadow: 0 1px 0 rgba(0, 77, 51, 0.06);
}

.udmdr-kazi-dash-intro {
  margin-bottom: 1.25rem;
}

.udmdr-kazi-dash-intro__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--udmdr-muted);
}

.udmdr-kazi-dash-intro__title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f2418;
  margin: 0.15rem 0 0;
  line-height: 1.25;
}

.udmdr-kazi-dash-intro__sub {
  font-size: 0.875rem;
  color: var(--udmdr-muted);
  margin: 0.35rem 0 0;
  max-width: 42rem;
}

.udmdr-kazi-dash-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 106, 78, 0.15);
  color: var(--udmdr-green-deep);
  white-space: nowrap;
}

.udmdr-kazi-dash-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d4a38 0%, var(--udmdr-green-deep) 48%, #063529 100%);
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow:
    0 12px 40px rgba(0, 45, 30, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #fff;
}

.udmdr-kazi-dash-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("../../images/bd-emblem.svg") no-repeat 102% 52% / min(42vw, 200px);
  opacity: 0.07;
  pointer-events: none;
}

.udmdr-kazi-dash-hero__inner {
  position: relative;
  z-index: 1;
  padding: 1.35rem 1.35rem 1.25rem;
}

@media (min-width: 768px) {
  .udmdr-kazi-dash-hero__inner {
    padding: 1.65rem 1.75rem;
  }
}

.udmdr-kazi-dash-hero__title {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.udmdr-kazi-dash-hero__lede {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1rem;
  max-width: 36rem;
}

.udmdr-kazi-dash-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 576px) {
  .udmdr-kazi-dash-hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

.udmdr-kazi-dash-hero .btn-light {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 700;
}

.udmdr-kazi-dash-hero .btn-light:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.udmdr-kazi-dash-hero .btn-primary {
  font-weight: 700;
  border: 2px solid rgba(232, 197, 71, 0.85);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.udmdr-kazi-dash-kpi {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 77, 51, 0.08);
  box-shadow: 0 2px 12px rgba(0, 61, 40, 0.05);
  height: 100%;
  padding: 1rem 1rem 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.udmdr-kazi-dash-kpi:hover {
  border-color: rgba(0, 106, 78, 0.18);
  box-shadow: 0 8px 24px rgba(0, 61, 40, 0.08);
}

.udmdr-kazi-dash-kpi__icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
}

.udmdr-kazi-dash-kpi__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--udmdr-muted);
  margin-bottom: 0.2rem;
}

.udmdr-kazi-dash-kpi__value {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--udmdr-green-deep);
  margin: 0;
}

.udmdr-kazi-dash-kpi__value--muted {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--udmdr-green-deep);
}

.udmdr-kazi-dash-kpi__hint {
  font-size: 0.72rem;
  color: var(--udmdr-muted);
  margin: 0.35rem 0 0;
}

.udmdr-kazi-dash-panel {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 77, 51, 0.08);
  box-shadow: 0 2px 12px rgba(0, 61, 40, 0.05);
}

.udmdr-kazi-dash-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem 1.15rem 0;
}

.udmdr-kazi-dash-panel__title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #1a2e2a;
  margin: 0;
}

.udmdr-kazi-dash-panel__body {
  padding: 0.85rem 1.15rem 1.1rem;
}

.udmdr-kazi-dash-table-wrap {
  margin: 0 -0.05rem;
  border: 1px solid rgba(0, 77, 51, 0.1);
}

.udmdr-kazi-dash-table-wrap .table {
  font-size: 0.8125rem;
}

.udmdr-kazi-dash-table-wrap .table thead th {
  background: rgba(0, 106, 78, 0.04);
  border-bottom-color: rgba(0, 77, 51, 0.1);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.udmdr-kazi-dash-task {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 77, 51, 0.07);
}

.udmdr-kazi-dash-task:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.udmdr-kazi-dash-task:first-child {
  padding-top: 0;
}

.udmdr-kazi-dash-task__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.udmdr-kazi-dash-task__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a2e2a;
  margin: 0 0 0.15rem;
  line-height: 1.35;
}

.udmdr-kazi-dash-task__meta {
  font-size: 0.72rem;
  color: var(--udmdr-muted);
  margin: 0;
}

.udmdr-kazi-dash-queue a {
  display: block;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(0, 77, 51, 0.07);
  text-decoration: none;
  color: var(--udmdr-green-deep);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.udmdr-kazi-dash-queue a:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.udmdr-kazi-dash-queue a:first-child {
  padding-top: 0;
}

.udmdr-kazi-dash-queue a:hover {
  color: var(--udmdr-green);
  text-decoration: underline;
}

.udmdr-kazi-dash-queue span {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--udmdr-muted);
  margin-top: 0.2rem;
}

.udmdr-kazi-dash-tool {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid rgba(0, 77, 51, 0.12);
  background: #fafcfb;
  color: var(--udmdr-green-deep);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.udmdr-kazi-dash-tool:hover {
  background: var(--udmdr-green-soft);
  border-color: rgba(0, 106, 78, 0.22);
  color: var(--udmdr-green-dark);
}

.udmdr-kazi-dash-tool--primary {
  background: var(--udmdr-green);
  border-color: var(--udmdr-green-deep);
  color: #fff;
}

.udmdr-kazi-dash-tool--primary:hover {
  background: var(--udmdr-green-deep);
  border-color: var(--udmdr-green-dark);
  color: #fff;
}

.udmdr-kazi-dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 0.75rem;
  padding: 0 1.15rem 1rem;
  border-bottom: 1px solid rgba(0, 77, 51, 0.08);
}

.udmdr-kazi-dash-toolbar .form-select,
.udmdr-kazi-dash-toolbar .form-control {
  border-radius: 10px;
  border-color: rgba(0, 77, 51, 0.14);
  min-height: 2.5rem;
  font-size: 0.875rem;
}

.udmdr-kazi-dash-toolbar .form-select:focus,
.udmdr-kazi-dash-toolbar .form-control:focus {
  border-color: rgba(0, 106, 78, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(0, 106, 78, 0.12);
}

.udmdr-kazi-dash-toolbar__grow {
  flex: 1 1 14rem;
  min-width: 0;
}

.udmdr-kazi-dash-toolbar__shrink {
  flex: 0 0 auto;
}

@media (max-width: 575.98px) {
  .udmdr-kazi-dash-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .udmdr-kazi-dash-toolbar__grow {
    flex-basis: auto;
  }
}

.udmdr-kazi-dash-intro--compact {
  margin-bottom: 1rem;
}

.udmdr-kazi-dash-intro--compact .udmdr-kazi-dash-intro__title {
  font-size: clamp(1.12rem, 2.2vw, 1.35rem);
}

.udmdr-kazi-dash-toolbar__status {
  min-width: 11rem;
}

/* Toolbar + topbar: keep outlined fields visually aligned with compact controls */
.udmdr-kazi-dash-toolbar .udmdr-outlined-field {
  margin-top: 0;
}

.udmdr-kazi-dash-toolbar .udmdr-outlined-field__legend {
  font-size: 0.75rem;
}

.udmdr-kazi-dash-toolbar .udmdr-outlined-field__input,
.udmdr-kazi-dash-toolbar .udmdr-outlined-field__select {
  min-height: 2.5rem;
  font-size: 0.875rem;
  padding: 0.5rem 12px 0.4rem;
}

.udmdr-kazi-dash-toolbar .udmdr-outlined-field__select {
  padding-right: 32px;
  background-position: right 10px center;
}

.umdrs-topbar .udmdr-outlined-field {
  margin-top: 0;
}

.umdrs-topbar .udmdr-outlined-field__legend {
  font-size: 0.75rem;
}

.umdrs-topbar .udmdr-outlined-field__input {
  min-height: 2.35rem;
  font-size: 0.8125rem;
  padding: 0.45rem 12px 0.35rem;
}

.modal-body .udmdr-outlined-field {
  margin-top: 0;
}

.udmdr-kazi-dash-table-foot {
  border-top: 1px solid rgba(0, 77, 51, 0.08);
}

.table-umdrs thead th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--udmdr-muted);
  border-bottom-width: 1px;
  white-space: nowrap;
}

.badge-status-review {
  background: #ffe5b4;
  color: #7a5200;
  font-weight: 600;
}

.badge-status-payment {
  background: #ffd6e0;
  color: #8b2942;
  font-weight: 600;
}

/* ========== Directory + blog page ========== */
.udmdr-map-placeholder {
  min-height: 280px;
  background: linear-gradient(145deg, #dfe8e4 0%, #c5d4cc 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--udmdr-muted);
  font-weight: 600;
  border: 1px dashed rgba(0, 77, 51, 0.25);
}

@media (min-width: 992px) {
  .udmdr-map-placeholder {
    min-height: 400px;
  }
}

.udmdr-kazi-list-item {
  border: 1px solid rgba(0, 77, 51, 0.1);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: #fff;
  transition: box-shadow 0.15s ease;
}

.udmdr-kazi-list-item:hover {
  box-shadow: var(--udmdr-shadow-sm);
}

.udmdr-kazi-list-item--active,
.udmdr-kazi-list-item--featured {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.15);
}

/* ========== Portal sidebar (admin / legacy kazi) ========== */
.umdrs-portal {
  min-height: 100vh;
  display: flex;
  background: var(--udmdr-body);
}

.umdrs-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #0f241c;
  color: #e8eef0;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, width 0.25s ease;
  z-index: 1040;
}

.umdrs-sidebar.collapsed {
  width: 72px;
}

.umdrs-sidebar.collapsed .umdrs-sidebar-text,
.umdrs-sidebar.collapsed .umdrs-sidebar-section {
  display: none;
}

@media (max-width: 991.98px) {
  .umdrs-sidebar {
    position: fixed;
    height: 100%;
    transform: translateX(-100%);
  }

  .umdrs-sidebar.show {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.25);
  }

  .umdrs-portal-main {
    width: 100%;
  }
}

.umdrs-sidebar-brand {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}

.umdrs-sidebar-brand strong {
  display: block;
  font-size: 1rem;
  color: #fff;
}

.umdrs-sidebar-section {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  padding: 1rem 1rem 0.35rem;
  margin: 0;
}

.umdrs-sidebar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.55rem 1rem;
  border-radius: 0;
  border-left: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
}

.umdrs-sidebar-nav .nav-link i {
  opacity: 0.85;
  width: 1.25rem;
  text-align: center;
}

.umdrs-sidebar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.umdrs-sidebar-nav .nav-link.active {
  background: rgba(0, 106, 78, 0.35);
  border-left-color: var(--udmdr-gold);
  color: #fff;
}

.umdrs-portal-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.umdrs-topbar {
  background: #fff;
  border-bottom: 1px solid rgba(0, 77, 51, 0.08);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.umdrs-content {
  padding: 1.25rem;
  flex: 1;
}

.umdrs-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 36, 28, 0.45);
  z-index: 1030;
}

.umdrs-sidebar-overlay.show {
  display: block;
}

.umdrs-admin-sidebar {
  background: linear-gradient(180deg, #0d3328 0%, #0a241c 100%);
}

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

/* ========== Homepage (government mockup) ========== */
.udmdr-page-home {
  font-family: "Inter", var(--udmdr-font);
}

.udmdr-page-home .udmdr-nav-admin-btn {
  color: var(--udmdr-green-deep) !important;
}

.udmdr-topstrip--muted {
  background: #ececec;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.8125rem;
}

@media (max-width: 575.98px) {
  .udmdr-topstrip-govt {
    font-size: 0.75rem;
    width: 100%;
    text-align: center;
  }

  .udmdr-topstrip--muted .container {
    justify-content: center !important;
  }
}

.udmdr-brand-band--home {
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 106, 78, 0.12);
}

.udmdr-brand-tagline--caps {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  color: var(--udmdr-green) !important;
  max-width: 38rem;
}

.udmdr-brand-band--home .udmdr-brand-title {
  color: #004d40;
}

.udmdr-brand-band--home .udmdr-brand-title a:hover {
  color: var(--udmdr-green-deep);
}

.navbar-udmdr-home {
  background: var(--udmdr-green) !important;
  box-shadow: 0 4px 20px rgba(0, 77, 51, 0.22);
}

.navbar-udmdr-home .nav-link {
  font-size: 0.875rem;
}

.navbar-udmdr-home .nav-link.active,
.navbar-udmdr-home .nav-link.dropdown-toggle.active,
.navbar-udmdr-home .nav-link.dropdown-toggle.show {
  border-bottom-color: var(--udmdr-gold-bright) !important;
  background: rgba(0, 0, 0, 0.08);
  color: #fffef0 !important;
}

.navbar-udmdr-home .nav-tools {
  border-left: none;
}

@media (max-width: 991.98px) {
  .udmdr-nav-tools {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
}

.udmdr-home-main {
  position: relative;
  background: var(--udmdr-cream-page);
  overflow-x: hidden;
}

.udmdr-home-container {
  position: relative;
  z-index: 1;
}

.udmdr-home-floral {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: 0;
}

/* Shapla / lily-inspired corner marks */
.udmdr-home-floral::before,
.udmdr-home-floral::after {
  content: "";
  position: absolute;
  width: min(38vw, 280px);
  height: min(38vw, 280px);
  opacity: 0.09;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23006a4e' stroke-width='1.2'%3E%3Cpath d='M50 8c0 12 8 22 18 22-10 6-18 16-18 28 0-12-8-22-18-28 10 0 18-10 18-22z'/%3E%3Cpath d='M50 92c0-12 8-22 18-22-10-6-18-16-18-28 0 12-8 22-18 28 10 0 18 10 18 22z'/%3E%3Cpath d='M8 50c12 0 22-8 22-18 6 10 16 18 28 18-12 0-22 8-28 18 0-10 10-18 22-18z'/%3E%3Cpath d='M92 50c-12 0-22 8-22 18-6-10-16-18-28-18 12 0 22-8 28-18 0 10-10 18-22 18z'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='6' fill='%23006a4e' opacity='0.35'/%3E%3C/svg%3E");
}

.udmdr-home-floral::before {
  left: -2%;
  bottom: 0;
}

.udmdr-home-floral::after {
  right: -2%;
  bottom: 4%;
  transform: scaleX(-1);
}

.udmdr-home-columns {
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .udmdr-home-columns {
    flex-wrap: nowrap;
  }
}

@media (min-width: 992px) and (max-width: 1399.98px) {
  .udmdr-home-col-directory {
    flex: 0 0 60%;
    max-width: 60%;
  }

  .udmdr-home-col-blog {
    flex: 0 0 40%;
    max-width: 40%;
  }
}

@media (min-width: 1400px) {
  .udmdr-home-col-directory {
    flex: 0 0 69.5%;
    max-width: 69.5%;
  }

  .udmdr-home-col-blog {
    flex: 0 0 30.5%;
    max-width: 30.5%;
  }
}

.udmdr-home-panel {
  background: #ffffff;
  border: 1px solid rgba(0, 106, 78, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 61, 40, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 1.25rem 1.25rem 1.5rem;
}

@media (min-width: 768px) {
  .udmdr-home-panel {
    padding: 1.5rem 1.75rem 1.75rem;
  }
}

/* Inner pages � news teaser cards */
.udmdr-news-teaser {
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.udmdr-news-teaser:hover {
  border-color: rgba(0, 106, 78, 0.22) !important;
  box-shadow: 0 12px 36px rgba(0, 61, 40, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

.udmdr-home-section-title {
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #004d40;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.udmdr-home-section-icon {
  font-size: 1.2rem;
  color: var(--udmdr-green);
}

/* Kazi directory � search mock (cream shell, gold border, forest-green pill) */
.udmdr-home-col-directory .udmdr-home-section-title--directory {
  color: #000;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
  letter-spacing: 0.06em;
  margin-bottom: 1.35rem;
}

.udmdr-directory-title-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 1.9rem;
  flex-shrink: 0;
}

.udmdr-directory-title-icon__map {
  font-size: 1.85rem;
  color: #c9b896;
  line-height: 1;
  opacity: 0.95;
}

.udmdr-directory-title-icon__pin {
  position: absolute;
  left: 50%;
  top: -0.05rem;
  transform: translateX(-50%);
  font-size: 1.05rem;
  color: #2d5a38;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
}

.udmdr-directory-search {
  width: 100%;
  max-width: 100%;
}

.udmdr-directory-search__shell {
  background: #f8f9f5;
  border: 1px solid #dcd3bc;
  border-radius: 2.25rem;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 8px 28px rgba(65, 58, 45, 0.1), 0 3px 10px rgba(90, 80, 55, 0.06);
}

@media (min-width: 576px) {
  .udmdr-directory-search__shell {
    padding: 1.15rem 1.35rem 1.2rem;
    border-radius: 2.5rem;
  }
}

@media (min-width: 768px) {
  .udmdr-directory-search__shell {
    padding: 1.05rem 1.5rem 1.1rem;
  }
}

.udmdr-directory-search__row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.875rem;
}

@media (min-width: 768px) {
  .udmdr-directory-search__row {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
  }

  .udmdr-directory-search__field {
    flex: 1 1 0;
    min-width: 0;
  }

  .udmdr-directory-search__submit {
    flex: 0 0 auto;
    width: auto !important;
    min-height: 48px;
    align-self: center;
  }
}

.udmdr-directory-search__field {
  margin: 0;
}

.udmdr-directory-search__input {
  background: #fff !important;
  border: 1px solid #d0d0d0 !important;
  border-radius: 12px !important;
  min-height: 48px;
  font-size: 0.9375rem;
  width: 100%;
}

.udmdr-directory-search__input::placeholder {
  color: #6f6f6f;
}

.udmdr-directory-search__input:focus {
  border-color: #9cb88a !important;
  box-shadow: 0 0 0 0.2rem rgba(45, 90, 56, 0.18) !important;
}

.udmdr-directory-search__submit {
  width: 100%;
}

.btn-udmdr-directory-search {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.35rem;
  border: 4px solid #c0a16b;
  border-radius: 999px !important;
  color: #fff !important;
  background-color: #2d5a38;
  background-image: none;
  box-shadow: 0 6px 18px rgba(25, 55, 35, 0.35), 0 2px 6px rgba(25, 45, 30, 0.2);
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.btn-udmdr-directory-search:hover {
  filter: brightness(1.08);
  color: #fff !important;
  background-color: #265031;
  box-shadow: 0 8px 24px rgba(25, 55, 35, 0.42), 0 3px 8px rgba(25, 45, 30, 0.22);
}

.btn-udmdr-directory-search:active {
  filter: brightness(0.96);
  background-color: #23492d !important;
}

.udmdr-home-col-blog .udmdr-home-section-title {
  color: #006847;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.udmdr-home-col-blog .udmdr-home-section-icon {
  color: #006847;
}

.udmdr-blog-layout {
  --udmdr-blog-primary: #006847;
  --udmdr-blog-brown: #7a5230;
}

.udmdr-blog-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e0e5e2;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 52, 35, 0.07);
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.udmdr-blog-card__head {
  flex-shrink: 0;
}

.udmdr-blog-card:hover {
  box-shadow: 0 6px 22px rgba(0, 52, 35, 0.11);
}

.udmdr-blog-card__media {
  position: relative;
  background: #eceeeb;
  border-radius: 0;
}

.udmdr-blog-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.udmdr-blog-badge {
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  padding: 0.4rem 0.875rem;
  color: #fff;
}

.udmdr-blog-badge__icon {
  font-size: 0.8rem;
  flex-shrink: 0;
  opacity: 0.95;
}

.udmdr-blog-badge--tab {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  border-radius: 0;
  margin: 0;
  position: relative;
  z-index: 2;
  justify-content: flex-start;
}

.udmdr-blog-badge--marriage {
  background: var(--udmdr-blog-primary);
}

.udmdr-blog-badge--divorce {
  background: var(--udmdr-blog-brown);
}

.udmdr-blog-card__body {
  padding: 1.2rem 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.udmdr-blog-card__title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #111;
  line-height: 1.35;
  margin: 0 0 0.65rem;
}

.udmdr-blog-card__excerpt {
  font-size: 0.875rem;
  color: #5c6560;
  line-height: 1.55;
  margin: 0 0 1.1rem;
  flex: 1 1 auto;
}

.btn-udmdr-blog-more {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--udmdr-blog-primary);
  --bs-btn-border-color: #005038;
  --bs-btn-hover-bg: #005038;
  --bs-btn-hover-border-color: #003d28;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #003d28;
  --bs-btn-active-border-color: #003228;
  font-weight: 600;
  border-radius: 8px;
  font-size: 0.8125rem;
  padding: 0.4rem 1rem;
  align-self: flex-start;
  margin-top: auto;
}

.udmdr-sidebar-stack {
  background: #fff;
  border: 1px solid #d8ddd9;
  border-radius: 12px;
  padding: 1.125rem 1.125rem 0.35rem;
  height: 100%;
}

.udmdr-sidebar-stack--filter-only {
  padding-top: 1.15rem;
}

@media (min-width: 768px) {
  .udmdr-sidebar-stack--filter-only {
    position: sticky;
    top: 5.5rem;
    align-self: flex-start;
  }
}

.udmdr-filter-sidebar-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7170;
  margin: 0 0 0.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e3e6e4;
}

.udmdr-eyebrow {
  letter-spacing: 0.07em;
}

.udmdr-filter-acc .accordion-item {
  border: none;
  border-bottom: 1px solid #eceeeb;
  background: transparent;
}

.udmdr-filter-acc .accordion-item:last-child {
  border-bottom: none;
}

.udmdr-filter-acc .accordion-header {
  margin: 0;
}

.udmdr-filter-acc .accordion-button {
  font-size: 0.9rem;
  font-weight: 600;
  color: #006847;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0.9rem 0;
  gap: 0.75rem;
}

.udmdr-filter-acc .accordion-button:not(.collapsed) {
  color: #004830;
  background: transparent !important;
}

.udmdr-filter-acc .accordion-button::after {
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.55;
  width: 0.65rem;
  height: 0.65rem;
  background-size: 0.65rem;
}

.udmdr-filter-acc .accordion-body {
  padding: 0 0 0.85rem;
  margin-top: -0.15rem;
}

.udmdr-filter-acc .accordion-body a {
  color: #5c6560;
  font-size: 0.875rem;
  text-decoration: none;
  font-weight: 500;
}

.udmdr-filter-acc .accordion-body a:hover {
  color: #006847;
  text-decoration: underline;
}

.udmdr-input-round {
  border-radius: 10px !important;
  border: 1px solid #cfd6d2;
  background: #fff;
  font-size: 0.9375rem;
  min-height: 46px;
  padding: 0.55rem 0.9rem;
}

.udmdr-input-round::placeholder {
  color: #8a9390;
}

.udmdr-input-round:focus {
  border-color: var(--udmdr-green);
  box-shadow: 0 0 0 0.2rem rgba(0, 106, 78, 0.15);
}

/* Material-style outlined fields (label on border) � e.g. kazi marriage intake */
.udmdr-outlined-field {
  --udmdr-outlined-label-color: #09472E;
  --udmdr-outlined-border: #c5cdd6;
  --udmdr-outlined-bg: #ffffff;

  display: block;
  position: relative;
  margin-top: 0.7rem;
}

.udmdr-outlined-field__legend {
  position: absolute;
  left: 13px;
  top: 0;
  transform: translateY(-50%);
  z-index: 2;
  max-width: calc(100% - 26px);
  padding: 0 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--udmdr-outlined-label-color);
  background: var(--udmdr-outlined-bg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.udmdr-outlined-field__legend .udmdr-outlined-field__req {
  color: #c2410c;
  font-weight: 700;
  text-decoration: none;
}

.udmdr-outlined-field__input,
.udmdr-outlined-field__textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--udmdr-outlined-border);
  border-radius: 10px;
  background: var(--udmdr-outlined-bg);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--udmdr-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.udmdr-outlined-field__input {
  min-height: 3.25rem;
  padding: 0.85rem 14px 0.65rem;
}

.udmdr-outlined-field__textarea {
  min-height: 5.5rem;
  padding: 0.95rem 14px 0.75rem;
  resize: vertical;
}

.udmdr-outlined-field__input::placeholder,
.udmdr-outlined-field__textarea::placeholder {
  color: #64748b;
  opacity: 0.88;
}

.udmdr-outlined-field:focus-within {
  --udmdr-outlined-border: rgba(0, 106, 78, 0.55);
}

.udmdr-outlined-field:focus-within .udmdr-outlined-field__legend {
  color: var(--udmdr-green-deep);
}

.udmdr-outlined-field:focus-within .udmdr-outlined-field__input,
.udmdr-outlined-field:focus-within .udmdr-outlined-field__textarea,
.udmdr-outlined-field:focus-within .udmdr-outlined-field__select {
  border-color: var(--udmdr-green);
  box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.12);
  outline: none;
}

.udmdr-outlined-field__select {
  display: block;
  width: 100%;
  border: 1px solid var(--udmdr-outlined-border);
  border-radius: 10px;
  background-color: var(--udmdr-outlined-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--udmdr-text);
  min-height: 3.25rem;
  padding: 0.85rem 36px 0.65rem 14px;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.udmdr-outlined-field__select:disabled {
  background-color: #f4f6f5;
  cursor: not-allowed;
  opacity: 1;
  color: var(--udmdr-muted);
}

.udmdr-outlined-field__input--otp {
  font-variant-numeric: tabular-nums;
  letter-spacing: clamp(0.12em, 2.5vw, 0.35em);
  text-indent: 0.12em;
  text-align: center;
  font-size: clamp(1rem, 4vw, 1.125rem);
  font-weight: 600;
}

/* Password / append button � border wraps row */
.udmdr-outlined-field--composite .udmdr-outlined-field__composite {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--udmdr-outlined-border);
  border-radius: 10px;
  background: var(--udmdr-outlined-bg);
  min-height: 3.25rem;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.udmdr-outlined-field--composite:focus-within .udmdr-outlined-field__composite {
  border-color: var(--udmdr-green);
  box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.12);
}

.udmdr-outlined-field__composite-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.85rem 14px 0.65rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--udmdr-text);
}

.udmdr-outlined-field__composite-input::placeholder {
  color: #64748b;
  opacity: 0.88;
}

.udmdr-outlined-field__composite-input:focus {
  outline: none;
}

.udmdr-outlined-field__composite-btn {
  flex-shrink: 0;
  align-self: stretch;
  border: none;
  border-left: 1px solid rgba(0, 77, 51, 0.12);
  background: rgba(0, 106, 78, 0.06);
  padding: 0 14px;
  color: #4a5752;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.udmdr-outlined-field__composite-btn:hover {
  background: rgba(0, 106, 78, 0.1);
  color: var(--udmdr-green-deep);
}

.udmdr-kazi-auth-card .udmdr-outlined-field__composite-btn {
  background: rgba(0, 106, 78, 0.08);
}

.udmdr-kazi-auth-card .udmdr-outlined-field {
  margin-top: 0;
}

.udmdr-login-card .udmdr-outlined-field {
  --udmdr-outlined-bg: #ffffff;
}

.udmdr-outlined-field__input.font-monospace,
.udmdr-outlined-field__textarea.font-monospace,
.udmdr-outlined-field__composite-input.font-monospace {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9375rem;
}

.udmdr-outlined-field__input:disabled,
.udmdr-outlined-field__textarea:disabled {
  background: #f4f6f5;
  opacity: 1;
  color: var(--udmdr-muted);
}

/* File upload variant */
.udmdr-outlined-field__file {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.65rem 14px;
  border: 1px solid var(--udmdr-outlined-border);
  border-radius: 10px;
  background: var(--udmdr-outlined-bg);
  font-size: 0.875rem;
}

.udmdr-outlined-field:focus-within .udmdr-outlined-field__file {
  border-color: var(--udmdr-green);
  box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.12);
}

.udmdr-outlined-field__file:disabled {
  background: #f4f6f5;
  color: var(--udmdr-muted);
  cursor: not-allowed;
}

.udmdr-outlined-field:has(.udmdr-outlined-field__file:disabled):focus-within {
  --udmdr-outlined-border: #c5cdd6;
}

.udmdr-outlined-field:has(.udmdr-outlined-field__file:disabled):focus-within .udmdr-outlined-field__legend {
  color: var(--udmdr-outlined-label-color);
}

.udmdr-outlined-field:has(.udmdr-outlined-field__file:disabled):focus-within .udmdr-outlined-field__file {
  border-color: var(--udmdr-outlined-border);
  box-shadow: none;
}

@media (max-width: 575.98px) {
  .udmdr-outlined-field__input,
  .udmdr-outlined-field__textarea {
    font-size: 1rem;
  }
}

.udmdr-sort-select {
  max-width: 10rem;
  border-radius: 10px;
  border-color: #cfd6d2;
  font-size: 0.8125rem;
}

.udmdr-kazi-list-scroll {
  max-height: min(52vh, 400px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
  margin-right: -4px;
  scrollbar-width: thin;
}

.udmdr-kazi-list-scroll:focus-visible {
  outline: 2px solid var(--udmdr-green);
  outline-offset: 2px;
}

.udmdr-kazi-thumb {
  width: 64px;
  height: 52px;
  background: linear-gradient(145deg, #dde3df 0%, #b8c4bd 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

@media (min-width: 768px) {
  .udmdr-kazi-thumb {
    width: 76px;
    height: 58px;
  }
}

.link-udmdr {
  color: #004d40;
  text-decoration: none;
}

.link-udmdr:hover {
  color: var(--udmdr-green);
  text-decoration: underline;
}

.udmdr-map-frame--mock {
  border-color: rgba(0, 106, 78, 0.15) !important;
}

.udmdr-map-locate {
  font-size: 0.75rem;
  font-weight: 600;
}

.udmdr-map-frame .udmdr-map-ratio {
  min-height: 220px;
}

@media (min-width: 992px) {
  .udmdr-map-frame .udmdr-map-ratio {
    min-height: 300px;
  }
}

@media (max-width: 575.98px) {
  .udmdr-home-panel {
    padding: 1rem 1rem 1.25rem;
  }

  .btn-udmdr-directory-search {
    font-size: 0.88rem;
    padding: 0.6rem 1rem;
    border-width: 3px;
  }

  .udmdr-directory-search__shell {
    border-radius: 1.65rem;
    padding: 1rem 1rem 1.05rem;
  }
}

/* �� design/index.html � reference primary nav (matches large-screen menu spec) �� */
.udmdr-design-menu-bar {
  --udmdr-design-nav-bg: #1b3c2d;
  --udmdr-design-nav-topline: #2d5544;
  --udmdr-design-nav-text: #f5f5dc;
  --udmdr-design-nav-text-hover: #faf8ef;

  background: var(--udmdr-design-nav-bg);
  border-top: 1px solid var(--udmdr-design-nav-topline);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 3px 10px rgba(0, 0, 0, 0.18);
}

.udmdr-design-menu-bar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(1.35rem, 3.2vw, 2.85rem);
  padding: 0.9rem clamp(1rem, 2vw, 1.75rem);
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.udmdr-design-menu-bar__link {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--udmdr-design-nav-text);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.udmdr-design-menu-bar__link:hover,
.udmdr-design-menu-bar__link:focus-visible {
  color: var(--udmdr-design-nav-text-hover);
  border-bottom-color: var(--udmdr-design-nav-text);
}

.udmdr-design-menu-bar__link:focus-visible {
  outline: 2px solid rgba(245, 245, 220, 0.45);
  outline-offset: 3px;
}

.udmdr-design-menu-bar__link--active {
  border-bottom-color: var(--udmdr-design-nav-text);
}

.udmdr-design-menu-bar__link--active:hover,
.udmdr-design-menu-bar__link--active:focus-visible {
  border-bottom-color: var(--udmdr-design-nav-text);
}

/* Compact screens: same palette, stacked / toggler */
.udmdr-design-menu-mobile {
  background: #1b3c2d;
  border-top: 1px solid #2d5544;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 3px 10px rgba(0, 0, 0, 0.18);
}

.udmdr-design-menu-mobile .navbar-toggler {
  border-color: rgba(245, 245, 220, 0.35);
  color: #f5f5dc;
}

.udmdr-design-menu-mobile .navbar-toggler-icon {
  filter: invert(94%) sepia(9%) saturate(392%) hue-rotate(12deg) brightness(103%) contrast(95%);
}

.udmdr-design-menu-mobile .nav-link {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  color: #f5f5dc !important;
  padding: 0.5rem 0;
  text-align: end;
  border-bottom: 1px solid transparent;
}

.udmdr-design-menu-mobile .nav-link:hover,
.udmdr-design-menu-mobile .nav-link:focus-visible {
  color: #faf8ef !important;
  border-bottom-color: #f5f5dc;
}

.udmdr-design-menu-mobile .nav-link.active {
  border-bottom-color: #f5f5dc;
}

.udmdr-design-menu-mobile .dropdown-menu {
  border: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.udmdr-design-menu-mobile .dropdown-item {
  font-size: 0.9rem;
}

.udmdr-design-menu-mobile__tools {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(245, 245, 220, 0.22);
}

.udmdr-design-menu-mobile__tools .btn-outline-light {
  border-color: rgba(245, 245, 220, 0.55);
  color: #f5f5dc;
  font-weight: 600;
}

.udmdr-design-menu-mobile__tools .btn-outline-light:hover {
  background: rgba(245, 245, 220, 0.12);
  border-color: #f5f5dc;
  color: #faf8ef;
}

.udmdr-design-menu-mobile__tools .btn-light {
  background: #f5f5dc;
  border-color: #f5f5dc;
  color: #1b3c2d;
  font-weight: 700;
}

.udmdr-design-menu-mobile__tools .btn-light:hover {
  background: #fffef5;
  border-color: #fffef5;
  color: #143023;
}

/* Public home � extends design menu bar (dropdown + CTAs) */
.udmdr-design-menu-bar--website .container {
  max-width: 1320px;
}

.udmdr-design-menu-bar--website__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  padding: 0.85rem 0;
}

.udmdr-design-menu-bar--website__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1.35rem, 3vw, 2.85rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.udmdr-design-menu-bar--website__links > li {
  margin: 0;
}

.udmdr-design-menu-bar--website .dropdown-menu {
  border: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  margin-top: 0 !important;
}

.udmdr-design-menu-bar--website .dropdown-item {
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
}

.udmdr-design-menu-bar--website .dropdown-item:active {
  background-color: rgba(27, 60, 45, 0.12);
  color: #1b3c2d;
}

.udmdr-design-menu-bar--website .dropdown-toggle::after {
  vertical-align: 0.15em;
  margin-left: 0.35em;
  border-top-color: #f5f5dc;
  opacity: 0.9;
}

.udmdr-design-menu-bar--website .dropdown-toggle.show {
  border-bottom-color: #f5f5dc;
}

.udmdr-design-menu-bar--website__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-left: clamp(0.75rem, 2vw, 1.25rem);
  margin-left: clamp(0.25rem, 1vw, 0.75rem);
  border-left: 1px solid rgba(245, 245, 220, 0.28);
}

.udmdr-design-menu-bar--website__tools .btn-outline-light {
  border-color: rgba(245, 245, 220, 0.55);
  color: #f5f5dc;
  font-weight: 600;
  font-size: 0.8125rem;
}

.udmdr-design-menu-bar--website__tools .btn-outline-light:hover {
  background: rgba(245, 245, 220, 0.12);
  border-color: #f5f5dc;
  color: #faf8ef;
}

.udmdr-design-menu-bar--website__tools .btn-light {
  background: #f5f5dc;
  border-color: #f5f5dc;
  color: #1b3c2d;
  font-weight: 700;
  font-size: 0.8125rem;
}

.udmdr-design-menu-bar--website__tools .btn-light:hover {
  background: #fffef5;
  border-color: #fffef5;
  color: #143023;
}

.udmdr-design-menu-bar--website__tools .btn-light.udmdr-nav-admin-btn {
  color: #1b3c2d !important;
}

.udmdr-design-menu-mobile__tools .btn-light.udmdr-nav-admin-btn {
  color: #1b3c2d !important;
}

.udmdr-design-menu-mobile .dropdown-toggle::after {
  border-top-color: #f5f5dc;
  opacity: 0.9;
}
