:root {
  --bg: #050b13;
  --bg-deep: #03070d;
  --panel: rgba(9, 18, 30, 0.88);
  --panel-strong: #0c1725;
  --panel-hover: #101f31;
  --text: #f5f7fb;
  --muted: #9eacbf;
  --line: rgba(159, 181, 211, 0.18);
  --line-strong: rgba(159, 181, 211, 0.28);
  --red: #f04444;
  --red-bright: #ff6262;
  --blue: #4d83ff;
  --green: #39d16b;
  --purple: #a66bff;
  --orange: #ff9e37;
  --cyan: #29d6df;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
  --radius-lg: 26px;
  --radius-md: 18px;
  --container: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-background {
  position: fixed;
  inset: 0;
  z-index: -5;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(20, 91, 146, 0.12), transparent 31%),
    radial-gradient(circle at 90% 18%, rgba(225, 41, 41, 0.09), transparent 27%),
    linear-gradient(180deg, #06101a, #030811 70%);
}

.page-grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.page-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.14;
}

.page-glow-red {
  right: -260px;
  top: 420px;
  background: #e82035;
}

.page-glow-blue {
  left: -260px;
  top: 900px;
  background: #116ab0;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(3, 9, 16, 0.82);
  backdrop-filter: blur(20px);
}

.header-inner {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

.brand-plaque {
  min-width: 310px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    rgba(5, 13, 23, 0.8);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.025),
    0 18px 42px rgba(0,0,0,.32);
}

.brand-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 16px rgba(255,60,60,.46));
}

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

.brand-main {
  font-size: 20px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: .02em;
}

.brand-main strong {
  color: #fff;
}

.brand-main em {
  color: var(--red-bright);
  font-style: italic;
}

.brand-subtitle {
  margin-top: 6px;
  color: #d3dae5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav > a:not(.discord-button) {
  position: relative;
  color: #c1cad7;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav > a:not(.discord-button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -12px;
  height: 2px;
  background: var(--red);
  transition: right .22s ease;
}

.main-nav > a:hover::after,
.main-nav > a.active::after {
  right: 0;
}

.main-nav > a:hover,
.main-nav > a.active {
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.05);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: #fff;
}

.discord-button,
.outline-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.discord-button {
  border: 1px solid rgba(255,112,112,.58);
  color: #fff;
  background: linear-gradient(180deg, #df313a, #9d121e);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    0 14px 34px rgba(197, 24, 39, .28);
}

.discord-button.compact {
  min-height: 46px;
  padding-inline: 18px;
}

.discord-button:hover,
.outline-button:hover {
  transform: translateY(-2px);
}

.discord-button:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 18px 44px rgba(228, 37, 53, .38);
}

.discord-icon {
  font-size: 18px;
}

.outline-button {
  border: 1px solid var(--line-strong);
  color: #e5eaf1;
  background: rgba(8, 18, 29, .74);
}

.outline-button:hover {
  background: rgba(20, 38, 58, .9);
}

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3,9,16,.98) 0%, rgba(3,9,16,.86) 38%, rgba(3,9,16,.44) 70%, rgba(3,9,16,.72) 100%),
    radial-gradient(circle at 72% 30%, rgba(230, 44, 55, .21), transparent 28%),
    linear-gradient(180deg, #0b1928 0%, #07111d 55%, #02060b 100%);
}

.hospital-silhouette {
  position: absolute;
  right: -4%;
  bottom: 0;
  width: 72%;
  height: 82%;
  opacity: .72;
  background:
    linear-gradient(90deg, transparent 0 5%, rgba(12,27,42,.88) 5% 16%, transparent 16% 19%, rgba(14,31,47,.93) 19% 34%, transparent 34% 37%, rgba(16,34,50,.97) 37% 100%),
    repeating-linear-gradient(90deg, transparent 0 48px, rgba(255,224,175,.18) 48px 63px, transparent 63px 96px),
    repeating-linear-gradient(0deg, transparent 0 58px, rgba(255,255,255,.045) 58px 60px);
  clip-path: polygon(0 34%, 16% 22%, 16% 40%, 34% 28%, 34% 9%, 47% 9%, 47% 27%, 66% 21%, 66% 0, 100% 8%, 100% 100%, 0 100%);
  box-shadow: inset 0 -120px 150px #02060b;
}

