/**
* https://colorhunt.co/palette/212984
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: "Open Sans", sans-serif;
  color: #333333;
  background: #f9f9f9;
}

a {
  color: #1a3d7c;
  text-decoration: none;
}

a:hover {
  color: #3a6bc7;
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Raleway", sans-serif;
}

.btn-branded {
  background: #1a3d7c;
  border: 0;
  padding: 10px 30px;
  color: #ffffff;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.btn-branded:hover {
  background: #3a6bc7;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
#header {
  transition: all 0.5s;
  z-index: 997;
  padding: 15px 0;
  background: #ffffff; /* Solid white background */
  justify-content: space-between;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

#header.header-transparent {
  background: #ffffff; /* Keep white even when transparent class is applied */
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

#header.header-scrolled {
  background: #ffffff;
  padding: 10px 0;
}

/* Logo styling remains the same */
#header .logo {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  line-height: 1;
}

#header .logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

#header .logo img {
  height: 40px;
  margin-right: 10px;
}

#header .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

#header .logo-top {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  font-family: "Raleway", sans-serif;
}

#header .logo-middle {
  font-size: 18px;
  font-weight: 700;
  color: #1a3d7c;
  letter-spacing: 1px;
  font-family: "Raleway", sans-serif;
}

#header .logo-bottom {
  font-size: 18px;
  font-weight: 700;
  color: #1a3d7c;
  letter-spacing: 1px;
  font-family: "Raleway", sans-serif;
}

/* Navigation menu styling */
.nav-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu > ul {
  display: flex;
}

.nav-menu > ul > li {
  position: relative;
  white-space: nowrap;
  padding: 10px 0 10px 22px; /* Reduced padding to accommodate larger text */
}

.nav-menu a.nav-link {
  display: block;
  position: relative;
  color: #444444;
  font-size: 17px; /* Increased font size from 17px to 20px */
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  padding: 2px 0;
  letter-spacing: 0.5px;
  transition: 0.3s;
  text-transform: uppercase;
}

.nav-menu a.nav-link:hover, 
.nav-menu .active > a.nav-link, 
.nav-menu li:hover > a.nav-link {
  color: #1a3d7c;
  text-decoration: none;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 60vh; /* Reduced height from 70vh to 60vh */
  position: relative;
  overflow: hidden;
}

#video-bg {
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

#hero:before {
  content: "";
  background: rgba(0, 0, 0, 0);  /* 
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
}

#hero .container {
  text-align: left; /* Changed from center to left */
  padding-top: 60px;
  position: relative;
  z-index: 10;
}

#hero .hero-content {
  max-width: 550px; /* Added to constrain the text width */
  margin-left: 50px; /* Added to position text from the left edge */
}

#hero h1 {
  margin: 0;
  font-size: 38px; /* Reduced from 42px */
  font-weight: 700;
  line-height: 46px; /* Reduced from 50px */
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  font-family: "Raleway", sans-serif;
}

#hero h2 {
  color: #ffffff;
  margin: 15px 0 0 0;
  font-size: 20px; /* Reduced from 22px */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  font-family: "Raleway", sans-serif;
}

#hero .btn-get-started {
  font-family: "Raleway", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 35px;
  border-radius: 5px;
  transition: 0.5s;
  margin-top: 30px; /* Reduced from 40px */
  border: 2px solid #ffffff;
  color: #ffffff;
  background: rgba(26, 61, 124, 0.7);
}

#hero .btn-get-started:hover {
  background: #1a3d7c;
  border-color: #1a3d7c;
}

/*--------------------------------------------------------------
# Team
--------------------------------------------------------------*/
.team .row {
  display: flex;
  flex-wrap: wrap;
}

.team .col-lg-3,
.team .col-md-6 {
  display: flex;
  margin-bottom: 30px;
}

.team .member {
  margin-bottom: 0;
  width: 100%;
  overflow: hidden;
  text-align: center;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.team .member:hover {
  transform: translateY(-5px);
}

.team .member .member-img {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 300px !important;
  min-height: 300px !important;
  max-height: 300px !important;
}

.team .member .member-img img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center top;
}

