@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/*──────────────────────────────────────────────────────────────────────────────
  CSS CUSTOM PROPERTIES (VARIABLES)
──────────────────────────────────────────────────────────────────────────────*/
:root {
  /* Colors */
  --primary-color: #06b6d4;
  --primary-dark: #164e63;
  --secondary-color: #0f172a;
  --accent-color: #10b981;
  --accent-dark: #059669;
  --text-primary: #334155;
  --text-secondary: #666;
  --bg-light: #f1f5f9;
  --white: #ffffff;
  --shadow-color: rgba(6, 182, 212, 0.3);

  /* Typography */
  --font-family: 'Spectral', serif;
  --font-size-base: 1rem;
  --font-size-lg: 1.1rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 3rem;

  /* Spacing */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 15px;
  --spacing-lg: 20px;
  --spacing-xl: 30px;
  --spacing-2xl: 50px;

  /* Layout */
  --max-width: 1100px;
  --border-radius: 8px;
  --border-radius-sm: 5px;
  --transition: all 0.3s ease;
  --shadow-hover: 0 8px 20px var(--shadow-color);
}

/*──────────────────────────────────────────────────────────────────────────────
  FULL-SCREEN PAGE LOADER
──────────────────────────────────────────────────────────────────────────────*/
#pageLoader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#pageLoader .loader-bars {
  display: flex;
  gap: 6px;
}

#pageLoader .loader-bars span {
  display: block;
  width: 8px;
  height: 40px;
  background-color: var(--secondary-color);
  border-radius: 4px;
  animation: loaderBounce 1s infinite ease-in-out;
}

#pageLoader .loader-bars span:nth-child(1) {
  animation-delay: 0s;
}

#pageLoader .loader-bars span:nth-child(2) {
  animation-delay: 0.1s;
}

#pageLoader .loader-bars span:nth-child(3) {
  animation-delay: 0.2s;
}

#pageLoader .loader-bars span:nth-child(4) {
  animation-delay: 0.3s;
}

#pageLoader .loader-bars span:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes loaderBounce {

  0%,
  100% {
    transform: scaleY(1);
    opacity: 1;
  }

  50% {
    transform: scaleY(0.4);
    opacity: 0.6;
  }
}

/*──────────────────────────────────────────────────────────────────────────────
  GLOBAL & BASE STYLES
──────────────────────────────────────────────────────────────────────────────*/
body {
  font-family: var(--font-family);
  background-color: var(--bg-light);
}

.body-h1 h1 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
}

/* Utility Classes */
.div_items_max_width {
  max-width: var(--max-width);
  margin: 0 auto;
}

.theme-box {
  background: rgba(6, 182, 212, 0.1);
  border: 2px solid rgba(6, 182, 212, 0.4);
  border-radius: 12px;
  padding: 24px;
  margin: 30px auto;
  color: #06b6d4;
  width: 100%;
  max-width: 980px;
  text-align: left;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.theme-box h5 {
  color: #06b6d4 !important;
  margin-bottom: 16px;
  font-weight: 600;
}

.theme-box ul li {
  color: #06b6d4 !important;
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Shared Button Styles */
.btn-custom {
  margin-top: var(--spacing-lg);
  margin-right: var(--spacing-sm);
}

.btn-light.btn-custom:first-of-type {
  background-color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  color: var(--white) !important;
}

.btn-light.btn-custom:first-of-type:hover {
  background-color: var(--accent-dark) !important;
  border-color: var(--accent-dark) !important;
}

.btn-light.btn-custom:last-of-type {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: var(--white) !important;
}

.btn-light.btn-custom:last-of-type:hover {
  background-color: #0e7490 !important;
  border-color: #0e7490 !important;
}

/* Shared Hover Effects */
.shadow-hover,
.card-hover {
  transition: var(--transition);
  cursor: pointer;
}

.shadow-hover:hover,
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: var(--font-size-lg);
}

/* Logo Container */
.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-container .logo-text,
.logo-container a {
  color: inherit;
  text-decoration: none;
}

.logo-container a:hover {
  text-decoration: none;
  color: inherit;
}

/*──────────────────────────────────────────────────────────────────────────────
  NAVIGATION BAR
──────────────────────────────────────────────────────────────────────────────*/
/* ============================================
   Navigation Bar Styles
   ============================================ */

/**
 * Main navbar styling
 * - Background color from theme
 * - Backdrop blur for modern glass effect
 * - Subtle shadow for depth
 */
.navbar {
  background-color: var(--secondary-color) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: bold;
  color: var(--primary-color) !important;
  font-size: var(--font-size-xl);
  transition: all 0.3s ease;
  border: none !important;
  outline: none !important;
}

.navbar-brand:hover {
  transform: scale(1.05);
  color: var(--primary-color) !important;
  text-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.navbar-brand:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.navbar-nav .nav-item {
  margin: 2px var(--spacing-sm);
}

.navbar-nav .nav-link.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.navbar-nav .nav-link:hover:not(.active) {
  background-color: var(--primary-dark);
  color: var(--white);
  text-decoration: none;
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* Custom Hamburger Menu */
.custom-hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: var(--transition);
  background: none;
  border: none;
}

.custom-hamburger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.custom-hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  margin: 3px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.custom-hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.custom-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.custom-hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/*──────────────────────────────────────────────────────────────────────────────
  HOME PAGE
──────────────────────────────────────────────────────────────────────────────*/
#home {
  background: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.4)),
    url('../images/bg-images/bg-image.jpg');
  background-size: 120% 120%;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--white);
  width: 100%;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10vw;
  margin: auto;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
  animation: backgroundZoom 20s ease-in-out infinite alternate;
}

@keyframes backgroundZoom {
  0% {
    background-size: 120% 120%;
    background-position: center center;
  }

  100% {
    background-size: 140% 140%;
    background-position: center center;
  }
}

#home .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
}

#home .lead {
  font-size: 17px;
  margin: 0 auto;
  width: 100%;
  max-width: 980px;
}

/* Lab Director Section */
.lab-director h2 {
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 24px;
}

.lab-director .rounded {
  padding: 2rem;
  text-align: justify;
  background-color: var(--bg-light);
  border: 1px solid rgba(241, 245, 249, 0.5);
}

.lab-director h5 {
  color: var(--primary-dark);
}

.lab-director p {
  color: var(--text-primary);
}

/*──────────────────────────────────────────────────────────────────────────────
  RESEARCH & CARDS
──────────────────────────────────────────────────────────────────────────────*/
.pb-5 h2 {
  color: var(--secondary-color);
}

.pb-5 p {
  color: var(--text-primary);
}

.card-title {
  color: var(--primary-dark) !important;
  font-weight: bold;
}

.card-text {
  color: var(--text-primary) !important;
}

.featured_researches img {
  padding: var(--spacing-sm);
}

.featured_researches .card-img-top {
  height: 250px;
  object-fit: cover;
}

.btn-outline-secondary {
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  background-color: transparent;
}

.btn-outline-secondary:hover {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--white) !important;
}

/*──────────────────────────────────────────────────────────────────────────────
  HEADER SECTIONS
──────────────────────────────────────────────────────────────────────────────*/
.all-class-padding {
  padding-top: 56px;
}

.all-header-main {
  background: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.4)),
    url('../images/bg-images/bg-image.jpg') center center/cover no-repeat;
  height: 300px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Enhanced Header Text Colors - Always White */
.all-header-main h1,
.all-header-main h2,
.all-header-main h3,
.all-header-main h4,
.all-header-main h5,
.all-header-main h6,
.all-header-main p,
.all-header-main .lead,
.all-header-main * {
  color: white !important;
}

/* Keep section headers their original color, only header main sections should be white */
.all-header-main section h2 {
  color: white !important;
}

.all-header-main section h2::after {
  background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.8)) !important;
}

/*──────────────────────────────────────────────────────────────────────────────
  PEOPLE PAGE
──────────────────────────────────────────────────────────────────────────────*/

/* ============================================
   Floating Navigation Sidebar (Desktop)
   ============================================ */

/**
 * Fixed navigation sidebar on right side
 * - Centered vertically
 * - Modern glass effect with backdrop blur
 * - Enhanced shadows and rounded corners
 */
.floating-nav {
  position: fixed;
  top: 50%;
  right: var(--spacing-lg);
  transform: translateY(-50%);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  z-index: 1000;
  text-align: center;
  flex-direction: column;
}

/**
 * Floating nav link styling
 * - Modern rounded appearance
 * - Smooth transitions
 */
.floating-nav a {
  display: block;
  margin: 8px 0;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

/**
 * Active and hover states
 * - Cyan background for active link
 * - Light background for hover
 */
.floating-nav a.active {
  background: #06b6d4;
  color: white;
}

.floating-nav a:hover:not(.active) {
  background-color: var(--bg-light);
  color: var(--text-primary);
  text-decoration: none;
}

/* Faculty and Student Cards */
#faculty .card {
  width: 755px;
  text-align: left;
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  background-color: var(--white);
}

#faculty .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

#faculty .col-md-4 {
  display: flex;
  justify-content: center;
  align-items: center;
}

#faculty img {
  max-width: 100%;
  max-height: 195px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--border-radius);
}

/* ============================================
   Section Spacing & Scroll Anchor Positioning
   ============================================ */

