*{
    margin: 0;
    padding: 0;
}
.header{
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgb(4,9,30,0.7),rgb(4,9,30,0.7)),url(banner.png);
    background-position: center;
    background-size: cover;
    position: relative;
}
nav{
    display: flex;
    padding-right: 400px;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
}
nav img{
    width: 150px;
    
}
.btn{
    width: 70px;
    
    float:right;
}

.navlinks{
    flex: 1;
    text-align: right;
}
.navlinks ul li{
    list-style: none;
    display: inline-block;
    padding: 6px 12px;
    position: relative;
}
.navlinks ul li a{
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
   
   margin-top: 300px;
    
}
.navlinks ul li::after{
    content: '';
    width: 0%;
    height: 2px;
    background: #f44336;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.navlinks ul li:hover::after{
    width: 100%;
}
.textbox{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.textbox h1{
    font-size: 60px;
    padding-top: 2px;
}
.textbox p{
    margin: 10px 0 40px;
    font-size: 14px;
    color: #fff;
}
.herobtn{
    display: inline-block;
    text-decoration: none;
    color: white;
    border: 1px solid #fff;
    padding: 12px 34px;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}
.herobtn:hover{
    border: 1px solid #f44336;
    background: #f44336;
    transition: 0.3s;
}
nav.fa{
    display: none;
}

/* Course */
.course{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;

}
.course h1{
    /* color: #f44336; */
    font-size: 36px;
    font-weight: 600;
}
.course p{
    color:#777;
    font-weight: 300;
    font-size: 14px;
    line-height: 22px;
    padding: 10px;


}

.row{
    margin-top: 5%;
    display: flex;
    justify-content: space-between;
}
.coursecol{
    flex-basis: 31%;
    background: #ead8d8;
    border-radius: 10px;
    margin-bottom: 5%;
    padding: 20px 12px;
    box-sizing: border-box;
    transition: 0.5s;
}

.coursecol h3{
    text-align: center;
    font-weight: 600;
    margin: 10px;
}
.coursecol:hover{
    box-shadow: 0 0 20px 0px rgba(0,0,0,0.2);
}
/* Campus */
.campus{
    width: 80%;
    margin:auto;
    text-align: center;
    padding-top: 50px;
}
.colum{
    flex-basis: 32%;
    border-radius: 10px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.colum img{
    width: 100%;
    display: block;
}
.layer{
    background: transparent;
    height: 100%;
    width: 100%;
    position:absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}
.layer:hover{
    /* background: rgba(226,0,0,0.7); */
    background: rgba(39, 80, 244, 0.2);
    /* background: rgba(203, 203, 233); */

}
.layer h3{
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: 26px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    transition: 0.5s;
}
.layer:hover h3{
    bottom: 49%;
    opacity: 1;
}
/* Facilities */
.fac{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 108px;
}
.fcol{
    flex-basis: 31%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
}
.fcol img{
    width: 100%;
    border-radius: 10px;


}
.fcol p{
    text-align: justify;
    padding: 0;
}
.fcol h3{
    text-align: center;
    margin-top: 16px;
    margin-bottom: 10px;
    /* text-align: left; */
}
/* test */
.testm{
    width:80%;
    margin: auto;
    padding-top: 100px;
    text-align: center;

}

.tcol{
    flex-basis: 44%;
    border-radius: 10px;
    margin-bottom: 5%;
    text-align: left;
    background: #ead8d8;;
    /* background: #ede9d2; */
    padding: 25px;
    cursor: pointer;
    display: flex;
}
.tcol img{
    height: 40px;
    margin-left: 5px;
    margin-right: 30px;
    border-radius: 50%;
    
}
.tcol p{
    padding: 0;

}
.tcol h3{
    margin-top: 15px;
    text-align: left;
}
.tcol .b{
    color: #f44336;
}
/* cta */
.cta{
    margin: 100px auto;
    background-image: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),url(banner2.jpg);
    background-position: center;
    background-size: cover;
    border-radius: 10px;
    text-align: center;
    padding: 100px 0;

}
.cta h1{
    color: #fff;
    margin-bottom: 40px;
    padding: 0;

}

/* footer */
.footer{
    width:100%;
    text-align: center;
    padding: 30px, 0;
}
.footer h4{
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600;
}

.icons a{
   
    color:#f44336;
    margin: 0 13px;
    cursor: pointer;
    
}
.icons i{
    margin-top: 10px;
}
/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Adjust navigation bar for smaller screens */
    nav {
        /* flex-direction: column;
        align-items: flex-start;
        padding: 10px; */
        font-size: 0;
        display: none;
    }

    .navlinks ul {
        /* display: flex;
        flex-direction: column;
        align-items: flex-start; */
        display: none
    }

    .navlinks ul li {
        /* display: block;
        padding: 10px 0; */
        display: none;
    }

    .textbox h1 {
        font-size: 36px;
    }

    .textbox p {
        font-size: 12px;
    }

    .herobtn {
        font-size: 12px;
        padding: 10px 24px;
    }

    /* Adjust course columns */
    .course .row, .campus .row, .fac .row, .testm .row {
        flex-direction: column;
    }

    .coursecol, .colum, .fcol, .tcol {
        flex-basis: 100%;
        margin-bottom: 20px;
    }

    /* Adjust campus images */
    .colum img {
        height: auto;
    }

    /* Footer adjustments */
    .footer {
        padding: 20px;
    }

    .footer .icons a {
        margin: 0 8px;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    nav {
        align-items: center;
    }

    nav img {
        width: 120px;
    }

    .textbox h1 {
        font-size: 28px;
    }

    .textbox p {
        font-size: 10px;
    }

    .herobtn {
        padding: 8px 20px;
        font-size: 10px;
    }

    .course h1, .campus h1, .fac h1, .testm h1 {
        font-size: 24px;
    }

    .course p, .campus p, .fac p, .testm p {
        font-size: 12px;
    }

    .cta h1 {
        font-size: 18px;
        margin-bottom: 20px;
    }
}
