/* Modern Team Card Design */
.team-card-new {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  border-bottom: 4px solid var(--color-primary) !important;
}

.team-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.team-card-new figure {
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.team-card-new figure img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.team-card-new:hover figure img {
  transform: scale(1.08);
}

.team-card-new figcaption {
  padding: 1rem !important;
  background: #fff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}


.team-card-new h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--color-primary);
}

.team-card-new p {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent) !important;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-card-new.team-card-compact figcaption {
  padding: 0.7rem !important;
}

.team-card-new.team-card-compact h4 {
  font-size: 0.88rem;
  margin-bottom: 3px;
}

.team-card-new.team-card-compact p {
  font-size: 0.66rem;
  line-height: 1.2;

}

.team-card-new.team-card-compact .social-icons-dark a,
.social-icons-sm a {
  width: 28px;
  height: 28px;
  font-size: 0.78rem;
  margin-right: 5px;
}

.team-card-new.team-card-compact figure img {
  aspect-ratio: 4 / 4.6;
}


/* Departmental Heads Small Card Adjustments */
.col-6-row .team-card-new figcaption {
  padding: 0.8rem !important;
}

.col-6-row .team-card-new h4 {
  font-size: 0.9rem;
}

.col-6-row .team-card-new p {
  font-size: 0.72rem;
}

/* 6 Column Layout for Management Section */
@media (min-width: 1200px) {
  .col-6-row {
    flex: 0 0 auto;
    width: 16.66666667%;
    padding: 0 10px;
  }
}

@media (max-width: 1199px) and (min-width: 992px) {
  .col-6-row {
    flex: 0 0 auto;
    width: 25%;
    padding: 0 10px;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .col-6-row {
    flex: 0 0 auto;
    width: 33.33333333%;
    padding: 0 10px;
  }
}

@media (max-width: 767px) and (min-width: 480px) {
  .col-6-row {
    flex: 0 0 auto;
    width: 50%;
    padding: 0 8px;
  }
}

@media (max-width: 479px) {
  .col-6-row {
    flex: 0 0 auto;
    width: 100%;
    padding: 0 8px;
  }
}

/* Social Icons for Light Backgrounds */
.social-icons-dark a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #fff;
  border-radius: 50%;
  margin-right: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* Facebook Brand Color */
.social-icons-dark a:has(i.bi-facebook) {
  background-color: #1877F2;
}

.social-icons-dark a:has(i.bi-facebook):hover {
  background-color: #0d66d0;
  transform: translateY(-3px);
}

/* Twitter/X Brand Color */
.social-icons-dark a:has(i.bi-twitter-x) {
  background-color: #000000;
}

.social-icons-dark a:has(i.bi-twitter-x):hover {
  background-color: #333333;
  transform: translateY(-3px);
}

/* LinkedIn Brand Color */
.social-icons-dark a:has(i.bi-linkedin) {
  background-color: #0A66C2;
}

.social-icons-dark a:has(i.bi-linkedin):hover {
  background-color: #084a91;
  transform: translateY(-3px);
}

/* Instagram Brand Color (Gradient) */
.social-icons-dark a:has(i.bi-instagram) {
  background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 100%);
}

.social-icons-dark a:has(i.bi-instagram):hover {
  filter: brightness(0.9);
  transform: translateY(-3px);
}