:root {
  --sz-ink: #0e1a28;
  --sz-slate: #1c3348;
  --sz-mist: #5d7388;
  --sz-line: #d5e2ec;
  --sz-snow: #f3f7fa;
  --sz-paper: #ffffff;
  --sz-ice: #8ec5d8;
  --sz-accent: #2f6f8f;
  --sz-accent-deep: #245a74;
  --sz-good: #2f7d5b;
  --sz-warn: #b7791f;
  --sz-bad: #b42318;
  --sz-radius: 1rem;
  --sz-radius-sm: 0.7rem;
  --sz-shadow: 0 18px 40px rgba(14, 26, 40, 0.08);
  --sz-font: "Manrope", "Segoe UI", sans-serif;
  --sz-display: "Outfit", "Manrope", sans-serif;
}

html {
  font-size: 15px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  font-family: var(--sz-font);
  color: var(--sz-ink);
  background:
    radial-gradient(circle at top left, rgba(142, 197, 216, 0.18), transparent 32%),
    linear-gradient(180deg, #eef4f8 0%, var(--sz-snow) 28%, #f7fafc 100%);
  min-height: 100vh;
}

h1, h2, h3, h4, .sz-brand, .navbar-brand {
  font-family: var(--sz-display);
  letter-spacing: -0.03em;
}

a {
  color: var(--sz-accent);
}

a:hover {
  color: var(--sz-accent-deep);
}

.btn-primary,
.btn-primary:focus {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--sz-accent);
  --bs-btn-border-color: var(--sz-accent);
  --bs-btn-hover-bg: var(--sz-accent-deep);
  --bs-btn-hover-border-color: var(--sz-accent-deep);
  --bs-btn-active-bg: var(--sz-ink);
  --bs-btn-active-border-color: var(--sz-ink);
  --bs-btn-focus-shadow-rgb: 47, 111, 143;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.7rem 1.25rem;
}

.btn-outline-primary {
  --bs-btn-color: var(--sz-accent);
  --bs-btn-border-color: var(--sz-accent);
  --bs-btn-hover-bg: var(--sz-accent);
  --bs-btn-hover-border-color: var(--sz-accent);
  --bs-btn-hover-color: #fff;
  border-radius: 999px;
  font-weight: 700;
}

.btn-outline-secondary,
.btn-outline-danger,
.btn-secondary {
  border-radius: 999px;
  font-weight: 600;
}

.btn-secondary {
  --bs-btn-bg: #e8eef3;
  --bs-btn-border-color: #e8eef3;
  --bs-btn-color: var(--sz-slate);
  --bs-btn-hover-bg: #d9e3eb;
  --bs-btn-hover-border-color: #d9e3eb;
  --bs-btn-hover-color: var(--sz-ink);
}

.form-control,
.form-select {
  border-radius: 0.85rem;
  border-color: var(--sz-line);
  padding: 0.8rem 1rem;
  background: var(--sz-paper);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--sz-ice);
  box-shadow: 0 0 0 0.2rem rgba(142, 197, 216, 0.28);
}

.sz-shell-nav {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(213, 226, 236, 0.9);
  margin-bottom: 0 !important;
}

.sz-shell-nav .navbar-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sz-ink) !important;
}

.sz-shell-nav .nav-link {
  color: var(--sz-slate) !important;
  font-weight: 600;
  padding: 0.55rem 0.85rem !important;
  border-radius: 999px;
}

.sz-shell-nav .nav-link:hover,
.sz-shell-nav .nav-link:focus {
  color: var(--sz-ink) !important;
  background: rgba(142, 197, 216, 0.16);
}

.sz-shell-nav .dropdown-menu {
  border: 1px solid var(--sz-line);
  border-radius: 1rem;
  box-shadow: var(--sz-shadow);
  padding: 0.5rem;
}

.sz-shell-nav .dropdown-item {
  border-radius: 0.7rem;
  font-weight: 600;
}

.sz-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--sz-line);
  color: var(--sz-mist);
  background: transparent;
  position: static;
  line-height: 1.5;
  white-space: normal;
}

.sz-hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(14, 26, 40, 0.18) 0%, rgba(14, 26, 40, 0.62) 48%, rgba(14, 26, 40, 0.88) 100%),
    radial-gradient(circle at 20% 20%, rgba(142, 197, 216, 0.35), transparent 34%),
    linear-gradient(135deg, #16324a 0%, #2a5570 42%, #8ec5d8 100%);
}

.sz-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 420' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='0.08' d='M0 280L120 250C240 220 480 160 720 170C960 180 1200 260 1320 300L1440 340V420H0Z'/%3E%3Cpath fill='%23ffffff' fill-opacity='0.12' d='M0 320L160 290C320 260 640 200 880 210C1120 220 1280 280 1360 310L1440 340V420H0Z'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: bottom;
  opacity: 0.95;
  pointer-events: none;
}

.sz-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 5.5rem 0 4rem;
}

