/* Reset Styles */
body {
    font-family: 'Arial', serif; /* Professional serif font */
    font-size: 17px; /* Standard font size */
    line-height: 1.6; /* Comfortable line spacing */
    color: #333333; /* Neutral and readable text color */
    background-color: #f9f9f9; /* Light background to reduce eye strain */
      scroll-behavior: smooth;
}


  /* CSS for infinite rotation */
        @keyframes rotate {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }

        .rotating-gif {
            width: 100px; /* Adjust the size as needed */
            animation: rotate 2s linear infinite; /* Rotates every 2 seconds */
        }



#searchResult a{
   color: #E81E25  ;
   text-decoration: none;
}

#searchResult a:hover{
    color: #EDE823 ;
    text-decoration: none;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Arial', serif; /* Elegant font for headings */
    font-weight: 700; /* Bold for emphasis */
    color: ; /* College-themed green */
    margin-bottom: 15px;
}

/* Paragraphs */
p {
    font-size: 17px; /* Consistent with body font size */
    margin-bottom: 20px; /* Space between paragraphs */
    color: #444444; /* Slightly darker for better contrast */
}

body, ul, li, a, p {
  margin: 0;
  padding: 0;
  list-style: none;
  text-decoration: none;
  scroll-behavior: smooth;
  
}

/*animation heading*/
#animate{
    animation: mytext 5s infinite;
}

@keyframes mytext{
    50% {word-spacing:    20px;}
}

#animate-logo{
    animation: mylogo 4s infinite;
}

@keyframes mylogo{
    50% {ease-out: 50px;}
}

/* Header Top Image */
.header-top img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Header Row */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #f5f5f5;
}

.logo img {
  max-height: 80px;
}

.contact-info p {
  font-size: 14px;
  margin: 2px 0;
}

/* Professional Navigation */
.professional-nav {
  background-color: #E81E25 ;
  color: #ffffff;
   position: -webkit-sticky; /* Kwa ajili ya Safari */
  position: sticky;
  top: 0;
  z-index: 1000; /* Ili kuhakikisha inakuwa juu ya vitu vingine */
}

.hamburger {
  display: none;
  font-size: 24px;
  padding: 10px 20px;
  cursor: pointer;
  color: white;
}

.nav-menu {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  transition: max-height 0.3s ease;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: #ffffff;
  padding: 10px 15px;
  display: block;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

/*.nav-menu a:hover {
  background-color:  ;
}*/

/*.has-dropdown .dropdown a:hover{
  word-break: keep-all;

}*/


/* Dropdown Menu */
.has-dropdown .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #E81E25;
  display: none;
  flex-direction: column;
  z-index: 1000;
  width: max-content; /* Adjust width dynamically based on content */
}

.has-dropdown:hover .dropdown {
  display: flex; /* Use flex instead of inline for better control */
  background-color: #E81E25;
}

.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: white; /* Ensure text color is visible */
  white-space: nowrap; /* Prevent text from wrapping */
  overflow: hidden; /* Hide overflow text */
  text-overflow: ellipsis; /* Add ellipsis (...) for truncated text */
  display: block; /* Ensure links take up full width */
}

/* Optional: Add hover effect for better UX */
.has-dropdown .dropdown li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.has-dropdown .dropdown li a:hover {
  background-color: #EDE823  ;
/*  3C2415;*/
  list-style: none;
  list-style-type: none;
  text-decoration: none;
}

.toggle {
  cursor: pointer;
  padding-left: 10px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .hamburger {
    display: 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: relative;
    display: none;
  }
}

#topicon{
  color:#E81E25  ;
}


/*first sections*/
/* Left Section Styling */
.welcome-section {
  display: flex;
  align-items: flex-start;
}

.director-img {
  width: 35mm; /* Upana wa picha */
  height: 45mm; /* Urefu wa picha */
  margin-right: 15px; /* Nafasi kati ya picha na maandishi */
  object-fit: cover; /* Kuwa na mtazamo mzuri wa picha */
  border-radius: 5px; /* Kona za picha ziwe laini */
}

.welcome-text {
  flex: 1;
}

.welcome-text h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #3C2415; /* Rangi inayolingana na nav */
}

.welcome-text p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.card {
  border-radius: 10px;
  background-color: #ffffff;
  border: 1px solid #ddd;
}

