/**
 * Department / faculty program pages (tabs, faculty cards)
 */

.tg-themetabnav {
  width: 200px;
  float: left;
  list-style: none;
  font-size: 13px;
  line-height: 40px;
  background: #fff;
}

.mega-menu-col .tg-themetabnav {
  width: 200px;
  padding: 14px 0;
}

.tg-themetabnav li {
  width: 100%;
  float: left;
  line-height: inherit;
  list-style-type: none;
}

.mega-menu-col .tg-themetabnav li {
  border: 0;
}

.tg-themetabnav li a {
  color: #000;
  display: block;
  position: relative;
  line-height: inherit;
}

.tg-themetabnav li a::after {
  top: 0;
  right: 15px;
  content: '\f105';
  position: absolute;
  font-size: inherit;
  line-height: inherit;
}

.tg-themetabnav li.active a,
.tg-themetabnav li a:hover {
  color: #333;
  background: #f7f7f7;
}

.tg-themetabcontent {
  overflow: hidden;
}

.tg-coursestabs .tg-themetabnav,
.tg-coursestabs .tg-themetabcontent {
  width: 100%;
}

.tg-coursestabs .tg-themetabnav {
  z-index: 2;
  font-size: 16px;
  margin: 0 0 -1px;
  background: none;
  position: relative;
}

.tg-coursestabs .tg-themetabnav li {
  width: auto;
  margin: 0 3px 0 0;
  position: relative;
}

.tg-coursestabs .tg-themetabnav li::before {
  top: 0;
  left: 0;
  width: 0;
  z-index: 3;
  height: 3px;
  content: '';
  position: absolute;
}

.tg-coursestabs .tg-themetabnav li:hover::before,
.tg-coursestabs .tg-themetabnav li.active::before {
  width: 100%;
}

.tg-coursestabs .tg-themetabnav li a {
  width: auto;
  padding: 0 50px;
  overflow: hidden;
  background: #f7f7f7;
  border: 1px solid #ddd;
}

.tg-coursestabs .tg-themetabnav li a::after {
  left: -10px;
  top: -10px;
  right: auto;
  color: #f7f7f7;
  content: '\e9ce';
  font-size: 40px;
  line-height: 32px;
  transform: rotate(-40deg);
}

.tg-coursestabs .tg-themetabnav li:nth-child(2) a::after {
  content: '\e97b';
}

.tg-coursestabs .tg-themetabnav li:nth-child(3) a::after {
  content: '\e920';
}

.tg-coursestabs .tg-themetabnav li:nth-child(4) a::after {
  content: '\e922';
}

.tg-coursestabs .tg-themetabnav li:nth-child(5) a::after {
  content: '\ea2e';
}

.tg-coursestabs .tg-themetabnav li:nth-child(6) a::after {
  content: '\e923';
}

.tg-coursestabs .tg-themetabnav li.active a::after,
.tg-coursestabs .tg-themetabnav li:hover a::after {
  color: #dbdbdb;
}

.tg-coursestabs .tg-themetabnav li:hover a,
.tg-coursestabs .tg-themetabnav li.active a {
  background: #fff;
  border-bottom-color: #fff;
}

.tg-facultydetail {
  width: 100%;
  float: left;
  padding: 0 0 40px;
}

.tg-facultydetail figure {
  width: auto;
  float: left;
  margin: 0 30px 0 0;
}

.dept-img-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
}

.dept-img-wrapper img {
  width: 500px;
  max-width: 100%;
  height: 300px;
  border-radius: 5%;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(255, 255, 255, 0.2);
  border: 5px solid #ffffff;
  transition: all 0.4s ease;
}

.dept-img-wrapper img:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 92, 71, 0.4);
}

.faculty-container {
  padding: 30px 0;
  font-family: 'Inter', sans-serif;
}

.faculty-premium-box {
  position: relative;
  background: #ffffff;
  border-radius: 15px;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
}

.faculty-premium-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.accent-bar {
  width: 6px;
  background: linear-gradient(to bottom, #005c47, #bdc3c7);
  flex-shrink: 0;
}

.content-flex {
  display: flex;
  padding: 30px;
  gap: 40px;
  width: 100%;
}

.profile-frame {
  width: 180px;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-header h4 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0;
}

.rank-tag {
  display: inline-block;
  color: #5c0015;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.qual-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 15px;
}

.degrees-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.degree-pill {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #555;
}

.research-box {
  background: #f0f4f8;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  border-left: 4px solid #2c3e50;
  margin-bottom: 20px;
}

.email-link {
  color: #2c3e50 !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.email-link i {
  color: #5c0015;
}

@media (max-width: 768px) {
  .content-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .degrees-row {
    justify-content: center;
  }

  .accent-bar {
    width: 100%;
    height: 6px;
  }

  .faculty-premium-box {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .dept-img-wrapper img {
    width: 100%;
    height: auto;
    max-height: 280px;
  }

  .tg-coursestabs .tg-themetabnav li {
    width: 100% !important;
    margin: 0 0 5px 0 !important;
  }

  .tg-coursestabs .tg-themetabnav li a {
    padding: 10px 20px !important;
    text-align: left !important;
  }

  .content-flex {
    padding: 15px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
}
