/********** Template CSS **********/

:root {
    --primary: #FC8500;
    --secondary: #FFF0E6;
    --light: #F8F8F9;
    --dark: #001D23;

    --color-white-1: white;
    --color-orange-1: orangered;
    --color-dark-1: #001216;
    --color-blue-1: rgb(2, 99, 169);
    --color-paleblue: rgba(143, 169, 222, 0.2);
    --color-green-1: rgb(1, 60, 1);
    --color-green-2: rgb(1, 60, 1, 0.1);
    --color-orange-2: rgb(255, 69, 0, 0.1);
    --color-paleorange: rgba(237, 130, 91, 0.4);
    --color-dark-1: rgb(62, 100, 100);
    --color-dark-2: rgb(38, 114, 114);
    --color-dark-3: rgb(187, 209, 209);
    --color-black-1: rgb(0, 0, 0);

    --font-family-1: 'Stylus BT', sans-serif;
    --font-family-1: "Averia Serif Libre", cursive;
    --fontsize-maelezo: 1rem;
    --fontsize-maelezo-1: 1.3rem;
    --fontsize-maelezo-2: 1.5rem;
    --fontsize-maelezo-3: 1.6rem;
    --fontsize-maelezo-4: 2.0rem;

    --fontsize-footer: 1rem;
    --fontsize-maelezo-small: .8rem;

    --fontsize-title-1: 2rem;

    --transition: all 300ms ease;



    --box-shadow-1: 5px 4px 5px 0 rgba(0, 0, 50, 0.5);
    --shadow-light: 0px 0px 10px rgba(255, 255, 255, 0.6);
    --shadow-dark: 0px 0px 10px rgba(0, 0, 0, 0.6);
}




*, *::before, *::after { box-sizing: border-box;}



    .container-1{width:100%; padding-right:var(--bs-gutter-x, 1rem);padding-left:var(--bs-gutter-x, 1rem);margin-right:auto; margin-left:auto; margin-top: 2px; margin-bottom: 2px; border-radius: 2px; box-shadow: var(--shadow-light); position: relative;}


    .back-to-top {position: fixed; display: none; right: 60px; bottom: 30px;border-radius: 2px; z-index: 99; transition: .4 all;}

    @keyframes smoothBounce {
    0%, 100% {
        transform: translateY(0);
        animation-timing-function: ease-in-out;
    }
    50% {
        transform: translateY(-12px);
        animation-timing-function: ease-in-out;
    }
    }
    .smooth-bounce {
     animation: smoothBounce 1.8s infinite;
    }

    /*
    @keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-8px); }
    }

    .bounce-animation {
    animation: bounce 2s infinite;
    }

    */







/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 1;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.carousel-caption .btn-1{width: 30%; min-height: 50px; background: var(--color-orange-1);}


.btn {
    font-weight: 600;
    transition: .5s; min-height: 50px; 
}
.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}
.btn.btn-primary{
    background: rgb(255, 68, 0, 0.6);
}
.btn.btn-primary:hover {
    color: var(--color-orange-1);
    background: transparent;
}
.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 40px;
    height: 40px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}




.btn-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3px  4px;
    background: var(--color-orange-1);
    border: 1px solid rgb(252, 222, 222, o.5);
    border-radius: 1.5px;
    font-family: var(--font-family-1);
    font-size: var(--fontsize-maelezo);
    font-weight: 400;
    transition: .5s;
    color: var(--color-white-1);
    gap: 4px;
    min-width: 70% !important;
    margin: 3px 0;
    min-height: 50px;
    
}


.btn-1:hover {
    cursor: pointer;
    background: var(--color-white-1);
    border: 0.5px solid var(--color-orange-1);
    translate: 2px;
}

.arrow-inside-btn1 {
    display: inline-flex;
    border: .2px solid var(--color-white-1);
    margin: 1.5px  3px;
    padding: 3px;
    border-radius: 10%;
    font-size: 15px;
}

.btn-1:hover .arrow-inside-btn1{
    border-color: var(--color-orange-1);
}



.btn.btn-1 {
    padding: 5px  20px;
    color: var(--color-white-1);
    background-color: var(--color-orange-1);
    border: 0.5px solid var(--color-white-1);
    font-family: var(--font-family-1);
    font-size: var(--fontsize-maelezo-2);
    font-weight: 400;
}
.btn.btn-1:hover {
    background: rgba(255, 255, 255, .15);
    border: 1px solid var(--color-orange-1);
    /*border-color: var(--color-orange-1);*/
    color: var(--color-orange-1);
    font-weight: 400;
    translate: 2px;
}


.btn.btn-1 .d-inline-flex:hover {
    background: none;    
}



