@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --primary-navy: #0f2942;
  --dark-navy: #0b1d2f;
  --royal-maroon: #701a24;
  --maroon-hover: #8b2330;
  --academic-gold: #f59e0b;
  --academic-gold-light: #fbbf24;
  --amber-light-tint: #fef3c7;
  --surface-offwhite: #f8fafc;
  --pure-white: #ffffff;
  --border-neutral: #e2e8f0;
  --success-emerald: #047857;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #0f172a;
  background-color: var(--surface-offwhite);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.font-serif {
  font-family: 'Cinzel', serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ========================================================================= */
/* ANIMATIONS & TRANSITIONS (Anime-grade smooth UX)                          */
/* ========================================================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  50% {
    box-shadow: 0 0 16px 4px rgba(245, 158, 11, 0.2);
  }
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-glow {
  animation: pulseGlow 2.5s infinite;
}

.animate-float {
  animation: floatGentle 3s ease-in-out infinite;
}

/* 4-Tier Sticky Header Styles */
.header-ngo-bar {
  background-color: var(--royal-maroon);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 0.35rem 1rem;
}

.header-utility-bar {
  background-color: var(--primary-navy);
  color: #e2e8f0;
  font-size: 0.8125rem;
  padding: 0.45rem 1rem;
}

.header-marquee-strip {
  background-color: var(--amber-light-tint);
  color: #78350f;
  font-size: 0.8125rem;
  padding: 0.4rem 1rem;
  border-bottom: 1px solid #fde68a;
  overflow: hidden;
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-scroll 28s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.header-main-nav {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px -2px rgba(15, 41, 66, 0.08);
}

.nav-link-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 0.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1440px) {
  .nav-link-item {
    padding: 0.55rem 0.8rem;
    font-size: 0.85rem;
  }
}

.nav-link-item:hover {
  color: var(--royal-maroon);
  background-color: #fef2f2;
}

.nav-link-item.active {
  color: var(--royal-maroon);
  background-color: #fff1f2;
  font-weight: 700;
}

.nav-link-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.4rem;
  right: 0.4rem;
  height: 3px;
  background-color: var(--royal-maroon);
  border-radius: 2px;
}

/* Master Button Design System & Vibrant Interactive UI/UX */
.btn-maroon, .btn-gov-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #701a24 0%, #881337 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.65rem 1.35rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(112, 26, 36, 0.35);
  cursor: pointer;
}

.btn-maroon:hover, .btn-gov-primary:hover {
  background: linear-gradient(135deg, #881337 0%, #9f1239 100%);
  box-shadow: 0 6px 20px rgba(112, 26, 36, 0.45);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.btn-maroon:active, .btn-gov-primary:active {
  transform: scale(0.98);
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0f2942 0%, #1e3a8a 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.65rem 1.35rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(15, 41, 66, 0.3);
}

.btn-navy:hover {
  background: linear-gradient(135deg, #1a3c61 0%, #1e40af 100%);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 41, 66, 0.45);
}

.btn-navy:active {
  transform: scale(0.98);
}

.btn-gold, .btn-amber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  color: #0f172a !important;
  font-weight: 800;
  padding: 0.65rem 1.35rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid rgba(251, 191, 36, 0.5);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-gold:hover, .btn-amber:hover {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
  color: #020617 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.55);
}

.btn-gold:active, .btn-amber:active {
  transform: scale(0.98);
}

/* Primary NEP-2020 Internship Conversion CTA */
.btn-nep-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 45%, #d97706 100%);
  color: #0f172a !important;
  font-weight: 800;
  padding: 0.65rem 1.15rem;
  border-radius: 0.85rem;
  text-decoration: none;
  border: 1.5px solid rgba(254, 240, 138, 0.9);
  box-shadow: 0 8px 24px -4px rgba(245, 158, 11, 0.45), 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-nep-primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #fde047 50%, #f59e0b 100%);
  color: #020617 !important;
  transform: translateY(-2.5px);
  box-shadow: 0 12px 30px -4px rgba(245, 158, 11, 0.65), 0 4px 10px rgba(0, 0, 0, 0.25);
}

.btn-nep-primary:active {
  transform: scale(0.98);
}

@keyframes nepPulseGlow {
  0%, 100% {
    box-shadow: 0 6px 20px -2px rgba(245, 158, 11, 0.45), 0 0 0 0 rgba(245, 158, 11, 0.3);
  }
  50% {
    box-shadow: 0 8px 28px -2px rgba(245, 158, 11, 0.7), 0 0 16px 4px rgba(251, 191, 36, 0.5);
  }
}

.animate-nep-glow {
  animation: nepPulseGlow 3s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .animate-nep-glow {
    animation: none !important;
  }
  .btn-nep-primary:hover {
    transform: none !important;
  }
}

.btn-emerald, .btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.65rem 1.35rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.btn-emerald:hover, .btn-green:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
}

.btn-danger, .btn-rose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.65rem 1.35rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}

