*{
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

body{
    font-family: montserrat;
    height: 100vh;
    background-size: cover;
    background-position: center;
}

#slider{
    overflow: hidden;
}

#slider figure{
    position: relative;
    width: 500%;
    margin: 0;
    left: 0;
    animation: 20s slider infinite;
}

#slider figure img{
    width: 20%;
    float: left;
}

@keyframes slider{
    0%{
        left: 0;
    }
    20%{
        left: 0;
    }
    25%{
        left: -100%;
    }
    45%{
        left: -100%;
    }
    50%{
        left: -200%;
    }
    70%{
        left: -200%;
    }
    75%{
        left: -300%;
    }
    95%{
        left: -300%;
    }
    100%{
        left: -400%;
    }
}

li{
    list-style: none;
}
  
a{
    text-decoration: none;
    color: black;
    font-size: 1rem;
}
  
a:hover{
    color: rgb(139, 101, 3);
}

header{
    position: relative;
    padding: 0 2rem;
}
  
.navbar{
    width: 100%;
    height: 60px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
  
.navbar .logo {
   font-size: 1.5rem;
   font-weight: bold;
   transform: rotate(-90deg);
   margin: 1rem;
}
  
.navbar .links{
    display: flex;
    gap: 2rem;
}
  
.navbar .toggle-btn{
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}
  
.action-btn{
    background-color: rgb(139, 101, 3);
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    outline: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
}
  
.action-btn:hover{
    scale: 1.05;
    color: #fff;
}
  
.action-btn:active{
    scale: 0.95;
}
  
.dropdown-menu{
    display: none;
    position: static;
    right: 2rem;
    top: 60px;
    height: 0;
    width: 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    overflow: hidden;
    transition: height .2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
  
.dropdown-menu.open{
    height: 300px;
}
  
.dropdown-menu li{
    padding: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
  
.dropdown-menu .action-btn{
    width: 100%;
    display: flex;
    justify-content: center;
}
  
  
section#hero{
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
  
#hero h1{
    font-size: 4rem;
    margin: 1rem;
}


.container{
    max-width: 1170px;
    margin: auto;
    padding: 0 15px;
}

.section-title{
    text-align: center;
    margin-bottom: 15px;
    padding: 20px;
    font-size: 35px;
    font-weight: bold;
}

.section-title .title{
    display: inline-block;
    font-size: large;
    text-transform: capitalize;
    padding: 0 40px;
    position: relative;
}

.section-title .title::before,
.section-title .title::after{
    content: '';
    position: absolute;
    height: 1px;
    width: 30px;
    background-color: black;
    top: 50%;
    transform: translateY(-50%);
}

.section-title .title::before{
    left: 0;
}

.section-title .title::after{
    right: 0;
}

p{
    margin-bottom: 15px;
    font-size: 23px;
}


.services .boxes .box{
    margin: 10px 20px;
    max-width: calc(100% / 3 - 50px);
    border-radius: 12px;
    padding: 30px 10px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.12);
    cursor: default;
}

.programs .boxes{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.programs .boxes .box{
    margin: 10px 20px;
    max-width: calc(100% / 3 - 50px);
    border-radius: 20px;
    padding: 30px 10px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.12);
    cursor: default;
    background: url(bgp3.jpg);
}
.enrollment .boxes{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.enrollment .boxes .box{
    margin: 10px 20px;
    max-width: calc(100% / 3 - 50px);
    border-radius: 20px;
    padding: 30px 10px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.12);
    cursor: default;
    background: url(bgp2.jpg);
}


.scholar .boxes{
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.scholar .boxes .box{
    margin: 15px 25px;
    max-width: calc(100% / 2 - 50px);
    border-radius: 11px;
    padding: 30px 10px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.12);
    cursor: auto;
}



.Courses .crs {
    border: 1px solid black;
    border-radius: 12px;
    background-color:  goldenrod;
    justify-content: center;
    font-size: 20px;
    padding-bottom: 9px;
    padding-top: 9px;
    width: 30%;
    margin-top: 50px;
}
.Courses{
    text-align: center;
    margin-top: 12px;
    color: rgba(0, 38, 109, 0.836);
    font-weight: bold;
}

h6{
    color: rgba(0, 128, 0, 0.616);
    font-family: monospace;
    font-size: 10px;
}

.about .section-title{
    text-align: left;
    margin: 0 0 -1px;
}

.about-img,
.about-text{
    grid-column: span 6;
    align-self: center;
}

.about-img .img-box{
    max-width: 400px;
    margin: 5px;
    padding: 15px;
    box-shadow: rgb(17, 14, 13);
    position: relative;
}

.about-img .img-box img{
    max-width: 100%;
    display: block;
    margin: auto;
}

.about-img .box{
    height: 125px;
    width: 125px;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-radius: 0 40px;
    padding: 15px;
}

.about-img .box-1{
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
}

.about-img .box span{
    color: white;
    font-weight: bold;
    font-size: 40px;
    margin: 0 0 5px;
    line-height: 1;
}

.about-img.box p{
    font-size: var(--fs-sm);
    text-transform: uppercase;
    color: lightgray;
    margin: 0;
}

.section-padding{
    padding: 5px 0;
}

.section-title{
    text-align: center;
    margin-bottom: 5px;
    align-items: center;
}

.section-title .title .sub-title{
    font-size: 2px;
    padding: 0;
    margin: 0;
}

.section-title .title{
    display: inline-block;
    font-size: 25px;
    font-weight: 400;
    text-transform: capitalize;
    color: var(--main-color);
    margin: 0 0 12px;
    padding: 0 40px;
    position: relative;
    align-items: center;
}

.section-title .title::before,
.section-title .title::after{
    content: '';
    position: absolute;
    height: 1px;
    width: 34px;
    background-color: gray;
    top: 50%;
    transform: translateY(-50%);
}

.section-title .title::before{
    left: 0;
}

.section-title .title::after{
    right: 0;
}

.section-title .sub-title{
    font-size: 20px;
    
}


.grid{
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 100px;
}

.btn{
    display: inline-block;
    padding: 10px 28px;
    background-color: rgb(139, 101, 3); 
    color: whitesmoke;
    font-weight: 500;
    font-size: var(--fs-md);
    text-transform: capitalize;
    line-height: 1.5;
    font-family: inherit;
    border: 2px solid transparent;
    border-radius: 30px;
    vertical-align: middle;
    user-select: none;
    transition: all 0.3s ease;

}

.btn:hover{
    background-color: transparent;
    color: rgba(0, 38, 109, 0.836);
    border-color: black;
}

.img-container{
    position: relative;
    border: 1px;
    
}

.img-container:hover img{
    filter: blur(5px);
}

.text{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    font-size: 27px;
    color: white;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
}

.counters{
    padding: 3em 2em;
    color: silver;
    text-align: center;
}

.counters > div{
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4em 2em;
}

.counter h1{
    font-size: 3em;
    margin-bottom: 0.5em;
}

.counter{
    position: relative;
}

/**
.counter:not(:last-child)::before{
    content: '';
    background: #fff;
    position: absolute;
    width: 1px;
    height: 3em;
    top: 50%;
    transform: translateY(-50%);
    right: -1em;
}
**/

.wrapper{
    max-width: 1200px;
    position: relative;
}

.wrapper i{
    top: 50%;
    height: 46px;
    width: 46px;
    position: absolute;
    font-size: 1.2rem;
    cursor: pointer;
    text-align: center;
    line-height: 46px;
    background: goldenrod;
    border-radius: 50%;
    transform: translateY(-50%);
}

.wrapper i:first-child{
    left: -23px;
    display: none;
}

.wrapper i:last-child{
    right: -23px;
}

.wrapper .carousel{
    font-size: 0px;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
}

.carousel.dragging{
    cursor: grab;
    scroll-behavior: auto;
}

.carousel.dragging img{
    pointer-events: none;
}

.carousel img{
    height: 340px;
    object-fit: cover;
    margin-left: 14px;
    width: calc(100% / 3);
    border-radius: 15px;
}

.carousel img:first-child{
    margin-left: 0px;
}

.footer{
    padding: 50px 0;
    background-color: rgba(0, 38, 109, 0.836);
}

.footer h3{
    color: white;
    font-weight: 500;
    font-size: 20px;
    margin: 0 0 10px;
    text-transform: capitalize;
}

.footer p{
    font-size: 16px;
}

.footer .social-links a{
    height: 30px;
    width: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: black;
}
.footer .nav1 li a{
    color: white;
    font-size: 17px;
}

.footer .nav1 li a:hover{
    background-color: black;
    border-color: initial;
}

@media screen and (max-width: 900px) and (min-width: 501px) {
    .counters > div{
        grid-template-columns: 1fr 1fr;
    }
    /**
    .counter:nth-child(2)::before{
        display: none;
    }**/

    .carousel img{
        width: calc(100% / 2);
    }
}

@media screen and (max-width: 550px){
    .counters > div{
        grid-template-columns: 1fr;
        row-gap: 5em;
    }
    /**
    .counter:not(:last-child)::before{
        width: 90%;
        height: 2px;
        top: initial;
        right: initial;
        bottom: -5em;
        left: 50%;
        transform: translateX(-50%);
    }**/

    .carousel img{
        width: 100%;
        height: 100%;
        border-radius: 20px;
    }
}

@media (max-width: 992px){
    .navbar .links,
    .navbar .action-btn{
       display: none;
       width: 100%;
    }

    .navbar .toggle-btn{
        display: block;
        color: black;
    }

    .dropdown-menu{
        display: block;
        width: 100%;
    }

    .about-img .box{
        top: 100%;
        left: 100%;
    }

    .services-item .img-box{
        height: 100px;
        width: 100px;
    }

    h6.sub-title{
        color: rgba(0, 128, 0, 0.651);
        font-family: monospace;
        font-size: 10px;
        font-weight: 300;
        font-size: x-small;
    }

    .section-padding{
        padding: 4px 0;
        width: 100%;
        justify-content: right;
        
    }
    .grid{
        gap: 30px 15px;
    }
}
  
  @media (max-width: 600px){
    .dropdown-menu{
        left: 2rem;
        width: unset;
    }

    .grid{
        gap: 30px 15px;
    }
    
}  

@media  (max-width: 300px){
    .btn-wrap{
        padding: auto;
    }
    .grid{
        gap: 15px 2px;
    }

    .section-title .title{
        text-align: center;
    }

    .btn:hover{
        background-color: transparent;
        color: rgba(0, 38, 109, 0.836);
        border-color: black;
    }
}

@media (max-width: 767px){
   
   p{
    font-size: 15px;
   }

   h2{
    font-size: 15px;
    color: rgba(0, 38, 109, 0.836);
   }
   h6{
    font-size: 15px;
   }
    .services .boxes{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        max-width: 100%;
    }
    
    .services .boxes .box{
        margin: 10px 20px;
        max-width: calc(100% / 3 - 50px);
        border-radius: 12px;
        padding: 30px 10px;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.12);
        cursor: default;
        max-width: fit-content;
    }
    
    .enrollment .boxes{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        max-width: fit-content;
    }
    
    .enrollment .boxes .box{
        margin: 10px 20px;
        max-width: calc(100% / 3 - 50px);
        border-radius: 20px;
        padding: 30px 10px;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.12);
        cursor: default;
        max-width: fit-content;
        background-color: white;
    }
    
    .programs .boxes{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        max-width: fit-content;
    }
    
    .programs .boxes .box{
        margin: 15px 25px;
        max-width: calc(100% / 2 - 50px);
        border-radius: 12px;
        padding: 30px 10px;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.12);
        cursor: default;
        background-color: aliceblue;
        max-width: fit-content;
    }
    
    .scholar .boxes{
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        max-width: fit-content;
    }
    
    .scholar .boxes .box{
        margin: 15px 25px;
        max-width: calc(100% / 2 - 50px);
        border-radius: 11px;
        padding: 30px 10px;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.12);
        cursor: auto;
        max-width: fit-content;
    }

   

    .boxes{
        max-width: fit-content;
    }

    .about-img .box{
        top: 100%;
        left: 50%;
    }

 
    

    .about-text, .about-img{
        grid-column: span 12;
    }
    .about-text{
        order: -1;
    }
    .about-img .box{
        height: 100px;
        width: 100px;
    }
    .services-item{
        grid-column: span 6;
    }

    .grid{
        gap: 30px 15px;
    }
    .btn:hover{
        background-color: transparent;
        color: rgba(0, 38, 109, 0.836);
        border-color: black;
    }
    
}

