:root {
    --primary-blue: #052c65;
    --accent-blue: #0d6efd;
    --light-blue: #e8f1ff;
    --success-green: #10b981;
    --soft-success: #ecfdf5;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --heading-gradient: linear-gradient(90deg, #052c65 0%, #0d6efd 100%);
    --shadow-soft: 0 4px 20px rgba(5, 44, 101, 0.04);
    --shadow-medium: 0 10px 30px rgba(5, 44, 101, 0.08);
    --shadow-hover: 0 20px 40px rgba(13, 110, 253, 0.12);
    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 20px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.lightbox-active {
    overflow: hidden !important;
}

.heading-line {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue) 0%, var(--primary-blue) 100%);
  border-radius: 4px;
}

.dept-title-main {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.dept-subtitle-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Tab Container and Navigation Scroll Override */
.dept-tabs-container {
  background: var(--card-bg);
  border-radius: var(--border-radius-lg);
  padding: 35px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

.dept-nav-tabs-custom {
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 35px;
  display: flex;
  flex-wrap: wrap; /* Wrap on desktop to show all links */
  gap: 12px;
  padding-bottom: 15px;
}

.dept-nav-link-custom {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 30px; /* Modern Pill shape */
  transition: var(--transition-smooth);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dept-nav-link-custom * {
  pointer-events: none;
}

.dept-nav-link-custom i {
  font-size: 1rem;
  opacity: 0.8;
}

.dept-nav-link-custom:hover {
  background: #f1f5f9;
  color: var(--primary-blue);
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.dept-nav-link-custom.dept-active-tab-link {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.25);
}

.dept-tab-content-area {
  animation: fadeInContent 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dept-content-hidden {
  display: none;
}

.dept-section-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.dept-section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--primary-blue));
  border-radius: 2px;
}

.dept-text-paragraph {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 20px;
  text-align: justify;
}

/* Vision & Mission Styling */
.dept-vision-mission-box {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: var(--border-radius-md);
  padding: 28px 32px;
  margin: 25px 0;
  box-shadow: var(--shadow-soft);
  border-left: 5px solid var(--accent-blue);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--accent-blue);
}

.dept-subsection-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dept-subsection-title i {
  color: var(--accent-blue);
  font-size: 1.6rem;
}

.dept-list-items {
  list-style: none;
  padding-left: 0;
}

.dept-list-items li {
  padding: 10px 0 10px 32px;
  position: relative;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-main);
}

.dept-list-items li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-size: 1rem;
  top: 12px;
}

/* Faculty Tables Styling */
.dept-faculty-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

.dept-faculty-table thead {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #0d47a1 100%);
  color: #ffffff;
}

.dept-faculty-table th {
  padding: 16px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dept-faculty-table tbody tr {
  background: #ffffff;
  transition: var(--transition-smooth);
}

.dept-faculty-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.dept-faculty-table tbody tr:hover {
  background: #f0f7ff;
  transform: scale(1.002);
}

.dept-faculty-table td {
  padding: 16px 18px;
  text-align: center;
  color: var(--text-main);
  font-size: 0.98rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.dept-faculty-table tr:last-child td {
  border-bottom: none;
}

.dept-faculty-photo {
  width: 95px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 12px rgba(5, 44, 101, 0.12);
  transition: var(--transition-smooth);
}

.dept-faculty-photo:hover {
  transform: scale(1.06);
}

/* Lab Section and Image Grid Styling */
.dept-lab-section {
  margin-bottom: 40px;
}

.dept-lab-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dept-lab-title i {
  color: var(--accent-blue);
}

.dept-lab-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

/* Custom Overlays for Grids with only 1 child */
.dept-lab-images-grid:has(> :only-child) {
  display: flex;
  justify-content: center;
}

.dept-lab-images-grid:has(> :only-child) .dept-lab-image-card {
  max-width: 450px; /* Standard Card width */
  width: 100%;
}

.dept-lab-images-grid:has(> :only-child) .dept-lab-image-card img {
  height: auto;
  max-height: 520px;
  width: 100%;
  object-fit: cover;
}

.dept-lab-image-card {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-color);
  position: relative;
  background: #ffffff;
  transition: var(--transition-smooth);
}

.dept-lab-image-card::after {
  content: "\f00e"; /* FontAwesome Search-Plus icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 44, 101, 0.65);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.dept-lab-image-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(13, 110, 253, 0.2);
}

.dept-lab-image-card:hover::after {
  opacity: 1;
}

.dept-lab-image-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dept-lab-image-card:hover img {
  transform: scale(1.04);
}

/* Lightbox Modal */
.dept-lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
}

.dept-lightbox-overlay.show-lightbox {
  display: flex;
}

.dept-lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dept-lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--border-radius-md);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
}