/**
 * Ensures all page sections have consistent spacing
 * py-5 = padding top + bottom (3rem each)
 * This provides proper spacing for section titles and content
 * 
 * scroll-margin-top: Creates offset when scrolling to anchor links
 * Value: 80px (navbar ~56px + comfortable buffer for better visibility)
 */
section[id] {
  scroll-margin-top: 80px; /* Optimized offset for desktop - navbar + buffer */
}

/* Specific sections need less offset */
#graduate,
#collaborators,
#interns,
#undergraduate {
  scroll-margin-top: 70px; /* Reduced offset for these sections */
}

/* Students Info Section Cards */
.students-info-section .students-info-section-card {
  width: 755px;
  margin: 0 auto;
  text-align: left;
  background-color: var(--white);
  transition: var(--transition);
}

.students-info-section .students-info-section-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.students-info-first-card {
  margin-top: 25px;
}

.students-info-section img {
  max-width: 160px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--border-radius);
}

.students-info-section .card-text {
  text-align: justify;
}

.students-info-section .card-body {
  width: 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

/* Master's Projects - Full width card body */
#masters-projects .card-body {
  width: 100% !important;
}

/* Undergraduate sections - Full width card body */
#undergraduate .card-body {
  width: 100% !important;
}

#alumni .card-body {
  width: 100% !important;
}

#faculty .card-body a,
.students-info-section a {
  color: var(--primary-color) !important;
}

.recent_news_card img {
  width: auto;
  height: 250px;
}

.recent_news_card .recent_news_time {
  color: var(--primary-color);
}

.recent_news_card a {
  color: var(--primary-dark);
  text-decoration: none;
}

/*──────────────────────────────────────────────────────────────────────────────
  NEWS CAROUSEL SLIDER (Homepage)
──────────────────────────────────────────────────────────────────────────────*/
#newsCarousel {
  position: relative;
  padding: 0 50px;
}

#newsCarousel .carousel-item {
  padding: 10px 0;
}

#newsCarousel .carousel-control-prev,
#newsCarousel .carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
}

#newsCarousel .carousel-control-prev {
  left: 0;
}

#newsCarousel .carousel-control-next {
  right: 0;
}

#newsCarousel .carousel-control-prev:hover,
#newsCarousel .carousel-control-next:hover {
  opacity: 1;
  background-color: var(--primary-dark);
}

#newsCarousel .carousel-control-prev-icon,
#newsCarousel .carousel-control-next-icon {
  width: 16px;
  height: 16px;
}

#newsCarousel .carousel-indicators {
  position: relative;
  bottom: -10px;
  margin-top: 20px;
}

#newsCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--text-secondary);
  border: none;
  margin: 0 5px;
  opacity: 0.5;
}

#newsCarousel .carousel-indicators button.active {
  background-color: var(--primary-color);
  opacity: 1;
}

/*──────────────────────────────────────────────────────────────────────────────
  FEATURED RESEARCH CAROUSEL (Homepage)
──────────────────────────────────────────────────────────────────────────────*/
#featuredResearchCarousel {
  position: relative;
  padding: 0 50px;
}

#featuredResearchCarousel .carousel-item {
  padding: 10px 0;
}

#featuredResearchCarousel .carousel-control-prev,
#featuredResearchCarousel .carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
}

#featuredResearchCarousel .carousel-control-prev {
  left: 0;
}

#featuredResearchCarousel .carousel-control-next {
  right: 0;
}

#featuredResearchCarousel .carousel-control-prev:hover,
#featuredResearchCarousel .carousel-control-next:hover {
  opacity: 1;
  background-color: var(--primary-dark);
}

#featuredResearchCarousel .carousel-control-prev-icon,
#featuredResearchCarousel .carousel-control-next-icon {
  width: 16px;
  height: 16px;
}

#featuredResearchCarousel .carousel-indicators {
  position: relative;
  bottom: -10px;
  margin-top: 20px;
}

#featuredResearchCarousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--text-secondary);
  border: none;
  margin: 0 5px;
  opacity: 0.5;
}

#featuredResearchCarousel .carousel-indicators button.active {
  background-color: var(--primary-color);
  opacity: 1;
}

/* Mobile adjustments for carousel */
@media (max-width: 768px) {
  #newsCarousel {
    padding: 0 30px;
  }

  #featuredResearchCarousel {
    padding: 0 30px;
  }
  
  #newsCarousel .carousel-control-prev,
  #newsCarousel .carousel-control-next {
    width: 35px;
    height: 35px;
  }
}



/*──────────────────────────────────────────────────────────────────────────────
  RESEARCH PAGE
──────────────────────────────────────────────────────────────────────────────*/
#research-page h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
}

/* Research card child layout rules */
.research-card .col-md-5 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
}

.research-card .col-md-7 {
  margin: auto;
}

.research-image {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  padding: var(--spacing-sm);
}

.research-content {
  padding: 1.5rem;
}

.research-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.research-description {
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  text-align: justify;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
}

.research-description.expanded {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
}

.read-more-btn {
  display: inline-block;
  font-size: 14px;
  color: #0369a1;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.status-badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  padding: var(--spacing-xs) 12px;
  border-radius: var(--spacing-md);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: 1rem;
}

.keyword-tag {
  background-color: rgba(6, 182, 212, 0.1);
  color: var(--primary-dark);
  padding: var(--spacing-xs) 12px;
  border-radius: var(--spacing-md);
  font-size: 0.85rem;
  font-weight: 500;
}

/*──────────────────────────────────────────────────────────────────────────────
  MODAL STYLES (SHARED)
──────────────────────────────────────────────────────────────────────────────*/
#researchModal .modal-dialog {
  max-width: none;
  width: fit-content;
  margin: 3rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 6rem);
}

#researchModal .modal-content {
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  width: fit-content !important;
  display: block !important;
  flex-direction: initial !important;
  position: static !important;
}

#researchModal .modal-body {
  padding: 0 !important;
  text-align: center;
  display: block;
}

#modalResearchImage {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 20px rgba(104, 104, 104, 0.3);
  display: block;
}

/* Image Viewer Modal */
.image-viewer-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.image-viewer-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  text-align: center;
}

.viewer-content img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
}

.viewer-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: var(--transition);
  background-color: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.viewer-close:hover,
.viewer-close:focus {
  background-color: var(--primary-color);
  transform: rotate(90deg);
}

.viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 30px;
  padding: 16px 20px;
  cursor: pointer;
  z-index: 10000;
  transition: var(--transition);
  border-radius: var(--border-radius);
}

.viewer-nav:hover {
  background-color: var(--primary-color);
}

.viewer-prev {
  left: 20px;
}

.viewer-next {
  right: 20px;
}

/* Responsive adjustments for image viewer */
@media (max-width: 768px) {
  .viewer-close {
    top: 10px;
    right: 10px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }
  
  .viewer-nav {
    font-size: 24px;
    padding: 12px 16px;
  }
  
  .viewer-prev {
    left: 10px;
  }
  
  .viewer-next {
    right: 10px;
  }
  
  .viewer-content {
    width: 95%;
  }
  
  .viewer-content img {
    max-height: 60vh;
  }
  
  .viewer-thumbnail-strip {
    gap: 6px;
    margin-top: 15px;
    padding: 8px;
  }
  
  .viewer-thumbnail {
    width: 50px;
    height: 50px;
  }
}

/*──────────────────────────────────────────────────────────────────────────────
  PUBLICATIONS PAGE
──────────────────────────────────────────────────────────────────────────────*/
#publications h2 {
  color: var(--secondary-color);
  font-weight: 700;
}

/* BibBase Button Styling - MISSING STYLES RESTORED */
.bibbase-vidual-button {
  background-color: var(--accent-color) !important;
  border-color: var(--accent-color) !important;
  color: var(--white) !important;
}

.bibbase-vidual-button:hover {
  background-color: var(--accent-dark) !important;
  border-color: var(--accent-dark) !important;
}

.publication-entry a {
  text-decoration: none !important;
}

#noPublicationsMessage {
  margin: 80px 0px !important;
}

#publications select {
  width: 170px;
}

#publications .form-select,
#publications .btn {
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 5px;
  min-width: 105px;
}

#publications .btn-outline-secondary,
#publications .btn-outline-primary,
#publications .btn-outline-info {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Dropdown */
.custom-dropdown {
  position: relative;
  display: inline-block;
  width: 170px;
}

.custom-dropdown-toggle {
  width: 100%;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  font-size: 15px;
  color: var(--secondary-color);
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  cursor: pointer;
}

.custom-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  background-color: var(--white);
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  box-shadow: var(--shadow-hover);
  display: none;
}

.custom-dropdown-menu.show {
  display: block;
}

.custom-dropdown-item {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  color: #212529;
  font-size: 15px;
}

.custom-dropdown-item:hover {
  background-color: #f8f9fa;
}

.publication-entry {
  background-color: var(--white);
  border: 1px solid #ddd;
  border-left: 4px solid var(--primary-color);
  border-radius: 6px;
  transition: var(--transition);
}