.btn.btn-4, .btn-4 .inside-cycle:hover {
    padding: 2px  9px;
    background-color: var(--color-orange-1);
    border: 0.5px solid var(--color-white-1);
    color: var(--color-white-1);
    /*font-family: 'Stylus BT', sans-serif;
    font-size: var(--fontsize-maelezo-2);
    font-weight: 400;*/
}
.btn.btn-4:hover {
    background: rgba(255, 255, 255, .15);
    border: 0.8px solid var(--color-orange-1);
    color: var(--color-orange-1);
    translate: 1px;
}
.btn-4 .inside-cycle{
    background: var(--color-white-1); border: .5px solid var(--color-orange-1); color: var(--color-orange-1); padding: .1rem .5rem; border-radius:10px; font-size: 0.8rem; transition: .3s;
}




    .container-xxl{
        border-left: .5px solid var(--color-dark-1);
        border-right: .5px solid var(--color-orange-1);
        margin: 15px auto;
        padding: 15px 1px;
    }


    .container-1fr{
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 4px 1px; padding: 4px;
        border-left: .5px solid var(--color-paleblue);
        border-top: .5px solid var(--color-paleblue);
        align-items: center;
        justify-content: center;
        box-shadow: 5px 4px 5px 0 rgba(0, 0, 50, 0.5);
    }


    .container-1f{
        box-shadow: 5px 4px 5px 0 rgba(0, 0, 50, 0.5);
        width: 100%;
        margin: 4px 1px; padding: 15px 4px;
        border: .05px solid rgb(239, 237, 237);
    }

    .container-2fr{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        /*grid-template-columns: 2fr 1fr 1fr;*/
        gap: 3px;
        width: 100%;
        margin: 4px 1px; padding: 4px;
        border-left: .25px solid var(--color-paleblue);
        border-top: .25px solid var(--color-paleblue);
        align-items: center; justify-content: center;
        box-shadow: var(--box-shadow-1);
    }

   
    /* Tablets (>= 992px) */
    @media (min-width: 992px) {
    .container-2fr {
        grid-template-columns: repeat(2, 1fr); 
       
    }
    }

  










    .container-in-2fr{
        padding: 8px;
        border: .25px solid var(--color-paleblue);
        border-radius: 1.5px; height: 100%;
    }
    .container-3fr{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 3px;
        width: 100%;
        margin: 2px 1px; padding: 4px;
        border: .5px solid var(--color-blue-1);
        align-items: center;
        justify-content: center;
        background: var(--color-paleblue);
    }

     /* Tablets (>= 692px) */
    @media (min-width: 550px) {
        .container-3fr {
        grid-template-columns: repeat(2, 1fr); 
        }
    }
    /* Desktop (>= 992px) */
    @media (min-width: 992px) {
        .container-3fr  {
        grid-template-columns: repeat(3, 1fr);
        }
    }


    .container-in-3fr{
        padding: 8px;
        border: .5px solid var(--color-orange-1);
        border-radius: 1.5px; height: 100%;
    }
  


    .container-4fr{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 3px;
        width: 100%;
        margin: 2px 1px; padding: 4px;
        border-left: .5px solid rgb(206, 205, 205, 0.4);
        border-top: .5px solid rgb(206, 205, 205, 0.4);
        align-items: center;
        justify-content: center;
        box-shadow: 5px 4px 5px 0 rgba(0, 0, 50, 0.5);
    }

 
    @media (min-width: 450px) {
        .container-4fr {
        grid-template-columns: repeat(2, 1fr); 
        }

    }

    /* Desktop (>= 992px) */
    @media (min-width: 992px) {
        .container-4fr  {
        grid-template-columns: repeat(4, 1fr);
        }
    }

    .container-in-4fr{
        padding: 8px;
        border-left: .5px solid rgb(206, 205, 205, 0.4);
        border-right: .5px solid rgb(206, 205, 205, 0.4);
        border-radius: 0px; 
        height: 100%;
    }



    .section-Title {
        margin: 1rem auto 1.2rem;
        padding: 5px 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 5rem;
        width: 100%;
        background: rgba(246, 253, 253,  .95);
        position: relative;
        box-shadow: 5px 4px 5px 0 rgba(0, 0, 50, 0.5);
        margin-bottom: 15px;
        border-top: .5px solid var(--color-orange-1);
        border-left: .5px solid var(--color-orange-1);
    }

    .section-Title h1 {
        font-family: var(--font-family-1);
        font-size: var(--fontsize-title-1);
        text-align: center;
    }

    .section-Title h1 a{
        text-decoration: none;
        color:var(--color-dark-1);
        border-bottom: 1.2px solid;
    }
    
    .section-Title:before {
        content: '';
        height: 90%;
        width: 90%;
        background-color: var(--color-orange-1);
        position: absolute;
        top: -5px;
        left: -5px;
        z-index: -1;
    }
    .section-Title h1 a:hover {
        border-bottom: none; /* remove the underline */
        text-decoration: overline 1.2px;
        color: var(--color-orange-1);
        transition: var(--transition);
    }

    .after-Title {
        position: relative;
        display: flex;
        justify-content: center; /* horizontal */
        align-items: center;     /* vertical */
        text-align: center;
    }

    .after-Title h1{
        font-size: var(--fontsize-maelezo);
        font-family: var(--font-family-1);
        position: relative;
        color: var(--color-dark-1);
        line-height: 1.5rem; font-weight: 600;
    }

    .after-Title h1::after { /*This is the bottom border*/
        content: '';
        display: block;
        width: 90%;
        height: .5px;
        background-color: var(--color-dark-1);
        margin: 6px auto 0 auto; /* gap above, auto left/right for centering */
    }




















    
  .after-Title h2 {
    padding: 0.1rem .5rem;
    font-family: var(--font-family-1);
    font-size: var(--fontsize-maelezo-2);
    font-weight: 900;
    color: var(--color-green-1);
    line-height: 1.8rem;
    position: relative; /* Allows positioning of the pseudo-element */
  }





.text-maelezo-any-h {
    font-family: var(--font-family-1);
    font-size: var(--fontsize-maelezo);
    font-weight: 500;
    color: var(--color-dark-1);
    margin: 1px  5px;
}





