/* GLOBAL STYLE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --white:#ffffff;
    --black:#282828;
    --primary-green: #a5d096;
    --green: #529d5b;
    --dark-green: #4e6851;
    --light-green: #A6B7A1;
    --silver: #c0c0c0;
    --light-silver: #282828;
    --dark-silver: #4e6851;
    --accent-color: #b83a2d;
    --text-dark: #333;
    --text-light: #ecf4e4;
    --background: #282828;
    --card-bg: #c0eeaf;
    --grey: #f4f4f4;
    --light-green:#c0eeaf;
    --hlgreen:#253B1A;
    --brown:#4f4842;
    --darkbrown:#6e6054;
    --light-brown:#fbf6e7;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    margin:0;
    padding: 0;
}

/* NAVIGATION */
.top-nav {
    background: var(--black);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left:0;
    right:0;
    z-index: 100;
    max-height: 55px;
}

.nav-links {
    display: flex;
    list-style: none;
    padding-top: 0.9rem;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: block;
    padding: 1.2rem 2rem;
}

.nav-links > li > a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links li.active > a {
    background-color: transparent;
    color: white;
}

.navbar {
    transition: top 0.5s;
}

.navbar-hidden .navbar-logo {
    display: none;
}

/* dropdown menu */
.dropdown-menu {
    display:none;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    position: absolute;
    background-color:var(--card-bg);
    min-width: 100%;
    width: auto;
    border:none;
    top:100%;
    overflow: hidden;
    display: none;
    z-index: 900;
    top: 100%;
    left: 0;
    box-sizing: border-box;
}

.dropdown-menu a {
    color: var(--text-dark);
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
    font-weight: 500;
    outline: none;
    line-height: 1.2;
    margin: 0;
    user-select: none;
    box-sizing: border-box;
    display: block; 
    width: 100%;
}

.dropdown-menu.show {
    display: flex;
    top: 100% !important; 
    margin-top: 0 !important;
    transform: none !important;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus,
.dropdown-menu a:active {
background-color: transparent;
    color: var(--green);
    padding: 0.5rem 0.8rem;
    margin: 0;
    line-height: 1.2;
    outline: none;
    border: none; 
}

.nav-links li:hover .dropdown-menu {
    display: block;
}

/* logo */
.navbar-brand {
    position: relative;
    z-index: 10;
}

.navbar-brand .navbar-logo {
    height: 35px;
    position: absolute;
    top: -15px;
    left: 50px;
    z-index: 1;
}

.navbar-brand span {
    position: relative;
    z-index: 100;
    padding-left: 20px;
}

/* HOME PAGE */
/* video */
.container-fluid {
    height: 95vh;
    position: relative;
    top:5vh
}

.top-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0; 
}

/* section */
.section-1 {
    width: 100%;
    background-color: var(--white);
    padding: 20px;
    box-sizing: border-box;
    height: auto;
    margin-top: 0;
    overflow-x: clip;
}

.section-2 {
    width: 100%;
    background-color: var(--white);
    padding: 20px;
    box-sizing: border-box;
    height: auto;
    margin-top: 0;
    overflow-x: clip;
}

.section-3 {
  width: 100%;
  background: linear-gradient(to bottom, var(--white), var(--brown));
  box-sizing: border-box;
  height: auto;
  margin-top: 0;
}

.section-4 {
  width: 100%;
  background-color: var(--white);
  box-sizing: border-box;
  height: auto;
  margin-top: 0;
}

.section-5 {
  width: 100%;
  background-color: var(--white);
  box-sizing: border-box;
  height: auto;
  margin-top: 0;
}

.section-6 {
  width: 100%;
  background-color: var(--darkbrown);
  box-sizing: border-box;
  height: auto;
  margin-top: 0;
}

.section-7 {
  width: 100%;
  background-color: var(--white);
  box-sizing: border-box;
  height: auto;
  margin-bottom: -50px;
}

/* section layout */
.contain-1 {
    justify-content: space-between;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding-left: 0px;
    padding-right: 20px;
    padding-top: 0px;
    box-sizing: border-box;
    height: auto;
    overflow-x: clip;
}

.contain-2 {
    justify-content: space-between;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    padding-left: 0px;
    padding-right: 20px;
    padding-top: 0px;
    box-sizing: border-box;
    height: auto;
    overflow-x: clip;
}
/* Prevent images and large elements from overflowing their containers */
.section-1 img, .section-2 img, .contain-1 img, .contain-2 img {
    max-width: 100%;
    height: auto;
    display: block;
}

