﻿/* GOOGLE FONT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins',sans-serif;
}

body {
    background: #f5f7fb;
}

/* HERO */

.hero-section {
    background: linear-gradient(135deg,#0c4a7e,#123d68);
    min-height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    opacity: .9;
}

/* MAIN SECTION */

.department-container {
    max-width: 1200px;
    margin: -60px auto 60px;
    padding: 0 20px;
}

/* MODERN TABS */

.department-tabs {
    background: white;
    padding: 12px;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: .3s;
    color: #555;
}

    .tab-btn:hover {
        background: #eef5ff;
        color: #0d6efd;
    }

    .tab-btn.active {
        background: #0d6efd;
        color: white;
        box-shadow: 0 6px 15px rgba(13,110,253,.25);
    }

/* CONTENT GRID */

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.content-card {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
}

.section-badge {
    display: inline-block;
    background: #eaf3ff;
    color: #0d6efd;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 600;
}

.content-card h2 {
    font-size: 34px;
    color: #1d3557;
    margin-bottom: 20px;
}

.content-card p {
    color: #666;
    line-height: 1.9;
    margin-bottom: 15px;
}

.read-btn {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    background: #0d6efd;
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    transition: .3s;
    font-weight: 500;
}

    .read-btn:hover {
        background: #084ec2;
        transform: translateY(-3px);
    }


@media(max-width:900px) {

    .content-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .department-tabs {
        justify-content: flex-start;
        overflow: auto;
    }
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

    .section-title h2 {
        color: #145da0;
        font-size: 38px;
        font-weight: 700;
    }

    .section-title span {
        width: 80px;
        height: 2px;
        background: #145da0;
    }

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 100px;
}

.department-tabs {
    top: 0;
    z-index: 1000;
    background: #fff;
    padding: 12px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
}

.tab-btn {
    text-decoration: none;
    color: #555;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: .3s;
}

    .tab-btn:hover {
        background: #eef5ff;
        color: #0d6efd;
    }

    .tab-btn.active {
        background: #0d6efd;
        color: #fff;
    }

.simple-section {
    padding: 80px 30px;
    text-align: center;
}

    .simple-section h2 {
        margin-bottom: 20px;
        color: #145da0;
    }



.section-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

    .section-title span {
        width: 80px;
        height: 2px;
        background: #145da0;
    }

    .section-title h2 {
        color: #145da0;
        font-size: 38px;
    }


/* SECTION */
.research-section {
    padding: 80px 30px;
    text-align: center;
    background: #f7fbff;
}

.research-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
}

/* SLIDER */
.research-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 40px;
}

    .research-slider::-webkit-scrollbar {
        display: none;
    }

/* CARD */
.research-card {
    min-width: 300px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: .3s;
}

    .research-card:hover {
        transform: translateY(-8px);
    }

    /* IMAGE */
    .research-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

/* CONTENT */
.research-content {
    padding: 18px;
    text-align: left;
}

    .research-content h3 {
        color: #0d6efd;
        margin-bottom: 8px;
    }

    .research-content p {
        color: #666;
        line-height: 1.5;
    }

/* ARROWS */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    z-index: 10;
}

    .scroll-btn.left {
        left: 0;
    }

    .scroll-btn.right {
        right: 0;
    }

    .scroll-btn:hover {
        background: #084ec2;
    }


.faculty-btn {
    flex: 1;
    padding: 15px;
    border: none;
    cursor: pointer;
    background: #145da0;
    color: #fff;
    font-size: 16px;
    transition: .3s;
}

    .faculty-btn:hover {
        background: #0d3d6b;
    }

/* TOGGLE BOX */
.toggle-container {
    max-width: 1200px;
    margin: auto;
}

.toggle-box {
    display: none;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
    margin-top: 20px;
}

    /* TABLE STYLE */
    .toggle-box table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 15px;
    }

    .toggle-box th {
        background: #145da0;
        color: #fff;
        padding: 12px;
    }

    .toggle-box td {
        padding: 12px;
        border-bottom: 1px solid #eee;
    }



.hide-tabs {
    display: none !important;
}

