/* ==================================================
   Departments Tabs
================================================== */

#specialty-tabs{
    display:flex;
    align-items:stretch;
}

.department-tab{
    flex:1;

    display:flex;
    align-items:center;      /* Vertical center */
    justify-content:center;  /* Horizontal center */

    height:90px;
    padding:0 !important;

    margin:0;

    line-height:90px; /* Optional */

    font-size:20px;
    font-weight:bold;
    text-align:center;

    background:#f3f3f3;
    color:#2d2d2d !important;

    border:none;
    border-radius:0;

    position:relative;
}

/* Gray bar */
.specialty-navigation{
    background:#f3f3f3;
    border-radius:0;
    overflow:visible;
    margin-bottom:60px;
}

/* Divider between tabs */
.department-tab:not(:last-child){
    border-right:1px solid #e7e7e7;
}

.department-tab:hover{
    color:#2563eb !important;
}

/* Active Tab */
.department-tab.active{

    background:#2563eb !important;
    color:#fff !important;

}

/* Triangle */
.department-tab.active::after{

    content:"";

    position:absolute;

    left:50%;
    bottom:-12px;

    transform:translateX(-50%);

    width:0;
    height:0;

    border-left:14px solid transparent;
    border-right:14px solid transparent;
    border-top:14px solid #2563eb;

}
/* ==========================================
Content Card
========================================== */

.department-layout{

    background:#fff;
    border-radius:20px;
    box-shadow:0 15px 40px rgba(0,0,0,.08);

    padding:25px;

    align-items:center;

}

/* ==========================================
Image
========================================== */

.department-image{

    border-radius:14px;
    overflow:hidden;

}

.department-image img{

    width:100%;
    border-radius:14px;
    object-fit:cover;
    transition:.4s;

}

.department-image img:hover{

    transform:scale(1.05);

}

/* ==========================================
Titles
========================================== */

.department-title{

    font-size:30px;
    font-family: Montserrat;
    font-weight:800;
    color:#0b2149;
    text-align: center;

    margin-bottom:25px;

}

.department-description{

    font-size:15px;
    font-family: Montserrat;
    line-height:1;
    color:#5b6472;
    text-align: center;

    margin-bottom:45px;

}

/* ==========================================
Service Items
========================================== */

.service-item{

    display:flex;
    align-items:flex-start;
    gap:20px;
    margin-bottom:35px;

}

.service-icon{

    width:72px;
    height:72px;

    border-radius:50%;

    background:#2563eb;

    color:#fff;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:30px;

    flex-shrink:0;

}

.service-content h4{

    margin:0 0 8px;

    font-size:28px;
    font-weight:700;

    color:#0b2149;

}

.service-content p{

    margin:0;

    font-size:18px;
    line-height:1.8;

    color:#6c7280;

}

/* ==========================================
Cards below
========================================== */

.departments{

    padding:80px 0;

}

.department-card{

    background:#fff;
    border-radius:20px;

    overflow:hidden;

    box-shadow:0 12px 35px rgba(0,0,0,.08);

    transition:.35s;

    position:relative;

}

.department-card:hover{

    transform:translateY(-8px);

}

.department-card .department-image{

    height:250px;

}

.department-card .department-image img{

    width:100%;
    height:100%;
    object-fit:cover;

}

.department-icon{

    position:absolute;

    top:20px;
    left:20px;

    width:70px;
    height:70px;

    border-radius:50%;

    background:#2563eb;

    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:30px;

    z-index:10;

    box-shadow:0 10px 25px rgba(37,99,235,.4);

}

.department-content{

    padding:5px;
}

.department-content h3{

    font-size:30px;

    font-weight:700;

    margin-bottom:15px;

    color:#0b2149;

}

.department-content p{

    color:#6c7280;

    line-height:1.8;

}

.learn-more{

    display:inline-flex;

    align-items:center;

    gap:8px;

    margin-top:20px;

    color:#2563eb;

    text-decoration:none;

    font-weight:700;

}

.learn-more:hover{

    color:#0b2149;

}

/* ==========================================
Responsive
========================================== */

@media(max-width:991px){

.department-layout{

padding:35px;

}

.department-title{

font-size:38px;

}

.department-description{

font-size:18px;

}

.service-content h4{

font-size:22px;

}

.department-tab{

font-size:18px;
padding:20px 10px;

}
.nav-link{

font-weight: 800;

}

}

@media(max-width:768px){

#specialty-tabs{

display:block;

}

.department-tab{

width:100%;

}

.department-tab.active::after{

display:none;

}

.department-layout{

padding:25px;

}

.service-item{

flex-direction:column;

gap:15px;

}

.department-title{

font-size:30px;

}

.department-description{

font-size:17px;

}

}

/* Gray navigation container */
.specialty-navigation{
    background:#f3f3f3;
    border-radius:18px;      /* Rounded container */
    overflow:visible;
    margin-bottom:60px;
    box-shadow:0 5px 20px rgba(0,0,0,.05);
}

#specialty-tabs{
    display:flex;
    width:100%;
    align-items:stretch;
}

/* Tabs */
.department-tab{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;

    height:90px;

    background:#f3f3f3 !important;
    color:#2d2d2d !important;

    font-size:20px;
    font-weight:700;

    border-radius:0 !important;
    position:relative;

    transition:.3s;
}

/* Round first & last tabs */
.department-tab:first-child{
    border-top-left-radius:18px !important;
    border-bottom-left-radius:18px !important;
}

.department-tab:last-child{
    border-top-right-radius:18px !important;
    border-bottom-right-radius:18px !important;
}

/* Active tab */
.department-tab.active{
    background:#2563eb !important;
    color:#fff !important;
}

/* Keep rounded corners on active first/last tab */
.department-tab.active:first-child{
    border-top-left-radius:18px !important;
    border-bottom-left-radius:18px !important;
}

.department-tab.active:last-child{
    border-top-right-radius:18px !important;
    border-bottom-right-radius:18px !important;
}

/* Triangle */
.department-tab.active::after{
    content:'';
    position:absolute;
    left:50%;
    bottom:-12px;
    transform:translateX(-50%);

    border-left:14px solid transparent;
    border-right:14px solid transparent;
    border-top:14px solid #2563eb;
}
/*=========================================
Gallery
=========================================*/

.gallery-row{
    margin-top:15px;
    margin-bottom: 30px;
}

.gallery-card{
    overflow:hidden;
    border-radius:18px;
    background:#fff;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.35s ease;
}

.gallery-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 40px rgba(0,0,0,.15);
}

.gallery-card img{
    width:100%;
    height:240px;          /* Landscape */
    object-fit:cover;
    transition:.4s ease;
}

.gallery-card:hover img{
    transform:scale(1.08);
}