.contain-3 {
  justify-content: space-between;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  padding-left: 0px;
  padding-right: 20px;
  padding-top: 0px;
  box-sizing: border-box;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* box layout */

.box-1 {
width: 40%;
height: auto;
padding-top:35px;
}

.box-2 {
width: 50%;
height: 20%;
padding-top: 300px;
padding-right:300px;
align-items: center;  
}

.box-3 {
width: 35%;
height: auto;
padding-top: 130px;
padding-left:190px;
}

.box-4 {
    width:35%;
    height:30%;
    padding-top:80px;
    padding-right:250px;
}

.box-5 {
width: 80%;
height: 50%;
padding-left:280px;
padding-top:100px;
}

.box-6 {
width: 60%;
height: auto;
padding-top: 150px;
padding-right:150px;
align-items: center;  
}

.box-7{
    width:40%;
    height:20%;
    padding-top:50px;
    padding-right:200px;
}

.box-8{
    width:45%;
    height:20%;
    padding-top:150px;
    padding-left:150px;
}

.box-9{
    width:100%;
    height:15%;
    padding-left:150px;
    padding-right:150px;
}

.box-10{
width: 40%;
height: auto;
padding-right:250px;
padding-top:100px;
}

.box-11{
width: 45%;
height: 20%;
padding-top: 150px;
padding-left:200px;
align-items: center;  
}

.box-12{
width: 35%;
height: auto;
padding-left:250px;
padding-top:150px;
}

.box-13{
width: 45%;
height: 20%;
padding-top: 200px;
padding-right:200px;
align-items: center;  
}

.box-14{
width: 50%;
height: 30%;
padding-right: 200px;
padding-left: 200px;
padding-top: 200px;
box-sizing: border-box;
display: flex;
justify-content: center;
align-items: center;
}

.box-15{
width: 75%;
height: 30%;
padding-left: 345px;
padding-bottom: 80px;
box-sizing: border-box;
display: flex;
justify-content: center;
align-items: center;
}

.box-16{
width: 110%;
height: auto;
overflow:hidden;
margin-right:-20px;
}

.box-17{
width: 100%;
height: 20%;
padding-top:150px;
padding-left:400px;
padding-right:400px;
align-items: center;  
}

.box-18{
width: 15%;
height: 10%;
}

.box-19{
width: 15%;
height: 10%;
margin-left: auto;
margin-right:-20px;
}

.box-20{
    width:100%;
    height:15%;
    padding-top:40px;
    padding-left:150px;
    padding-right:150px;
    padding-bottom:40px;
}

.box-21{
    width:50%;
    height:auto;
    padding-bottom:40px;
}

.box-22{
    width:40%;
    height:auto;
    padding-top:30px;
    padding-left:50px;
}

.box-23{
    width:85%;
    height:auto;
    padding-left:200px; 
}

.box-24{
width: 75%;
height: 30%;
padding-left: 345px;
padding-bottom: 120px;
box-sizing: border-box;
display: flex;
justify-content: center;
align-items: center;
}

.box-25{
    width: 100%;
    height: 20%;
    padding-top:30px;
    padding-left:400px;
    padding-right:400px;
    align-items: center;  
    }


/* page animation */
/* floating */
.floating {  
  animation-name: floating;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  margin-left: 30px;
  margin-top: 5px;
}

@keyframes floating {
  0% { transform: translate(0,  0px); }
  50%  { transform: translate(0, 20px); }
  100%   { transform: translate(0, -0px); }    
}

.counter {
  font-size: 50px;
  font-weight: bold;
  color: var(--green); 
  text-align: center;
  margin-top: 25px;
  margin-bottom: 25px;
}


/* for model page tabs */
.model-table td, .model-table th {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    vertical-align: top;
}

.tab{
    background: none;
    background-color: var(--light-brown);
    border: 3px solid var(--hlgreen);
    padding: 20px;
    margin: 0 auto;
    margin-left: 80px;
    max-width: 1200px;
    width: 100%;
    color: var(--text-dark);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    text-align: center;
    overflow: visible;
    z-index:1;
}

.tab-title {
    border-bottom:1px solid #4f4842;
    display:flex;
}

.tab-title button {
    background: transparent;
    cursor: pointer;
    padding: 20px 20px;
    font-size: 20px;
    border:none;
}

.tab-title button:hover {
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-title button.active {
    font-weight: 700;
    border-bottom: 3px solid var(--green);
    color: var(--hlgreen);
}

.tab-box{
    background-color: transparent;
    border-radius: 10px;
    transition: transform 0.3s ease;
    margin: 0.2rem auto;
    text-align: center;
    max-width: 1200px;
    width: calc(100% - 20px);
    min-height: 200px;
    overflow: visible; 
    z-index:2;
    position:relative;
}

.tab-content {
    margin: 3% auto;
    padding: 0% 3%;
    text-align: left;
    justify-content:center;
    width: 100%;
    position: relative; 
    z-index:3;
}

table, th, td {
      border: 1px solid black; 
    }

/* .fade-in-left */
.fade-in-left:nth-of-type(even) {
    grid-template-columns:
        1fr auto;
    grid-auto-flow: dense;
}

.fade-in-left:nth-of-type(even) img {
    grid-column: 2;
}

.fade-in-left:nth-of-type(even) p {
    grid-column: 1;
}


.fade-in-left {
    --x: -100%;
}

.fade-in-left:nth-of-type(even) {
    --x: 100%;
}

.fade-in-left img {
    view-timeline: --item;
    animation: item-reveal both ease-in;
    animation-timeline: --item;
    animation-delay: cover 10%;
    animation-end-delay: cover 35%;
    animation-range: cover 10% cover 35%;
}

.fade-in-left img {
    --y: 0;
}

.fade-in-left p {
    --x: 0;
    --y: 50%;
    view-timeline: --item;
    animation: item-reveal both ease-out;
    animation-timeline: --item;
    animation-delay: cover 35%;
    animation-end-delay: cover 50%;
    animation-range: cover 35% cover 50%;
    position: sticky;
    bottom: 40%;
}

@keyframes item-reveal {
    0% {
        opacity: 0;
        translate: var(--x, 0) var(--y, 0);
    }
}

/* .fade-in-upward */
.fade-in-upward:nth-of-type(even) {
    grid-template-columns:
        1fr auto;
    grid-auto-flow: dense;
}

.fade-in-upward:nth-of-type(even) img {
    grid-column: 2;
}

.fade-in-upward:nth-of-type(even) p {
    grid-column: 1;
}


.fade-in-upward {
    --x: -100%;
}

.fade-in-upward:nth-of-type(even) {
    --x: 100%;
}

.fade-in-upward img {
    view-timeline: --item;
    animation: item-reveal both ease-in;
    animation-timeline: --item;
    animation-delay: cover 10%;
    animation-end-delay: cover 35%;
    animation-range: cover 10% cover 35%;
}

.fade-in-upward img {
    --x: 0;
}

.fade-in-upward p {
    --x: 0;
    --y: 50%;
    view-timeline: --item;
    animation: item-reveal both ease-out;
    animation-timeline: --item;
    animation-delay: cover 35%;
    animation-end-delay: cover 50%;
    animation-range: cover 35% cover 50%;
    position: sticky;
    bottom: 40%;
}

@keyframes item-reveal {
    0% {
        opacity: 0;
        translate: var(--x, 0) var(--y, 0);
    }
}


/* slide-in-right effect */
@keyframes slide-in-from-right {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0%);
    }
}

