body {
    padding-top: 56px;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(45deg, #14181d, #334457);
}

a {
    color:#4cb9b2;
}

.nav-link[href*="awards"] {
  font-weight: bold;
  font-size: 1rem;

  background: linear-gradient(90deg, rgba(222, 184, 14), rgba(115, 184, 181), rgba(76, 93, 46),rgba(169, 130, 79), rgba(18, 28, 13), rgba(205, 206, 201), rgba(134, 140, 143));
  background-size: 200% 100%; /* más ancho que el texto */
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* para compatibilidad */

  animation: rainbowText 5s linear infinite;
}

/* Animación horizontal del gradiente */
@keyframes rainbowText {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 0%; }
}



.left-aligned {
    margin-left: auto;
}

.bg-dark {
    background-color: #343a40;
}

.bg-hero {
    background-color: #6e9da5;
}

/* === MENU === */

/* === GENERAL NAVBAR STYLING === */
.navbar {
  background-color: #4cb998;
  transition: top 0.5s;
}

.navbar .nav-link {
  color: #FFFAEC; /* texto claro */
  font-size: 1.2em;
  margin: 5px 15px;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #ffffff;
  background-color: #399ac7; /* azul suave para hover */
  border-radius: 5px;
  text-decoration: none;
}

/* DROPDOWN MENU */
.navbar .dropdown-menu {
  background: rgba(48, 111, 173, 0.9); /* azul con transparencia */
  border: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-top: 0;
  padding: 0;
}

.navbar .dropdown-item {
  color: #FFFAEC;
  padding: 10px 20px;
  font-size: 1em;
  font-family: "Poppins", sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* línea sutil entre items */
}

.navbar .dropdown-item:first-child {
  border-top: none; /* quita línea azul arriba del primer item */
}

.navbar .dropdown-item:hover {
  background-color: rgba(57, 154, 199, 0.7); /* hover azul más suave */
  color: white;
}

/* Remove underline from all anchors */
a {
  text-decoration: none !important;
}

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

/* Responsive logo */


.navbar-logo {
  max-height: 50px; /* Adjust based on your design */
  width: auto; /* Maintain aspect ratio */
  object-fit: contain; /* Prevent distortion */
  display: inline-block;
  vertical-align: middle;
}

.navbar-brand {
  padding: 0; /* Remove Bootstrap padding for better alignment */
  line-height: 1; /* Align logo vertically */
}

/* Adjust logo size on small screens */
@media (max-width: 768px) {
  .navbar-logo {
    max-height: 40px; /* Smaller logo for mobile */
  }
}



/* Ensure navbar collapse is scrollable on small screens */
@media (max-width: 991.98px) {
  .navbar-collapse {
    overflow-y: auto;
    max-height: 80vh;
  }

  .dropdown-menu {
    width: 100%;
    position: static;
    box-shadow: none;
    background: rgba(57, 154, 199, 0.9); /* match hover color */
  }

  .dropdown-item {
    width: 100%;
  }
}

/* Style for the Back to Top button */
.sticky-graphic#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 90px;
    height: 100px;
    cursor: pointer;
    opacity: 0;
    background-color: transparent;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10000; /* Increased to avoid overlap */

    border-radius: 0;
}

/* Show button with continuous bounce animation */
.sticky-graphic#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    animation: bounce 1.5s infinite ease-in-out; /* Continuous bounce */
}

/* One-time bounce effect when reaching the top */
.sticky-graphic#back-to-top.bounce-on-top {
    animation: bounce-on-top 0.4s ease-in-out; /* One-time bounce */
}

/* Continuous bounce animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-12px); /* Adjusted for smoother bounce */
    }
    60% {
        transform: translateY(-6px);
    }
}

/* One-time bounce animation */
@keyframes bounce-on-top {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3); /* Slightly larger scale for emphasis */
    }
    100% {
        transform: scale(1);
    }
}



/* NAV ITEMS */
.navbar-nav .nav-item {
  position: relative;
  z-index: 1000;
  margin-right: 15px;
}