.dept-lightbox-close {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 2.2rem;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  z-index: 10001;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dept-lightbox-close:hover {
  background: #ef4444;
  border-color: transparent;
  transform: rotate(90deg);
}

.dept-lightbox-prev,
.dept-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  z-index: 10001;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dept-lightbox-prev:hover,
.dept-lightbox-next:hover {
  background: var(--accent-blue);
  border-color: transparent;
  transform: translateY(-50%) scale(1.1);
}

.dept-lightbox-prev {
  left: 25px;
}

.dept-lightbox-next {
  right: 25px;
}

.dept-lightbox-counter {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .dept-lightbox-prev,
  .dept-lightbox-next {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
  }

  .dept-lightbox-close {
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
  }
}

.dept-activity-section {
  margin-bottom: 40px;
}

.dept-activity-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 20px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--light-blue) 0%, rgba(13, 110, 253, 0.08) 100%);
  border-radius: var(--border-radius-sm);
  display: inline-block;
  border-left: 4px solid var(--accent-blue);
}

/* Empty Content / Placeholder */
.dept-empty-content {
  text-align: center;
  padding: 55px 30px;
  color: var(--text-muted);
  background: #f8fafc;
  border-radius: var(--border-radius-md);
  border: 2px dashed var(--border-color);
}

.dept-empty-content i {
  font-size: 3.5rem;
  color: #cbd5e1;
  margin-bottom: 18px;
}

.dept-empty-content p {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 768px) {
  .dept-title-main {
    font-size: 2.1rem;
  }

  .dept-nav-tabs-custom {
    flex-wrap: nowrap; /* Horizontal scrolling on smaller screens */
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }
  .dept-nav-tabs-custom::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }

  .dept-nav-link-custom {
    padding: 8px 18px;
    font-size: 0.88rem;
  }

  .dept-faculty-table {
    font-size: 0.85rem;
  }

  .dept-faculty-photo {
    width: 75px;
    height: 95px;
  }

  .dept-lab-images-grid {
    grid-template-columns: 1fr;
  }
}

/* DataTables & Data Customization */
.dataTables_filter {
    display: block !important;
    float: right !important;
    margin-bottom: 15px;
}

.dataTables_length {
    display: block !important;
    float: left !important;
    margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_paginate {
    margin-top: 15px !important;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    outline: none;
    transition: var(--transition-smooth);
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* Stats Counters Styling */
.stats-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border-color);
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--light-blue) 0%, rgba(13, 110, 253, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 24px;
    color: var(--primary-blue);
    transition: var(--transition-smooth);
}

.stat-card:hover .stat-icon {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: #ffffff;
    transform: scale(1.08) rotate(360deg);
}

.stat-number {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-top: 12px;
    font-weight: 800;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Reports Section */
.records-section {
    background-color: #ffffff;
}

.record-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 220px at var(--x, 0px) var(--y, 0px), rgba(13, 110, 253, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    pointer-events: none;
}

.record-card:hover .card-glow {
    opacity: 1;
}

.record-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(13, 110, 253, 0.25);
}

.record-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: var(--transition-smooth);
}

.record-card:hover .record-icon-wrapper {
    background: #ef4444;
    color: #ffffff;
    transform: scale(1.08) rotate(5deg);
}

.record-year {
    color: var(--primary-blue);
    font-size: 1.35rem;
    font-weight: 700;
}

.btn-view {
    background: var(--primary-blue);
    color: #ffffff;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 18px;
    transition: var(--transition-smooth);
    border: 1px solid var(--primary-blue);
}

.btn-view:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.btn-download {
    background: var(--light-blue);
    color: var(--accent-blue);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-download:hover {
    background: var(--accent-blue);
    color: #ffffff;
    border-color: var(--accent-blue);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

/* Pillars Section */
.pillar-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    padding: 30px 24px;
}

.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-blue);
}

.pillar-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--light-blue);
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto;
    transition: var(--transition-smooth);
}

.pillar-card:hover .pillar-icon {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
    color: #ffffff;
    transform: scale(1.1) rotate(15deg);
}

/* Recruiters Grid Styling */
.recruiter-badge {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 12px rgba(5, 44, 101, 0.015);
    transition: var(--transition-smooth);
    height: 100%;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.recruiter-badge:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-blue);
}

.recruiter-logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 1.2px;
    transition: var(--transition-smooth);
    margin-bottom: 4px;
}

.recruiter-badge:hover .recruiter-logo {
    color: var(--primary-blue);
    transform: scale(1.05);
}

.recruiter-name {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.recruiter-badge:hover .recruiter-name {
    color: var(--accent-blue);
}

/* FAQ Accordion Style */
.accordion-flush .accordion-item {
    border-bottom: 1px solid var(--border-color);
    background: transparent;
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-blue);
    color: var(--primary-blue);
    box-shadow: none;
}

.accordion-button {
    padding: 18px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

/* Labs Grid and Card Overhaul */
.dept-lab-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.dept-lab-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dept-lab-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(13, 110, 253, 0.25);
}

.dept-lab-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.dept-lab-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.dept-lab-card-image:hover img {
  transform: scale(1.05);
}

.dept-lab-card-image::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5, 44, 101, 0.65);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.dept-lab-card-image:hover::after {
  opacity: 1;
}

.dept-lab-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dept-lab-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 15px;
  line-height: 1.45;
  min-height: 2.8em;
  display: flex;
  align-items: center;
}

.dept-lab-card-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dept-lab-card-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  font-size: 0.98rem;
  color: var(--text-main);
  line-height: 1.65;
}

.dept-lab-card-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.dept-lab-card-list li::before {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-size: 0.9rem;
}
