body { padding-top: 56px; }
.left-aligned { margin-left: auto; }
.bg-dark { background-color: #343a40 !important; }
.bg-hero { background-color: #f8f9fa; }

/* CALLOUT */
.bd-callout { padding:1.25rem; margin-top:1.25rem; margin-bottom:1.25rem; border:1px solid #e9ecef; border-left-width:.25rem; border-radius:.25rem }
.bd-callout h4 { margin-bottom: 1.25rem }
.bd-callout p:last-child { margin-bottom:0 }
.bd-callout code { border-radius:.25rem }
.bd-callout+.bd-callout { margin-top:-.25rem }
.bd-callout-info { border-left-color:#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: white; text-decoration: underline; }

.card-title {
  color: black 
}

.card-text {
  color: black 
}

/* Prevents headings from being hidden under the fixed navbar (gives a little space when they are jumped to from a link) */
section {
  scroll-margin-top: var(--navbar-height, 80px); /* adjusts this value to the navbar height or 80px*/
}

/* ensure smooth transitions for the background colour change */
.content-wrapper {
  transition: background-color 0.2s ease;
}

/* wave border (fancy!) */

header {
  position: relative; /* ensures the wave is positioned relative to header */
}

.wave-divider {
  position: absolute;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-dynamic {
  transition: fill 0.2s ease;
}

.wave-static {
  opacity: 0.3;
}

.wave-divider svg {
  display: block;
  width: 300%;
  height: 150px;
  animation: waveMove 15s linear infinite;
}

@keyframes waveMove {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-33.333%); }
}

/* Styling for sidebar*/
/* Sidebar container */
#sidebar-nav {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1rem;
  font-size: 0.95rem;
}

/* Normal links */
#sidebar-nav .nav-link {
  color: #333;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
}

/* Hover effect */
#sidebar-nav .nav-link:hover {
  background-color: rgba(40, 167, 69, 0.08);
  color: #28a745;
  transform: translateX(4px);
}

/* Active section */
#sidebar-nav .nav-link.active {
  font-weight: 600;
  background-color: rgba(40, 167, 69, 0.15);
  border-left: 4px solid #28a745;
  color: #28a745;
}



/* classes for note cards */
.note-card {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.note-card.visible {
    opacity: 1;
}

.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

body {
    height: 100vh;
    overflow-y: scroll;
}

.card-img {
      height: 250px;
      object-fit: cover;
}
    
.card-img-overlay {
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  }

/* team card for member photos */  
.team-card {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-img-container {
  position: relative;
  height: auto;
  overflow: hidden;
}

.card-img-container .main-img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.4s ease;
}

.card-img-container .hover-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  opacity: 0;
  transition: opacity 0.4s ease;
  font-size: 0.95rem;
}

.card-img-container:hover .main-img {
  opacity: 0.3;
}

.card-img-container:hover .hover-text {
  opacity: 1;
}

/* sponsor ticker stuff */
.sponsor-ticker {
  overflow: hidden;
  padding: 10px 0;
}

.ticker-track {
  display: flex;
  gap: 40px;
  animation: ticker 20s linear infinite;
}

.ticker-track img {
  height: 60px;
  object-fit: contain;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Styling quotes */

/* Remove bullets and reset list spacing */
.quote-list {
  list-style: none;
  padding: 0 0 0 1rem;                 /* padding for left border */
  margin: 0;
  border-left: 3px solid var(--bs-secondary); /* subtle Bootstrap-style border */
}

/* Style each quote */
.quote-list li {
  font-style: italic;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--bs-body-color);
  font-size: 1.05rem;
  line-height: 1.5;
}

/* Decorative opening quote mark */
.quote-list li::before {
  content: "“";
  font-size: 2rem;
  position: absolute;
  left: 0;
  top: -0.3rem;
  color: var(--bs-secondary);
  font-weight: bold;
  line-height: 1;
}

/* Quote attribution styling */
.attribution {
  display: block;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--bs-secondary);
  margin-top: 0.25rem;
}