.publication-entry:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.publication-entry p {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.publication-entry p strong {
  color: var(--primary-dark);
}

.publication-entry a {
  text-decoration: none;
  margin-right: var(--spacing-sm);
  font-weight: 500;
  color: var(--primary-primary);
}

.publication-entry a:hover {
  text-decoration: underline;
  color: var(--primary-color);
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: 24px;
}

.publication-year-heading {
  text-align: center;
}

.bibbase-publications {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: var(--spacing-lg) auto;
  padding: var(--spacing-lg);
  background-color: var(--bg-light);
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  text-align: justify;
}

.bibbase-publications:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.bibbase_group_body {
  margin-left: 0px;
}

/*──────────────────────────────────────────────────────────────────────────────
  NEWS PAGE
──────────────────────────────────────────────────────────────────────────────*/
.recent_news_card .card-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  max-height: calc(1.2em * 2);
}

.recent_news_card .card-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-height: calc(1.4em * 2);
}

/*──────────────────────────────────────────────────────────────────────────────
  GALLERY PAGE
──────────────────────────────────────────────────────────────────────────────*/
.gallery-filter-wrapper {
  display: flex;
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 6px var(--spacing-sm);
  gap: var(--spacing-sm);
  box-shadow: var(--shadow-hover);
}

.gallery-filter-btn {
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  font-size: 14px;
}

.gallery-filter-btn.active {
  background-color: var(--primary-dark);
  color: var(--white);
}

.gallery-filter-btn:hover:not(.active) {
  background-color: var(--bg-light);
  color: var(--text-primary);
  cursor: pointer;
}

.gallery-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
  cursor: pointer;
  border-radius: var(--border-radius-sm);
}

.gallery-img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
  border-radius: 2%;
}

/*──────────────────────────────────────────────────────────────────────────────
  RESEARCH PAGE
──────────────────────────────────────────────────────────────────────────────*/
.news {
  margin-top: 60px !important;
  margin-bottom: 60px !important;
}

.news_heading {
  color: var(--primary-dark);
}


.news_body {
  text-align: justify;
  color: var(--text-primary);
}


/*──────────────────────────────────────────────────────────────────────────────
  FOOTER
──────────────────────────────────────────────────────────────────────────────*/
footer {
  background: var(--secondary-color) !important;
}

.footer_element_height {
  height: 200px;
}

footer img {
  width: 160px;
  height: auto;
}

footer h6 {
  color: var(--primary-color) !important;
  font-size: var(--font-size-xl);
  font-weight: bold;
}

footer p {
  font-size: var(--font-size-base);
  color: var(--bg-light) !important;
}

footer .text-info {
  color: var(--primary-color) !important;
}

footer small {
  color: var(--bg-light) !important;
}

footer .footer-credit {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: rgba(241, 245, 249, 0.75) !important;
}

footer hr {
  margin: 8px;
}

/*──────────────────────────────────────────────────────────────────────────────
  RESPONSIVE STYLES - SHARED MOBILE NAVIGATION
──────────────────────────────────────────────────────────────────────────────*/
/* Mobile Filter Bar (shared across breakpoints) */
/* ============================================
   Mobile Filter Bar Styles
   ============================================ */

/**
 * Sticky filter bar for mobile navigation
 * - Positioned below navbar with horizontal scrolling
 * - Shows section filter buttons
 */
.mobile-filter-bar {
  position: sticky;
  top: 60px;
  background: var(--white);
  padding: var(--spacing-sm) var(--spacing-md);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
  overflow-x: auto;
  white-space: nowrap;
  margin-bottom: var(--spacing-md);
}

.mobile-filter-tabs {
  display: flex;
  gap: var(--spacing-sm);
}

/**
 * Mobile filter buttons
 * - Default state: light gray background
 * - Active state: cyan background with white text
 * - Smooth transitions between states
 * - No borders or outlines to prevent visual artifacts
 */
.mobile-filter-btn {
  padding: 10px 18px;
  background: #f1f5f9;
  border-radius: 8px;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s ease;
  border: none;
  outline: none;
  cursor: pointer;
  box-shadow: none;
}

/**
 * Remove focus outline and prevent border artifacts
 */
.mobile-filter-btn:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

/**
 * Active and hover states for mobile filter buttons
 * - Cyan background (#06b6d4)
 * - White text for contrast
 * - Subtle shadow for depth (no transform to avoid visual glitches)
 * - No borders or outlines
 */
.mobile-filter-btn:hover {
  background: #e2e8f0;
  color: #334155;
  border: none;
  outline: none;
}

.mobile-filter-btn.active {
  background: #06b6d4 !important;
  color: white !important;
  border: none !important;
  outline: none !important;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.25) !important;
  /* No transform to prevent underline appearance */
}

.mobile-filter-btn.active:focus {
  outline: none !important;
  border: none !important;
}


/* Shared Mobile Navigation Styles */
@media (max-width: 991px) {

  /* Logo Container Mobile Adjustments */
  .logo-container {
    position: relative !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
  }

  .logo-container img {
    position: absolute !important;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-right: 0 !important;
  }

  .logo-container a {
    text-align: center !important;
    width: 100% !important;
  }

  .logo-container .logo-text {
    display: inline-block !important;
    color: var(--primary-color) !important;
    font-size: var(--font-size-xl) !important;
    font-weight: bold !important;
    text-decoration: none !important;
  }

  .navbar .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
  }

  .navbar-toggler {
    display: none !important;
  }

  .custom-hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    padding: 8px;
    background: none;
    border: none;
    z-index: 1052;
    cursor: pointer;
  }

  .navbar-collapse {
    position: fixed;
    top: 70px;
    left: 65%;
    transform: translateX(-50%) scale(0);
    transform-origin: top center;
    width: 90%;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    transition: transform 0.25s ease;
    z-index: 1051;
  }

  .navbar-collapse.show {
    transform: translateX(-50%) scale(1);
  }

  .navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .navbar-nav .nav-item {
    width: 100%;
    margin: 8px 0;
  }

  .navbar-nav .nav-link {
    display: block;
    padding: 8px 0;
    margin: auto;
    color: var(--secondary-color) !important;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    background-color: transparent;
    border-radius: 6px;
    transition: var(--transition);
  }

  .navbar-nav .nav-link:hover {
    background-color: rgba(6, 182, 212, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--white) !important;
  }

  .navbar-nav .nav-link.active {
    background-color: var(--primary-color);
    color: var(--white) !important;
  }

  #home {
    background-size: cover !important;
    background-attachment: scroll;
    background-position: center center !important;
    padding: 40px 5vw !important;
    height: auto !important;
    min-height: 500px;
    margin-top: 70px !important;
  }

  #home .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px;
  }

  #home h1 {
    font-size: 36px !important;
    line-height: 1.2;
    margin-bottom: 25px;
  }

  #home .lead {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 17px !important;
    line-height: 1.5;
    margin-bottom: 30px;
  }

  #home .theme-box {
    width: 100% !important;
    padding: 25px;
    margin: 30px 0;
  }

  .d-flex.justify-content-center.flex-nowrap {
    gap: 8px;
  }

  .d-flex.justify-content-center.flex-nowrap a {
    padding: 8px !important;
    margin: 0 auto;
  }

  #faculty .row.justify-content-center .card {
    width: calc(100% - 30px) !important;
    margin: 0 15px !important;
    max-width: calc(100% - 30px) !important;
  }

  .students-info-section-card,
  .students-info-section-card .card-body {
    width: 100% !important;
    max-width: 100% !important;
  }

  .research-content {
    padding: 0 var(--spacing-lg) var(--spacing-sm) var(--spacing-lg);
  }

  .research-title {
    font-size: 20px;
  }

  .filter-options {
    gap: var(--spacing-xs);
  }
}

/* Extra Small Mobile Devices */
@media (max-width: 375px) {
  #home {
    height: auto !important;
    min-height: 420px;
    padding: 30px 10px !important;
    margin-top: 70px !important;
  }

  #home .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 10px;
  }

  #home h1 {
    font-size: 24px !important;
    line-height: 1.2;
    margin-bottom: 15px;
  }

  #home .lead {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 14px !important;
    line-height: 1.4;
    margin-bottom: 20px;
  }

  #home .theme-box {
    width: 100% !important;
    padding: 12px;
    margin: 15px 0;
  }

  #home .theme-box h5 {
    font-size: 15px !important;
    margin-bottom: 12px;
  }

  #home .theme-box ul li {
    font-size: 13px !important;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .d-flex.justify-content-center.flex-nowrap a {
    width: 100% !important;
    max-width: 260px;
    padding: 10px 16px !important;
    font-size: 13px !important;
  }
}

/* Small Mobile Devices */
@media (max-width: 430px) {
  .navbar-collapse {
    max-width: 200px;
  }

  .navbar-nav .nav-link {
    width: 150px;
    font-size: var(--font-size-lg);
  }

  #home {
    height: auto !important;
    min-height: 450px;
    padding: 40px 15px !important;
    margin-top: 70px !important;
    background-size: cover !important;
    background-position: center center !important;
  }

  #home .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px;
  }

  #home h1 {
    font-size: 28px !important;
    line-height: 1.2;
    margin-bottom: 20px;
  }

  #home .lead {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 15px !important;
    line-height: 1.4;
    margin-bottom: 25px;
  }

  #home .theme-box {
    width: 100% !important;
    padding: 15px;
    margin: 20px 0;
  }

  #home .theme-box h5 {
    font-size: 16px !important;
    margin-bottom: 15px;
  }

  #home .theme-box ul li {
    font-size: 14px !important;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .d-flex.justify-content-center.flex-nowrap {
    flex-direction: column !important;
    gap: 10px;
    width: 100%;
  }

  .d-flex.justify-content-center.flex-nowrap a {
    width: 100% !important;
    max-width: 280px;
    margin: 0 auto !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
  }

  .custom-dropdown {
    width: 115px !important;
  }

  .custom-dropdown-toggle,
  .custom-dropdown-item {
    font-size: 13px !important;
  }
}