.btn-danger:hover, .btn-rose:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.45);
}

.btn-gov-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #f1f5f9;
  color: #1e293b !important;
  font-weight: 700;
  padding: 0.65rem 1.35rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.btn-gov-secondary:hover {
  background: #e2e8f0;
  color: #0f172a !important;
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-amber-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #fffbeb;
  color: #92400e !important;
  border: 1.5px solid #f59e0b;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
}

.btn-amber-outline:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a !important;
  border-color: #d97706;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-maroon-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #fef2f2;
  color: #701a24 !important;
  border: 1.5px solid #701a24;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  transition: all 0.2s ease;
}

.btn-maroon-outline:hover {
  background: #701a24;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(112, 26, 36, 0.3);
}

.btn-navy-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #eff6ff;
  color: #0f2942 !important;
  border: 1.5px solid #0f2942;
  font-weight: 700;
  padding: 0.45rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  transition: all 0.2s ease;
}

.btn-navy-outline:hover {
  background: #0f2942;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 41, 66, 0.3);
}

/* Card Archetypes */
.gov-card {
  background: #ffffff;
  border: 1px solid var(--border-neutral);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.gov-card:hover {
  box-shadow: 0 12px 28px -5px rgba(15, 41, 66, 0.12), 0 8px 10px -6px rgba(15, 41, 66, 0.04);
  border-color: #cbd5e1;
}

/* Squircle Distinction Cards (Best Interns) */
.squircle-card {
  border-radius: 32px;
  background: #ffffff;
  border: 2px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 8px 24px -4px rgba(15, 41, 66, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.squircle-card:hover {
  transform: translateY(-5px);
  border-color: var(--academic-gold);
  box-shadow: 0 20px 40px -8px rgba(112, 26, 36, 0.18);
}

/* Circular Scholar Photo Frame (Clean & Round) */
.circular-frame-outer, .diamond-frame-outer {
  width: 7.5rem;
  height: 7.5rem;
  margin: 1.25rem auto;
  overflow: hidden;
  border-radius: 50%;
  border: 3.5px solid var(--academic-gold);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.22), 0 2px 6px rgba(15, 41, 66, 0.08);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.circular-frame-inner, .diamond-frame-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.squircle-card:hover .circular-frame-outer,
.squircle-card:hover .diamond-frame-outer {
  transform: scale(1.06);
  border-color: #f59e0b;
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.38), 0 4px 12px rgba(112, 26, 36, 0.15);
}

.squircle-card:hover .circular-frame-inner,
.squircle-card:hover .diamond-frame-inner {
  transform: scale(1.1);
}

/* Process Chevron Flow */
.process-step-box {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-neutral);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.process-step-01 { border-top: 4px solid var(--royal-maroon); }
.process-step-02 { border-top: 4px solid var(--primary-navy); }
.process-step-03 { border-top: 4px solid #92400e; }
.process-step-04 { border-top: 4px solid var(--success-emerald); }

/* Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  transition: all 0.2s ease;
}

.badge-valid, .badge-selected, .badge-approved, .badge-verified, .badge-active, .badge-open, .badge-onboarded {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-under-review, .badge-submitted, .badge-waitlisted, .badge-upcoming, .badge-applied, .badge-interview-scheduled {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.badge-pending, .badge-needs-revision {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-rejected, .badge-revoked, .badge-failed, .badge-not-selected {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Forms & Tables */
.form-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border-neutral);
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  color: #0f172a;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--royal-maroon);
  box-shadow: 0 0 0 3px rgba(112, 26, 36, 0.18);
}

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.table-gov {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.table-gov th {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: #475569;
  border-bottom: 2px solid var(--border-neutral);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.table-gov td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-neutral);
  color: #1e293b;
}

.table-gov tr:hover {
  background-color: #f8fafc;
}

/* ========================================================================= */
/* CANDIDATE PORTAL & SCHOLAR SUITE UI/UX STYLES                             */
/* ========================================================================= */

/* 5-Stage Stepper Progression */
.pipeline-step-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 80px;
}

.pipeline-circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: #f1f5f9;
  border: 2.5px solid #cbd5e1;
  color: #64748b;
  font-weight: 800;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pipeline-step.active .pipeline-circle {
  background: linear-gradient(135deg, #701a24, #991b1b);
  border-color: #f59e0b;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25), 0 4px 10px rgba(112, 26, 36, 0.3);
  transform: scale(1.1);
}

.pipeline-step.completed .pipeline-circle {
  background: linear-gradient(135deg, #047857, #059669);
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.25);
}

.pipeline-step.active span.step-title,
.pipeline-step.completed span.step-title {
  color: #0f172a;
  font-weight: 700;
}

/* Candidate Stat Cards */
.candidate-stat-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.candidate-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(15, 41, 66, 0.08);
  border-color: #cbd5e1;
}

