:root {
  --navy: #0B132B;
  --navy-soft: #1C2541;
  --royal: #0F4C81;
  --royal-hover: #0A365C;
  --crimson: #DC2626;
  --crimson-hover: #B91C1C;
  --bg-page: #F8FAFC;
  --bg-white: #FFFFFF;
  --border: #E2E8F0;
  --text-main: #0F172A;
  --text-muted: #475569;
  --success: #059669;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Emergency Bar */
.top-bar {
  background: var(--navy);
  color: #E2E8F0;
  font-size: 0.875rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.top-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.copy-phone-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  padding: 3px 10px;
  border-radius: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.copy-phone-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.copy-tag {
  background: var(--royal);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: 'Hind Siliguri', sans-serif;
}

.national-emergency {
  color: #FCA5A5;
  text-decoration: none;
}

.divider {
  opacity: 0.35;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-bn {
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--navy);
  line-height: 1.2;
}

.brand-en {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--royal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--royal);
}

.nav-links a.nav-cta {
  background: var(--crimson);
  color: #FFFFFF;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
}

.nav-links a.nav-cta:hover {
  background: var(--crimson-hover);
  color: #FFFFFF;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger {
  background: var(--crimson);
  color: #FFFFFF;
}

.btn-danger:hover {
  background: var(--crimson-hover);
}

.btn-primary {
  background: var(--royal);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--royal-hover);
}

.btn-outline {
  background: transparent;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline-dark {
  background: #FFFFFF;
  color: var(--navy);
  border: 1px solid var(--border);
}

.full-width {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #FFFFFF;
  padding: 64px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  color: #7DD3FC;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-subtitle {
  color: #CBD5E1;
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: #FFFFFF;
}

.stat-item span {
  font-size: 0.85rem;
  color: #94A3B8;
}

/* Triage Card */
.triage-card {
  background: var(--bg-white);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.triage-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--crimson);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.triage-header h2 {
  font-size: 1.35rem;
  margin: 4px 0;
  color: var(--navy);
}

.triage-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.triage-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.triage-tab {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-page);
  color: var(--text-main);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.triage-tab.active {
  background: var(--royal);
  color: #FFFFFF;
  border-color: var(--royal);
}

.triage-result {
  background: #F1F5F9;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
  border-left: 4px solid var(--royal);
}

.triage-result h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.triage-result ol {
  padding-left: 18px;
  font-size: 0.92rem;
  color: var(--text-main);
}

.triage-result li {
  margin-bottom: 5px;
}

/* Notice Strip */
.notice-strip {
  background: #FEF2F2;
  border-bottom: 1px solid #FECACA;
  padding: 14px 0;
}

.notice-strip-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.notice-badge {
  background: var(--crimson);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 6px;
  white-space: nowrap;
}

.notice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.93rem;
  color: #7F1D1D;
  font-weight: 500;
}

/* Common Section Styles */
.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.section-head.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-tag {
  display: inline-block;
  color: var(--royal);
  background: #E0F2FE;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  color: var(--navy);
  font-weight: 700;
}

.section-desc {
  color: var(--text-muted);
  max-width: 650px;
  margin-top: 6px;
}

/* Gallery Section */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-main);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-thumb-wrap {
  position: relative;
  height: 220px;
  background: #E2E8F0;
  overflow: hidden;
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-cat-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 19, 43, 0.88);
  color: #FFFFFF;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.gallery-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gallery-meta {
  font-size: 0.82rem;
  color: var(--royal);
  font-weight: 600;
  margin-bottom: 6px;
}

.gallery-body h3 {
  font-size: 1.12rem;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.gallery-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Awareness Section */
.awareness-section {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.awareness-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.guide-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.guide-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--royal);
  margin-bottom: 8px;
}

.guide-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--navy);
}

.guide-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.check-item input {
  margin-top: 4px;
  accent-color: var(--success);
  width: 16px;
  height: 16px;
}

.safety-progress-bar {
  margin-top: 28px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.safety-progress-bar span {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--navy);
}

.progress-track {
  width: 100%;
  height: 10px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--success);
  transition: width 0.3s ease;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.team-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.team-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid #E0F2FE;
  background: #F1F5F9;
}

.team-card h3 {
  font-size: 1.08rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-role {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--royal);
  background: #F0F9FF;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.team-area {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Report Section */
.report-section {
  background: #F1F5F9;
  border-top: 1px solid var(--border);
}

.report-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
}

.report-info h2 {
  font-size: 1.85rem;
  color: var(--navy);
  margin: 8px 0 14px;
}

.report-info p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.contact-boxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
}

.contact-box strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-box span,
.contact-box a {
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.report-form-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: #FFFFFF;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--royal);
}

.ticket-box {
  margin-top: 20px;
  padding: 20px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-md);
}

.ticket-badge {
  display: inline-block;
  background: var(--success);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.ticket-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.hidden {
  display: none !important;
}

/* Footer */
.footer {
  background: var(--navy);
  color: #CBD5E1;
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer-brand h4 {
  color: #FFFFFF;
  font-size: 1.05rem;
}

.footer-brand p,
.footer-meta p {
  font-size: 0.85rem;
}

.footer-note {
  color: #94A3B8;
  margin-top: 4px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 43, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}

.modal-dialog {
  background: #FFFFFF;
  max-width: 720px;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(11, 19, 43, 0.85);
  color: #FFFFFF;
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
  background: #0F172A;
}

.modal-body {
  padding: 22px 26px;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--royal);
  margin-bottom: 8px;
}

.modal-body h3 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 10px;
}

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

/* Responsive */
@media (max-width: 992px) {
  .hero-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid,
  .awareness-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid,
  .awareness-grid,
  .team-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Hero Stats Smooth Entrance Animation */
.stat-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-item:nth-child(1) { transition-delay: 0.05s; }
.stat-item:nth-child(2) { transition-delay: 0.15s; }
.stat-item:nth-child(3) { transition-delay: 0.25s; }
.stat-item:nth-child(4) { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  .stat-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Portal Preloader Overlay */
.portal-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0B132B;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.portal-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  text-align: center;
  color: #F8FAFC;
  max-width: 340px;
  width: 100%;
}

.loader-ring {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
}

.loader-ring::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #38BDF8;
  border-right-color: #DC2626;
  animation: sccatSpin 1s linear infinite;
}

.loader-ring img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
}

.loader-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #FFFFFF;
}

.loader-card p {
  font-size: 0.88rem;
  color: #94A3B8;
  margin-bottom: 16px;
}

.loader-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0F4C81, #38BDF8);
  border-radius: 999px;
  animation: sccatProgress 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes sccatSpin {
  to { transform: rotate(360deg); }
}

@keyframes sccatProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-loader,
  .portal-loader.hide {
    transition: none;
  }

  .loader-ring::before,
  .loader-bar span {
    animation: none;
  }

  .loader-bar span {
    width: 100%;
  }
}
