/* ==========================================================================
   INDONESIAN GREAT SYSTEM TRAFFIC (IGST)
   Platform Independen Edukasi Berkendara, Referensi Pasal LLAJ & Peta Kecelakaan
   Dial: ENERGY 2 / RHYTHM 2 / MOTION 2
   ========================================================================== */

:root {
  --igst-navy-dark: #071930;
  --igst-navy: #0b2447;
  --igst-blue: #19376d;
  --igst-amber: #f59e0b;
  --igst-amber-light: #fbbf24;
  --igst-red: #dc2626;
  --igst-red-dark: #991b1b;
  --igst-red-soft: #fef2f2;
  --igst-green: #15803d;
  --igst-green-soft: #f0fdf4;
  --igst-bg: #f4f7fb;
  --igst-surface: #ffffff;
  --igst-text: #0f172a;
  --igst-text-muted: #334155;
  --igst-border: #cbd5e1;
  --shadow-card: 0 4px 14px rgba(11, 36, 71, 0.07);
  --shadow-elevated: 0 12px 30px rgba(11, 36, 71, 0.14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.22s ease;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--igst-text);
  background-color: var(--igst-bg);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Base Interactive Affordances & Keyboard Focus (R-32, R-39) */
a[href],
button,
select,
summary,
label[for],
input[type="file"],
[role="button"],
[role="tab"] {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
}

:focus-visible {
  outline: 3px solid var(--igst-amber);
  outline-offset: 2px;
}

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

ul {
  list-style: none;
}

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

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

/* ==========================================================================
   HEADER & NAVIGATION (R-03, R-24, R-39)
   ========================================================================== */
.site-header,
.main-header {
  background: var(--igst-navy);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--igst-amber);
}

.navbar,
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand,
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--igst-amber);
  color: var(--igst-navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.brand-emblem svg {
  width: 26px;
  height: 26px;
}

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

.brand-title {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.brand-unit,
.brand-subtitle {
  font-size: 0.76rem;
  color: #e2e8f0;
}

.nav-links,
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  color: #f1f5f9;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  background: transparent;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--igst-amber-light);
}

.nav-link:active {
  transform: translateY(1px);
}

.nav-link.active {
  background: var(--igst-amber);
  color: var(--igst-navy-dark);
  font-weight: 800;
}

.nav-login-btn {
  border: 1.5px solid var(--igst-amber);
  color: var(--igst-amber-light);
  font-weight: 700;
}

.nav-login-btn:hover {
  background: var(--igst-amber);
  color: var(--igst-navy-dark);
}

/* ==========================================================================
   HERO SECTION WITH PHOTO SLIDESHOW CAROUSEL (index.html)
   ========================================================================== */
.hero {
  background: var(--igst-navy-dark);
  color: #ffffff;
  padding: 48px 0 56px;
  border-bottom: 4px solid var(--igst-amber);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 16px;
  color: #ffffff;
}

.hero h1 span {
  color: var(--igst-amber-light);
}

.hero-desc {
  font-size: 1rem;
  color: #e2e8f0;
  margin-bottom: 24px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons (Minimum 44px touch target, R-03, R-39) */
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  border: 1.5px solid transparent;
  transition: var(--transition);
}

.btn:active {
  transform: translateY(1px);
}

.btn-gold {
  background: var(--igst-amber);
  color: var(--igst-navy-dark);
}

.btn-gold:hover {
  background: var(--igst-amber-light);
}

.btn-red {
  background: var(--igst-red);
  color: #ffffff;
}

.btn-red:hover {
  background: #b91c1c;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--igst-amber-light);
}

.btn-navy {
  background: var(--igst-navy);
  color: #ffffff;
}

.btn-navy:hover {
  background: var(--igst-blue);
}

/* Hero Photo Slideshow (Animasi Slide Per Foto, R-19, R-39, R-40) */
.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.22);
  background: #040d1a;
  box-shadow: var(--shadow-elevated);
}

.hero-slides-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}

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

.hero-slide-caption {
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(7, 25, 48, 0.88);
  color: #ffffff;
  padding: 14px 18px;
  border-top: 2px solid var(--igst-amber);
}

.hero-slide-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--igst-amber-light);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.hero-slide-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-slider-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #071930;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.slider-nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
}

.slider-btn:hover {
  background: var(--igst-amber);
  color: var(--igst-navy-dark);
  border-color: var(--igst-amber);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.slider-dot {
  width: 28px;
  height: 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.2);
  padding: 0;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--igst-amber);
  border-color: var(--igst-amber);
  width: 38px;
}

/* ==========================================================================
   PAGE BANNER / HERO (tips.html, pelanggaran.html, peta-kecelakaan.html)
   ========================================================================== */
