body { 
    padding-top: 110px; /* adjust to match navbar height */
}
.left-aligned { margin-left: auto; }
.bg-dark { background-color: #030e1a !important; }
.bg-hero { background-color: #141a29; }

/* 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:.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:#5bc0de }
.bd-callout-warning { border-left-color:#f0ad4e }
.bd-callout-danger { border-left-color:#d9534f }

/* footer */
footer a { color: white; font-weight: bold; text-decoration: none; }
footer a:hover { color: #62ff8c; text-decoration: none; }

/* ==== GLOBAL THEME ==== */
:root {
    --bg-color: hsl(225, 35%, 7%);
    --text-color: white;
    --accent-blue: #4fa3ff;
    --accent-green: #62ff8c;
    --accent-gradient: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    --card-bg: #141a29;
    --divider-color: #2b2f40;
    --font-main: 'Poppins', 'Helvetica Neue', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    line-height: 1.7;
    overflow-x: hidden;
}

section a {
    color: #62ff8c !important;
}

.figure-image {
  max-width: 600px;   /* maximum width */
  width: 100%;        /* scale down for smaller screens */
  height: auto;       /* maintain aspect ratio */
  display: block;
  margin: 0 auto;     /* center the image */
}

/* ==== HOME SECTION (Hero Video) ==== */
.hero-section {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    border-bottom: 2px solid var(--divider-color);
}

.hero-section iframe,
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    filter: brightness(60%) contrast(110%);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,20,0.4), rgba(10,10,20,0.85));
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(79,163,255,0.6);
    z-index: 2;
}

/* ==== SECTIONS WITH OVERLAP ==== */
section {
    position: relative;
    padding: 4rem 1rem;
    z-index: 1;
}

section:not(:first-of-type) {
    margin-top: -50px; /* subtle overlap */
}

section:not(:first-of-type)::before {
    content: "";
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(11,14,23,0), rgba(11,14,23,1));
    z-index: 0;
}

.content-container {
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
}

/* Section Titles and Divider */
.section-title {
    font-size: 1.8rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.divider {
    width: 80px;
    height: 3px;
    background: var(--accent-gradient);
    margin: 1.2rem auto;
    border-radius: 3px;
}

.section-text {
    font-size: 1.05rem;
    text-align: justify;
}

/* Video Section */
/* Video container for sections */
.video-section .video-container {
    position: relative;
    width: 100%;
    max-height: 80%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    margin-top: 2rem; /* spacing from title */
}

.video-section iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

/* ==== BUTTONS ==== */
.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.learn-more-button {
    width: 140px;
    height: 140px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--accent-gradient);
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(79,163,255,0.4);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.learn-more-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 25px rgba(96, 82, 255, 0.6);
    color: white !important;
}

/* ==== REFERENCES ==== */
/* References Card */
.references-card {
    background-color: var(--card-bg);
    border: 1px solid var(--divider-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.references-toggle {
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    text-align: left;
    padding: 0.6rem 1rem;
    transition: background 0.3s ease;
}

.references-toggle:hover {
    filter: brightness(1.1);
}

.arrow-icon {
    transition: transform 0.3s ease;
}

/* Rotate arrow when collapse is shown */
.collapse.show + .references-toggle .arrow-icon,
.references-toggle[aria-expanded="true"] .arrow-icon {
    transform: rotate(180deg);
}

/* List inside card */
.references-card ul li {
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--divider-color);
}
.references-card ul li:last-child {
    border-bottom: none;
}


/* ==== TEAM CARDS ==== */
.team-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    position: relative;
    text-align: center;
    padding: 25px 15px 40px;
}

.team-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ==== IMAGE CIRCLE WITH LINK ==== */
.team-image-wrapper {
    width: 130px;
    height: 130px;
    margin: 0 auto 10px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #4fa3ff, #62ff8c);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* changed from visible to hidden */
}

.team-image-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.team-image-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}


.team-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* INFO */
.team-info {
    margin-top: 10px;
}

.team-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.15rem;
}

.team-role {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 0.5rem;
}

/* BIO + FUN FACTS */
.team-bio {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.4s ease, opacity 0.4s ease;
    padding: 0 1rem;
    text-align: left;
}

.team-card.expanded .team-bio {
    opacity: 1;
    margin-top: 10px;
}

.fun-facts {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}

