:root {
  --brand:#1261A0;
  --brand-2:#0E8F8F;
  --accent:#F4B400;
  --ink:#1f2937;
  --muted:#6b7280;
  --bg:#f3f4f6;
  --card:#ffffff;
  --ring: rgba(18,97,160,.25);
  --success:#0EA267;
  --danger:#D93D3D;
}

/* Reset & Base */
* { box-sizing:border-box }
html,body {
  margin:0;
  padding:0;
  color:var(--ink);
  font-family:'Hind Siliguri', sans-serif;
  background:var(--bg);
}
a { color:var(--brand); text-decoration:none }
a:focus,button:focus,[role="button"]:focus,input:focus {
  outline:3px solid var(--ring);
  outline-offset:2px
}

/* Top utility bar */
.topbar {
  background:linear-gradient(90deg,var(--brand),var(--brand-2));
  color:#fff;
  font-size:.9rem
}
.wrap { max-width:1200px; margin:0 auto; padding:0 16px }
.topbar-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:8px 10px
}
.top-text { display:flex; flex-wrap:wrap; gap:12px; opacity:.95 }
.top-text a { color:#fff }

/* Header */
header {
  background:#fff;
  box-shadow:0 10px 30px -20px rgba(0,0,0,.2)
}
.header-row {
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:16px;
  align-items:center;
  padding:14px 10px
}
.brand { display:flex; gap:14px; align-items:center }
.brand .emblem-logo {
  width: 52px;
  height: 52px;
  object-fit: contain; 
  border-radius: 50%; 
  box-shadow: 0 0 0 3px #e5e7eb;
}
.brand h1 { font-size:1.25rem; line-height:1.2; margin:0 }
.brand small { display:block; color:var(--muted); font-weight:500 }

/* Nav */
nav { position:relative }
.nav {
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  justify-content:flex-end
}
.nav a {
  padding:10px 12px;
  border-radius:10px;
  font-weight:600;
  color:var(--ink)
}
.nav a:hover { background:#f1f5f9 }

/* Mobile nav (checkbox hack) */
#navToggle { display:none }
.hamburger {
  display:none;
  width:40px;
  height:40px;
  border-radius:10px;
  border:1px solid #e5e7eb;
  align-items:center;
  justify-content:center;
  cursor:pointer
}
.hamburger span {
  display:block;
  width:20px;
  height:2px;
  background:var(--ink);
  position:relative
}
.hamburger span::before,.hamburger span::after {
  content:"";
  position:absolute;
  left:0;
  width:20px;
  height:2px;
  background:var(--ink)
}
.hamburger span::before { top:-6px }
.hamburger span::after { top:6px }

@media (max-width: 900px){
  .header-row{grid-template-columns:auto 1fr auto}
  .nav{
    display:none;
    position:absolute;
    right:0;
    top:110%;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:14px;
    box-shadow:0 20px 40px -20px rgba(0,0,0,.25);
    padding:8px;
    min-width:220px
  }
  .nav a{display:block}
  .hamburger{display:flex}
  #navToggle:checked + label + .nav{display:block}
}

/* Hero */
.hero {
  background:linear-gradient(135deg,#e6f3fb 0%, #f2fbfa 100%)
}
.hero-inner {
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:28px;
  align-items:center;
  padding:40px 10px
}
.badge {
  display:inline-block;
  background:#e0f2fe;
  color:#075985;
  font-weight:700;
  padding:6px 10px;
  border-radius:999px;
  font-size:.8rem;
  border:1px solid #bae6fd
}
.hero h2 { font-size:2rem; line-height:1.15; margin:.6rem 0 }
.hero p { color:var(--muted); max-width:60ch }
.cta {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:14px
}
.btn {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 16px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  background:#fff;
  font-weight:700
}
.btn.primary {
  background:var(--brand);
  border-color:var(--brand);
  color:#fff
}
.btn.secondary { background:#fff }

.hero-graphic {
  aspect-ratio: 16/10;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  border: 1px solid #dbeafe;
}
.hero-graphic .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.float-card {
  position:absolute;
  inset:auto 20px 20px auto;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:12px 14px;
  box-shadow:0 16px 40px -20px rgba(0,0,0,.3)
}
.float-card p { margin:0; font-weight:700 }
.float-card small { display:block; color:var(--muted) }

@media (max-width: 900px){
  .hero-inner{grid-template-columns:1fr}
}

/* Notice ticker */
.ticker {
  background:#fff;
  border:1px solid #e5e7eb;
  border-left:4px solid var(--accent);
  border-radius:14px;
  padding:10px 12px;
  display:flex;
  gap:12px;
  align-items:center;
  overflow:hidden
}
.ticker-label {
  font-weight:800;
  color:#92400e;
  background:#fef3c7;
  border:1px solid #fde68a;
  padding:4px 8px;
  border-radius:8px;
  flex:none
}
.ticker-track {
  white-space:nowrap;
  animation:marquee 22s linear infinite
}
.ticker-track a { margin-right:36px }
@keyframes marquee {
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}

/* Cards row */
.cards {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin:24px 0
}
.card {
  background:var(--card);
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding:16px;
  box-shadow:0 10px 30px -20px rgba(0,0,0,.25)
}
.card h3{margin:.2rem 0 0;font-size:1.05rem}
.card p{color:var(--muted);margin:.35rem 0 0}
.pill {
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  font-size:.75rem;
  font-weight:700;
  background:#eff6ff;
  color:#1d4ed8;
  border:1px solid #dbeafe
}
.stat{font-size:1.7rem;font-weight:800}
@media (max-width:1000px){.cards{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.cards{grid-template-columns:1fr}}

/* Two column grid */
.grid-2{display:grid;grid-template-columns:2fr 1.2fr;gap:16px}
@media (max-width:1000px){.grid-2{grid-template-columns:1fr}}

/* Lists */
.list {
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:16px
}
.list h3 {
  margin:0;
  padding:14px 16px;
  border-bottom:1px solid #e5e7eb
}
.list ul { list-style:none; margin:0; padding:0 }
.list li {
  padding:12px 16px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  border-top:1px solid #f1f5f9
}
.meta { color:var(--muted); font-size:.9rem }
.chip {
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  font-size:.72rem;
  border:1px solid #e5e7eb;
  background:#f8fafc
}

/* Footer */
footer {
  margin-top:32px;
  background:#0b2942;
  color:#e5e7eb
}
.footer-inner {
  display:grid;
  grid-template-columns:2fr 1.2fr 1fr;
  gap:24px;
  padding:32px 10px
}
.footer-inner h4 { color:#fff; margin:0 0 10px }
.footer-inner a { color:#c1d6ea }
.copyright {
  border-top:1px solid rgba(255,255,255,.15);
  padding:12px 10px;
  color:#c1d6ea
}
@media (max-width:900px){.footer-inner{grid-template-columns:1fr}}

/* Utility */
.mt-8{margin-top:32px}
.mt-6{margin-top:24px}
.mt-4{margin-top:16px}
.mb-2{margin-bottom:8px}
.center{display:flex;align-items:center;justify-content:center}
.icon{width:24px;height:24px;display:inline-block}
.muted{color:var(--muted)}

/* Team section */
.team-section{margin-top:40px}
.team-section h2 {
  text-align:center;
  font-size:1.6rem;
  margin-bottom:20px
}
.team-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px
}
.team-card {
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:16px;
  text-align:center;
  box-shadow:0 8px 24px -12px rgba(0,0,0,.2)
}
.team-card img {
  width:120px;
  height:120px;
  object-fit:cover;
  border-radius:50%;
  margin-bottom:10px;
  border:3px solid var(--brand-2)
}
.team-card h3{margin:.3rem 0 0;font-size:1.1rem}
.team-card p{margin:0;color:var(--muted)}


/* Blood Bank Page Styles */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 10px;
}


.title-box {
    text-align: center;
    padding: 1.5rem;
    background: var(--card);
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px -20px rgba(0,0,0,.15);
}

.title-box h2 {
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    color: var(--brand);
}

.title-box p {
    color: var(--muted);
    margin: 0;
    font-size: 1.1rem;
}

/* Search Form */
.search-box {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    background: var(--card);
    border-radius: 16px;
}

.search-box select {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 1rem;
    background: #fff;
    min-width: 250px;
}

.search-box button {
    padding: 12px 24px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Hind Siliguri', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-box button:hover {
    background: var(--brand-2);
}

/* Results */
.result-title {
    text-align: center;
    margin: 2rem 0 1rem 0;
    font-size: 1.3rem;
    color: var(--ink);
}

.result-title .badge {
    background: var(--danger);
    color: white;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 1.1rem;
}

/* Table */
.table-box {
    margin: 2rem 0;
    background: var(--card);
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 10px 30px -20px rgba(0,0,0,.15);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    color: white;
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

tbody tr {
    border-bottom: 1px solid #f1f5f9;
}

tbody tr:last-child {
    border-bottom: none;
}

td {
    padding: 1rem;
    color: var(--ink);
}

/* Call Button */
.call-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--success);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.call-btn:hover {
    background: #0c8a5a;
    transform: translateY(-1px);
}

/* Alert Message */
.alert {
    text-align: center;
    padding: 2rem;
    background: #fef3f3;
    border: 1px solid #fed7d7;
    border-radius: 16px;
    color: var(--danger);
    font-weight: 600;
    margin: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-box {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-box select {
        min-width: auto;
        width: 100%;
    }
    
    .search-box button {
        width: 100%;
    }
    
    .table-box {
        overflow-x: auto;
    }
    
    table {
        min-width: 600px;
    }
    
    th, td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .title-box h2 {
        font-size: 1.5rem;
    }
    
    .title-box p {
        font-size: 1rem;
    }
    
    .result-title {
        font-size: 1.1rem;
    }
}