html, body {
    background-color: #f5efea !important;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: 'Advent Pro', sans-serif;
}

p{
    font-size:18px;
}

header {
    width: 100%;
}

.header-top {
    background-color: #9ccb46;
    display: flex;
    height: 50px;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 1;
}

.header-bottom {
    background-color: #9ccb46;
    display: flex;
    height: 100px;
    border-bottom: 1px solid #131909;
    justify-content: flex-end;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.header-bottom {
    position: relative;
    text-align: center;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-bottom p {
    color: #000000;
    font-size: 28px;
    margin: -17px 0;
    text-align: center;
}

#animate {
    font-weight: bold;
}

#chini {
   
    font-size: 20px;
}


#animate {
    animation: mytext 5s infinite;
}

@keyframes mytext {
    50% { word-spacing: 20px; }
}

@media (max-width: 768px) {
    .header-bottom p {
        display: none;
    }
}

#language-selector {
    padding: 5px;
    border-radius: 5px transparent;
    border: none;
    margin-left: 60%;
    background: url('language-icon.png') no-repeat left center;
    padding-left: 25px;
    background-color: transparent;
}

.header-middle {
    background-color: #000;
    display: flex;
    height: 70px;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    z-index: 10;
    position: relative;
}

.logo {
    width: 250px;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}
/*heading kwenye slider*/
#udahili {
    font-size: 24px;
    text-align: center;
    position: relative;
    display: inline-block;
    opacity: 0; /* Initially hidden */
    animation: zoomOutAnimation 4s ease-out infinite; /* Repeat the animation every 4 seconds */
}

#first-line {
    display: block; /* Ensures it appears above */
}

#second-line {
    display: block; /* Makes it appear below */
    margin-top: 10px; /* Adds space between the lines */
}

/* Define the keyframes for zoom-out animation */
@keyframes zoomOutAnimation {
    0% {
        opacity: 0;
        transform: scale(1.2); /* Starts zoomed in */
    }
    50% {
        opacity: 1;
        transform: scale(1); /* Normal size at halfway point */
    }
    100% {
        opacity: 0;
        transform: scale(1.2); /* Zoom back in */
    }
}



.right-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-right: 20px;
}

.social-icons a {
    color: #9ccb46;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #9ccb46;
}

.search-box {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #9ccb46;
    margin-right: 20px;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    padding: 5px 10px;
    font-size: 16px;
    color: #9ccb46;
    width: 100%;
    max-width: 400px;
}

.search-box input::placeholder {
    color: lightgrey;
}

.search-box button {
    background: transparent;
    border: none;
    cursor: pointer;
}

.search-box button i {
    color: #9ccb46;
    font-size: 18px;
    transition: color 0.3s;
}

.search-box button:hover i {
    color: #9ccb46;
}

#search-results {
    display: none;
    max-height: 300px;
    overflow-y: auto;
    background: #000000;
    border: 1px solid #ddd;
    z-index: 1000;
}

@media (max-width: 767px) {
    .search-box {
        max-width: 50%;
        margin: 0 10px;
    }
    #search-results {
        max-height: 200px;
    }
    .search-box input {
        font-size: 14px;
        padding: 4px;
    }
    .search-box button {
        padding: 8px;
    }
}

@media screen and (max-width: 768px) {
    .header-top, .header-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .header-middle {
        justify-content: flex-end;
        padding-left: 20px;
    }
    
    .logo {
        left: -12%;
        transform: translate(0, -50%);
    }

    .right-section {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
        width: 100%;
    }
    
    .social-icons {
        display: none;
        order: 2;
        margin-top: 10px;
        margin-left: auto;
    }
    
    .search-box {
        order: 1;
        margin-top: 10px;
        margin-left: auto;
    }
}

.professional-nav {
    background-color: #9ccb46;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 0%;
}

.hamburger {
    display: none;
    font-size: 24px;
    padding: 10px 20px;
    cursor: pointer;
    color: #000;
}

.nav-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    transition: max-height 0.3s ease;
    color: #000;
    text-decoration: none;
}

.nav-menu li {
    list-style: none;
    text-decoration: none;
}

a {
    text-decoration: none;
}

.nav-menu a {
    color: #000;
    padding: 10px 15px;
    display: block;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.has-dropdown {
    position: relative;
}

.has-dropdown .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #9ccb46;
    display: none;
    flex-direction: column;
    z-index: 100000;
    width: max-content;
}

.has-dropdown:hover .dropdown {
    display: flex;
    background-color: #85b135;
}

.has-dropdown .dropdown li {
    list-style: none;
}

.has-dropdown .dropdown li a {
    padding: 10px 15px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    color: #000000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.nav-menu a, .has-dropdown .dropdown li a {
    text-decoration: none !important;
}

.nav-menu a:hover, .has-dropdown .dropdown li a:hover {
    color: #000000 !important;
}

@media (max-width: 768px) {
    .hamburger {
        display: inline-block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
    }

    .nav-menu.active {
        display: flex;
        max-height: 500px;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        text-align: left;
        padding: 10px;
    }

    .has-dropdown .dropdown {
        position: static;
        display: none;
    }

    .has-dropdown.active .dropdown {
        display: block;
    }
}

.slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-top: -17px;
}

.slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 100%;
    opacity: 0;
    transition: all 1s ease-in-out;
}

.slider img.active {
    left: 0;
    opacity: 1;
}

.slider img.prev {
    left: -100%;
    opacity: 0;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background-color: rgba(156, 203, 70, 0.59);
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 2;
}

.slider-overlay h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
}

.slider-overlay p {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
}

.slider-overlay .asha {
    background-color: #000000;
    color: #9ccb46;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    text-decoration:none;
}

