/* ==========================================================================
   BES Fees — static CSS (converted from Tailwind/React build)
   ========================================================================== */

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

:root {
  --background: #fbf9f5;
  --foreground: #241f1a;

  --border: #eae3d8;

  --card: #ffffff;
  --card-foreground: #241f1a;
  --card-border: #eae3d8;

  --primary: #ee6f2c;
  --primary-foreground: #ffffff;
  --primary-10: rgba(238, 111, 44, 0.10);
  --primary-20: rgba(238, 111, 44, 0.20);
  --primary-5: rgba(238, 111, 44, 0.05);

  --secondary: #f1e9d6;
  --secondary-foreground: #34302a;

  --muted: #ece4d8;
  --muted-foreground: #67605a;

  --accent: #e9e0d3;
  --accent-foreground: #241f1a;

  --destructive: #e6493d;
  --destructive-foreground: #ffffff;

  --white-alt: #fafafa;

  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-outfit: 'Outfit', sans-serif;

  --radius: 0.75rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-outfit);
  margin: 0;
}

p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

.min-h-screen {
  min-height: 100vh;
}

.bg-white {
  background-color: #ffffff;
}

.bg-alt {
  background-color: var(--white-alt);
}

.text-primary {
  color: var(--primary);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--accent);
}

.btn-outline.on-white {
  background-color: #ffffff;
}

.btn-ghost {
  background-color: transparent;
  color: var(--foreground);
}

.btn-ghost:hover {
  background-color: var(--accent);
}

.btn-white {
  background-color: #ffffff;
  color: var(--primary);
}

.btn-white:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1rem;
  border-radius: calc(var(--radius) - 1px);
}

.btn-full {
  width: 100%;
}

@media (min-width: 640px) {
  .btn-full-sm {
    width: auto;
  }
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background-color: rgba(251, 249, 245, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(234, 227, 216, 0.6);
}

.navbar-inner {
  display: flex;
  height: 5rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-mark {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-name {
  font-family: var(--font-outfit);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--foreground);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--foreground);
}

.nav-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.nav-mobile {
  display: none;
  border-top: 1px solid rgba(234, 227, 216, 0.6);
  background-color: var(--background);
  position: absolute;
  width: 100%;
  padding-bottom: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.nav-mobile.open {
  display: block;
}

.nav-mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem 0;
}

.nav-mobile-links a {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  padding: 0.5rem;
  border-radius: 0.375rem;
}

.nav-mobile-links a:hover {
  background-color: var(--muted);
}

.nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(234, 227, 216, 0.6);
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .nav-mobile {
    display: none !important;
  }
}

/* ---------- Hero carousel ---------- */
.hero-carousel {
  position: relative;
  overflow: hidden;
  background-color: #fafafa;
}

.hero-slides {
  position: relative;
  height: 560px;
}

@media (min-width: 768px) {
  .hero-slides { height: 620px; }
}
@media (min-width: 1024px) {
  .hero-slides { height: 680px; }
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.7s ease-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 10;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.4), rgba(0,0,0,0.1));
}

.hero-slide-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-slide-inner {
  max-width: 36rem;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.7s ease;
}

.hero-slide.active .hero-slide-inner {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background-color: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.pulse-dot {
  position: relative;
  display: inline-flex;
  height: 0.5rem;
  width: 0.5rem;
}

.pulse-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: #fff;
  opacity: 0.75;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: #fff;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.hero-slide h1 {
  font-size: 1.875rem;
  color: #fff;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) { .hero-slide h1 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .hero-slide h1 { font-size: 3rem; } }

.hero-slide p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  margin-bottom: 2rem;
}

@media (min-width: 768px) { .hero-slide p { font-size: 1.25rem; } }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 9999px;
  background-color: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background-color 0.15s ease;
}

.hero-arrow:hover {
  background-color: rgba(255,255,255,0.25);
}

.hero-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
}

.hero-arrow-left { left: 1rem; }
.hero-arrow-right { right: 1rem; }

@media (min-width: 768px) {
  .hero-arrow-left { left: 2rem; }
  .hero-arrow-right { right: 2rem; }
}

.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.hero-dot {
  height: 0.625rem;
  width: 0.625rem;
  border-radius: 9999px;
  background-color: rgba(255,255,255,0.5);
  border: none;
  padding: 0;
  transition: all 0.15s ease;
}

.hero-dot:hover {
  background-color: rgba(255,255,255,0.75);
}

.hero-dot.active {
  width: 2rem;
  background-color: #fff;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(234,227,216,0.5);
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  flex-wrap: wrap;
  text-align: center;
}

.avatar-stack {
  display: flex;
}

.avatar-stack .avatar-dot {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 9999px;
  border: 2px solid var(--background);
  margin-left: -0.75rem;
}

