.bursaries-page,
.bursaries-page body {
  overflow-x: clip;
}

.bursaries-page * {
  box-sizing: border-box;
}

.bursaries-shell {
  --b-navy-950: #08182d;
  --b-navy-900: #0d2344;
  --b-navy-800: #12335d;
  --b-blue-700: #1c57d7;
  --b-blue-600: #2869ea;
  --b-cyan-500: #18a8b8;
  --b-surface: #ffffff;
  --b-surface-soft: #f6f9fd;
  --b-line: #d9e4f3;
  --b-line-strong: #c1d2ea;
  --b-text: #16304f;
  --b-text-soft: #5a6f8c;
  --b-shadow: 0 24px 60px rgba(10, 27, 56, 0.12);
  max-width: 1240px;
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(0.9rem, 2vw, 1.2rem) 3rem;
  overflow-x: clip;
}

.bursaries-shell,
.bursaries-grid,
.b-card,
.b-card-head,
.b-card-body,
.b-item,
.b-item-top,
.b-item-copy,
.b-detail,
.b-detail-card,
.b-detail-hero,
.b-detail-heading,
.b-detail-actions,
.b-meta-row,
.b-detail-meta,
.b-item-actions,
.b-news-form,
.b-newsletter,
.b-field,
.b-filters {
  min-width: 0;
  max-width: 100%;
}

.bursaries-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(141, 176, 235, 0.2);
  border-radius: 28px;
  color: #fff;
  padding: clamp(1.35rem, 3vw, 2.2rem);
  margin-bottom: 1.2rem;
  background:
    radial-gradient(circle at top right, rgba(24, 168, 184, 0.28), transparent 24rem),
    radial-gradient(circle at left bottom, rgba(54, 122, 255, 0.26), transparent 22rem),
    linear-gradient(140deg, #07172d 0%, #102849 50%, #123b66 100%);
  box-shadow: 0 30px 70px rgba(7, 24, 49, 0.28);
  isolation: isolate;
}

.bursaries-hero::before,
.bursaries-hero::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

.bursaries-hero::before {
  width: 18rem;
  height: 18rem;
  right: -6rem;
  top: -8rem;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(6px);
}

.bursaries-hero::after {
  width: 14rem;
  height: 14rem;
  left: -5rem;
  bottom: -8rem;
  background: rgba(24, 168, 184, 0.12);
}

.bursaries-hero-copy {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-width: 0;
}

.bursaries-kicker,
.b-section-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #d9e9ff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bursaries-hero h1,
.b-detail-card h1 {
  margin: 0;
  color: #fff;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.bursaries-hero p {
  margin: 0;
  max-width: 64ch;
  color: rgba(242, 247, 255, 0.94);
  font-size: 1rem;
  line-height: 1.75;
}

.bursaries-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.b-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fbff;
  font-size: 0.9rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.bursaries-hero-panel {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.15rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.b-stat {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.b-stat:last-of-type {
  padding-bottom: 0;
}

.b-stat-value {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
}

.b-stat-label,
.b-panel-note {
  color: rgba(227, 237, 252, 0.88);
  line-height: 1.6;
}

.b-panel-note {
  margin: 0;
  font-size: 0.92rem;
}

.bursaries-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.b-card {
  position: relative;
  overflow: clip;
  border: 1px solid rgba(191, 209, 232, 0.9);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.98));
  box-shadow: var(--b-shadow);
}

.b-card::before,
.b-detail-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #113564 0%, #1c57d7 55%, #18a8b8 100%);
}

.b-filter-card {
  position: sticky;
  top: 1rem;
}

.b-card-head {
  display: grid;
  gap: 0.55rem;
  padding: 1.3rem 1.3rem 1rem;
  border-bottom: 1px solid #e7eef9;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
}

.b-card-head h2,
.b-detail-section h2 {
  margin: 0;
  color: var(--b-navy-900);
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.b-card-caption {
  margin: 0;
  color: var(--b-text-soft);
  line-height: 1.55;
}

.b-section-label {
  background: rgba(17, 53, 100, 0.08);
  border-color: rgba(17, 53, 100, 0.08);
  color: #1d4474;
}

.b-card-body {
  display: grid;
  gap: 1.1rem;
  padding: 1.25rem;
}

.b-intro,
.b-filter-note,
.b-empty,
.b-rich-text,
.b-detail-card p {
  color: var(--b-text-soft);
  line-height: 1.72;
}

.b-filter-note {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
  border: 1px solid #dde8f6;
}

.b-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
}

.b-field {
  display: grid;
  gap: 0.45rem;
}

.b-field.full {
  grid-column: 1 / -1;
}

.b-field label {
  color: #1a3d68;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.b-field input,
.b-field select,
.b-news-form input[type="email"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 3.2rem;
  border: 1px solid var(--b-line-strong);
  border-radius: 16px;
  padding: 0.8rem 1rem;
  background: #fff;
  color: var(--b-text);
  font-size: 0.98rem;
  box-shadow: inset 0 1px 1px rgba(8, 24, 45, 0.03);
}

.b-field input::placeholder,
.b-news-form input[type="email"]::placeholder {
  color: #8294af;
}

.b-field input:focus,
.b-field select:focus,
.b-news-form input[type="email"]:focus,
.b-btn:focus-visible,
.b-link-btn:focus-visible,
.b-breadcrumbs a:focus-visible {
  outline: none;
  border-color: #2f67e5;
  box-shadow: 0 0 0 4px rgba(47, 103, 229, 0.16);
}

.b-filter-actions,
.b-item-actions,
.b-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.b-btn,
.b-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  max-width: 100%;
  min-width: 0;
  border-radius: 999px;
  padding: 0.72rem 1.1rem;
  border: 1px solid transparent;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
  line-height: 1.25;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
}