/* HEADER BANNER REMAINS SAME */
.header-banner-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.header-banner {
  position: relative;
  width: 75%;
  margin-bottom: 30px;
}

.header-banner img {
  width: 100%;
  height: auto;
  border-radius: 15px;
}

.header-banner-shadow {
  position: absolute;
  top: 10px;
  left: -10px;
  width: 100%;
  height: 100%;
  background-color: #59a6b1;
  border-radius: 15px;
  z-index: -1;
}

@media (max-width: 768px) {
  .header-banner-container {
    padding: 10px 0;
  }

  .header-banner-shadow {
    top: 10px;
    left: 10px;
  }
}

.header-banner-text {
  position: absolute;
  bottom: -35px;
  left: -120px;
  padding: 20px;
  color: #4c51b9;
  width: calc(100% - 40px);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  font-size: 4rem;
  font-weight: bold;
  line-height: 1.2;
  text-transform: lowercase;
  font-family: 'Poppins';
}


/* TEXT BOX STYLE */

.content-box {
    padding: 20px;
    margin: 20px auto;
    margin-left: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    background-color: #266e95;
    width: 75%;
}

.description {
    padding: 20px;
}

.description .image-container {
    text-align: center;
    margin-bottom: 20px;
}

.description .image-container img {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
}

.description .content {
    background-color: #168fb1;
    padding: 20px;
    border-radius: 10px;
}

.description .content h2 {
    color: #333;
}

.description .content p {
    color: #555;
}

.rounded-corners {
    border-radius: 15px;
}



/* SIDE STICKY MENU AKA SCROLLSPY*/
.sticky-menu {
    position: fixed;
    top: 170px;
    left: -220px;
    width: 210px;
    padding: 10px;
    z-index: 1000;
    transition: left 0.3s ease;
    max-height: 80vh; 
    overflow-y: hidden; 
}
/* Hide Side Menu on Small Screens */
@media (max-width: 768px) {
  .sticky-menu,
  .sticky-menu.show {
    display: none !important; /* Hide even with .show class */
  }
#page-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: none !important;
  }
  #page-content .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .pages, .header {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}




.sticky-menu::-webkit-scrollbar-track {
    background: rgb(63, 102, 124);
    border-radius: 6px; /* Rounded scrollbar track */
}

#sticky-menu.scrollable {
    overflow-y: auto; 
}
#sticky-menu::-webkit-scrollbar {
    width: 12px; /* Set width of the scrollbar */
}

#sticky-menu::-webkit-scrollbar-thumb {
    background-color: rgb(4, 159, 248); 
    border-radius: 6px; 
}

#sticky-menu::-webkit-scrollbar-track {
    background: rgb(63, 102, 124); 
}

/* For a Firefox browsers */
#sticky-menu.scrollable {
    overflow-y: auto; /* Always show scroll */}

#page-content {
    padding-left: 160px;
}

.sticky-menu.show {
    left: 0;
}

.sticky-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sticky-menu ul li {
    margin: 5px 0;
}