.slider-overlay h2 {
    color: #000000;
    font-style: bold;
    text-transform: uppercase;
}

.slider-overlay p {
    color: #000000;
    font-style: bold;
}

@media (max-width: 768px) {
    .slider-overlay {
        width: 100%;
        right: 0;
        left: 0;
        padding: 15px;
        background-color: rgba(156, 203, 70, 0.9);
    }
    .slider-overlay h2 {
        font-size: 20px;
    }
    .slider-overlay p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    .slider-overlay button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

.event-ads-news {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-heading {
    background-color: #9ccb46;
    padding: 15px;
    text-align: center;
    text-transform: uppercase;
}

.card-heading h3 {
    color: #000000;
    margin: 0;
    font-size: 20px;
}

.card-content {
    padding: 20px;
    text-align: center;
}

.card-content p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #9ccb46;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #8bb53a;
    color: #000000;
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .card-heading h3 {
        font-size: 18px;
    }

    .card-content p {
        font-size: 14px;
    }

    .btn {
        padding: 8px 16px;
    }
}

.section-advice {
    padding: 60px 0;
    background-color: #9ccb46;
    position: relative;
    overflow: hidden;
}

.container-s {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.advice-content {
    color: #000000;
    max-width: 60%;
    z-index: 2;
}

.advice-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.advice-content p {
    font-size: 18px;
    line-height: 1.6;
}

.black-box {
    position: relative;
    width: 200px;
    height: 200px;
    background-color: #000000;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    margin-left: 20px;
}

.join-btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #9ccb46;
    color: #000000;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #000000;
    border-radius: 5px;
    transform: rotate(-45deg);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.join-btn:hover {
    background-color: #000000;
    color: #9ccb46;
    text-decoration: none;
}

@media (max-width: 1024px) {
    .advice-content {
        max-width: 50%;
    }

    .black-box {
        width: 150px;
        height: 150px;
    }

    .join-btn {
        padding: 10px 20px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        text-align: center;
    }

    .advice-content {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .black-box {
        margin-left: 0;
        margin-top: 20px;
    }
}

.footer {
    background-color: #9ccb46;
    color: #000000;
    padding: 40px 0;
    margin-top: 15px;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}


.footer-section.faq {
    display: flex;
    gap: 20px; /* Nafasi kati ya buttons */
    justify-content: center; /* Panga katikati */
    align-items: center; /* Panga wima katikati */
    height: 200px; /* Hakikisha container ina height ya kutosha */
}

.btn {
    display: inline-block;
    padding: 15px 30px; /* Fanya button iwe kubwa */
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: #9ccb46; /* Rangi ya maandishi */
    background-color: #000000; /* Rangi ya nyuma */
    border: 2px solid #9ccb46; /* Mstari wa nje */
    text-decoration: none; /* Hakuna underline */
    transition: all 0.3s ease-in-out;
    height: 50%; /* Height inakuwa 50% ya .footer-section.faq */
    display: flex;
    align-items: center; /* Maneno yawekwe katikati wima */
    justify-content: center; /* Maneno yawekwe katikati mlalo */
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5); /* Drop Shadow */
}

#kozi{
    list-style: none; 
}

/* Button yenye radius ya 45px */
.btn-rounded {
    border-radius: 45px;
}

/* Button ya rectangle (na sharp corners) */
.btn-rectangle {
    border-radius: 5px;
}

/* Hover Effect */
.btn:hover {
    background-color: #9ccb46;
    color: #000000;
    text-decoration: none;
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.7); /* Stronger Shadow on Hover */
}



.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #000000;
}

.footer-section p, .footer-section ul {
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #000000;
}


.footer-bottom {
     border-top: 1px solid #000000;
    background: #222; /* Rangi ya nyuma */
    color: #fff; /* Rangi ya maandishi */
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#mapp{
    color:#000000;
}

#mapp:hover{
    text-decoration:none;
    color:#000000;
}
.footer-bottom ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0; /* Spacing below the links */
    display: flex;
    gap: 15px; /* Nafasi kati ya viungo */
}

.footer-bottom ul li {
    display: inline;
}

.footer-bottom ul li a {
    color: #9ccb46;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.footer-bottom ul li a:hover {
    text-decoration: none;
}









@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        text-align: center;
    }
}

.cardz {
  position: relative;
  display: flex;
  flex-direction: row;
  margin: 50px;
  width: 80%;
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2); /* Card shadow */
  overflow: hidden; /* Hide content overflow */
  border-radius: 10px;
  transition: transform 0.3s ease-in-out;
}

.cardz:hover {
  transform: scale(1.05); /* Scale on hover */
}

.imgbox {
  position: relative;
  width: 50%;
  height: 100%;
}

.imgbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contentbox {
 position: relative;
    width: 50%;
    height: 300px; /* Adjust based on content */
    background: #000000;
    color: #9ccb46;
    padding: 20px;
    overflow: hidden; /* Hide overflowing content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.content {
    display: flex;
    flex-direction: column; /* Stacks slides vertically */
    transition: transform 1s ease-in-out;
}

.slide {
    min-width: 100%;
    padding: 20px;
    box-sizing: border-box;
    text-align: left;
    display: none; /* Hide slides initially */
}

/* Show the first slide */
.slide.active {
    display: block;
}


.contentbox h2 {
  font-size: 24px;
  color: #fff;
}

.contentbox p {
  color: #fff;
  margin-top: 10px;
}

.contentbox a {
  margin-top: 15px;
  color: #9ccb46;
  text-decoration: none;
  padding: 10px;
  border: 1px solid #9ccb46;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.contentbox a:hover {
  background: #9ccb46;
  color: #000000;
  text-decoration:none;
}





