
        :root {
            --primary-color: #003366;
            --secondary-color: #FF6B35;
            --light-bg: #f8f9fa;
            --dark-bg: #2c3e50;
        }
        
      
        
       
        
        .nav-link {
            font-weight: 500;
            margin: 0 5px;
            border-radius: 4px;
        }
        
        .nav-link:hover, .nav-link.active {
            background-color: rgba(255,255,255,0.1);
        }
        
    
        .carousel-caption {
            background: rgba(0, 51, 102, 0.85);
            padding: 2rem;
            border-radius: 5px;
            bottom: 20%;
            text-align: left;
            max-width: 700px;
            margin: 0 auto;
            left: 10%;
            right: 10%;
        }
        
        /* Section Styling */
        .section-title {
            color: var(--primary-color);
            border-bottom: 3px solid var(--secondary-color);
            padding-bottom: 10px;
            margin-bottom: 30px;
            display: inline-block;
        }
         .subheading-title {
            color: var(--primary-color);
            border-bottom: 3px solid var(--secondary-color);
            padding-bottom: 5px;
            margin-bottom: 10px;
            display: inline-block;
        }
        .history-section {
            background-color: var(--light-bg);
            padding: 4rem 0;
        }
        
        .department-image {
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            overflow: hidden;
            height: 100%;
        }
        
        .department-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        /* Tabs Section */
        .department.nav-tabs .nav-link {
           color: var(--dark-bg);
           
           /* border-bottom: 1px solid var(--secondary-color);
            background-color: transparent;*/
        }
        .department.nav-tabs .nav-link.active {
           color: var(--secondary-color);
           
           /* border-bottom: 1px solid var(--secondary-color);
            background-color: transparent;*/
        }
        
       
        
        .news-item, .announcement-item, .event-item {
            padding: 15px 0;
            border-bottom: 1px solid #eee;
        }
        
        .news-item:last-child, .announcement-item:last-child, .event-item:last-child {
            border-bottom: none;
        }
        
        /* Stats Counter */
        .stats-section {
            background-color: var(--dark-bg);
            color: white;
            padding: 4rem 0;
        }
        
        .stat-box {
            text-align: center;
            padding: 20px;
        }
        
        .stat-number {
            font-size: 3rem;
            font-weight: 700;
            color: var(--secondary-color);
            margin-bottom: 10px;
        }
        
        .stat-label {
            font-size: 1.2rem;
            opacity: 0.9;
        }
        
        /* Research Section */
        .research-card {
            border: none;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s, box-shadow 0.3s;
            height: 100%;
        }
        
        .research-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }
        
        .research-img {
            height: 200px;
            overflow: hidden;
        }
        
        .research-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
       
        
        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .carousel-item {
                height: 400px;
            }
            
            .carousel-caption {
                bottom: 10%;
                padding: 1rem;
            }
            
            .stat-number {
                font-size: 2.5rem;
            }
        }
/* ================================
   Research Specializations (Scoped)
   No Bootstrap conflicts
================================ */
/* Section wrapper */
.specializations-section {
  background: #f8f9fa;
  padding: 2rem 0;
}
/* Carousel shell */
.specialization-carousel {
  position: relative;
  overflow: hidden;
}
/* Sliding row */
.specialization-carousel #carouselRow {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.7s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
/* Individual slide */
.specialization-carousel .spec-slide {
  flex: 0 0 33.333%;
  padding: 12px;
}
/* Card */
.specialization-card {
  height: 100%;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease;
}
.specialization-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
}
/* Image container */
.card-image-container {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.specialization-card:hover img {
  transform: scale(1.08);
}
/* Icon overlay */
.specialization-icon {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transform: scale(.8);
  opacity: 0;
  transition: all .4s ease;
}
.specialization-card:hover .specialization-icon {
  transform: scale(1);
  opacity: 1;
}
/* Text */
.specialization-card .card-body {
  padding: 24px;
}
.specialization-title {
  font-weight: 700;
  color: #003366;
  margin-bottom: .75rem;
}
.specialization-description {
  font-size: .95rem;
  color: #555;
}
/* Tags */
.specialization-tags {
  margin-top: 1rem;
}
.specialization-tag {
  display: inline-block;
  margin: 4px 6px 0 0;
  padding: 5px 12px;
  font-size: .8rem;
  border-radius: 20px;
  background: rgba(13,110,253,.1);
  color: #0d6efd;
}
/* Navigation buttons */
.specialization-carousel .carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  z-index: 5;
}
.specialization-carousel .carousel-prev { left: -10px; }
.specialization-carousel .carousel-next { right: -10px; }
/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  margin: 0 5px;
  background: #ccc;
  transition: transform .3s ease, background .3s ease;
}
.carousel-dots button.active {
  background: #0d6efd;
  transform: scale(1.4);
}
/* Responsive */
@media (max-width: 991px) {
  .specialization-carousel .spec-slide {
    flex: 0 0 50%;
  }
}
@media (max-width: 575px) {
  .specialization-carousel .spec-slide {
    flex: 0 0 100%;
  }
}
        
     
/*  =============================
 ======= Specialization page ========
================================== */

/* Academic Panel */
.academic-panel {
  background: #f8f9fa;
  border-left: 4px solid #0d6efd;
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
}

/* Research Chips */
.research-chip {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  margin: 0.25rem;
  font-size: 0.85rem;
  background: #eef2f7;
  border-radius: 50px;
  color: #1f2937;
}

