/*section*/
*{
    padding:0;
    margin:0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-size:15px;
}

.department{
    background-color: #fcfafa;
    position: relative;
    width:100%;
    height:auto;
    min-height: 100%;
    padding:15px 0;
    top:0%;
    padding-top:5%;
    border-top:2px solid rgb(0,0,0,0.3);
    overflow: hidden;
}
.department .title{
    margin: 3% 0 0 0;
    width:100%;
    height:10%;
}
.department .title span{
    font-size:40px;
}
.department-tab{
    width:100%;
    height:80%;  
}
.department-tab ul{
    width:100%;
    height:20%;
    display:flex;
    text-align: center;
    justify-content: space-around;
    overflow: auto;
}
.department-tab ul li{
    text-decoration: none;
    list-style: none;
    padding:10px;
}
.nav-link{
    text-decoration: none;
    color:gray;
    display:block;
    width:100%;
    height:100%;
}
.nav-link i{
    font-size:40px;
    padding:20px;
}
.nav-link .first{
    font-size:20px;
}
.nav-link.active i{
    color:rgba(0, 77, 139);
}
.nav-link.active .first{
    color:rgba(0, 0, 0);
}
.nav-link.active .second{
    color:rgba(0, 0, 0);
}
.tab-content{
    width:100%;
    height:80%;
    border-top:2px solid rgb(0,77,139,0.3);
    overflow: auto;
}
.tab-pane{
    
    display:none;
    width:100%;
    height:100%;
    padding:10px 30px;
}
.tab-pane.show {
  
    display: flex;
}
.department-left{
    width:60%;
    height:100%;
    font-size:15px;
    padding:10px;
}
.left-title{
    width:100%;
    position: relative;
    padding:10px 0;
}
.left-title span{
    font-size: 25px;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.left-title span::after{
    content: "";
    position: absolute;
    bottom:-5px;
    left: 5px;
    width: 90%;
    border-bottom: 4px solid;
    border-radius: 20px;
}
.left-about{
    
    width:100%;
    height:100%;
    padding:20px 30px;
    display:block;
}
.left-about span{
    font-size:16px;
    line-height: 30px;
}
.department-right{
   
    width:50%;
    height:100%;
    margin: 30px 0 0 0 ;
    padding:20px;
    display:flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;  /* Stack items vertically */
   
}

.doctor-box-image{
    
    width:auto;
    height:100%;
    box-shadow: 1px 1px 1px 2px rgb(0, 122, 179);
    border-radius: 20px;
    /* 3D Shadow effect */
    box-shadow:
        5px 5px 15px rgba(0, 0, 0, 0.6),
        -5px -5px 10px rgba(255, 255, 255, 0.1);
    
    transform: rotateX(2deg) rotateY(-6deg); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* background: linear-gradient(to bottom right, white, rgb(87, 158, 206)); */
    
}


.department-right img{
    display:block;
    width:90%;
    height:90%;
    transition: 0.2s;
    border-radius: 20px;
    margin-top:-30px;
    margin-left:-10px;
    mix-blend-mode: multiply;/* remove background */
   
    
}

.department-right img:hover{
    margin-left:0;
   
}


.department-tab ul img{
    height: 25px;
    width: 25px;
}

/*==========*/
.rounded-button a {
    margin: 20px 0 0 0 ;
    display: inline-block;
    background-color: orange;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 8px;          /* Smooth rounded corners */
    transition: background-color 0.2s ease, transform 0.1s ease;
  }

  .rounded-button a:hover {
    background-color: #039f5b;
    transform: translateY(-2px); /* Slight elevation on hover */
  }

  .rounded-button a:active {
    transform: translateY(1px);  /* Pressed effect on click */
  }

.left-about .ambulance-box {
  display: inline-block;
  border: 2px solid #000000;   /* red-600 for urgency */
          /* light red background */
              /* dark red text */
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 1rem;
  transform: scale(1.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.left-about.ambulance-box:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
}

/* HD screen */
@media (max-width: 1366px) {
    .department .title span{
        font-size:25px;
    }
    .department-tab ul li{
        text-decoration: none;
        list-style: none;
        padding:10px;
    }
    .nav-link i{
        font-size:25px;
        padding:10px 15px;
    }
    .nav-link .first{
        font-size:15px;
    }
    .nav-link .second{
        font-size:13px;
    }
    .left-title{
        width:100%;
        position: relative;
        padding:5px 0;
    }
    .left-title span{
        font-size:20px;
        font-weight: 600;
    }
    .department-left{
        width:70%;
    }
    .left-about{
        width:100%;
        height:100%;
        padding:10px 30px;
        display:block;
    }
    .left-about span{
        font-size:14px;
        line-height: 22px;
    }
    .department-right{
        width:30%;

    }
  

}

/* PHone */
@media (max-width: 767px) {
    .department{
         margin: 27% 0 0 0;
        padding-top:5%;
    }
    .department .title{
        
       
        width:100%;
        height:7%;
        padding:0 15px;
    }
    .department .title span{
        font-size:20px;
    }
    .department-tab{
        width:100%;
        height:93%;
    }
    .department-tab ul{
        width: 100%;
        height: 15%;
        overflow-x: auto; 
        overflow-y: hidden; 
        padding: 15px 10px;
        display: flex;
        justify-content: flex-start; 
        scroll-snap-type: x mandatory; 
    }
    .department-tab ul li{
        scroll-snap-align: start;
        text-decoration: none;
        list-style: none;
        padding:5px 10px;
    }
    .nav-link i{
        font-size:20px;
        padding:10px;
    }
    .nav-link .first{
        font-size:14px;
    }
    .nav-link  .second{
        font-size:11px;
    }
    .tab-content{
        height:85%;
    }
    .tab-pane{
        display:none;
        width:100%;
        height:100%;
        padding:5px 10px;
    }
    .tab-pane.show {
        display: block;
    }
    .department-left{
        width:100%;
        height:70%;
        font-size:15px;
        padding:10px;
    }
    .left-title span{
        font-size:15px;
        font-weight: 600;
    }
    .left-title::after{
        border-bottom: 2px solid;
    }
    .left-about{
        width:100%;
        height:100%;
        padding:5px 10px;
        display:block;
    }
    .left-about span{
        font-size:13px;
        line-height: 20px;
    }
    .department-right{
        width:100%;
        height:30%;
        display:flex;
        justify-content: center;
        align-items: center;
    }
    .department-right img{
        display:block;
        height:100%;
        width:100%;
        border-radius: 20px;
        margin-left:0;
        padding:0;
    }

}