/* Medium Mobile Devices */
@media (max-width: 480px) {
  .navbar-collapse {
    max-width: 220px;
  }

  .navbar-nav .nav-link {
    width: 170px;
    font-size: var(--font-size-lg);
  }

  #home {
    height: auto !important;
    min-height: 480px;
    padding: 40px 20px !important;
    margin-top: 70px !important;
    background-size: cover !important;
    background-position: center center !important;
  }

  #home .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 20px;
  }

  #home h1 {
    font-size: 30px !important;
    line-height: 1.2;
    margin-bottom: 20px;
  }

  #home .lead {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px !important;
    line-height: 1.4;
    margin-bottom: 25px;
  }

  #home .theme-box {
    width: 100% !important;
    padding: 20px;
    margin: 25px 0;
  }

  #home .theme-box h5 {
    font-size: 17px !important;
    margin-bottom: 15px;
  }

  #home .theme-box ul li {
    font-size: 15px !important;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .d-flex.justify-content-center.flex-nowrap {
    flex-direction: column !important;
    gap: 12px;
    width: 100%;
  }

  .d-flex.justify-content-center.flex-nowrap a {
    width: 100% !important;
    max-width: 300px;
    margin: 0 auto !important;
    padding: 12px 24px !important;
    font-size: 15px !important;
  }

  #faculty img {
    width: 300px !important;
    height: 300px !important;
  }

  .students-info-section img {
    width: 200px !important;
    height: 200px !important;
  }

  .custom-dropdown {
    width: 130px;
  }

  .custom-dropdown-toggle,
  .custom-dropdown-item {
    font-size: 13px !important;
  }
}

/* Tablet Portrait */
/* ============================================
   Tablet Responsive Design (481px - 768px)
   ============================================ */

/**
 * Tablet breakpoint adjustments
 * - Optimizes navbar for tablet screens
 * - Adjusts image sizes for better tablet display
 * - Ensures proper scroll positioning on tablets
 */
@media (min-width: 481px) and (max-width: 768px) {
  .navbar-collapse {
    max-width: 220px;
    left: 75%;
  }

  .navbar-nav .nav-link {
    width: 190px;
    font-size: 20px;
  }

  #faculty img {
    width: 300px !important;
    height: 300px !important;
  }

  .students-info-section img {
    width: 200px !important;
    height: 200px !important;
  }
  
  /* Tablet-specific scroll positioning */
  section[id] {
    scroll-margin-top: 80px; /* Optimized offset for better header visibility */
  }
  
  /* Specific sections need less offset on tablet */
  #graduate,
  #collaborators,
  #interns,
  #undergraduate {
    scroll-margin-top: 70px;
  }
  
  html {
    scroll-padding-top: 80px;
  }
}


/* Tablet Landscape */
@media (min-width: 768px) and (max-width: 991px) {
  .navbar-collapse {
    max-width: 250px;
    left: 75%;
  }

  .navbar-nav .nav-link {
    width: 210px;
    font-size: 20px;
  }

  #home {
    height: 490px;
  }

  #home .container {
    width: 730px;
  }

  #home .lead {
    width: 650px !important;
  }

  .lab-director {
    max-width: 720px !important;
  }

  #faculty .card {
    height: 300px !important;
    margin-bottom: 0 !important;
  }

  #faculty img {
    width: 220px !important;
    height: 235px !important;
  }

  .students-info-section img {
    width: 200px !important;
    height: 200px !important;
  }

  .students-info-section .card-body {
    padding-left: var(--spacing-md) !important;
    padding-right: var(--spacing-xl) !important;
  }

  #faculty p {
    font-size: 18px;
  }

  .featured_researches .card-text {
    font-size: 14px;
  }

  .custom-dropdown {
    width: 185px;
  }

  .research-title {
    padding-top: 10px;
  }

  .featured_researches img {
    padding: 5px;
  }

  .research-content {
    padding: 0px 20px 10px 20px !important;
  }

  footer h6 {
    font-size: 13px;
  }

  footer p,
  footer small {
    font-size: 12px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MODERN WEBSITE ENHANCEMENTS - COMPREHENSIVE VISUAL IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Enhanced Button System */
.btn {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  text-transform: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced Card System */
.card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.card-body {
  padding: 1.5rem;
}

/* Enhanced Images */
.card img, .research-card img {
  transition: all 0.3s ease;
  border-radius: 8px;
}

.card:hover img, .research-card:hover img {
  transform: scale(1.03);
}

/* Enhanced Research Cards */
.research-card {
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  background: white;
}

.research-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #06b6d4, #164e63);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.research-card:hover::before {
  opacity: 1;
}

.research-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.research-content {
  padding: 2rem;
}

.research-title {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a202c;
}

.research-description {
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 1.5rem;
}

.keyword-tag {
  background: linear-gradient(135deg, #06b6d4, #164e63);
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 2px;
  display: inline-block;
  transition: all 0.2s ease;
}

.keyword-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(6, 182, 212, 0.3);
}

/* Enhanced Publication Entries */
.publication-entry {
  border-radius: 8px;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.publication-entry:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-left-color: #06b6d4;
}

/* Navigation Link Styles */
.nav-link {
  border-radius: 6px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #06b6d4;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link:hover {
  background-color: rgba(6, 182, 212, 0.1);
}

/* Enhanced Section Headers */
section h2 {
  position: relative;
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #06b6d4, #164e63);
  border-radius: 2px;
}

/* Enhanced News Cards */
.recent_news_card .card {
  border-radius: 12px;
  overflow: hidden;
}

.recent_news_card .card-img-top {
  transition: all 0.3s ease;
}

.recent_news_card:hover .card-img-top {
  transform: scale(1.05);
}

/* Enhanced Gallery Items */
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Enhanced Filter Buttons */
/* ============================================
   Gallery & Mobile Filter Button Enhancements
   ============================================ */

/**
 * Gallery filter buttons (for gallery page)
 * - Rounded corners with modern styling
 * - Transform effect on hover for desktop
 */
.gallery-filter-btn {
  border-radius: 8px;
  padding: 10px 18px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  transition: all 0.3s ease;
  font-weight: 500;
  cursor: pointer;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: #06b6d4;
  color: white;
  border-color: #06b6d4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* ============================================
   Enhanced Card Styles
   ============================================ */

/* Enhanced Faculty Cards */
#faculty .card {
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  border: none;
}

/* Individual People Card Row Hover Effects */
.people-card-row {
  transition: all 0.3s ease;
  border-radius: 12px;
  padding: 0.5rem;
  margin: 0.25rem 0;
}

.people-card-row:hover {
  background: rgba(14, 116, 144, 0.05);
  transform: translateX(10px);
  box-shadow: 0 8px 25px rgba(14, 116, 144, 0.15);
  border-left: 4px solid var(--primary-color);
}

.people-card-row .card-body {
  transition: all 0.3s ease;
}

.people-card-row:hover .card-body {
  padding-left: 1.5rem;
}

.people-card-row:hover .card-title {
  color: var(--primary-color);
}

/* Undergraduate Students Section Alignment Fix */
#undergraduate .people-card-row .col-md-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

#undergraduate .people-card-row .card-body {
  padding: 1.25rem;
  text-align: justify;
  width: 100%;
}

#undergraduate .people-card-row .card-text {
  text-align: justify;
  width: 100%;
  hyphens: auto;
  word-spacing: 0.1em;
  line-height: 1.6;
}

/* Enhanced Typography */
body {
  line-height: 1.6;
  color: #2d3748;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #1a202c;
}

p {
  line-height: 1.7;
  color: #4a5568;
}

/* Enhanced Form Elements */
.form-control, input, textarea, select {
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  transition: all 0.2s ease;
}

.form-control:focus, input:focus, textarea:focus, select:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* Enhanced Responsive Design */
/* ============================================
   Responsive Design - Mobile & Tablet
   ============================================ */

/**
 * Mobile breakpoint (max-width: 768px)
 * - Adjusts card hover effects for better mobile experience
 * - Reduces scroll offset for smaller screens
 * - Optimizes section spacing
 * - Ensures proper scroll anchor positioning
 */
