:root {
  --nsu-primary: #1a265c;
  --nsu-accent: #2a5caa;
  --nsu-accent-light: #3b7ed8;
  --card-bg: #ffffff;
  --muted: #6b7280;
  --bg-light: #f8fbff;
  --border-color: #e1e9ff;
}

/* Local font loading */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans/PlusJakartaSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans/PlusJakartaSans-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans/PlusJakartaSans-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif !important;
}

/* Main profile card */
.faculty-profile .profile-card {
  background: var(--card-bg);
  border: 1px solid #f0f5ff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(16, 50, 110, 0.12);
  padding: 40px;
  position: relative;
  transition: box-shadow 0.3s ease;
  z-index: 2;
}

.faculty-profile .profile-card:hover {
  box-shadow: 0 30px 80px rgba(16, 50, 110, 0.15);
}

/* Faculty image card */
.photo {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border-left: 4px solid var(--nsu-accent);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(6, 23, 66, 0.12);
  margin-bottom: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 12px;
  position: relative;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  width: 100%;
}

.photo:hover {
  box-shadow: 0 12px 32px rgba(6, 23, 66, 0.2);
  transform: translateY(-4px);
}

.photo img {
  border-radius: 8px;
  display: block;
  height: auto;
  transition: transform 0.3s ease;
  width: 100%;
}

.photo:hover img {
  transform: scale(1.02);
}

/* Faculty summary panel */
.faculty_intro {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(6, 23, 66, 0.12);
  min-height: 23rem;
  padding: 32px;
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.faculty_intro:hover {
  border-color: #2a5caa70;
  box-shadow: 0 8px 32px rgba(6, 23, 66, 0.2);
}

.faculty_intro p {
  color: #333333;
  line-height: 1.8;
  margin-bottom: 16px;
}

.faculty_intro p:last-child {
  margin-bottom: 0;
}

.faculty_intro strong {
  color: #002147;
  font-weight: 600;
}

.faculty_intro a {
  border-bottom: 2px solid transparent;
  color: var(--nsu-accent);
  font-weight: 600;
  text-decoration: none !important;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.faculty_intro a:hover {
  border-bottom-color: var(--nsu-accent);
  color: #002147;
}

/* Vertical tab navigation */
.faculty-tabs .nav-pills {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  gap: 10px;
  padding: 20px;
}

.faculty-tabs .nav-link {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--nsu-primary);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0;
  overflow: hidden;
  padding: 14px 20px;
  position: relative;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.faculty-tabs .nav-link:hover {
  background-color: rgba(42, 92, 170, 0.08);
  border-color: var(--nsu-accent);
  color: var(--nsu-accent);
  transform: translateX(4px);
}

.faculty-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--nsu-accent), var(--nsu-accent-light));
  border-color: var(--nsu-accent);
  box-shadow: 0 8px 20px rgba(42, 92, 170, 0.25);
  color: #ffffff;
}

/* Right-side tab content */
.tab-content {
  animation: fadeIn 0.4s ease;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(16, 50, 110, 0.08);
  min-height: 400px;
  padding: 30px;
}

.tab-pane {
  animation: fadeIn 0.4s ease;
}

.tab-content h6 {
  border-bottom: 3px solid var(--nsu-accent);
  color: var(--nsu-primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
}

.tab-content p {
  color: #555555;
  line-height: 1.8;
  margin-bottom: 15px;
}

.tab-content ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.tab-content li {
  color: #555555;
  line-height: 1.7;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.tab-content li:hover {
  color: var(--nsu-accent);
}

.tab-content li::marker {
  color: var(--nsu-accent);
  font-weight: 600;
}

/* Simple entrance animation for tab panels */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet and below */
@media (max-width: 768px) {
  .faculty-profile .profile-card {
    padding: 25px;
  }

  .photo {
    box-shadow: 0 10px 30px rgba(42, 92, 170, 0.15);
    margin: 0 auto;
    max-width: 220px;
  }

  .faculty-tabs .nav-pills {
    border-radius: 12px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
  }

  .faculty-tabs .nav-link {
    flex: 1;
    font-size: 0.8rem;
    min-width: 110px;
    padding: 12px 14px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: auto;
  }

  .tab-content {
    min-height: 300px;
    padding: 20px;
  }
}

/* Small mobile */
@media (max-width: 576px) {
  .faculty-profile .profile-card {
    border-radius: 12px;
    padding: 20px;
  }

  .photo {
    margin-bottom: 12px;
    max-width: 220px;
  }

  .faculty-tabs .nav-link {
    font-size: 0.75rem;
    padding: 10px 12px;
  }

  .tab-content {
    padding: 15px;
  }

  .tab-content h6 {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .tab-content li {
    font-size: 0.9rem;
  }
}

/* Wide desktop */
@media (min-width: 1400px) {
  .container {
    max-width: 1420px !important;
  }

  .faculty-profile .profile-card {
    padding: 50px;
  }
}
