:root {
  --hs-primary: #0f766e;
  --hs-primary-dark: #134e4a;
  --hs-accent: #f59e0b;
  --hs-surface: #f5f8fb;
  --hs-text: #0f172a;
  --hs-muted: #64748b;
}

html {
  font-size: 16px;
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--hs-text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 32%),
    linear-gradient(180deg, #f8fbfd 0%, #eef5f7 100%);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.site-main {
  min-height: calc(100vh - 180px);
}

.site-header {
  background: rgba(10, 27, 39, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.navbar {
  padding: 1rem 0;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: white;
  background: linear-gradient(135deg, var(--hs-accent), #fb7185);
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.25);
}

.brand-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: white;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.82) !important;
  font-weight: 500;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link.active {
  color: white !important;
}

.nav-language-switcher {
  margin-left: 0.75rem;
}

.nav-language-switcher .btn,
.navbar-collapse > .d-flex .btn {
  border-radius: 999px;
}

.hero-shell {
  padding: 4rem 0 2rem;
}

.hero-card {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.96), rgba(14, 165, 233, 0.9));
  color: white;
  border: 0;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(15, 118, 110, 0.22);
}

.hero-card .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-weight: 600;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
}

.hero-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
}

.section-title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.surface-card,
.card {
  border: 0;
  border-radius: 1.5rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.programme-card .card-body,
.surface-card .card-body {
  padding: 1.5rem;
}

.programme-card {
  background: white;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.programme-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(15, 23, 42, 0.12);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-hot {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.status-soon {
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
}

.status-full {
  background: rgba(100, 116, 139, 0.16);
  color: #334155;
}

.banner-carousel .carousel-item {
  min-height: 420px;
}

.banner-slide {
  min-height: 420px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.banner-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.2));
}

.banner-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.banner-caption-tag {
  display: inline-flex;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
}

.info-list .list-group-item,
.news-list .list-group-item {
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding-left: 0;
  padding-right: 0;
}

.info-list .list-group-item:last-child,
.news-list .list-group-item:last-child {
  border-bottom: 0;
}

.site-footer {
  background: #0f172a;
}

.footer-title {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.56);
}

.btn-primary {
  background: linear-gradient(135deg, var(--hs-primary), #0ea5e9);
  border: none;
  box-shadow: 0 14px 28px rgba(14, 165, 233, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #0d9488, #0284c7);
}

.btn-outline-primary {
  border-color: var(--hs-primary);
  color: var(--hs-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--hs-primary);
  border-color: var(--hs-primary);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus,
.btn:active:focus {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.14);
}

.programme-detail-shell {
  position: relative;
}

.programme-hero {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(14, 165, 233, 0.1));
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.1);
}

.programme-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: stretch;
}

.programme-hero-copy {
  padding: 2.5rem;
}

.programme-kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--hs-primary);
}

.programme-hero-summary {
  color: var(--hs-muted);
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 58ch;
}

.programme-hero-meta {
  margin-top: 1rem;
}

.programme-meta-chip {
  height: 100%;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.25rem;
  padding: 1rem 1.1rem;
}

.programme-meta-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hs-primary);
  margin-bottom: 0.5rem;
}

.programme-meta-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hs-text);
}

.programme-meta-muted {
  margin-top: 0.25rem;
  color: var(--hs-muted);
  font-size: 0.9rem;
}

.programme-hero-media {
  min-height: 100%;
  position: relative;
}

.programme-hero-image,
.programme-hero-placeholder {
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.programme-hero-image {
  object-fit: cover;
}

.programme-hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(14, 165, 233, 0.16));
  color: var(--hs-primary-dark);
  font-weight: 700;
}

.programme-detail-copy {
  color: #334155;
  line-height: 1.95;
  font-size: 1.02rem;
}

.programme-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.programme-gallery-item {
  overflow: hidden;
  border-radius: 1.25rem;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.programme-gallery-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.programme-gallery-item:hover .programme-gallery-image {
  transform: scale(1.03);
}

.programme-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.programme-info-card {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.25rem;
  padding: 1rem 1.1rem;
}

.programme-info-card-wide {
  grid-column: span 2;
}

.programme-info-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hs-muted);
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.programme-info-value {
  color: var(--hs-text);
  font-size: 1.05rem;
  font-weight: 700;
}

.programme-sidebar {
  position: sticky;
  top: 120px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.programme-sidebar-summary {
  display: grid;
  gap: 0.85rem;
}

.programme-sidebar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--hs-muted);
}

.programme-sidebar-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.programme-sidebar-row strong {
  color: var(--hs-text);
}

.programme-enrollment-note {
  line-height: 1.7;
}

.enrollment-panel-stack {
  display: grid;
  gap: 1rem;
}

.programme-enrollment-box {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.25rem;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(241, 245, 249, 0.92));
}

.programme-enrollment-box-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hs-text);
  margin-bottom: 0.35rem;
}

.auth-shell {
  position: relative;
}

.auth-card {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.1);
  border-radius: 2rem;
}

.auth-card-wide {
  max-width: 1180px;
  margin: 0 auto;
}

.auth-card-cms {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.96));
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
}

.auth-grid-register {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}

.auth-panel {
  padding: 2.5rem;
}

.auth-panel-brand {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.95), rgba(14, 165, 233, 0.9));
  color: white;
}

