/* =========================================================
   ABOUT PAGE — CONTENT ONLY
   Background colours & card style matched exactly to
   About page design system
========================================================= */

/* ===============================
   CONTENT AREA
================================ */
.content {
  content-margin-left: 50px;
  padding-top: 180px;
}

/* ===============================
   TICL MOVING SLIDER
================================ */
.ticl-slider {
  position: relative;
  z-index: 4000;
}

.slider-track {
  display: flex;
  width: max-content;
  gap: 20px;
}

.slide-item {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 420px;
  padding: 12px 28px 12px 10px;
  font-size: 18px;
  font-weight: bold;
  color: var(--black);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal),
    opacity var(--transition-normal);
}

.slide-item img {
  max-width: 1000px;
  height: 150px;
  object-fit: contain;
}

.slide-item.active {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.ticl-slider.faded .slide-item:not(.is-selected) {
  opacity: 0.25;
  filter: grayscale(70%);
}

.ticl-slider.faded .slide-item.is-selected {
  opacity: 1 !important;
  filter: none !important;
  z-index: 6001;
}

.slide-item.is-selected {
  transform: translateY(-25px) scale(1.03);
  transition: transform 0.35s ease;
  z-index: 6000;
}

.slider-dim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 3000;
  display: none;
}

.slider-dim.active {
  display: block;
}


