/* ================= GLOBAL ================= */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Poppins', sans-serif;
    background: #f5f7fb;
}

/* ================= HEADER ================= */

.top-header{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: linear-gradient(135deg,#4f6df5,#7b4cc9);
}

.left-logo img,
.right-logo img{
    width: 95px;
    height: 95px;
    object-fit: contain;
    background: white;
    padding: 8px;
    border-radius: 15px;
}

.header-text{
    text-align: center;
    color: white;
}

.header-text h1{
    font-size: 38px;
    font-weight: 700;
}

.iit-link{
    color: #f2f2f2;
    text-decoration: none;
    font-size: 16px;
}

.iit-link:hover{
    color: yellow;
}

/* ================= NAVBAR ================= */

.navbar{
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.navbar a{
    text-decoration: none;
    color: #222;
    font-size: 18px;
    position: relative;
    transition: 0.3s;
}

.navbar a:hover,
.navbar .active{
    color: #4f6df5;
}

/* UNDERLINE EFFECT */

.navbar a::after{
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background: #4f6df5;
    left: 0;
    bottom: -6px;
    transition: 0.4s;
}

.navbar a:hover::after{
    width: 100%;
}

/* ================= DROPDOWN ================= */

.dropdown{
    position: relative;
}

.dropdown-content{
    position: absolute;
    top: 35px;
    left: 0;
    width: 300px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: none;
    z-index: 999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.dropdown-content a{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    color: #222;
    border-bottom: 1px solid #e4e4e4;
    transition: 0.3s;
}

.dropdown-content a:hover{
    background: #f4f6ff;
    color: #4f6df5;
    padding-left: 28px;
}

.dropdown:hover .dropdown-content{
    display: block;
}

/* ================= HERO ================= */

.research-hero{
    height: 85vh;
    background: url('images/Research.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay{
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
}

.hero-content{
    position: relative;
    text-align: center;
    color: white;
    z-index: 2;
}

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

.hero-content p{
    max-width: 750px;
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.hero-content button{
    padding: 15px 35px;
    border: none;
    border-radius: 40px;
    background: #4f6df5;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.hero-content button:hover{
    background: #7b4cc9;
    transform: scale(1.05);
}

/* ================= RESEARCH SECTION ================= */

.research-section{
    padding: 90px 80px;
}

.research-section h2{
    text-align: center;
    font-size: 45px;
    margin-bottom: 50px;
    color: #222;
}

.research-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
    gap: 35px;
}

/* CARD */

.research-card{
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.4s;
}

.research-card:hover{
    transform: translateY(-12px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.15);
}

.research-card img{
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.card-content{
    padding: 25px;
}

.card-content h3{
    font-size: 28px;
    margin-bottom: 12px;
    color: #222;
}

.card-content p{
    color: #666;
    line-height: 1.7;
}

/* ================= FOOTER ================= */

.footer{
    background: #111827;
    color: white;
    text-align: center;
    padding: 22px;
    font-size: 17px;
}

/* ================= RESPONSIVE ================= */

@media(max-width:768px){

    .top-header{
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .header-text h1{
        font-size: 28px;
    }

    .navbar{
        flex-wrap: wrap;
        gap: 20px;
    }

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

    .hero-content p{
        font-size: 16px;
        padding: 0 15px;
    }

    .research-section{
        padding: 60px 20px;
    }

}