.sticky-menu ul li a {
    text-decoration: none;
    text-transform: uppercase;
    color:  #ffffff;;
    display: block;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.sticky-menu ul li a:hover {
    background-color: #4399e9;
}


/* CALLOUT */
.bd-callout {
    padding: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid #4075aa;
    border-left-width: .25rem;
    border-radius: .25rem;
}

.bd-callout h4 {
    margin-bottom: .25rem;
}

.bd-callout code {
    border-radius: .25rem;
}

.bd-callout+.bd-callout {
    margin-top: -.25rem;
}

/* the footer */
.footer {
    background-color: #07151f;
    box-shadow: 0px -5px 15px rgba(0, 0, 0, 0.1);
    color: white;
    text-align: center;
    padding: 40px 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    position: relative;
}

.footer h4 {
    margin-bottom: 20px;
}

.footer .social-icons img {
    width: 50px;
    /* Adjust the size of the icons RELATIVE */
    height: 50px;
    /* Maintain the aspect ratio */
    vertical-align: middle;
    /* Align the icons vertically */
    margin: 20px;
}

.footer .supporters {
    margin-top: 20px;
    font-size: 20px;
}

.carousel {
    display: flex;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

.carousel img {
    background-color: white;
    height: 80px;
    margin: 0 10px;
}

.carousel-track {
    display: flex;
    animation: scroll 50s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.footer small a {
    color: white;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Experiments (protocols) styles  */

.protocol-square {
    position: relative; 
    display: block;
    background-color: #8dc9d1; 
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding-bottom: 100%; /* Ensures the height equals the width */
    text-align: center;
    border-radius: 15px; 
    text-decoration: none; 
    transition: background-color 0.3s ease, color 0.3s ease; 
}

.protocol-square span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.protocol-square:hover {
    background-color: #4399e9; 
    color: rgb(76, 149, 185); 
}

table {
    border: none;
    border-collapse: collapse
}

td {
    border: solid #000000 0.75pt;
    text-align: center
}
/*IHP page */
.overview-box {
    width: 100%;
    height: auto;
    background-color: #4399e9;
    border-radius: 15px; 
    padding:3%;
    margin-bottom: 3%;

}

.contain-img {
    justify-content: space-between;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 0px;
    box-sizing: border-box;
    /* Includes padding in the width */
    height: auto;
} 

.ihp-image-1 {
    width: 30%;
    height: 30%;
}

.ihp-image-2 {
    width: 30%;
    height: 30%;
}

.counter {
    font-size: 20px;
    font-weight: bold;
    color: #b2d0df; 
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
  }


.row {
    display: flex;
  }
  
.column {
    flex: 50%;
    padding: 2%;
  }

.math{
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    text-align: center;}

.results-summary {
        font-size: 20px;
        font-weight: bold;
        text-align: center;
        margin-top: 25px;
        margin-bottom: 25px;
      }
    
.results-summary-2 {
        font-size: 25px;
        font-weight: bold;
        text-align: center;
        margin-top: 25px;
        margin-bottom: 25px;
      }


.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}


.popup-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}


.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  font-weight: bold;
  color: black;
  cursor: pointer;
}

/* Show Popup */
.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

  
/* Popup Content */
.popup-content {
    position: relative;
    padding: 0px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    width: 40%; 
  }
  

  @media (max-width: 768px) {
    .popup-content {
      width: 90%; 
    }
  }

.gallery-container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between; 
    padding: 10px;
    gap: 10px; 
}

.gallery-container > div {
    flex: 1 1 calc(50% - 10px); 
    max-width: calc(50% - 10px); 
    box-sizing: border-box;
    border-radius: 15px; 
}

.image-item {
    width: 100%; 
    height: auto; 
    border-radius: 15px; 
}



/*members*/


.members .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 1000px) {
  .members .row {
    justify-content: center;
  }

  .members figure {
    margin-left: auto;
    margin-right: auto;
  }
}


.members figure {
    position: relative;
    overflow: hidden;
    width: 260px;
    /* Fixed width for the card */
    height: 400px;
    /* Fixed height for the card */
    text-align: center;
    margin-bottom: 20px;
    /* Adjust this value as needed */
    background: transparent !important; /* Added to ensure member-card is transparent */
}

/* Ensure the image fits within the fixed dimensions of the card ALL RELATIVE*/
.member-card img {
    width: 100%;
    /* Ensures the image covers the full width of the card */
    height: 100%;
    /* Ensures the image covers the full height of the card */
    object-fit: cover;
    /* Ensures images are cropped to fit within the specified dimensions */
    background: transparent !important; /* Added to ensure member-card is transparent */
}

.members figure img {
    position: relative;
    display: block;
    min-height: 100%;
    max-width: 100%;
    opacity: 0.8;
}

