*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding-top: 70px;
}
.header{
    min-height: 120vh;
    width: 100%;
}
.container{
    max-width: 1170px;
    margin: auto;
 }
.container-login{
    background: linear-gradient(to right, #f44226, #2ecc71);
}
.navbar{
    height: 90px;
    background: linear-gradient(to right, blue, #f44226, #2ecc71);
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    padding: 10px 20px;

    position: fixed;
    margin: auto;
    top: 0;
    width:100%;
    z-index: 100;
}
nav{
    flex: 1;
    text-align: right;
}
nav ul{
    display: inline-flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav .btn{
    text-decoration: none;
    display: inline-block;
    background: #ff523b;
    color: #fff;
    padding: 10px 15px;
    margin: 0; 
    border-radius: 5px; 
    transition: 0.5s;
    align-self: center;
    
}
nav ul li{
    align-content: center;
    display: block;
    margin-right: 20px;
}




/*-------- media query for menu ---------*/

@media only screen and (max-width: 800px) {
    nav {
        text-align: right; 
    }
    
    nav ul{
        display: block; 
        position: absolute;
        top: 100px; 
        left: 0;
        width: 100%;
        overflow: hidden;
        transition: max-height 0.5s;
        max-height: 0px; 
        
        z-index: 10;
        background-color: #f8f8f8; /* Add background for visibility on mobile */
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    nav ul li {
        display: block;
        margin-right: 0;
        margin-top: 0;
        margin-bottom: 0;
        padding: 10px 20px;
        text-align: left; /* Align text to the left for better look */
        border-bottom: 1px solid #eee; /* Separator for list items */
    }
    
    /* Mobile Search Bar adjustments */
    .search-box {
        margin: 10px 0; /* Adjust margin for stacked layout */
        width: 100%; /* Take full width */
        border: none; /* Remove border on mobile menu */
        border-radius: 0;
        box-shadow: none;
        background: transparent; /* No background in the expanded menu */
        padding: 0; 
    }

    .search-box input[type="text"] {
        width: 80%;
        padding: 10px 15px;
        border: 1px solid #ccc;
        border-radius: 25px;
        background: #fff;
    }

    .search-box input[type="text"]:focus {
        width: 80%; 
    }

    .search-icon {
        margin-left: 15px;
    }

    /* ... rest of the media query ... */
}


a{
    text-decoration: none;
    color: black;
}
p{
    font-weight: 400px;
    color: black;
}
.container{
    max-width: 1300px;
    margin: auto;
    padding-left: 25px;
    padding-right: 25px;
}

.menu-icon{
    width: 28px;
    margin-left: 20px;
    display: none;
    
}

.btn{
    text-decoration: none;
    display: inline-block;
    background: #ff523b;
    color: #fff;
    padding: 8px 30px;
    margin: 30px 0;
    border-radius: 30px;
    transition: 0.5s;
} 

/*-------- media query for menu ---------*/

@media only screen and (max-width: 800px) {
    nav {
        text-align: right; 
    }
    
    nav ul{
        display: block; 
        position: absolute;
        top: 100px; 
        left: 0;
        width: 100%;
        overflow: hidden;
        transition: max-height 0.5s;
        max-height: 0px; 
        
        z-index: 10;
    }

    nav ul li{
        display: block;
        margin-right: 0;
        margin-top: 0;
        margin-bottom: 0;
        padding: 10px 20px; 
    }
    
    
    nav ul li a{
        color: #333; 
        font-weight: normal; 
        font-family: sans-serif; 
        padding: 0; 
    }

   
    nav ul li a.btn {
        background: none;  
        padding: 0; 
        margin: 0;
    }

    .menu-icon{
        display: block;
        cursor: pointer;
    }
}



.header{
    background-image: linear-gradient(rgba(0,0,0,0.20), rgba(0,0,0,0.90)), url(img/maize-1.jpg);
    position: relative;
    background-size: cover;
    background-repeat: repeat;
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.90);
}
.header .row{
    margin-top: 70px;
}

.text-box{
    width: 100%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}
strong{
    font-size: 2em;
    color: aquamarine;
}

.text{
    font-size: 5em;
    letter-spacing: 10px;
    font-family: monospace;
    margin-left: 10%;
    width: 80%;
    border-right: 5px solid;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3s steps(18)infinite, cursor .9s step-end infinite alternate;
}

@keyframes cursor{
    50% { border-color: transparent; }
}

@keyframes typing {
    from { width: 0 }
}

@media (max-width: 650px) {
    .text {
        font-size: 2em;
        letter-spacing: 3px;
        width: 74%;
    }
}


.text-box h1{
    font-size: 40px;
}
.text-box p{
    margin: 10px 0 40px;
    font-size: 14px;
    color: #fff;
}
.hero-btn{
    display: inline-block;
    text-decoration: none;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}
.hero-btn:hover{
    border: 1px solid #f44336;
    background: #f44226;
    transition: 1s;
}
@media(max-width: 700px) {
    .text-box h1{
        font-size: 20px;
    }
    .nav-links ul li{
        display: block;
    }
    .nav-links{
        position: absolute;
        background: #f44226;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }
    nav .fa{
        display: block;
        color: #fff;
        margin: 10px;
        font-size: 22px;
        cursor: pointer;
    }
    .nav-links ul{
        padding: 30px;
    }
}


/* --- New Animal Showcase Section --- */
.animal-showcase {
    padding: 80px 0;
    background-color: #f9f9f9;
}
.animal-showcase .container {
    max-width: 1300px; 
    margin: 0 auto;
    padding-left: 25px;
    padding-right: 25px;
    text-align: center;
}

.section-title {
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: #333;
}
.section-title p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0;
    padding: 0; 
}


.card-grid {
    display: flex;
    justify-content: space-between; 
    gap: 30px;
}

.animal-card {
    flex-basis: 33.333%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-width: 400px; 
}

.animal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.animal-image-container {
    height: 250px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.animal-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.card-title {
    background: linear-gradient(to right, #007bff, #f44226);
    font-size: 1.3rem;
    padding: 15px 10px;
    color: #333;
    font-weight: bold;
}

.description-and-btn {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.description-and-btn p {
    font-size: 1em;
    color: #555;
    margin-bottom: 20px;
    padding: 0; 
}

.read-more-animals {
    background: #ff523b; 
}

@keyframes image-cycle-1 {
    0%, 33.3% { opacity: 1; z-index: 10; } 
    33.4%, 100% { opacity: 0; z-index: 1; }
}

@keyframes image-cycle-2 {
    0%, 33.3% { opacity: 0; z-index: 1; }
    33.4%, 66.6% { opacity: 1; z-index: 10; }
    66.7%, 100% { opacity: 0; z-index: 1; }
}

@keyframes image-cycle-3 {
    0%, 66.6% { opacity: 0; z-index: 1; }
    66.7%, 100% { opacity: 1; z-index: 10; }
}

/* Apply Animation to Elephant Card (Cycle duration: 9s) */
.elephant-card img:nth-child(1) { animation: image-cycle-1 9s infinite 5s;}
.elephant-card img:nth-child(2) { animation: image-cycle-2 9s infinite 5s;}
.elephant-card img:nth-child(3) { animation: image-cycle-3 9s infinite 5s;}

/* Apply Animation to Lion Card (Start 3s later to stagger the rotation) */
.lion-card img:nth-child(1) { animation: image-cycle-1 9s infinite 7s; }
.lion-card img:nth-child(2) { animation: image-cycle-2 9s infinite 7s; }
.lion-card img:nth-child(3) { animation: image-cycle-3 9s infinite 7s; }

/* Apply Animation to Giraffe Card (Start 6s later) */
.giraffe-card img:nth-child(1) { animation: image-cycle-1 9s infinite 12s; }
.giraffe-card img:nth-child(2) { animation: image-cycle-2 9s infinite 12s; }
.giraffe-card img:nth-child(3) { animation: image-cycle-3 9s infinite 12s; }

/* Media Query for smaller screens (stacking cards) */
@media (max-width: 992px) {
    .card-grid {
        flex-direction: column;
        align-items: center;
    }
    .animal-card {
        flex-basis: 90%;
        max-width: 100%; 
        margin-bottom: 20px;
    }
}



/*------- news ------*/
.news-container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.news-header{
    text-align: center;
    margin: 60px 0 40px;
}
.news-header h2{
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #222;
    position: relative;
    display: inline-block;
}
.news-header h2::after{
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 190px;
    height: 3px;
    background: linear-gradient(to right, #f44226, #2ecc71);
}
.news-header p{
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}
.news-grid{
    margin-top: 60px;
    margin-left: 60px;
    margin-right: 60px;
    margin-bottom: 60px;
    display: grid;
    gap: 30px;
   
}
.news-card{
    background: rgb(0, 0, 0, 0.35);
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
   transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover{
    transform: translateY(-10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-image{
    height: 220px;
    width: 100%;
    background-color: #e0e0e0;
    overflow: hidden;
    position: relative;
}
.news-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

@keyframes news-cycle-1 {
    0%, 45% { opacity: 1; z-index: 10; } 
    50%, 100% { opacity: 0; z-index: 1; } 
}

@keyframes news-cycle-2 {
    0%, 45% { opacity: 0; z-index: 1; } 
    50%, 95% { opacity: 1; z-index: 10; } 
    100% { opacity: 0; z-index: 1; }
}

.news-card .img-1 { 
    animation: news-cycle-1 6s infinite; 
}

.news-card .img-2 { 
    animation: news-cycle-2 6s infinite; 
}

.news-card:hover .news-image img{
    transform: scale(1.05);
}
.news-content{
    padding: 25px;
}
.news-date{
    display: inline-block;
    font-size: 0.85rem;
    color: #3498db;
    margin-bottom: 10px;
    font-weight: 600;
}
.news-title{
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.4;
}
.news-excerpt{
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
    
   
    max-height: 5.4em; 
    overflow: hidden;
    text-overflow: ellipsis; 
    display: block; 
    transition: max-height 0.5s ease-out; 
}


.news-excerpt.expanded {
    max-height: 1000px; 
    transition: max-height 1.0s ease-in; 
}


.read-more-toggle {
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    background: #ff523b;
    color: #fff;
    padding: 8px 30px;
    margin-top: 20px;
    border-radius: 30px;
    transition: background-color 0.3s;
}

.read-more-toggle:hover {
    background: #ff2a17;
}

.news-content .btn{
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgb(121, 27, 8);
}

.read-more:hover::after{
  width: 100%;
}

.view-all-container{
    text-align: center;
    margin-bottom: 60px;
}
.view-all-btn{
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(to right, #3498db);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3 ease;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}
.view-all-btn:hover{
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 300);
}

@media (max-width: 768px) {
    .news-header h2{
        font-size: 2rem;
    }
}


p{
    color: black;
    font-size: 14px;
    font-weight: 22px;
    padding: 10px;
}
.row{
    margin: auto;
    align-items: center;
    flex-wrap: wrap;
    display: flex;
    justify-content: space-between;
}

/*------- location ----*/
.location{
    margin: 100px auto;
    border-radius: 10px;
    border-radius: 20px;
}
.map{
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

h1{
    margin-bottom: 60px;
}
iframe{
    width: 80%;
    height: 500px;
    filter: invert(80%);
}

.wards{
    margin: auto;
    width: 1050px;
    background: rgb(0, 0, 0, 0.35);
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
   transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wards .btn{
    text-decoration: none;
    display: inline-block;
    background: #ff523b;
    color: #fff;
    padding: 8px 30px;
    margin: 30px 0;
    border-radius: 30px;
    transition: 0.5s;
} 


/*------ testimonials ------*/

.testimonials{
    height: 50vh;
    width: 80%;
    margin: 100px auto;
    padding-top: 100px;
    text-align: center;
    overflow: hidden;
}
.testimonial .row{
    position: relative;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 50px;
    background-color: #2ecc71;
}
.testimonial-col{
    border-radius: 10px;
    text-align: left;
    background: #fff3f3;
    padding: 25px;
    cursor: pointer;
    display: flex;
    margin-bottom: 1px;

    position: absolute;
    width: 44%;
    max-width: 500px;
    opacity: 0;
    transition: none;
    animation: testimonial-cycle 15s infinite;
}
.testimonials .row .testimonial-col:nth-child(2) {
    animation-delay: 7.5s;
}


@keyframes testimonial-cycle {
    
    0% {
        transform: translateX(0);
        opacity: 0;
    }
    
    5% {
        transform: translateX(100%);
        opacity: 1;
        z-index: 10;
    }
    
    
    45% {
        transform: translateX(0);
        opacity: 1;
        z-index: 10;
    }
    
    
    50% {
        transform: translateX(-100%);
        opacity: 0;
        z-index: 1;
    }

    
    99% {
        transform: translateX(-100%);
        opacity: 0;
    }
    

    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}


.testimonial-col img{
    height: 60px;
    margin-left: 5px;
    margin-right: 30px;
    border-radius: 50%;
}
.testimonial-col p{
    padding: 0;
}
.testimonial-col h2{
    margin-top: 15px;
    text-align: left;
}
.testimonial-col .fa-star{
    color: #f44336;
}
@media(max-width: 700px){
    .testimonial-col img{
        margin-left: 0px;
        margin-right: 5px;
    }
   
    .testimonial-col {
        width: 80%;
    }
}


p{
    color: black;
    font-size: 14px;
    font-weight: 22px;
    padding: 10px;
}
.row{
    margin: auto;
    align-items: center;
    flex-wrap: wrap;
    display: flex;
    justify-content: space-between;
}


/*----- vist us -------*/
.vtu{
    margin: 100px auto;
    width: 80%;
    background-image: linear-gradient(rgb(0, 0, 0, 0.7),rgb(0, 0, 0, 0.7)), url(img/kids.jpg);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;
}
.vtu h1{
    color: #fff;
    margin-bottom: 40px;
    padding: 0;
}
@media(max-width: 700px){
    .vtu h1{
      font-size: 24px;
    }
}

/*----- about -------*/
.about{
    padding: 60px 20px;
    background-color: #f0f0f5;
    margin-top: 20px;
    box-shadow: 0 0 25px 0px rgba(0, 0, 0, 0.15); 
    text-align: center;
}

.about h4{
    font-size: 2.5em;
    color: #f44226; 
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    font-weight: 900;
}

.about h4::after {
    content: '';
    display: block;
    width: 50%;
    height: 4px;
    background: linear-gradient(to right, #f44226, #2ecc71);
    margin: 8px auto 0;
    border-radius: 2px;
}

.about-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap; 
    text-align: left;
    gap: 30px;
    padding-top: 20px;
}

.about-content-wrapper p {
    flex: 1 1 45%; 
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 900px) {
    .about-content-wrapper p {
        flex: 1 1 100%;
    }
}

.about .icons {
    margin-top: 30px;
}

.about .icons i{
    color: #f44226;
    font-size: 30px;
    margin: 0 15px;
    cursor: pointer;
    transition: color 0.3s;
}

.about .icons i:hover {
    color: #2ecc71; 
}
/*----- login ------*/

.login{
    font-family: Arial, sans-serif;
    background-color: #f4f4f9; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    height: 100vh; 
    margin: 100px 0;
}

.header-login{
    background: #3498db;
    min-height: 7vh;
    width: 100%;
    background-position: cover;
    background-size: cover;
    position: relative;
}

.login-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
    width: 350px;
    text-align: center; 
}
.login-form h2 {
    margin-bottom: 30px;
    color: #343a40;
    font-size: 1.8em;
}
.input-group {
    text-align: left; 
    margin-bottom: 20px;
}
.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 0.9em;
}
.input-group input[type="text"],
.input-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.3s;
}
.input-group input:focus {
    border-color: #007bff;
    outline: none;
}
.login-form button {
    width: 100%;
    padding: 12px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.1s ease;
}
.login-form button:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}
.action-links {
    text-align: right; 
    margin-bottom: 20px;
}

.forgot-link, .signup-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s;
}
.forgot-link:hover, .signup-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.signup-area {
    margin-top: 20px;
    font-size: 0.95em;
    color: #6c757d;
}
.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #adb5bd;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e9ecef; 
}

.separator:not(:empty)::before {
    margin-right: .5em;
}

.separator:not(:empty)::after {
    margin-left: .5em;
}

/*----- footer -------*/
footer .footer-container{
    background-color: black;
}
.footer-row{
    display: flex;
    justify-content: space-between;
    padding: 40px 100px;
}
.footer-col ul{
    list-style: none;
}
.footer-col h5{
    color: white;
    margin-bottom: 25px;
    font-size: 25px;
    position: relative;
    font-family: 'ubuntu', sans-serif;
}
.footer-col h5::before{
    content: '';
    width: 70px;
    height: 2px;
    position: absolute;
    background-color: #f44226;
    bottom: -10px;
}
.footer-col ul li{
    padding: 10px 0;
}
.footer-col ul li a{
    color: white;
    text-decoration: none;
    font-size: 16px;
    opacity: 8.7;
    transition: 0.5s;
}
.footer-col ul li a:hover{
    opacity: 1;
}
.footer-col input{
    border-radius: 20px;
    border: none;
    width: 250px;
    height: 45px;
    display: block;
    padding-left: 20px;
    margin: 14px 0;
}
.footer-col .inputSubmit{
    padding: 0px 20px;
    background-color: #f44226;
    border: none;
    color: white;
}
.col p{
    color: white;
}
.footer-row hr{
    opacity: 8.7;
}
.footer-row .socialIcons i{
    display: inline-block;
    color: white;
    font-size: 20px;
    margin: 0 15px;
    transition: 0.5s;
}
.footer-row .socialIcons i:hover{
    color: #a91a64;
}

@media (max-width: 600px){
     footer .footer-row{
        flex-direction: column;
        padding: 20px 30px;
     }
     footer .footer-col ul{
        margin-left: 20px;
        margin-bottom: 20px;
     }
     .footer-cil input{
        width: 100%;
     }
}

