/* Department Page Specific Styles */

/* Department Title in Hero Banner */
.department-title {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  /* text-transform: uppercase; */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  margin-bottom: 0;
  animation: fadeInUp 1s;
}

@media (max-width: 991px) {
  .department-title {
    font-size: 34px;
    letter-spacing: 1.5px;
  }
}

@media (max-width: 576px) {
  .department-title {
    font-size: 24px;
    letter-spacing: 1px;
  }
}

/* Department About Text */
.dept-about-text {
  color: #333;
  font-size: 18px;
  line-height: 1.8;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-align: justify;
}

/* Section Headings - Unified Style */
.section-heading {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: #333;
}

.section-heading-white {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: #fff;
}

/* About Section */
#about h2,
#about p {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#about h2 {
  font-weight: 600;
}

#about p {
  font-weight: 400;
  text-align: justify;
}

/* Statistics Section Styles */
.stats-section {
  background: transparent;
  padding: 20px 0 60px 0;
  margin: 0;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 48px;
  font-weight: bold;
  color: #0c4da2;
  margin-bottom: 10px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.stat-label {
  font-size: 16px;
  color: #333;
  font-weight: 500;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Vision and Mission Section Styles */
.vision-mission-section {
  background: transparent;
  padding: 60px 0;
}

.vision-mission-box {
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  background: #fff;
  border-top: 5px solid #0c4da2;
  text-align: center;
}

.vision-mission-box h3 {
  color: #000;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.vision-mission-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.vision-mission-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.vision-mission-icon i {
  font-size: 60px;
  color: #0c4da2;
  display: block;
}

.vision-mission-icon svg,
.vision-mission-icon img {
  width: 60px;
  height: 60px;
  display: block;
}

.vision-mission-text p {
  color: #333;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 0;
  margin-top: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.vision-mission-text ul {
  color: #333;
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  padding-left: 20px;
  margin-bottom: 0;
}

.vision-mission-text ul li {
  margin-bottom: 15px;
}

.vision-mission-text ul li:last-child {
  margin-bottom: 0;
}

/* Program Outcomes List Styles */
.po-list {
  color: #333;
  font-size: 18px;
  line-height: 2;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  padding-left: 0;
  list-style-type: none;
}

.po-list li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
}

.po-list li::before {
  content: "\f280";
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  top: 2px;
  color: #0C4DA2;
  font-size: 16px;
  font-weight: bold;
}

.po-list li:last-child {
  margin-bottom: 0;
}

/* Faculty Card Styles */
.faculty-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.faculty-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.faculty-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 116.67%;
  /* 350/300 = 1.1667 aspect ratio */
  overflow: hidden;
}

.faculty-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faculty-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #d4af37;
  color: #fff;
  padding: 5px 15px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.faculty-info {
  padding: 20px;
}

.faculty-name {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #333;
  margin-bottom: 15px;
}

.faculty-btn {
  background-color: #0c4da2;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.faculty-btn:hover {
  background-color: #083a7a;
}

.faculty-btn i {
  font-size: 18px;
}

/* Welcome Message Section Styles */
.welcome-section {
  background: #0c4da2;
  padding: 60px 0;
}

.hod-photo-container {
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.hod-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #ffc107;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hod-name {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #fff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.hod-qualification {
  font-size: 16px;
  margin-bottom: 5px;
  color: #e0e0e0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.hod-designation {
  font-size: 18px;
  font-weight: 500;
  color: #ffc107;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.welcome-message {
  color: #fff;
  display: flex;
  align-items: center;
  height: 100%;
}

.welcome-message h3 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
}

.welcome-message p {
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
  color: #fff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .stat-number {
    font-size: 36px;
  }

  .stat-label {
    font-size: 14px;
  }

  .vision-mission-box {
    margin-bottom: 20px;
    padding: 30px;
  }

  .vision-mission-icon i {
    font-size: 60px;
  }

  .vision-mission-content {
    gap: 15px;
  }

  .po-list {
    font-size: 16px;
    padding-left: 25px;
  }

  .faculty-name {
    font-size: 18px;
  }

  .faculty-btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .welcome-section {
    padding: 40px 0;
  }

  .hod-photo-container {
    margin-bottom: 30px;
  }

  .welcome-message h3 {
    font-size: 26px;
    text-align: center;
  }

  /* Laboratory tab mobile fixes */
  .section-heading {
    font-size: 24px;
  }

  .gallery-placeholder {
    height: auto !important;
    aspect-ratio: 4/3;
    width: 100%;
  }

  .gallery-placeholder.ms-auto {
    margin-left: 0 !important;
  }

  #hydraulicsLabCarousel,
  .carousel.slide {
    height: 250px !important;
  }

}

/* =============================================
   DEPARTMENT TABS / PILLS LAYOUT
   ============================================= */

/* Outer section */
.dept-tabs-section {
  background: #fff;
}

/* Pills wrapper — yellow/gold design, normal flow by default */
.dept-pills-wrapper {
  background: #e4b316;
  position: relative;
  z-index: 990;
  border-top: 2px solid #b8920e;
  border-bottom: 2px solid #b8920e;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
}