.members figure figcaption {
    padding: 1em;
    color: #fff;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.members figure figcaption:before,
.members figure figcaption:after {
    pointer-events: none;
}

/* Absolute Positioning for Caption and Links IMP */
.members figure figcaption,
.members figure figcaption>a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.members figure figcaption>a {
    z-index: 1000;
    text-indent: 200%;
    white-space: nowrap;
    font-size: 0;
    opacity: 0;
}

/* Typography */
.members figure .name {
    font-family: 'Poppins', sans-serif;
    font-size: 25px;
    position: relative;
    top: -5px; /* Move the name higher FOR FIXED VIEW*/
    text-align: center;
}

.members figure p {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 18px;
}

/* Effect Class */
figure.effect {
    background: transparent !important; /* Added to ensure member-card is transparent */
}

figure.effect img {
    opacity: 0.95;
    transition: opacity 0.35s, transform 0.35s;
    transform: scale3d(1.05, 1.05, 1);
}

figure.effect figcaption:before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    content: '';
    transition: transform 0.6s;
    transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0, -100%, 0);
}

figure.effect p {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 2em;
    padding: 0 1em;
    max-width: 100%;
    border-right: 4px solid #fff;
    text-align: right;
    opacity: 0;
    transition: all 0.35s ease;
    z-index: 99999;
}

figure.effect p a {
    display: inline-block;
    margin-bottom: 5px;
    border-radius: 5px;
    background-color: #0a66c2;
    padding: 6px;
    transition: all 0.25s ease;
}

figure.effect:hover .name {
    transform: translateY(0);
    opacity: 1;
}

figure.effect:hover .role {
    transform: translateY(0);
    opacity: 1;
}

figure.effect:hover p {
    opacity: 1 !important;
    transition-delay: 0.1s;
}


figure.effect:hover figcaption::before {
    transform: scale3d(1.9, 1.4, 1) rotate3d(0, 0, 1, 45deg) translate3d(0, 100%, 0);
}

.soft-edge {
    border-radius: 15px;
    /* Adjust the value to control the roundness */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    transition: border-radius 0.3s ease;
    /* Smooth transition for hover effects */
}

.soft-edge:hover {
    border-radius: 20px;

}


.pages .header {
    position: relative;
    height: 75vh;
    /* Full viewport height */
    width: 100%;
}

.contribution-image {
    background-image: url('https://static.igem.wiki/teams/5905/page-headers/contribution-corrected-header.webp');
    /* Replace with the actual path to your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    /* Full height of the header */
    width: 100%;
    position: relative;
}
.education-image {
    background-image: url('https://static.igem.wiki/teams/5905/impactoeducacion/edu-part-2.webp');
    /* Replace with the actual path to your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    /* Full height of the header */
    width: 100%;
    position: relative;
}

.page-title {
    position: absolute;
    top: 50%;
    /* Center vertically */
    left: 50%;
    /* Center horizontally */
    transform: translate(-50%, -50%);
    /* Adjust for the element's own width/height */
    font-size: 48px;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    /* Center text within its own container */
}

.experiment-image {
    background-image: url('https://static.igem.wiki/teams/5905/experiment-page/experiment-header.webp');
    /* Replace with the actual path to your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    /* Full height of the header */
    width: 100%;
    position: relative;
}

.description-image {
    background-image: url('https://static.igem.wiki/teams/5905/page-headers/description-header.webp');
    /* Replace with the actual path to your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    /* Full height of the header */
    width: 100%;
    position: relative;
}

.team-image {
    background-image: url('https://static.igem.wiki/teams/5905/page-headers/members5-c.webp');
    /* Replace with the actual path to your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    /* Full height of the header */
    width: 100%;
    position: relative;
}

.results-image {
    background-image: url('https://static.igem.wiki/teams/5905/page-headers/35a12001-6c52-4b43-a104-2bffecd01a9d.webp');
    /* Replace with the actual path to your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    /* Full height of the header */
    width: 100%;
    position: relative;
}

.engineering-image {
    background-image: url('https://static.igem.wiki/teams/5905/page-headers/engineering-header.webp');
    /* Replace with the actual path to your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    /* Full height of the header */
    width: 100%;
    position: relative;
}

