:root {
  /* Public site palette — aligned with admin panel (#1a1f2e / #d32f45) */
  --bg-dark: #0c0e14;
  --bg-elevated: #141824;
  --surface: #1a1f2e;
  --surface-2: #232a3d;
  --bg-card: #1c2130;
  --bg-card-hover: #252b3d;
  --red: #d32f45;
  --red-soft: #ff6b7a;
  --red-hover: #b71c30;
  --gold: #e8c49a;
  --gold-deep: #c9a066;
  --text: #ffffff;
  --text-body: #e8eaf2;
  --text-soft: #c5cdd9;
  --text-muted: #9aa3b8;
  --border: #2e3648;
  --border-light: #3d4658;
  --border-subtle: #4a5470;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  --shadow-card: 0 8px 32px rgba(26, 31, 46, 0.45);
  --glow-red: 0 0 48px rgba(211, 47, 69, 0.14);
  --focus-ring: 0 0 0 3px rgba(211, 47, 69, 0.22);
  --radius: 14px;
  --radius-sm: 10px;
  /* Passport photo 35mm × 45mm */
  --passport-w: 140px;
  --passport-h: 180px;
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background: var(--bg-dark);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(211, 47, 69, 0.12) 0%, transparent 52%),
    radial-gradient(ellipse 70% 40% at 100% 50%, rgba(26, 31, 46, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse 70% 40% at 0% 80%, rgba(18, 21, 31, 0.8) 0%, transparent 45%),
    linear-gradient(180deg, #12151f 0%, var(--bg-dark) 55%);
  color: var(--text-body);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

main {
  overflow-x: hidden;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  line-height: 1.35;
}

p {
  color: var(--text-body);
}

/* Navbar — admin-style navy gradient */
.navbar {
  background: linear-gradient(180deg, rgba(26, 31, 46, 0.98) 0%, rgba(18, 21, 31, 0.98) 100%) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.navbar .container {
  max-width: 100%;
}

.navbar-brand {
  color: var(--text) !important;
  font-size: 0.9rem;
  font-weight: 700;
  max-width: 200px;
  line-height: 1.25;
}

.nav-link {
  color: var(--text-soft) !important;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.55rem !important;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #fff !important;
  background: linear-gradient(90deg, var(--red) 0%, var(--red-hover) 100%);
  box-shadow: 0 4px 12px rgba(211, 47, 69, 0.35);
}

.navbar .form-control {
  background: rgba(248, 249, 252, 0.08);
  border-color: var(--border-light);
  color: var(--text);
  border-radius: 8px;
  min-width: 140px;
}

.navbar .form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--red);
  box-shadow: var(--focus-ring);
  color: #fff;
}

.navbar .form-control::placeholder {
  color: var(--text-muted);
}

.site-logo {
  height: 46px;
  max-width: 150px;
  object-fit: contain;
}

/* Homepage — no hero banner */
.page-home main {
  padding-top: 0;
}

.home-dash {
  padding: 2rem 0 3.5rem;
}

.home-dash-top {
  margin-bottom: 2.5rem;
}

.stat-card--featured {
  text-align: center;
  background: linear-gradient(165deg, var(--surface) 0%, #1e2436 55%, var(--surface-2) 100%);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--red);
  position: relative;
  overflow: hidden;
}

.stat-card--featured::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 55%;
  height: 80%;
  background: radial-gradient(circle, rgba(211, 47, 69, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.stat-eyebrow {
  color: var(--red-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.stat-card--featured .stat-number {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1;
}

.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 120px;
  height: 100%;
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elevated) 100%);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--text) !important;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}

.quick-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 122, 0.5);
  box-shadow: 0 12px 36px rgba(211, 47, 69, 0.25), var(--glow-red);
  color: #fff !important;
}

.quick-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.65rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-hover) 100%);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(211, 47, 69, 0.4);
}

.quick-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-soft);
}

.quick-card:hover .quick-card-title {
  color: #fff;
}

.section-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin: 0.65rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red-hover) 100%);
}

/* Page headers */
.page-header {
  padding: 2.75rem 0 1.75rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 2.5rem;
  background: linear-gradient(180deg, rgba(26, 31, 46, 0.85) 0%, rgba(12, 14, 20, 0.4) 100%);
  box-shadow: var(--glow-red);
}

.page-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.page-subtitle {
  color: var(--text-soft);
  font-size: 1.1rem;
  margin: 0;
  max-width: 560px;
  line-height: 1.6;
}

.text-muted-custom {
  color: var(--text-muted) !important;
  font-size: 1.05rem;
}

/* Stat & martyr cards — admin-card feel on dark */
.stat-card {
  background: linear-gradient(165deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-card);
}

.stat-card .stat-number,
.stat-card h2,
.stat-card .display-5 {
  color: var(--red-soft) !important;
  font-weight: 800;
}

.stat-card .stat-label,
.stat-card p {
  color: var(--text-soft) !important;
  font-size: 1rem;
  font-weight: 500;
}

.martyr-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow-card);
}