.shadow {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.p-3 {
  padding: 15px;
}

.search-form {
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-form .form-group {
  margin-bottom: 15px;
}

.search-form label {
  font-size: 16px;
  font-weight: bold;
}

.search-form .form-control {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.search-form button {
  padding: 10px 15px;
  font-size: 16px;
  background-color: #EDE823;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.search-form button:hover {
  background-color: black;
}

#search{
  width: 100%;
  height: auto;
  background-color:#EDE823;
  color: white;
}
#search:hover{
  background-color:black;
  color: white;
}

/*section ya kuapply now*/
/* New Apply Now Section */
.apply-now-section {
  background-color: #E81E25 ; /* Green Background */
  color: white;
  padding: 40px 0;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.apply-now-content h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.apply-now-content p {
  font-size: 18px;
  margin-bottom: 30px;
}

.btn-apply {
  font-size: 16px;
  padding: 12px 30px;
  background-color: #EDE823 ;
  color: white;
  border: none;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-apply:hover {
  background-color: black;
  color: #fff;
}


/*section ya posts*/
/* Card styling */
.card {
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.card-header {
  font-size: 20px;
  font-weight: bold;
  padding: 10px;
  text-transform: uppercase;
  background-color: #E81E25 ;
  color: white;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.card-body {
  padding: 20px;
  font-size: 14px;
}

.card-body p {
  color: #555;
}

.card-body a {
  color: #259C48;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.card-body a:hover {
  color: #E81E25 ;
}

/*footer section*/
  .footer {
        background-color: #EDE823 ;
        color: white;
        padding: 20px 15px;
    }

    .footer-container {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }


    .footer-container h4 {
       text-transform: uppercase;
    }


    .footer-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
    }

    .footer-column {
        flex: 1 1 calc(33.333% - 20px); /* 3 columns in a row */
        min-width: 200px;
    }

    .footer-column ul {
        list-style: none;
        padding: 0;
    }

    .footer-column ul li {
        margin: 5px 0;
    }

    .footer-column ul li a {
        color: white;
        text-decoration: none;
    }

    .footer-column ul li a:hover {
        text-decoration: none;
        color: #E81E25  ;
    }

    .social-icons a {
        margin-right: 25%;
        font-size: 30px;
        color: white;
        text-decoration: none;
    }

    .social-icons a:hover {
        color: #FFF200  ;
    }

    .footer-bottom {
        text-align: center;
        background-color: #3C2415;
        padding: 10px 0;
    }

    /* Mobile View */
    @media (max-width: 768px) {
        .footer-row {
            flex-direction: column;
        }

        .footer-column {
            flex: 1 1 100%; /* Full width on mobile */
        }
    }


   /* add section*/
  /* Sehemu ya matangazo */
.ads {
  width: 100%; /* Inachukua upana wote wa kolamu */
  margin: 20px 0; /* Mbali kidogo kutoka kwenye maudhui mengine */
}

.ads img {
  width: 100%; /* Inafanya picha kuchukua upana wote wa div */
  height: auto; /* Hakikisha urefu unalingana na upana */
  display: block; /* Ondoa nafasi ya ziada chini ya picha */
  margin: 0 auto; /* Kati picha kwenye screen */
}

/*admission form*/
 .form-container {
        background-color: #ffffff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        width: 100%;
        max-width: 600px;
        margin: 20px auto;
    }

    .form-container h2 {
        margin-bottom: 20px;
        text-align: center;
        color: #333;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
        color: #555;
    }

    .form-group input,
    .form-group select {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 14px;
    }

    .form-group input[type="radio"] {
        width: auto;
        margin-right: 5px;
    }

    .form-group input[type="file"] {
        padding: 5px;
    }

    .form-group .radio-group {
        display: flex;
        gap: 15px;
    }

    button {
        width: 100%;
        padding: 10px;
        background-color: #E81E25 ;
        color: #fff;
        font-size: 16px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

    button:hover {
        background-color: #EDE823 ;
    }


  /*  contact form*/
  .contact-container {
            display: flex;
            flex-wrap: wrap;
            max-width: 1200px;
            margin: 50px auto;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

        }
        .contact-left, .contact-right {
            padding: 20px;
            box-sizing: border-box;
        }
        .contact-left {
            flex: 1;
            background-color: #E81E25 ;
            color: #ffffff;
        }
         .contact-left h3 {
            margin-bottom: 20px;
            text-align: center;
        }
        .contact-left p {
            margin: 10px 0;
            display: flex;
            align-items: center;
        }
        .contact-left p strong {
            margin-right: 10px;
        }
        .contact-left i {
            margin-right: 10px;
            color: #FFF200  ;
        }
        /*.contact-left h3 {
            margin-bottom: 20px;
        }
        .contact-left p {
            margin: 10px 0;
        }*/
        .contact-right {
            flex: 2;
           /* background-color: #259C48;*/
            color: #ffffff;
        }
        .contact-right form {
            display: flex;
            flex-direction: column;
        }
        .contact-right label {
            margin: 10px 0 5px;
            font-weight: bold;
        }
        .contact-right input, .contact-right textarea, .contact-right button {
            width: 100%;
            padding: 10px;
            margin-bottom: 20px;
            border-top: none;
            border-left: none;
            border-right: none;
            border-bottom: 2px #E81E25  solid ;
            border-radius: 5px;
            font-size: 16px;
        }
        .contact-right input, .contact-right textarea {
          /*  border: 2PX #259C48 solid;*/
            background-color: #ffffff;
            color: #333;
        }

          .contact-right input:focus, .contact-right textarea:focus {
            border: 2px solid #E81E25 ;
            outline: none;
        }

        .contact-right button {
            background-color: #E81E25 ;
            color: #ffffff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .contact-right button i {
            margin-left: 10px;
            color: white;
        }
/*map css*/
          .map-container {
            width: 100%;
            margin-top: 20px;
            background-color: #ffffff;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            overflow: hidden;
        }
        .map-container iframe {
            width: 100%;
            height: 400px;
            border: none;
        }
       /*  .map-container {
            width: 100%;
            margin-top: 20px;
        }
        .map-container iframe {
            width: 100%;
            height: 400px;
            border: none;
        }*/


      /*  media center css*/
       .gallery-container {
            max-width: 1200px;
            margin: 20px auto;
            padding: 20px;
            background-color: ;
            border-radius: 8px;
        }
        .gallery-row {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            justify-content: center;
        }
        .gallery-card {
            width: calc(25% - 20px);
            border: none;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        .gallery-card img {
            width: 100%;
            height: auto;
            cursor: pointer;
        }
        .gallery-card .card-body {
            text-align: center;
            padding: 10px;
        }
        .gallery-card .card-title {
            font-size: 16px;
            color: #E81E25  ;
        }
        .pagination {
            display: flex;
            justify-content: center;
            padding: 10px 0;
        }
        .pagination a {
            margin: 0 5px;
            padding: 8px 12px;
            text-decoration: none;
            color: #FFF200;
            background-color: #E81E25 ;
            border-radius: 4px;
        }
        .pagination a:hover {
            background-color: #FFF200;
            color: #259C48;
        }

        .gallery-card video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

/*COURSES CSS*/

        .course-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            padding: 20px;
        }
        .course-card {
            background-color: ;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            text-align: center;
        }
        .course-card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }
        .course-card h3 {
            margin: 10px 0;
            color: #E81E25 ;
        }
        .course-card p {
            margin: 5px 0;
            color: white;
        }
        .course-card a {
            display: inline-block;
            margin: 10px 0;
            padding: 10px 20px;
            background-color: #E81E25 ;
            color: #fff;
            text-decoration: none;
            border-radius: 5px;
        }
        .course-card a:hover {
            background-color: #EDE823 ;
        }


        .course-details {
            max-width: 800px;
            margin: 50px auto;
            padding: 20px;
           /* background-color: #;*/
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        .course-details img {
            width: 100%;
            height: auto;
            border-radius: 10px;
            margin-bottom: 20px;
        }
        .course-details h1 {
            color: #E81E25 ;
        }
        .course-details p {
            margin: 10px 0;
            line-height: 1.6;
        }
        .criteria {
            margin-top: 20px;
            padding: 10px;
            background-color: #E81E25 ;
            color: floralwhite;
            border-radius: 5px;
        }


       /* college  calendar css*/
         .calendar-container {
            margin: 50px auto;
            max-width: 1200px;
        }
        .table-container {
            background-color: #FFF200;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        .table-container h2 {
            color: #259C48;
        }
        .calendar {
            background-color: #259C48;
            color: #fff;
            border-radius: 10px;
            padding: 20px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        .calendar h2 {
            color: #FFF200;
        }
   
  /* COLLEGE ALUMNI CSS*/
   .alumni-container {
            max-width: 1200px;
            margin: 50px auto;
            padding: 20px;
        }
        .alumni-header {
            text-align: center;
            margin-bottom: 30px;
        }
        .alumni-header h1 {
            color: #259C48;
        }
        .alumni-header p {
            color: #555;
        }
        .alumni-card {
            background-color: #FFF200;
            border: none;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }
        .alumni-card img {
            width: 100%;
            height: 250px;
            object-fit: cover;
        }
        .alumni-card .card-body {
            padding: 15px;
            background-color: #259C48;
            color: #fff;
        }
        .alumni-card .card-body h5 {
            margin-bottom: 10px;
        }
        .alumni-card .card-body p {
            margin-bottom: 5px;
        }

        /*FEE STRUCTURE CSS*/
          .container-fee {
            margin-top: 50px;
            max-width: 900px;
        }
        .heading {
            text-align: center;
            margin-bottom: 30px;
        }
        .heading h1 {
            color: #259C48;
        }
        .card-fee {
            background-color: #FFF200;
            border: none;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
        }
        .card-body-fee {
            background-color: #259C48;
            color: #fff;
            padding: 20px;
            border-radius: 0 0 10px 10px;
        }
        .btn-download {
            background-color: #259C48;
            color: #FFF200;
            font-weight: bold;
        }
        .btn-download:hover {
            background-color: #1E7A3D;
            color: #ffffff;
        }
        #feebtn{
          color: white;
          background-color: #FFF200 ;
        }

        #feebtn:hover{
          color: white;
        }