.model-image {
    background-image: url('https://static.igem.wiki/teams/5905/page-headers/model-header.webp');
    /* Replace with the actual path to your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    /* Full height of the header */
    width: 100%;
    position: relative;
}
/*
.measurements-image {
    background-image: url('https://static.igem.wiki/teams/5905/images/home/pexels-ollivves-1078983.webp');
    /* Replace with the actual path to your image 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    Full height of the header
    width: 100%;
    position: relative;
}
*/
.notebook-image {
    background-image: url('https://static.igem.wiki/teams/5905/page-headers/awards2.webp');
    /* Replace with the actual path to your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    /* Full height of the header */
    width: 100%;
    position: relative;
}

.award-image {
    background-image: url('https://static.igem.wiki/teams/5905/page-headers/awrdscorrected-3.webp');
    /* Replace with the actual path to your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    /* Full height of the header */
    width: 100%;
    position: relative;
}

.safety-image {
    background-image: url('https://static.igem.wiki/teams/5905/page-headers/safety-1.webp');
    /* Replace with the actual path to your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    /* Full height of the header */
    width: 100%;
    position: relative;
}

.humanpractice-image {
    background-image: url('https://static.igem.wiki/teams/5905/page-headers/education-header-v-2.webp');
    /* Replace with the actual path to your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    /* Full height of the header */
    width: 100%;
    position: relative;
}

.hardware-image {
    background-image: url('https://static.igem.wiki/teams/5905/page-headers/hard5.webp');
    /* Replace with the actual path to your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    /* Full height of the header */
    width: 100%;
    position: relative;
}

.attributions-image {
    background-image: url('https://static.igem.wiki/teams/5905/page-headers/attribution-header.webp');
    /* Replace with the actual path to your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    /* Full height of the header */
    width: 100%;
    position: relative;
}

.parts-image {
    background-image: url('https://static.igem.wiki/teams/5905/page-headers/parts-header.webp');
    /* Replace with the actual path to your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    /* Full height of the header */
    width: 100%;
    position: relative;
}

.home-image {
    background-image: url('https://static.igem.wiki/teams/5905/images/home/beach-our-og-copy-final.webp');
    /* Replace with the actual path to your image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    /* Full height of the header */
    width: 100%;
    position: relative;
}

/* -----------------------------------------TESTEING */

/* Timeline Styles for education page */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}
.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background: #4cb9a9;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}
.timeline-event {
  padding: 20px 30px;
  position: relative;
  background: inherit;
  width: 50%;
}
.timeline-event.left {
  left: 0;
}
.timeline-event.right {
  left: 50%;
}
.timeline-event::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -13px;
  background: #fff;
  border: 4px solid #4cb9a9;
  top: 30px;
  border-radius: 50%;
  z-index: 1;
}
.timeline-event.right::after {
  left: -13px;
}
.timeline-event-content {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  position: relative;
}
@media screen and (max-width: 768px) {
  .timeline::after { left: 20px; }
  .timeline-event { width: 100%; padding-left: 50px; padding-right: 25px; }
  .timeline-event.right { left: 0; }
  .timeline-event.left { left: 0; }
  .timeline-event.right::after, .timeline-event.left::after { left: 0; }
}

/* Timeline Carousel Styles */
.timeline-carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px auto;
  max-width: 1100px;
  position: relative;
}