.text-maelezo-1 {
    font-family: var(--font-family-1);
    font-size: var(--fontsize-maelezo-1);
}
.text-maelezo-2 {
    font-family: var(--font-family-1);
    font-size: var(--fontsize-maelezo) !important;
    font-weight: 400;
    color: var(--color-dark-1);
    margin: 1px  4px; line-height: 1.1rem;
}

.text-maelezo-3 {
    font-family: var(--font-family-1);
    font-size: var(--fontsize-maelezo);
    line-height: 1.1rem; font-weight: 500;
}
.text-maelezo-small {
    font-family: var(--font-family-1);
    font-size: var(--fontsize-maelezo-small);
    font-weight: 400 !important;
    color: var(--color-white-1);
}


.color-white-1 {
    color: var(--color-white-1);
}
.color-orange-1 {
    color: var(--color-orange-1);
}
.color-green-1 {
    color: var(--color-green-1);
}

.bg-white-1{
   background-color: var(--color-white-1);
   z-index: -500px;
}
.bg-orange-1{
    background-color: var(--color-orange-1);
 }
 .bg-orange-2{
    background-color: var(--color-orange-2);
 }
 .bg-green-1{
    background-color: var(--color-green-1);
 }
 .bg-green-2{
    background-color: var(--color-green-2);
 }
.top-bottom-bars-1 {
    border-bottom: .5px solid var(--color-orange-1);
    border-top: .5px solid var(--color-orange-1);
}



/***------------------ Navbar -------------------***/
.fixed-top {transition: .5s; padding: 0px 50px; background: rgb(151, 189, 221, 0.6);}
.bg-fixed-navbar{background-color: var(--color-blue-1) !important}
.shadow-fixed-navbar{box-shadow:0 0.5rem 1rem rgba(0, 11, 39, 0.50) !important}


.top-socialmedia-cont {display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;}

.top-bar {height: 60px; border-bottom: 1px solid rgba(255, 255, 255, .1);}

.text-maelezo-header{font-family: var(--font-family-1); font-size: var(--fontsize-maelezo-small); font-weight: 200; color: var(--color-white-1);}

.header-column{padding: 3px;}

.socialm-icon{color: var(--color-white-1); font-size: .8rem; margin-right: .6rem;}

.socialm-icon:hover, .anwani:hover{color: var(--color-orange-1)}

.navbar-brand .navLogo{width: 50px; height: 50px; margin: .5px; border-top-left-radius: 4px; border-bottom-left-radius: 4px;}

.navbar-brand-2 .navLogo{width: 30px; height: 30px; margin: 2px; margin-left: 20px; border-top-left-radius: 3px; border-bottom-left-radius: 3px;}
.navbar-brand-2 h1{font-family: var(--font-family-1); font-size: .9rem; font-weight: 600; }

.topbar-icon {margin-bottom: 3px;}

nav {display: flex; padding: 3px 8px; width: 100%; height: 80px;}

.navbar-brand, .navbar-brand-2 {margin: 0 !important;}

.col-1 {width: 30%; height: 60px;}

.col-1 h1{font-family: var(--font-family-1); font-size: 1.3rem; font-weight: 600; }

.custom-borders::before, .custom-borders::after {content: ''; position: absolute; background-color: var(--color-white-1); height: .5px;}

.custom-borders::before { top: 1px; left: 9%;right: 10%;}

.custom-borders::after {bottom: 0; left: 7%; right: 50%;}

.col-2 {width: 60%; display: flex; justify-content: space-between;}

.inner-col {flex: 1; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2px 1px; transition: .3s;}

.active-col {border: .5px solid rgb(255, 69, 0, 0.4); border-radius: 0px; background: rgb(255, 255, 255, 0.1);}

.active-icon i{color: orangered;}

.inner-col:hover, .active-col:hover {background: rgb(255, 255, 255, 0.3); color: var(--color-orange-1); border: .5px solid var(--color-orange-1); border-radius: 0px;}

.inner-col:hover .icon-wrapper i,.inner-col:hover .text-wrapper a, .inner-col:hover .icon-wrapper {color: var(--color-orange-1);}

.inner-col:not(:last-child) {margin-right: 1px;}

.text-wrapper {font-family: var(--font-family-1); font-size: 1rem; font-weight: 500;color: var(--color-white-1); padding: 2px 0;}

.icon-wrapper {font-size: 12px; color:var(--color-white-1); border-bottom: .5px solid;}

.text-wrapper a {display: block;  text-align: center; border-bottom: .25px solid;}

.col-3 {width: 10%; height: 60px; }

.btn.btn-donate, .btn.btn-donate-2 {padding: 1px  8px; color: var(--color-white-1); background-color: var(--color-orange-1); border: 0.5px solid var(--color-white-1); border-radius: 2px; font-family: var(--font-family-1); font-size: .9rem; font-weight: 500; transition: .3s;}

.btn.btn-donate:hover, .btn.btn-donate-2:hover {background: rgba(255, 255, 255, .15); border: 1px solid var(--color-orange-1); color: var(--color-orange-1); translate: 2px;}






.navbar .dropdown-toggle::after {border: none; content: "\f107"; font-family: "Font Awesome 5 Free"; font-weight: 600; vertical-align: middle; margin-left: 6px;}

.navbar .navbar-nav .nav-link {padding: 1.5px 0;}

