:root {
  --lake: #0e4a5a; /* deep Lake Malawi blue: brand, headings */
  --lake-dark: #0a343f;
  --maize: #f0b43c; /* maize yellow: actions */
  --maize-dark: #d89a1f;
  --clay: #a8432f; /* brick red: small highlights */
  --paper: #f5f7f6; /* page background */
  --ink: #15252b; /* body text */
  --muted: #5b6b71;
  --line: #dbe3e1;
  --bs-body-font-family: "Public Sans", system-ui, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--paper);
  --bs-link-color: var(--lake);
  --bs-link-hover-color: var(--clay);
}
h1,
h2,
h3,
h4,
h5,
.display-font {
  font-family: "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.02em;
  color: var(--lake-dark);
}
a {
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 3px solid var(--maize);
  outline-offset: 2px;
}

/* Buttons */
.btn-maize {
  background: var(--maize);
  border-color: var(--maize);
  color: var(--lake-dark);
  font-weight: 600;
}
.btn-maize:hover,
.btn-maize:focus {
  background: var(--maize-dark);
  border-color: var(--maize-dark);
  color: var(--lake-dark);
}
.btn-lake {
  background: var(--lake);
  border-color: var(--lake);
  color: #fff;
  font-weight: 600;
}
.btn-lake:hover {
  background: var(--lake-dark);
  border-color: var(--lake-dark);
  color: #fff;
}

#index {
  padding-top: 100px;
}
#other {
  padding-top: 110px;
}

.navbar {
  padding: 0.5rem 0;
  min-height: 100px;

  position: fixed;
  top: 0;
}

.navbar-brand {
  font-size: 1.6rem;
}

@media (min-width: 992px) {
  .navbar-nav .nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    margin: 0;
  }

  .navbar-nav .gap-2 > li + li {
    margin-left: 0.5rem;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: #212529;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 0.75rem;
  }

  .navbar-nav .nav-link {
    font-size: 1.05rem;
    padding: 0.75rem 1rem !important;
  }
}

.dropdown-menu-dark .dropdown-item {
  padding: 0.6rem 1.25rem;
  font-size: 0.95rem;
}

/* Blog masthead */
.masthead {
  padding: 3.5rem 0 1.5rem;
}
.masthead h1 {
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1;
  max-width: 14ch;
}
.masthead p {
  color: var(--muted);
  max-width: 46ch;
  font-size: 1.125rem;
}

.hero {
  position: relative;
  min-height: 500px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--lake-dark) var(--hero-img) right center / auto 100%
    no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--lake-dark) 0%,
    var(--lake-dark) 40%,
    rgba(10, 52, 63, 0) 72%
  );
}
.hero-text {
  position: relative;
  z-index: 1;
  padding: 2.5rem;
  max-width: 600px;
}
.hero h1 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1;
  margin-bottom: 1.25rem;
}
.hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  max-width: 40ch;
}
@media (max-width: 767.98px) {
  .hero {
    min-height: 440px;
    align-items: flex-end;
    background-size: cover;
    background-position: 70% 20%;
  }
  .hero::before {
    background: linear-gradient(
      0deg,
      var(--lake-dark) 0%,
      rgba(10, 52, 63, 0.85) 45%,
      rgba(10, 52, 63, 0) 85%
    );
  }
  .hero-text {
    padding: 1.5rem;
  }
}

/* Category strip styled like tool-box labels */
.cat-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.75rem;
  scrollbar-width: thin;
}
.cat-tag {
  flex: 0 0 auto;
  border: 1.5px solid var(--lake);
  color: var(--lake);
  background: transparent;
  border-radius: 4px;
  padding: 0.4rem 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
}
.cat-tag:hover,
.cat-tag.active {
  background: var(--lake);
  color: #fff;
}

