/* COLORS
- Blue: #286dbd
- Footer Blue: #005392
- Green: #00bccb 
- Pink: #eecbfe
- Black: #000
- White: #fff
*/

:root {
  --dark-blue: #005392;
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  width: 100%;
  height: 100%;
  /* font-size: 10px; */
  /* 10px / 16px = 0.625 = 62.5% */
  /* 1 rem = 10px with this setting */
  /* Percentage of user's browser font-size setting */
  box-sizing: border-box;
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', 'Roboto', sans-serif;
  color: #000;
  line-height: 1.6;
  font-weight: 300;

  /* Only works if there is nothing absolutely positioned in relation to body */
  overflow-x: hidden;
}

h1 {
  font-size: 4.8rem;
}

h2 {
  font-size: 4.8rem;
}

h3 {
  font-size: 1.76rem;
}

p {
  font-weight: 300;
}

a {
  text-decoration: none !important;
}

a:hover {
  text-decoration: none !important;
}

.text-wrap {
  word-wrap: break-word;
}

.dark-blue-bg {
  background-color: var(--dark-blue);
}

.button-purple {
  background-color: #eecbfe;
}

.btn {
  border-radius: 5.76rem;
  color: #000 !important;
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  cursor: pointer;
  padding: 1.92rem 3.2rem;
  transition: 0.2s ease;
  border: 1px solid transparent;
}

.btn:hover {
  background-color: #fff;
  color: #000 !important;
  border: 1px solid #eecbfe;
}

.cta {
  font-size: 1.6rem;
  border-radius: 8rem;
  padding: 1.6rem 3.84rem;
  margin-top: 3.2rem;
  background-color: #eecbfe;
  color: #fff;
}

.cta:after {
  transition: 0.2s ease;
}

.cta:hover:after {
  padding-left: 0.8rem;
}

.btn-join {
  width: 24rem;
}

.main-margins,
.nav-main-margins {
  margin-left: 10%;
  margin-right: 10%;
}

.main-paddings {
  padding-left: 10%;
  padding-right: 10%;
}

.section-title {
  font-weight: 500;
  padding-bottom: 1.6rem;
}

/*************************************************/
/* Header */
/*************************************************/
.header-padding {
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
}

.logo-img {
  height: 6.4rem;
  width: auto;
}

.menu-item {
  transition: color 0.3s ease-in-out;
}

.menu-item:hover,
.menu-item.active {
  color: #00838f !important;
}

.menu-link {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1.2;
  color: #212529;
  text-decoration: none;
}

.hamburger-wrapper {
  display: none;
  cursor: pointer;
}

.hamburger-icon,
.close-icon {
  width: 3rem;
  height: 3rem;
}

.close-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  z-index: 1000;
}

.navbar-links-wrapper {
  display: flex;
  flex-direction: row;
}

.navbar-links-wrapper ul {
  display: flex;
  flex-direction: row;
}

.navbar-links-wrapper ul li {
  margin: 0 1rem;
}

.navbar-links-wrapper ul li a {
  font-size: 1.8rem;
}

/* STICKY NAVIGATION */
.header.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  height: 12.8rem;
  padding-bottom: 0;
  background-color: rgba(255, 255, 255, 0.97);
  z-index: 999;
  box-shadow: 0 1.92rem 5.12rem rgba(0, 0, 0, 0.03);
}

.sticky .section-hero {
  margin-top: 15.36rem;
}

.image-border-radius {
  border-radius: 5px;
}

/*************************************************/
/* Hero Section */
/*************************************************/
.hero-background {
  position: relative;
  height: 46.5vh;
}

.gradient-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    #015493 0%,
    #005a98 20%,
    #02639b 40%,
    #0173a4 65%,
    #00a9c1 100%
  );
}

.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.hero-content {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
}

.hero-title {
  font-weight: 500;
  color: #fff;
  padding-bottom: 2.4rem;
  word-wrap: break-word;
}

.hero-description {
  color: #fff;
  font-size: 2.4rem;
  line-height: 1.5;
  overflow-wrap: break-word;
  padding-bottom: 2.4rem;
}

