/* Programme department — seven content sections */

.prog-dept-nav {
  position: sticky;
  top: var(--header-h, 88px);
  z-index: 900;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 246, 250, 0.97) 100%);
  border-bottom: 1px solid rgba(30, 58, 95, 0.1);
  box-shadow: 0 6px 24px rgba(15, 39, 68, 0.06);
  backdrop-filter: blur(12px);
}

.prog-dept-nav::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-light) 50%, var(--gold) 80%, transparent);
  opacity: 0.55;
}

.prog-dept-nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 14px 12px;
  max-width: 100%;
}

.prog-dept-nav-link {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(30, 58, 95, 0.06);
  border: 1px solid rgba(30, 58, 95, 0.14);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.prog-dept-nav-link:hover,
.prog-dept-nav-link:focus-visible {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  box-shadow: 0 6px 16px rgba(30, 58, 95, 0.2);
  transform: translateY(-1px);
}

.prog-dept-nav-link.is-active {
  background: var(--gold);
  color: var(--teal-dark);
  border-color: var(--gold);
  box-shadow: 0 6px 18px rgba(224, 123, 57, 0.28);
  font-weight: 700;
}

.prog-dept-section {
  position: relative;
  padding: 88px 0;
  scroll-margin-top: calc(var(--header-h, 88px) + 64px);
  overflow: hidden;
}

.prog-dept-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: min(42vw, 520px);
  height: 100%;
  background: radial-gradient(circle at top right, rgba(201, 162, 39, 0.08), transparent 68%);
  pointer-events: none;
}

.prog-dept-section--alt {
  background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
}

.prog-dept-section--alt::before {
  background: radial-gradient(circle at top left, rgba(30, 58, 95, 0.06), transparent 70%);
  right: auto;
  left: 0;
}

.prog-dept-section--dark {
  background: linear-gradient(135deg, #0b1f38 0%, #1e3a5f 48%, #16304f 100%);
  color: var(--white);
}

.prog-dept-section--dark::before {
  background: radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.14), transparent 55%);
}

.prog-dept-section--dark .mce-split-label {
  color: var(--gold-light);
}

.prog-dept-section--dark .prog-dept-section-head p {
  color: rgba(255, 255, 255, 0.84);
}

.prog-dept-section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.prog-dept-section-head .mce-split-label {
  color: var(--gold);
}

.prog-dept-section-head h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 10px 0 14px;
  color: #12263f;
}

.prog-dept-section--dark .prog-dept-section-head h2 {
  color: var(--white);
}

.prog-dept-section-head p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.75;
  max-width: 640px;
}

.prog-dept-about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.prog-dept-about-grid .mce-split-label {
  color: var(--gold);
}

.prog-dept-about-grid h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 10px 0 18px;
  color: #12263f;
}

.prog-dept-about-grid > div > p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
  max-width: 560px;
}

.prog-dept-about-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 39, 68, 0.18);
}

.prog-dept-about-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: inherit;
  pointer-events: none;
}

.prog-dept-about-media img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 320px;
  object-fit: cover;
}

.prog-dept-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}

.prog-dept-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 18px;
  text-align: center;
  border-right: 1px solid var(--gray-200);
}

.prog-dept-stat:last-child {
  border-right: none;
}

.prog-dept-stat i {
  color: var(--gold);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.prog-dept-stat strong {
  font-size: 1rem;
  font-weight: 700;
  color: #12263f;
}

.prog-dept-stat span {
  font-size: 0.74rem;
  color: var(--gray-600);
  line-height: 1.4;
}

.prog-dept-people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.prog-dept-person-card {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(30, 58, 95, 0.08);
  border-radius: 18px;
  padding: 28px 22px 24px;
  text-align: center;
  box-shadow: 0 14px 40px rgba(15, 39, 68, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.prog-dept-person-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--teal-light));
}

.prog-dept-carousel-slide:hover .prog-dept-person-card {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(15, 39, 68, 0.14);
}

.prog-dept-carousel-slide:hover .prog-dept-mou-card {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 39, 68, 0.12);
}

.prog-dept-person-photo {
  width: 104px;
  height: 104px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #edf2f7, #dbe4ee);
  border: 4px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 24px rgba(30, 58, 95, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prog-dept-person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prog-dept-person-photo span {
  font-size: 1.8rem;
  color: var(--teal-light);
}

.prog-dept-person-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #12263f;
  margin-bottom: 6px;
}

.prog-dept-person-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.prog-dept-person-bio {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--gray-600);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prog-dept-section-head--center {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.prog-dept-section-head--center p {
  margin-left: auto;
  margin-right: auto;
}

.prog-dept-section--activities {
  background: linear-gradient(180deg, #f4f8fb 0%, #e9f1f8 52%, #f7fafc 100%);
}

.prog-dept-section--activities::before {
  background: radial-gradient(circle at 15% 30%, rgba(30, 58, 95, 0.07), transparent 58%);
  left: 0;
  right: auto;
}

.prog-dept-facility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.prog-dept-facility-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(30, 58, 95, 0.08);
  box-shadow: 0 16px 40px rgba(15, 39, 68, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.prog-dept-facility-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(15, 39, 68, 0.14);
}

.prog-dept-facility-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.prog-dept-facility-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(11, 31, 56, 0.45) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.prog-dept-facility-card:hover .prog-dept-facility-img::after {
  opacity: 1;
}

.prog-dept-facility-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.prog-dept-facility-card:hover .prog-dept-facility-img img {
  transform: scale(1.05);
}

.prog-dept-facility-body {
  padding: 22px 24px 26px;
}

.prog-dept-facility-body h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #12263f;
  margin-bottom: 10px;
}

.prog-dept-facility-body p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--gray-600);
}

