:root {
    --primary: #023770;
    --accent: #ff6548;
    --light: #f5f8fc;
    --text: #65758b;
    --border: #e5ebf2;
}

/* =====================================
           MAIN LAYOUT
        ===================================== */
.department-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* =====================================
           LEFT DEPARTMENT MENU
        ===================================== */

.department-sidebar {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 35px rgba(2, 55, 112, .08);

    position: sticky;
    top: 30px;

    height: fit-content;
}

.department-title {
    color: var(--primary);
    font-size: 20px;
    font-weight: 800;

    padding: 10px 10px 18px;

    border-bottom: 1px solid var(--border);

    margin-bottom: 12px;
}

.department-title i {
    margin-right: 8px;
}

.department-sidebar ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.department-sidebar li {
    margin-bottom: 6px;
}

.department-sidebar a {
    display: block;

    padding: 12px 14px;

    border-radius: 10px;

    color: #53657a;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition: all .3s ease;
}

.department-sidebar a:hover {
    background: #edf5fb;

    color: var(--primary);

    transform: translateX(5px);
}

.department-sidebar a.active {
    background: var(--primary);

    color: #fff;

    box-shadow: 0 8px 18px rgba(2, 55, 112, .18);
}

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

.department-hero {
    position: relative;

    overflow: hidden;

    background: linear-gradient(135deg,
            #023770,
            #0866a8);

    border-radius: 24px;

    padding: 20px 25px;

    color: #fff;

    margin-bottom: 25px;

    box-shadow:
        0 20px 45px rgba(2, 55, 112, .15);
}

.department-hero:before {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .08);

    right: -80px;
    top: -100px;

    animation: floatCircle 6s ease-in-out infinite;
}

.department-hero:after {
    content: "";

    position: absolute;

    width: 160px;
    height: 160px;

    border-radius: 50%;

    background: rgba(255, 255, 255, .07);

    left: -70px;
    bottom: -80px;

    animation: floatCircle 5s ease-in-out infinite;
}

.hero-content {
    position: relative;

    z-index: 2;
}

.hero-label {
    display: inline-block;

    padding: 8px 16px;

    border-radius: 30px;

    background: rgba(255, 255, 255, .1);

    border: 1px solid rgba(255, 255, 255, .25);

    font-size: 13px;

    margin-bottom: 15px;
}

.department-hero h2 {
    color: #fff;

    font-size: 40px;

    font-weight: 800;

    margin-bottom: 15px;
}

.department-hero p {
    color: rgba(255, 255, 255, .9);
    max-width: 850px;

    margin: 0;
}

/* =====================================
           ACCORDION
        ===================================== */

.department-accordion {
    display: flex;

    flex-direction: column;

    gap: 14px;
}

.department-accordion .accordion-item {
    border: 1px solid var(--border);

    border-radius: 16px !important;

    overflow: hidden;

    background: #fff;

    box-shadow:
        0 8px 25px rgba(2, 55, 112, .05);
}

.department-accordion .accordion-button {
    min-height: 68px;

    padding: 17px 20px;

    background: #fff;

    color: var(--primary);

    font-size: 20px;

    font-weight: 800;

    box-shadow: none !important;
}

.department-accordion .accordion-button:not(.collapsed) {
    background: var(--primary);

    color: #fff;
}

.department-accordion .accordion-button::after {
    transition: .3s ease;
}

.department-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.topic-number {
    width: 35px;
    height: 35px;

    min-width: 35px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: #eaf3fb;

    color: var(--primary);

    font-size: 12px;

    font-weight: 800;

    margin-right: 13px;
}

.accordion-button:not(.collapsed) .topic-number {
    background: rgba(255, 255, 255, .18);

    color: #fff;
}

.department-accordion .accordion-body {
    padding: 28px;

    background: #fff;
}


/* =====================================
           CONTENT CARDS
        ===================================== */

.content-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

.content-card {
    padding: 24px;

    background: #f8fafc;

    border: 1px solid var(--border);

    border-radius: 15px;

    transition: .35s ease;
}

.content-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 30px rgba(2, 55, 112, .08);
}

.content-icon {
    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #eaf3fb;

    color: var(--primary);

    border-radius: 12px;

    font-size: 20px;

    margin-bottom: 15px;
}

.content-card h4 {
    color: var(--primary);

    font-size: 17px;

    font-weight: 800;

    margin-bottom: 10px;
}

.content-card p {
    margin: 0;
}

/* =====================================
           LIST
        ===================================== */

.department-list {
    padding: 0;

    margin: 0;

    list-style: none;
}

.department-list li {
    position: relative;

    padding: 13px 15px 13px 40px;

    margin-bottom: 9px;

    background: #f7f9fc;

    border-radius: 10px;
    color: #000;
    font-size: 16px;
    line-height: 1.7;
}

.department-list li:before {
    content: "✓";

    position: absolute;

    left: 15px;

    top: 13px;

    color: var(--accent);

    font-weight: 800;
}

/* =====================================
           LAB CARDS
        ===================================== */

.lab-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 18px;
}

.lab-card {
    padding: 23px;

    border: 1px solid var(--border);

    border-radius: 15px;

    background: #fff;

    transition: .35s ease;
}

.lab-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 15px 30px rgba(2, 55, 112, .09);
}

.lab-card h4 {
    color: var(--primary);

    font-size: 17px;

    font-weight: 800;

    margin-bottom: 10px;
}

.lab-card p {
    margin: 0;
}

