*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#f4f6f9;
    color:#333;
    padding-top:70px;
}
/* NAVBAR */

.navbar{
    background:#8b0000;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 50px;

    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
}

.logo-section{
    display:flex;
    align-items:center;
    gap:12px;
}

.logo-section img{
    width:auto;
    height:50px;
    background:white;
    border-radius:8px;
    padding:2px;
}

.logo-section h2{
    color:white;
    font-size:28px;
}

.nav-links{
    display:flex;
    list-style:none;
}

.nav-links li{
    margin-left:25px;
}

.nav-links a{
    color:white;
    text-decoration:none;
    font-weight:600;
}

.nav-links a:hover{
    color:#ffd700;
}

/* HERO */

.hero{
    height:90vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;

    background:
    linear-gradient(
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.65)),
    url("../images/computer.jpg");

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

.hero-content{
    color:white;
    width:80%;
    max-width:900px;
}

.hero-content h1{
    font-size:60px;
    margin-bottom:20px;
}

.hero-content p{
    font-size:22px;
    margin-bottom:30px;
}

.btn{
    background:#660909;
    color:white;
    padding:15px 35px;
    text-decoration:none;
    border-radius:8px;
    font-size:18px;
    font-weight:bold;
}

.btn:hover{
    background:#2b0505;
}

/* ABOUT */

.about{
    padding:80px 10%;
    text-align:center;
    background:white;
}

.about h2{
    color:#8b0000;
    font-size:40px;
    margin-bottom:20px;
}

.about p{
    font-size:18px;
    line-height:1.8;
}

/* COURSES */

.courses{
    padding:80px 10%;
}

.courses h2{
    text-align:center;
    color:#8b0000;
    margin-bottom:50px;
    font-size:40px;
}

.course-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
    align-items:stretch;
}

.card{
    background:white;
    padding:30px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);

    display:flex;
    flex-direction:column;
    min-height:260px;
}


.card .btn{
    margin-top:auto;
} 

.card:hover{
    transform:translateY(-10px);
}

.card h3{
    color:#8b0000;
    margin-bottom:15px;
}

/* WHY US */

.why-us{
    padding:80px 10%;
    background:white;
}

.why-us h2{
    text-align:center;
    color:#8b0000;
    margin-bottom:50px;
    font-size:40px;
}

.features{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.feature-box{
    background:#f8f9fa;
    padding:30px;
    text-align:center;
    border-radius:12px;
    box-shadow:0 3px 10px rgba(0,0,0,0.08);
}

.feature-box h3{
    color:#8b0000;
    margin-bottom:10px;
}

.contact-details{
    background:white;
    max-width:800px;
    margin:auto;
    padding:40px;
    border-radius:15px;
    box-shadow:0 4px 15px rgba(0,0,0,0.1);
}

.contact-row{
    display:flex;
    margin-bottom:20px;
    align-items:flex-start;
}

.label{
    width:140px;
    font-weight:bold;
    color:#8B0000;
    font-size:20px;
}

.value{
    flex:1;
    font-size:18px;
    line-height:1.8;
    color:#333;
}

.contact h2{
    text-align:center;
    color:#8B0000;
    margin-bottom:40px;
    font-size:42px;
}
/* FOOTER */

footer{
    background:#8b0000;
    color:white;
    text-align:center;
    padding:25px;
    margin-top:50px;
}

/* MOBILE */

@media(max-width:768px){

    .navbar{
        flex-direction:column;
        padding:15px;
    }

    .nav-links{
        flex-direction:column;
        margin-top:15px;
        text-align:center;
    }

    .nav-links li{
        margin:10px 0;
    }

    .hero-content h1{
        font-size:35px;
    }

    .hero-content p{
        font-size:18px;
    }

    .logo-section h2{
        font-size:20px;
    }

}
.md-section{
    padding:80px 10%;
    background:#ffffff;

    display:flex;
    align-items:center;
    gap:50px;
    flex-wrap:wrap;
}

.md-image{
    flex:1;
    text-align:center;
}

.md-image img{
    width:300px;
    height:350px;
    object-fit:cover;
    border-radius:15px;
    box-shadow:0 5px 20px rgba(0,0,0,0.2);
}

.md-content{
    flex:2;
}

.md-content h2{
    color:#8b0000;
    margin-bottom:20px;
}

.md-content p{
    line-height:1.8;
    margin-bottom:15px;
}

.md-content h3{
    color:#8b0000;
}