@media (max-width: 994px){
    .grid{
        gap: 30px 15px;
    }
    .btn:hover{
        background-color: transparent;
        color: rgba(0, 38, 109, 0.836);
        border-color: black;
    }
}

@media (max-width: 1024px){
    .grid{
        gap: 40px 20px;
    }
    .btn:hover{
        background-color: transparent;
        color: rgba(0, 38, 109, 0.836);
        border-color: black;
    }
}

@media (max-width: 1440px){
    .grid{
        gap: 70px 60pxpx;
    }
    .btn:hover{
        background-color: transparent;
        color: rgba(0, 38, 109, 0.836);
        border-color: black;
    }
}

@media (max-width: 858px){
    
    .boxes{
        max-width: fit-content;
    }

    .services .boxes{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        max-width: 100%;
    }
    
    .services .boxes .box{
        margin: 10px 20px;
        max-width: calc(100% / 3 - 50px);
        border-radius: 12px;
        padding: 30px 10px;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.12);
        cursor: default;
        max-width: fit-content;
    }
    
    .enrollment .boxes{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        max-width: fit-content;
    }
    
    .enrollment .boxes .box{
        margin: 10px 20px;
        max-width: calc(100% / 3 - 50px);
        border-radius: 20px;
        padding: 30px 10px;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.12);
        cursor: default;
        max-width: fit-content;
        background-color: white;
    }
    
    .programs .boxes{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        max-width: fit-content;
        width: 100%;
    }
    
    .programs .boxes .box{
        margin: 15px 25px;
        max-width: calc(100% / 2 - 50px);
        border-radius: 12px;
        padding: 30px 15px;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.12);
        cursor: default;
        background-color: aliceblue;
        max-width: fit-content;   
    }
    
    .scholar .boxes{
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        max-width: fit-content;
    }
    
    .scholar .boxes .box{
        margin: 15px 25px;
        max-width: calc(100% / 2 - 50px);
        border-radius: 11px;
        padding: 30px 10px;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.12);
        cursor: auto;
        max-width: fit-content;
    }

    .boxes{
        max-width: fit-content;
    }

    .services .boxes{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        max-width: 100%;
    }
    
    .services .boxes .box{
        margin: 10px 20px;
        max-width: calc(100% / 3 - 50px);
        border-radius: 12px;
        padding: 30px 10px;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.12);
        cursor: default;
        max-width: fit-content;
    }
    
    .enrollment .boxes{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        max-width: fit-content;
    }
    
    .enrollment .boxes .box{
        margin: 10px 20px;
        max-width: calc(100% / 3 - 50px);
        border-radius: 20px;
        padding: 30px 10px;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.12);
        cursor: default;
        max-width: fit-content;
        background-color: white;
    }
    
    .programs .boxes{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        max-width: fit-content;
        width: 100%;
    }
    
    .programs .boxes .box{
        margin: 15px 25px;
        max-width: calc(100% / 2 - 50px);
        border-radius: 12px;
        padding: 30px 15px;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.12);
        cursor: default;
        background-color: aliceblue;
        width: 1000px;
        height: 210px;
        box-sizing: content-box;   
        max-width: fit-content;
    }
    
    .scholar .boxes{
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        max-width: fit-content;
    }
    
    .scholar .boxes .box{
        margin: 15px 25px;
        max-width: calc(100% / 2 - 50px);
        border-radius: 11px;
        padding: 30px 10px;
        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.12);
        cursor: auto;
        max-width: fit-content;
    }

    .btn:hover{
        background-color: transparent;
        color: rgba(0, 38, 109, 0.836);
        border-color: black;
    }
}