.research-section {
    background: #d9e6f4;
    padding: 35px 0;
}

.research-box h3 {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    line-height: 1.2;
    margin-bottom: 2px;
}

.research-box p {
    font-size: 13px;
    color: #444;
    margin-bottom: 15px;
}

.research-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

    .research-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        display: block;
    }

.card-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,60,120,.85);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 15px;
    font-weight: 600;
}

.view-btn {
    display: block;
    width: 150px;
    margin: 18px auto 0;
    background: #002d73;
    color: #ffb000;
    text-align: center;
    text-decoration: none;
    padding: 10px 0;
    font-weight: 700;
    border-radius: 4px;
    transition: .3s;
}

    .view-btn:hover {
        background: #001d4a;
        color: #fff;
    }

@media(max-width:991px) {

    .research-box {
        margin-bottom: 30px;
    }

        .research-box h3 {
            font-size: 22px;
        }

    .research-card img {
        height: 220px;
    }
}

.image-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: auto;
    border-radius: 15px;
}

/* Video */
.dept-video {
    width: 100%;
    height: 340px;
    display: block;
    object-fit: cover;
    border-radius: 15px;
    background: #000;
    box-shadow: 0 15px 35px rgba(0,0,0,.18);
    overflow: hidden;
}

    /* Poster (Thumbnail) */
    .dept-video::-webkit-media-controls-panel {
        border-radius: 0 0 15px 15px;
    }

/* Blue Corner */
.blue-top {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 70px;
    height: 70px;
    border-top: 8px solid #195c90;
    border-left: 8px solid #195c90;
    border-radius: 12px;
}

/* Orange Corner */
.orange-bottom {
    position: absolute;
    right: -10px;
    bottom: -10px;
    width: 70px;
    height: 70px;
    border-bottom: 8px solid #f7941d;
    border-right: 8px solid #f7941d;
    border-radius: 12px;
}

/* Blue Dot */
.blue-dot {
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #195c90;
    border-radius: 50%;
}

/* Responsive */
@media (max-width:768px) {

    .dept-video {
        height: 240px;
    }

    .blue-top,
    .orange-bottom {
        width: 55px;
        height: 55px;
    }
}

/* ===== OVERRIDES : ABOUT DEPARTMENT ===== */
.about-department-section {
    background: #f5f8fd;
    padding: 70px 60px;
    border-radius: 20px;
    margin-top: 35px
}

/* CONTENT GRID */
.content-grid {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 35px;
    align-items: center;
}