.navbar .navbar-nav .nav-link:hover, .navbar .navbar-nav .nav-link.active {color: var(--color-orange-1);}

.dropdown-menu{border: .25px solid var(--color-black-1); border-radius: 0; padding: 2px  20px; transition: .3s; background: var(--color-dark-3);}

.dropdown-item {transition: border 0.3s ease, color 0.3s ease, transform 0.3s ease;}
.dropdown-item:hover {
    border: 0.25px solid var(--color-green-1);
    border-radius: 2px;
    color: var(--color-orange-1);
    transform: translate(2px); /* Use transform for translation */
}







/* keep your existing styling, simplified */
.navbar-toggler{
  width:43px; height:43px; 
  padding:0; margin:0;
  border-radius:0;
  border: 1.5px solid white !important; 
  display:flex; align-items:center; justify-content:center;
  background:transparent;
}

/* Base icon styles */
.icon-burger, .icon-close{
  width:1.3em; height:1.3em;
  background-repeat:no-repeat;
  background-position:center;
  background-size:100%;
  display:inline-block; /* default, JS will hide/show properly */
  vertical-align:middle;
}

/* Hamburger (burger SVG) */
.icon-burger {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23fff' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* X (close SVG) */
.icon-close {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23fff' stroke-linecap='round' stroke-width='2' d='M7 7L23 23M23 7L7 23'/%3e%3c/svg%3e");
}


/* ensure focus has no ugly outline (optional) */
.navbar-toggler:focus { outline:none; box-shadow:none; }









.container-2-after-decollapse{display: none;}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 4px;
        
        border-top: .1px solid rgba(255, 255, 255, .1);
        background: var(--color-dark-1);
        max-height: 800px;
        width: 100%; 
        overflow-y: auto; overflow-x: hidden;
        padding-bottom: 5px;
    }
    /*.container-1-after-decollapse{border: .5px solid var(--color-white-1); width:99%; background-color:rgb(37, 87, 87); margin: 0;}*/

    .navbar .navbar-nav .nav-link {padding: 1px 0;}

    .container-2-after-decollapse{display:inline; width: 99%; background-color:var(--color-dark-2); border: .5px solid var(--color-white-1);border-radius: 0px; margin: 1px 0px; padding: 10px;}

    .inner-col {width: 100%; border: .25px solid rgb(255, 255, 255, 0.1);}
    .inner-col:hover {border-radius: 0;}

    .dropdown-menu{padding: 2px; min-width: 400px;}

    .btn.btn-donate-2 {width: 40%; margin-top: 15px;}
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-5deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/***------------------ Carousel --------------------***/
.carousel-item{height: 720px; background: linear-gradient(rgba(0, 29, 35, .5), rgba(0, 29, 35, .5)), url(../img/gallery-img-8.jpg) center center no-repeat;}

.carousel-item img{position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 100%; max-height: 100%;}

.carousel-caption {top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; text-align: center; background: rgba(114, 199, 230, 0.2); z-index: 1;}

.carousel-control-prev, .carousel-control-next {width: 45px; height: 45px; top: 50%; transform: translateY(-50%); border: .5px solid var(--color-white-1); border-radius: 4px; transition: .2s;}

.carousel-control-prev {left: 5%;}
  
.carousel-control-next {right: 5%;}

.carousel-control-prev-icon, .carousel-control-next-icon {width: 100%; height: 100%; background-color: var(--color-paleblue); border: 10px solid rgba(36, 84, 181, 0.6); border-radius: 4px;}

.carousel-control-prev-icon:hover, .carousel-control-next-icon:hover { background-color: var(--color-blue-1); border: 10.5px solid var(--color-blue-1);}

.carousel-control-prev:hover, .carousel-control-next:hover {border: .5px solid var(--color-orange-1);}





@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: linear-gradient(rgba(0, 29, 35, .6), rgba(0, 29, 35, .5)), url(../img/gallery-img-8.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}






