body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #111;
}


header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
}



header:not(.hero-section) {
    display: flex;
    align-items: center;
    padding: 10px 20px;
}

.navbar-nav .nav-link {
    color: #212529;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 8px !important;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #dc3545 !important;
}

.navbar-nav .nav-link.active {
    color: #dc3545 !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #dc3545;
    border-radius: 2px;
}

.navbar-nav .nav-item {
    margin-right: 8px;
    /* Adjust this number as needed to give them breathing room */
}

.nav-logo {

    width: 120px;


    height: auto;


    max-width: 100%;


    object-fit: contain;
}

.african-stripes-top {
    height: 6px;
    background: linear-gradient(90deg, #dc3545 0%, #dc3545 33%, #ffc107 33%, #ffc107 66%, #198754 66%, #198754 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

/* Hero Section adjustments */
.hero-section {
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    /* Add this line */
}

.hero-image-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}



.hero-faded-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 25%, black 100%);
}


@media (max-width: 991.98px) {
    .hero-image-container {
        position: relative;
        width: 100%;
        height: 300px;
        margin-top: 2rem;
        background: url('../images/hero-image.jpg');
        background-size: cover;
        background-position: center;
    }

    .hero-faded-image {
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* Card hover and styling */
.card {
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-4px);
}

.card-img-top {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background-color: #f8f9fa;
}

/* Card and hover enhancements */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

.what-we-do-section .col,
.what-we-do-section [class*="col-"] {
    flex: 0 0 auto;
    width: 26% !important;
    /* Forces each card column to be slightly wider */
}


.what-we-do-section .card {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}


.what-we-do-section .card p,
.what-we-do-section .card-text {
    font-size: 0.82rem !important;
    line-height: 1.45 !important;
    text-align: center !important;
}


.icon-wrapper {
    width: 48px;
    height: 48px;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.feature-card:hover .icon-wrapper {
    background-color: #e9ecef;
}

/* Enables smooth scrolling */
html {
    scroll-behavior: smooth;
}


section[id],
div[id] {
    scroll-margin-top: 90px;
}


.better-wrapper {
    position: relative;
    display: inline-block;
}

.color-bar {
    display: block !important;
    height: 6px !important;
    width: 100% !important;
    background: linear-gradient(90deg, #dc3545 0%, #dc3545 33.33%, #ffc107 33.33%, #ffc107 66.66%, #198754 66.66%, #198754 100%) !important;
    margin-top: 8px !important;
    border-radius: 3px !important;
}

/* =========================================
   MOBILE RESPONSIVE OVERRIDES (Phone Friendly)
   ========================================= */
@media (max-width: 768px) {

    
    .what-we-do-section .col,
    .what-we-do-section [class*="col-"] {
        width: 100% !important;
        margin-bottom: 1.5rem;
    }

    
    h1,
    .display-4 {
        font-size: 2.1rem !important;
    }

    h2,
    .display-5 {
        font-size: 1.6rem !important;
    }

  
    body {
        overflow-x: hidden;
    }

    @media (max-width: 768px) {
        .hero-section .btn {
            padding-left: 1rem !important;
            padding-right: 1rem !important;
            padding-top: 0.5rem !important;
            padding-bottom: 0.5rem !important;
            font-size: 0.75rem !important;
        }
    }

    @media (max-width: 992px) {
        #get-involved .row {
            padding-left: 0 !important;
            text-align: center;
        }

        #get-involved .position-absolute {
            display: none !important;
            /* Hide background graphic on mobile to prevent overflow */
        }

        #get-involved {
            padding-top: 2rem !important;
            padding-bottom: 2rem !important;
        }
    }
    /* --- Mobile Hero Refinements (Phones only) --- */
@media (max-width: 991px) {
  /* Give the hero section a subtle off-white or cohesive look to reduce glare */
  .hero-section {
    background-color: #fcfcfc !important;
    padding-top: 1.5rem !important;
    padding-bottom: 2rem !important;
  }

  /* Force the hero columns to stack vertically on mobile so elements aren't squashed */
  .hero-section .row {
    display: flex;
    flex-direction: column;
  }

  /* Make the text container take full width and remove side gaps */
  .hero-section .col-lg-6 {
    width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Make the heading size balanced for mobile screens */
  .hero-section h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  /* Position and style the image nicely underneath the text on mobile */
  .hero-image-container {
    width: 100% !important;
    height: 250px !important;
    margin-top: 1.5rem !important;
    border-radius: 1rem !important;
    overflow: hidden;
    position: relative !important;
  }

  .hero-faded-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}
}