/**
 * Tunaweza — global UI polish (premium rounded, centered banners, nav)
 */

html { scroll-behavior: smooth; }

body,
button,
input,
textarea,
select {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.title,
.caption-title,
.sec-title h1,
.page-title h1 {
  font-family: "Inter", "Open Sans", system-ui, sans-serif !important;
  letter-spacing: -0.02em;
}

img { max-width: 100%; height: auto; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #ff6503;
  outline-offset: 3px;
}

::selection {
  background: rgba(255, 101, 3, 0.2);
  color: #090E0D;
}

/* ========== Page banners — centered site-wide ========== */
.page-title {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 220px !important;
  padding: 5.5rem 1.25rem 3.5rem !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.page-title::before,
.page-title:before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(
    180deg,
    rgba(9, 14, 13, 0.35) 0%,
    rgba(9, 14, 13, 0.5) 100%
  ) !important;
  z-index: 1 !important;
}

.page-title .auto-container,
.page-title .container {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.page-title .sec-title {
  text-align: center !important;
  margin: 0 auto !important;
  max-width: 720px;
}

.page-title h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem) !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 0 0.65rem !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  text-align: center !important;
}

.page-title .bread-crumb {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0.35rem !important;
  text-align: center !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 !important;
}

.page-title .bread-crumb a {
  color: rgba(255, 255, 255, 0.9) !important;
  text-decoration: none !important;
  margin: 0 !important;
  transition: color 0.2s;
}

.page-title .bread-crumb a:hover {
  color: #ff6503 !important;
}

.page-title .bread-crumb .current,
.page-title .bread-crumb span {
  color: #fff !important;
  font-weight: 600;
}

@media (max-width: 767px) {
  .page-title {
    min-height: 180px !important;
    padding: 4.5rem 1rem 2.5rem !important;
  }
}

/* ========== Section spacing / white space ========== */
.section-padding {
  padding-top: 4.5rem !important;
  padding-bottom: 4.5rem !important;
}

@media (max-width: 767px) {
  .section-padding {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

main > section + section {
  /* breathing room between stacked sections when padding is uneven */
}

.section-tittle {
  margin-bottom: 2rem;
}

.section-tittle .sub-tittle {
  color: #ff6503 !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

.section-tittle .title {
  margin-top: 0.35rem;
  line-height: 1.25;
}

.helpful-area-three {
  padding-top: 4rem !important;
  padding-bottom: 3.5rem !important;
}

.about-area {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

.donate-hero-note {
  margin-bottom: 2.75rem !important;
  max-width: 36rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ========== Premium pill buttons ========== */
.btn,
.btn-primary-fill,
.btn-outline-primary,
.btn-outline-secondary,
.btn-primary,
.submit-btn,
.donate-btn,
.donate-submit,
.teo-dialog__primary,
.newsletter-hero .btn,
.hero-slider .btn,
input[type="submit"],
button[type="submit"] {
  border-radius: 999px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
}

.btn-primary-fill:hover,
.submit-btn:hover,
.donate-submit:hover,
.teo-dialog__primary:hover,
.hero-slider .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 101, 3, 0.3);
}

.form-control,
.custom-input,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="search"],
textarea,
select {
  border-radius: 12px !important;
  border-color: #D0D5DD !important;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: #ff6503 !important;
  box-shadow: 0 0 0 3px rgba(255, 101, 3, 0.12) !important;
}

.input-group .form-control { border-radius: 12px 0 0 12px !important; }
.input-group .btn { border-radius: 0 999px 999px 0 !important; }

/* ========== Cards ========== */
.helpful-card,
.card.shadow-sm,
.report-card,
.donate-card,
.doc-card {
  border-radius: 16px !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05) !important;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.helpful-card:hover,
.teo-lift:hover,
.report-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.1) !important;
}

