body {
    margin: 0;
    
}
.team-grid {
    max-width: 1200px;
    margin: auto;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
	
    align-items:stretch;
}
.team-grid-bl {
    max-width: 1200px;
    margin: auto;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
	
    align-items:stretch;
}

/* Remove border from last row */
.team-grid .team-card:nth-last-child(-n+2){
    border-bottom:none;
}

.team-grid-bl .team-card:nth-last-child(-n+3){
    border-bottom:none;
}

.team-card {
    /*background: #efe4e4;*/
    border-bottom: 1px solid #cdbebe;
    padding: 0 20px 25px;
    text-align: center;
	height:100%;
	
	display:flex;
    flex-direction:column;

    align-items:center;

    justify-content:flex-start;
}
.team-card img {
    width: 125px;    
    object-fit: cover;
    display: block;
    margin: 0 auto 10px;
    border: 2px solid #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}
.designation {
    /*margin-top: 15px;*/
	font-family: 'calibri','Roboto Condensed', sans-serif;
    color: #1c3e96;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    line-height: 1.5;
}
.name {
	font-family: 'calibri','Roboto Condensed', sans-serif;
    font-weight: bold;
    margin-top: 8px;
    color: #cf0000;    
    font-size: 15px;
    text-transform: uppercase;
    line-height: 1.6;
}
.department {
    /*margin-top: 15px;*/
	font-family: 'calibri','Roboto Condensed', sans-serif;
    color: #1c3e96;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    line-height: 1.5;
}
.short-text {
    margin-top: 18px;
    color: #444;
    font-size: 16px;
    line-height: 1.8;
}
/*.popup-btn {
    margin-top: 5px;
    background: #232323;
    color: #fff;
    border: none;
    padding: 0px 18px;
    cursor: pointer;
    border-radius: 4px;
}

.popup-btn:hover {
    background: #163172;
}
*/
.popup-btn, .mngt-popup-btn, .ss-popup-btn{
    background: none;
    border: none;
    padding: 0;
    /*margin-top: 12px;*/

    color: #516d85;
    font-size: 15px;
    font-weight: bold;

    cursor: pointer;
    text-decoration: underline;

    font-family: 'calibri','Roboto Condensed', sans-serif;;
}

.popup-btn:hover, .mngt-popup-btn:hover, .ss-popup-btn:hover{
    color: #2A2A2A;
	animation-duration: 1s;
}



/* POPUP */

.popup-overlay, .mngt-popup-overlay, .ss-popup-overlay{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.65);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:9999;
}

.popup-box, .mngt-popup-box, .ss-popup-box{	
  background:#FFFFFF;
  width:90%;
  max-width:600px;
  padding:35px;
  border-radius:10px;
  position:relative;
  text-align:center;
	max-height:90vh; /* Prevent too tall popup */

  overflow-y:auto; /* Scroll inside popup */
  animation:popupShow 0.3s ease;
}




/* HEADER AREA */

.popup-header{
  display:flex;
  align-items:flex-end; /* Align text to bottom of image */
  gap:25px;
  text-align:left;
  margin-bottom:25px;
}

.popup-header img{
  width:125px;
 /* height:200px;  IMAGE HEIGHT */
  object-fit:cover;
  /*border:3px solid #fff;*/
	outline:3px solid #ffffff;
  box-shadow:0 0 5px rgba(0,0,0,0.2);
  flex-shrink:0;
}

.popup-info{
  padding-bottom:5px;
}

#popup-name, #mngt-popup-name, #ss-popup-name{
	font-family: 'calibri','Roboto Condensed', sans-serif;
  color:#cf0000;
  font-size:18px;
  font-weight:bold;
	text-transform:uppercase;
  /*margin-bottom:10px;*/
  line-height:1.4;
}

#popup-designation, #mngt-popup-designation, #ss-popup-designation{
	font-family: 'calibri','Roboto Condensed', sans-serif;
  color:#1c3e96;
  font-size:16px;
  font-weight:bold;
  text-transform:uppercase;
  /*margin-bottom:8px;*/
  line-height:1.5;
}

#popup-department, #ss-popup-department{
	font-family: 'calibri','Roboto Condensed', sans-serif;
  color:#1c3e96;
  font-size:16px;
  font-weight:bold;
  text-transform:uppercase;
  /*margin-bottom:8px;*/
  line-height:1.5;
}


.close-popup, .mngt-close-popup, .ss-close-popup{
  position:absolute;
  top:10px;
  right:18px;
  font-size:32px;
  cursor:pointer;
  color:#333;
  line-height:1;
}

@keyframes popupShow{
  from{
    opacity:0;
    transform:scale(0.8);
  }

  to{
    opacity:1;
    transform:scale(1);
  }
}





.image-popup{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.9);
    z-index:99999;
    justify-content:center;
    align-items:center;
    padding:5px;
    box-sizing:border-box;
}

.image-popup img{
    max-width:95%;
    max-height:95%;
    object-fit:contain;
}

.image-popup-close{
    position:absolute;
    top:15px;
    right:25px;
    color:#fff;
    font-size:40px;
    cursor:pointer;
    line-height:1;
}

.ss-full-image{
    cursor:pointer;
}


/* MOBILE */

@media(max-width:768px){

  .popup-overlay{
    padding:15px;
    box-sizing:border-box;
    align-items:flex-start;
    overflow-y:auto;
  }

  .popup-box{
    width:100%;
    margin-top:20px;
    padding:25px 20px;
  }

  .popup-header{
    flex-direction:column;
    align-items:center;
    text-align:center;
  }

  .popup-info{
    padding-bottom:0;
  }
	
 /*#popup-name, #popup-designation, #popup-department {
    font-family:initial;
  }*/


  .team-grid, .team-grid-bl{
    grid-template-columns:1fr;
  }

}