.hospital-silhouette::before {
  content: "EAST LOS SANTOS HOSPITAL";
  position: absolute;
  top: 15%;
  left: 46%;
  width: 240px;
  color: #ff5a5f;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  text-shadow:
    0 0 8px #ff3540,
    0 0 24px rgba(255,25,40,.85);
  transform: rotate(-2deg);
}

.hospital-silhouette::after {
  content: "EMS";
  position: absolute;
  right: 11%;
  bottom: 17%;
  color: rgba(215,225,238,.38);
  font-size: 80px;
  font-weight: 1000;
  letter-spacing: .08em;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,.42) 100%);
}

.road-reflection {
  position: absolute;
  bottom: -10%;
  width: 160px;
  height: 45%;
  filter: blur(32px);
  opacity: .32;
  transform: rotate(12deg);
}

.road-reflection-one {
  right: 20%;
  background: #f12636;
}

.road-reflection-two {
  right: 5%;
  background: #287fe5;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .52fr);
  align-items: center;
  gap: 70px;
  padding-top: 84px;
  padding-bottom: 70px;
}

.hospital-kicker {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--red-bright);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .06em;
}

.heartbeat-line {
  position: relative;
  width: 52px;
  height: 2px;
  background: var(--red);
}

.heartbeat-line::after {
  content: "⌁";
  position: absolute;
  left: 18px;
  top: -15px;
  color: var(--red-bright);
  font-size: 25px;
  transform: rotate(90deg);
}

.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(64px, 7vw, 112px);
  line-height: .92;
  letter-spacing: -.045em;
  font-style: italic;
  text-transform: uppercase;
  text-shadow: 0 12px 30px rgba(0,0,0,.5);
}

.hero h1 span {
  color: #fff;
}

.hero-subtitle {
  margin-top: 26px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.hero-subtitle strong {
  display: block;
  margin-top: 4px;
  color: var(--red-bright);
}

.hero-content > p {
  max-width: 760px;
  margin: 28px 0 0;
  color: #c0cbd9;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.stats-strip {
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 38px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(3, 11, 20, .76);
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
  backdrop-filter: blur(16px);
}

.stat-item {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.stat-item:last-child {
  border-right: 0;
}

.stat-icon {
  color: var(--red-bright);
  font-size: 25px;
}

.stat-icon.status-ok {
  color: var(--orange);
}

.stat-item div {
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-size: 15px;
}

.stat-item small {
  color: var(--muted);
  font-size: 12px;
}

.hero-side-card {
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018)),
    rgba(5, 14, 24, .8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.side-card-top {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px 2px 18px;
  color: var(--muted);
  font-size: 13px;
}

.side-card-status {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #29d577;
  box-shadow: 0 0 16px rgba(41,213,119,.8);
}

.side-card-main {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}

.side-card-logo {
  width: 74px;
  height: 74px;
  filter: drop-shadow(0 0 18px rgba(255,60,60,.42));
}

.side-card-main span {
  color: var(--red-bright);
  font-size: 12px;
  font-weight: 800;
}

.side-card-main h2 {
  margin: 4px 0 7px;
  font-size: 24px;
}

.side-card-main p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.side-card-links {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.side-card-links a {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 12px;
  color: #c3cddb;
  background: rgba(255,255,255,.035);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.side-card-links a:hover {
  color: #fff;
  background: rgba(255,255,255,.075);
}

.section {
  padding: 92px 0;
}

.section-news,
.leadership-section {
  border-bottom: 1px solid var(--line);
  background: rgba(4, 12, 21, .52);
}

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

.section-header.centered {
  max-width: 900px;
  display: block;
  margin-inline: auto;
  margin-bottom: 44px;
  text-align: center;
}

.section-kicker {
  color: var(--red-bright);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.section-header h2,
.contact-panel h2 {
  margin: 9px 0 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.section-header p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.section-header.centered p {
  margin: 12px auto 0;
}

.section-pulse {
  width: 115px;
  height: 2px;
  margin: 22px auto 0;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  box-shadow: 0 0 12px rgba(240,68,68,.45);
}

.news-grid {
  display: grid;
  grid-template-columns: 1.35fr .82fr .82fr;
  gap: 20px;
}

.news-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(0,0,0,.25);
}

.news-card.featured {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 10%, rgba(3,9,16,.96)),
    radial-gradient(circle at 78% 15%, rgba(231,43,57,.36), transparent 48%),
    #0b1827;
}

.news-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(218, 39, 52, .88);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.news-card time {
  color: var(--red-bright);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.news-card h3 {
  margin: 10px 0;
  font-size: 22px;
  line-height: 1.24;
}

.news-card p {
  margin: 0;
  color: var(--muted);
}

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

.department-card {
  position: relative;
  min-height: 185px;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: start;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255,255,255,.03), transparent 55%),
    rgba(5, 14, 24, .76);
  box-shadow: 0 18px 48px rgba(0,0,0,.2);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.department-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.38);
  background: var(--panel-hover);
}

.department-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 27px;
  box-shadow: inset 0 0 24px rgba(255,255,255,.04), 0 0 20px currentColor;
}

.department-code {
  font-size: 15px;
  font-weight: 900;
}

.department-content h3 {
  margin: 5px 0 10px;
  font-size: 20px;
  line-height: 1.24;
}

.department-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-arrow {
  align-self: center;
  color: #b7c1cf;
  font-size: 22px;
}

.department-had { color: var(--red-bright); }
.department-pm { color: var(--blue); }
.department-sd { color: var(--green); }
.department-emt { color: var(--purple); }
.department-di { color: var(--orange); }
.department-psed { color: var(--cyan); }

.department-card .department-content {
  color: var(--text);
}

.department-card .department-code {
  color: currentColor;
}

.leadership-section {
  border-top: 1px solid var(--line);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(5, 14, 24, .62);
}

.leadership-card {
  min-height: 94px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(9, 19, 31, .84);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.leadership-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,92,104,.42);
  background: rgba(14, 29, 45, .95);
}