/*************************************************/
/* Our Research section */
/*************************************************/
.section-our-research {
  margin-top: 5rem;
  padding: 5rem 0;
}

.our-research-content {
  padding-bottom: 1.6rem;
  font-size: 2.4rem;
}

.styled-background {
  position: relative;
  height: 44.5vh;
}

.background-image {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  opacity: 0.8;
}

/*************************************************/
/* Our People section */
/*************************************************/
.section-our-people {
  margin-top: 5rem;
  margin-bottom: 3rem;
  padding: 5rem 0;
}

.our-people-text-box {
  padding-left: 4.8rem;
}

.our-people-text {
  font-size: 2.4rem;
  padding-bottom: 2.56rem;
}

/*************************************************/
/* Footer */
/*************************************************/
.section-footer {
  padding: 4.8rem 0;
  color: #fff;
  background-color: var(--dark-blue);
}

.footer-address-box,
.footer-keith-info-box {
  margin-top: 1.6rem;
}

.footer-title {
  font-size: 1.8rem;
  font-weight: 600;
  padding-bottom: 0.8rem;
}

.footer-address,
.footer-contact {
  font-size: 1.6rem;
  margin-bottom: 0;
}

.copyright {
  font-size: 1.6rem;
  margin: 1.6rem 0;
}

.email-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease-in, text-decoration 0.2s ease-in;
  text-underline-offset: 4px;
}

.email-link:hover {
  color: #fff;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

/*************************************************/
/* About PAGE */
/*************************************************/
.section-about-content {
  font-size: 2.4rem;
  margin-top: 5rem;
  position: relative;
}

.about-content-heading {
  font-size: 2.4rem;
  font-weight: 500;
}

.about-row {
  padding-bottom: 4.5rem;
  padding-top: 4.5rem;
}

.about-append-col {
  padding-left: 4.8rem;
}

#content-sections-container > div:nth-child(even) {
  background-color: #f0fbfe;
}

/*************************************************/
/* ABOUT SUBPAGES */
/*************************************************/
.section-about-subpage {
  font-size: 2.4rem;
  padding: 5rem 0;
  background-color: #f0fbfe;
}

.about-subpage-content {
  font-size: 1.8rem;
  padding-bottom: 1.6rem;
}

/*************************************************/
/* TEAM PAGE */
/*************************************************/
.section-principal-investigator {
  margin-top: 5rem;
  padding: 5rem 0;
}

#graduate-students,
#collaborators-section {
  background-color: #f0fbfe;
  /* background-color: #f0f8ff; */
}

.pi-name,
.staff-header {
  font-size: 4.8rem;
  font-weight: 500;
  padding-bottom: 4px;
}

.pi-role {
  font-size: 1.8rem;
}

.pi-description {
  font-size: 2.4rem;
  padding: 1.6rem 0;
}

.circ-image-lg {
  border-radius: 50%;
  height: 34rem;
  width: 34rem;
  object-fit: cover;
  aspect-ratio: 1;
  object-position: center;
}

.staff-header {
  padding-top: 2.4rem;
  text-align: center;
}

.circ-image-sm {
  border-radius: 50%;
  height: 24rem;
  width: 24rem;
  object-fit: cover;
  aspect-ratio: 1;
  object-position: center;
}

.staff-info-box {
  display: flex;
  flex-direction: column;
  margin: 1.8rem 0;
  text-align: center;
  height: 100%;
  width: 100%;
}

.staff-info-content {
  flex-grow: 1;
}

.staff-name {
  font-size: 2.2rem;
  font-weight: 400;
}

.staff-role,
.staff-specialization {
  font-size: 1.6rem;
}

.staff-specialization {
  font-weight: 400;
}

/* Bio Button and Modal Styles */

.btn-view-bio {
  background: none;
  border: none;
  color: #286dbd;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 500;
  margin-top: auto;
  padding-top: 1rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-view-bio.pi-bio-btn {
  font-size: 1.6rem;
}

.btn-view-bio:hover {
  background: none;
  border: none;
  color: #286dbd;
  opacity: 0.8;
}

.bio-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow-y: auto;
}