.martyr-card:hover {
  border-color: rgba(255, 107, 122, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(211, 47, 69, 0.22), var(--glow-red);
}

.martyr-card-media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.martyr-card-media img,
.martyr-card-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.martyr-card-placeholder {
  background: linear-gradient(145deg, var(--surface-2) 0%, var(--bg-elevated) 100%);
}

.martyr-card:hover .martyr-card-media img {
  transform: scale(1.05);
}

.martyr-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(12, 14, 20, 0.85) 100%);
  pointer-events: none;
}

.martyr-card-body {
  padding: 1.15rem 1.25rem 1.35rem;
}

.martyr-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.martyr-card-name a {
  color: var(--text);
  text-decoration: none;
}

.martyr-card-name a:hover {
  color: var(--red-soft);
}

.martyr-card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.martyr-card-excerpt {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.martyr-card h2,
.martyr-card h3 {
  color: var(--text);
}

.martyr-card .small {
  color: var(--text-soft) !important;
}

/* Committee — passport size photo (35×45mm ratio) */
.committee-grid {
  --bs-gutter-x: 1.75rem;
  --bs-gutter-y: 2rem;
}

.member-card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.member-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 122, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), var(--glow-red);
}

.member-photo-wrap {
  padding: 1.75rem 1.25rem 0;
  display: flex;
  justify-content: center;
}

.passport-frame {
  display: inline-block;
  padding: 10px 10px 14px;
  background: linear-gradient(180deg, #fafbfc 0%, #e8eaef 100%);
  border-radius: 3px;
  box-shadow:
    0 1px 0 #fff inset,
    0 4px 16px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.15);
}

.member-photo {
  width: var(--passport-w);
  height: var(--passport-h);
  aspect-ratio: 35 / 45;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 1px;
  background: #dfe2e9;
}

.member-photo-placeholder {
  background: linear-gradient(180deg, #c8ccd6 0%, #a8adb8 100%);
  position: relative;
}

.member-photo-placeholder::after {
  content: '';
  position: absolute;
  inset: 40% 35%;
  border: 2px dashed #888;
  border-radius: 4px;
}

.member-body {
  padding: 1.25rem 1.35rem 1.75rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.member-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.member-role {
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.member-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #fff !important;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-hover) 100%);
  border: none;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(211, 47, 69, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: auto;
}

.member-phone:hover {
  color: #fff !important;
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(211, 47, 69, 0.5);
}


/* Buttons */
.btn-memorial {
  background: linear-gradient(90deg, var(--red) 0%, var(--red-hover) 100%);
  border: none;
  color: #fff !important;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(211, 47, 69, 0.4);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.btn-memorial:hover {
  background: linear-gradient(135deg, var(--red-soft) 0%, var(--red) 100%);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(211, 47, 69, 0.5);
}

.btn-outline-memorial {
  border: 2px solid var(--red-soft);
  color: var(--red-soft) !important;
  background: rgba(12, 14, 20, 0.6);
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
}

.btn-outline-memorial:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff !important;
}

.site-footer {
  background: linear-gradient(180deg, #12151f 0%, #080a10 100%);
  border-top: 1px solid var(--border-light);
  margin-top: 2rem;
}

.footer-brand {
  color: var(--text-soft);
  font-weight: 600;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.alert {
  border-radius: var(--radius-sm);
  border-width: 1px;
}

.alert-success {
  background: rgba(46, 125, 50, 0.15);
  border-color: rgba(165, 214, 167, 0.35);
  color: #a5d6a7;
}

.alert-danger {
  background: rgba(183, 28, 48, 0.12);
  border-color: rgba(239, 154, 154, 0.35);
  color: #ef9a9a;
}

.form-control,
.form-select {
  background: var(--surface);
  border: 1px solid var(--border-light);
  color: var(--text);
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus,
.form-select:focus {
  background: var(--surface-2);
  border-color: var(--red);
  color: var(--text);
  box-shadow: var(--focus-ring);
}

label.form-label {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.88rem;
}

.admin-sidebar {
  min-height: 100vh;
  background: #0e1018;
  border-right: 1px solid var(--border);
}

.admin-sidebar .nav-link {
  color: var(--text-muted);
  border-radius: 8px;
  margin-bottom: 4px;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: linear-gradient(90deg, var(--red) 0%, var(--red-hover) 100%);
  color: #fff !important;
}

.admin-passport-thumb {
  width: 35px;
  height: 45px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--border);
}

html[lang="bn"] body {
  font-family: 'Noto Sans Bengali', system-ui, sans-serif;
}

html[lang="en"] body {
  font-family: 'Inter', system-ui, sans-serif;
}

@media (max-width: 991px) {
  .navbar-brand span {
    font-size: 0.88rem;
  }
  .nav-link {
    white-space: normal;
  }
  :root {
    --passport-w: 120px;
    --passport-h: 154px;
  }
}

@media (min-width: 1200px) {
  :root {
    --passport-w: 150px;
    --passport-h: 193px;
  }
}