.avatar-stack .avatar-dot:first-child {
  margin-left: 0;
}

.avatar-dot.a1 { background-color: var(--muted); }
.avatar-dot.a2 { background-color: var(--secondary); }
.avatar-dot.a3 { background-color: var(--primary-20); }

.trust-bar-inner strong {
  color: var(--foreground);
  font-weight: 700;
}

/* ---------- Generic sections ---------- */
section {
  position: relative;
}

.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title { font-size: 3rem; }
}

.section-sub {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.text-center {
  text-align: center;
}

.max-w-3xl {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Easy fees / two column intro ---------- */
.two-col {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.rounded-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.rounded-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aspect-4-3 { aspect-ratio: 4 / 3; }
.aspect-21-9 { aspect-ratio: 21 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }

.intro-copy h2 {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .intro-copy h2 { font-size: 1.875rem; }
}

.intro-copy p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* ---------- Table ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead tr {
  background-color: var(--primary-10);
  text-align: left;
}

th {
  padding: 1rem;
  font-family: var(--font-outfit);
  font-weight: 700;
  color: var(--foreground);
  white-space: nowrap;
}

td {
  padding: 1rem;
  color: var(--muted-foreground);
  white-space: nowrap;
  border-top: 1px solid rgba(234,227,216,0.5);
}

tbody tr:nth-child(even) {
  background-color: var(--white-alt);
}

tbody tr:hover {
  background-color: var(--primary-5);
}

td.cost {
  font-weight: 700;
  color: var(--foreground);
}

.table-note {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 1rem;
  text-align: center;
}

/* ---------- How it works ---------- */
.steps-grid {
  display: grid;
  gap: 2rem;
  position: relative;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps-grid::before {
    content: '';
    position: absolute;
    top: 6rem;
    left: 15%;
    right: 15%;
    height: 2px;
    background-color: rgba(234,227,216,0.6);
    z-index: -1;
  }
}

.step-card {
  position: relative;
  background-color: var(--background);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.15s ease;
}

.step-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.step-icon {
  height: 3rem;
  width: 3rem;
  border-radius: 0.75rem;
  background-color: var(--primary-10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.step-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.step-number {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(103, 96, 90, 0.25);
  pointer-events: none;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step-card p {
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ---------- Why choose us ---------- */
.why-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.why-image-wrap {
  position: relative;
}

.why-image-wrap .rounded-img {
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.why-blob {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  width: 12rem;
  height: 12rem;
  background-color: var(--secondary);
  border-radius: 9999px;
  z-index: -1;
  filter: blur(64px);
  opacity: 0.5;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
}

.feature-icon {
  margin-top: 0.25rem;
  background-color: #fff;
  border: 1px solid rgba(234,227,216,0.5);
  height: 3rem;
  width: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.feature-item h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.feature-item p {
  color: var(--muted-foreground);
}

/* ---------- Primary color band (bursaries/CTA sections) ---------- */
.band-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  position: relative;
  overflow: hidden;
}

.band-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
  background-size: 32px 32px;
}

.band-content {
  position: relative;
  z-index: 10;
}

.band-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .band-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background-color: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.band-primary h1, .band-primary h2 {
  color: #fff;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .band-primary h1, .band-primary h2 { font-size: 3rem; }
}

.band-primary p {
  color: rgba(255,255,255,0.9);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .band-primary p { font-size: 1.25rem; }
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 500;
}

.check-list svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #fff;
  opacity: 0.8;
  flex-shrink: 0;
}

.band-image .rounded-img {
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  border: 4px solid rgba(255,255,255,0.2);
}

/* ---------- FAQ / Accordion ---------- */
.accordion {
  width: 100%;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: none;
  border: none;
  padding: 1.25rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
  color: var(--foreground);
}

.accordion-trigger .chevron {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--muted-foreground);
}

.accordion-item.open .accordion-trigger .chevron {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.accordion-content-inner {
  padding-bottom: 1.25rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* ---------- Story / drives-us section ---------- */
.story-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.story-copy p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.drives-card {
  background-color: var(--primary-5);
  border-radius: 1.5rem;
  padding: 2.5rem;
  border: 1px solid rgba(238,111,44,0.1);
}

.drives-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.drives-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.drives-item {
  display: flex;
  gap: 1rem;
}

.drives-icon {
  height: 3rem;
  width: 3rem;
  border-radius: 9999px;
  background-color: var(--primary-20);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.drives-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.drives-item h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.drives-item p {
  color: var(--muted-foreground);
}

/* ---------- Services page cards ---------- */
.service-grid-3 {
  display: grid;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .service-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: var(--background);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--muted-foreground);
  line-height: 1.7;
}

.eligibility-block {
  background-color: var(--white-alt);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .eligibility-block {
    padding: 3rem;
  }
}

.eligibility-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .eligibility-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.eligibility-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.eligibility-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted-foreground);
}

.eligibility-list svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.partner-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  border: 1px solid rgba(234,227,216,0.5);
  text-align: center;
}

.partner-card .icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
  width: 4rem;
  border-radius: 9999px;
  background-color: var(--primary-10);
  margin-bottom: 1.5rem;
}

.partner-card .icon-circle svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
}

.partner-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.partner-card p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

/* ---------- Bursaries page numbered steps ---------- */
.numbered-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.numbered-item {
  display: flex;
  gap: 1rem;
}

.numbered-badge {
  margin-top: 0.25rem;
  background-color: var(--primary-10);
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-outfit);
  font-weight: 700;
  color: var(--primary);
}

.numbered-item h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.numbered-item p {
  color: var(--muted-foreground);
}

.qualify-card {
  max-width: 56rem;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .qualify-card { padding: 3rem; }
}

.qualify-card > .icon-lg {
  display: block;
  margin: 0 auto 1rem;
  width: 3rem;
  height: 3rem;
  color: var(--primary);
}

.qualify-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .qualify-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.qualify-item {
  padding: 1.5rem;
  border-radius: 1rem;
  background-color: var(--background);
  border: 1px solid rgba(234,227,216,0.4);
}

.qualify-item h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.qualify-item h4 svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.qualify-item p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* ---------- Generic CTA section ---------- */
.cta-section {
  border-top: 1px solid rgba(234,227,216,0.5);
}

.cta-section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .cta-section h2 { font-size: 3rem; }
}