/* =====================================
           TABLE
        ===================================== */

.table-responsive {
    border-radius: 14px;

    overflow-x: auto;
}

.department-table {
    width: 100%;

    min-width: 650px;

    border-collapse: collapse;
}

.department-table th {
    padding: 14px;

    background: var(--primary);

    color: #fff;

    text-align: center;

    font-size: 14px;
}

.department-table td {
    padding: 14px;

    border: 1px solid var(--border);

    color: #000;

    text-align: center;

    font-size: 16px;

    background: #fff;
}

.department-table tr:hover td {
    background: #f5f9fd;
}

/* =====================================
           FACULTY
        ===================================== */

.faculty-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.faculty-card {
    padding: 22px 14px;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 16px;

    text-align: center;

    transition: .4s ease;
}

.faculty-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 18px 35px rgba(2, 55, 112, .12);
}

.faculty-card img {
    width: 120px;
    height: 120px;

    object-fit: cover;

    border-radius: 50%;

    border: 5px solid #edf5fb;

    margin-bottom: 14px;
}

.faculty-card h4 {
    color: #16263d;

    font-size: 16px;

    font-weight: 800;

    margin-bottom: 6px;
}

.faculty-card span {
    color: #023770;
    /* font-size: 12px; */
    font-weight: 700;
}

/* =====================================
           STATS
        ===================================== */

.stats-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;
}

.stat-box {
    text-align: center;

    padding: 22px;

    border-radius: 14px;

    background: #f7f9fc;
}

.stat-box strong {
    display: block;

    font-size: 30px;

    color: var(--primary);

    font-weight: 800;
}

.stat-box span {
    font-size: 13px;

    color: #718095;
}

/* =====================================
           ANIMATION
        ===================================== */

@keyframes floatCircle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(20px);
    }

}

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

@media(max-width:991px) {

    .department-layout {
        grid-template-columns: 1fr;
    }

    .department-sidebar {
        position: relative;

        top: 0;
    }

    .department-sidebar ul {
        display: grid;

        grid-template-columns: repeat(2, 1fr);

        gap: 6px;
    }

    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media(max-width:767px) {

    .department-wrapper {
        padding: 45px 0;
    }

    .department-hero {
        padding: 40px 25px;
    }

    .department-hero h2 {
        font-size: 29px;
    }

    .department-sidebar ul {
        grid-template-columns: 1fr;
    }

    .content-grid,
    .lab-grid {
        grid-template-columns: 1fr;
    }

    .faculty-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

}

/* =====================================
   COURSE FEATURES
===================================== */

.course-features-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(2, 55, 112, .06);
    transition: .35s ease;
}

.course-features-card:hover {
    box-shadow: 0 15px 35px rgba(2, 55, 112, .10);
}


/* Heading */

.course-features-heading {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 18px 22px;

    background: linear-gradient(135deg,
            #023770,
            #0866a8);

    color: #fff;
}

.course-features-icon {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(255, 255, 255, .15);

    font-size: 20px;
}

.course-features-heading h3 {
    margin: 0;

    color: #fff;
    font-size: 25px;
}

.course-features-heading p {
    margin: 3px 0 0;

    color: #fff;
}


/* Feature Grid */

.course-features-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);
}


/* Individual Feature */

.course-feature-item {
    display: flex;
    align-items: center;

    gap: 13px;

    padding: 20px;

    border-right: 1px solid var(--border);

    transition: .3s ease;
}

.course-feature-item:last-child {
    border-right: none;
}

.course-feature-item:hover {
    background: #f7fafd;
}


/* Icon */

.feature-icon {
    width: 44px;
    height: 44px;

    min-width: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #edf5fb;

    color: var(--primary);

    font-size: 18px;

    transition: .3s ease;
}

.course-feature-item:hover .feature-icon {
    background: var(--primary);

    color: #fff;

    transform: translateY(-3px);
}


/* Text */

.feature-content span {
    display: block;
}

.feature-content strong {
    display: block;

    color: var(--primary);
}


/* Responsive */

@media(max-width:991px) {

    .course-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .course-feature-item:nth-child(2) {
        border-right: none;
    }

    .course-feature-item:nth-child(1),
    .course-feature-item:nth-child(2) {
        border-bottom: 1px solid var(--border);
    }

}


@media(max-width:575px) {

    .course-features-grid {
        grid-template-columns: 1fr;
    }

    .course-feature-item {
        border-right: none;

        border-bottom: 1px solid var(--border);
    }

    .course-feature-item:last-child {
        border-bottom: none;
    }

}
/* =========================================
   CIVIL LAB IMAGE GALLERY
========================================= */

.lab-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.lab-images a {
    display: block;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    background: #f5f5f5;
}

.lab-images img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.lab-images a:hover img {
    transform: scale(1.05);
}


/* Zoom icon effect */

.lab-images a::after {
    content: "\f52a";
    font-family: bootstrap-icons;
    position: absolute;

    width: 42px;
    height: 42px;

    right: 12px;
    bottom: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 55, 112, 0.9);
    color: #fff;

    border-radius: 50%;

    font-size: 18px;

    opacity: 0;
    transform: scale(.8);

    transition: all .3s ease;
}

.lab-images a:hover::after {
    opacity: 1;
    transform: scale(1);
}


/* Tablet */

@media (max-width: 991px) {

    .lab-images {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* Mobile */

@media (max-width: 575px) {

    .lab-images {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .lab-images a {
        height: 230px;
    }

}
.content-card img {
    height: 250px;
}