.fun-facts li {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

/* Gradient text for fun fact labels */
.team-bio .fun-facts li strong {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* EXPAND ARROW */
.expand-arrow {
    font-size: 1.3rem;
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-green);
    transition: transform 0.4s ease;
}

.team-card.expanded .expand-arrow {
    transform: translateX(-50%) rotate(180deg);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .team-card {
        padding: 20px 10px 30px;
    }
    .team-image-wrapper {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 576px) {
    .team-image-wrapper {
        width: 110px;
        height: 110px;
    }
}

/* ==== GROUP SLIDESHOW ==== */
/* ==== GROUP SLIDESHOW ==== */
.team-slideshow {
  position: relative;
  max-width: 800px;
  margin: 2rem auto 3rem;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 420px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  filter: brightness(85%);
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.dots {
  text-align: center;
  margin-top: 12px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 4px;
  background-color: #444;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.active-dot,
.dot:hover {
  background: linear-gradient(135deg, #4fa3ff, #62ff8c);
}

.support-card {
  text-align: center;
  background-color: var(--card-bg);
  color: white;
  border-radius: 1rem;
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.placeholder-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--card-bg), var(--divider-color));
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: bold;
  color: #ccc;
}

.team-image {
  width: 100%;
  border-radius: 50%;
  object-fit: cover;
}


/* Checklist Feature */

.list-checklist {
  list-style: none;
  padding-left: 0;
}

.list-checklist li {
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.5em;
}

/* Checked items */
.list-checklist li.checked::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #12fbff; /* green checkmark */
  font-weight: bold;
}

/* Unchecked items */
.list-checklist li.unchecked::before {
  content: "○"; /* empty circle */
  position: absolute;
  left: 0;
  color: #6c757d; /* gray */
  font-weight: bold;
}

/* == Table Feature == */

/* ==== ELSI HAZARD TABLE ==== */
.table-hazard-responsive {
    overflow-x: auto;
    border-radius: 0.5rem;
}

.table-hazard-responsive table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text-color);
}

.table-hazard-responsive th,
.table-hazard-responsive td {
    border: 1px solid var(--divider-color);
    padding: 0.6rem 0.8rem;
    text-align: left;
    vertical-align: middle;
}

.table-hazard-responsive thead {
    background: var(--accent-gradient);
    color: #ffffff;
    font-weight: 600;
}

.table-hazard-responsive tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.05);
}

.table-hazard-responsive tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}

.table-hazard-responsive td:first-child,
.table-hazard-responsive th:first-child {
    font-weight: 600;
}

/* Optional: make table scroll nicely on mobile */
@media (max-width: 768px) {
    .table-hazard-responsive th,
    .table-hazard-responsive td {
        font-size: 0.9rem;
        padding: 0.4rem 0.6rem;
    }
}

/* ==== EXPERIMENTS ==== */
/* ==== EXPERIMENTS SECTION ==== */
.nav-tabs {
    border-bottom: none;
    justify-content: center;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 1rem 1rem 0 0;
    margin: 0 0.25rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-tabs .nav-link.active {
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.tab-content .card {
    background-color: var(--card-bg);
    border-radius: 1.2rem;
    border: 1px solid var(--divider-color);
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tab-content .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.35);
}

.tab-content .card h5.card-title {
    color: var(--accent-green);
    margin-bottom: 0.75rem;
}

.tab-content .card ul {
    padding-left: 1rem;
    margin-bottom: 0;
}

.tab-content .card ul li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.tab-content .card ul li ul {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

.tab-content .card ul li ul li {
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .nav-tabs .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }

    .tab-content .card {
        padding: 1rem;
    }
}

/* ==== FOOTER ==== */
footer {
    position: relative;
    z-index: 2;
    margin-top: 5rem;
    padding: 3rem 1rem;
    background-color: #0e1220;
    text-align: center;
    border-top: 1px solid var(--divider-color);
}

footer::before {
    content: "";
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, rgba(11,14,23,0), #0e1220);
}

footer a {
    color: var(--accent-blue);
    text-decoration: none;
}

footer a:hover {
    color: var(--accent-magenta);
}

footer .socials {
    align-items: center;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.6rem;
        padding: 0 1rem;
    }
    .section-text {
        font-size: 1rem;
    }
    .learn-more-button {
        width: 100px;
        height: 100px;
        font-size: 0.9rem;
    }
    .learn-more-button:hover {
        transform: translateY(-5px) scale(1.1);
        box-shadow: 0 0 25px rgba(96, 82, 255, 0.6);
        color: white;
    }
}