/* LEFT CARD */
.content-card {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

    .content-card h2 {
        font-size: 34px;
        color: #1d3557;
        margin-bottom: 18px;
        font-weight: 700;
        line-height: 1.3;
    }

    .content-card p {
        color: #666;
        font-size: 16px;
        line-height: 1.9;
        text-align: justify;
    }

/* VIDEO */
.image-card {
    position: relative;
    width: 100%;
}

.dept-video {
    width: 100%;
    height: 380px;
    border-radius: 15px;
    object-fit: cover;
    background: #000;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

/* Responsive */
@media(max-width:991px) {

    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .dept-video {
        height: 300px;
    }
}

@media(max-width:768px) {

    .content-card {
        padding: 25px;
    }

        .content-card h2 {
            font-size: 28px;
        }

    .dept-video {
        height: 240px;
    }
}

/*==================================================
    RESPONSIVE MEDIA QUERIES
==================================================*/

/* Large Laptop */
@media (max-width: 1200px) {

    .department-container,
    .faculty-container,
    .toggle-container {
        max-width: 100%;
        padding: 0 20px;
    }

    .content-grid {
        gap: 25px;
    }

    .content-card {
        padding: 30px;
    }

    .faculty-content {
        padding: 30px;
    }
}

/* Tablet */
@media (max-width: 991px) {

    /* Hero */
    .hero-section {
        min-height: 240px;
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content p {
        font-size: 16px;
    }

    /* Container */
    .department-container {
        margin-top: -40px;
    }

    /* Tabs */
    .department-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        gap: 10px;
        padding: 10px;
    }

        .department-tabs::-webkit-scrollbar {
            height: 5px;
        }

        .department-tabs::-webkit-scrollbar-thumb {
            background: #d0d7de;
            border-radius: 20px;
        }

    .tab-btn {
        flex: 0 0 auto;
        padding: 12px 22px;
        font-size: 14px;
    }

    /* About Section */

    .about-department-section {
        padding: 40px 25px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .content-card h2 {
        font-size: 28px;
    }

    .dept-video {
        height: 300px;
    }

    /* Faculty */

    .faculty-container {
        flex-direction: column;
        text-align: center;
    }

    .faculty-image {
        width: 280px;
    }

    .faculty-content {
        border-left: none;
        border-top: 6px solid #145da0;
        padding: 25px;
    }

        .faculty-content h1 {
            font-size: 34px;
        }

        .faculty-content h3 {
            font-size: 28px;
        }

        .faculty-content h4 {
            font-size: 20px;
        }



    .faculty-btn {
        width: 100%;
    }


    /* Research */

    .research-slider {
        padding: 20px;
    }

    .research-card {
        min-width: 280px;
    }

    .scroll-btn {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .hero-section {
        min-height: 220px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .department-container {
        padding: 0 15px;
    }

    .about-department-section {
        padding: 30px 20px;
    }

    .content-card {
        padding: 22px;
    }

        .content-card h2 {
            font-size: 24px;
        }

        .content-card p {
            font-size: 15px;
        }

    .dept-video {
        height: 220px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .section-title span {
        width: 50px;
    }

    .faculty-image {
        width: 220px;
    }

    .faculty-content h1 {
        font-size: 28px;
    }

    .faculty-content h3 {
        font-size: 24px;
    }

    .faculty-content h4 {
        font-size: 18px;
    }

    .faculty-content p {
        font-size: 15px;
    }


    .research-card {
        min-width: 260px;
    }

        .research-card img {
            height: 180px;
        }

    .research-box h3 {
        font-size: 22px;
    }

    .research-box p {
        font-size: 14px;
    }

    .toggle-box {
        padding: 18px;
        overflow-x: auto;
    }

        .toggle-box table {
            min-width: 600px;
        }
}

/* Small Mobile */
@media (max-width: 576px) {

    .hero-section {
        min-height: 180px;
        padding: 30px 15px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .department-tabs {
        padding: 8px;
        gap: 8px;
    }

    .tab-btn {
        padding: 10px 18px;
        font-size: 13px;
    }

    .content-card {
        padding: 18px;
        border-radius: 15px;
    }

        .content-card h2 {
            font-size: 22px;
        }

        .content-card p {
            font-size: 14px;
            line-height: 1.7;
        }

    .dept-video {
        height: 200px;
    }

    .faculty-content {
        padding: 18px;
    }

        .faculty-content h1 {
            font-size: 24px;
        }

        .faculty-content h3 {
            font-size: 22px;
        }

        .faculty-content h4 {
            font-size: 16px;
        }

    .faculty-btn {
        font-size: 14px;
        padding: 14px;
    }


    .research-card {
        min-width: 240px;
    }

        .research-card img {
            height: 160px;
        }

    .card-caption {
        font-size: 13px;
    }

    .view-btn {
        width: 130px;
        font-size: 14px;
    }

    .blue-top,
    .orange-bottom {
        width: 45px;
        height: 45px;
    }

    .blue-dot {
        width: 10px;
        height: 10px;
        left: -15px;
    }
}

.faculty-buttons {
    text-align: center;
    margin: 25px 0;
}


.faculty-btn {
    width: 160px;
    padding: 12px 20px;
    margin: 0 8px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    color: #fff !important;
    cursor: pointer;
    transition: .3s;
}


/* Faculty Button */
.faculty-primary {
    background: #195c90;
}


/* PG Button */
.faculty-success {
    background: #198754;
}


/* Hover */

.faculty-btn:hover {
    transform: translateY(-2px);
    opacity: .85;
}



/* Card */

.toggle-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
}



    /* Heading */

    .toggle-box h4 {
        font-size: 26px;
        color: #111;
        font-weight: 600;
        margin-bottom: 20px;
    }


/*=========================
      Facilities Section
=========================*/

.facilities-section {
    background: #f7f9fc;
}

/* Heading */

.section-heading {
    max-width: 800px;
    margin: auto;
}

.sub-title {
    display: inline-block;
    background: #eaf2fb;
    color: #195c90;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-heading h2 {
    font-size: 42px;
    font-weight: 700;
    color: #195c90;
    margin-bottom: 15px;
}

.section-heading p {
    color: #666;
    font-size: 17px;
    line-height: 1.8;
}

/* Grid */

.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Card */

.facility-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transition: .35s;
}

    .facility-card:hover {
        transform: translateY(-8px);
    }

/* Image */

.facility-image {
    position: relative;
    overflow: hidden;
}

    .facility-image img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        transition: .5s;
    }

.facility-card:hover img {
    transform: scale(1.08);
}

/* Overlay */

.facility-overlay {
    position: absolute;
    inset: 0;
    background: rgba(25,92,144,.75);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: .35s;
}

.facility-card:hover .facility-overlay {
    opacity: 1;
}

.facility-overlay i {
    color: #fff;
    font-size: 34px;
    margin-bottom: 12px;
}

.facility-overlay span {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.research-section {
    padding: 70px 0;
    background: #f7f9fc;
}

.research-card-new {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
    transition: .35s;
    height: 100%;
}

    .research-card-new:hover {
        transform: translateY(-8px);
    }

.research-image {
    display: block;
    position: relative;
    overflow: hidden;
}

    .research-image img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        transition: .5s;
    }

.research-card-new:hover img {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(25,92,144,.75);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: .4s;
}

.research-card-new:hover .image-overlay {
    opacity: 1;
}

.image-overlay span {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.research-content {
    padding: 25px;
}

    .research-content h3 {
        color: #195c90;
        font-size: 24px;
        margin-bottom: 10px;
        font-weight: 700;
    }

    .research-content p {
        color: #777;
        margin-bottom: 15px;
    }

    .research-content h5 {
        font-size: 18px;
        color: #333;
        margin-bottom: 25px;
        min-height: 50px;
    }

.btn-view {
    display: inline-block;
    background: #195c90;
    color: #fff;
    padding: 10px 28px;
    border-radius: 30px;
    text-decoration: none;
    transition: .3s;
}

    .btn-view:hover {
        background: #0f4067;
        color: #fff;
        text-decoration: none;
    }

.faculty-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

    .faculty-buttons .btn {
        background: #fff !important;
        color: #f39c12 !important;
        border: 2px solid #eaf2fb !important;
        border-radius: 30px;
        padding: 12px 30px;
        min-width: 190px;
        font-size: 16px;
        font-weight: 600;
        transition: all .3s ease;
        box-shadow: 0 4px 10px rgba(0,0,0,.1);
    }

        .faculty-buttons .btn:hover {
            background: #f5f5f5 !important;
            transform: translateY(-2px);
        }

        .faculty-buttons .btn.active {
            background: #195c90 !important;
            color: #fff !important;
            border-color: #195c90 !important;
        }

.faculty-section {
    padding: 50px 0;
    background: #f8fbff;
}

.faculty-card {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 35px 40px;
    border-left: 6px solid #195c90;
}

.faculty-image {
    flex: 0 0 220px;
    text-align: center;
}

.hod-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    border: 5px solid #195c90;
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.faculty-content {
    flex: 1;
}

.designation-badge {
    display: inline-block;
    background: #195c90;
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 15px;
}

.faculty-content h3 {
    color: #195c90;
    font-size: 34px;
    font-weight: 700;
    margin: 15px 0;
}

.department-text {
    color: #666;
    line-height: 1.8;
    font-size: 16px;
    margin-top: 10px;
}

@media(max-width:768px) {

    .faculty-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .faculty-image {
        flex: unset;
    }

    .hod-img {
        width: 170px;
        height: 170px;
    }

    .faculty-content h3 {
        font-size: 28px;
    }
}


   