.page-hero,
.page-banner {
  background: var(--igst-navy);
  color: #ffffff;
  padding: 40px 0 48px;
  border-bottom: 4px solid var(--igst-amber);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.breadcrumb a:hover {
  color: var(--igst-amber-light);
  text-decoration: underline;
}

.page-hero h1,
.page-banner h1 {
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  font-weight: 800;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-hero p,
.page-banner p {
  color: #e2e8f0;
  max-width: 820px;
  font-size: 0.96rem;
}

/* ==========================================================================
   FILTER DOCK (MOTOR, MOBIL, BUS, TRUK/LAINNYA)
   ========================================================================== */
.filter-dock-wrap {
  margin-top: -24px;
  position: relative;
  z-index: 20;
  margin-bottom: 32px;
}

.filter-dock {
  background: var(--igst-surface);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--igst-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.filter-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-tab {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  color: var(--igst-text);
  font-weight: 700;
  font-size: 0.88rem;
  border: 1.5px solid #cbd5e1;
  transition: var(--transition);
}

.cat-tab:hover {
  background: #e2e8f0;
}

.cat-tab.active {
  background: var(--igst-navy);
  color: #ffffff;
  border-color: var(--igst-navy);
}

.cat-tab .count-badge {
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.76rem;
}

.cat-tab:not(.active) .count-badge {
  background: #cbd5e1;
  color: var(--igst-navy-dark);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 380px;
}

.search-box label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--igst-navy);
  margin-bottom: 4px;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--igst-border);
  font-size: 0.9rem;
  background: #ffffff;
  color: var(--igst-text);
}

.search-box input:focus {
  border-color: var(--igst-blue);
}

/* ==========================================================================
   SECTIONS & VEHICLE BANNERS
   ========================================================================== */
.section {
  padding: 52px 0;
}

.section-alt {
  background: #eaf0f8;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
}

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

.section-title {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 800;
  color: var(--igst-navy);
  line-height: 1.25;
}

.section-subtitle {
  color: var(--igst-text-muted);
  font-size: 0.95rem;
  margin-top: 6px;
  max-width: 780px;
}

.vehicle-section-banner {
  background: var(--igst-navy);
  color: #ffffff;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  margin: 34px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.vehicle-section-banner:first-of-type {
  margin-top: 8px;
}

.vehicle-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vehicle-icon-circle {
  min-width: 48px;
  height: 48px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: var(--igst-amber);
  color: var(--igst-navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.vehicle-banner-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

.vehicle-banner-desc {
  font-size: 0.86rem;
  color: #e2e8f0;
}

.vehicle-banner-badge {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
}

/* ==========================================================================
   CATEGORY SHOWCASE & SIMPLE CARDS (TIPS & PELANGGARAN TANPA DENDA)
   ========================================================================== */
.category-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cat-card {
  background: var(--igst-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--igst-border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.cat-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 3px solid var(--igst-amber);
}

.cat-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cat-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--igst-navy);
  margin-bottom: 6px;
}

.cat-card-desc {
  font-size: 0.86rem;
  color: var(--igst-text-muted);
  margin-bottom: 16px;
  flex: 1;
}

.cat-card-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cat-card-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  background: var(--igst-navy);
  color: #ffffff;
  transition: var(--transition);
}

.cat-card-links a.link-pelanggaran {
  background: var(--igst-red);
}

.cat-card-links a:hover {
  opacity: 0.9;
}

/* Cards Grid for Tips & Pelanggaran */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.igst-card {
  background: var(--igst-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--igst-border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--igst-navy-dark);
  overflow: hidden;
  border-bottom: 3px solid var(--igst-amber);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.card-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.card-meta-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-number {
  background: var(--igst-navy);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 6px;
}

.badge-pasal {
  background: var(--igst-red);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 6px;
}

.badge-tip-tag {
  background: #0f766e;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 6px;
}

.vehicle-chip {
  background: #f1f5f9;
  border: 1px solid #94a3b8;
  color: var(--igst-navy);
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 700;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--igst-navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--igst-text-muted);
  margin-bottom: 14px;
  flex: 1;
}

/* Simple Pasal Box (Hanya Pasal, Tanpa Denda) */
.pasal-legal-box {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
}

.pasal-legal-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--igst-red-dark);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.pasal-legal-text {
  font-size: 0.86rem;
  font-weight: 700;
  color: #7f1d1d;
  line-height: 1.4;
}

/* Simple Tips Checklist */
.tips-checklist {
  background: var(--igst-green-soft);
  border: 1px solid #86efac;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
}

.tips-checklist-title {
  font-size: 0.75rem;
  font-weight: 800;
  color: #14532d;
  margin-bottom: 4px;
}

.tips-checklist ul li {
  font-size: 0.82rem;
  color: #14532d;
  padding-left: 14px;
  position: relative;
  margin-bottom: 3px;
}

.tips-checklist ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-weight: 800;
}