.helpful-card-icon { color: #ff6503; }
.card-text,
.helpful-card-caption .caption-para {
  color: #505A59;
  line-height: 1.6;
  font-size: 0.92rem;
}

/* ========== Nav bar refinements ========== */
.header-area-three .main-menu .listing > .single-list > .single {
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.01em;
  padding: 0.5rem 0.85rem !important;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s !important;
}

.header-area-three .main-menu .listing > .single-list > .single:hover {
  color: #ff6503 !important;
  background: rgba(255, 101, 3, 0.06);
}

.header-area-three .main-menu .submenu {
  border-radius: 12px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  padding: 0.5rem 0 !important;
  min-width: 200px;
}

.header-area-three .main-menu .submenu .single {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  padding: 0.55rem 1.1rem !important;
  border-radius: 0;
}

.header-area-three .main-menu .submenu .single:hover {
  background: #FFF4EC !important;
  color: #ff6503 !important;
}

.header-area-three .btn-primary-fill {
  border-radius: 999px !important;
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.04em;
}

.header-area-three.teo-scrolled .header-sticky,
.header-sticky.teo-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Mobile menu — 3-stroke hamburger */
.header-area-three .mobile_menu .slicknav_btn,
.header-area-three .mobile_menu .slicknav_menu .slicknav_btn {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 6px 4px !important;
  box-shadow: none !important;
}
.header-area-three .mobile_menu .slicknav_btn .slicknav_icon-bar,
.header-area-three .mobile_menu .slicknav_menu .slicknav_btn .slicknav_icon-bar {
  background: #ff6503 !important;
  background-color: #ff6503 !important;
  height: 3px !important;
  width: 24px !important;
  margin: 5px 0 !important;
  border-radius: 2px !important;
  display: block !important;
}
.header-area-three .mobile_menu .slicknav_menutxt {
  display: none !important;
}
.header-area-three .mobile_menu .slicknav_nav {
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
  margin-top: 8px !important;
  max-height: 70vh;
  overflow-y: auto;
}
.header-area-three .mobile_menu .slicknav_nav a:hover {
  background: #FFF4EC !important;
  color: #ff6503 !important;
}

/* Footer */
.footer-wrapper { border-top: 3px solid #ff6503; }
.footer-social-link .single:hover {
  color: #ff6503 !important;
  transform: translateY(-2px);
}

/* Pagination */
.pagination .page-link {
  border-radius: 999px !important;
  margin: 0 3px;
  min-width: 2.25rem;
  text-align: center;
  color: #090E0D;
  border-color: #E5E7EB;
  font-weight: 500;
}
.pagination .page-item.active .page-link {
  background: #ff6503 !important;
  border-color: #ff6503 !important;
}
.pagination .page-link:hover {
  color: #ff6503;
  border-color: #ff6503;
  background: #FFF4EC;
}

.teo-lift { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.auto-container { max-width: 1200px; }

/* Hero glass panel — light orange */
.hero-slider .slide-content {
  background: rgba(255, 140, 50, 0.42) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 12px 40px rgba(255, 101, 3, 0.18) !important;
}
.hero-slider .btn {
  background: #fff !important;
  color: #ff6503 !important;
  border-radius: 999px !important;
}
.hero-slider .btn:hover {
  background: #ff6503 !important;
  color: #fff !important;
}

/* Spacing tighten */
.section-padding { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
@media (max-width: 767px) {
  .section-padding { padding-top: 2.25rem !important; padding-bottom: 2.25rem !important; }
}
.page-title { min-height: 190px !important; padding: 4.5rem 1.25rem 2.75rem !important; }
.g-24 { --bs-gutter-y: 1.15rem; --bs-gutter-x: 1.15rem; }
.mb-35 { margin-bottom: 1.5rem !important; }
.mb-20 { margin-bottom: 1rem !important; }
.about-area.pt-5 { padding-top: 3rem !important; }
.blog-section-three.pt-5 { padding-top: 2.75rem !important; }
.bottom-padding { padding-bottom: 2.75rem !important; }
.helpful-area-three { padding-top: 3rem !important; padding-bottom: 2.5rem !important; }
.donate-hero-note { margin-bottom: 2rem !important; }
.donate-impact { margin-top: 1.75rem !important; padding: 1.75rem 1.5rem !important; }

/* —— Tunaweza JS-driven polish —— */
#teo-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 2147483645;
  background: linear-gradient(90deg, #ff6503, #ff8c32);
  pointer-events: none;
  box-shadow: 0 0 8px rgba(255, 101, 3, 0.45);
  transition: width 0.05s linear;
}

.teo-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.teo-reveal.teo-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .teo-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.teo-nav-active {
  color: #ff6503 !important;
  font-weight: 700 !important;
}

@keyframes teoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 101, 3, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(255, 101, 3, 0); }
}
.teo-pulse {
  animation: teoPulse 0.85s ease 3;
}

body.teo-kbd a:focus-visible,
body.teo-kbd button:focus-visible {
  outline: 2px solid #ff6503;
  outline-offset: 3px;
}


/* Pagination */
.teo-pagination .page-link {
  border-radius: 8px !important;
  margin: 0 3px;
  color: #333;
  border-color: #e5e7eb;
}
.teo-pagination .page-item.active .page-link,
.teo-pagination .page-item.active span.page-link {
  background: #ff6503 !important;
  border-color: #ff6503 !important;
  color: #fff !important;
}
.teo-pagination .page-link:hover {
  color: #ff6503;
  border-color: #ffd4b8;
  background: #FFF4EC;
}
