/* Local Font Definitions */
@font-face {
  font-family: "Coolvetica";
  src: url("https://static.igem.wiki/teams/5823/fonts/coolvetica/coolvetica-rg.otf")
    format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Coolvetica";
  src: url("https://static.igem.wiki/teams/5823/fonts/coolvetica/coolvetica-rg-it.otf")
    format("opentype");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "Coolvetica";
  src: url("https://static.igem.wiki/teams/5823/fonts/coolvetica/coolvetica-hv-comp.otf")
    format("opentype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Gontserrat";
  src: url("https://static.igem.wiki/teams/5823/fonts/gontserrat/gontserrat-regular.ttf")
    format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Gontserrat";
  src: url("https://static.igem.wiki/teams/5823/fonts/gontserrat/gontserrat-italic.ttf")
    format("truetype");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "Gontserrat";
  src: url("https://static.igem.wiki/teams/5823/fonts/gontserrat/gontserrat-bold.ttf")
    format("truetype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Gontserrat";
  src: url("https://static.igem.wiki/teams/5823/fonts/gontserrat/gontserrat-bolditalic.ttf")
    format("truetype");
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: "Gontserrat";
  src: url("https://static.igem.wiki/teams/5823/fonts/gontserrat/gontserrat-semibold.ttf")
    format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Gontserrat";
  src: url("https://static.igem.wiki/teams/5823/fonts/gontserrat/gontserrat-medium.ttf")
    format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Gontserrat";
  src: url("https://static.igem.wiki/teams/5823/fonts/gontserrat/gontserrat-light.ttf")
    format("truetype");
  font-weight: 300;
  font-style: normal;
}

/* Font Definitions */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Coolvetica", serif;
}

.lead,
.subheader,
h4,
h5,
h6 {
  font-family: "Gontserrat", sans-serif;
  font-weight: 700;
}

.left-aligned {
  margin-left: auto;
}
.bg-dark {
  background-color: black !important;
}
.bg-hero {
  background: radial-gradient(
      1200px 400px at 30% -10%,
      rgba(255, 255, 255, 0.12),
      transparent
    ),
    #45b06c !important;
  padding-block: clamp(28px, 6vw, 72px) !important; /* tighter than py-5 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* CALLOUT */
.bd-callout {
  padding: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid #e9ecef;
  border-left-width: 0.25rem;
  border-radius: 0.25rem;
}
.bd-callout h4 {
  margin-bottom: 1.25rem;
}
.bd-callout p:last-child {
  margin-bottom: 0;
}
.bd-callout code {
  border-radius: 0.25rem;
}
.bd-callout + .bd-callout {
  margin-top: -0.25rem;
}
.bd-callout-info {
  border-left-color: #5bc0de;
}
.bd-callout-warning {
  border-left-color: #f0ad4e;
}
.bd-callout-danger {
  border-left-color: #d9534f;
}

/* footer */
footer {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
}

footer p {
  text-indent: 0 !important;
}

footer a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}
footer a:hover {
  color: white;
  text-decoration: underline;
}

/* Navigation Hover Effects - Overridden by menu.css for transparent navbar */
/* These styles are now handled in menu.css for better organization */

/* Dropdown hover effects - show menu on hover */
.nav-item.dropdown:hover .dropdown-menu {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  margin-top: 0;
}

.dropdown-item:hover {
  color: #45b06cff !important;
  background-color: transparent !important;
}

.dropdown-item {
  transition: all 0.3s ease;
  padding: 8px 20px;
  border-radius: 4px;
  margin: 2px 8px;
}

/* ========================================
   STICKY TABLE OF CONTENTS STYLING
   ======================================== */

body {
  padding-top: 56px;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Text wrapping for long content */
p {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Table of Contents Navigation Links */
.nav-link {
  color: #6c757d;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
}

.nav-link:hover {
  color: #45b06cff !important;
  transform: translateX(5px);
  text-decoration: none;
}

.nav-link.active {
  color: #45b06cff !important;
  font-weight: 600;
  background-color: rgba(69, 176, 108, 0.1);
  border-radius: 6px;
  padding: 4px 8px;
  margin: -4px -8px;
  transform: translateX(5px);
}

.nav-link.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background-color: #45b06cff;
  border-radius: 2px;
}

/* Table of Contents Container Styling */
.position-sticky {
  z-index: 10;
}

/* Table of Contents Card Styling - Only for TOC */
.position-sticky .card {
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border: 0;
  min-height: auto;
  height: auto;
  overflow: visible;
}

.position-sticky .card-header {
  border-radius: 0.5rem 0.5rem 0 0;
  border-bottom: none;
  color: white !important;
}

.position-sticky .card-header h5 {
  color: white !important;
  margin: 0;
  font-weight: 600;
}

.position-sticky .card-body {
  padding: 1rem;
  background-color: white;
  min-height: auto;
  height: auto;
  overflow: visible;
}

/* Table of Contents Navigation */
.nav.flex-column {
  gap: 0.25rem;
  min-height: auto;
  height: auto;
  flex-shrink: 0;
}

.nav.flex-column .nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .position-sticky {
    position: static !important;
    top: auto !important;
  }

  .card {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
  }

  .nav.flex-column .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

/* Stakeholder Communication Styles */
.stakeholder-photo-container {
  text-align: center;
}

.stakeholder-photo {
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 50%;
  border: 3px solid transparent;
}

.stakeholder-photo:hover {
  transform: scale(1.05);
}

.stakeholder-photo.active {
  border-color: #45b06cff;
  background-color: rgba(69, 176, 108, 0.1);
}

.stakeholder-photo img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stakeholder-name {
  margin-top: 10px;
  font-weight: 600;
  color: #333;
}

.stakeholder-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.stakeholder-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.collapsible-box {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.box-header {
  background-color: #f8f9fa;
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.box-header:hover {
  background-color: #e9ecef;
}

.box-header h5 {
  margin: 0;
  color: #333;
  font-weight: 600;
}

.box-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
}

.box-content p {
  margin: 15px 0;
  line-height: 1.6;
}

.box-content img {
  margin: 15px 0;
}

.toggle-icon {
  font-family: "Gontserrat", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #45b06cff;
  transition: all 0.3s ease;
}

/* Rounded Text Box */
.rounded-text-box {
  background-color: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  padding: 20px 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.rounded-text-box:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #45b06cff;
}

.rounded-text-box p {
  font-family: "Gontserrat", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

.text-box-header {
  font-family: "Coolvetica", serif;
  color: #45b06cff;
  font-weight: 600;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #e9ecef;
}

/* Slideshow Styles */
.slideshow-container {
  background-color: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  padding: 20px 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.slideshow-container:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #45b06cff;
}

.slideshow-wrapper {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.slideshow-track {
  position: relative;
  min-height: 300px;
  max-height: 500px;
  overflow: hidden;
  border-radius: 15px;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.slide.active {
  opacity: 1;
}

.slideshow-image {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.slide-caption {
  font-family: "Gontserrat", sans-serif;
  font-weight: 400;
  color: #333;
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
}

.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(69, 176, 108, 0.8);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 18px;
  transition: all 0.3s ease;
  z-index: 10;
}

.slideshow-btn:hover {
  background-color: rgba(69, 176, 108, 1);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

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

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

.dot.active,
.dot:hover {
  background-color: #45b06cff;
}

/* Survey Cards Styles */
.survey-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #e9ecef;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.survey-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #45b06cff, #28a745);
  border-radius: 20px 20px 0 0;
}

.survey-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #45b06cff;
}

.card-icon {
  text-align: center;
  margin-bottom: 20px;
}

.icon-text {
  font-size: 3rem;
  display: inline-block;
  padding: 15px;
  background: rgba(69, 176, 108, 0.1);
  border-radius: 50%;
  border: 3px solid rgba(69, 176, 108, 0.2);
}

.card-title {
  font-family: "Coolvetica", serif;
  color: #45b06cff;
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 600;
}

/* Goals Card Specific Styles */
.goal-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  border-left: 4px solid #45b06cff;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.goal-item:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(5px);
}

.goal-item.expanded {
  background: rgba(255, 255, 255, 0.95);
  border-left-width: 6px;
}

.goal-expand-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Gontserrat", sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #45b06cff;
  transition: all 0.3s ease;
}

.goal-item.expanded .goal-expand-icon {
  transform: translateY(-50%) rotate(180deg);
}

.goal-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  margin-bottom: 15px;
}

.goal-details.expanded {
  max-height: 300px;
}

.goal-details-content {
  background: rgba(69, 176, 108, 0.05);
  border: 1px solid rgba(69, 176, 108, 0.2);
  border-radius: 10px;
  padding: 15px;
  margin-left: 45px;
}

.goal-details-content p {
  font-family: "Gontserrat", sans-serif;
  font-weight: 400;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.5;
}

.goal-details-content ul {
  margin: 0;
  padding-left: 20px;
}

.goal-details-content li {
  font-family: "Gontserrat", sans-serif;
  font-weight: 400;
  color: #555;
  margin-bottom: 5px;
  line-height: 1.4;
}

.goal-number {
  background: #45b06cff;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  margin-right: 15px;
  flex-shrink: 0;
}

.goal-text {
  font-family: "Gontserrat", sans-serif;
  font-weight: 400;
  color: #333;
  line-height: 1.4;
  margin: 0;
}

/* Audience Card Specific Styles */
.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  transition: all 0.4s ease;
}

.audience-item {
  text-align: center;
  padding: 15px 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.audience-item:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: #45b06cff;
  transform: scale(1.05);
}

.audience-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

.audience-label {
  font-family: "Gontserrat", sans-serif;
  font-weight: 500;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.3;
  margin: 0;
}

/* Audience Detail View Styles */
.audience-detail-view {
  display: none;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #45b06cff;
  border-radius: 15px;
  padding: 25px;
  margin-top: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.4s ease;
}

.audience-detail-view.active {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.audience-detail-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid rgba(69, 176, 108, 0.2);
  position: relative;
}

.audience-detail-icon {
  font-size: 2.5rem;
  margin-right: 15px;
}

.audience-detail-header h5 {
  font-family: "Coolvetica", serif;
  color: #45b06cff;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  flex-grow: 1;
}

.close-btn {
  background: #45b06cff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: #28a745;
  transform: scale(1.1);
}

.audience-detail-content {
  font-family: "Gontserrat", sans-serif;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
}

.audience-detail-content p {
  margin-bottom: 15px;
  font-size: 1rem;
}

.audience-detail-content ul {
  margin: 0;
  padding-left: 20px;
}

.audience-detail-content li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #555;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .survey-card {
    padding: 20px;
  }

  .icon-text {
    font-size: 2.5rem;
    padding: 12px;
  }
}