.card-footer-actions {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.btn-card {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 700;
  border: 1.5px solid #94a3b8;
  background: #f8fafc;
  color: var(--igst-navy);
  transition: var(--transition);
}

.btn-card:hover {
  background: var(--igst-navy);
  color: #ffffff;
  border-color: var(--igst-navy);
}

/* ==========================================================================
   MAP & ACCIDENT REPORTING SYSTEM
   ========================================================================== */
.map-dashboard-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.map-card {
  background: var(--igst-surface);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--igst-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.map-card-header {
  background: var(--igst-navy);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 3px solid var(--igst-amber);
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
}

.legend-dot-red {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #ffffff;
}

.legend-dot-amber {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f59e0b;
  border: 2px solid #ffffff;
}

#igstRealMap {
  width: 100%;
  height: 480px;
  z-index: 5;
  background: #cbd5e1;
}

.igst-red-marker-pin {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #dc2626;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 13px;
}

.igst-pending-marker-pin {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f59e0b;
  border: 3px solid #071930;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #071930;
  font-weight: 900;
  font-size: 12px;
}

.jump-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #94a3b8;
  background: #ffffff;
  color: var(--igst-navy);
  font-weight: 700;
  font-size: 0.82rem;
  transition: var(--transition);
}

.jump-btn:hover {
  background: var(--igst-navy);
  color: #ffffff;
  border-color: var(--igst-navy);
}

.portal-card {
  background: var(--igst-surface);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--igst-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.portal-header {
  background: var(--igst-navy);
  color: #ffffff;
  padding: 18px 22px;
  border-bottom: 3px solid var(--igst-amber);
}

.portal-body {
  padding: 22px;
}

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

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

.form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #94a3b8;
  font-size: 0.9rem;
  font-family: inherit;
  background: #ffffff;
  color: var(--igst-text);
}

.form-control:focus {
  border-color: var(--igst-blue);
}

textarea.form-control {
  min-height: 88px;
  resize: vertical;
}

.upload-preview-box {
  display: none;
  margin-top: 10px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--igst-amber);
}

.upload-preview-box img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}

.accident-list-item {
  background: #f8fafc;
  border: 1px solid var(--igst-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: start;
}

.accident-list-item.confirmed {
  border: 1.5px solid #fca5a5;
  background: #fff5f5;
}

.accident-list-item.pending {
  border: 1.5px solid #fcd34d;
  background: #fffbeb;
}

.accident-thumb {
  width: 140px;
  height: 104px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid #94a3b8;
}

/* ==========================================================================
   COMBINED LOGIN & REGISTER PORTAL PAGE (login.html)
   ========================================================================== */
.auth-portal-shell {
  max-width: 580px;
  margin: 0 auto;
  background: var(--igst-surface);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--igst-border);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #e2e8f0;
  border-bottom: 2px solid var(--igst-border);
}

.auth-tab-btn {
  min-height: 52px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--igst-text-muted);
  transition: var(--transition);
}

.auth-tab-btn.active {
  background: var(--igst-surface);
  color: var(--igst-navy);
  border-top: 4px solid var(--igst-amber);
}

.auth-pane {
  display: none;
  padding: 28px;
}

.auth-pane.active {
  display: block;
}

/* ==========================================================================
   MODAL DETAIL POPUP
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 25, 48, 0.8);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  background: var(--igst-surface);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-elevated);
  border: 2px solid var(--igst-amber);
}

.modal-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--igst-navy-dark);
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  background: var(--igst-navy-dark);
  color: #ffffff;
  border: 2px solid var(--igst-amber);
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content-body {
  padding: 24px;
}

/* ==========================================================================
   INDEPENDENT FOOTER
   ========================================================================== */
.site-footer {
  background: var(--igst-navy-dark);
  color: #e2e8f0;
  border-top: 4px solid var(--igst-amber);
  margin-top: auto;
  padding: 40px 0 24px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand-block {
  max-width: 460px;
}

.footer-brand-title {
  color: var(--igst-amber-light);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.footer-nav-list {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-nav-list a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #f1f5f9;
}

.footer-nav-list a:hover {
  color: var(--igst-amber-light);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.83rem;
  color: #cbd5e1;
}

/* ==========================================================================
   REDUCED MOTION & THREE-STATE RESPONSIVE BREAKPOINTS (R-03, R-39)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* State 2: Tablet & Small Laptop (681px - 1080px) */
@media (max-width: 1080px) {
  .hero-grid,
  .map-dashboard-layout {
    grid-template-columns: 1fr;
  }
  .category-showcase,
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* State 3: Mobile Phone (<= 680px) */
@media (max-width: 680px) {
  .container {
    padding: 0 16px;
  }
  .navbar,
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
  }
  .nav-links,
  .main-nav {
    width: 100%;
    justify-content: flex-start;
  }
  .hero {
    padding: 32px 0 40px;
  }
  .section {
    padding: 34px 0;
  }
  .category-showcase,
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .accident-list-item {
    grid-template-columns: 1fr;
  }
  .accident-thumb {
    width: 100%;
    height: 160px;
  }
}