/* Styling References */

/* Normal reference links */
.reference-list a {
  color: #333;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

/* Hover effect */
.reference-list a:hover {
  background-color: rgba(40, 167, 69, 0.08);
  color: #28a745;
  transform: translateX(4px);
  text-decoration: none;
}



/* Zig-zag paragraph cards (adds only; does not change existing rules) */
.zigzag-grid {
  display: grid;
  grid-template-columns: 1fr;   /* one item per row */
  gap: 24px;                    /* space between cards */
}

.zigzag-card {
  max-width: min(560px, 92%);
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  justify-self: start;          /* default: left */
}

/* Alternate alignment: even cards to the right */
.zigzag-card:nth-child(even) {
  justify-self: end;            /* right */
}

/* Slightly larger spacing on wider screens */
@media (min-width: 768px) {
  .zigzag-grid { gap: 28px; }
}

/* Image cards for the zig-zag layout */
.zigzag-card img {
  width: 100%;
  height: 260px;           /* tweak as you like */
  object-fit: cover;       /* clean crop */
  border-radius: 10px;
  display: block;
}

.zigzag-card figure {
  margin: 0;
}

.zigzag-card figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #6c757d;          /* matches Bootstrap-ish secondary tone */
}

/* Optional: a placeholder skeleton style if the image hasn’t loaded yet */
.zigzag-card .img-skeleton {
  width: 100%;
  height: 260px;
  border-radius: 10px;
  background: linear-gradient(90deg, #eee, #f6f6f6, #eee);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Bigger scoped size bump */
.content-lg .zigzag-card {
  font-size: clamp(1rem, 0.7rem + 0.7vw, 1.2rem);
  line-height: 1.75;
}

.content-lg .zigzag-card-h2 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem);
  line-height: 1.75;
}

.content-lg h2 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem);
}

/* 25% overlap variant for the zig-zag */
.zigzag-grid.overlap-25 {
  --ov: 25%;            /* overlap amount (of each card’s own height) */
  row-gap: 0;           /* let the visual overlap handle spacing */
  position: relative;
}

.zigzag-grid.overlap-25 .zigzag-card {
  position: relative;
  z-index: 1;
  /* optional: make overlap edges look nicer */
  box-shadow: 0 8px 18px rgba(0,0,0,0.10);
}

/* Move every card after the first up by 25% of its own height */
.zigzag-grid.overlap-25 .zigzag-card:not(:first-child) {
  transform: translateY(calc(-1 * var(--ov)));
}

/* Layering: alternate higher z-index so the newer card sits on top */
.zigzag-grid.overlap-25 .zigzag-card:nth-child(odd)  { z-index: 2; }
.zigzag-grid.overlap-25 .zigzag-card:nth-child(even) { z-index: 3; }

/* Mobile: disable overlap for readability */
@media (max-width: 576px) {
  .zigzag-grid.overlap-25 .zigzag-card:not(:first-child) {
    transform: none;
  }
}

/* Full-width zig-zag card (stretches across container) */
.zigzag-card-full {
  max-width: none;         /* remove the 560px limit */
  width: 100%;             /* fill the grid track */
  justify-self: stretch;   /* override left/right alignment */
  grid-column: 1 / -1;     /* span all columns (future-proof if grid changes) */
}

/* Optional: nicer list spacing inside the references card */
.zigzag-card-full .reference-list {
  margin: 0;
  padding-left: 1rem;
}
.zigzag-card-full .reference-list li {
  margin-bottom: 0.6rem;
}



/* === Minimal green theme (adds only) === */

/* Soft green page background */
body.bg-page-green {
  background: #eef7f0; /* gentle, low-ink green */
}

/* Minimal table look */
.table-min {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;              /* crisp against green page */
  border: 1px solid #e3efe7;        /* faint greenish border */
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.98rem;
}

/* Remove heavy styling; keep it calm */
.table-min caption {
  caption-side: top;
  text-align: left;
  font-weight: 600;
  padding: 0.75rem 1rem;
  color: #2a5f3a;                   /* deep green heading */
}