@media (max-width: 768px) {
  /* Reduce hover transform on mobile for better performance */
  .card:hover, .research-card:hover {
    transform: translateY(-4px);
  }
  
  /* Adjust section heading underline for mobile */
  section h2::after {
    width: 40px;
  }
  
  /* Optimize padding for mobile content */
  .research-content {
    padding: 1.5rem;
  }
  
  /* Adjust scroll offset for mobile (navbar + mobile filter bar) */
  section[id] {
    scroll-margin-top: 130px; /* Mobile navbar (~56px) + mobile filter bar (~60px) + buffer */
  }
  
  /* Specific sections need less offset on mobile */
  #graduate,
  #collaborators,
  #interns,
  #undergraduate {
    scroll-margin-top: 120px;
  }
  
  /* Ensure mobile filter bar doesn't obstruct content */
  html {
    scroll-padding-top: 130px;
  }
  
  /* Optimize section spacing for mobile */
  section.py-5 {
    padding-top: 2.5rem !important;
    padding-bottom: 2rem !important;
  }
  
  /* Ensure subsection cards are full width on mobile */
  .students-info-section-card {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  /* Adjust card body padding on mobile */
  .students-info-section .card-body {
    width: 100% !important;
    padding: 1rem !important;
  }
  
  /* Stack subsection headers properly on mobile */
  .card-header h5 {
    font-size: 0.9rem !important;
  }
}


/* Enhanced Accessibility */
*:focus {
  outline: 2px solid #06b6d4;
  outline-offset: 2px;
}

::selection {
  background: rgba(6, 182, 212, 0.2);
}

/* ============================================
   Enhanced Scroll Behavior
   ============================================ */

/**
 * Smooth scrolling for all anchor links
 * scroll-padding-top ensures content doesn't hide behind fixed navbar
 * Value: 60px (navbar ~56px + minimal 4px buffer) - tight alignment
 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px; /* Minimal padding - just navbar clearance */
}

/* Enhanced Index Page Header Text Colors - Always White */
#home h1,
#home h2,
#home h3,
#home h4,
#home h5,
#home h6,
#home p,
#home .lead,
#home li,
#home strong,
#home .theme-box,
#home .theme-box h5,
#home .theme-box ul,
#home .theme-box li,
#home * {
  color: white !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   2026 VISUAL REFRESH
   Layered on top of everything above. Inter for UI/body text, Spectral for
   headings, glass navbar, full-height hero, softer cards, consistent portraits.
   ═══════════════════════════════════════════════════════════════════════════════ */
:root {
  --ink: #0b1220;
  --cyan: #06b6d4;
  --cyan-soft: #67e8f9;
  --teal-deep: #0e7490;
  --line: #e3e9f0;
  --muted: #5b6b80;
  --font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Spectral', Georgia, serif;
  --radius-lg: 18px;
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lift: 0 2px 6px rgba(15, 23, 42, 0.06), 0 18px 40px -12px rgba(14, 116, 144, 0.28);
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  color: #334155;
  background-color: #f4f7fb;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .card-title, .research-title, .news_heading {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

p { color: #475569; }

/* No more justified text: it creates big gaps between words */
.lab-director .rounded,
.students-info-section .card-text,
#undergraduate .people-card-row .card-text,
.research-description,
.news_body,
.bibbase-publications {
  text-align: left !important;
  word-spacing: normal !important;
}

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
  background-color: rgba(11, 18, 32, 0.96) !important;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none !important;
  padding-top: 10px;
  padding-bottom: 10px;
  transition: background-color 0.3s ease, padding 0.3s ease;
}

body:has(#home) .navbar:not(.scrolled) {
  background-color: rgba(11, 18, 32, 0.25) !important;
  border-bottom-color: transparent;
}

.navbar.scrolled {
  padding-top: 6px;
  padding-bottom: 6px;
}

.logo-link {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #e2f8fc !important;
}

.logo-img-wrapper { margin-right: 8px; }

.nav-link::after { display: none !important; }

@media (min-width: 992px) {
  .navbar-nav .nav-item { margin: 0 2px; }

  .navbar-nav .nav-link {
    font-family: var(--font-family);
    font-size: 0.92rem;
    font-weight: 500 !important;
    color: rgba(226, 232, 240, 0.78) !important;
    padding: 7px 14px !important;
    border-radius: 999px;
  }

  .navbar-nav .nav-link:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
  }

  .navbar-nav .nav-link.active {
    background-color: rgba(6, 182, 212, 0.18) !important;
    color: var(--cyan-soft) !important;
    box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.35);
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.35);
  }
  .navbar-nav .nav-link { font-family: var(--font-family); font-weight: 500; }
  .navbar-nav .nav-link:hover:not(.active) { color: var(--teal-deep) !important; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
#home {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(6, 182, 212, 0.28), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(16, 185, 129, 0.18), transparent 50%),
    linear-gradient(180deg, rgba(8, 13, 26, 0.55) 0%, rgba(8, 13, 26, 0.78) 70%, rgba(8, 13, 26, 0.95) 100%),
    url('../images/bg-images/bg-image.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  animation: none;
  margin-top: 0;
  height: auto;
  min-height: min(100vh, 880px);
  min-height: min(100svh, 880px);
  padding: 120px 6vw 90px;
}

#home .hero-inner { max-width: 900px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  margin-bottom: 26px;
}

#home .hero-eyebrow i { color: var(--cyan-soft) !important; }

#home h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 22px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

#home h1 .hero-accent {
  display: inline-block;
  background: linear-gradient(90deg, #67e8f9, #6ee7b7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

#home .hero-lead {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto 34px;
  color: rgba(226, 232, 240, 0.9) !important;
}

#home .hero-themes-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.75) !important;
  margin-bottom: 12px;
}

.hero-themes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 38px;
  max-width: 820px;
}

.hero-themes li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(103, 232, 249, 0.22);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.hero-themes li:hover {
  border-color: rgba(103, 232, 249, 0.6);
  background: rgba(6, 182, 212, 0.14);
  transform: translateY(-2px);
}

#home .hero-themes li i { color: var(--cyan-soft) !important; font-size: 0.95em; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.btn-hero-primary,
.btn-hero-ghost {
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #06b6d4, #10b981);
  border: none;
  box-shadow: 0 10px 30px -8px rgba(6, 182, 212, 0.65);
}

.btn-hero-primary:hover { box-shadow: 0 14px 34px -8px rgba(6, 182, 212, 0.85); }

.btn-hero-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-hero-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }

.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  animation: heroBob 2.2s ease-in-out infinite;
}

@keyframes heroBob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}

@media (max-width: 991px) {
  #home {
    margin-top: 0 !important;
    padding: 110px 20px 80px !important;
    min-height: min(92svh, 760px);
    background-size: cover !important;
  }
  #home h1 { font-size: clamp(2.1rem, 8vw, 2.8rem) !important; }
  .hero-themes li { font-size: 0.86rem; padding: 8px 13px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; margin: 0 auto; }
  .hero-scroll { display: none; }
  .hero-eyebrow { font-size: 0.66rem; letter-spacing: 0.05em; padding: 6px 12px; }
}

/* ── Section headings ──────────────────────────────────────────────────── */
section h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }

section h2::after {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), #10b981);
}

.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: 1.5rem; }

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 8px;
}

/* ── Research areas ─────────────────────────────────────────────────────── */
.areas-section {
  padding: 90px 0 70px;
  background: #fff;
}

.area-card {
  height: 100%;
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.area-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(6, 182, 212, 0.45);
}

.area-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #0e7490);
  box-shadow: 0 8px 20px -6px rgba(6, 182, 212, 0.6);
  margin-bottom: 18px;
}

.area-card h5 {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 1.08rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.area-card p { font-size: 0.95rem; margin: 0; }

/* ── About / vision ─────────────────────────────────────────────────────── */
.about-section {
  padding: 90px 0;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(6, 182, 212, 0.08), transparent 50%),
    #f4f7fb;
}

.about-section h2.about-title {
  text-align: left;
  margin-bottom: 2rem;
  line-height: 1.2;
  color: #0f172a;
}

.about-section h2.about-title::after { left: 0; transform: none; }
.about-section p { font-size: 1.02rem; line-height: 1.75; }

.faculty-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.faculty-mini {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 14px;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.faculty-mini:hover { background: #f0fbfd; transform: translateX(4px); }

.faculty-mini img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(6, 182, 212, 0.35);
}

.faculty-mini strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #0f172a;
}

.faculty-mini span { display: block; font-size: 0.88rem; color: var(--muted); }

.faculty-more {
  margin-top: 4px;
  padding: 12px 12px 4px;
  text-align: center;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--teal-deep);
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.faculty-more i { transition: transform 0.25s ease; margin-left: 4px; }
.faculty-more:hover { color: var(--cyan); }
.faculty-more:hover i { transform: translateX(4px); }

.featured-section { padding-top: 24px !important; }

/* ── Cards (all pages) ──────────────────────────────────────────────────── */
.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.card:hover,
.shadow-hover:hover,
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.card:hover img,
.research-card:hover img { transform: none; }