.candidate-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #701a24, #f59e0b);
}

/* Tab Links with Active Indicator */
.candidate-tab-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.8125rem;
  transition: all 0.2s ease;
  color: #475569;
  white-space: nowrap;
}

.candidate-tab-link:hover {
  background-color: #f1f5f9;
  color: #0f2942;
}

.candidate-tab-link.active {
  background: linear-gradient(135deg, #701a24 0%, #8b2330 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(112, 26, 36, 0.25);
}

.candidate-tab-link.active i {
  color: #f59e0b;
}

/* Realistic CR80 Identity Card Badge Preview */
.cr80-badge-container {
  max-width: 320px;
  margin: 0 auto;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #ffffff;
  border: 2px solid #0f2942;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cr80-badge-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 35px -5px rgba(15, 41, 66, 0.2);
}

.cr80-hologram-strip {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #ef4444, #3b82f6, #10b981, #f59e0b);
  background-size: 200% auto;
  animation: hologramShift 4s linear infinite;
}

@keyframes hologramShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ========================================================================= */
/* COMPLETE MOBILE RESPONSIVE ENGINE & SYSTEM UPGRADE                        */
/* ========================================================================= */

/* 1. Universal Touch-Safe Form Inputs (Prevents iOS Zoom on focus) */
@media (max-width: 640px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="date"],
  input[type="tel"],
  input[type="file"],
  select,
  textarea {
    font-size: 15px !important;
    min-height: 42px;
  }
}

/* 2. Responsive Table Wrappers & Touch Momentum Scrolling */
.table-responsive-container,
.overflow-x-auto {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.table-responsive-container::-webkit-scrollbar,
.overflow-x-auto::-webkit-scrollbar {
  height: 6px;
}

.table-responsive-container::-webkit-scrollbar-track,
.overflow-x-auto::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.table-responsive-container::-webkit-scrollbar-thumb,
.overflow-x-auto::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.table-responsive-container::-webkit-scrollbar-thumb:hover,
.overflow-x-auto::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 3. Safe Word Break for Hashes, URLs, and Codes */
.break-anywhere {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 4. Responsive Modal Framework */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-dialog-box {
  width: 100%;
  max-width: min(calc(100vw - 1.5rem), 600px);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* 5. Mobile Stepper Optimization (320px - 640px) */
@media (max-width: 640px) {
  .pipeline-step-container {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    gap: 0.75rem;
    justify-content: flex-start;
  }

  .pipeline-step {
    flex: 0 0 95px;
    min-width: 95px;
  }

  .pipeline-circle {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 0.75rem;
    border-width: 2px;
  }

  .pipeline-step span.step-title {
    font-size: 0.6875rem;
    line-height: 1.2;
  }
}

/* 6. Admin Mobile Off-Canvas Sidebar */
@media (max-width: 1023px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 9998;
    width: 280px;
    max-width: 85vw;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    z-index: 9997;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .admin-sidebar-backdrop.show {
    opacity: 1;
    pointer-events: auto;
  }
}

/* 7. Hide Scrollbar Utility */
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-none::-webkit-scrollbar {
  display: none;
}

/* 8. Mobile Card Scaling & Padding Utilities */
@media (max-width: 480px) {
  .gov-card {
    padding: 1rem !important;
    border-radius: 1rem !important;
  }

  .btn-maroon, .btn-navy, .btn-gold, .btn-gov-primary {
    padding: 0.55rem 1rem !important;
    font-size: 0.75rem !important;
  }
}

/* ========================================================================== */
/* 9. GSWS Homepage Live Information Ticker / Running Text Strip              */
/* ========================================================================== */
.gsws-ticker-strip {
  background-color: #0f2942;
  border-bottom: 2px solid #fbbf24;
}

.gsws-ticker-track {
  display: inline-flex;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
  animation: gswsTickerScroll var(--ticker-duration, 28s) linear infinite;
}

.gsws-ticker-track.gsws-ticker-slow {
  animation-duration: var(--ticker-duration, 42s);
}

.gsws-ticker-track.gsws-ticker-normal {
  animation-duration: var(--ticker-duration, 28s);
}

.gsws-ticker-track.gsws-ticker-fast {
  animation-duration: var(--ticker-duration, 18s);
}

@keyframes gswsTickerScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Pause on Hover for Reading Comfort */
.gsws-ticker-strip:hover .gsws-ticker-track {
  animation-play-state: paused;
}

/* Accessibility: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .gsws-ticker-track {
    animation: none !important;
    transform: none !important;
  }
  .gsws-ticker-viewport {
    overflow-x: auto !important;
  }
}


