/*==================================
 Department Card
==================================*/

.department-card{
    background:#fff;
    border:1px solid #e8e8e8;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.35s;
    height:100%;
}

.department-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 40px rgba(0,0,0,.15);
}

/*==================================
 Image
==================================*/

.department-image{
    overflow:hidden;
}

.department-image img{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;
    transition:.4s;
}

.department-card:hover .department-image img{
    transform:scale(1.05);
}

/*==================================
 Content
==================================*/

.department-content{
    padding:28px;
    text-align:left;
}

.department-content h3{
    font-family:inherit;
    font-size:28px;
    font-weight:700;
    color:#383387;
    line-height:1.3;
}

.department-content h3::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:60px;
    height:3px;
    background:#383387;
    border-radius:5px;
}

.department-content p{
    font-family:inherit;
    font-size:16px;
    font-weight:400;
    line-height:1.8;
    color:#222;
}

/*==================================
 Button
==================================*/

.department-content a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:14px 28px;
    background:#383387;
    color:#fff;
    text-decoration:none;
 font-family:inherit;
    font-size:15px;
    font-weight:600;
    border-radius:30px;
    transition:.3s;
}

.department-content a:hover{
    background:#2d296f;
    color:#fff;
    transform:translateY(-2px);
}

/*==================================
 Swiper Buttons
==================================*/

.departmentSwiper{
    position:relative;
    overflow:hidden;
}

.departmentSwiper .swiper-button-prev{
    left:0px !important;
}

.departmentSwiper .swiper-button-next{
    right:0px !important;
}

.departmentSwiper .swiper-button-prev,
.departmentSwiper .swiper-button-next{
    width:50px;
    height:50px;
    background:#383387;
    border-radius:50%;
    color:#fff;
    box-shadow:0 6px 18px rgba(0,0,0,.18);
}



/*==================================
 Tablet
==================================*/

@media(max-width:991px){

.department-image img{
    height:220px;
}

.department-content{
    padding:22px;
}

.department-content h3{
    font-size:24px;
}

.department-content p{
    min-height:auto;
}

}

/*==================================
 Mobile
==================================*/

@media(max-width:767px){

.departmentSwiper{
    padding:15px;
}

.department-image img{
    height:220px;
}

.department-content{
    text-align:center;
}

.department-content h3{
    font-size:22px;
}

.department-content h3::after{
    left:50%;
    transform:translateX(-50%);
}

.department-content p{
    font-size:15px;
}

.department-content a{
    width:100%;
}

.departmentSwiper .swiper-button-prev,
.departmentSwiper .swiper-button-next{
    display:none;
}

}






/* =========================================================
   CONSOLIDATED DEPARTMENTS
   ========================================================= */

.consolidated-departments-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}




/* =========================================================
   Search
   ========================================================= */

.department-search-box {
    max-width: 600px;

    margin: 0 auto 45px;

    position: relative;
}

.department-search-box input {
    width: 100%;

    height: 55px;

    padding: 0 22px 0 50px;

    border: 1px solid #ddd;

    border-radius: 30px;

    background: #fff;

    font-size: 16px;

    outline: none;

    box-sizing: border-box;

    box-shadow:
        0 5px 20px rgba(0,0,0,.06);
}

.department-search-box input:focus {
    border-color: #383387;

    box-shadow:
        0 5px 25px rgba(56,51,135,.12);
}

.department-search-box::before {
    content: "";

    position: absolute;

    left: 20px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 24px;

    color: #383387;

    z-index: 2;
}


/* =========================================================
   Grid
   ========================================================= */

.consolidated-departments-grid {

    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 28px;
}


/* =========================================================
   Card
   ========================================================= */

.consolidated-department-card {

    background: #fff;

    border: 1px solid #eeeeee;

    border-radius: 18px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    height: 100%;

    box-shadow:
        0 8px 25px rgba(0,0,0,.07);

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.consolidated-department-card:hover {

    transform: translateY(-8px);

    box-shadow:
        0 18px 40px rgba(0,0,0,.13);
}


/* =========================================================
   Image
   ========================================================= */

.consolidated-department-image {

    position: relative;

    width: 100%;

    height: 210px;

    overflow: hidden;

    background: #f4f4f7;
}

.consolidated-department-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform .5s ease;
}

.consolidated-department-card:hover
.consolidated-department-image img {

    transform: scale(1.07);
}


/* =========================================================
   Image overlay
   ========================================================= */

.consolidated-department-image::after {

    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 70px;

    background:
        linear-gradient(
            transparent,
            rgba(0,0,0,.35)
        );

    pointer-events: none;
}


/* =========================================================
   Content
   ========================================================= */

.consolidated-department-content {

    padding: 22px;

    display: flex;

    flex-direction: column;

    flex: 1;
}

.consolidated-department-content h3 {

    margin: 0 0 10px;

    font-size: 21px;

    line-height: 1.35;

    font-weight: 700;

    color: #383387;
}

.consolidated-department-content p {

    margin: 0 0 22px;

    font-size: 14px;

    line-height: 1.6;

    color: #707070;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* =========================================================
   Button
   ========================================================= */

.consolidated-department-btn {

    margin-top: auto;

    width: fit-content;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 10px 18px;

    border-radius: 25px;

    background: #383387;

    color: #fff !important;

    text-decoration: none !important;

    font-size: 14px;

    font-weight: 600;

    transition:
        background .3s ease,
        padding .3s ease;
}

.consolidated-department-btn::after {

    content: "→";

    font-size: 17px;

    transition:
        transform .3s ease;
}

.consolidated-department-btn:hover {

    background: #2d296f;

    color: #fff !important;

    padding-left: 20px;

    padding-right: 20px;
}

.consolidated-department-btn:hover::after {

    transform: translateX(4px);
}


/* =========================================================
   No Image
   ========================================================= */

.consolidated-department-no-image {

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #f4f4f7;

    color: #888;

    font-size: 14px;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1100px) {

    .consolidated-departments-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

    }

}


/* =========================================================
   Small Tablet
   ========================================================= */

@media (max-width: 850px) {

    .consolidated-departments-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 22px;

    }

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {

    .consolidated-departments-wrapper {

        padding: 15px;

    }

    .consolidated-departments-header h2 {

        font-size: 30px;

    }

    .consolidated-departments-header p {

        font-size: 14px;

    }

    .department-search-box {

        margin-bottom: 30px;

    }

    .consolidated-departments-grid {

        grid-template-columns: 1fr;

        gap: 20px;

    }

    .consolidated-department-image {

        height: 220px;

    }

}