/* Featured story */
.feature {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 460px;
  background: var(--lake-dark) center/cover no-repeat;
  display: flex;
  align-items: flex-end;
}
.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 52, 63, 0.95) 0%,
    rgba(10, 52, 63, 0.55) 45%,
    rgba(10, 52, 63, 0) 75%
  );
}
.feature-body {
  position: relative;
  z-index: 1;
  padding: 2rem;
  color: #fff;
}
.feature-body h2 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  max-width: 22ch;
}
.feature-body a {
  color: inherit;
  text-decoration: none;
}
.feature-body a:hover {
  text-decoration: underline;
}
.badge-cat {
  background: var(--maize);
  color: var(--lake-dark);
  font-weight: 600;
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}
.meta {
  color: var(--muted);
  font-size: 0.875rem;
}
.feature .meta {
  color: rgba(255, 255, 255, 0.8);
}

/* Side stories */
.side-story {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.side-story:first-child {
  padding-top: 0;
}
.side-story h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.4rem 0;
}
.side-story h3 a {
  color: inherit;
  text-decoration: none;
}
.side-story h3 a:hover {
  color: var(--clay);
}

/* Post cards */
.post-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}
.post-card:hover {
  border-color: var(--lake);
}
.thumb {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 2.6rem;
}
.thumb.t-lake {
  background: var(--lake);
}
.thumb.t-clay {
  background: var(--clay);
}
.thumb.t-maize {
  background: var(--maize);
  color: var(--lake-dark);
}
.thumb.t-ink {
  background: #2c4a54;
}
.post-card .card-body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0.5rem 0;
}
.post-card h3 a {
  color: inherit;
  text-decoration: none;
}
.post-card h3 a:hover {
  color: var(--clay);
}
.post-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.post-card .meta {
  margin-top: auto;
}

/* Quick tips */
.tip {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--maize);
  border-radius: 6px;
  padding: 1.1rem 1.2rem;
  height: 100%;
}
.tip h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.5rem 0 0.4rem;
}
.tip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.tip.tip-hot {
  background: var(--lake);
  border-color: var(--lake);
  border-left-color: var(--maize);
}
.tip.tip-hot h3,
.tip.tip-hot p {
  color: #fff;
}
.tip.tip-hot p {
  color: rgba(255, 255, 255, 0.85);
}

/* Section headers */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--lake);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
.section-head h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
}

/* Sidebar */
.widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem;
}
.widget h3 {
  font-size: 1.15rem;
  font-weight: 800;
}
.popular li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.popular li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.popular a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.popular a:hover {
  color: var(--clay);
}
.area-link {
  display: inline-block;
  margin: 0 0.35rem 0.5rem 0;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #e8efed;
  color: var(--lake-dark);
  text-decoration: none;
  font-size: 0.9rem;
}
.area-link:hover {
  background: var(--lake);
  color: #fff;
}

/* Pro CTA band */
.pro-band {
  background: var(--lake);
  color: #fff;
  border-radius: 10px;
  padding: 2.5rem;
}
.pro-band h2 {
  color: #fff;
  font-weight: 800;
}
.pro-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 52ch;
}

/* Footer */
footer {
  background: var(--lake-dark);
  color: rgba(255, 255, 255, 0.8);
}
footer a {
  color: #fff;
}
footer h4 {
  color: #fff;
  font-size: 1rem;
}

@media (max-width: 575.98px) {
  .feature {
    min-height: 380px;
  }
  .feature-body {
    padding: 1.25rem;
  }
  .pro-band {
    padding: 1.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}



    .article-title { font-weight: 800; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.08; margin: 1rem 0; }
    .article-img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 10px; margin: 1.5rem 0; }
    .article-body { font-size: 1.15rem; line-height: 1.8; max-width: 68ch; }
    .article-body p { margin-bottom: 1.4rem; }
 
    .related { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.1rem; height: 100%; text-decoration: none; color: var(--ink); transition: border-color .15s; }
    .related:hover { border-color: var(--lake); }
    .related h3 { font-size: 1.15rem; font-weight: 700; margin: .6rem 0 .3rem; }
 
    .pro-band { background: var(--lake); border-radius: 10px; padding: 2rem; color: #fff; }
    .pro-band h2 { color: #fff; font-weight: 800; }