/* =========================================================
   PAGE HERO
========================================================= */
.page-hero {
  background-color: var(--primary, #1D8FCB);
  color: var(--white);
  padding: 40px 30px;
  border-radius: 12px;
  margin-top: 25px;
  margin-bottom: 17px;
  border-bottom: none;
  text-align: center;
  box-shadow: none;
}

.page-hero-label {
  display: inline-block;
  background: #000000;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.page-hero h1 {
  color: #ffffff;
  text-shadow: none;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: none;
}

@keyframes aboutHeroSlide {
  from {
    opacity: 0;
    transform: translateY(-25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes aboutHeroFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


/* =========================================================
   about-section-label
========================================================= */
.about-section-label {
  display: inline-block;
  background: #000000;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-align: left;
  padding: 5px 14px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* =========================================================
   ABOUT SECTIONS — wrapper
========================================================= */
.about-section {
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 30px;
  padding-left: 0;
  margin-bottom: 0;
}

/* VMV section — gap kati ya Hero na WHAT WE STAND FOR */
.vmv-section {
  padding-top: 40px;
}

/* Team section — gap kati ya Capacity Building na OUR TEAM */
.team-section {
  padding-top: 40px;
}

/* =========================================================
   SECTION TITLES & SUBTITLES
========================================================= */
.section-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--dark, #003366);
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-sub {
  font-size: 15px;
  color: #111111;
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 8px;
}


/* =========================================================
   MISSION / VMV GRID — 3 columns
========================================================= */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 17px;
}

.mission-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid rgba(11, 37, 69, 0.12);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.mission-card:hover {
  border-color: var(--gold, #C9922A);
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(11, 37, 69, 0.10);
}


/* =========================================================
   mc-top — "Vision", "Mission", "Values"
========================================================= */
.mc-top {
  display: inline-block;
  background-color: var(--primary, #1D8FCB);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
  align-self: flex-start;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.3s ease, transform 0.3s ease;
}

.mission-card:hover .mc-top {
  transform: scale(1.04);
}

.mc-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--dark, #003366);
  margin-bottom: 8px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.mission-card:hover .mc-title {
  color: var(--primary);
}

.mc-text {
  font-size: 13px;
  color: #111111;
  line-height: 1.6;
  flex: 1;
}


/* =========================================================
   STRATEGIC FOCUS BLOCK
========================================================= */
.focus-block {
  padding-top: 40px;
  padding-bottom: 30px;
  margin-top: 0;
}

.focus-block .mission-grid {
  grid-template-columns: repeat(3, 1fr);
}


/* =========================================================
   CARD IMAGE REFERENCE
========================================================= */
.card-img-ref {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: none;
  background: transparent;
  margin-bottom: 18px;
  flex-shrink: 0;
  align-self: flex-start;
  position: relative;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.mission-card:hover .card-img {
  transform: scale(1.06);
}


/* =========================================================
   CARD IMAGE — DARK OVERLAY ON HOVER
========================================================= */
.card-img-ref::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  border-radius: 50%;
  transition: background 0.35s ease;
}

.mission-card:hover .card-img-ref::after {
  background: rgba(0, 0, 0, 0.45);
}


/* =========================================================
   STRATEGIC FOCUS CARDS — Text wrapper
========================================================= */
.focus-block .mission-card .focus-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
}

.focus-block .mission-card .focus-text .mc-text {
  padding-left: 8px;
}


/* =========================================================
   TEAM GRID — 3 columns
========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 17px;
}

.team-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid rgba(11, 37, 69, 0.12);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.team-card:hover {
  border-color: var(--gold, #C9922A);
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(11, 37, 69, 0.10);
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--pos-y, center);
}

/* Khamis — increase headroom */
.team-avatar img.khamis-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(0.93) translateY(4%);
  transform-origin: center center;
}

.team-avatar.avatar-white {
  background: #ffffff;
  border: 2px solid var(--border-light);
}

.team-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark, #003366);
  margin-bottom: 2px;
  line-height: 1.4;
}

.team-role {
  font-size: 11px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-bio {
  font-size: 12px;
  color: #111111;
  line-height: 1.6;
  text-align: justify;
}


/* =========================================================
   MANAGING DIRECTOR — FEATURED ROW (above the 3-column team grid)
========================================================= */
.team-grid-lead {
  display: grid;
  grid-template-columns: minmax(280px, 460px);
  justify-content: center;
  margin-top: 17px;
  margin-bottom: 24px;
}

.team-card.md-card {
  border: 2px solid #000000;
  box-shadow: 0 12px 28px rgba(11, 37, 69, 0.12);
  position: relative;
}

.team-card.md-card:hover {
  border-color: var(--gold, #C9922A);
}

.md-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: #000000;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}

.team-card.md-card .team-avatar {
  width: 140px;
  height: 140px;
  background: #1D8FCB;
}


.team-card.md-card .team-name {
  font-size: 18px;
}

@media screen and (max-width: 700px) {
  .team-grid-lead {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   CTA BAND
========================================================= */
.cta-band {
  background-color: var(--primary);
  padding: 52px 2rem;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 25px;
  margin-top: 20px;
}

.cta-band h2 {
  font-size: 28px;
  color: var(--white, #ffffff);
  margin-bottom: 12px;
}

.cta-band p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.80);
  margin-bottom: 28px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.btn-primary {
  display: inline-block;
  background: var(--white, #ffffff);
  color: var(--primary);
  padding: 14px 28px;
  border-radius: 6px;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: var(--light-bg, #def1f9);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   RESPONSIVE
========================================================= */
@media screen and (max-width: 1000px) {

  .mission-grid,
  .focus-block .mission-grid,
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 700px) {
  .content {
    margin-left: 0;
    padding-top: 140px;
  }

  .page-hero {
    padding: 40px 1.25rem 32px;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .section-title {
    font-size: 24px;
  }

  .mission-grid,
  .focus-block .mission-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 36px 1.25rem;
  }

  .cta-band h2 {
    font-size: 24px;
  }
}


/* =====================================================
   STYLE REVEAL ANIMATION (About Page)
===================================================== */
body.about .reveal-up {
  opacity: 0;
  transform: translateY(55px);
  transition:
    opacity .9s ease,
    transform .9s ease;
  will-change: transform, opacity;
}

body.about .reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

body.about .delay-1 {
  transition-delay: .1s;
}

body.about .delay-2 {
  transition-delay: .25s;
}

body.about .delay-3 {
  transition-delay: .4s;
}

body.about .delay-4 {
  transition-delay: .55s;
}

/* Hero animation */
body.about .page-hero h1 {
  animation: aboutHeroSlide 1s ease both;
}

body.about .page-hero p {
  animation: aboutHeroFade 1.4s ease both;
}

@keyframes aboutHeroSlide {
  from {
    opacity: 0;
    transform: translateY(-25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes aboutHeroFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* =========================================================
   VISION / MISSION / VALUES CARDS — Image left, Text right
========================================================= */
.about-section .mission-card {
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

.about-section .mission-card .card-img-ref {
  flex-shrink: 0;
  margin-bottom: 0;
  margin-top: -9px;
}

.about-section .mission-card .focus-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
}

.about-section .mission-card .focus-text .mc-text {
  padding-left: 8px;
}

.about-section .mission-card .mc-title,
.about-section .mission-card .mc-text {
  margin: 0;
}


/* =========================================================
   STRATEGIC FOCUS CARDS — Image left, Text right (row layout)
========================================================= */
.focus-block .mission-card {
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

.focus-block .mission-card .card-img-ref {
  flex-shrink: 0;
  margin-bottom: 0;
  margin-top: -9px;
}

.focus-block .mission-card .focus-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
}

.focus-block .mission-card .focus-text .mc-text {
  padding-left: 8px;
}

.focus-block .mission-card .mc-title,
.focus-block .mission-card .mc-text {
  margin: 0;
}

/* =========================================================
   ABOUT HERO COMPANY NAME
========================================================= */
.about-company-name {
  color: #ffffff;
  font-weight: 800;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.85),
    0 0 6px rgba(255, 255, 255, 0.18);
  letter-spacing: 0.2px;
}

/* =========================================================
   TEAM ROLE STYLED — Same glow as company name
   — For titles like "Mkurugenzi Mtendaji (MD)"
========================================================= */
.team-role-styled {
  font-weight: 700;
  color: var(--primary);
  text-shadow:
    0 0 1px rgba(29, 143, 203, 0.60),
    0 0 4px rgba(29, 143, 203, 0.25);
  letter-spacing: 0.3px;
}

/* =========================================================
   ABOUT-SECTION-LABEL INSIDE PAGE-HERO (About)
   — Black badge, wraps text only (inline-block)
========================================================= */
.page-hero .about-section-label {
  display: inline-block;
  background: #000000;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  margin-bottom: 10px;
}

/* =========================================================
   CTA BAND — MULTI-BUTTON ROW
========================================================= */
.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* btn-primary tayari ipo — hapa ni variants zake */
.cta-band .btn-primary.btn-ghost {
  background: transparent;
  color: var(--white);
  border: none;
  box-shadow: inset 0 0 0 2px var(--white);
  /* ← nyeupe kama btn-services & btn-outline */
}

.cta-band .btn-primary.btn-ghost:hover {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(4, 170, 109, 0.35);
}

.btn-primary.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-primary.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* =========================================================
   CTA BAND — SERVICES BUTTON (outline variant)
========================================================= */
.cta-band .btn-primary.btn-services {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.cta-band .btn-primary.btn-services:hover {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}