/*──────────────────────────────────────────────────────────────────────────────
  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
──────────────────────────────────────────────────────────────────────────────*/
.navbar {
  background-color: var(--secondary-color) !important;
}

.navbar-brand {
  font-weight: bold;
  color: var(--primary-color) !important;
  font-size: var(--font-size-xl);
}

.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);
}

.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-nav {
  position: fixed;
  top: 50%;
  right: var(--spacing-lg);
  transform: translateY(-50%);
  background: var(--white);
  border: 1px solid #ccc;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  text-align: center;
  flex-direction: column;
}

.floating-nav a {
  display: block;
  margin: 8px 0;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.floating-nav a.active {
  background-color: var(--primary-dark);
  color: var(--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);
}

.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%;
}

#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;
}



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

.research-card {
  background: var(--white);
  border-radius: var(--spacing-sm);
  margin-bottom: 2rem;
  padding: 0;
  overflow: hidden;
  transition: var(--transition);
}

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

.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,
#galleryModal .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,
#galleryModal .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,
#galleryModal .modal-body {
  padding: 0 !important;
  text-align: center;
  display: block;
}

#modalImage,
#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;
}

/*──────────────────────────────────────────────────────────────────────────────
  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 hr {
  margin: 8px;
}

/*──────────────────────────────────────────────────────────────────────────────
  RESPONSIVE STYLES - SHARED MOBILE NAVIGATION
──────────────────────────────────────────────────────────────────────────────*/
/* Mobile Filter Bar (shared across breakpoints) */
.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-btn {
  padding: 8px 16px;
  background: var(--bg-light);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-size: 14px;
  white-space: nowrap;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

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

/* 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 */
@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 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;
}

/* Enhanced Navigation */
.navbar {
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.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-filter-btn, .mobile-filter-btn {
  border-radius: 20px;
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  background: white;
  transition: all 0.3s ease;
  font-weight: 500;
}

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

/* Enhanced Floating Navigation */
.floating-nav {
  border-radius: 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-nav a {
  border-radius: 8px;
  transition: all 0.2s ease;
  padding: 8px 12px;
}

.floating-nav a.active {
  background: #06b6d4;
  color: white;
}

.floating-nav a:hover:not(.active) {
  background-color: rgba(6, 182, 212, 0.1);
}

/* Enhanced People Cards */
.students-info-section-card {
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  border: none;
}

.students-info-section-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

#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 */
@media (max-width: 768px) {
  .card:hover, .research-card:hover {
    transform: translateY(-4px);
  }
  
  section h2::after {
    width: 40px;
  }
  
  .research-content {
    padding: 1.5rem;
  }
}

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

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

/* Enhanced Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* 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;
}