/***------------------------------- About Us -----------------------------------------***/
    .usajiri {display: flex; align-items: center; margin: 2px   0;}
    .usajiri h1 {
        font-family: var(--font-family-1);
        font-size: var(--fontsize-maelezo);
        font-weight: 500;
        color: var(--color-dark-1);
    }
    .usajiri i {font-size: 20px; color: var(--color-blue-1); margin-right: 2rem;}

    .tafsiri {padding-left: 50px; margin-bottom: 15px;}
    .tafsiri h2 {color: var(--color-orange-1)!important; font-family: var(--font-family-1); font-size: var(--fontsize-maelezo); font-weight: 400;}

    .mission-box {background-color: var(--color-paleblue); padding: 2px 2px; margin: 10px 0; border-bottom: 2px solid var(--color-orange-1);}
    .mission-box h1 {background-color: var(--color-paleorange); font-family: var(--font-family-1); font-size: var(--fontsize-maelezo-1); padding: 3px  5px; font-weight: 600;}
    .mission-box h2, .objectives li {font-family: var(--font-family-1); font-size: var(--fontsize-maelezo); padding: 2px  5px; font-weight: 400; color: var(--color-dark-1);}

    .CEO-box {background: var(--color-white-1); position: relative; display: flex; flex-direction: column; margin: 2px  0px; }
    .CEO-box h1 {
        background: var(--color-blue-1); 
        color: var(--color-white-1);
        font-size: var(--fontsize-maelezo); 
        position: absolute; left: -5px;
        display: flex; 
        text-align: center; 
        padding: 10px;
        font-family: var(--font-family-1); font-weight: 600;
        border-right: 15px solid var(--color-white-1);
        border-bottom: 15px solid var(--color-white-1);
        border-bottom-right-radius: 8px; 
    }

    .CEO-box .img-box {
        width: 100%; 
        aspect-ratio: 1 / 1; overflow: hidden; 
        padding: 15px  1px  1px  15px; 
        display: flex; justify-content: center; align-items:center;}
    .CEO-box img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* keeps aspect ratio and fills box */
        display: block;
    }
      .CEO-box h2 {
        background: var(--color-bslue-1); 
        color: var(--color-dark-1);
        font-size: var(--fontsize-maelezo);
        font-weight: 500;
        position: relative; 
        display: flex;
        padding: 20px; margin: 4px;
        box-sizing: border-box; /* Ensure padding doesn't overflow width */
        font-family: var(--font-family-1);
        border: .5px dotted var(--color-paleblue);
    }

   .CEO-box .img-box-logo {
        width: 25%; 
        aspect-ratio: 1 / 1; 
        overflow: hidden;
        display: flex;
        justify-content: center; 
        align-items:center;
        position: absolute; 
        left: -1%; 
        top: -3%; 
        z-index: 9;
    }
    .CEO-box .img-box-logo img {
        width: 100%;
        height: auto;
        object-fit: cover; /* keeps aspect ratio and fills box */
        display: block;
        border: 6px ridge rgb(244, 224, 224);
    }

   .CEO-box .kapicha-kadogo-box {
        width: 10%; 
        aspect-ratio: 1 / 1; overflow: hidden; 
        padding: 1px; background: var(--color-paleorange);
        display: flex;
        justify-content: center; align-items:center;
        position: relative;border-radius: 50%;
    }
    .CEO-box .kapicha-kadogo-box img {
        width: 80px; height: auto;
        object-fit: cover; /* keeps aspect ratio and fills box */
    }

    .CEO-box h3 {
        color: var(--color-blue-1);
        font-size: var(--fontsize-maelezo);
        font-weight: 400;
        position: relative; 
        display: flex;
        padding: 2px; margin: 1px  1px  1px  8px;
        font-family: var(--font-family-1);
    }
     .CEO-box h3:hover {
        color: var(--color-orange-1);
    }

    .core-value-item {
        box-shadow: 0  0 45px rgba(217, 141, 134, 0.4);
        text-align: center;
        height: 100%;
        padding: 15px;
        display: flex;
        flex-direction: column;
        align-items: center; background: var(--color-white-1);
    }
    .core-value-item h2{color: var(--color-dark-1); font-size: var(--fontsize-maelezo); font-family: var(--font-family-1); font-weight: 500;}

    .core-value-img-box {
        width: 50%; 
        aspect-ratio: 1 / 1;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items:center;
        position: relative; 
        background: var(--color-paleblue);
        padding: 2px; margin: 10px;
        border-radius: 50%;
    }
    .core-value-img-box img {
        width: 100%;
        height: auto;
        object-fit: cover; /* keeps aspect ratio and fills box */
        display: block;
        border-radius: 50%;
    }







.position-relative1{min-height: 200px; padding: 2px; margin: 3px; border: .5px solid var(--color-green-1); border-radius: 8px; background: rgba(0, 52, 0, 0.7);}

.foto1{width: 100%; height: auto; border-bottom-left-radius: 8px; padding-top: 25px; padding-right: 25px;}

.foto2{width: 140px; height: 140px; background: rgba(0, 52, 0, 0.6); border-bottom-left-radius: 8px; border-left: .5px solid var(--color-green-1); border-bottom: .5px solid var(--color-green-1);  padding-left: 5px; padding-bottom: 5px;}




/*** Causes ***/
.causes-item .progress {
    height: 5px;
    border-radius: 0;
    overflow: visible;
}

.causes-item .progress .progress-bar {
    position: relative;
    overflow: visible;
    width: 0px;
    border-radius: 0;
    transition: 5s;
}

.causes-item .progress .progress-bar span {
    position: absolute;
    top: -7px;
    right: 0;
    width: 40px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: var(--primary);
    color: #FFFFFF;
}

.causes-item .causes-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.causes-item:hover .causes-overlay {
    height: 100%;
    opacity: 1;
}


/*** Service ***/



/*** Donate ***/
.donate {
    background: rgba(0, 29, 35, .8);
}

.btn-group .btn-light:hover,
.btn-group input[type="radio"]:checked+label {
    color: var(--primary);
    border-color: var(--primary);
}


