body { padding-top: 56px; }
.left-aligned { margin-left: auto; }
.bg-dark { background-color: #272835; }
.bg-hero {
    height: 500px;
    background-image: url('bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgb(149, 151, 197); 
}

.bg-home {
    height: 500px;
    background-image: url('homebanner.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgb(149, 151, 197); 
}

.bg-desc {
    height: 500px;
    background-image: url('projdescbanner.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgb(149, 151, 197); 
}

.bg-humanprac {
    height: 500px;
    background-image: url('humanpracbanner.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgb(149, 151, 197); 
}

.bg-team {
    height: 500px;
    background-image: url('teambanner.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgb(149, 151, 197); 
}


#igemCarousel {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

#igemCarousel .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: contain;  
    background-color: #000; 
}

#igemCarousel .carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-radius: 0.25rem;
}

#igemCarousel .carousel-indicators button {
    background-color: black;      
    border-color: black;         
    opacity: 0.7;                  
  }
  
  .carousel-indicators .active {
    background-color: black;      
    opacity: 1;                   
  }
#igemCarousel .carousel-control-prev-icon,
#igemCarousel .carousel-control-next-icon {
    filter: invert(1); 
}

#eduCarousel {
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

#eduCarousel .carousel-item img {
  width: 100%;
  height: 400px;
  display: flex;                   
  justify-content: center;
  align-items: center;
  background-color: #000;  
}

#eduCarousel .carousel-caption {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  border-radius: 0.25rem;
}

#eduCarousel .carousel-indicators button {
  background-color: black;      
  border-color: black;         
  opacity: 0.7;                  
}

#eduCarousel .carousel-indicators .active {
  background-color: black;      
  opacity: 1;                   
}
#eduCarousel .carousel-control-prev-icon,
#eduCarousel .carousel-control-next-icon {
  filter: invert(1); 
}

/* CALLOUT */
.bd-callout { padding:1.25rem; margin-top:1.25rem; margin-bottom:1.25rem; border:1px solid #e9ecef; border-left-width:.25rem; border-radius:.25rem }
.bd-callout h4 { margin-bottom: 1.25rem }
.bd-callout p:last-child { margin-bottom:0 }
.bd-callout code { border-radius:.25rem }
.bd-callout+.bd-callout { margin-top:-.25rem }
.bd-callout-info { border-left-color:#989ddc }
.bd-callout-warning { border-left-color:#b8d5e4 }
.bd-callout-danger { border-left-color:#e8c0dd }

/* footer */
footer a { color: white; font-weight: bold; text-decoration: none; }
footer a:hover { color: rgb(149, 151, 197); text-decoration: underline; }

#preloader {
    background: #fff url("Presentation1.gif") center center no-repeat;
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
  }
  
/* Sidebar styling */
.sidebar {
  background-color: #64577d;
  color: white;
  position: sticky;
  top: 70px; /* keeps it under navbar */
  padding: 1.5rem 1rem;
  overflow-y: auto;
  border-right: 2px solid #ddd;
  height: calc(100vh - 70px); /* fills available height */
}

.sidebar h4 {
  font-weight: bold;
  margin-bottom: 1rem;
}

.sidebar .nav-link {
  color: white;
  margin: 0.5rem 0;
  transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding-left: 10px;
}

/* Active link when scrolling */
.sidebar .nav-link.active {
  background: white !important;
  color: rgb(149, 151, 197) !important;
  font-weight: bold;
  border-radius: 8px;
}

/* Main content */
.main-content, .content {
  padding: 2rem 3rem;
  overflow-x: hidden;
  animation: fadeIn 0.8s ease-in-out;
}
  
  /* Smooth scroll */
  html {
    scroll-behavior: smooth;
  }
  
  /* Fade-in animation */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  h1 {
    color: rgb(177, 166, 228);
  }
  h2 {
    color: rgb(234, 204, 249);
  }
  h3 {
    color: rgb(149, 151, 197)
  }
  h4 {
    color: rgb(179, 196, 255)
  }

.autoShow {
  animation: text-appear both;
  animation-timeline: view();
  animation-range: entry 20% ;
}

@keyframes text-appear {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Main content spacing */
.main-content {
  padding: 2rem 3rem;
  overflow-x: hidden;
}

/* Cards styling */
.part-card {
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
  background-color: #f9f9f9;
  color: black
}

.part-card h5 {
  margin-bottom: 0.5rem;
  color: black
}

/* Section Titles */
.section-title {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Monospace boxes for gRNAs and primers */
.gRNA {
  font-family: monospace;
  background-color: #e9ecef;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  color: black
}

.primer {
  font-family: monospace;
  background-color: #fff3cd;
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  color: black
}

/* Inclusivity Page Styles */
.inclusivity-page {
  line-height: 1.6;
  color: #ffffff;
  margin: 0 auto;
  max-width: 900px;
  padding: 20px;
}

/* Big Callout */
.callout {
  background-color: #f0f8ff;
  border-left: 6px solid #c8cdff;
  padding: 20px;
  margin: 20px 0 40px 0;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  border-radius: 8px;
}

/* Section Headings */
.inclusivity-page h2 {
  margin-top: 40px;
  font-size: 2rem;
  color: #d7cdfd;
  border-bottom: 2px solid #ffffff;
  padding-bottom: 8px;
}

.inclusivity-page h3 {
  margin-top: 20px;
  font-size: 1.4rem;
  color: #f6deff;
}

.inclusivity-page h4 {
  margin-top: 15px;
  font-size: 1.2rem;
  color: #ffffff;
}

/* Pathways */
.pathways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pathway {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.05);
}

/* Work blocks */
.work-block {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.05);
}

.work-block ul {
  margin: 10px 0 0 20px;
}

/* Outcomes & Future */
.outcomes, .future {
  background-color: #f9fafc;
  padding: 20px;
  border-radius: 10px;
  margin-top: 30px;
}