.auth-panel-cms {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.3), rgba(15, 118, 110, 0.16));
  color: white;
}

.auth-panel-form {
  background: rgba(255, 255, 255, 0.96);
}

.auth-badge {
  display: inline-flex;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-badge-cms {
  background: rgba(14, 165, 233, 0.16);
}

.auth-lead {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.9;
  font-size: 1.02rem;
}

.auth-feature-list {
  display: grid;
  gap: 0.85rem;
}

.auth-feature-item {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: white;
  font-weight: 600;
}

.auth-footer-note {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 1rem;
}

.auth-privacy-check {
  background: rgba(15, 118, 110, 0.06);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
}

.auth-privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  cursor: pointer;
  color: var(--hs-text);
  line-height: 1.6;
}

.auth-privacy-input {
  margin: 0.2rem 0 0;
  flex-shrink: 0;
}

.privacy-content p {
  color: #334155;
  line-height: 1.9;
}

.privacy-content h2 {
  color: var(--hs-text);
}

.cms-body {
  background: linear-gradient(180deg, #f3f7fb 0%, #eaf1f7 100%);
}

.cms-header {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.cms-navbar {
  padding: 1rem 0;
}

.cms-shell {
  max-width: 1440px;
  margin: 0 auto;
}

.cms-main {
  min-height: 100vh;
}

.cms-nav-links {
  gap: 0.35rem;
}

.cms-nav-links .nav-link {
  border-radius: 999px;
  padding: 0.65rem 1rem;
  color: rgba(255, 255, 255, 0.76) !important;
}

.cms-nav-links .nav-link:hover,
.cms-nav-links .nav-link:focus,
.cms-nav-links .nav-link.active {
  color: white !important;
  background: rgba(255, 255, 255, 0.12);
}

.cms-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.cms-user-label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
}

.cms-dashboard-hero-card {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 1.75rem;
  background: linear-gradient(135deg, #0f766e, #0ea5e9);
  color: white;
  box-shadow: 0 24px 50px rgba(14, 165, 233, 0.2);
}

.cms-kicker {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.cms-page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cms-page-subtitle {
  max-width: 70ch;
  color: rgba(255, 255, 255, 0.88);
}

.cms-hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cms-stat-card,
.cms-panel {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.cms-stat-label {
  color: var(--hs-muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cms-stat-value {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 0.45rem;
}

.cms-stat-note {
  color: var(--hs-muted);
  margin-top: 0.35rem;
}

.cms-page-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.cms-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.cms-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.cms-shortcut-card {
  display: block;
  position: relative;
  z-index: 1;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
  border-radius: 1.25rem;
  padding: 1.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.cms-shortcut-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.cms-shortcut-card span {
  display: block;
  color: var(--hs-muted);
  line-height: 1.7;
}

.cms-shortcut-action {
  margin-top: 0.9rem;
  color: var(--hs-primary) !important;
  font-weight: 700;
  line-height: 1.4;
}

.cms-shortcut-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.1);
  border-color: rgba(14, 165, 233, 0.28);
}

.cms-highlight-card {
  border-radius: 1.5rem;
  padding: 1.5rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(14, 165, 233, 0.14));
}

.cms-highlight-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hs-primary);
  margin-bottom: 0.8rem;
}

.cms-highlight-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
}

.cms-table thead th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.cms-table tbody td {
  border-color: rgba(148, 163, 184, 0.14);
}

.member-dashboard-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

.member-dashboard-hero-copy {
  padding: 2.5rem;
}

.member-dashboard-highlight {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.96), rgba(14, 165, 233, 0.9));
  color: white;
  display: flex;
  align-items: stretch;
}

.member-dashboard-highlight-card {
  width: 100%;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.member-overview-list {
  display: grid;
  gap: 1rem;
}

.member-overview-item {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(15, 118, 110, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.member-overview-label {
  color: var(--hs-muted);
  font-weight: 600;
}

.member-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.member-action-card {
  display: block;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  color: inherit;
}

.member-action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.1);
  border-color: rgba(14, 165, 233, 0.22);
}

.member-action-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.member-action-text {
  color: var(--hs-muted);
  line-height: 1.75;
}

@media (max-width: 991.98px) {
  .hero-shell {
    padding-top: 2rem;
  }

  .banner-carousel .carousel-item,
  .banner-slide {
    min-height: 360px;
  }

  .programme-hero-grid {
    grid-template-columns: 1fr;
  }

  .programme-hero-copy {
    padding: 1.5rem;
  }

  .programme-hero-image,
  .programme-hero-placeholder {
    min-height: 280px;
  }

  .programme-gallery-grid,
  .programme-info-grid,
  .auth-grid,
  .auth-grid-register,
  .member-dashboard-hero-grid,
  .member-action-grid {
    grid-template-columns: 1fr;
  }

  .programme-info-card-wide {
    grid-column: span 1;
  }

  .programme-sidebar {
    position: static;
  }

  .auth-panel {
    padding: 1.5rem;
  }

  .member-dashboard-hero-copy,
  .member-dashboard-highlight-card {
    padding: 1.5rem;
  }

  .member-overview-item {
    flex-direction: column;
    align-items: start;
  }

  .cms-dashboard-hero-card {
    flex-direction: column;
    align-items: start;
  }

  .cms-shortcut-grid {
    grid-template-columns: 1fr;
  }
}