.team .member .social {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  height: 40px;
  opacity: 0;
  transition: ease-in-out 0.3s;
  text-align: center;
  background: rgba(26, 61, 124, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team .member .social a {
  transition: color 0.3s;
  color: #ffffff;
  margin: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.team .member .social a:hover {
  color: #e6e6e6;
}

.team .member .social i {
  font-size: 18px;
  margin: 0 2px;
}

.team .member .member-info {
  padding: 25px 15px;
  height: 140px !important;
  min-height: 140px !important;
  max-height: 140px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team .member .member-info h4 {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 18px;
  color: #1a3d7c;
}

.team .member .member-info span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #666666;
}

.team .member:hover .social {
  opacity: 1;
}

.member-info .scholarship {
  display: block;
  font-size: 0.85em;
  font-style: italic;
  margin-top: 2px;
  color: #5c8eb0; 
}

/*--------------------------------------------------------------
# Alumni Section
--------------------------------------------------------------*/
.alumni {
  padding: 60px 0;
}

.alumni .section-title h2 {
  color: #1a3d7c;
  margin-bottom: 30px;
}

.alumni-card {
  width: 100%;
  height: 120px;
  overflow: hidden;
  text-align: center;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  padding: 25px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 30px; /* Added margin to create more vertical space */
}

.alumni-card:hover {
  transform: translateY(-5px);
}

.alumni-card h4 {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 18px;
  color: #1a3d7c;
}

.alumni-card span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #666666;
}

/* Team intro styling */
.team-intro {
  margin-bottom: 60px;
}

.team-intro p {
  color: #666;
  font-size: 22px; /* Increased from 18px */
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

/* Publications Section Styling */
.publications {
  padding: 60px 0;
  background-color: #fff;
}

.publications .section-title h2 {
  color: #1a3d7c;
  margin-bottom: 30px;
}

.publication-item {
  width: 100%;
  margin-bottom: 20px;
  padding: 25px;
  background: #f9f9f9;
  border-radius: 5px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  border-left: 4px solid #1a3d7c;
}

.publication-item:hover {
  transform: translateY(-5px);
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
}

.publication-item .publication-title {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
  color: #1a3d7c;
  line-height: 1.4;
}

.publication-item .publication-authors {
  font-size: 15px;
  color: #555;
  margin-bottom: 8px;
  font-family: "Georgia", serif;
  font-style: italic;
}

.publication-item .publication-authors strong {
  font-weight: 700;
}

.publication-item .publication-journal {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
  font-weight: 600;
}

.publication-item .publication-year {
  font-size: 14px;
  background-color: #1a3d7c;
  color: #fff;
  padding: 4px 10px;
  border-radius: 15px;
  display: inline-block;
  margin-bottom: 12px;
}

.publication-item .publication-link {
  display: inline-block;
  padding: 6px 15px;
  background-color: transparent;
  color: #1a3d7c;
  border: 1px solid #1a3d7c;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 10px;
}

.publication-item .publication-link:hover {
  background-color: #1a3d7c;
  color: #fff;
  text-decoration: none;
}

/* Collaborators Section Styling */
.clients {
  padding: 40px 0;
}

.clients img {
  max-height: 70px;
  margin: 15px auto;
  display: block;
  opacity: 0.5;
  transition: all 0.4s ease;
  filter: grayscale(100%);
}

.clients img:hover {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.1);
}

.clients-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.client-item {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Press Links Section Styling */
.press-links {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.press-links .section-title h2 {
  color: #1a3d7c;
  margin-bottom: 30px;
}

.press-link-item {
  width: 100%;
  margin-bottom: 20px;
  padding: 20px;
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.press-link-item:hover {
  transform: translateY(-5px);
}

.press-link-item .press-source {
  color: #1a3d7c;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 5px;
}

.press-link-item .press-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
  color: #444444;
}

.press-link-item .press-date {
  font-size: 14px;
  color: #777;
  margin-bottom: 15px;
}

.press-link-item .press-excerpt {
  font-size: 15px;
  color: #555;
  margin-bottom: 15px;
}

.press-link-item .read-more {
  display: inline-block;
  padding: 8px 20px;
  background-color: transparent;
  color: #1a3d7c;
  border: 1px solid #1a3d7c;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
  border-radius: 4px;
}

.press-link-item .read-more:hover {
  background-color: #1a3d7c;
  color: #fff;
  text-decoration: none;
}

/* Hiring section styling */
.hiring-section {
  padding: 60px 0 30px;
  margin-top: 50px;
}

.hiring-section h3 {
  font-size: 32px; /* Increased from 28px */
  font-weight: 700;
  color: #444;
  margin-bottom: 20px;
}

.hiring-section p {
  color: #666;
  font-size: 22px; /* Increased from 18px */
  max-width: 600px;
  margin: 0 auto 30px;
}

.more-info-btn {
  display: inline-block;
  padding: 10px 30px;
  background-color: transparent;
  color: #1a3d7c;
  border: 2px solid #1a3d7c;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s;
  text-decoration: none;
}

.more-info-btn:hover {
  background-color: #1a3d7c;
  color: #fff;
  text-decoration: none;
}

/* Welcome text and Research Overview styling */
.welcome-text {
  margin-bottom: 30px;
  padding: 0 10px;
}

.welcome-text h3 {
  font-size: 34px; /* Increased from 28px */
  font-weight: 700;
  color: #1a3d7c;
  margin-bottom: 10px;
}

.welcome-text .lead {
  font-size: 24px; /* Increased from 18px */
  color: #555;
  font-weight: 500;
}

.research-overview {
  margin-top: 40px;
}

.research-overview h4 {
  font-size: 28px; /* Increased from 22px */
  font-weight: 700;
  color: #1a3d7c;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.research-overview p {
  font-size: 20px; /* Increased from 16px */
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
  text-align: justify;
}

/* Section Title Styling */
.section-title {
  text-align: center;
  padding-bottom: 30px;
}

.section-title h2 {
  font-size: 38px; /* Increased from 32px */
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: #444;
}

.section-title h2::after {
  content: '';
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: #1a3d7c;
  bottom: 0;
  left: calc(50% - 25px);
}

/* Join Lab Modal */
.join-lab-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  align-items: center;
  justify-content: center;
  overflow: auto;
}

.join-lab-modal-content {
  position: relative;
  background-color: #fff;
  width: 90%;
  max-width: 800px;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  max-height: 90vh;
  overflow-y: auto;
}

.join-lab-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #777;
  cursor: pointer;
  transition: all 0.3s;
}

.join-lab-close:hover {
  color: #1a3d7c;
}

.join-lab-modal h2 {
  text-align: center;
  color: #1a3d7c;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  padding-bottom: 15px;
  position: relative;
}

.join-lab-modal h2:after {
  content: '';
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: #1a3d7c;
  bottom: 0;
  left: calc(50% - 25px);
}

.join-lab-modal h4 {
  color: #1a3d7c;
  font-size: 20px;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 12px;
}

.join-lab-modal p {
  margin-bottom: 15px;
  color: #555;
  font-size: 16px;
  line-height: 1.6;
}

.join-lab-modal ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.join-lab-modal ul li {
  margin-bottom: 8px;
  color: #555;
  font-size: 16px;
}

.join-lab-modal strong {
  color: #1a3d7c;
  font-weight: 600;
}

.join-lab-close-btn {
  background-color: #1a3d7c;
  color: #fff;
  border: none;
  padding: 10px 25px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s;
}

.join-lab-close-btn:hover {
  background-color: #3a6bc7;
}

/* Teaching Section */
.teaching-section {
  padding: 90px 0 30px; /* Increased top padding from 60px to 90px */
  margin-top: 50px;
  margin-bottom: 70px;
}

.teaching-section h3 {
  font-size: 32px;
  font-weight: 700;
  color: #444;
  margin-bottom: 20px;
}

.teaching-category {
  margin-bottom: 20px;
}

.teaching-category h4 {
  margin-bottom: 10px;
  color: #1a3d7c;
  font-weight: 600;
  font-size: 24px;
}

.teaching-category p {
  color: #666;
  font-size: 18px;
  margin-bottom: 5px;
  white-space: nowrap; /* Prevents text wrapping */
  overflow: hidden;
  text-overflow: ellipsis; /* Shows ... if text is too long */
  max-width: 100%;
}

/* For mobile responsiveness */
@media (max-width: 768px) {
  .teaching-category p {
    white-space: normal; /* Allow wrapping on small screens */
    text-overflow: initial;
    font-size: 16px;
  }
}

/* Mobile Navigation */
.mobile-nav-toggle {
  position: fixed;
  right: 15px;
  top: 18px;
  z-index: 9998;
  border: 0;
  background: none;
  font-size: 24px;
  transition: all 0.4s;
  outline: none !important;
  line-height: 1;
  cursor: pointer;
  text-align: right;
  display: none; /* This will be overridden in media query */
}

.mobile-nav-toggle i {
  color: #1a3d7c;
  text-shadow: none;
}

.mobile-nav {
  position: fixed;
  top: 55px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  z-index: 9999;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.9);
  transition: ease-in-out 0.2s;
  opacity: 0;
  visibility: hidden;
  border-radius: 10px;
  padding: 10px 0;
}

.mobile-nav * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav a {
  display: block;
  position: relative;
  color: #fff;
  padding: 10px 20px;
  font-weight: 500;
  outline: none;
  text-decoration: none;
}

.mobile-nav a:hover, .mobile-nav .active > a, .mobile-nav li:hover > a {
  color: #1a3d7c;
  text-decoration: none;
}

.mobile-nav .drop-down > a:after {
  content: "\ea99";
  font-family: IcoFont;
  padding-left: 10px;
  position: absolute;
  right: 15px;
}

.mobile-nav .active.drop-down > a:after {
  content: "\eaa1";
}

.mobile-nav .drop-down > a {
  padding-right: 35px;
}

.mobile-nav .drop-down ul {
  display: none;
  overflow: hidden;
}

.mobile-nav .drop-down li {
  padding-left: 20px;
}

.mobile-nav-overly {
  width: 100%;
  height: 100%;
  z-index: 9997;
  top: 0;
  left: 0;
  position: fixed;
  background: rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: none;
  transition: ease-in-out 0.2s;
}

.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active .mobile-nav {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-active .mobile-nav-toggle i {
  color: #fff;
}

/* Media query to hide regular nav and show only the hamburger on smaller screens */
@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block !important;
    visibility: visible !important;
    position: absolute !important;
    right: 15px;
    top: 18px;
    z-index: 9998;
  }
  
  /* Override Bootstrap's d-none class */
  button.d-none.mobile-nav-toggle {
    display: block !important;
  }
  
  .mobile-nav-toggle i {
    color: #1a3d7c !important;
    font-size: 28px !important;
    text-shadow: none !important;
  }
  
  .nav-menu {
    display: none;
  }
  
  #header {
    padding: 15px;
  }
  
  .header-transparent {
    background: #ffffff !important;
  }
}