.card-title { color: #0f172a !important; }
.card-text { color: #475569 !important; }

.featured_researches img { padding: 0; }

.featured_researches .card-img-top {
  height: 220px;
  object-fit: cover;
  object-position: top;
  border-radius: 0;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.featured_researches .card-body { text-align: left; padding: 1.25rem 1.4rem 1.5rem; }
.featured_researches .card-title { font-size: 1.15rem; }
.featured_researches > p,
.recent_news_card > p { color: var(--muted); max-width: 640px; margin-left: auto; margin-right: auto; }

.recent_news_card .recent_news_time {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

/* Carousel controls: clean white discs */
#featuredResearchCarousel .carousel-control-prev,
#featuredResearchCarousel .carousel-control-next,
#newsCarousel .carousel-control-prev,
#newsCarousel .carousel-control-next {
  width: 42px;
  height: 42px;
  background-color: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  opacity: 1;
}

#featuredResearchCarousel .carousel-control-prev:hover,
#featuredResearchCarousel .carousel-control-next:hover,
#newsCarousel .carousel-control-prev:hover,
#newsCarousel .carousel-control-next:hover {
  background-color: var(--cyan);
  border-color: var(--cyan);
}

#featuredResearchCarousel .carousel-control-prev-icon,
#featuredResearchCarousel .carousel-control-next-icon,
#newsCarousel .carousel-control-prev-icon,
#newsCarousel .carousel-control-next-icon { filter: invert(0.35); }

#featuredResearchCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#featuredResearchCarousel .carousel-control-next:hover .carousel-control-next-icon,
#newsCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#newsCarousel .carousel-control-next:hover .carousel-control-next-icon { filter: none; }

#featuredResearchCarousel .carousel-indicators button,
#newsCarousel .carousel-indicators button {
  width: 8px;
  height: 8px;
  background-color: #94a3b8;
  transition: width 0.3s ease, background-color 0.3s ease;
}

#featuredResearchCarousel .carousel-indicators button.active,
#newsCarousel .carousel-indicators button.active {
  width: 26px;
  border-radius: 999px;
  background-color: var(--cyan);
}

/* Buttons */
.btn { box-shadow: none; }

.btn-outline-secondary {
  border-radius: 999px;
  padding: 9px 22px;
  font-weight: 600;
  border-width: 1.5px;
  color: var(--teal-deep) !important;
  border-color: rgba(14, 116, 144, 0.45) !important;
}

.btn-outline-secondary:hover {
  background-color: var(--teal-deep) !important;
  border-color: var(--teal-deep) !important;
  color: #fff !important;
}

/* ── Inner page headers ────────────────────────────────────────────────── */
.all-header-main {
  background:
    radial-gradient(ellipse at 15% 20%, rgba(6, 182, 212, 0.3), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(16, 185, 129, 0.18), transparent 50%),
    linear-gradient(180deg, rgba(8, 13, 26, 0.6), rgba(8, 13, 26, 0.85)),
    url('../images/bg-images/bg-image.jpg') center center / cover no-repeat;
  height: auto;
  min-height: 300px;
  padding: 70px 0 60px !important;
}

.all-header-main h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  margin-bottom: 1.6rem !important;
}

.all-header-main .lead {
  font-size: 1.12rem;
  max-width: 640px;
  margin: 0 auto;
  color: rgba(226, 232, 240, 0.9) !important;
}

/* ── People & faculty ───────────────────────────────────────────────────── */
.students-info-section .students-info-section-card {
  padding: 12px;
  border-radius: 22px;
}

.students-info-section .students-info-section-card:hover { transform: none; box-shadow: var(--shadow-soft); }

.people-card-row {
  border-radius: 14px;
  border-bottom-color: var(--line) !important;
  border-left: 4px solid transparent;
}

.people-card-row:hover {
  transform: none;
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.07), transparent 70%);
  box-shadow: none;
  border-left: 4px solid var(--cyan);
}

.people-card-row:hover .card-title { color: var(--teal-deep) !important; }

.students-info-section img {
  width: 128px;
  height: 128px;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: top;
  border-radius: 50% !important;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(6, 182, 212, 0.25), 0 10px 24px -8px rgba(15, 23, 42, 0.35);
}

@media (max-width: 768px) {
  .students-info-section img { width: 150px !important; height: 150px !important; margin-top: 12px; }
}

.students-info-section .card-title { font-size: 1.25rem; }
.students-info-section .card-text { font-size: 0.95rem; }

#faculty .card { border-radius: 22px; }
#faculty .card:hover { border-left: 1px solid var(--line); background: #fff; }
#faculty .faculty-img { border-radius: 16px; }

#faculty .btn-light,
#faculty .btn-light.text-info {
  border-radius: 999px;
  background: #f8fafc;
  font-weight: 600;
  color: var(--teal-deep) !important;
}

#faculty .btn-light:hover,
#faculty .btn-light.text-info:hover { background: var(--teal-deep); color: #fff !important; border-color: var(--teal-deep) !important; }

.floating-nav {
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.3);
  background: rgba(255, 255, 255, 0.92);
}

.floating-nav a { font-family: var(--font-family); font-weight: 500; font-size: 13.5px; color: #334155; border-radius: 10px; }
.floating-nav a.active { background: var(--teal-deep); color: #fff; }

/* ── Research page ──────────────────────────────────────────────────────── */
.research-card {
  border: 1px solid var(--line);
  border-radius: 22px !important;
  box-shadow: var(--shadow-soft);
}

.research-card .research-image { border-radius: 12px; }
.research-title { color: #0f172a; }

.keyword-tag {
  background: rgba(6, 182, 212, 0.1);
  color: var(--teal-deep);
  border: 1px solid rgba(6, 182, 212, 0.25);
  font-weight: 600;
  font-size: 0.78rem;
}

.read-more-btn { font-weight: 600; color: var(--teal-deep); }

/* ── Publications ───────────────────────────────────────────────────────── */
.publication-entry {
  border: 1px solid var(--line);
  border-left: 4px solid var(--cyan);
  border-radius: 14px;
}

.publication-entry:hover { box-shadow: var(--shadow-lift); }

.publication-year-heading {
  font-family: var(--font-display);
  color: var(--teal-deep);
}

.custom-dropdown-toggle { border-radius: 999px; border-color: var(--line); }
.custom-dropdown-menu { border-radius: 12px; border-color: var(--line); }

/* ── Gallery ────────────────────────────────────────────────────────────── */
.gallery-filter-wrapper {
  border-radius: 999px;
  padding: 6px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.gallery-filter-btn { border-radius: 999px; border-color: transparent; background: transparent; }
.gallery-filter-btn:hover,
.gallery-filter-btn.active { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; box-shadow: none; transform: none; }

.gallery-img { border-radius: 14px; }
.gallery-img:hover { border-radius: 14px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(6, 182, 212, 0.12), transparent 60%),
    var(--ink) !important;
  padding-top: 36px !important;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), #10b981, var(--cyan));
}

footer h6 {
  font-family: var(--font-display);
  color: var(--cyan-soft) !important;
  font-size: 1.25rem;
}

footer p { font-size: 0.92rem; color: rgba(203, 213, 225, 0.85) !important; }
footer hr { border-color: rgba(255, 255, 255, 0.1) !important; opacity: 1; }
footer .text-info { color: var(--cyan-soft) !important; font-weight: 600; }
footer .footer-logo { filter: drop-shadow(0 6px 24px rgba(6, 182, 212, 0.35)); }

/* ── Page loader: match brand ─────────────────────────────────────────── */
#pageLoader { background: var(--ink); }
#pageLoader .loader-bars span { background: linear-gradient(180deg, var(--cyan), #10b981); }

/* ── Scroll reveal (only enabled by JS, never hides content without it) ── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
  html { scroll-behavior: auto; }
}

::selection { background: rgba(6, 182, 212, 0.25); }
*:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
*:focus:not(:focus-visible) { outline: none; }

/* ── Compact hero: keep the buttons and the next section visible on short
      laptop screens instead of filling the whole viewport ─────────────── */
#home {
  min-height: 0 !important;
  padding: 104px 6vw 64px;
}

#home .hero-eyebrow { margin-bottom: 18px; }

#home h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  margin-bottom: 14px;
}

#home h1 .hero-accent { display: inline; }

#home .hero-lead { margin-bottom: 22px; }

#home .hero-themes-label { margin-bottom: 10px; }

.hero-themes { margin-bottom: 26px; gap: 8px; }

.hero-themes li { padding: 7px 14px; font-size: 0.88rem; }

.btn-hero-primary,
.btn-hero-ghost { padding: 11px 24px; }

.hero-scroll { display: none !important; }

.areas-section { padding-top: 56px; }

/* Very short screens (small laptops, browser zoom): hide the theme label */
@media (max-height: 720px) and (min-width: 992px) {
  #home { padding: 92px 6vw 48px; }
  #home .hero-themes-label { display: none; }
  #home .hero-lead { font-size: 1rem; margin-bottom: 18px; }
  .hero-themes { margin-bottom: 20px; }
}

@media (max-width: 991px) {
  #home { padding: 96px 20px 56px !important; min-height: 0 !important; }
}

/* ── Split hero: research areas (left) + lab intro (right) ─────────────── */
#home .container.hero-inner {
  display: block;
  max-width: 1200px;
  text-align: left;
}

#home .hero-copy { text-align: left; }
#home .hero-copy .hero-lead { margin-left: 0; margin-right: 0; max-width: 540px; }
#home .hero-copy .hero-themes { justify-content: flex-start; margin-left: 0; margin-right: 0; }
#home .hero-copy .hero-actions { justify-content: flex-start; }

#home .hero-copy h1 {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 1.08;
}

#home .hero-copy h1 .hero-accent { display: block; }

.hero-areas-panel {
  position: relative;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

/* soft cyan glow behind the panel */
.hero-areas-panel::before {
  content: '';
  position: absolute;
  inset: -40px;
  z-index: -1;
  background: radial-gradient(circle at 40% 50%, rgba(6, 182, 212, 0.25), transparent 65%);
  pointer-events: none;
}

#home .hero-areas-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-soft) !important;
  margin: 2px 4px 14px;
}