/* Section Bar */
.section-bar {
  border-bottom: 1px solid #dee2e6;
  position: relative;
}
.section-bar span {
  background: #fff;
  padding-right: 1rem;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Faculty Card */
.faculty-card {
  display: block;
  background: #fff;
  /*border: 1px solid #e5e7eb;*/
  border-radius: 0.5rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.faculty-card img {
  width: 100%;
  height: 220px;
  object-fit: fill ;
}

.faculty-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.faculty-info {
  padding: 0.75rem 1rem;
  text-align: center;
}

.faculty-info h6 {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}

/*      Gallery   */
/* ===== Gallery Card ===== */
.gallery-card {
  position: relative;
 border-radius:16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
  transform-style: preserve-3d;
  transition: all .5s cubic-bezier(.4,0,.2,1);
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .8s ease;
}

/* Hover lift + tilt */
.gallery-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 30px 70px rgba(0,0,0,.3);
}

.gallery-card:hover img {
  transform: scale(1.15);
}

/* ===== Overlay ===== */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.85),
    rgba(0,0,0,.2),
    transparent
  );
  display: flex;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity .4s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

/* Title */
.gallery-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .4px;
}

/* Plus button */
.gallery-plus {
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
}

.gallery-card:hover .gallery-plus {
  background: #dc3545;
  transform: rotate(90deg);
}

/* ===== Modal ===== */
.gallery-modal .modal-content {
  background: transparent;
  border: 0;
  text-align: center;
}

.gallery-modal img {
  max-height: 60vh;
   border-top-left-radius : 16px;
border-top-right-radius : 16px;
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
  animation: zoomIn .4s ease;
}

.gallery-caption {
  margin-top: 12px;
  color: #fff;
  font-size: 15px;
}

/* Close button */
.gallery-modal .btn-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: #fff;
  opacity: 1;
  border-radius: 50%;
}

/* Zoom animation */
@keyframes zoomIn {
  from { transform: scale(.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


/* faculty page */


/* ================= CARD ================= */
.profile-faculty-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  height: 305px;
  margin: 0;
  transition: transform .3s ease, box-shadow .3s ease;
}

.profile-faculty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.profile-card-body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ===== IMAGE FIX (NO STRETCH) ===== */
.profile-faculty-img {
  width: 180px;
  height: 200px;
  min-width: 180px;
  max-width: 180px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* ================= INFO ================= */
.profile-info {
  overflow: hidden;
}

.profile-info h5 {
  font-size: 1rem;
  font-weight: 600;
}

.profile-info p {
  font-size: 14px;
  margin-bottom: 0;
}

/* ================= TAB TRANSITION (BOOTSTRAP SAFE) ================= */
.profile .tab-pane {
  transition: opacity .35s ease-in-out, transform .35s ease-in-out;
}

.profile .tab-pane.fade {
  opacity: 0;
  transform: translateY(10px);
}

.profile .tab-pane.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= MINI STATS ================= */
#faculty .badge {
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 20px;
}

/*   ================== Labs ====================== */

.lab-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  transition: .25s ease;
  background: #fff;
  height: 100%;
}
.lab-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}

.lab-thumb {
  height: 150px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.lab-thumb-wrapper {
height: 150px;
border-radius: 12px;
overflow: hidden;
background: #f1f5f9;
display: flex;
align-items: center;
justify-content: center;
}


.lab-thumb-wrapper img {
width: 100%;
height: 100%;
object-fit: cover;
}


.lab-thumb-fallback {
text-align: center;
color: #64748b;
font-size: 13px;
padding: 10px;
}


.lab-thumb-fallback strong {
display: block;
font-size: 14px;
color: #334155;
}
.lab-title {
  font-size: 1rem;
  font-weight: 600;
}

.lab-incharge {
  font-size: 13px;
  color: #6b7280;
}

.lab-tags span {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f1f5f9;
  margin-right: 6px;
  margin-bottom: 6px;
  display: inline-block;
}

/* ===== MODAL ===== */
.modal-lg {
  --bs-modal-width: 820px;
}

.lab-carousel img {
  height: 300px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}
/* ==================Speacializtion ================== */
.research-hub {
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
}

.faculty-list li {
  padding: 2px 0;
  cursor: pointer;

  font-weight: 500;
  background-color: teal; /* Green background */
        border: none;              /* Remove border */
        color: white;              /* White text */
        padding: 6px 4px;         /* Spacing */
        text-align: center;         /* Center text */
        text-decoration: none;      /* Remove underline */
        display: inline-block;      /* Inline-block for sizing */
        font-size: 16px;            /* Font size */
        border-radius: 6px;         /* Rounded corners */
        transition: background-color 0.3s ease, transform 0.2s ease;
        cursor: pointer; 
}

.faculty-list li:hover {
  color: white;
  text-decoration: underline;
background-color: #45a049; /* Darker green */
        transform: scale(1.05);    /* Slight zoom */
}

.faculty-tags span {
  display: inline-block;
  background: #eef2f7;
  color: #000;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin: 4px 6px 0 0;
}

/* =============== Courses =============*/

.course-section {
  background: #f4f6f9;
  padding: 0;
}

.course-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 12px;
  margin-bottom: 8px;
}

.course-card h4 {
  color: #800000;
  font-weight: 600;
  margin-bottom: 12px;
}

.course-btn {
  display: inline-block;
  margin: 6px;
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid #800000;
  background: transparent;
  color: #800000;
  font-size: 14px;
  cursor: pointer;
  transition: all .3s ease;
}

.course-btn:hover,
.course-btn.active {
  background: #800000;
  color: #fff;
}

.course-view {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 15px;
}