.table-container .faculty-photo {
  width: 150px;
  height: 150px;
  //object-fit: cover;   /* ensures the image fills the circle without distortion */
  border-radius: 50%;  /* makes it a circle */
  margin: 0 auto;
  display: block;
}

.table-container .card {
    border: 1px solid #F5DADF; /* Set the border color */
}

.table-container .card-body {
    padding-bottom: 3px; /* Reduce bottom padding */
	background: linear-gradient(135deg, #F5DADF 0%, #EAF3FF 100%);

	
}


/* Card text styling */
.table-container .card-title {
    font-size: 1.1rem;
    font-weight: bold;
	color:blue;
    text-align: center;
    margin-bottom: 3px;
	
}
.table-container .card-title a{
	color:blue !important;
	text-decoration:none;
}

.table-container .qualification {
    color: red; 
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 2px;
	font-weight: bold;
}

.table-container .designation {
    color: green;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 2px;
	font-weight: bold;
}

.table-container .research-interest {
    font-size: 0.9rem;
    margin-bottom: 5px;
    text-align: center;
	color:brown;
}



/* Add hover effect overlay only inside .table-container */

.table-container .faculty-card {
  position: relative; /* Ensure card acts as relative container */
  overflow: hidden;   /* Clip any overflow */
}

.table-container .card-body {
  position: relative; /* Ensure absolute children are positioned inside */
}

.table-container .card-main {
  transition: opacity 0.3s ease;
}

.table-container .hover-details {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #F5DADF 0%, #EAF3FF 100%); /* SAME as card-body */
  border: 1px solid linear-gradient(135deg, #F5DADF 0%, #EAF3FF 100%); /* SAME as card */
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
}


/* Normal state */
.table-container .faculty-card .hover-details {
  opacity: 0;
}
.table-container .faculty-card .card-main {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Auto flip state */
.table-container .faculty-card.auto-flip .hover-details {
  opacity: 1;
}
.table-container .faculty-card.auto-flip .card-main {
  opacity: 0.2;
}


.table-container .hover-details p {
  word-wrap: break-word;
  word-break: break-word;
  margin-bottom: 8px;
  font-size: 1.0rem;
}


/* Box container */
.dept-box {
  background: linear-gradient(135deg, #3445b4, #4a5de3);
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  gap: 15px;
  max-width: 650px;
  color: #fff;
}

/* Label styling */
.dept-label {
  font-weight: 600;
  font-size: 1rem;
  color: #f9f9f9;
  white-space: nowrap;
}

/* Select box */
.dept-select {
  max-width: 350px;
  background-color: #ffffff;
  color: #3445b4;
  font-weight: 500;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  padding: 6px 12px;
}

/* Hover/focus effects */
.dept-select:focus {
  border-color: #ffda77;
  box-shadow: 0 0 8px rgba(255,218,119,0.7);
  outline: none;
}

/* Dropdown item styling */
.dept-select option {
  padding: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #3445b4;
  background-color: #f9f9f9;
}

/* Hover effect for dropdown items (works in Chrome/Edge) */
.dept-select option:hover {
  background-color: #e4ebff;
  color: #222;
}