#home .hero-areas-label i { color: var(--cyan-soft) !important; margin-right: 6px; }

.hero-areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-area {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(8, 13, 26, 0.45);
  border: 1px solid rgba(103, 232, 249, 0.14);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.hero-area:hover {
  transform: translateY(-3px);
  border-color: rgba(103, 232, 249, 0.5);
  background: rgba(6, 182, 212, 0.12);
}

.hero-area-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #06b6d4, #0e7490);
  box-shadow: 0 8px 18px -6px rgba(6, 182, 212, 0.7);
}

#home .hero-area-icon i { color: #fff !important; font-size: 1rem; }

#home .hero-area h6 {
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1px 0 3px;
  line-height: 1.25;
}

#home .hero-area span {
  display: block;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(203, 213, 225, 0.8) !important;
}

/* About section now follows the hero directly */
.about-section { padding-top: 80px; }

@media (max-width: 991px) {
  #home .hero-copy,
  #home .hero-copy h1 { text-align: center; }
  #home .hero-copy .hero-lead { margin: 0 auto 22px; }
  #home .hero-copy .hero-themes,
  #home .hero-copy .hero-actions { justify-content: center; }
  .hero-areas-panel { padding: 16px; }
}

@media (max-width: 480px) {
  .hero-areas { grid-template-columns: 1fr; }
  #home .hero-copy .hero-actions { margin: 0 auto; }
}

/* ── Contained hero: the blue panel wraps only the content, not the full width ── */
#home {
  width: calc(100% - 48px) !important;
  max-width: 1280px;
  margin: 92px auto 0 !important;
  padding: 56px 48px !important;
  border-radius: 28px;
  box-shadow: 0 30px 60px -28px rgba(8, 13, 26, 0.55);
}

/* the hero no longer sits under the navbar, so keep the bar solid */
body:has(#home) .navbar:not(.scrolled) {
  background-color: rgba(11, 18, 32, 0.96) !important;
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.about-section { padding-top: 72px; }

@media (max-height: 720px) and (min-width: 992px) {
  #home { margin-top: 84px !important; padding: 40px 44px !important; }
}

@media (max-width: 991px) {
  #home {
    width: calc(100% - 24px) !important;
    margin: 80px auto 0 !important;
    padding: 36px 20px !important;
    border-radius: 22px;
  }
}

/* ── Consistent faculty portraits: each photo gets its own zoom/focus (set
      inline as --zoom / --focus) so faces appear the same size ───────────── */
.faculty-mini .avatar,
#faculty .faculty-photo {
  position: relative;
  display: block;
  flex-shrink: 0;
  overflow: hidden;
  background: #e8eef4;
}

.faculty-mini .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(6, 182, 212, 0.4), 0 8px 18px -8px rgba(15, 23, 42, 0.45);
}

#faculty .faculty-photo {
  width: 180px;
  height: 180px;
  border-radius: 20px;
  box-shadow: 0 0 0 1px var(--line), 0 14px 30px -14px rgba(15, 23, 42, 0.4);
}

.faculty-mini .avatar img,
#faculty .faculty-photo img {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  object-fit: cover !important;
  object-position: var(--focus, 50% 35%);
  transform: scale(var(--zoom, 1));
  transform-origin: var(--focus, 50% 35%);
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: transform 0.4s ease;
}

.faculty-mini:hover .avatar img { transform: scale(calc(var(--zoom, 1) * 1.06)); }

/* ── Inner page headers match the contained homepage hero ───────────────── */
.all-header-main {
  width: calc(100% - 48px);
  max-width: 1280px;
  margin: 26px auto 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(8, 13, 26, 0.55);
}

@media (max-width: 991px) {
  .all-header-main {
    width: calc(100% - 24px);
    margin-top: 20px;
    border-radius: 22px;
    min-height: 0;
    padding: 48px 16px 40px !important;
  }
}

/* Privacy page reuses #home: match the inner-page header height */
#home:not(:has(.hero-inner)) { min-height: 300px !important; }

@media (max-width: 991px) {
  #home:not(:has(.hero-inner)) { min-height: 0 !important; }
  .mobile-filter-bar { margin-top: 12px; }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LIGHT BLUE THEME: page background and cards use soft blues instead of white
   ═══════════════════════════════════════════════════════════════════════════════ */
:root {
  --page-bg: #e4f0f8;        /* soft sky blue page */
  --card-bg: #f3f9fd;        /* lighter blue cards */
  --card-bg-hover: #eaf5fc;
  --card-border: #c9e0ee;
  --line: #c9e0ee;
}

html,
body {
  background-color: var(--page-bg) !important;
}

/* Cards and panels */
.card,
.area-card,
.faculty-stack,
.research-card,
.publication-entry,
.students-info-section .students-info-section-card,
#faculty .card,
#faculty .card:hover,
.lab-director .rounded,
.bibbase-publications,
.bg-white,
.floating-nav,
.mobile-filter-bar,
.gallery-filter-wrapper,
.custom-dropdown-toggle,
.custom-dropdown-menu {
  background-color: var(--card-bg) !important;
  border-color: var(--card-border) !important;
}

.card,
.research-card,
.faculty-stack,
.publication-entry {
  box-shadow: 0 1px 2px rgba(14, 116, 144, 0.06), 0 6px 18px -6px rgba(14, 116, 144, 0.18);
}

/* Section bands */
.about-section {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(6, 182, 212, 0.12), transparent 50%),
    var(--page-bg);
}

/* Small elements that sat on white */
.faculty-mini:hover { background: var(--card-bg-hover); }
.faculty-mini .avatar { box-shadow: 0 0 0 3px var(--card-bg), 0 0 0 5px rgba(6, 182, 212, 0.45), 0 8px 18px -8px rgba(15, 23, 42, 0.45); }
.students-info-section img { box-shadow: 0 0 0 4px var(--card-bg), 0 0 0 6px rgba(6, 182, 212, 0.3), 0 10px 24px -8px rgba(15, 23, 42, 0.35); }

.people-card-row:hover { background: linear-gradient(90deg, rgba(6, 182, 212, 0.12), transparent 70%); }