/* Shared programme department carousel (4 per row) */

.prog-dept-carousel-wrap {
  margin-top: 8px;
}

.prog-dept-carousel {
  display: flex;
  align-items: center;
  gap: 14px;
}

.prog-dept-carousel-viewport {
  flex: 1;
  overflow: hidden;
}

.prog-dept-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.prog-dept-carousel-slide {
  flex: 0 0 auto;
  min-width: 0;
}

.prog-dept-carousel-slide .prog-dept-person-card,
.prog-dept-carousel-slide .prog-dept-mou-card,
.prog-dept-carousel-slide .prog-dept-activity-slide,
.prog-dept-carousel-slide .prog-dept-news-event-slide {
  height: 100%;
}

.prog-dept-carousel-btn {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(30, 58, 95, 0.12);
  background: var(--white);
  color: var(--teal-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 8px 20px rgba(15, 39, 68, 0.08);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.prog-dept-carousel-btn:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  transform: scale(1.05);
}

.prog-dept-carousel-btn.is-hidden {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.prog-dept-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.prog-dept-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(30, 58, 95, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.prog-dept-carousel-dot.is-active {
  background: var(--gold);
  transform: scale(1.25);
}

/* Activity slides inside carousel */

.prog-dept-activity-slide {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(30, 58, 95, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(15, 39, 68, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.prog-dept-carousel-slide:hover .prog-dept-activity-slide {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(15, 39, 68, 0.14);
}

.prog-dept-activity-slide-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #edf2f7, #dbe4ee);
}

.prog-dept-activity-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.prog-dept-activity-slide:hover .prog-dept-activity-slide-media img {
  transform: scale(1.05);
}

.prog-dept-activity-slide-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--teal) 0%, var(--teal-dark) 100%);
}

.prog-dept-activity-slide-media--placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-light);
  font-size: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.prog-dept-activity-slide-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 18px 22px;
}

.prog-dept-activity-slide-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #12263f;
  line-height: 1.35;
  margin-bottom: 8px;
}

.prog-dept-activity-slide-body p {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--gray-600);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prog-dept-activity-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(30, 58, 95, 0.08);
}

.prog-dept-section--news-events {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.prog-dept-news-event-slide .prog-dept-activity-slide-body {
  gap: 0.75rem;
}

.prog-dept-news-event-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.prog-dept-news-event-link:hover {
  color: var(--teal-dark);
  gap: 0.65rem;
}

.prog-dept-carousel-slide .prog-dept-news-event-slide {
  height: 100%;
}

.prog-dept-mou-card--carousel {
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100%;
  padding: 24px 20px;
}

.prog-dept-mou-card--carousel .prog-dept-mou-logo {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
}

.prog-dept-mou-card--carousel .prog-dept-mou-body p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prog-dept-placement-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

.prog-dept-placement-stat {
  text-align: center;
  padding: 26px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.prog-dept-placement-stat strong {
  display: block;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.prog-dept-placement-stat span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.84);
}

.prog-dept-achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.prog-dept-achievement-card {
  padding: 24px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, transform 0.2s ease;
}

.prog-dept-achievement-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.prog-dept-achievement-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(201, 162, 39, 0.16);
  color: var(--gold-light);
  margin-bottom: 14px;
}

.prog-dept-achievement-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.prog-dept-achievement-card p {
  font-size: 0.86rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
}

.prog-dept-placement-records {
  margin-top: 40px;
  display: grid;
  gap: 28px;
}

.prog-dept-placement-year-title {
  margin: 0 0 14px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--gold-light);
}

.prog-dept-placement-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.prog-dept-placement-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.prog-dept-placement-table th,
.prog-dept-placement-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
}

.prog-dept-placement-table th {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-light);
  font-weight: 600;
  white-space: nowrap;
}

.prog-dept-placement-table td {
  color: rgba(255, 255, 255, 0.9);
}

.prog-dept-placement-table tbody tr:last-child td {
  border-bottom: none;
}

.prog-dept-placement-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 768px) {
  .prog-dept-placement-table th,
  .prog-dept-placement-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }
}

.prog-dept-mou-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.prog-dept-mou-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  background: var(--white);
  border: 1px solid rgba(30, 58, 95, 0.08);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 39, 68, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prog-dept-mou-logo {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(145deg, #f4f7fb, #e8edf4);
  border: 1px solid rgba(30, 58, 95, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.prog-dept-mou-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.prog-dept-mou-logo span {
  color: var(--teal-light);
  font-size: 1.35rem;
}

.prog-dept-mou-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #12263f;
  margin-bottom: 6px;
}

.prog-dept-mou-year {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.prog-dept-mou-body p {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--gray-600);
}

@media (max-width: 992px) {
  .prog-dept-about-grid,
  .prog-dept-facility-grid {
    grid-template-columns: 1fr;
  }

  .prog-dept-section {
    padding: 72px 0;
  }
}

@media (max-width: 640px) {
  .prog-dept-section {
    padding: 56px 0;
  }

  .prog-dept-about-grid {
    gap: 32px;
  }

  .prog-dept-carousel {
    gap: 10px;
  }

  .prog-dept-carousel-btn {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    font-size: 0.75rem;
  }

  .prog-dept-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .prog-dept-stat {
    border-right: none;
    padding: 0;
  }

  .prog-dept-nav-inner {
    gap: 7px 8px;
    padding: 12px 8px;
  }

  .prog-dept-nav-link {
    font-size: 0.64rem;
    padding: 8px 12px;
  }
}
