*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

body{
    background:#f5f7fa;
}

/* Navbar */

nav{
    background:#003366;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 8%;
}

.logo{
    color:white;
    font-size:28px;
    font-weight:bold;
}

nav ul{
    display:flex;
    list-style:none;
}

nav ul li{
    margin-left:25px;
}

nav ul li a{
    text-decoration:none;
    color:white;
    font-weight:500;
    transition:0.3s;
}

nav ul li a:hover{
    color:#ff9800;
}

/* Hero */

/* HERO SLIDER */

.hero-slider{
    position:relative;
    height:90vh;
    overflow:hidden;
    
}

.slides{
    width:100%;
    height:100%;
    position:relative;
}

.slide{
    position:absolute;
    width:100%;
    height:100%;
    opacity:0;
    transition:opacity 1s ease-in-out;
}

.slide.active{
    opacity:1;
}

.slide img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.overlay{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;

    background:
    rgba(0,0,0,.5);

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

    text-align:center;
    color:white;
    padding:20px;
}

.overlay h1{
    font-size:55px;
    margin-bottom:20px;
}

.overlay p{
    font-size:20px;
    margin-bottom:30px;
    max-width:700px;
}
.btn{
    color: #f5f7fa;
    background-color: #ff9800;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

.btn:hover{
    color: #ffffff;
    background-color: #f8b44e;
}

/* Responsive */

@media(max-width:768px){

    .hero-slider{
        height:75vh;
    }

    .overlay h1{
        font-size:34px;
    }

    .overlay p{
        font-size:16px;
    }
}

@media(max-width:480px){

    .overlay h1{
        font-size:28px;
    }

    .overlay p{
        font-size:14px;
    }
}

/* Sections */

section{
    padding:70px 8%;
}

.section-title{
    text-align:center;
    margin-bottom:40px;
    color:#003366;
    font-size:36px;
}

/* About */

.about{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    align-items:center;
}

.about img{
    width:100%;
    border-radius:10px;
}

.about-text p{
    line-height:1.8;
    color:#555;
}

/* Stats */

.stats{
    background:#003366;
    color:white;
}

.stats-container{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    text-align:center;
}

.stat h2{
    font-size:40px;
    margin-bottom:10px;
}

/* Courses */

.course-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.course-card{
    background:white;
    padding:25px;
    border-radius:10px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
    transition:0.3s;
}

.course-card:hover{
    transform:translateY(-8px);
}

.course-card i{
    font-size:45px;
    color:#003366;
    margin-bottom:15px;
}

/* Admission */

.admission{
    background:#ff9800;
    color:white;
    text-align:center;
}

/* Placement */

/* Recruiter Slider */

.recruiter-slider{
    overflow:hidden;
    position:relative;
    width:100%;
    padding:20px 0;
}

.recruiter-track{
    display:flex;
    width:max-content;
    animation:scrollRecruiters 20s linear infinite;
}

.company{
    min-width:220px;
    margin:0 12px;
    background:white;
    padding:25px;
    border-radius:8px;
    text-align:center;
    font-weight:600;
    box-shadow:0 5px 10px rgba(0,0,0,.1);
    transition:.3s;
}

.company:hover{
    transform:translateY(-5px);
}

@keyframes scrollRecruiters{

    0%{
        transform:translateX(0);
    }

    100%{
        transform:translateX(-50%);
    }

}

/* News */

.news-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:25px;
}

.news-card{
    background:white;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
}

.news-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.news-content{
    padding:20px;
}

/* Testimonials */

.testimonial-section{
    background:#eef3f8;
}

.testimonial-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:20px;
}

.testimonial{
    background:white;
    padding:25px;
    border-radius:10px;
    box-shadow:0 5px 10px rgba(0,0,0,.1);
}

/* Contact */

.contact{
    background:#003366;
    color:white;
    text-align:center;
}

.contact p{
    margin:10px 0;
}

/* Footer */

footer{
    background:#001f3f;
    color:white;
    text-align:center;
    padding:20px;
}

/* Tablet */

@media(max-width:992px){

.hero-content h1{
    font-size:42px;
}

.stats-container{
    grid-template-columns:repeat(2,1fr);
}

.about{
    grid-template-columns:1fr;
}
}

/* Mobile */

@media(max-width:768px){

nav{
    flex-direction:column;
}

nav ul{
    flex-wrap:wrap;
    justify-content:center;
    margin-top:15px;
}

nav ul li{
    margin:10px;
}

.hero{
    height:75vh;
}

.hero-content h1{
    font-size:32px;
}

.hero-content p{
    font-size:16px;
}

.section-title{
    font-size:28px;
}

.stats-container{
    grid-template-columns:1fr;
}
}



/* ==========================
   LARGE DESKTOP
========================== */

@media (min-width: 1440px){

    .hero-content{
        max-width:1200px;
    }

    .hero-content h1{
        font-size:65px;
    }

    section{
        padding:90px 10%;
    }

    .course-container,
    .placement-grid,
    .news-container,
    .testimonial-grid{
        gap:35px;
    }
}


/* ==========================
   LAPTOP
========================== */

@media (max-width:1200px){

    .hero-content h1{
        font-size:48px;
    }

    section{
        padding:60px 6%;
    }

}


/* ==========================
   TABLET
========================== */

@media (max-width:992px){

    nav{
        padding:15px 5%;
    }

    .about{
        grid-template-columns:1fr;
        text-align:center;
    }

    .stats-container{
        grid-template-columns:repeat(2,1fr);
    }

    .hero-content h1{
        font-size:42px;
    }

    .hero-content p{
        font-size:18px;
    }

}


/* ==========================
   MOBILE
========================== */

@media (max-width:768px){

    nav{
        flex-direction:column;
        text-align:center;
    }

    nav ul{
        flex-wrap:wrap;
        justify-content:center;
        margin-top:15px;
        gap:10px;
    }

    nav ul li{
        margin:0;
    }

    .hero{
        height:75vh;
        padding:20px;
    }

    .hero-content h1{
        font-size:34px;
        line-height:1.3;
    }

    .hero-content p{
        font-size:16px;
    }

    .section-title{
        font-size:30px;
    }

    .stats-container{
        grid-template-columns:1fr;
    }

    .course-container,
    .placement-grid,
    .news-container,
    .testimonial-grid{
        grid-template-columns:1fr;
    }

    section{
        padding:50px 5%;
    }

}


/* ==========================
   SMALL MOBILE
========================== */

@media (max-width:480px){

    .logo{
        font-size:24px;
    }

    .hero-content h1{
        font-size:28px;
    }

    .hero-content p{
        font-size:14px;
    }

    .btn{
        padding:10px 20px;
        font-size:14px;
    }

    .section-title{
        font-size:26px;
    }

    .stat h2{
        font-size:32px;
    }

    .news-card img{
        height:180px;
    }

}


/* ==========================
   IMAGE SAFETY
========================== */

img{
    max-width:100%;
    height:auto;
    display:block;
}


/* ==========================
   OVERFLOW FIX
========================== */

body{
    overflow-x:hidden;
}

.course-card,
.news-card,
.testimonial,
.company{
    width:100%;
}


/* ==========================
   FLEXIBLE TEXT
========================== */

h1,h2,h3,h4,h5,h6{
    word-wrap:break-word;
}

p{
    word-wrap:break-word;
    line-height:1.7;
}