.featured_researches .card-img-top { background: #eef6fb; }

#faculty .btn-light,
#faculty .btn-light.text-info { background: #e3f1f9; border-color: var(--card-border) !important; }

.floating-nav a:hover:not(.active),
.custom-dropdown-item:hover,
.gallery-filter-btn:hover:not(.active) { background-color: var(--card-bg-hover); }

.mobile-filter-btn { background: #e3f1f9; }
.mobile-filter-btn:hover { background: #d6eaf5; }

#featuredResearchCarousel .carousel-control-prev,
#featuredResearchCarousel .carousel-control-next,
#newsCarousel .carousel-control-prev,
#newsCarousel .carousel-control-next { background-color: var(--card-bg); }

.keyword-tag { background: rgba(6, 182, 212, 0.14); }

.publication-entry { border-left: 4px solid var(--cyan) !important; }

/* ═══════════════════════════════════════════════════════════════════════════════
   HOMEPAGE: faint Lakehead campus photo behind the page
   Drop the photo at assets/images/bg-images/lakehead-campus.jpg (≥1920px wide).
   If the file is missing the page simply stays light blue.
   Intensity: raise/lower the overlay alpha (0.40 / 0.55) to show more/less photo.
   ═══════════════════════════════════════════════════════════════════════════════ */
html:has(.hero-inner) { background-color: var(--page-bg) !important; }
body:has(.hero-inner) { background-color: transparent !important; }

body:has(.hero-inner)::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('../images/bg-images/lakehead-campus.jpg') center / cover no-repeat;
  filter: none;
}

/* let the photo show through the homepage sections */
body:has(.hero-inner) .about-section { background: transparent !important; }

/* With a stronger photo, give the Vision text a soft frosted backing so it stays readable */
body:has(.hero-inner) .about-section .col-lg-7 {
  padding: 32px 36px;
  border-radius: 22px;
  background: rgba(243, 249, 253, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(201, 224, 238, 0.7);
}

@media (max-width: 991px) {
  body:has(.hero-inner) .about-section .col-lg-7 { padding: 24px 20px; }
}

/* Section intros sit directly on the photo: darker text + soft light halo */
body:has(.hero-inner) .featured_researches > h2,
body:has(.hero-inner) .featured_researches > p,
body:has(.hero-inner) .recent_news_card > h2,
body:has(.hero-inner) .recent_news_card > p {
  color: #1e293b !important;
  text-shadow: 0 0 14px rgba(255, 255, 255, 1), 0 0 6px rgba(255, 255, 255, 1), 0 0 2px rgba(255, 255, 255, 1);
}

body:has(.hero-inner) .featured_researches > h2,
body:has(.hero-inner) .recent_news_card > h2 { color: #0f172a !important; }

/* Photo is stronger now: frost the section intros so they stay readable */
body:has(.hero-inner) .featured_researches > h2,
body:has(.hero-inner) .recent_news_card > h2 {
  display: table;
  margin-left: auto !important;
  margin-right: auto !important;
}

body:has(.hero-inner) .featured_researches > p,
body:has(.hero-inner) .recent_news_card > p {
  display: table;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: none;
}

body:has(.hero-inner) .about-section .col-lg-7 { background: rgba(255, 255, 255, 0.78); }

body:has(.hero-inner) .btn-outline-secondary {
  background-color: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(6px);
}
body:has(.hero-inner) .btn-outline-secondary:hover { background-color: var(--teal-deep) !important; }

/* ═══════════════════════════════════════════════════════════════════════════════
   HOMEPAGE CONTENT CARD: one light-blue panel holding Vision, Featured Research
   and Recent News, floating over the campus photo like the hero card
   ═══════════════════════════════════════════════════════════════════════════════ */
.home-content-card {
  width: calc(100% - 48px);
  max-width: 1280px;
  margin: 28px auto 56px;
  padding: 8px 0 48px;
  border-radius: 28px;
  background: rgba(228, 241, 250, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -28px rgba(8, 13, 26, 0.55);
}

/* Inside the card, the extra frosted panels/pills are no longer needed */
.home-content-card .about-section { padding: 64px 0 40px; }

body:has(.hero-inner) .home-content-card .about-section .col-lg-7 {
  padding: 0 calc(var(--bs-gutter-x) * 0.5);
  background: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body:has(.hero-inner) .home-content-card .featured_researches > p,
body:has(.hero-inner) .home-content-card .recent_news_card > p {
  display: block;
  padding: 0;
  border-radius: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--muted) !important;
}

body:has(.hero-inner) .home-content-card .featured_researches > h2,
body:has(.hero-inner) .home-content-card .recent_news_card > h2,
body:has(.hero-inner) .home-content-card .featured_researches > p,
body:has(.hero-inner) .home-content-card .recent_news_card > p { text-shadow: none; }

/* cards inside the blue panel: slightly lighter so they lift off it */
.home-content-card .card,
.home-content-card .faculty-stack { background-color: #f7fbfe !important; }

.home-content-card .btn-outline-secondary { background-color: transparent !important; backdrop-filter: none; }
.home-content-card .btn-outline-secondary:hover { background-color: var(--teal-deep) !important; }

@media (max-width: 991px) {
  .home-content-card {
    width: calc(100% - 24px);
    margin: 20px auto 36px;
    border-radius: 22px;
    padding-bottom: 32px;
  }
  .home-content-card .about-section { padding: 40px 0 24px; }
}

@media (max-width: 991px) {
  body:has(.hero-inner) .home-content-card .about-section .col-lg-7 { padding: 0 calc(var(--bs-gutter-x) * 0.5) !important; }
  .home-content-card .about-section .row { --bs-gutter-x: 1.5rem; }
}

/* Make the homepage content card read as clearly as the hero card */
.home-content-card {
  background: rgba(226, 240, 250, 0.95);
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.35),
    0 30px 60px -24px rgba(8, 13, 26, 0.6);
}

/* People page: each person is its own card, two per row on large screens */
.students-info-section .students-info-section-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  width: 100% !important;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Photo column sizes to the photo; text column takes the rest */
.students-info-section .people-card-row > .col-md-4 {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  padding: 0.5rem;
}

.students-info-section .people-card-row > .col-md-8 {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: none;
}

.students-info-section .people-card-row .card-body {
  width: 100% !important;
  height: auto;
  padding: 0.75rem 1rem !important;
}

.students-info-section .people-card-row .card-text {
  overflow-wrap: anywhere;
}

.students-info-section .people-card-row img {
  width: 120px !important;
  height: 120px !important;
  margin-top: 0 !important;
}

/* Phones: stack photo above text */
@media (max-width: 575.98px) {
  .students-info-section .people-card-row > .col-md-4,
  .students-info-section .people-card-row > .col-md-8 {
    flex: 0 0 100%;
    width: 100%;
  }
  .students-info-section .people-card-row .card-body { text-align: center; }
}

.students-info-section .people-card-row {
  margin: 0 !important;
  padding: 1rem !important;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border) !important;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(14, 116, 144, 0.06), 0 6px 18px -6px rgba(14, 116, 144, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.students-info-section .people-card-row:hover {
  background: var(--card-bg-hover);
  border-color: var(--cyan) !important;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -10px rgba(14, 116, 144, 0.35);
}

.students-info-section .people-card-row:hover .card-body { padding-left: 1rem; }

@media (min-width: 992px) {
  .students-info-section .students-info-section-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Group headers (e.g. "Graduate Alumni") span the full row above their cards */
.students-info-section .students-info-section-card > .card-header {
  grid-column: 1 / -1;
  background: transparent !important;
  backdrop-filter: none !important;
  border: 0 !important;
  padding: 0 0.25rem;
}

.students-info-section .students-info-section-card > .card-header h5 {
  color: var(--teal-deep) !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
}

/* Text-only cards (no photo) use the full card width */
.students-info-section .people-card-row > .col-md-12 {
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  padding: 0;
}

/* Space between stacked group cards */
.students-info-section .students-info-section-card + .students-info-section-card {
  margin-top: 2.5rem !important;
}

/* Background cards for each people-page topic heading */
.students-info-section > h2,
.students-info-section .supervisor-heading,
.students-info-section .students-info-section-card > .card-header h5 {
  display: table;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0.6rem 1.75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--cyan);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(14, 116, 144, 0.06), 0 6px 18px -6px rgba(14, 116, 144, 0.18);
  color: var(--teal-deep);
}

.students-info-section > h2 { margin-bottom: 2rem !important; }
.students-info-section > h2::after { display: none; }

.students-info-section .supervisor-heading {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
}

.students-info-section .students-info-section-card > .card-header h5 {
  margin-bottom: 0.25rem;
  padding: 0.45rem 1.25rem;
}

/* One background box per group (heading + its people cards) */
.students-info-section .students-info-section-card {
  padding: 1.5rem !important;
  background: rgba(255, 255, 255, 0.55) !important;
  border: 1px solid var(--card-border) !important;
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(14, 116, 144, 0.05), 0 10px 30px -12px rgba(14, 116, 144, 0.22) !important;
}

.students-info-section .students-info-section-card > .supervisor-heading,
.students-info-section .students-info-section-card > .card-header {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 0 0 0.25rem !important;
}

.students-info-section .students-info-section-card > .card-header { justify-self: stretch; }

@media (max-width: 576px) {
  .students-info-section .students-info-section-card { padding: 1rem !important; }
}

/* ============================================================
   Join Us page
   ============================================================ */
.join-section .section-subtitle { margin-bottom: 0; }

.join-card {
  background: #fff;
  border: 1px solid #e3e9f0;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.join-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06), 0 18px 40px -12px rgba(14, 116, 144, 0.28);
}
.join-card h5 { font-weight: 700; margin-bottom: 0.4rem; }
.join-card p { color: #5b6b80; margin-bottom: 0; font-size: 0.95rem; }
.join-card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 0.9rem;
  color: #fff;
  font-size: 1.15rem;
  background: linear-gradient(135deg, #06b6d4, #10b981);
}

.join-note {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  color: #164e63;
}
.join-note ul { padding-left: 1.2rem; }
.join-note li { margin-bottom: 0.35rem; }
.join-note a { color: #0e7490; font-weight: 600; }

.join-form-card {
  background: #fff;
  border: 1px solid #e3e9f0;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05), 0 18px 40px -16px rgba(14, 116, 144, 0.25);
  scroll-margin-top: 90px;
}
.join-form-card .form-label { font-weight: 600; color: #0f172a; }
.join-form-card .form-control:focus,
.join-form-card .form-select:focus,
.join-form-card .form-check-input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 0.2rem rgba(6, 182, 212, 0.2);
}
.join-form-card .form-check-input:checked { background-color: #06b6d4; border-color: #06b6d4; }

.join-interests { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.join-chip { position: relative; cursor: pointer; margin: 0; }
.join-chip input { position: absolute; opacity: 0; pointer-events: none; }
.join-chip span {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #334155;
  background: #f8fafc;
  transition: all 0.15s ease;
  user-select: none;
}
.join-chip:hover span { border-color: #06b6d4; }
.join-chip input:checked + span {
  background: linear-gradient(135deg, #06b6d4, #10b981);
  border-color: transparent;
  color: #fff;
}
.join-chip input:focus-visible + span { outline: 2px solid #0e7490; outline-offset: 2px; }
.join-interests.is-invalid .join-chip span { border-color: #dc3545; }

.join-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.join-submit { color: #fff !important; min-width: 220px; }
.join-submit:disabled { opacity: 0.7; }

.join-success { text-align: center; padding: 2.5rem 1rem; }
.join-success-icon { font-size: 3.5rem; color: #10b981; margin-bottom: 0.75rem; }

@media (max-width: 576px) {
  .join-form-card { padding: 1.25rem; }
  .join-submit { width: 100%; }
}

/* People page: placeholder for an entry without a photo (same size and ring as a photo) */
.students-info-section .people-photo-empty {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8eef4;
  color: #94a3b8;
  font-size: 3rem;
  box-shadow: 0 0 0 4px var(--card-bg, #fff), 0 0 0 6px rgba(6, 182, 212, 0.3), 0 10px 24px -8px rgba(15, 23, 42, 0.35);
}
@media (max-width: 575.98px) {
  .students-info-section .people-photo-empty { margin: 0 auto; }
}