.sz-brand-mark {
  display: inline-block;
  font-family: var(--sz-display);
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  font-weight: 800;
  line-height: 0.95;
  margin: 0 0 1rem;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.sz-hero-copy {
  max-width: 34rem;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.6rem;
}

.sz-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sz-hero .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--sz-ink);
}

.sz-hero .btn-primary:hover {
  background: var(--sz-frost, #e8f3f8);
  border-color: var(--sz-frost, #e8f3f8);
  color: var(--sz-ink);
}

.sz-hero .btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.7rem 1.25rem;
}

.sz-hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.sz-section {
  padding: 4.5rem 0;
}

.sz-section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.sz-section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.65rem;
}

.sz-section-head p {
  color: var(--sz-mist);
  margin: 0;
  font-size: 1.05rem;
}

.sz-panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(213, 226, 236, 0.95);
  border-radius: calc(var(--sz-radius) + 0.2rem);
  box-shadow: var(--sz-shadow);
  padding: 1.5rem;
}

.sz-auth-shell {
  min-height: calc(100vh - 10rem);
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

.sz-auth-card {
  width: min(100%, 28rem);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--sz-line);
  border-radius: 1.4rem;
  box-shadow: var(--sz-shadow);
  padding: 2rem;
}

.sz-auth-card h1 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.sz-auth-card .lead-muted {
  color: var(--sz-mist);
  margin-bottom: 1.5rem;
}

.sz-trip-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--sz-line);
  border-radius: 1.2rem;
  padding: 1.15rem 1.2rem;
  box-shadow: 0 10px 28px rgba(14, 26, 40, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sz-trip-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sz-shadow);
}

.sz-trip-date {
  width: 4.4rem;
  min-height: 4.4rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #1c3348 0%, #2f6f8f 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.05;
}

.sz-trip-date .day {
  font-family: var(--sz-display);
  font-size: 1.55rem;
  font-weight: 800;
}

.sz-trip-date .month {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.sz-trip-main h3,
.sz-trip-main h6 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.sz-trip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.sz-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: #eaf3f8;
  color: var(--sz-slate);
}

.sz-chip-muted {
  background: #f0f3f6;
  color: var(--sz-mist);
}

.sz-chip-good {
  background: #e5f5ee;
  color: var(--sz-good);
}

.sz-chip-warn {
  background: #fff4df;
  color: var(--sz-warn);
}

.sz-chip-bad {
  background: #fdeceb;
  color: var(--sz-bad);
}

.sz-chip-dark {
  background: #1c3348;
  color: #fff;
}

.sz-trip-desc {
  color: var(--sz-mist);
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.sz-trip-facts {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.85rem;
  color: var(--sz-slate);
  font-size: 0.92rem;
}

.sz-trip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.sz-trip-actions .btn {
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
}

.sz-capacity-bar {
  height: 6px;
  border-radius: 999px;
  background: #e7eef3;
  overflow: hidden;
  margin-top: 0.35rem;
}

.sz-capacity-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2f7d5b, #2f6f8f);
}

.sz-capacity-bar.is-full > span {
  background: linear-gradient(90deg, #b42318, #d96a3d);
}

.sz-feature-band {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .sz-feature-band {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.sz-feature-visual {
  min-height: 280px;
  border-radius: 1.4rem;
  background:
    linear-gradient(160deg, rgba(14, 26, 40, 0.25), rgba(47, 111, 143, 0.35)),
    linear-gradient(135deg, #1c3348, #8ec5d8);
  position: relative;
  overflow: hidden;
}

.sz-feature-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 220' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='0.18' d='M0 140L100 120C200 100 400 60 520 70C640 80 720 120 760 140L800 160V220H0Z'/%3E%3C/svg%3E") bottom / cover no-repeat;
}

.modal-content {
  border: 0;
  border-radius: 1.25rem;
  box-shadow: var(--sz-shadow);
}

.modal-header,
.modal-footer {
  border-color: var(--sz-line);
}

.events-calendar-header,
.next-event-banner,
.event-type-badge,
.btn-join {
  background: linear-gradient(135deg, #1c3348 0%, #2f6f8f 100%) !important;
}

.events-details-header {
  background: linear-gradient(135deg, #0e1a28 0%, #2f6f8f 100%) !important;
}

.calendar-selected {
  background-color: #2f6f8f !important;
}

.event-card {
  background: transparent;
  border-left: 0;
  padding: 0 !important;
}

.event-card:hover {
  background: transparent;
  transform: none;
}

.profile-container,
.register-section .card {
  max-width: 46rem;
}

.register-section .card,
.profile-container .card {
  border: 1px solid var(--sz-line) !important;
  border-radius: 1.4rem !important;
  box-shadow: var(--sz-shadow) !important;
  background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 640px) {
  .sz-trip-card {
    grid-template-columns: 1fr;
  }

  .sz-trip-date {
    width: 100%;
    min-height: 3.4rem;
    flex-direction: row;
    gap: 0.45rem;
  }
}