.bio-modal-content {
  background-color: #fff;
  border-radius: 8px;
  margin: 5% auto;
  max-width: 800px;
  padding: 3rem;
  position: relative;
  width: 90%;
}

.bio-modal-close {
  position: absolute;
  right: 2rem;
  top: 2rem;
  font-size: 2.4rem;
  cursor: pointer;
  color: #000;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.bio-modal-close:hover {
  opacity: 1;
}

.bio-modal-header {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 2rem;
}

.bio-modal-image {
  border-radius: 50%;
  height: 20rem;
  min-height: 20rem;
  width: 20rem;
  min-width: 20rem;
  object-fit: cover;
  aspect-ratio: 1;
  object-position: center;
}

.bio-modal-title {
  font-size: 3.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
}

.bio-modal-role {
  font-size: 1.8rem;
  color: #666;
}

.bio-modal-description {
  font-size: 1.6rem;
  line-height: 1.6;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .bio-modal-content {
    padding: 2rem;
    margin: 10% auto;
  }

  .bio-modal-header {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .bio-modal-image {
    height: 15rem;
    min-height: 15rem;
    width: 15rem;
    min-width: 15rem;
  }

  .bio-modal-title {
    font-size: 2.4rem;
  }

  .bio-modal-role {
    font-size: 1.6rem;
  }

  .bio-modal-description {
    font-size: 1.4rem;
  }
}

/*************************************************/
/* PUBLICATIONS PAGE */
/*************************************************/
.section-publications {
  margin-top: 5rem;
  padding: 5rem 0;
}

.custom-accordion-item {
  border-top: 1px solid var(--dark-blue);
  padding: 1.6rem 0;
}

.year-heading {
  font-size: 3rem;
}

.accordion-label {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}

.arrow {
  border-top: 0.96rem solid transparent;
  border-bottom: 0.96rem solid transparent;
  border-left: 1.44rem solid var(--dark-blue);
  cursor: pointer;
  flex-shrink: 0;
  width: 0;
  height: 0;
  margin-left: auto;
  transition: transform 0.3s ease;
}

.accordion-label.active .arrow {
  transform: rotate(90deg);
}

.accordion-content {
  display: none;
}

.accordion-content > ul > li {
  font-size: 1.8rem;
}

.accordion-content > ul > li strong {
  font-weight: 600;
}

/*************************************************/
/* NEWS PAGE */
/*************************************************/
.section-news {
  margin-top: 5rem;
  padding: 5rem 0;
}

.article-title {
  font-size: 1.8rem;
  font-weight: 400;
  color: #000;
  flex-grow: 1;
  padding-right: 2rem;
}

.news-article-link {
  color: var(--dark-blue);
  margin-top: 1.5rem;
  text-decoration: none;
  transition: color 0.2s ease-in, text-decoration 0.2s ease-in;
  text-underline-offset: 4px;
}

.news-article-link:hover {
  color: var(--dark-blue);
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

/* Timeline news layout */
.section-news .year-heading {
  font-size: 3.2rem;
  font-weight: 400;
  margin-top: 4rem;
  margin-bottom: 2rem;
  color: #000;
}

.section-news .article-date {
  font-size: 1.8rem;
  font-weight: 400;
  color: #000;
}

.section-news hr {
  border-top: 1px solid rgba(0, 0, 0, 0.8);
  margin: 1.5rem 0 2.5rem 0;
  opacity: 1;
}

/* Flex layout for news items */
.section-news .d-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.section-news .article-title {
  font-size: 1.8rem;
  line-height: 1.4;
  margin: 0;
}

.section-news .d-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
}

.section-news .article-title {
  flex: 1 1 0;
  margin: 0;
  min-width: 0;
  padding-right: 2rem;
  word-break: break-word;
}

.section-news .article-date {
  flex: 0 0 auto;
  min-width: 70px;
  text-align: right;
  white-space: nowrap;
  font-weight: 500;
}

/*************************************************/
/* CONTACT US PAGE */
/*************************************************/
.section-contact-us {
  font-size: 2.4rem;
  margin-top: 5rem;
  padding: 5rem 0;
}

.contact-us-content {
  font-size: 1.8rem;
  padding-bottom: 1.6rem;
}

.contact-us-link {
  color: var(--dark-blue);
  text-decoration: none;
  transition: color 0.2s ease-in, text-decoration 0.2s ease-in;
  text-underline-offset: 4px;
}

.contact-us-link:hover {
  color: var(--dark-blue);
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

/*************************************************/
/* LAB LIFE PAGE */
/*************************************************/
.section-lab-life {
  margin-top: 2rem;
  padding: 2rem 0;
}

.section-lab-life .row {
  margin-bottom: 2.5rem;
  /* Additional spacing for the entire row */
}

.section-lab-life .col-md-6,
.section-lab-life .col-md-4 {
  padding-bottom: 2.5rem;
  /* Extra padding at the bottom of each column */
}

.gallery-container {
  margin-bottom: 3rem;
}

.gallery-item {
  margin-bottom: 2rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.gallery-item img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.card {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

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

.section-subtitle {
  font-size: 3.2rem;
  font-weight: 400;
  padding-bottom: 1.6rem;
}

.section-lab-life .image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  width: 100%;
  justify-items: center;
}

.card-img-lab-life {
  width: 100%;
  height: auto;
  min-width: 250px;
  max-width: 100%;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

.card-img-lab-life.wide {
  grid-column: span 2;
}

@media only screen and (max-width: 550px) {
  .section-lab-life .image-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
  }

  .card-img-lab-life,
  .card-img-lab-life.wide {
    grid-column: span 1;
    min-width: unset;
    width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }

  .section-lab-life {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Update contact page styles */
.contact-section-heading {
  font-size: 2.4rem;
  font-weight: 500;
  color: #000;
}

.contact-map-container {
  width: 100%;
  margin-top: 2rem;
}

.contact-map {
  width: 100%;
  height: auto;
}

.toronto-skyline-container {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.toronto-skyline {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.contact-us-content {
  font-size: 1.8rem;
  line-height: 1.6;
}

.contact-us-link {
  color: #286dbd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-us-link:hover {
  color: #1a4c8f;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .contact-section-heading {
    font-size: 2.2rem;
  }

  .contact-us-content {
    font-size: 1.6rem;
  }

  .contact-info-wrapper {
    order: 1;
  }

  .toronto-image-wrapper {
    order: 2;
    margin-top: 2rem !important;
  }
}

section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 2rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 1.5rem;
}

.lab-life-section {
  margin-bottom: 4rem;
}

.lab-life-title {
  margin-bottom: 2rem;
  width: 100%;
  padding-left: 1rem;
}

.lab-life-title h2 {
  font-size: 2.4rem;
  font-weight: 500;
  color: #333;
  margin: 0;
  padding: 1rem 0;
  text-align: left;
}

.lab-life-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .lab-life-title h2 {
    font-size: 2rem;
    text-align: left;
  }

  .lab-life-image {
    height: 250px;
  }
}

/* Lab Life Styles */
.lab-life-section {
  margin-bottom: 4rem;
}

.lab-life-title {
  margin-bottom: 2rem;
  width: 100%;
  padding-left: 1rem;
}

.lab-life-title h2 {
  font-size: 2.4rem;
  font-weight: 500;
  color: #333;
  margin: 0;
  padding: 1rem 0;
  text-align: left;
}

.lab-life-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  width: 100%;
}

.lab-life-image-wrapper {
  flex: 1 1 auto;
  min-width: 300px;
  max-width: calc(50% - 1rem);
}

.lab-life-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .lab-life-title h2 {
    font-size: 2rem;
    text-align: left;
  }

  .lab-life-image-wrapper {
    max-width: 100%;
  }

  .lab-life-grid {
    gap: 1.5rem;
    justify-content: center;
  }

  .section-lab-life .container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.about-img-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 316px;
  /* or whatever fixed height you want for the image box */
  min-height: 200px;
}

.about-img-box img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .about-img-box {
    height: auto;
    min-height: 120px;
  }
}