.cta-section p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

/* ---------- Hero sections (about/services/bursaries page headers) ---------- */
.page-hero {
  padding: 6rem 0 4rem;
}

@media (min-width: 768px) {
  .page-hero { padding: 8rem 0 6rem; }
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) { .page-hero h1 { font-size: 3.75rem; } }
@media (min-width: 1024px) { .page-hero h1 { font-size: 4.5rem; } }

.page-hero p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

@media (min-width: 768px) { .page-hero p { font-size: 1.25rem; } }

.page-hero-media {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  margin-top: 4rem;
}

.split-hero {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .split-hero {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.split-hero-media {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--foreground);
  color: var(--background);
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.footer-brand p {
  color: rgba(236,228,216,0.6);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 20rem;
  margin-top: 1rem;
}

.footer h4 {
  font-family: var(--font-outfit);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a, .footer-contact li {
  color: rgba(236,228,216,0.6);
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: rgba(236,228,216,0.4);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

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

/* ---------- Partner Schools grid ---------- */
.schools-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .schools-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.schools-search {
  position: relative;
  flex: 1;
  max-width: 22rem;
}

.schools-search input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--border);
  background-color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--foreground);
}

.schools-search input:focus {
  outline: 2px solid var(--primary-20);
  outline-offset: 1px;
}

.schools-search svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.1rem;
  height: 1.1rem;
  color: var(--muted-foreground);
}

.schools-count {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  white-space: nowrap;
}

.schools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .schools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 640px) {
  .schools-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .schools-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.school-card {
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 0.75rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.school-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.school-card .school-avatar {
  height: 2.75rem;
  width: 2.75rem;
  margin: 0 auto 0.6rem;
  border-radius: 9999px;
  background-color: var(--primary-10);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-outfit);
  font-weight: 700;
  font-size: 0.95rem;
}

.school-card h4 {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.school-card .school-location {
  font-size: 0.7rem;
  color: var(--muted-foreground);
}

.schools-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted-foreground);
  display: none;
}

.schools-empty.show {
  display: block;
}

/* ---------- 404 page ---------- */
.notfound-wrap {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9fafb;
}

.notfound-card {
  width: 100%;
  max-width: 28rem;
  margin: 0 1rem;
  background-color: #fff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
}

.notfound-title-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: center;
}

.notfound-title-row svg {
  width: 2rem;
  height: 2rem;
  color: #ef4444;
  flex-shrink: 0;
}

.notfound-title-row h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.notfound-card p {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #4b5563;
}

/* ---------- Loading overlay (external navigation) ---------- */
.page-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.page-loading-overlay.open {
  opacity: 1;
  visibility: visible;
}

.page-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
}

.page-loading-box p {
  margin: 0;
  font-weight: 600;
  color: var(--foreground, #1a1a1a);
}

.page-loading-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid var(--border, #e5e5e5);
  border-top-color: var(--primary, #f97316);
  border-radius: 50%;
  animation: page-loading-spin 0.8s linear infinite;
}

@keyframes page-loading-spin {
  to { transform: rotate(360deg); }
}