.b-btn:hover,
.b-link-btn:hover {
  transform: translateY(-1px);
}

.b-btn.primary,
.b-link-btn.primary {
  background: linear-gradient(135deg, #113564 0%, #1e56d5 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(28, 87, 215, 0.22);
}

.b-btn.primary:hover,
.b-link-btn.primary:hover {
  box-shadow: 0 18px 28px rgba(28, 87, 215, 0.25);
}

.b-btn.secondary,
.b-link-btn.secondary {
  background: #fff;
  color: #1d416e;
  border-color: #cddbef;
}

.b-btn.secondary:hover,
.b-link-btn.secondary:hover {
  background: #f7fbff;
}

.b-link-btn.success {
  background: linear-gradient(135deg, #0b7a7d 0%, #1496a2 100%);
  color: #fff;
  box-shadow: 0 12px 22px rgba(20, 150, 162, 0.2);
}

.b-link-btn.tertiary {
  background: #eef4ff;
  color: #18447a;
  border-color: #d7e5fb;
}

.b-list {
  display: grid;
  gap: 1rem;
}

.b-item {
  display: grid;
  gap: 1rem;
  border: 1px solid #dee8f5;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
  padding: 1.15rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.b-item:hover {
  transform: translateY(-2px);
  border-color: #bfd4ee;
  box-shadow: 0 22px 40px rgba(17, 42, 80, 0.1);
}

.b-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.b-item-copy {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
  flex: 1 1 auto;
}

.b-chip-row,
.b-meta-row,
.b-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.b-tag,
.b-chip,
.b-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-width: 0;
  max-width: 100%;
  padding: 0.5rem 0.78rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.b-tag {
  background: #eaf2ff;
  border: 1px solid #d5e3fc;
  color: #1e56d5;
}

.b-chip {
  background: #f7faff;
  border: 1px solid #dce7f5;
  color: #43617f;
}

.b-meta-pill {
  background: #f5f9ff;
  border: 1px solid #d7e4f6;
  color: #35506f;
}

.b-item h3 {
  margin: 0;
  color: var(--b-navy-900);
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.b-item-excerpt {
  margin: 0;
  color: #4f6482;
  line-height: 1.72;
}

.b-empty {
  margin: 0;
  border: 1px dashed #c3d4ea;
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
  border-radius: 20px;
  padding: 1.25rem;
}

.b-newsletter {
  margin-top: 0.25rem;
  padding: 1.2rem;
  border-radius: 22px;
  border: 1px solid #dae6f6;
  background:
    radial-gradient(circle at top right, rgba(24, 168, 184, 0.08), transparent 16rem),
    linear-gradient(180deg, #f9fbff 0%, #eff5fe 100%);
}

.b-newsletter h3 {
  margin: 0 0 0.35rem;
  color: var(--b-navy-900);
  font-size: 1.2rem;
}

.b-newsletter p {
  margin: 0 0 0.85rem;
  color: var(--b-text-soft);
}

.b-news-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
}

.b-news-consent {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: #4e6481;
  font-size: 0.9rem;
  line-height: 1.5;
}

.b-news-feedback {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.92rem;
}

.b-detail {
  max-width: 980px;
  margin: 1rem auto 2.8rem;
}

.b-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
  color: #69809f;
  font-size: 0.92rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.b-breadcrumbs a {
  color: #1c57d7;
  text-decoration: none;
  font-weight: 600;
}

.b-detail-card {
  position: relative;
  display: grid;
  gap: 1.25rem;
  overflow: clip;
  border: 1px solid #dbe7f6;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(24, 168, 184, 0.08), transparent 18rem),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 28px 60px rgba(11, 30, 60, 0.12);
  padding: clamp(1.2rem, 3vw, 1.8rem);
}

.b-detail-card h1 {
  color: var(--b-navy-900);
  font-size: clamp(1.8rem, 3.8vw, 3rem);
}

.b-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.85fr);
  gap: 1.1rem;
  align-items: start;
}

.b-detail-heading {
  display: grid;
  gap: 0.85rem;
}

.b-detail-actions {
  justify-content: flex-start;
  align-content: start;
}

.b-detail-section {
  display: grid;
  gap: 0.7rem;
  padding-top: 1rem;
  border-top: 1px solid #e5eef8;
}

.b-rich-text {
  overflow-wrap: anywhere;
}

.b-note {
  margin: 0;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid #cfe0fb;
  background: linear-gradient(180deg, #f4f8ff 0%, #edf4ff 100%);
  color: #28476e;
}

@media (max-width: 1100px) {
  .bursaries-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .b-filter-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 1024px) {
  .bursaries-hero,
  .b-detail-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .bursaries-shell {
    padding-inline: 0.85rem;
  }

  .b-card-head,
  .b-card-body,
  .b-detail-card,
  .b-newsletter,
  .b-item {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .b-news-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .bursaries-shell {
    padding: 0.9rem 0.75rem 2.4rem;
  }

  .bursaries-hero,
  .b-card,
  .b-detail-card,
  .b-newsletter,
  .b-item {
    border-radius: 20px;
  }

  .b-card-head,
  .b-card-body,
  .b-detail-card,
  .b-newsletter,
  .b-item {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .b-breadcrumbs {
    font-size: 0.86rem;
  }

  .b-btn,
  .b-link-btn {
    width: 100%;
  }

  .b-item-actions,
  .b-detail-actions,
  .b-filter-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}