/***--------------- Team Starts Here-----------------***/
    .team .after-Title h1, .services .after-Title h1 {font-size: var(--fontsize-maelezo); font-weight: 500;}
    
    .container-team-members {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(1, 1fr); 
    gap: 2px;
    padding: 5px 2px;
    }
    @media (min-width: 402px) {
    .container-team-members {
        grid-template-columns: repeat(2, 1fr); 
        gap: 2px;
        padding: 5px 2px;
    }
    }
    /* Tablets (>= 692px) */
    @media (min-width: 692px) {
    .container-team-members {
        grid-template-columns: repeat(3, 1fr); 
        gap: 2px;
        padding: 5px 2px;
    }
    }

    /* Desktop (>= 992px) */
    @media (min-width: 992px) {
    .container-team-members {
        gap: 55px;
        padding: 15px 120px;
    }
    }


    .team-item-box {
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        justify-content: center; 
        border-top: .5px solid var(--color-paleblue); 
        border-left: .5px solid var(--color-paleblue); 
        box-shadow: 4px 4px 3px 0 rgb(0, 53, 0, 0.7); 
        overflow: hidden;
        padding: 4px;
        position: relative;
        transition: transform 0.3s ease;
        
    }

    .team-member-photo-box {
        width: 100%;
        aspect-ratio: 1 / 1; 
        overflow: hidden; 
        padding: 4px; 
        display: flex; 
        justify-content: center; 
        align-items:center; 
        background: var(--color-blue-1); 
    }

    .team-member-photo-box img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* keeps aspect ratio and fills box */
        display: block;border-radius: 20%;
    }

    .team-member-maelezo-box {
        width: 100%;
        height: 25%;
        padding: 2px;
        background: var(--color-blue-1); 
        text-align: center;
        overflow: hidden;
        flex-grow: 1;
    }

    .team-member-maelezo-box h1 {
        font-family: var(--font-family-1);
        color: var(--color-white-1);
        font-size: var(--fontsize-maelezo);
        font-weight: 400;      
        margin: 4px;
       
    }
    .team-member-maelezo-box h2 {
        font-family: var(--font-family-1);
        color: var(--color-white-1);
        font-size: var(--fontsize-maelezo-small);
        font-weight: 400;      
        margin: 3px;
    }

    .team-member-maelezo-box .footer-social-media{opacity: 0;}
    .team-item-box:hover .team-member-maelezo-box .footer-social-media{opacity: 1;}

    .team-member-photo-box,
    .team-member-maelezo-box {
    position: relative;
    transition: transform 0.5s ease, opacity 0.5s ease;
    }
    /* Optional: if you want everything to transition */
    .team-member-photo-box,
    .team-member-maelezo-box,
    .footer-social-media {
    transition: all 0.5s ease;
    }

    .team-item-box:hover .team-member-photo-box {
    transform: translateY(20%);
    z-index: 1;
    }

    .team-item-box:hover .team-member-maelezo-box {
    transform: translateY(-25%); 
    z-index: 2;
    }

/***--------------- Team Ends Here-----------------***/






/*---------------------------Projects------------------------------*/

    .container-project-item-1{
        padding: 8px;;
    }
    .container-project-item-2{
        border-left: .5px solid rgba(193, 193, 213, 0.5); 
        border-top: .5px solid rgba(193, 193, 213, 0.5); 
        box-shadow: var(--box-shadow-1);
        display: flex;
        flex-direction: column; align-items: start; 
        height: 100%;  padding: 10px;
    }

    .container-project-item-2 .video-project{
        width: 100%;
        max-height: 250px;
        object-fit: cover; 
        overflow: hidden;
        background: rgb(235, 146, 146);
        padding: 2px;
        margin-bottom: 1.5px;
    }

    .video-project video {
        width: 100%;      
        height: 100%;     
        object-fit: cover; 
    }
    .video-project img {
        width: 100%;      
        height: 100%;     
        object-fit: cover; 
    }


    .container-project-item-2 h2 {color: var(--color-dark-1); font-size: var(--fontsize-maelezo); font-family: var(--font-family-1); font-weight: 500;}

    .gallery-link{background: rgb(236, 241, 249); width: 100%;}
    .gallery-link:hover {background: none; border: .5px solid var(--color-orange-1);}


    .play-video-btn{
       
        padding: 1px; 
        margin-bottom: 15px; 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        justify-content: center;
        text-align: center; position: relative; 
        width: 100%; 
        
    }
    .play-video-btn h1{padding: 0; margin: 0; color: var(--color-dark-1); font-size: var(--fontsize-maelezo-small); font-family: var(--font-family-1); font-weight: 500;}

    .btn-44 {
        position: relative;display: flex;
        width: 100%; border: .5px solid var(--color-paleblue);
        padding: 4px;
        background-color: var(--color-orange-1);
        text-decoration: none;
        border-radius: 2px;
        justify-content: center;
        align-items: center;transition: .4s; 
    }
 
    .btn-44 .inside-cycle{
        background: var(--color-white-1); 
        border: .5px solid var(--color-orange-1); 
        color: var(--color-orange-1); 
        padding: 3px  8px; 
        border-radius:2px; 
        font-size: var(--fontsize-maelezo-small); 
        transition: .3s;
    }

    .btn-44:hover {
        background: var(--color-white-1);
        border-color: var(--color-orange-1);
        translate: 1.5px;
    }

    .btn-44:hover .inside-cycle{
        background: var(--color-orange-1);
        color: var(--color-white-1);
        translate: 1.5px;
    }

    .btn-3 {
        padding: 1px  2px;
        color: var(--color-white-1);
        background-color: var(--color-orange-1);
        border: 0.5px solid var(--color-white-1);
        font-family: var(--font-family-1);
        font-size: var(--fontsize-maelezo-small);
        font-weight: 500;
        transition: .3s;
        border-radius: 2px;
    }

    .btn-3:hover {
        background: var(--color-white-1);
        border: .5px solid var(--color-orange-1);
        color: var(--color-orange-1);
        translate: 1px;
    }



    .video-modal {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    }























