:root {
  --navy: #0B2E63;
  --orange: #F59E0B;
  --blue: #2563EB;
  --teal: #14B8A6;
  --green: #16A34A;
  --light: #F8FAFC;
  --text: #334155;
  --muted: #64748B;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

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

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

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  color: var(--navy);
  text-align: center;
  padding: 2rem 1rem 0;
}

h2 {
  color: var(--navy);
  margin-bottom: 0.8rem;
}

p {
  color: var(--muted);
  margin-bottom: 1rem;
}

section {
  padding: 4rem 1.25rem;
}

section > div {
  max-width: 1200px;
  margin: 0 auto;
}

.page-hero {
  padding: 12rem 1.25rem 3rem;
  background-image: linear-gradient(120deg, rgba(11, 46, 99, 0.68), rgba(11, 46, 99, 0.42)), url('../img/AfricaTechFirstPIC.png');
  background-size: cover;
  background-position: center;
  border-radius: 0 0 2rem 2rem;
  color: var(--white);
}

.hero-layout {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-heading-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.hero-copy h1 {
  text-align: left;
  padding: 0;
  margin-bottom: 0;
  flex: 1 1 300px;
  color: var(--white) !important;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-copy p {
  max-width: 760px;
  margin-bottom: 1.4rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.35rem 0;
}

.hero-logo img {
  width: min(170px, 100%);
  max-height: 110px;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(11, 46, 99, 0.12);
  background: var(--white);
  padding: 0.5rem;
}

.support-section {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 0 1.25rem;
  text-align: center;
}

.support-eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #64748B;
}

.support-section h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
}

.support-copy {
  max-width: 860px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}

.section-accent {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--orange);
}

.btn-Learn {
  text-align: left;
  margin: 1.8rem 0 0;
}

.btn-Learn a {
  display: inline-block;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-Learn a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.site-footer {
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer p {
  margin: 0;
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.04em;
}

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

.grid > div {
  background: var(--white);
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 1.5rem;
}

.grid img {
  margin: 0 auto;
  height: 80px;
  object-fit: contain;
}

.grid h3 {
  text-align: center;
  margin-top: 1rem;
  color: var(--navy);
}

#mission,
#benefits {
  background: #ffffff;
}

#benefits {
  background: var(--light);
}

#benefits .why-apply-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: center;
}

#benefits .benefits-copy {
  order: 2;
}

#benefits .benefits-visual {
  order: 1;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(37, 99, 235, 0.08));
  border-radius: 1.75rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

#benefits .benefits-visual img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 1.25rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

#benefits .flex {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--white);
  border-radius: 1rem;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  margin-bottom: 1rem;
}

#benefits .flex h3 {
  margin-bottom: 0.45rem;
}

#benefits .flex p {
  margin-bottom: 0;
  line-height: 1.8;
}

#benefits .w-14,
#benefits .w-16 {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  padding: 0.8rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#benefits .w-14:hover,
#benefits .w-16:hover {
  background: var(--orange) !important;
  color: var(--white) !important;
}

#benefits .bg-orange-100 {
  background: #fff7ed;
  color: var(--orange);
}

#benefits .bg-blue-100 {
  background: #eff6ff;
  color: var(--blue);
}

#benefits .bg-green-100 {
  background: #f0fdf4;
  color: var(--green);
}

section.bg-\#0B2E63 {
  background: var(--navy);
  color: var(--white);
}

section.bg-\#0B2E63 h2,
section.bg-\#0B2E63 h3,
section.bg-\#0B2E63 h4,
section.bg-\#0B2E63 p {
  color: var(--white);
}

section.bg-\#0B2E63 .bg-white\/10 {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.5rem;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}

section.bg-\#0B2E63 .bg-orange-500 {
  background: var(--orange);
  color: var(--white);
}

section.bg-\[\#0B2E63\] .impact-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: #fff7ed;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

section.bg-\[\#0B2E63\] .impact-icon:hover {
  background: var(--orange) !important;
  color: var(--white) !important;
}

.mission-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: #fff7ed;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mission-icon:hover {
  background: var(--orange) !important;
  color: var(--white) !important;
}

@media (max-width: 900px) {
  .hero-layout,
  #benefits .why-apply-layout {
    grid-template-columns: 1fr;
  }

  #benefits .benefits-copy {
    order: 2;
  }

  #benefits .benefits-visual {
    order: 1;
  }
}

@media (min-width: 768px) {
  .grid.md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid.md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .grid.lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Space between hero and the 3 logo cards below it */
.page-hero + .grid {
  margin-top: 3rem;
}

/* Fix dropdown text to match navbar link color */
.navbar .dropdown-menu .dropdown-item {
  color: #141414 !important;
}