/* Special mobile-only fixes */
@media (max-width: 767px) {
  .mobile-nav-toggle {
    display: block !important;
    visibility: visible !important;
    position: fixed !important; /* Change to fixed */
    right: 15px !important;
    top: 15px !important;
    z-index: 9999 !important; /* Higher z-index */
    background: rgba(255, 255, 255, 0.8) !important; /* Add background */
    padding: 8px !important; /* Add padding */
    border-radius: 4px !important; /* Round corners */
  }
  
  .mobile-nav-toggle i {
    font-size: 24px !important;
    color: #1a3d7c !important;
  }
}

/* Mobile menu styles */
.mobile-nav {
  position: fixed !important;
  top: 60px !important;
  right: 15px !important;
  bottom: 15px !important;
  left: 15px !important;
  z-index: 9999 !important;
  overflow-y: auto !important;
  background: rgba(0, 0, 0, 0.9) !important;
  padding: 10px 0 !important;
  border-radius: 10px !important;
  max-width: 90% !important;
  margin: 0 auto !important;
}

/* Make sure mobile menu is visible when active */
.mobile-nav-active .mobile-nav {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Mobile-only icon fix */
.mobile-nav-toggle i.icofont-navigation-menu {
  display: inline-block !important;
  visibility: visible !important;
}

/* Guaranteed fix for desktop menu issues */
@media (min-width: 992px) {
  /* Hide ALL mobile navigation elements on desktop */
  #standalone-menu-toggle,
  .mobile-nav-toggle,
  .d-none.mobile-nav-toggle,
  .d-lg-none.mobile-nav-toggle,
  button.mobile-nav-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  /* Reset mobile menu state */
  #standalone-menu,
  .mobile-nav,
  .mobile-nav-overly {
    transform: translateX(100%) !important;
    visibility: hidden !important;
    opacity: 0 !important;
    display: none !important;
  }
}