.image-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;     /* Center vertically */
    height: 100%;            /* Adjust this based on the container's height */
    width: 100%;             /* Adjust this based on the container's width */
    padding: 2px;
    border-radius: 8px;
    background: rgb(0, 92, 0, 0.05);
}
.img-fluid.rounded {
    max-width: 100%;
    height: 500px;
}
.causes-progress{padding: 10px 50px 15px  60px;}










/*** Testimonial ***/

.testimonial-heading {display: flex; flex-direction: column; justify-content: center; text-align: center;}
.testimonial-heading h1, .testimonial-heading h2 { font-family: var(--font-family-1); color: var(--color-orange-1);}
.testimonial-heading h1{font-size: var(--fontsize-maelezo-4); font-weight: 700;}
.testimonial-heading h2{ font-size: var(--fontsize-maelezo-2); margin: 5px 1px; font-weight: 600; }
.testimonial-heading h1::after { /*This is the bottom border*/
    content: '';
    display: block;
    width: 40%;
    height: .5px;
    background-color: var(--color-orange-1);
    margin: 8px auto 0 auto; /* gap above, auto left/right for centering */
}

.animated.pulse {
    animation-duration: 1.5s;
}

.col-lg-3 {
    display: flex !important;
    align-items: center;
    justify-content: center;

    
}

.testimonial-left,
.testimonial-right {
    position: relative;
    height: 100%; width: 100%; 
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}

.testimonial-left img,
.testimonial-right img {
    position: relative;
    padding: 4px;
    border: 1px dashed var(--color-orange-1);
    border-radius: 10px;
    width: 40px;
    height: 40px;
}

.testimonial-left img:nth-child(1),
.testimonial-right img:nth-child(3) {
    width: 50px;
    height: 50px;
    left: -30%;
}

.testimonial-left img:nth-child(2),
.testimonial-right img:nth-child(2) {
    width: 55px;
    height: 55px;
    left: 20%;
}

.testimonial-left img:nth-child(3),
.testimonial-right img:nth-child(1) {
    width: 45px;
    height: 45px;
    /*bottom: 10%;*/
    right: 10%;
}
.testimonial-left img:last-child,
.testimonial-right img:last-child {
    width: 50px;
    height: 50px;
    /*bottom: 10%;*/
    right: -40%;
}


.testimonial-jina h1{
    color: var(--color-dark-1);
    font-size: var(--fontsize-maelezo);
    font-family: var(--font-family-1);
    margin-top: 15px;
}
.testimonial-jina::after { /*This is the bottom border*/
    content: '';
    display: block;
    width: 40%;
    height: .5px;
    background-color: var(--color-dark-1);
    margin: 6px auto 0 auto; /* gap above, auto left/right for centering */
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 5px;
    width: 40px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white-1);
    background: var(--color-blue-1); 
    border-radius: 10px;
    font-size: 1.2rem;
    transition: background 0.3s, transform 0.2s;
    transition: .5s;
    padding: 1px !important;
    border-radius: 2px!important;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    /*background: var(--secondary);*/
    opacity: .2;
}


/* Arrows */
.owl-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px; /* space between arrows */
  border-top: .01px solid rgb(223, 222, 222, .5);
  border-bottom: .01px solid rgb(223, 222, 222, .5);
  padding: 3px 5px;
}









/**---------Photo-gallery in Events HTML----------*/
.header-gallery {
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: linear-gradient(rgba(0, 29, 35, .5), rgba(0, 29, 35, .5)), url(../img/picha-26.jpg) center no-repeat;
    background-size: cover;
}
.photo-gallery {
    height: 480px; background: var(--color-green-2); border: 0.5px solid var(--color-orange-1); border-radius: 8px; padding: 2px;
}
.photo-gallery-imagebox{
    height: 350px;  border: 0.5px solid var(--color-orange-1); border-radius: 8px; padding: 0px; display: flex; align-items: center; justify-content: center; width: 100%; overflow: hidden; transition: transform 0.5s ease;
    background: linear-gradient(rgba(225, 140, 84, 0.8), rgba(92, 152, 163, 0.5)), url(../img/Picha-1.jpg) center no-repeat;
    background-size: cover;
}
.photo-gallery img {
    height: 100%; object-fit: cover; transition: transform 0.5s ease; padding: 1px;
}
.photo-gallery-imagebox:hover img {
    transform: scale(1.2);
}


/*----------- Photo/Video modal------------*/

.modal-content {
    width: 65%;
    border-radius: 4px;
    overflow: hidden;
}
/*
.modal-body {
    padding: 0; /* Remove padding around the image 
    display: flex;
    justify-content: center;
    align-items: center;
}*/
.modal-header {
    display: flex;
    justify-content: center; /* Center the content horizontally */
    align-items: center; /* Center the content vertically */
    position: relative;
    padding: 0.5rem 0.8rem; /* Adjust padding as needed */
}
.modal-footer {
    display: flex;
    justify-content: center; /* Center the content horizontally */
    align-items: center; /* Center the content vertically */
    position: relative;
    padding: 0.1rem 0rem; /* Adjust padding as needed */
    height: 35px;
}
.modal-title {
    margin: 0;text-align: center; /* Center text within the h2 element */
}
.btn-close {
    position: absolute; /* Position button absolutely to the right */
    right: .8rem;
    top: 50%;
    transform: translateY(-25%); /* Center button vertically */
    border: .5px solid var(--color-orange-1);
    background-color: rgb(255, 69, 0, 0.1);
}
.modal-body img {
    width: auto;
    max-height: 75vh;
    display: block;
    margin: 0 auto; /* Center the image */
    margin: 2px;
    border-radius: 0px;
}