.timeline-nav {
  background: #4cb9a9;
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
.timeline-nav:hover {
  background: #306fad;
}

.timeline-carousel {
  display: flex;
  overflow: hidden;
  width: 80vw;
  max-width: 900px;
  min-height: 420px;
  position: relative;
  scroll-behavior: smooth;
}

.timeline-slide {
  flex: 0 0 60%;
  margin: 0 2vw;
  opacity: 0.5;
  transform: scale(0.85);
  transition: transform 0.4s, opacity 0.4s, box-shadow 0.4s;
  background: #f8f9fa;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(76, 185, 169, 0.08);
  padding: 24px;
  min-width: 350px;
  max-width: 500px;
  pointer-events: none;
  z-index: 1;
}

.timeline-slide.active {
  opacity: 1;
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(76, 185, 169, 0.18);
  pointer-events: auto;
  z-index: 2;
}

.timeline-slide.left,
.timeline-slide.right {
  opacity: 0.7;
  transform: scale(0.95);
  z-index: 1;
}

.timeline-slide:not(.active):not(.left):not(.right) {
  opacity: 0.2;
  transform: scale(0.8);
  z-index: 0;
}

@media (max-width: 900px) {
  .timeline-carousel {
    width: 98vw;
    min-height: 350px;
  }
  .timeline-slide {
    min-width: 260px;
    max-width: 350px;
    padding: 12px;
  }
}

/* --- Make Timeline Carousel Smaller Vertically --- */
.timeline-carousel {
  min-height: 260px;      /* Reduce vertical height */
  max-height: 320px;      /* Prevent excessive height */
  padding-top: 0;
  padding-bottom: 0;
}

.timeline-slide {
  min-width: 260px;
  max-width: 350px;
  padding: 12px;
  min-height: 180px;      /* Reduce slide height */
  max-height: 260px;      /* Prevent excessive slide height */
  overflow-y: auto;       /* Allow scroll if content overflows */
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .timeline-carousel {
    min-height: 180px;
    max-height: 220px;
  }
  .timeline-slide {
    min-height: 120px;
    max-height: 180px;
    padding: 8px;
  }
}


/* --- Make Timeline Carousel Container Taller --- */
.timeline-carousel-container {
  min-height: 600px;
  max-height: 900px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.timeline-carousel {
  min-height: 500px;
  max-height: 800px;
}

.timeline-slide {
  min-height: 400px;
  max-height: 700px;
  padding: 32px;
}

@media (max-width: 900px) {
  .timeline-carousel-container {
    min-height: 350px;
    max-height: 500px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .timeline-carousel {
    min-height: 250px;
    max-height: 350px;
  }
  .timeline-slide {
    min-height: 180px;
    max-height: 250px;
    padding: 12px;
  }
}


/* Style Script for safety and security page */

html {
scroll-behavior: smooth;
}
body {
font-family: 'Roboto Slab', 'Inter', sans-serif;
background-color: var(--background);
color: var(--text);
line-height: 1.8;
position: relative;
margin: 0;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.content-container {
background-color: #ffffff !important;  /* solid white */
border-radius: 12px;                   /* optional rounded corners */
padding: 2rem;                         /* spacing inside */
box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* subtle shadow */
}

.bd-callout {
padding: 1.25rem;
margin: 1.5rem 0;
border-left: 4px solid var(--primary);
background-color: #e6f3ff;
border-radius: 10px;
position: relative;
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bd-callout:hover {
transform: translateY(-3px);
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}
.bd-callout::before {
content: none;

}
.bd-callout:hover::before {
opacity: 0.2;
}
.bd-callout h4 {
color: var(--heading);
margin-bottom: 0.75rem;
font-size: 1.4rem;
font-weight: 600;
}
hr {
border: 0;
height: 2px;
background: linear-gradient(to right, var(--primary), var(--background), transparent);
margin: 2rem 0;
}
a {
color: var(--primary);
text-decoration: none;
transition: color 0.3s ease;
}
a:hover, a:focus {
color: var(--secondary);
text-decoration: underline;
}
a:focus, .nav-link:focus {
outline: 2px solid var(--secondary);
outline-offset: 2px;
}
.row {
display: flex;
flex-wrap: wrap;
gap: 1.5rem;
margin-top: 1.5rem;
}
.col-lg-8 {
flex: 1;
max-width: 100%;
}
.lab-images {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
margin-top: 1rem;
}
.lab-images img {
width: 100%;
max-width: 400px; /*max wid for lab-image */
height:auto;
border-radius: 8px;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease;
}
.lab-images img:hover {
transform: scale(1.03);
}
section {
padding: 1.5rem 0;
scroll-margin-top: 120px;
}
.intro-section {
padding: 1.5rem 0;
}

.pdf-embed {
margin: 2rem 0;
text-align: center;
}
.pdf-embed embed {
width: 100%;
height: 500px;
border-radius: 8px;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}
/* Aspect ratio adjustments */
@media (max-aspect-ratio: 3/4) { /* Narrow portrait */
.container {
max-width: 85%;
}

.pdf-embed embed {
height: 350px;
}
.lab-images img {
max-width: 90%;
}
}
@media (min-aspect-ratio: 2/1) { /* Ultra-wide */
.container {
max-width: 1600px;
}
.pdf-embed embed {
height: 650px;
}
.lab-images img {
max-width: 100%;
}
}
@media (max-width: 768px) {
.row {
flex-direction: column;
gap: 1rem;
}
.col-lg-8 {
max-width: 100%;
}
.pdf-embed embed {
height: 300px;
}
section {
padding: 1rem 0;
}
.intro-section {
padding: 1rem 0;
}
}

hr {
  border: 0;
  border-top: 1px solid #999; /* adjust as needed */
  margin: 1rem 0;
}


/* Protocol Page Styles -- > */
/* Main Container */
.container.pb-5.bg-light.p-4.rounded {
  background-color: #f0f6ff; /* Very light blue background */
  border: 1px solid #b3d4fc; /* Light blue border */
  border-radius: 12px; /* Rounded corners */
  padding: 2rem; /* Balanced padding */
  margin: 2rem auto; /* Center with equal margins */
  max-width: 100%; /* Use available width */
  width: calc(100% - 2rem); /* Account for margins */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Subtle shadow */
  transition: box-shadow 0.3s ease; /* Smooth shadow transition */
  box-sizing: border-box; /* Prevent overflow */
}

.container.pb-5.bg-light.p-4.rounded:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); /* Stronger shadow on hover */
}

@media (max-width: 767.98px) {
  .container.pb-5.bg-light.p-4.rounded {
    padding: 1.5rem; /* Reduced padding on mobile */
    border-radius: 8px; /* Smaller radius */
    margin: 1.5rem 0.5rem; /* Centered margins */
    width: calc(100% - 1rem); /* Adjust for smaller screens */
  }
}

/* Protocol Buttons */
.protocol-button {
  background-color: #e6f0fa; /* Light blue background */
  border: 1px solid #b3d4fc; /* Light blue border */
  border-radius: 8px; /* Rounded corners */
  padding: 12px 16px; /* Comfortable padding */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease; /* Smooth transitions */
  display: flex; /* Maintain flex layout */
  justify-content: space-between; /* Ensure icon stays on the right */
  align-items: left; /* Vertically align content */
  font-size: 1.25rem; /* Readable title size */
  font-weight: 600; /* Bold text */
  color: #1e3799; /* Dark blue text */
  margin-bottom: 0; /* Remove gap between buttons */
}


/* Collapsible Content */
.card.card-body {
  background-color: #f8fbff; /* Very light blue background */
  border: 1px solid #b3d4fc; /* Light blue border */
  border-radius: 8px; /* Rounded corners */
  padding: 20px; /* Generous padding */
  margin-top: 8px; /* Small gap below button */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); /* Subtle shadow */
  animation: fadeIn 0.3s ease-in; /* Fade-in effect */
}

.card.card-body h4 {
  font-size: 1.5rem; /* Larger headings */
  font-weight: 600; /* Bold */
  color: #1e3799; /* Dark blue */
  margin-bottom: 15px; /* Space below headings */
}

.card.card-body p, .card.card-body ul, .card.card-body ol {
  font-size: 1rem; /* Standard text size */
  line-height: 1.6; /* Readable line height */
  color: #2c3e50; /* Dark gray text */
}

.card.card-body ul, .card.card-body ol {
  padding-left: 25px; /* Indent lists */
  margin-bottom: 15px; /* Space below lists */
}

.card.card-body img.rounded-corners {
  border-radius: 8px; /* Match card corners */
  max-width: 100%; /* Responsive */
  height: auto;
  border: 1px solid #b3d4fc; /* Light blue border */
}

/* Remove Gaps Between Protocol Sections */
.experiments-collapse-row {
  margin-bottom: 0; /* Remove gap between rows */
}

/* Remove margins from parent divs of protocol sections */
.experiments-collapse-row > div {
  margin-bottom: 0; /* Ensure no extra space */
}

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

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .protocol-button {
    font-size: 1.1rem; /* Smaller font on mobile */
    padding: 10px 12px; /* Reduced padding */
  }
  .protocol-icon {
    font-size: 1.5rem; /* Smaller icon on mobile */
  }
  .protocol-icon-wrapper {
    width: 30px; /* Adjust for mobile */
  }
  .card.card-body {
    padding: 15px; /* Less padding on mobile */
  }
  .card.card-body h4 {
    font-size: 1.3rem; /* Smaller headings */
  }
}

/* Responsive Tables with 3D Effect */
.parts-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 50px auto;
  font-family: Arial, sans-serif;
  perspective: 1000px; /* Restore 3D effect */

}