.table-min thead th {
  background: #f5fbf7;              /* barely tinted header */
  color: #264d33;
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #e3efe7;
  font-weight: 600;
}

.table-min tbody td {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid #eef5f0; /* hairline rows */
  vertical-align: top;
}

/* Group rows: super subtle */
.table-min .primer-group {
  background: #f2f9f4;
  color: #2b7a3d;
  font-weight: 600;
}

.table-min .primer-group td {
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid #e3efe7;
}

/* Monospace sequences, minimal */
.primer-seq code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.01em;
  font-size: 0.95em;
  background: transparent;          /* no code chips */
  padding: 0;
}

/* Subtle direction label */
.seq-dir {
  color: #5f7d69;
  font-size: 0.85em;
  margin-right: 0.35rem;
}

/* clean links */
.link-clean {
  color: inherit;
  text-decoration: none;
}

/* 1) Give every zigzag card a real, fixed-but-responsive width */
.zigzag-grid > .zigzag-card,
.zigzag-grid > figure.zigzag-card {
  width: min(560px, 92%);     /* same across text, image, video */
}

/* Make the references card truly full width */
.zigzag-grid > .zigzag-card.zigzag-card-full {
  width: 100% !important;     /* override the 560px rule */
  max-width: none !important;  /* override .zigzag-card's max-width */
  justify-self: stretch;       /* ensure it fills the track */
  grid-column: 1 / -1;         /* future-proof if you add more columns */
}

/* 2) Normalize figure cards (remove browser default margins) */
figure.zigzag-card { margin: 0; }

/* 3) Media box that exactly matches image-card footprint */
.zigzag-card .media-box {
  position: relative;
  width: 100%;                /* fills the card's new fixed width */
  height: 260px;              /* same as your image cards */
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

/* 4) Make the iframe fill the box */
.zigzag-card .media-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* 5) Optional: crop portrait embeds like 'object-fit: cover' */
.zigzag-card .media-box.cover-iframe { --zoom: 1.8; }   /* tune 1.6–2.2 */
.zigzag-card .media-box.cover-iframe iframe {
  transform: scale(var(--zoom));
  transform-origin: center;
}




:root { --ticker-gap: 40px; }

/* kill Bootstrap spacing utilities inside ticker */
.sponsor-ticker img { margin: 0 !important; max-width: none; display: block; }

/* TRACK */
.sponsor-ticker .ticker-track {
  display: flex !important;
  flex-wrap: nowrap !important;   /* never wrap in prod */
  width: max-content;
  gap: 0 !important;              /* don't rely on flex gap between groups */
  animation: tickerLoop 20s linear infinite;
  will-change: transform;
}

/* GROUPS */
.sponsor-ticker .ticker-group {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;                         /* we’ll emulate gap with margins */
  flex: 0 0 auto;                 /* fixed width per group */
  align-items: center;
}

/* Emulate "gap" WITHIN each group */
.sponsor-ticker .ticker-group > * + * {
  margin-left: var(--ticker-gap);
}

/* Seam shim so A|A² seam has the same spacing as inside-group */
.sponsor-ticker .ticker-group::after {
  content: "";
  flex: 0 0 auto;
  width: var(--ticker-gap);
  height: 1px;
}

/* IMAGES */
.sponsor-ticker .ticker-group img {
  height: 60px;
  object-fit: contain;
  flex: 0 0 auto;
}

/* First logo 10% larger (in each group) */
.sponsor-ticker .ticker-group img:first-child {
  transform: scale(1.1);
  transform-origin: center;
  /* OPTIONAL tiny balance if you notice crowding */
  /* margin-right: calc(var(--ticker-gap) * 0.05); */
}

/* Unique keyframes to avoid collisions in prod bundles */
@keyframes tickerLoop {
  0%   { transform: translate3d(0,0,0); }
  100% { transform: translate3d(-50%,0,0); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sponsor-ticker .ticker-track { animation: none; }
}