.slideinright {
    opacity: 0;
}

.slideinright.animate {
    animation-duration: 1.5s;
    animation-name: slide-in-from-right;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

/* slide-in-bottom effect */
@keyframes slide-in-from-bottom {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.slideinbottom {
    opacity: 0;
}

.slideinbottom.animate {
    animation-duration: 1.5s;
    animation-name: slide-in-from-bottom;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

/* slide-in-bottom effect */
@keyframes slide-in-from-bottom {
    0% {
        opacity: 0;
        translate: var(--x, 0) var(--y, 100%);
    }
    100% {
        opacity: 1;
        translate: 0 0;
    }
}

.slideinbottom {
    --x: 0;
    --y: 100%;
    view-timeline: --item;
    animation: slide-in-from-bottom both ease-in;
    animation-timeline: --item;
    animation-delay: cover 10%;
    animation-duration: 3s;
    animation-end-delay: cover 35%;
    animation-range: cover 10% cover 35%;
}

/* FOOTER */
footer {
    background: var(--background);
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.footer-section h3 {
    margin-bottom: 1.4rem;
    color: var(--white);
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
    font-size:0.9rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--green);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

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

.carousel img {
    background-color: var(--black);
    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;
}

/* EXPERIMENT */
/* Card styling */
.card {
    background-color: var(--light-brown, #f5e8c7);
    border: 3px solid var(--hlgreen, #2e7d32);
    padding: 20px;
    margin: 0 auto; /* Centers the card */
    max-width: 1200px;
    color: var(--text-dark, #333);
  }
  
  /* Section styling */
  .experiment-section {
    margin-bottom: 40px;
    position: relative;
  }
  
  /* Sticky section title */
  .section-title {
    position: sticky;
    top: 10px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-dark);
    z-index: 10; 
  }
  
  .section-subtitle {
    position: sticky;
    top: 10px;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-dark);
    z-index: 10; 
  }

  h4 {
    font-size: 1.2rem !important; 
}

  h5 {
    font-size: 1rem !important; 
}

  /* Content block styling */
  .content-block {
    margin-bottom: 20px;
  }
  
  .content-block h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
  }
  
  .content-block p {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
  }
  
  .card-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
  }
  


        /* ---------------------------------- */
        /* Sticky Sidebar Styling */
        /* ---------------------------------- */

        .sidebar-nav {
            /* 1. Floating Card Appearance & Right Limit (Width) */
            width: 250px; /* Defines the right limit/max width */
            max-width: 90%; /* Responsive fallback */
            background-color: var(--light-brown); 
            padding: 15px; /* Adjusted padding for card look */
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Enhanced floating shadow */
            border: 1px solid var(--hlgreen); /* Subtle border */
            flex-shrink: 0; 
            border-radius: 12px; /* Slightly larger radius for card look */
            box-sizing: border-box;
            z-index: 50; /* Ensure it floats above content */
            
            /* --- STICKY IMPLEMENTATION FIX: Use fixed positioning to prevent content displacement --- */
            position: fixed; 
            top: 35vh; /* 2. Positioning: Moved down to be slightly above the middle */
            left: 20px; /* Position it 20px from the left edge of the viewport */
            /* Removed margin-left: 20px; */
            height: fit-content; /* Added to prevent the sticky element from stretching vertically */
        }

        .sidebar-nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .sidebar-nav li a {
            display: block;
            padding: 8px 15px; 
            text-decoration: none;
            color: var(--text-dark); /* Use text-dark or a suitable color */
            font-size: 1em; 
            font-weight: 500; 
            transition: background-color 0.3s, color 0.3s, font-weight 0.3s; 
            border-radius: 6px; 
        }
        
        .sidebar-nav li a:hover {
            background-color: rgba(37, 59, 26, 0.1); 
            color: var(--hlgreen); 
        }

        /* Active state styling for highlighted section */
        .sidebar-nav li a.active {
            background-color: var(--hlgreen); 
            color: var(--text-light); 
            font-weight: bold; 
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
        }
  

/* TITLE */
.background-section {
    position: relative;
    text-align: center;
    color: white;

        width: 100%;
        height: auto; /* Ensures proportional scaling */
        display: block; /* Prevents margin/whitespace issues often found with inline images */
        max-width: 100%; /* Safety measure */
    
    }
    .background-image {
    width: 100%;
    height: auto;
    }


  /* Background section 
  .background-section {
    position: relative;
    width: 100%;
    padding-left:100px;
    height: 400px; 
  } */

.background-section2 {
/* position: relative; */
/* width: 100%; */
/* TITLE height: 400px;  */
padding-top:65px;

position: relative;
text-align: center;
/* Crucial: Ensure the container does not impose a fixed height */
height: auto; 
max-width: 100%;
overflow: hidden;
}

.background-section3 {
    position: relative;
    width: auto;
    height: 500px; 
    padding-top:65px;
    }
  
  .background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }


/* NOTEBOOK */
.notebookTable {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--light-brown);
    border: 3px solid var(--hlgreen);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(145, 190, 83, 0.08);
    overflow: hidden;
}

.notebookTable td {
    padding: 0.4rem 2rem;
    text-align: left;
    border: none;
}


.JSSElink {
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.JSSElink button.collapsible1 {
    width: 100%;
    background: var(--hlgreen);
    color: var(--text-light, #ecf4e4);
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 1rem 0.5rem;
    margin: 0.2rem 0;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(145, 190, 83, 0.08);
}

.JSSElink button.collapsible1:hover,
.JSSElink:focus button.collapsible1 {
    background: var(--light-green);
    color: var(--green);
    box-shadow: 0 4px 16px rgba(145, 190, 83, 0.18);
    outline: none;
}

.month-title {
  color: var(--brown2);
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin: 1.5rem 0 1rem 0;
  padding: 0.5rem 1rem;
}

.notebookTable td:has(.month-title) {
  padding: 0; 
}

/* MEMBERS */
.section {
    margin-bottom: 3rem;
    margin-left: 10%;
    padding: 2rem;
    background-color: var(--light-brown);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 3px solid var(--hlgreen);
    width: 80%;
}

.section-title2 {
position: sticky;
left: 10px;
font-size: 2rem;
font-weight: bold;
color: var(--hlgreen);
padding: 10px;
z-index: 10;
}


.team-grid-wrapper {
width: 100%;
max-width: 1200px;
margin: 0 auto 2rem auto;
display: flex;
justify-content: center;
align-items: flex-start;
}

.team-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 1rem;
justify-items: center;
width: 100%;
}

.team-grid > div {
text-align: center;
padding: 1.2rem;
border-radius: 10px;
max-width: 320px;
width: 250px;
min-width: 220px;
margin: 0 auto;
cursor: pointer;
perspective: 1000px;
height:330px
}

.team-grid > div:hover .team-member-inner,
.team-grid > div.flipped .team-member-inner {
transform: rotateY(180deg);
}

.team-member-inner {
position: relative;
width: 100%;
height: 100%;
max-width: 320px;
margin: 0 auto;
transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
transform-style: preserve-3d;
}

.team-member-front, .team-member-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
border-radius: 16px;
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
overflow: hidden;
}

.team-member-front {
background: var(--hlgreen);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
min-height: 260px;
}

.member-img-container {
width: 250px;
height: 250px;
display: flex;
align-items: center;
justify-content: center;
}

.member-img {
width: 300px;
height: 300px;
object-fit: cover;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
display: block;
margin: 0 auto;
}

.team-member-info {
width: 100%;
margin-top: 0.5rem; 
}

.team-member-info h2 {
margin-bottom: 0; 
color: var(--light-brown);
font-size: 1.4rem;
}

.team-member-back {
background: var(--hlgreen);
color: rgb(0, 0, 0);
padding: 25px;
transform: rotateY(180deg);
display: flex;
flex-direction: column;
justify-content: flex-start; 
align-items: center; 
text-align: center;
}

.team-member-back h3 {
font-size: 1.3rem;
margin-bottom: 0.5rem; 
color: var(--light-brown);
margin-top:3rem;
}
    
.team-member-back .leader-badge,
.team-member-back .lab-roles {
color: var(--light-brown); 
font-size: 0.95rem;
font-weight: 500;
margin-bottom: 0.5rem;
padding: 0.25rem 0.5rem;
border-radius: 4px;
}

.team-member-back p {
font-size: 0.95rem;
line-height: 1.6;
text-align: justify;
margin-top: 1rem;
}
    
.team-member-back .divider {
height: 1.5px;
background: linear-gradient(90deg, transparent, var(--light-brown), transparent);
margin: 0.8rem 0; 
width: 80%; 
}

@media (max-width: 1100px) {
.container {
grid-template-columns: repeat(3, 1fr);
}
}

@media (max-width: 768px) {
.container {
grid-template-columns: repeat(2, 1fr);
}
.header h1 {
font-size: 2.2rem;
}
}

@media (max-width: 480px) {
.container {
grid-template-columns: 1fr;
}
.header h1 {
font-size: 1.8rem;
}
}



.content {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

h2 {
  scroll-margin-top: 60px; 
}

.row.mt-4 {
  margin-right: 100px; 
  margin-left: 130px; 
}




/* EDUCATION */
.Buttonlink {
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.Buttonlink button.collapsible {
    width: 100%;
    background: var(--hlgreen);
    color: var(--text-light, #ecf4e4);
    font-size: 0.7rem;
    font-weight: 600;
    border: none;
    border-radius: 15px;
    padding: 0.4rem 0.1rem;
    margin: 0.2rem 0;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    width:400px;
}

.Buttonlink button.collapsible:hover,
.Buttonlink:focus button.collapsible {
    background: var(--light-green);
    color: var(--green);
    box-shadow: 0 4px 16px rgba(145, 190, 83, 0.18);
    outline: none;
}

.image-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem; 
  margin-bottom: 2rem;
}

.image-item {
  flex: 1; 
  text-align: center;
}

.image-item img {
  width: 100%;
  max-width: 400px; 
  height: auto; 
  border-radius: 8px; 
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
}

.caption {
  font-size: 0.6rem; 
  color: #666; 
  margin-top: 0.5rem;
}

.single-image {
  text-align: center;
  margin-bottom: 2rem;
}

.single-image img {
  width: 100%;
  max-width: 600px; 
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


@media (max-width: 768px) {
  .image-row {
    flex-direction: column;
  }
  
  .image-item img {
    max-width: 100%;
  }
}

button.collapsible3 {
    width: auto;
    background: var(--hlgreen);
    color: var(--text-light, #ecf4e4);
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    margin: 0.2rem 0;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(145, 190, 83, 0.08);
    display: block;
    text-align: left; 
}

.JSSElink button.collapsible3:hover,
.JSSElink:focus button.collapsible3 {
    background: var(--light-green);
    color: var(--green);
    box-shadow: 0 4px 16px rgba(145, 190, 83, 0.18);
    outline: none;
}

/* HUMAN PRACTICE */
/* Mobile toggle */
.sidebar-toggle{
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    padding: 8px 10px;
    background: var(--bg);
    color: var(--fg);
    border: 1px solid var(--border);
    border-radius: 8px;
    z-index: 1100;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 992px){
    .sidebar-toggle{ display: inline-flex; }
    .sidebar-nav{
    transform: translateX(-100%);
    transition: transform .25s ease;
    width: 82%;
    max-width: 320px;
    }
    .sidebar-nav.open{ transform: translateX(0); }
    .content{ margin-left: 0; padding-top: 60px; }
    body.nav-open{ overflow: hidden; }
}

/* Collapsible button */
.collapsible-container {
    width: 100%;
    margin-bottom: 1rem;
}

button.collapsible {
    width: 100%;
    background: var(--hlgreen);
    color: var(--text-light, #ecf4e4);
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 2rem 0.7rem 0.6rem;
    margin: 0.2rem 0;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(145, 190, 83, 0.08);
    position: relative;
    overflow: hidden;
    display: block;
    text-align: left; 
}

button.collapsible::after {
    content: '▼';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: inherit;
    transition: transform 0.3s ease;
}

button.collapsible.active::after {
    transform: translateY(-50%) rotate(180deg);
}

button.collapsible:hover,
button.collapsible:focus {
    background: var(--light-green);
    color: var(--green);
    box-shadow: 0 4px 16px rgba(145, 190, 83, 0.18);
    outline: none;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    background: white;
    border-radius: 0 0 8px 8px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.collapsible-content.active {
    /* Use a very large value to simulate 'auto' height for long content */
    max-height: 9999px; 
    padding: 1rem 2rem;
}

/* Sub-collapsible styles */
.sub-collapsible-container {
    width: 100%;
    margin-bottom: 0.5rem;
}

.sub-collapsible {
    width: 100%;
    background: var(--hlgreen);
    color: var(--text-light, #ecf4e4);
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.5rem 0.6rem 0.8rem;
    margin: 0.1rem 0;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    box-shadow: 0 1px 4px rgba(145, 190, 83, 0.08);
    position: relative;
    overflow: hidden;
    display: block;
    text-align: left;
}

.sub-collapsible .plus-icon {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.sub-collapsible.active .plus-icon {
    transform: translateY(-50%) rotate(45deg); /* + to × */
}

.sub-collapsible:hover,
.sub-collapsible:focus {
    background: var(--light-green);
    color: var(--green);
    box-shadow: 0 2px 8px rgba(145, 190, 83, 0.18);
    outline: none;
}

.sub-collapsible-content {
    max-height: 0;
    overflow: hidden;
    background: var(--hlgreen);
    border-radius: 0 0 6px 6px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0.8rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.sub-collapsible-content.active {
    max-height: 800px;
    padding: 1rem 1.5rem;
    color: var(--text-light, #ecf4e4);
}

.learn-more-link {
    color: var(--green);
}

/* PROTOCOLS */
button.collapsible2 {
    width: 100%;
    background: var(--hlgreen);
    color: var(--text-light, #ecf4e4);
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    margin: 0.2rem 0;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(145, 190, 83, 0.08);
    display: block;
    text-align: left; 
}

.JSSElink button.collapsible2:hover,
.JSSElink:focus button.collapsible2 {
    background: var(--light-green);
    color: var(--green);
    box-shadow: 0 4px 16px rgba(145, 190, 83, 0.18);
    outline: none;
}

/* CONTRIBUTION */
.contribution-table th,
.contribution-table td {
    padding: 15px; 
}

/* Hyperlink styles */
a {
    color: var(--green);
}

a:hover {
    color: var(--light-green);
}









.main-title {
    font-size: 6rem;
    font-weight: 800;
    margin-bottom: 100px;
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
    color: var(--dark-green);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.pulsating-element {
    position: absolute;
    top: -25px;
    right: -80px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: url('https://images.unsplash.com/photo-1618044733300-9472054094ee?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=200&q=80') center/cover;
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(145, 190, 83, 0.7);
    border: 3px solid var(--accent-color);
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(145, 190, 83, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(145, 190, 83, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(145, 190, 83, 0);
    }
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-top: 80px;
    margin-bottom: 40px;
    color: var(--text-light);
    opacity: 0.9;
    font-weight: 300;
    transition: all 0.5s ease;
    max-width: 700px;
    margin: 0 auto 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.power-text-container{
    position:relative;
    height:200px;
    margin-top: 150px
}


.power-text {
    font-size: 3.5rem;
    font-weight: 700;
    margin-top: 30px;
    margin-top: 100px;
    color: var(--dark-green);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.scroll-down {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--dark-green);
    font-size: 14px;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 10;
}

.scroll-down:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
}

.scroll-down i {
    font-size: 24px;
    margin-bottom: 5px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-10px);
    }
}


.page-container {
    display: none;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.page-container.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.page-header {
    background: linear-gradient(90deg, var(--primary-green), var(--silver));
    color: white;
    padding: 3rem 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
}





/* animation */
@media (max-width: 992px) {
    .page-with-sidebar {
        flex-direction: column;
    }
    .sidebar {
        flex: 0 0 auto;
        margin-bottom: 2rem;
    }
    .nav-links li {
        padding: 0.8rem;
    }
}

@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        padding: 1rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 1rem;
    }
    .page-header h1 {
        font-size: 2.2rem;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
}

#backToTopBtn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 999;
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s;
}

#backToTopBtn img {
    display: block;
    width: 100px;
    height: 80px;
}

#backToTopBtn:hover {
    opacity: 0.8;
    transform:scale(1.1);
}



#progress-container {
    position: fixed;
    top:55px;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    z-index: 1000;
}

#progress-bar {
    position: absolute;
    top: 0px;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--light-green);
    border-radius: 0;
    transition: width 0.2s ease-out;
}


@media (max-width: 992px) {
    .page-with-sidebar {
        flex-direction: column;
    }
    .sidebar {
        flex: 0 0 auto;
        margin-bottom: 2rem;
    }
    .nav-links li {
        padding: 0.8rem;
    }
}

@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        padding: 1rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 1rem;
    }
    .page-header h1 {
        font-size: 2.2rem;
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Loading Page */ 
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#loader img {
    width: 100%;
    opacity:0.8;
}

#loader.hidden {
    display:none;
}

/* Main page elements*/
.bottomButton {
    text-align: center;
}

/* Engineering page stuff*/


    /* --- Collapsible Button Styling (Level 1 Default) --- */
   
        /* Note: This replaces the existing button.collapsible definition */
        button.collapsible {
            width: 100%;
            background: var(--hlgreen);
            color: var(--text-light, #ecf4e4);
            font-size: 1.2rem;
            font-weight: 600;
            border: none;
            border-radius: 8px;
            /* ADJUSTED: Increased padding to make space for the L2 toggle button (6.5rem) */
            padding: 0.7rem 6.5rem 0.7rem 0.6rem; 
            margin: 0.2rem 0;
            cursor: pointer;
            transition: background 0.2s, box-shadow 0.2s, color 0.2s;
            box-shadow: 0 2px 8px rgba(145, 190, 83, 0.08);
            position: relative;
            overflow: hidden;
            display: block;
            text-align: left; 
        }

        /* Triangle icon position (remains at 1rem) */
        button.collapsible::after {
            content: '▼';
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            font-size: 0.8rem;
            color: inherit;
            transition: transform 0.3s ease;
        }

        button.collapsible.active::after {
            transform: translateY(-50%) rotate(180deg);
        }

        button.collapsible:hover,
        button.collapsible:focus {
            background: var(--light-green);
            color: var(--green);
            box-shadow: 0 4px 16px rgba(145, 190, 83, 0.18);
            outline: none;
        }

        /* --- NEW: Level 2 Toggle Button (Inside Level 1 Button) --- */
        .l2-toggle {
            position: absolute;
            right: 2.5rem; /* Positioned left of the triangle (which is at 1rem) */
            top: 50%;
            transform: translateY(-50%);
            font-size: 0.8rem;
            padding: 4px 8px;
            border-radius: 4px;
            background: var(--dark-green);
            color: var(--text-light);
            cursor: pointer;
            z-index: 10; 
            line-height: 1;
            transition: background 0.2s;
            user-select: none; 
        }

        .l2-toggle:hover {
            background: var(--green);
        }

        /* Hide the L2 toggle if the parent button is Level 2 */
        .collapsible-content > .collapsible .l2-toggle {
            display: none;
        }

        /* --- Collapsible Content Styling --- */
        .collapsible-content {
            max-height: 0;
            overflow: hidden;
            background: white;
            border-radius: 0 0 8px 8px;
            transition: max-height 0.3s ease, padding 0.3s ease;
            padding: 0 0.5rem;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        /* Ensure content inside is visible */
        .collapsible-content p {
            margin: 0 0 10px 0;
            line-height: 1.5;
        }
        .collapsible-content p:last-child {
            margin-bottom: 0;
        }

        /* --- Level 2 Specific Styling (Nested Collapsibles) --- */
        /* FIX 1: Ensuring L2 buttons have distinct color and padding */
        .collapsible-content > .collapsible {
            background: var(--primary-green); /* Distinct color */
            color: var(--text-dark);
            margin-top: 0.5rem;
            margin-bottom: 0.1rem;
            padding-left: 1.5rem; /* Indent the text */
            font-size: 1.1rem;
            padding-right: 2rem; /* Reset right padding for L2 buttons (since they don't have the L2 toggle span) */
        }

        .collapsible-content > .collapsible:hover,
        .collapsible-content > .collapsible:focus {
            background: var(--green);
            color: var(--text-light);
            box-shadow: 0 2px 8px rgba(82, 157, 91, 0.3);
        }

        /* Adjust padding for the content of Level 2 items */
        .collapsible-content .collapsible-content {
            padding: 0 0.5rem; 
            box-shadow: none; 
            border-radius: 0;
        }

        /* FIX 2: Ensuring L2 content padding is correct */
        .collapsible-content .collapsible-content.active {
            /* Apply the large max-height here as well */
            max-height: 9999px; 
            padding: 0.5rem 1.5rem; 
            border-left: 3px solid var(--primary-green);
            margin-left: 1rem;
        }

        /* --- Global Toggle Button Styling --- */
        .global-toggle {
            width: 100%;
            background: var(--dark-green); 
            color: var(--text-light);
            font-size: 1.2rem;
            font-weight: 600;
            border: none;
            border-radius: 8px;
            padding: 0.7rem 1rem;
            margin: 0 0 1rem 0; 
            cursor: pointer;
            transition: background 0.2s, box-shadow 0.2s;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            text-align: center;
        }

        .global-toggle:hover {
            background: var(--green);
        }
            
        /* --- Collapsible thing ends here --- */
    

.cycle-container{
    margin-left:18vw;
    margin-top:7vw;
    width:25vw;
    height: 25vw;
}

.quarter-circle{
    width:100%;
    height:100%;
    max-width:25vw;
    overflow:visible;
    transition: transform 0.8s ease;
}

.quarter{
    transition: transform 0.3s ease;
    transform-origin: center;
}

.quarter-circle.locked .quarter:hover{
    transform:none;
}

/* Parts table styles */
.parts-table {
    max-width: 1100px;
    margin: 0 auto;
}
.parts-table td, .parts-table th {
    vertical-align: middle;
}
.parts-description {
    white-space: normal;
    word-wrap: break-word;
    max-width: 420px;
}