/* When JS adds .is-sticky — becomes fixed beneath the main menu */
.dept-pills-wrapper.is-sticky {
  position: fixed;
  left: 0;
  right: 0;
  /* top is set dynamically by JS */
}

.dept-pills-wrapper::-webkit-scrollbar {
  display: none;
}

/* Spacer: hidden by default, shown only when pills bar is sticky */
.dept-pills-spacer {
  display: none;
}

.dept-pills-wrapper.is-sticky ~ .dept-pills-spacer,
.dept-pills-spacer.active {
  display: block;
}

/* Pills list */
.dept-pills {
  display: flex;
  flex-wrap: nowrap !important;
  /* Force single line */
  gap: 30px;
  /* Matched to secondary-navbar spacing */
  padding: 5px 0;
  /* Add top/bottom padding inside wrapper */
  margin: 0;
  list-style: none;
  justify-content: center;
  min-width: max-content !important;
  /* Ensure content forces overflow */
  width: 100%;
}

/* Individual pill button */
.dept-pill {
  background: transparent;
  border: none;
  color: #1a1a1a;
  padding: 6px 10px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.2px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  border-radius: 0;
}

/* Remove old border separators */
.dept-pill:first-child {
  border-left: none;
}

.dept-pill i {
  font-size: 15px;
  color: #0c4da2;
}

.dept-pill:hover i,
.dept-pill.active i,
.dept-pill[aria-selected="true"] i {
  color: #0c4da2;
}

/* Underline Animation - Center Expand */
.dept-pill::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #0c4da2;
  transform: scaleX(0);
  transform-origin: bottom center;
  transition: transform 0.3s ease;
}

.dept-pill:hover::after,
.dept-pill.active::after,
.dept-pill[aria-selected="true"]::after {
  transform: scaleX(1);
}

.dept-pill:hover {
  background: transparent;
  color: #000;
}

.dept-pill.active,
.dept-pill[aria-selected="true"] {
  background: transparent;
  color: #000;
  font-weight: 700;
}

/* Icon Swap Logic */
.dept-pill .icon-fill {
  display: none;
}

.dept-pill:hover .icon-outline,
.dept-pill.active .icon-outline,
.dept-pill[aria-selected="true"] .icon-outline {
  display: none;
}

.dept-pill:hover .icon-fill,
.dept-pill.active .icon-fill,
.dept-pill[aria-selected="true"] .icon-fill {
  display: inline-block;
}

/* Tab content area */
.dept-tab-content {
  min-height: 60vh;
}

/* Content section padding */
.content-section {
  padding: 60px 0;
  background: #fff;
}

/* Info cards (Laboratory, Alumni, MoU, etc.) */
.dept-info-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px 25px;
  box-shadow: 0 2px 12px rgba(12, 77, 162, 0.1);
  height: 100%;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border-top: 4px solid #0c4da2;
}

.dept-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(12, 77, 162, 0.18);
}

.dept-info-icon {
  font-size: 40px;
  color: #0c4da2;
  margin-bottom: 15px;
}

.dept-info-card h5 {
  font-size: 18px;
  font-weight: 700;
  color: #1a3a6b;
  margin-bottom: 10px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.dept-info-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Gallery placeholder tiles */
.gallery-placeholder {
  background: #e0e8f2;
  border-radius: 8px;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #0c4da2;
  font-size: 14px;
  font-weight: 600;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  transition: background 0.2s ease;
}

.gallery-placeholder i {
  font-size: 36px;
  opacity: 0.6;
}

.gallery-placeholder:hover {
  background: #c8d8ef;
}

/* Custom Table Styles */
.table-head-primary {
  background-color: #0c4da2 !important;
}

.table-head-primary th {
  background-color: #0c4da2 !important;
  color: #fff !important;
  border-color: #0a3d82 !important;
}

/* Responsive: pills on small screens */
@media (max-width: 991px) {
  .dept-pills {
    justify-content: flex-start;
  }

  .dept-pill {
    padding: 6px 10px;
    font-size: 12px;
    flex-shrink: 0 !important;
    /* Force no shrinking */
  }

  .dept-pill i {
    font-size: 13px;
  }

  .content-section {
    padding: 40px 0;
  }

  .dept-info-card {
    padding: 20px 18px;
  }
}

/* Laboratory Content Text */
.lab-content-text {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.8;
  color: #333;
}

/* Alumni Card Styles */
.alumni-card {
  border: 1px solid #dee2e6;
  border-radius: 12px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  background: #fff;
  overflow: hidden;
}

.alumni-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.alumni-img-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #f8f9fa;
  padding: 20px;
  border-right: 1px solid #dee2e6;
}

.alumni-year {
  margin-top: 15px;
  font-weight: 700;
  color: #0c4da2;
  font-size: 1.1rem;
}

.alumni-details {
  padding: 20px;
}

.alumni-info-row {
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.alumni-info-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.alumni-label {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 2px;
  display: block;
}

.alumni-value {
  font-size: 1rem;
  font-weight: 500;
  color: #212529;
  display: block;
}

/* Page specific adjustments */
body {
  position: relative;
}

/* Override Video Section Height */
.video-section {
  height: 60vh;
}