/* Member and Advisor Card Styles */
.member-card,
.advisor-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #e9ecef;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.member-card::before,
.advisor-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #45b06cff, #28a745);
  border-radius: 20px 20px 0 0;
}

.member-card:hover,
.advisor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #45b06cff;
}

.member-photo-container,
.advisor-photo-container {
  position: relative;
  display: inline-block;
}

.member-photo,
.advisor-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.member-card:hover .member-photo,
.advisor-card:hover .advisor-photo {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.member-name,
.advisor-name {
  font-family: "Coolvetica", serif;
  color: #45b06cff;
  margin: 15px 0 8px 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.member-position,
.advisor-position {
  font-family: "Gontserrat", sans-serif;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 15px;
  font-size: 1rem;
}

.member-description,
.advisor-description {
  font-family: "Gontserrat", sans-serif;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

/* Advisor cards have a slightly different style */
.advisor-card {
  background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
}

.advisor-card::before {
  background: linear-gradient(90deg, #0066cc, #0099ff);
}

.advisor-name {
  color: #0066cc;
}

/* Responsive adjustments for member/advisor cards */
@media (max-width: 768px) {
  .member-card,
  .advisor-card {
    padding: 20px;
  }

  .member-photo,
  .advisor-photo {
    width: 120px;
    height: 120px;
  }

  .member-name,
  .advisor-name {
    font-size: 1.2rem;
  }

  .member-description,
  .advisor-description {
    font-size: 0.9rem;
  }
}

.row {
  display: flex;
}

.column {
  flex: 50%;
  padding: 5px;
}

/* Layout */
.page-container {
  display: flex;
  gap: 2rem;
  padding: 2rem;
}

.main-content {
  flex: 1;
}

.timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 2rem;
  border-left: 3px solid #ccc;
}

.timeline-item {
  margin-bottom: 2rem;
  position: relative;
}

.timeline-date {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #555;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 5px;
  width: 16px;
  height: 16px;
  background: #007bff;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px #ccc;
}

.timeline-content {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

/* Cellulose Binding Domain Box Styles */
.cbd-box {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #e9ecef;
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.cbd-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 20px 20px 0 0;
}

.cbd-box:hover {
  transform: translateY(-5px);
  border-color: #45b06cff;
}

.cbd-box-title {
  font-family: "Gontserrat", sans-serif;
  color: #45b06cff;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.cbd-box-text {
  font-family: "Gontserrat", sans-serif;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
  text-indent: 0;
}

.cbd-image-container {
  text-align: center;
  margin-top: 10px;
}

.cbd-sequence-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.cbd-box:hover .cbd-sequence-image {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cbd-image-caption {
  font-family: "Gontserrat", sans-serif;
  font-weight: 400;
  color: #6c757d;
  font-size: 0.9rem;
  margin-top: 10px;
  font-style: italic;
}

/* Responsive adjustments for CBD boxes */
@media (max-width: 768px) {
  .cbd-box {
    padding: 20px;
  }

  .cbd-box-title {
    font-size: 1.2rem;
  }

  .cbd-box-text {
    font-size: 0.9rem;
  }
}

/* Horizontal Timeline Styles */
.timeline-horizontal-container {
  padding: 10px 0;
  margin: 10px 0;
  width: 100%;
}

.timeline-horizontal {
  display: flex;
  width: 100%;
  position: relative;
  padding: 40px 0;
  justify-content: space-between;
}

.timeline-horizontal::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #28a745;
  transform: translateY(-50%);
  z-index: 1;
}

.timeline-item-horizontal {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

.timeline-date-horizontal {
  background: white;
  color: #45b06cff;
  padding: 12px 18px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  border: 1px solid #dee2e6;
  min-width: 120px;
}

.timeline-date-horizontal:hover {
  background: #f8f9fa;
  border-color: #45b06cff;
  transform: translateY(-2px);
}

.date-text {
  display: block;
  font-family: "Coolvetica", serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.date-subtitle {
  display: block;
  font-family: "Gontserrat", sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  opacity: 0.9;
}

.timeline-content-horizontal {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 20;
  min-width: 250px;
  max-width: 300px;
  margin-top: 10px;
}

.timeline-content-horizontal::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #e9ecef;
}

.timeline-item-horizontal:hover .timeline-content-horizontal {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
}

.timeline-content-horizontal h5 {
  font-family: "Coolvetica", serif;
  color: #45b06cff;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.timeline-content-horizontal p {
  font-family: "Gontserrat", sans-serif;
  color: #333;
  line-height: 1.5;
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive adjustments for horizontal timeline */
@media (max-width: 768px) {
  .timeline-horizontal {
    flex-direction: column;
    padding: 20px 0;
  }

  .timeline-horizontal::before {
    display: none;
  }

  .timeline-item-horizontal {
    padding: 15px 0;
    margin-bottom: 20px;
  }

  .timeline-date-horizontal {
    padding: 12px 15px;
    min-width: 100px;
    margin-bottom: 10px;
  }

  .date-text {
    font-size: 1rem;
  }

  .date-subtitle {
    font-size: 0.8rem;
  }

  .timeline-content-horizontal {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
    min-width: auto;
    max-width: none;
    padding: 15px;
  }
}

.highlight {
  color: red;
}

.cards-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px;
}

.flip-card {
  width: 280px;
  height: 160px;
  perspective: 1000px;
  position: relative;
  cursor: pointer;
}
.flip-card .flip-face {
  /* shared face styles */
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  backface-visibility: hidden;
  transition: transform 0.6s;
}
.flip-card .front {
  background-color: lightgray;
  color: #333;
}
.flip-card .back {
  background-color: lightgray;
  color: white;
  transform: rotateY(180deg);
}
.flip-card:hover .front {
  transform: rotateY(180deg);
}
.flip-card:hover .back {
  transform: rotateY(0deg);
}

.image-stack {
  position: relative;
  width: 600px;
  height: 400px;
  margin: 40px auto;
}

.image-stack img {
  position: absolute;
  width: 250px;
  height: 150px;
  border: 2px solid #000;
  background: #eee;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.15);
}

.image-stack .img1 {
  top: 0;
  left: 50px;
}

.image-stack .img2 {
  top: 100px;
  left: 220px;
}

.image-stack .img3 {
  top: 220px;
  left: 0;
}

.photo-row {
  display: flex;
  gap: 10px; /* space between photos */
}

.photo-row img {
  width: 100%;
  max-width: 200px; /* set max size */
  height: auto;
  border: 2px solid black; /* optional */
}

.counter {
  font-size: 1.5rem; /* makes the whole sentence bigger */
  font-weight: 500; /* semi-bold */
  margin: 0.5em 0; /* spacing between lines */
  line-height: 1.6; /* readability */
}

.counter .number {
  font-size: 1.8rem; /* slightly bigger than text */
  font-weight: bold;
  color: #000; /* keep black (change if needed) */
}

.highlight {
  color: red; /* highlight year */
  font-weight: bold;
}

/* Scope styles to this page section to avoid global collisions */
.attributions .attr-card {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  background: #fff;
}
.attributions .attr-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e5e7eb; /* light gray */
  flex: 0 0 56px;
  display: inline-block; /* important in flex row */
}
.attributions .attr-name {
  margin: 0;
  font-weight: 800;
}
.attributions .attr-role {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.25rem;
}
.attributions .attr-label {
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.attributions .attr-text {
  color: #4b5563;
}
.attributions .attr-grid {
  row-gap: 1.25rem;
}
@media (min-width: 768px) {
  .attributions .attr-grid {
    row-gap: 1.5rem;
  }
}

/* Soft page panel background (instead of body) */
.attributions .panel-bg {
  background-color: #f6f7f9;
  border-radius: 16px;
}

/* ---- FIX OVERLAP / GHOSTING IN CARDS ---- */
.attributions .attr-card,
.attributions .attr-card * {
  line-height: 1.45;
  white-space: normal;
  text-shadow: none;
}

.attributions .attr-name {
  font-size: 1.25rem;
  line-height: 1.2;
}
.attributions .attr-role {
  line-height: 1.2;
}
.attributions .attr-label,
.attributions .attr-text {
  font-size: 1rem;
}

/* make sure the header row behaves */
.attributions .attr-card .d-flex {
  align-items: center;
}
.attributions .attr-avatar {
  display: inline-block;
}

/* TIMELINE CARDS */
.timeline-cards .tl-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.timeline-cards .tl-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition: 0.2s ease;
}
.timeline-cards h3 {
  font-family: "Coolvetica", serif;
  margin: 0 0 0.25rem 0;
}

/* MEMBERS PAGE STYLES */
.banner-section {
  margin: -20px calc(-50vw + 50%) 0 calc(-50vw + 50%);
  width: 100vw;
  position: relative;
  overflow: hidden;
}

.banner-container {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.team-main-header {
  font-family: "Coolvetica", serif;
  font-size: 3rem;
  font-weight: normal;
  color: #333;
}

.team-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #45b06c 0%, #28a745 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.section-header {
  font-family: "Coolvetica", serif;
  font-size: 2.5rem;
  font-weight: normal;
  color: #333;
  margin-bottom: 2rem;
}

.team-section {
  margin-bottom: 4rem;
}

.members-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 60px;
}

.members-scroll {
  overflow: hidden;
  width: 100%;
  max-width: 900px; /* Exactly 3 members visible (3 × 300px) */
}

.members-row {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px;
}

/* Center single member cards */
.members-row:has(.member-card:only-child) {
  justify-content: center;
}

/* Hide scroll buttons for single member sections */
.members-container:has(.members-row:has(.member-card:only-child)) .scroll-btn {
  display: none;
}

.member-card {
  flex: 0 0 280px;
  background: white;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e9ecef;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.member-photo-container {
  width: 100%;
  height: 200px;
  margin: 0 0 15px 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  cursor: pointer;
}

.member-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-name {
  font-family: "Gontserrat", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
  margin: 0;
  transition: opacity 0.3s ease;
}

/* Member Hover Overlay Styles */
.member-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(102, 126, 234, 0.95);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.member-photo-container:hover .member-overlay {
  opacity: 1;
}

.member-photo-container:hover .member-photo {
  opacity: 0.3;
}

.member-photo-container:hover + .member-name {
  opacity: 0.3;
}

.member-info {
  text-align: center;
  color: white;
  padding: 10px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.member-year-major {
  font-family: "Gontserrat", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 8px 0;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.member-bio {
  max-height: 100px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.member-bio::-webkit-scrollbar {
  width: 4px;
}

.member-bio::-webkit-scrollbar-track {
  background: transparent;
}

.member-bio::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.member-bio::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.member-bio p {
  font-family: "Gontserrat", sans-serif;
  font-size: 0.8rem;
  line-height: 1.3;
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #45b06c 0%, #28a745 100%);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.scroll-left {
  left: 0;
}

.scroll-right {
  right: 0;
}

.scroll-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.scroll-btn:disabled:hover {
  transform: translateY(-50%) scale(1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Animated arrow styles */
.animated-arrow {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .team-main-header {
    font-size: 2rem;
  }

  .section-header {
    font-size: 1.8rem;
  }

  .members-container {
    padding: 0 40px;
  }

  .scroll-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .member-card {
    flex: 0 0 250px;
    padding: 15px;
  }

  .member-photo-container {
    height: 150px;
  }
}

@media (max-width: 768px) {
  .banner-container {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .banner-container {
    height: 150px;
  }

  .team-main-header {
    font-size: 1.5rem;
  }

  .section-header {
    font-size: 1.5rem;
  }

  .members-container {
    padding: 0 30px;
  }

  .scroll-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .member-card {
    flex: 0 0 220px;
    padding: 12px;
  }

  .member-photo-container {
    height: 120px;
  }
}