.leadership-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255,91,102,.48);
  border-radius: 50%;
  color: var(--red-bright);
  background: rgba(224,44,57,.12);
  box-shadow: inset 0 0 18px rgba(224,44,57,.08);
}

.leadership-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.24;
}

.leadership-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.contacts-section {
  padding-bottom: 72px;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 86% 0, rgba(221,41,55,.22), transparent 40%),
    rgba(7, 17, 29, .86);
  box-shadow: var(--shadow);
}

.contact-panel > div:first-child {
  max-width: 850px;
}

.contact-panel p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 22px;
  background: rgba(2, 7, 13, .86);
}

.footer-panel {
  display: grid;
  grid-template-columns: 1.15fr 1.1fr .72fr .72fr;
  gap: 28px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(7, 16, 27, .84);
}

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

.footer-logo {
  width: 70px;
  height: 70px;
  filter: drop-shadow(0 0 16px rgba(255,60,60,.42));
}

.footer-description {
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links strong {
  margin-bottom: 3px;
  color: #fff;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  margin-top: 20px;
  color: #718096;
  font-size: 12px;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1240px) {
  .main-nav {
    gap: 18px;
  }

  .main-nav > a:not(.discord-button) {
    font-size: 12px;
  }

  .brand-plaque {
    min-width: 280px;
  }

  .hero-layout {
    grid-template-columns: 1fr .6fr;
    gap: 42px;
  }

  .leadership-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 24px;
    right: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(5, 14, 24, .98);
    box-shadow: var(--shadow);
  }

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

  .main-nav > a:not(.discord-button) {
    padding: 12px;
    border-radius: 10px;
  }

  .main-nav > a:not(.discord-button)::after {
    display: none;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-side-card {
    max-width: 720px;
  }

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

  .stat-item:nth-child(2) {
    border-right: 0;
  }

  .stat-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-card.featured {
    grid-column: span 2;
  }

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

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

  .footer-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-inner {
    min-height: 84px;
  }

  .brand-plaque {
    min-width: 0;
    padding: 9px 12px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-main {
    font-size: 16px;
  }

  .brand-subtitle {
    font-size: 8px;
    letter-spacing: .14em;
  }

  .hero {
    min-height: auto;
  }

  .hero-layout {
    padding-top: 65px;
    padding-bottom: 52px;
  }

  .hospital-silhouette {
    right: -40%;
    width: 140%;
    opacity: .38;
  }

  .hero h1 {
    font-size: clamp(54px, 17vw, 82px);
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-content > p {
    font-size: 15px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .discord-button,
  .outline-button {
    width: 100%;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-item:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 72px 0;
  }

  .section-header {
    display: block;
  }

  .section-header p {
    margin-top: 13px;
  }

  .news-grid,
  .department-grid,
  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .news-card.featured {
    grid-column: auto;
  }

  .department-card {
    grid-template-columns: 62px 1fr;
  }

  .department-icon {
    width: 56px;
    height: 56px;
  }

  .card-arrow {
    display: none;
  }

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 22px;
  }

  .footer-panel {
    grid-template-columns: 1fr;
  }
}