.modal-dialog {
    max-width: none; 
    width: auto;
    top: 0px; 
    display: flex;
    align-items: center;
    justify-content: center;
}



@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
        top: 0px;
    }
    .modal-body img {
        max-height: 85vh;
    }
}  







/***------------- Footer ------------------***/
    .footer {background: var(--color-blue-1);}

    .footer-logo {padding: 2px; border-radius: 0px; transition: .3s; display: flex; align-items: center; position: relative;}

    .footer-logo::after, .footer-logo::before { 
        content: "";
        display: block;
        height: .5px;
        background-color: var(--color-white-1);
        position: absolute;
    }
    .footer-logo::after { 
        width: 50%; bottom: 0;
        left: 0%;
    }

    .footer-logo::before { 
        width: 80%;top: 0;
        left: 0%;
    }


    .footer-logo:hover {letter-spacing: 1px; box-shadow: 1px 1px 1px  1px rgb(255, 69, 0, .4);}

    .footer-logo img{width: 40px; height: 40px; border-top-left-radius: 4px; border-bottom-left-radius: 4px; margin-right: 6px; margin-left: -3px;}

    .footer-logo h2 {font-family: var(--font-family-1); font-size: var(--fontsize-footer); font-weight: 600; color: var(--color-white-1); display: flex; align-items: center; padding: auto; margin: 0;}
    .footer-logo h2 span{ color: var(--color-orange-1);}

    .footer-maelezo-1 {margin: 15px 2px;}



    .footer-maelezo-1 h1, .quick-link h1, .adres-maelezo {
        padding: 2px  3px; margin-bottom: 4px;
        font-family: var(--font-family-1);
        font-size: var(--fontsize-footer);
        font-weight: 400;
        color: var(--color-white-1);
        line-height: 1.2rem;
        position: relative;
        transition: .4s;
        display: flex; align-items: center;
    }
    .footer-maelezo-1 h1::after { /*This is the bottom border, 100% width*/
        content: "";
        display: block;
        width: 100%;
        height: 0.5px;
        background-color: var(--color-white-1);
        position: absolute;
        bottom: -5px;
        left: 0%;
    }

    .footer-social-media .btn-square {
        color: var(--color-white-1); border: .5px solid var(--color-white-1); transition: .2s;width: 30px;
    height: 30px; font-size: 17px;
    }
    .footer-social-media .btn-square:hover {
        color: var(--color-orange-1); border-color: var(--color-orange-1); transform: translateY(-3px);
    }
    .footer-social-media{
    display: flex; flex-wrap: wrap; gap: 1.5px; align-items: center; justify-content: center;   padding: 2px; margin: 4px; transition: .2s;
    }

    .footer-social-media:hover{
        box-shadow: 0px 0px 5px  1px rgb(255, 69, 0, .4);
    }

    .footer-heading {
        margin: 2px;
    }
    .footer-heading h2 {
        padding: 4px 1px; font-family: var(--font-family-1); font-size: var(--fontsize-footer); font-weight: 600; color: var(--color-white-1); position: relative;
    }
    .footer-heading h2::after {
        content: ""; display: block; width: 100%; height: .5px; background-color: var(--color-white-1); position: absolute; bottom: 0; left: 0%;
    }

    .Quick-Links .quick-link:hover, .quick-link:hover  {
       letter-spacing: 0.4px; border: 0.01px solid var(--color-orange-1); border-radius: 2px; box-shadow: 1px 1px 1px  1px rgb(255, 69, 0, .4);
    }
    .Quick-Links .quick-link:hover h1{
        color: var(--color-orange-1);
    }
    .Quick-Links .quick-link i, .adres-maelezo i, .quick-link i{
        margin-right: 8px;
    }

    .footer-email-box{background: rgb(243, 242, 242); margin: 4px 0; padding: 2px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%;}

    .footer-email-box .form-control {
        font-family: var(--font-family-1); color: var(--color-dark-1) !important; background: white !important; transition: .03s; margin: auto; border-radius: 1px;
    }
    .footer-email-box .form-control:hover {
        background: rgba(247, 208, 208, 0.9) !important;
    }
    .footer-email-box .form-control::placeholder {
        color: var(--color-orange-1);
    }

    .footer-email-box .btn-1 {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 3px  4px;
        background: var(--color-orange-1);
        border-radius: 1px;
        font-family: var(--font-family-1);
        font-size: var(--fontsize-footer);
        font-weight: 400;
        transition: .5s;
        color: var(--color-white-1);
        margin: auto;
        min-height: 50px;
    }

    .footer-email-box .btn-1:hover {
        background: transparent;
        border: .5px solid var(--color-orange-1);
        color: var(--color-orange-1);
       transform: translate(-3px, 2px);
    }

    .container-copyright{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
        width: 100%;
        margin: 2px 1px; padding: 1px;
    }


 
    @media (min-width: 450px) {
      
        .container-copyright{
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        
     }
    }






    .container-in-copyright{
        display: flex;
        align-items: center;
    }

    .container-in-copyright h1{
        font-size: var(--fontsize-footer);
        color: var(--color-dark-1);
        font-family: var(--font-family-1);
        font-weight: 400;
    }

    .container-in-copyright a {
        color: var(--color-orange-1);
    }
    .container-in-copyright a:hover {
        color: var(--color-blue-1);
    }