.parts-table th,
.parts-table td {

  vertical-align: middle; /* Centrado vertical */
  padding: 12px 20px;
  text-align: center;
  border: 1px solid #ddd;
  background: linear-gradient(145deg, #ffffff, #e6e6e6);
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  transform: rotateX(0deg) rotateY(0deg);
  transition: transform 0.3s, box-shadow 0.3s;
}

.parts-table th {
  background: linear-gradient(145deg, #d1d1d1, #f1f1f1);
}

.parts-table td:hover {
  transform: rotateX(5deg) rotateY(5deg);
  box-shadow: 4px 4px 15px rgba(24, 45, 55, 0.3);
}

@media (max-width: 768px) {
  .parts-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .parts-table th,
  .parts-table td {
    padding: 8px 10px;
    font-size: 0.85rem;
    white-space: normal;
    word-break: break-word;
    min-width: 80px; /* Adjust if needed */
  }
  /* Preserve 3D effect on small screens, but reduce intensity */
  .parts-table td:hover {
    transform: rotateX(3deg) rotateY(3deg); /* Less intense for mobile */
    box-shadow: 3px 3px 10px rgba(24, 45, 55, 0.2);
  }
}


.cycle-box {
  border: 1px solid #ddd;
  padding: 20px;
  min-height: 180px; /* en lugar de height fija */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/*Table 1 Hardware page*/
  table.custom-table-operation-parameters {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    background-color: #1e1e1e; /* dark background */
    color: white;
    margin: 20px auto;
  }

  table.custom-table-operation-parameters th,
  table.custom-table-operation-parameters td {
    border: 2px solid #000;
    padding: 10px;
  }

  table.custom-table-operation-parameters th {
    background-color: #6da544; /* green header */
    color: black;
    font-weight: bold;
  }

  table.custom-table-operation-parameters td:first-child {
    font-weight: bold;
  }

  table.custom-table-operation-parameters caption {
    background-color: #6da544;
    color: black;
    font-weight: bold;
    padding: 10px;
    caption-side: top;
    text-align: center;
    border: 2px solid #000;
  }

/*Table 2 Hardware page*/
table.custom-table-acceptance-criteria {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-family: sans-serif;
  background-color: white;
  color: black;
  margin: 20px auto;
}

table.custom-table-acceptance-criteria th,
table.custom-table-acceptance-criteria td {
  border: 1px solid black;
  padding: 10px;
}

table.custom-table-acceptance-criteria th {
  background-color: #90ee90; /* light green */
  color: black;
  font-weight: bold;
}

table.custom-table-acceptance-criteria caption {
  background-color: #228b22; /* dark green */
  color: white;
  font-weight: bold;
  padding: 10px;
  caption-side: top;
  text-align: center;
  border: 1px solid black;
  border-bottom: none;
}

/*Table 1: Mdoel page*/
table.custom-table-model-page {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-family: sans-serif;
  background-color: white;
  color: black;
  margin: 20px auto;
}
table.custom-table-model-page th,
table.custom-table-model-page td {
  border: 1px solid black;
  padding: 10px;
}
table.custom-table-model-page th {
  background-color: #90ee90; /* light green */
  color: black;
  font-weight: bold;
}
table.custom-table-model-page caption {
  background-color: #228b22; /* dark green */
  color: white;
  font-weight: bold;
  padding: 10px;
  caption-side: top;
  text-align: center;
  border: 1px solid black;
  border-bottom: none;
}