
/* ======================= GLOBAL VARIABLES ======================================================== */
* {
    overflow-anchor: none !important;
}


:root {
  --phoenics_dark_purple: #3D2652;
  --phoenics_bright_purple: #d42be9;
  --phoenics_orange: #F6971F;
  --phoenics_yellow: #Fb8825;
  --phoenics_grey: #D3D3D3;

  --rgb_phoenics_dark_purple: 61, 38, 82;
  --rgb_phoenics_bright_purple: 224, 59, 255;
  --rgb_phoenics_orange: 237, 122, 62;
  --rgb_phoenics_yellow: 252, 207, 0;
  --rgb_phoenics_grey: 211, 211, 211;

  --font-family-primary: "Nunito Sans", sans-serif;
  --fs-body: 1.1rem;
  --fs-h1: 3rem;
  --fs-h2: 2rem;
  --fs-h3: 1.875rem;
  --fs-h4: 1.4375rem;
  --fs-h5: 0.875rem;
  --fs-overlay: 2rem;
  --fs-dropdown-title: 0.9rem;

  --navbar-height: 3.5rem;

  --fw-regular: 400;
  --fw-bold: 700;
  --fw-extrabold: 1000;
  --clr-body:  #faf7f7;
  --clr-focus: rgb(203, 94, 253,0.1);
  --clr-focus_rgb: 203, 94, 253;
  --clr-navbar: rgba(251, 251, 251, 0.95);
  --clr-abstract: rgba(53,34,83,0.9);
  --clr-sensing: #D42BE9;
  --clr-processing: #FB8825;
  --clr-responding: #FFD000;
  --clr-freaky: #AFE4FF;

  --gradient-line-svg: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1320 24" preserveAspectRatio="none"><rect x="0" y="10" width="1308" height="4" fill="url(%23gradient)"/><defs><linearGradient id="gradient" x1="0%25" y1="0%25" x2="100%25" y2="0%25"><stop offset="0.0136" stop-color="%23352253"/><stop offset="0.0941" stop-color="%2385279E"/><stop offset="0.2260" stop-color="%23D42BE9"/><stop offset="0.3125" stop-color="%23E53BDB"/><stop offset="0.6971" stop-color="%23E54A42"/><stop offset="0.9581" stop-color="%23FB8825"/></linearGradient></defs></svg>');
  
  --gradient-circle-svg: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="12" cy="12" r="11.5" fill="%23FB8825"/></svg>');
}
@media (max-width: 767px) {
  :root {
    --fs-body: 0.9rem;
    --fs-h1: 2.25rem;
    --fs-h2: 1.25rem;
    --fs-h3: 1.1rem;
    --fs-h4: 1rem;
    --fs-h5: 0.9rem;
    --fs-overlay: 1.1rem;
    --fs-dropdown-title: 0.7rem;
  }
}
@media (max-width: 1439px) and (min-width: 768px) {
  :root {
    --fs-body: 1rem;
    --fs-h1: 2.5rem;
    --fs-h2: 1.5rem;
    --fs-h3: 1.25rem;
    --fs-h4: 1.125rem;
    --fs-h5: 0.9rem;
    --fs-overlay: 2.3rem;
    --fs-dropdown-title: 0.9rem;
  }
}
@media (min-width: 1440px) {
  :root {
    --fs-ref: 1rem;
    --fs-body: 1.3rem;
    --fs-h1: 3rem;
    --fs-h2: 2rem;
    --fs-h3: 1.75rem;
    --fs-h4: 1.375rem;
    --fs-h5: 1rem;
    --fs-overlay: 2.5rem;
    --fs-dropdown-title: 1.2rem;
  }
}
@media (min-width: 1800px) and (max-width: 2199px) {
  :root {
    --fs-body: 1.5rem;
    --fs-dropdown-title: 1.5rem;
  }
}
@media (min-width: 2200px){
  :root {
    --fs-dropdown-title: 1.8rem;
  }
}

.page_content {
  max-width: 2500px;
  margin: auto;
}


/* ======================= GENERAL ======================================================== */
/* Utility classes */

.fs-body {
    font-size: var(--fs-body);
}
.fs-h1 {
    font-size: var(--fs-h1);
}
.fs-h2 {
    font-size: var(--fs-h2);
}
.fs-h3 {
    font-size: var(--fs-h3);
}
.fs-h4 {
    font-size: var(--fs-h4);
}
.fs-h5 {
    font-size: var(--fs-h5);
}

.w-plot{
  width: 60%;
}
@media (max-width: 992px){
  .w-plot {
    width: 90%;}
}
.w-60 {
  width: 60%;
  text-align: center;
}
.w-85 {
  width: 85%;
}
@media (min-width: 992px) {
  .w-lg-75 {
    width: 75% !important;
  }
  .w-lg-50 {
    width: 50% !important;
  }
  .w-lg-100 {
    width: 100% !important;
  }
  .w-lg-60 {
    width: 60% !important;
  }
  .w-lg-40 {
    width: 40% !important;
  }
  .w-lg-30 {
    width: 30% !important;
  }
}
.left {
  text-align: left;
  display: block;
}

/* ======================= BASE STYLES ======================================================== */
img,
picture,
svg {
  max-width: 100%;
  display: block;
}
a {
    color:inherit;
}

a:hover {
    color: inherit;
}

.container-fluid {
  padding:0;
  margin-top: 0;
}

/* whole page setting */
body {
  background-color: var(--clr-body);  /* Light gray background */
  font-family: "Nunito Sans", sans-serif; /* Use Nunito Sans font */
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  letter-spacing: 0%;
  text-align: justify;
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
}

h2, h3, h4, h5, h6 {
  font-family: "Proxima Nova", sans-serif; /* Use Proxima Nova font */
  font-weight: var(--fw-bold); /* Proxima Nova weight 700 */
  text-align: left;
}

h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}
h4 {
  font-size: var(--fs-h4);
}
h5 {
  font-size: var(--fs-h5);
}


/* ======================= FONTS ======================================================== */
@font-face {
    font-family: 'Nunito Sans';
    src: url('https://static.igem.wiki/teams/5775/fonts/nunitosans.ttf') format('truetype');
    font-weight: 200 1000; /* Full weight range */
}
@font-face {
    font-family: 'Nunito Sans';
    src: url('https://static.igem.wiki/teams/5775/fonts/nunitosans-italic.ttf') format('truetype');
    font-weight: 200 1000;
    font-style: italic; /* Italic style */
}



/* ======================= GENERAL ======================================================== */

@media (min-width: 992px) {
  .pe-lg-6 { padding-inline-end: 4rem; }
  .pe-lg-7 { padding-inline-end: 4.5rem; }
  .pe-lg-8 { padding-inline-end: 5rem; }
  .pe-lg-9 { padding-inline-end: 6rem; }
  .pe-lg-10 { padding-inline-end: 8rem; }
}


.left-aligned { margin-left: auto; }
.bg-dark { background-color: #ffffff !important; }
.bg-hero { background-color: #45b06cff; }



/* ======================= NAVBAR STYLING ======================================================== */
/* --- Navbar base --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--clr-navbar);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  z-index: 2000;
  transform: translateY(0);
  transition: transform 0.3s ease;
  padding: 0 2rem 0 0;
}

.navbar.hidden { 
  transform: translateY(-100%);
}

.nav-container {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: var(--navbar-height);
  position: relative;
  z-index: 1000;
}

.navbar-logo {
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 0;
}

.navbar-logo-img {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 3rem;
  margin-bottom: 0;
}

.nav-item {
  position: relative;
}

body[data-page="home"] .nav-home,
body[data-page=""]     .nav-home {
  display: none;
}

.nav-link {
  text-decoration: none;
  color: black;
  font-weight: var(--fw-bold);
  font-size: var(--fs-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0;
  transition: color 0.3s ease;
  cursor: pointer;
  font-family: "Nunito Sans", sans-serif;
}

.nav-link:hover,
.nav-link.active {
  color: var(--phoenics_bright_purple);
}

/* --- Dropdown Panels --- */
.dropdown-container {
  position: fixed;
  top: 3.5rem;
  left: 0;
  width: 100%;
  background: var(--clr-navbar);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  z-index: 999;
  padding: 1rem;
}

.dropdown-container.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 50rem;
  margin: 0 auto;
}

.dropdown-card {
  background: transparent;
  border-radius: 12px;
  padding: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dropdown-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-color: var(--phoenics_bright_purple);
  text-decoration: none;
}

.card-icon {
  font-size: var(--fs-h2);
  color: black;
  flex-shrink: 0;
  width: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.card-icon svg,
.card-icon img {
  width: 80%;
  height: 80%;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.dropdown-card:hover .card-icon {
  transform: scale(1.2);
}

.card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.card-title {
  font-family: "Nunito Sans", sans-serif;
  font-weight: var(--fw-bold);
  font-size: var(--fs-body);
  color: black;
  margin: 0;
  line-height: 1.2;
  transition: transform 0.3s ease;
  display: block;
  text-align: left;
}

.dropdown-card:hover .card-title {
  transform: translateX(0.5rem);
}

.card-subtitle {
  font-family: "Nunito Sans", sans-serif;
  font-weight: var(--fw-regular);
  font-size: var(--fs-h5);
  color: var(--phoenics_bright_purple);
  margin: 0;
  line-height: 1.3;
  padding-left: 0.5rem;
}

/* --- Blur Overlay --- */
.blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px);
  background: rgba(0,0,0,0.1);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

.blur-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- Mobile: Toggle Button & Icons --- */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: fixed;
  top: 0.75rem;
  right: 1rem;
  z-index: 1000;
  width: 40px;
  height: 40px;
  background: transparent;
  border-radius: 50%;
}

.menu-icon,
.close-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

.close-icon {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) rotate(90deg);
}

.mobile-toggle.active .menu-icon {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.mobile-toggle.active .close-icon {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) rotate(0deg);
}

/* --- Mobile: Overlay & Content (Adaptive Height) --- */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--clr-navbar);
  backdrop-filter: blur(20px);
  z-index: 1001;
  transform: translateY(-100%);
  height: auto;
  min-height: 0;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu-overlay.active {
  transform: translateY(0);
  height: auto;
  overflow-y: visible;
}

.mobile-menu-content {
  padding: 5rem 0 1rem 0;
}

/* --- Mobile: Menu Items --- */
.mobile-menu-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu-item:last-child {
  border-bottom: none;
}

/* --- Mobile: Category Links (Home) --- */
.mobile-category-link {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0.8rem 2rem;
  text-decoration: none;
  font-family: "Nunito Sans", sans-serif;
  font-weight: var(--fw-bold);
  font-size: var(--fs-h2);
  color: var(--phoenics_dark_purple);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  background: transparent;
  gap: 1rem;
}

.home-spacer {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.mobile-category-link:hover {
  color: var(--phoenics_bright_purple);
  text-decoration: none;
}

/* --- Mobile: Category Buttons (With Dropdowns) --- */
.mobile-category-button {
  width: 100%;
  display: flex;
  justify-content: flex-start; /* Changed from space-between */
  align-items: center;
  padding: 0.8rem 2rem;
  background: transparent;
  border: none;
  font-family: "Nunito Sans", sans-serif;
  font-weight: var(--fw-bold);
  font-size: var(--fs-h2);
  color: var(--phoenics_dark_purple);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  gap: 1rem;
}

.mobile-category-button:hover {
  color: var(--phoenics_bright_purple);
}

.mobile-category-button.active {
  color: var(--phoenics_bright_purple);
}

.category-arrow {
  width: 1.7rem;
  height: 1.7rem;
  transition: transform 0.3s ease;
  flex-shrink: 0; /* Prevent arrow from shrinking */
}

.mobile-category-button.active .category-arrow {
  transform: rotate(90deg);
}

.category-text {
  flex: 1;
}

/* --- Mobile: Submenu Dropdowns (Accordion Style) --- */
.mobile-submenu-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-submenu-dropdown.active {
  max-height: 1000px;
}

/* --- Mobile: Submenu Links --- */
.mobile-submenu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 3rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(-10px);
  animation: slideInSubmenuLink 0.4s ease forwards;
}

.mobile-submenu-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-submenu-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-submenu-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-submenu-link:nth-child(4) { animation-delay: 0.25s; }
@keyframes slideInSubmenuLink {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-submenu-link:hover {
  text-decoration: none;
  transform: translateX(0.5rem);
}

.mobile-submenu-link:last-child {
  border-bottom: none;
}

/* --- Mobile: Link Icons --- */
.mobile-link-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

.mobile-link-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.mobile-submenu-link:hover .mobile-link-icon {
  transform: scale(1.1);
}

/* --- Mobile: Link Text --- */
.mobile-link-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mobile-link-title {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--phoenics_dark_purple);
  margin: 0;
  line-height: 1.2;
  transition: transform 0.3s ease;
}

.mobile-submenu-link:hover .mobile-link-title {
  transform: translateX(0.3rem);
}

.mobile-link-subtitle {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 400;
  font-size: var(--fs-h5);
  color: var(--phoenics_bright_purple);
  margin: 0;
  padding-left: 0.3rem;
  line-height: 1.3;
  opacity: 0.8;
}

/* --- Media Queries --- */
@media (max-width: 768px) {
  .navbar-logo {
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 0;
    justify-content: flex-start;
  }
  .navbar-logo-img {
    height: 2.5rem;
    object-fit: contain;
  }
  .nav-container {
    justify-content: flex-start;
    padding: 0 1rem;
    height: 4rem;
  }
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  body {
    padding-top: 4rem;
    font-size: var(--fs-body);
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-container {
    height: 4rem;
    padding: 0 0.5rem;
  }
  .nav-link {
    font-size: var(--fs-body);
  }
  .navbar-logo-img {
    height: 2.5rem;
  }
  .nav-menu {
    gap: 1.5rem;
  }
  body {
    font-size: var(--fs-body);
  }
}
@media (min-width: 1025px) {
  .navbar-logo {
    display: flex;
  }
  .nav-link {
    font-size: var(--fs-body);
  }
  .mobile-menu-overlay {
    display: none;
  }

  /* body[data-page="home"] .navbar-logo-img,
  body[data-page=""]     .navbar-logo-img { display: none; } */
}

/* ======================= SIDENAV STYLING ======================================================== */

/* GSAP Navigation Styles */
.gsap-nav-container {
  position: sticky;
  top: 2rem;
  width: 85%;
  margin: 0 auto;
  height: 80vh;
  max-height: 50rem;
  padding: 2.5rem 1.5rem;
  /*background:  rgba(226, 216, 209, 0.2);
  border-radius: 1.25rem;
  backdrop-filter: blur(0.625rem);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);*/
}

.gsap-nav-dot {
  position: absolute;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  z-index: 10;
  transform-origin: center;
  transition: transform 0.1s ease;
  background: var(--phoenics_bright_purple);
  cursor: pointer;
}

.gsap-nav-dot:hover {
  transform: scale(1.1);
}

.gsap-nav-hover-zone {
  position: absolute;
  width: 100%;
  height: 3.75rem;
  cursor: pointer;
  z-index: 16;
}

.gsap-nav-container svg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.gsap-nav-connecting-line {
  stroke-width: 0.25rem;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gsap-nav-label {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: black;
  letter-spacing: 0.03125rem;
  cursor: pointer;
  transition: transform 0.2s ease;
  pointer-events: auto;
  z-index: 15;
}

.gsap-nav-label:hover {
  transform: translateY(-50%) scale(1.05);
}

.gsap-nav-label.gsap-nav-accent {
  color: var(--phoenics_yellow);
}

/* Hide sidenav on small screens */
@media (max-width: 767px) {
  #sidebar-column {
    display: none;
  }
  
  #main-column {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Small screens - compact version */
@media (min-width: 767px) and (max-width: 992px) {
  .gsap-nav-container {
    padding: 1rem 0.75rem;
    width: 95%; 
    box-shadow: none;
  }
  
  .gsap-nav-dot {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  .gsap-nav-label {
    font-size: var(--fs-body);
  }
  
  .gsap-nav-hover-zone {
    height: 2.5rem;
  }
}

/* Medium screens */
@media (min-width: 992px) and (max-width: 1349px) {
  .gsap-nav-container {
    padding: 1rem 1rem;
  }
  
  .gsap-nav-dot {
    width: 1.5rem;
    height: 1.5rem;
  }
  
  .gsap-nav-label {
    font-size: var(--fs-body);
  }
  
  .gsap-nav-hover-zone {
    height: 3rem;
  }
}

/* Large screens */
@media (min-width: 1350px) {
  .gsap-nav-container {
    padding: 2rem 1.5rem;
  }
  
  .gsap-nav-dot {
    width: 1.875rem;
    height: 1.875rem;
  }
  
  .gsap-nav-label {
    font-size: var(--fs-body);
  }
  
  .gsap-nav-hover-zone {
    height: 3.75rem;
  }
}

/* =================================== GENERAL STUFF FOR MULTIPLE PAGES ================================== */
/* ======================================================================================================= */

.dropdown-box {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1.5rem;
    /* align content center horizontally */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Style for the clickable header (SVG or image) */
.dropdown-box-header {
    cursor: pointer;
    width: 100%;
    position: relative;
    padding-left: 0;
    margin-left: 0;
}

/* Optional: You can add some styling to the image */
.dropdown-box-icon {
    width: 100%;
    display: block;
    transform: translateZ(0); /* Forces proper rendering */
}

/* Style for the title text */
.dropdown-box-title {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  font-size: var(--fs-dropdown-title);
  font-family: "Nunito Sans", sans-serif; /* Use Nunito Sans font */
  font-weight: var(--fw-bold); /* Nunito Sans weight 600 */
  color: #faf7f7;
  line-height: var(--fs-dropdown-title);
  width: 80%; /* Prevents overflow */
  text-align: left;
  display: block;
}
/* Content hidden by default */
.dropdown-box-content {
    display: none; /* Hidden by default */
    background-color: var(--clr-focus);
    border-radius: 15px;
    margin-top: 0.5rem;
    width: 100%;
    padding: 1rem 1rem 2rem 1rem;
    text-align: justify;
    font-family: "Nunito Sans", sans-serif; /* Use Nunito Sans font */
    font-weight: var(--fw-regular);
    font-size: calc(var(--fs-body)*1); /* Slightly smaller font size */
    overflow: auto;
}


/* Styling when content is visible */
.dropdown-box-content.show {
    display: flow-root;
}
.dropdown-box-content::before {
  background-color: var(--clr-abstract);
}

.dropdown-close-btn {
  text-align: center;
  padding: 0.75rem;
  margin-top: 1.5rem;
  color: var(--phoenics_dark_purple);
  font-weight: 600;
  cursor: pointer;
  border-top: 2px solid rgba(51, 51, 51, 0.2);
  transition: all 0.3s ease;
}

/* ======================= START OF PAGE ANIMATION 0======================================================== */


.lottie-container {
  flex-direction: row;  /* Horizontal direction */
  justify-content: center;  /* Center horizontally */
  position: relative;  /* Required for absolute positioning of Lottie animation */
  width: 100%;  /* Full width */
  overflow: hidden;  /* Hide overflow */
  padding: 0;  /* No padding */
  margin-top: 3.5rem; 
}
@media (max-width: 768px) {
  .lottie-container {
    margin-top: 0;
  }
}
.lottie-player {
  position: absolute;  /* Position it absolutely within the container */
  transform: translate(-50%, -50%);  /* Adjust for centering */
  width: 100%;  /* Full width of the container */
  height: 100%;  /* Maintain aspect ratio */
}

.overlay-text {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: var(--fs-overlay);
  font-weight: 750;
  color: black;
  text-align: center;
  text-shadow:
    0 0 3px white,
    0 0 6px white,
    0 0 9px white,
    0 0 12px white,
    0 0 15px white,
    0 0 20px white;
  padding: 1rem;
  font-family: "Nunito Sans", sans-serif; /* Use Nunito Sans font */
  z-index: 1; /* Ensure text is above the Lottie animation */
  white-space: normal;
  opacity: 0; /* Start invisible */
  animation: fadeIn 2s ease-in-out 0s forwards;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* =========================== GENERAL PAGE LAYOUT ================================== */
.gradient-line-container {
  position: relative;
  width: 100%;
  height: 24px; /* Changed from 28px to 24px */
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 1.5rem;
}

.gradient-line-container::before {
  content: '';
  position: absolute;
  width: 100%; /* Shortened by half the circle width */
  height: 24px; /* Changed from 28px to 24px */
  top: 0;
  left: 0;
  background-image: var(--gradient-line-svg);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  z-index: 1;
}

.gradient-line-container::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 24px; /* Changed from 28px to 24px */
  height: 24px; /* Changed from 28px to 24px */
  background-image: var(--gradient-circle-svg);
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 2;
}
.gradient-line-container h2 {
  margin: 0;
  flex-shrink: 0;
  font-size: var(--fs-h2);
  transform: translateY(-80%); /* Move text up by its own height */
}

/* Make sure side navbar scrolls to title of section */
h2[id] {
  scroll-margin-top: 4rem;
  font-family: Nunito Sans, sans-serif;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  width: 100%; /* Force consistent width */
}

.summary-section {
  background-color: var(--clr-abstract);
}
.info-text {
  padding-left: 1rem;
  padding-right: 1rem;
  margin: 0;
  color: white;
  font-size: calc(var(--fs-body)*0.9);
  font-family: "Nunito Sans", sans-serif; 
  font-weight: var(--fw-regular);
}
.info-text p {
  text-align: justify;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.heading-line {
  background-image: url('https://static.igem.wiki/teams/5775/images/misc/27-09-heading-line-circle-gradient-thinner.svg');
  translate: 0 -0.1rem;
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: left bottom;
  padding-bottom: calc(var(--fs-h2)*0.55);
  position: relative;
}
.sensing {
  color: var(--clr-sensing);
  text-transform: uppercase;
}
.processing {
  color: var(--clr-processing);
  text-transform: uppercase;
}
.responding {
  color: var(--clr-responding);
  text-transform: uppercase;
}
.freaky {
  color: var(--clr-freaky);
}
.dropdown-box-icon {
  transition: transform 0.5s ease;
  transform-origin: center;
}

.dropdown-box-icon.rotated {
  transform: rotateX(180deg);
}
.reference-list {
  list-style-type: none;
  padding-left: 0;
  line-height: 1.8;
}

.reference-list li {
  margin-bottom: 1rem;
  text-align: justify;
}

.reference-list a {
  color: var(--phoenics_dark_purple);
  text-decoration: none;
  word-break: break-all;
}

.reference-list a:hover {
  text-decoration: underline;
}

.reference-list em {
  font-style: italic;
}
/* ========================== TABS ================================== */
/* Tabbed Content Container */
.tabbed-content {
  margin-top: 2rem;
  position: relative;
  scroll-behavior: auto;
  margin-bottom: 2rem;
}

.tab-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 0 0.5%;
  column-gap: 6px;
  row-gap: 0.1rem;
  width: 100%;
  margin-bottom: 1rem;
}

.tab-nav-2 {
  grid-template-columns: repeat(2, 1fr);
}

.tab-nav-3 {
  grid-template-columns: repeat(3, 1fr);
}

.tab-nav-4 {
  grid-template-columns: repeat(2, 1fr);
}

.tab-nav-5 {
  grid-template-columns: repeat(6, 1fr); /* LCM of 2 and 3 */
}

.tab-nav-5 .ec-tab-container:nth-child(-n+3) {
  grid-column: span 3; /* First 2 tabs each span 3 columns (2x3=6) */
}

.tab-nav-5 .ec-tab-container:nth-child(n+4) {
  grid-column: span 2; /* Last 3 tabs each span 2 columns (3x2=6) */
}

.tab-nav-6 {
  grid-template-columns: repeat(3, 1fr);
}

.tab-nav-7 {
  grid-template-columns: repeat(12, 1fr); /* LCM of 3 and 4 */
}

.tab-nav-7 .ec-tab-container:nth-child(-n+4) {
  grid-column: span 4; /* First 3 tabs each span 4 columns (3x4=12) */
}

.tab-nav-7 .ec-tab-container:nth-child(n+5) {
  grid-column: span 3; /* Last 4 tabs each span 3 columns (4x3=12) */
}

/* Content Box */
.content-box {
  display: none;
  background-color: var(--clr-focus);
  border-radius: 10px;
  margin-top: 0.5rem;
  width: 100%;
  max-height: 80vh;
  padding: 1rem;
  text-align: justify;
  font-family: Nunito Sans, sans-serif; /* Use Nunito Sans font */
  font-weight: var(--fw-regular); /* Nunito Sans weight 400 */
  font-size: var(--fs-body);
  height: 45rem;
}

.scroll-container {
  padding-right: 1rem;
  padding-bottom: 1rem;
  overflow-y:auto;
  height: 100%;
}

.content-box img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  transform: translateZ(0);
  border-radius: 10px;
  margin-bottom: 2rem;
  margin-top: 1rem;
}

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

/* New Tab Styles */
.ec-tab-container {
  --dot-size: 18px;
  --line-height: 3px;
  --title-padding: 2px;
  --title-fs: 0.9rem;
  --title-lh: 1.2;
  --left-indent: 0.2rem;
  width: 100%;
  display: inline-block;
  /* background-color: rgba(255, 0, 0, 0.2); */
}

@media (min-width: 768px) {
  .ec-tab-container {
    --dot-size: 24px;
    --line-height: 4px;
    --title-padding: 3px;
    --title-fs: 1.1rem;
    --left-indent: 0.8rem;
  }
}

@media (min-width: 1024px) {
  .ec-tab-container {
    --dot-size: 24px;
    --line-height: 4px;
    --title-padding: 3px;
    --title-fs: 1.3rem;
    --left-indent: 1rem;
  }
}

.ec-tab-content {
  width: 100%;
  cursor: pointer;
  position: relative;
  padding-top:  calc(var(--title-fs) * var(--title-lh) + 2 * var(--line-height) + 2 * var(--title-padding) - var(--dot-size));
  transition: transform 0.2s ease;
}

.ec-tab-title {
  position: absolute;
  line-height: var(--title-lh);
  top: 0;
  left: var(--left-indent);
  font-size: var(--title-fs);
  padding-left: calc(var(--title-padding) * 2);
  font-weight: 600;
  color: #D7D7D7;
  transition: color 0.3s ease;
  /* background-color: rgba(0, 255, 0, 0.2); */
}

.ec-tab-container.active .ec-tab-title {
  color: var(--phoenics_bright_purple);
}

.ec-tab-underline {
  position: relative;
  width: 100%;
  height: var(--dot-size);
  display: flex;
  align-items: center;
  margin-top: var(--title-padding);
}

.ec-tab-line {
  width: calc(100% - var(--dot-size) / 2);
  height: var(--line-height);
}

.ec-tab-dot {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: var(--dot-size);
  height: var(--dot-size);
  flex-shrink: 0;
}

/* Inactive state - grey */
.ec-tab-container .ec-tab-line rect {
  fill: url(#gradient-grey);
  transition: fill 0.3s ease;
}

.ec-tab-container .ec-tab-dot circle {
  fill: #D7D7D7;
}

/* Active state - colorful */
.ec-tab-container.active .ec-tab-line rect {
  fill: url(#gradient-color);
}

.ec-tab-container.active .ec-tab-dot circle {
  fill: #FB8825;
}

.tab-navigation {
  display: none;
  /* display: flex; */
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-nav-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(90deg, #352253, #85279E, #D42BE9);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: Nunito Sans, sans-serif;
}

.tab-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(213, 43, 233, 0.3);
}

.tab-prev {
  margin-right: auto;
}

.tab-next {
  margin-left: auto;
}

/* ========================== FIGURES ================================== */

.plot-background {
  background-color: white;
  border: 1px solid var(--clr-abstract);
  border-radius: 10px;
  padding: 0.5rem 0.2rem 0.5rem 0.2rem;
}

.figure-caption {
  text-align: center;
  font-size: calc(var(--fs-body)*0.7);
  margin: 0.5rem;
  text-align: justify;
  font-family: "Nunito Sans", sans-serif; 
  font-weight: var(--fw-regular);
  color: var(--phoenics_dark_purple);
}

.abstract{
  font-size: calc(var(--fs-body)*0.9);
  font-family: "Nunito Sans", sans-serif;
  font-weight: var(--fw-regular);
  background-color: var(--clr-abstract);
  border-radius: 15px;
  padding: 1rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
  color: white;
}

.abstract-focus{
  font-family: "Nunito Sans", sans-serif;
  font-weight: var(--fw-regular);
  background-color: var(--clr-focus);
  border-radius: 15px;
  padding: 1rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
  width: 100%;
}
/* ========================== HOME PAGE ================================== */
.homepage-banner{
  align-items: center;
}

.btn-custom {
  background-color:  rgb(224, 59,255,1);
  color: white;
  border: none;
  padding: 0.6rem 0.5rem;
  font-size: 1.1rem;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

.btn-custom:hover {
  background-color: #ed7a3e; /* Orange on hover */
}


/* CALLOUT */
.bd-callout {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 }



/* ========================================= APPLICATION PAGE  ================================== */
/* Outer container */
.flip-card-application {
  width: 100%;
  perspective: 2000px;
  cursor: pointer;
  pointer-events: none;
  margin-bottom: 1rem;
}

/* Inner container that flips */
.flip-card-application-inner {
  width: 100%;
  min-height: calc(var(--fs-body)*19);
  position: relative;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  pointer-events: auto;
}

@media (max-width: 1279px) and (min-width:768px){
  .flip-card-application-inner{
    min-height: 25rem;
  }
}
@media (max-width:767px) and (min-width: 451px){
  .flip-card-application-inner{
    min-height: calc(var(--fs-body)*30);
  }
}
@media (max-width:450px){
  .flip-card-application-inner{
    min-height: calc(var(--fs-body)*37);
  }
}
.flip-card-application.flipped .flip-card-application-inner {
  transform: rotateY(-180deg);
}

/* Front and back cards */
.flip-card-application-front,
.flip-card-application-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background-color: var(--clr-body);
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.2s;
}

.flip-card-application-front {
  display: flex;
  transform: rotateY(0deg);
  padding: 0.5rem 1rem 0rem 0.5rem;
}

.flip-card-application-front img {
  max-height: 30vh;
  max-width: 60%;
  margin: auto;
  padding-bottom: 5vh;
}

.flip-card-application-back {
  transform: rotateY(-180deg);
  padding: 1rem;
  pointer-events: none; 
}
.flip-card-application.flipped .flip-card-application-back {
  pointer-events: auto;
}

/* Hover effect */
.flip-card-application:hover .flip-card-application-front,
.flip-card-application:hover .flip-card-application-back {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Scrollable content wrapper inside back card */
.back-content-wrapper {
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 1rem;
  font-size: var(--fs-body);
  line-height: 1.5;
  text-align: justify;
}

/* Front card layout */
.application-card-content-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-size: var(--fs-body);
}

.application-card-title {
  width: 100%;
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  text-align: center;
  margin: 0; /* Remove margin */
  padding: 0; /* Remove padding */
  line-height: 1.2; /* Tighter line height */
}

.application-card-subtitle {
  font-size: var(--fs-body);
  color: var(--phoenics_dark_purple);
  text-align: justify;
}
.application-card-subtitle ul {
  margin-top: 0; /* Remove top margin from list */
  padding-top: 0;
}
.flip-hint {
  position: absolute;
  bottom: 0.3rem;
  right: 0.5rem;
  font-size: 1.5rem;
  color: #666;
  opacity: 0.8;
  font-size: calc(var(--fs-body)*1.2);
}

.icon-img {
  background-color: var(--clr-focus);
  border-radius: 10px;
}

.flip-card-application-ligand-inner {
  width: 100%;
  min-height: 40vh;
  position: relative;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  pointer-events: auto;
}

.flip-card-application.flipped .flip-card-application-ligand-inner {
  transform: rotateY(-180deg);
}
/* =========================================  HUMAN PRACTICES PAGE  ================================== */
.interview-row {
  background-color: var(--clr-focus);
  border-radius: 10px;
  padding: 0.5rem;
}

.interview-network-img {
  width: 100%;
  height: auto;
  display: block;
  padding-right: 1rem;
}

.interview-card-wrapper {
  width: 100%;
  height: 100%; /* Set by JavaScript */
  background-color: white;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.interview-card {
  flex: 1;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
  padding-top: calc(var(--fs-body)*2.3);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.interview-person {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.interview-person img {
  width: 30%;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.interview-person h4 {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.interview-content {
  flex: 1;
  min-height: 0;
}

.interview-content ul {
  padding-left: 1.5rem;
  margin: 0;
}

.interview-nav-buttons {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  background-color: white;
  border-radius: 0 0 10px 10px;
  width: 100%;
}

.interview-nav-btn {
  flex: 1;
  padding: 0.5rem 1rem;
  background-color: var(--phoenics_dark_purple);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.interview-nav-btn:hover:not(:disabled) {
  opacity: 0.8;
}

.interview-nav-btn:disabled {
  opacity: 0.4;
}

@media (max-width: 992px) {
  .interview-card-wrapper {
    height: auto !important;
  }
}
.read-more-link {
  color: var(--phoenics_dark_purple);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.read-more-link:hover {
  color: var(--phoenics_medium_purple);
  transform: translateX(5px);
}

.modal-content {
  height: 90vh;
  width: 100%;
  background: white;
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  background: var(--phoenics_dark_purple);
  color: var(--phoenics_orange);
  border-radius: 15px 15px 0 0;
  border-bottom: none;
  padding: 1.5rem 2rem;
}

.modal-header .modal-title {
  font-weight: bold;
  font-size: 1.5rem;
  margin: 0;
}

.modal-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
  color: var(--phoenics_orange);
}

.modal-header .btn-close:hover {
  opacity: 1;
}

.modal-body {
  padding: 2rem;
  color: #333;
  line-height: 1.8;
  overflow-y: auto;
}

.modal-body p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-footer {
  border-top: 1px solid rgba(102, 126, 234, 0.2);
  padding: 1rem 2rem;
}

.modal-footer .btn-secondary {
  background-color: var(--phoenics_dark_purple);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.modal-footer .btn-secondary:hover {
  opacity: 0.8;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}
.model-dialog {
  max-width: 90%;
}
/* Smooth modal animation */
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
}



/* ---- Equation HotFix ---- */

 .equation-container {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 20px 0;
    min-height: 50px;
}

.equation-part {
    flex: 0 0 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 20px;
}

.equation-number {
    flex: 0 0 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1em;
    padding: 15px 10px;
}



/* ========================================= RESULTS PAGE  ================================== */
/* ========================== Interactive Cell =================================== */

.hidden {
  display: none;
}

/* SVG Container */
#svgContainer {
  width: 100%;
  padding-left: 1rem;
}

#svgContainer svg {
  width: 100%;
  height: auto;
  display: block;
  z-index: 10;
  opacity: 1;
      shape-rendering: geometricPrecision;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}


#svgContainer svg #Sensing_MESA,
#svgContainer svg #ICS_Expression,
#svgContainer svg #Output_Expression {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

/* Always show these essential elements */
#svgContainer svg #CELL,
#svgContainer svg #always_visible,
#svgContainer svg #receptor_toggle_group,
#svgContainer svg #output_toggle_group {
  opacity: 1 !important;
  pointer-events: auto !important;
}
#svgContainer svg #Sensing_GPCR,
#svgContainer svg #ICS_Secretion,
#svgContainer svg #Output_Secretion {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

#svgContainer svg #MESA_toggle_text,
#svgContainer svg #Expression_toggle_text {
  fill : #888888;
  opacity: 0.5;
}

/* Animation Card */
.animation-card {
  background-color: rgb(203, 94, 253, 0.1);
  padding: 1rem;
  border-radius: 10px;
  font-size: var(--fs-body);
  font-family: "Nunito Sans", sans-serif;
  height: 100%; /* This will match parent height */
  max-height: 100%; /* Prevent growing beyond parent */
  margin-right: 0.5rem;
  margin-left: 0.5rem;
  overflow-y: scroll;
  line-height: var(--fs-body)*1.05;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.animation-card 

.tv {
  border: var(--clr-abstract) 1px solid;
  background-color: white;
  border-radius: 10px;
  margin: 0.5rem;
  height: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0; /* Prevent shrinking */
}

/* ========================== PART COLLECTION PAGE ================================== */
.gallery-card {
  background-color: white;
  border-radius: 10px;
  aspect-ratio: 3 / 4;
  font-family: "Nunito Sans", sans-serif;
  padding: 0.3rem;
  height: 100%;
  margin-right: 0.8rem;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.card-background{
  background-image: url("https://static.igem.wiki/teams/5775/images/partcollection/pink-ohne-linie.svg");
  background-repeat: no-repeat;
  background-size: contain;      /* Scales to cover entire container */
  background-position: center;  /* Centers the image */
  height: 100%;
  justify-content: center;
  padding: 0.8rem;
  overflow-y: auto;
}

.flip-card {
  perspective: 1000px;
  height: 50%; /* Explicitly set to 50% */
  flex-shrink: 0; /* Prevent shrinking */
}

.flip-card-inner {
  border-radius: 10px;
  width: 100%;
  height: 100%; /* Fill the flip-card */
  position: relative;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  top: 0;
  left: 0;
  border-radius: 10px;
}
.flip-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.flip-card-front img {
  border-radius: 10px;
}

.flip-card-front {
  z-index: 2;
  transform: rotateY(0deg);
}

.flip-card-back {
  transform: rotateY(-180deg);
}

.gallery-card .card-content {
  font-size: calc(var(--fs-body)*0.85);
  text-align: left;
}

.gallery-card .card-title {
  font-weight: var(--fw-bold);
  margin-bottom: 0.5rem;
  font-size: calc(var(--fs-body) * 1.1);
}

.gallery-card .card-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: calc(var(--fs-body) * 0.9);
}

.gallery-card .card-list li {
  margin-bottom: 0.5rem;
}

.gallery-card .card-list li:last-child {
  margin-bottom: 0;
}
/* ========================== FOOTER  ================================== */
.footer {
  background: linear-gradient(#faf7f7, #e2d8d1);
}
/* footer links */
footer a { color: #000000; font-weight: bold; text-decoration: none; }
footer a:hover { color: #000000; text-decoration: underline; }

/* Whole row height */
.footer-top-row {
  --footer-top-row-h: 20rem;
  height: var(--footer-top-row-h);
  align-items: stretch;
  margin-bottom: 2rem;
}

/* Footer logo */

.footer-logo-container {
  padding: 1rem;
}

.footer-logo {
  max-width: 100%;
  max-height: 100%;
  width: 90%;
  height: 90%;
  object-fit: contain;
}

/* Middle column split 50/50 */
.mid-col { height: 100%; }
.mid-top,
.mid-bottom {
  flex: 0 0 50%;
  min-height: 0;
  display: flex;
}
.mid-bottom { align-items: stretch; } /* ensure child takes full height */

/* Optional card behind Stiftung logo */
.mid-top {
  background: #fff;
  border-radius: 10px;
  padding: 0.5rem;
}
.stiftung-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: auto;
  pointer-events: none;
  user-select: none;
}

/* --- Slider --- */
.logo-slider { 
  height: 100%;
  margin-top: 0.8rem;
  margin-bottom: 0rem;
}  
.logo-viewport {
  --gap: 0.8rem;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}
.logo-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--gap);
  height: 100%;
  width: 100%;        
  padding: 0;
  margin: 0;
  transition: transform 600ms ease;
  will-change: transform;
}

.logo-item {
  box-sizing: border-box;
  height: 100%;
  width: calc((100% - 2 * var(--gap)) / 3);
  flex: 0 0 calc((100% - 2 * var(--gap)) / 3);

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff;
  border-radius: 10px;
  padding: 8px;
  overflow: hidden;
}
.logo-item img {
  width: 90%;
  height: 90%;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Contact Inof */
.contact-info-container {
  padding: 1rem;
}

.contact-info {
  text-align: left;
  color: black;
}
.contact-info h4 {
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-size: 1.5rem; 
}
.contact-info p {
  margin-bottom: 0.5rem;
  line-height: 1.4;
  font-size: 1.1rem; 
}
.contact-info a {
  color: black;
  text-decoration: none;
  font-size: 1.1rem; 
}
.contact-info a:hover {
  color: var(--phoenics_bright_purple); 
  text-decoration: underline;
}

/* --- Screen size scaling footer --- */
@media (min-width: 1200px) {
  .custom-lg-flex {
    display: flex !important;
  }
  
  .custom-lg-8 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  
  .custom-lg-4 {
    flex: 0 0 25% !important; 
    max-width: 25% !important;
  }
}

@media (max-width: 1199px) and (min-width: 992px) {
  .d-none.custom-lg-flex {
    display: none !important;
  }
  
  .custom-lg-8 {
    flex: 0 0 66.666667% !important;
    max-width: 66.666667% !important;
  }
  
  .custom-lg-4 {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
  }
}

@media (max-width: 991px) {
  .footer-top-row {
    height: auto;
    align-items: stretch;
  }
  .mid-col {
    height: auto;
  }
  .mid-top,
  .mid-bottom {
    flex: 1 1 auto;
  }

  .contact-info {
    margin-top: 2rem;
  }
  .contact-info h4 {
    font-size: 1.7rem;
  }
  .contact-info p {
    font-size: 1rem;
  }
  .contact-info a {
    font-size: 1rem;
  }
  
  .custom-lg-8,
  .custom-lg-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

/* --- Bottom Row -- */

.license {
  color: black;
}

/* Social Media Icons */
.logo-box {
  position: relative;
  flex: 1;
  aspect-ratio: 1 / 1;
  border-radius: 0.5rem;
  background: rgba(var(--clr-focus_rgb), 0.15);
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.25s ease;
}
.logo-box:hover { background: rgba(var(--clr-focus_rgb), 0.35); }

.logo-box img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
  transition: opacity 0.35s ease, transform 0.25s ease;
  pointer-events: none;
}
.logo-box .logo-default { opacity: 1; }
.logo-box .logo-hover   { opacity: 0; }
.logo-box:hover .logo-default { opacity: 0; }
.logo-box:hover .logo-hover   { opacity: 1; }
.logo-box:hover img           { transform: scale(1.2); }


.social-icon {
  margin: auto;
  max-width: 60%;
  max-height: 60%;
  fill: var(--phoenics_dark_purple);
  transition: transform 0.3s ease, transform 0.25s ease;
}

.logo-box:hover .social-icon {
  transform: scale(1.2);
  fill: var(--phoenics_bright_purple);
}


/* ========================== TEAM MEMBERS PAGE ================================== */

.member-image-container {
    width: 100%;
    height: auto;
    display: block;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.member-image-container img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.member-static-wrapper {
    width: 100%;
    height: auto;
    display: none;
    justify-content: center;
    align-items: center;
}

.member-animation-wrapper {
    display: block;
    position: relative;
}

.member-animation-container {
    position: relative;
    width: 100%;
    height: 1170vh;
    /* display: none; /* remove to show */
}

.member-dot {
    position: absolute;
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 50%;
    background: transparent;
    z-index: 5;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(.2,.7,.2,1);
    transform-origin: 50% 50%;
    cursor: pointer;
}

.member-dot svg {
  vertical-align: baseline;
}

.member-dot-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; 
    height: 90%;
    display: none;
}

.member-dot.is-above {
    transform: scale(12);
}

.member-dot.is-above .member-dot-image {
    display: block;
}

.member-header-team {
    margin-top: 2rem;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    z-index: 10;
}

.member-header-advisors {
    position: absolute;
    top: 800vh;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.member-header-pi {
    position: absolute;
    top: 1095vh;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.member-header-advisors h2,
.member-header-pi h2,
.member-header-team h2 {
    font-size: 4rem;
    font-weight: 700;
    color: black;
    text-align: center;
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 1),
        0 0 10px rgba(255, 255, 255, 0.9),
        0 0 20px rgba(255, 255, 255, 0.8),
        0 0 30px rgba(255, 255, 255, 0.7),
        0 0 40px rgba(255, 255, 255, 0.6),
        0 0 50px rgba(255, 255, 255, 0.5),
        0 0 60px rgba(255, 255, 255, 0.4);
}

.member-fallback-header {
    width: 100%;
    text-align: center;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

.member-fallback-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: black;
    margin: 0;
}

.lines-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 1170vh;
    z-index: 2;
    pointer-events: none;
}

.bg-lines-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 1170vh;
    z-index: 1;
    pointer-events: none;
}

.member-bg-dot {
    position: absolute;
    width: 1.875rem;     /* same as main dots */
    height: 1.875rem;
    z-index: 1;      /* behind lines; for debugging set to 3 */
}

.member-bg-dot svg {
    width: 100%;
    height: 100%;
    display: block;
}

.member-bg-dot circle {
  vertical-align: baseline;
}

.member-container-fallback {
    display: none;
}

/* Person Info Container Styles - Updated */
.member-info-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.member-info-overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.member-info-modal {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    max-width: 50vw;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: scale(0.8) translateY(50px);
}

.member-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 1001;
    width: 2.1875rem;
    height: 2.1875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.member-close-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    color: #333;
    transform: scale(1.1);
}

.member-info-content {
    padding: 1.875rem;
}

/* Header Section with Image and Name */
.member-header {
    display: flex;
    align-items: flex-start;
    gap: 2.8rem;
    margin-bottom: 1.6rem;
    align-items: center;
}

.member-image {
    width: 11.25rem;
    height: 11.25rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.member-header-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.member-name-section {
    flex: 1;
}

.member-name {
    margin: 0 0 0.3rem 0;
    color: #333;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.member-role {
    margin: 0;
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Task Icons Section */
.member-tasks {
    display: flex;
    gap: 0.75rem;              /* Space between task boxes */
    justify-content: flex-start; /* Align the boxes to the start */
    align-items: center;     /* Center the boxes vertically */
    flex-wrap: wrap;         /* Allow wrapping of items if needed */
    max-width: 100%;         /* Ensure container doesn't overflow */
}

.task-box {
    background: linear-gradient(135deg, rgba(114, 114, 197, 0.1), rgba(65, 172, 157, 0.1));
    border: 2px solid rgba(114, 114, 197, 0.3);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #555;
    width: 4.375rem; /* Width of the square box */
    height: 4.375rem;    /* Height of the square box */
    text-align: center;
}

.task-icon {
    display: flex;
    justify-content: center; /* Center the icon horizontally */
    align-items: center;     /* Center the icon vertically */
    width: 90%;  /* Scale the icon up to 90% of the container width */
    height: 90%; /* Scale the icon up to 90% of the container height */
    overflow: hidden;
}

.task-icon img {
    width: 100%;       /* Make sure the SVG scales to the full width of its container */
    height: 100%;      /* Ensure it scales vertically to fill the container */
    object-fit: contain; /* Maintain the aspect ratio without distortion */
}

/* Information Sections */
.member-info-sections {
    display: grid;
    gap: 1.25rem;
}

.member-info-section-item {
    background: rgba(245, 245, 245, 0.8);
    border: 1px solid rgba(235, 235, 235, 0.4);
    border-radius: 0.75rem;
    padding: 0.625rem;
    backdrop-filter: blur(10px);
}

.member-info-section-item h4 {
    margin: 0 0 0.75rem 0;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.member-info-section-item p {
    margin: 0;
    color: #555;
    line-height: 1.5;
    font-size: 0.875rem;
    padding-bottom: 0.5rem;
}

/* Keyframe Animation for Bounce */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Hide all lines and dots on small screens */
@media (max-width: 1024px) {

    .member-dot, .line, .member-bg-dot, .connection-line {
        display: none !important;  /* Hide dots */
    }

    .bg-lines-container, .lines-container {
        display: none !important;
    }

    .member-animation-wrapper {
        display: none !important;
    }

    .member-static-wrapper {
        display: flex !important; /* Uncomment to show */
        flex-direction: column;
    }

    /* Two-column layout for medium screens */
    .member-container-fallback {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
        margin-left: 2rem;
        margin-right: 2rem;
    }

    /* Card resizing */
    .task-box {
        width: 100%;
        height: auto;
    }

    /* Task icon size adjustment */
    .task-icon {
        width: 80%;
        height: 80%;
    }

    .task-icon svg {
        width: 100%;
        height: 100%;
    }
    
    .member-info-content {
        padding: 1rem;
    }

    /* Show the person-info modal without animations */
    .member-info-modal {
        transform: scale(1);
        opacity: 1;
        transition: none;
        max-height: none;
        box-shadow: none;
    }

    .member-image {
        width: 7rem;
        height: 7rem;
    }
    
    .member-header {
        gap: .8rem;
        margin-bottom: .8rem;
    }

    .member-name {
        font-size: 1.3rem;
    }
    
    .member-role {
        font-size: 0.8rem;
    }
    
    .task-box {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .member-info-sections {
        gap: 0.7rem;
    }
    
    .member-info-section-item h4 {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .member-info-section-item p {
        font-size: 0.6rem;
        padding-bottom: 0;
    }

    .member-fallback-header h2 {
        text-align: center;
        font-size: 2.5rem;
    }



    /* Remove bounce animation */
    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% {
            transform: translateX(-50%) translateY(0);
        }
        40% {
            transform: translateX(-50%) translateY(-10px);
        }
        60% {
            transform: translateX(-50%) translateY(-5px);
        }
    }
}

/* For smaller screens, adjust the layout */
@media (max-width: 768px) {
    .member-dot, .line, .member-bg-dot, .connection-line {
        display: none !important;  /* Hide dots, lines */
    }

    .member-animation-wrapper {
        display: none !important;
    }

    .member-static-wrapper {
        /* display: flex !important; */ /* Uncomment to show */
        flex-direction: column;
        padding-top: 0;
    }

    /* Single column layout for small screens */
    .member-container-fallback {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 1.25rem;
        margin: 0 .4rem;
    }

    .member-info-modal {
        max-width: none;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .member-fallback-header h2 {
        font-size: 2rem;
    }

    .member-name {
        font-size: 1.5rem;
    }

    .member-info-section-item h4 {
        font-size: 0.9rem;
    }

    .member-info-section-item p {
        font-size: 0.7rem;
    }

}

.member-unofficial-title {
    margin: 0.3rem 0;
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
    font-style: italic;
}

/* Mobile adjustments */
@media (max-width: 1024px) {
    .member-unofficial-title {
        font-size: 0.7rem;
        margin: 0.2rem 0;
    }
}

@media (max-width: 768px) {
    .member-unofficial-title {
        font-size: 0.7rem;
        margin: 0.15rem 0;
    }
}

/* ========================== MODEL PAGE  ================================== */

/* --------------------- Animations  ---------------------------- */
.fading {
    animation: fade 1.5s ease-in-out infinite;
}

@keyframes fade {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }  
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-logo {
    width: 30vh;
    height: 30vh;
    margin-bottom: 10px;
    max-width: 200px;
    max-height: 200px;
}

.loading-title {
    margin: 0;
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: bold;
    color: var(--phoenics_dark_purple);
}

.loading-subtitle {
    margin: 0.5rem 0 0 0;
    font-size: clamp(0.9rem, 3vw, 1.5rem);
    font-weight: normal;
    color: var(--phoenics_dark_purple);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .loading-logo {
        width: 20vh;
        height: 20vh;
        max-width: 150px;
        max-height: 150px;
    }
}

/* --------------------- ASCII Screen Container  ---------------------------- */
.model-screen-container {
    position: absolute;
    top: 37.6474%; 
    left: 41.65%; 
    width: 16.7%; 
    height: 25.6%;
    z-index: 2;
    background: rgb(45, 45, 45);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    padding: 0.35cqw;
    container-type: size;
    container-name: ascii-screen;
}

.model-screen-container > * {
    pointer-events: auto;
}

.ascii-canvas {
    font-family: 'Courier New', monospace;
    font-size: 2.2cqw;
    line-height: 4.5cqh;
    letter-spacing: 0.1cqw;
    white-space: pre;
    color: #0f0;
    background: transparent;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-weight: bold;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------------------- Utility Classes  ---------------------------- */
.MathJax {
    pointer-events: none;
}

.equation-container {
  width: 100%;
  overflow-x: auto;
}

.gdf15-traj,
.static-test {
    height: 60vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.table-scroll-x {
  width: 100%;
  overflow-x: auto;          /* enables horizontal scroll */
  -webkit-overflow-scrolling: touch; /* smooth on iOS */
}

.model-ga {
  width: 80%;
  margin: 2rem auto;
  position: relative;
}

.model-ga-header p {
  margin-top: 5rem;
  font-size: calc(var(--fs-body)*1.2);
  font-family: "Nunito Sans", sans-serif;
  font-weight: calc(var(--fw-regular)*1.2);
}

@media (max-width: 768px) {
  .model-ga {
    width: 95%;
    margin: 2rem auto;    /* reduce margin on smaller screens */
  }
  .model-ga-header p {
    margin-top: 2rem;
  }
}

.ga-graphic {
  display: block;
  width: 100%;
  height: auto;
}

/* --- Model References */
.model-references {
    list-style-type: none; /* Removes bullets from all list items */
}

.model-references li {
    margin-bottom: 0.7rem; /* Space between references */
    line-height: 1.4; /* Improve readability */
    font-size: var(--fs-ref); /* Consistent font size */
}

/* --- Model Abstract */
.model-abstract {
  font-size: calc(var(--fs-body)*0.9);
  font-family: "Nunito Sans", sans-serif;
  font-weight: var(--fw-regular);
  background-color: var(--clr-abstract);
  border-radius: 20px;
  padding: 1.5rem;
  color: white;
  text-align: justify;
  display: flex;
  flex-direction: column;
}

.model-abstract h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.model-abstract p {
  margin: 0;
}

.model-abstract-container {
  display: flex;
  gap: 1rem;
  width: 100%;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}

.model-abstract-col {
  flex: 1;
  min-width: 0;
  display: flex;
}

.info-text-narrow {
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (max-width: 991px) {
  .model-abstract-container {
    flex-direction: column;
    align-items: center;
  }
  
  .model-abstract-col {
    width: 100%;
    max-width: 500px; /* Adjust this value to control width on mobile */
  }

  .model-abstract h4 {
    min-height: auto;
    font-size: 1rem;
  }
}


.model-summary {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.model-summary-col {
    flex: 1;
}

.model-summary-col p {
    font-size: 1rem;
    margin: 0;
    text-align: justify;
}

/* Mobile: stack columns */
@media (max-width: 991px) {
    .model-summary {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1.5rem;
    }
}


.model-summary {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.model-summary-col {
    flex: 1;
    color: white;
    font-size: calc(var(--fs-body)*0.8);
    font-family: "Nunito Sans", sans-serif;
    font-weight: var(--fw-regular);
}

.model-summary-col p {
    margin: 0.5rem 0;
    text-align: justify;
}

/* Mobile: stack columns */
@media (max-width: 991px) {
    .model-summary {
        flex-direction: column;
        gap: 2rem;
        padding: 0 1.5rem;
    }
}

/* --------------------- Model List Styling  ---------------------------- */

.model-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.model-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.model-list li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: var(--phoenics_orange); /* or any color you prefer */
    font-size: 1.2rem;
}

.model-list li strong {
    color: var(--clr-processing); /* optional: make headers stand out */
}
/* ------ FIGURE CONTAINERS ------ */

/* --------------------- Standard Centered Figure  ---------------------------- */
.model-fig {
    width: 100%;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--clr-abstract);
}

.model-fig-im {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.model-fig-im img {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
}

.model-fig .figure-caption {
    text-align: justify;
}

/* ------ width variants ------ */
.model-fig-w90 {
    width: 90%;
}
.model-fig-w80 {
    width: 80%;
}
.model-fig-w70 {
    width: 70%;
}
.model-fig-w60 {
    width: 60%;
}
/* --------------------- Multi-Panel Figure  ---------------------------- */
.model-fig-multi {
    width: 100%;
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--clr-abstract);
}

.model-fig-multi .figure-caption {
    text-align: justify;
}

.model-fig-multi .row {
    margin: 0;
}

.model-fig-panel {
    position: relative;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.model-fig-panel-video::before,
.model-fig-panel-image::before {
    content: "";
    display: block;
    padding-bottom: 56.25%; /* 16:9 */
}

.model-fig-panel > *:not(.binder-panel-label) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.model-fig-panel img {
    object-fit: contain;
}

/* --------------------- Floating Figure with Text Wrapping  ---------------------------- */
.model-fig-wrap {
    overflow: auto;
}

.model-fig-wrap::after {
    content: "";
    display: table;
    clear: both;
}

.model-fig-float-left,
.model-fig-float-right {
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: table;
}

.model-fig-float-right {
    float: right;
    margin-left: 2.5rem;
}

.model-fig-float-left {
    float: left;
    margin-right: 2.5rem;
}

.model-fig-float-left .model-fig-im-float,
.model-fig-float-right .model-fig-im-float {
    display: block;
    line-height: 0;
}

.model-fig-float-left .model-fig-im-float img,
.model-fig-float-right .model-fig-im-float img {
    display: block;
    max-height: 600px;
    width: auto;
    height: auto;
}

.model-fig-float-left .figure-caption-float,
.model-fig-float-right .figure-caption-float {
    text-align: justify;
    margin: 0;
    display: block;
    word-wrap: break-word;
}

#receptor-curves .model-fig-float-left,
#receptor-curves .model-fig-float-right {
    width: 40%;
}

/* --------------------- Dropdown Figure  ---------------------------- */
.model-dd-fig {
    width: 90%;
    background-color: white;
    padding: 2rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.model-dd-fig img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

.model-dd-fig hr {
    width: 100%;
    margin: 1rem 0;
}

.model-dd-fig .figure-caption {
    width: 100%;
    text-align: justify;
    margin: 0;
}

/* ------ BINDER FIGURES ------ */

.binder-fig {
    width: 100%;
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--clr-abstract);
  }

@media (min-width: 1800px) {
    .binder-fig {
        width: 80%;
    }
}

/* --------------------- Standard Binder Panels  ---------------------------- */
.binder-panel {
    position: relative;
    background-color: transparent;
    min-height: 15rem;
    border: none !important;
}

.binder-panel-label {
    position: absolute;
    top: 5%;
    left: 5%;
    font-weight: bold;
    color: black;
    z-index: 50;
    margin: 0;
}

.binder-panel .traj-viewer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    box-shadow: none;
    border: none;
}

.binder-panel .click-to-load {
    z-index: 15;
}

.binder-panel-a,
.binder-panel-b,
.binder-panel-c,
.binder-panel-d {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --------------------- Vertical Binder Panels  ---------------------------- */
.binder-panel-vertical {
    position: relative;
    background-color: transparent;
    border: none !important;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.binder-panel-vertical .binder-panel-label {
    top: 2%;
    left: 1%;
    font-size: 1.5rem;
}

.binder-panel-vertical .label-small {
    left: 2%;
    font-size: 1rem;
}

/* Only panel A gets the aspect ratio */
.binder-panel-vertical-a::before {
    content: "";
    display: block;
    padding-bottom: 35%;
}

/* Panel A content positioning */
.binder-panel-vertical-a > *:not(.binder-panel-label) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Panels B and C - no aspect ratio, just full-width images */
.binder-panel-vertical-b::before,
.binder-panel-vertical-c::before {
    display: none;
}

.binder-panel-vertical-b img,
.binder-panel-vertical-c img {
    width: 100%;
    height: auto;
    display: block;
    position: static;
}

.binder-panel-vertical .traj-viewer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    box-shadow: none;
    border: none;
}

.binder-panel-vertical .click-to-load {
    z-index: 15;
}

/* --------------------- Video/Image Panels  ---------------------------- */
.binder-panel-video,
.binder-panel-image {
    position: relative;
    background-color: transparent;
    border: none !important;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.binder-panel-video::before,
.binder-panel-image::before {
    content: "";
    display: block;
    padding-bottom: 56.25%; /* 16:9 */
}

.binder-panel-video > *:not(.binder-panel-label),
.binder-panel-image > *:not(.binder-panel-label) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --------------------- Trajectory Containers  ---------------------------- */
.traj-gdf15b2 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

/* --------------------- Hill Workflow  ---------------------------- */
.hill-workflow .img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
}

/* ------ TRAJECTORY VIEWER ------ */

.traj-viewer {
    position: relative;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin: 20px 0;
    cursor: pointer;
}

.traj-viewer.loaded {
    cursor: default;
}

.traj-viewer .viewport {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* --------------------- Click to Load  ---------------------------- */
.traj-viewer .click-to-load {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: lightgray;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 48px;
    z-index: 10;
    transition: background 0.3s ease;
}

.traj-viewer:hover .click-to-load {
    background: whitesmoke;
}

.traj-viewer .click-to-load .click-text {
    text-align: center;
    opacity: 0.9;
}

/* --------------------- Controls Overlay  ---------------------------- */
.traj-viewer .controls-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    padding: 20px 15px 15px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between; 
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.traj-viewer:hover .controls-overlay {
    opacity: 1;
}

.traj-viewer .control-button,
.traj-viewer .center-button {
    background: rgba(200, 200, 200, 0.7);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: white;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    backdrop-filter: blur(5px);
}

.traj-viewer .control-button {
    padding: 6px;
}

.traj-viewer .control-button:hover,
.traj-viewer .center-button:hover {
    background: rgba(200,200,200,0.3);
    transform: scale(1.05);
}

.traj-viewer .control-button:active, 
.traj-viewer .center-button:active {
    transform: scale(0.95);
}

.traj-viewer .control-button img, 
.traj-viewer .center-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 90%;
    max-height: 90%;
}

.traj-viewer .debug-button {
    display: none;
}

/* --------------------- Slider  ---------------------------- */
.traj-viewer .slider-container {
    flex: 1;
    margin: 0 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.traj-viewer .frame-slider {
    flex: 1;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: rgba(200,200,200,0.3);
    border-radius: 2px;
    outline: none;
}

.traj-viewer .frame-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--phoenics_grey);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.traj-viewer .frame-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.traj-viewer .frame-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--phoenics_grey);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.traj-viewer .frame-info {
    color: rgba(80,80,80,0.9);
    font-size: 16px;
    width: 140px;
    text-align: center;
    background: rgba(200,200,200,0.7);
    padding: 4px 8px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
    flex-shrink: 0;
    white-space: nowrap;
}

/* --------------------- Loading Overlay  ---------------------------- */
.traj-viewer .loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(100,100,100,1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    z-index: 10;
}

.traj-viewer .loading-spinner {
    width: 5cqw;
    height: 5cqw;
    border: 4px solid rgba(255,255,255,0.3);
    border-left: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

/* ------ PLOT GENERATOR ------ */

.plot-generator {
    width: 100%;
    max-width: 100%;
    min-height: 50vh;
    overflow: hidden;
    background-color: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.plot-generator .row {
    margin-left: 0;
    margin-right: 0;
    flex: 1;
    display: flex;
    align-items: stretch;
}

.plot-generator [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
}

.generator-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.generator-plot {
    display: flex;
    flex-direction: column;
}

#plotly_plot {
    width: 100%;
    flex: 1;
    min-height: 400px;
    border-radius: 10px;
    border: none !important;
}

#calcBtn {
    background-color: var(--phoenics_bright_purple);
    border: none;
}

/* ------ PREET SHIT ------ */
.table-binder {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    margin-top: 20px;
}

.table-binder th {
    background-color: white;
    color: black;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    border-top: 3px solid black;
    border-bottom: 2px solid black;
    font-size: 14px;
}
.table-binder td {
    padding: 12px;
    text-align: center;
    border: none;
    white-space: nowrap;
    font-size: 12px;
}
.tbody-binder tr {
    border-bottom: 1px solid #ddd;
}
.tbody-binder tr:last-child {
    border-bottom: 3px solid black;
}
.binder-col {
    font-weight: bold;
    text-align: left;
    padding-left: 20px;
}
@media screen and (max-width: 768px) {
    table {
        font-size: 14px;
    }
    th, td {
        padding: 8px;
    }
    .table-title {
        font-size: 16px;
    }
}
.table-fig-binder {
    background-color: white;
}

.assumptions-box {
    display: flow-root; /* Hidden by default */
    background-color: var(--clr-focus);
    border-radius: 10px;
    margin-top: 0.5rem;
    width: 100%;
    padding: 1rem 1rem 0.5rem 1rem;
    text-align: justify;
    font-family: "Nunito Sans", sans-serif; /* Use Nunito Sans font */
    font-weight: var(--fw-regular);
    font-size: calc(var(--fs-body)*1); /* Slightly smaller font size */
    overflow: auto;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 991px) {
    .model-fig-float-left,
    .model-fig-float-right {
        float: none;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        display: block;
    }

    .model-fig {
      width: 95%;
    }

    .model-fig-float-left .model-fig-im-float img,
    .model-fig-float-right .model-fig-im-float img {
        width: 100%;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .plot-generator {
        min-height: auto;
    }
    
    .plot-generator .row {
        flex-direction: column;
    }
    
    .generator-controls {
        order: 1;
        margin-bottom: 1rem;
    }
    
    .generator-plot {
        order: 2;
    }
    
    .generator-dd-section {
        margin-bottom: 0.75rem !important;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
    
    .form-select {
        font-size: 0.9rem;
        padding: 0.375rem 0.5rem;
    }
    
    #plotly_plot {
        min-height: 300px;
    }
}

@media (max-width: 600px) {
    .traj-viewer .click-to-load {
        font-size: 20px;
        margin-bottom: 5px;
    }
}

/* ========================== EDUCATION PAGE ================================== */

/* ========================================= EDUCATION PAGE  ================================== */
/* ========================== Quotes =================================== */

/* Container für die Zitat-Boxen */

/* Jede Quote-Box als Flex-Container */
.quote-box {
  display: flex;
  align-items: center;        /* Bild und Text vertikal zentrieren */
  background-color: #F0E5F5;  /* Hintergrundfarbe */
  padding: 1.25rem;           /* ~20px */
  border-radius: 0.625rem;    /* ~10px */
  width: 100%;                /* Ganze Breite */
  font-size: var(--fs-body);  /* Schriftgröße wie im restlichen Text */
  line-height: 1.5;
  color: #333;
  gap: 1.5rem;                /* Abstand Bild–Text */
  margin-bottom: 1.5rem;      /* Abstand zwischen Boxen */
}

/* Bild der Person */
.quote-box .quote-image {
  flex-shrink: 0;             /* Bild schrumpft nicht */
}

.quote-box .quote-image img {
  width: 7.5rem;              /* ~120px */
  height: 7.5rem;
  border-radius: 50%;         /* rundes Bild */
  object-fit: cover;          /* kein Verzerren */
}

/* Textbereich */
.quote-box .quote-text {
  flex: 1;
  font-size: var(--fs-body);
  color: #333;
  font-style: italic;
  line-height: 1.6;
}

.quote-box .quote-text p {
  margin: 0;
  padding: 0.7rem;
  text-align: justify;
}

/* Alternierend: jedes gerade Element umdrehen */
.quote-box:nth-child(even) {
  flex-direction: row-reverse;  
}
/* Quote box without image */
.quote-box.no-image {
  justify-content: center;
  text-align: center;
  background-color: #F0E5F5; /* Lila Hintergrund */
  padding: 1.5rem;
  border-radius: 0.625rem;
  width: 100%;
  margin: 1.5rem 0;
}

.quote-box.no-image .quote-text {
  font-style: italic;
  color: #333;
  font-size: var(--fs-body);
  line-height: 1.6;
}


/* Mehrere Gesichter untereinander */
.quote-box .quote-image-group.vertical {
  display: flex;
  flex-direction: column;   /* vertikal statt horizontal */
  gap: 1rem;                /* Abstand zwischen den Bildern */
  align-items: center;      /* zentriert in der Spalte */
  flex-shrink: 0;
}

.quote-box .quote-image-group.vertical img {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
}

/* Edu Board */
.edu-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
}
/* Common panel styles */
.edu-panel {
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 0.75rem 2rem rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
}
/* Orange Panel (left) */
.edu-panel--orange {
  background: #FFF4E6;
}
.edu-panel--orange .edu-panel__title {
  background: linear-gradient(135deg, #ED7A3E, #F6971F);
  color: black;
  border-radius: 0.875rem;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.6;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1rem 0;
  padding: 0.75rem 1rem;
}
.edu-panel--orange .edu-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 1rem;
  align-items: stretch;
  grid-auto-rows: 5rem;
  flex: 1;
}
.edu-panel--orange .edu-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #F6971F, #FFB84D);
  color: #2C1810;
  padding: 0.9rem 1.1rem;
  border-radius: 0.875rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.08);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  height: 100%;
}
/* Purple Panel (right) */
.edu-panel--purple {
  background: #F0E5F5;
}
.edu-panel--purple .edu-panel__title {
  background: linear-gradient(135deg, rgba(53, 34, 83, 0.95), rgba(61, 38, 82, 0.95));
  color: white;
  border-radius: 0.875rem;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.6;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1rem 0;
  padding: 0.75rem 1rem;
}
.edu-panel--purple .edu-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  padding: 1rem;
  align-items: stretch;
  grid-auto-rows: 5rem;
  flex: 1;
}
.edu-panel--purple .edu-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #8B5FA8, #B088C7);
  color: white;
  padding: 0.9rem 1.1rem;
  border-radius: 0.875rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.08);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  height: 100%;
}
/* Hover effects */
.edu-panel__title:hover {
  transform: scale(1.02);
  cursor: pointer;
  transition: all 0.3s ease;
}
.edu-panel__title a {
  color: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
}
/* Responsive */
@media (max-width: 56rem) {
  .edu-board {
    grid-template-columns: 1fr;
  }
  .edu-panel--orange .edu-panel__title,
  .edu-panel--purple .edu-panel__title {
    min-height: auto;
  }
}
@media (max-width: 36rem) {
  .edu-panel--orange .edu-panel__grid,
  .edu-panel--purple .edu-panel__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 1rem;
    padding: 0.5rem;
  }
}

/*-------------- */

.network-svg {
  position: relative;
}

.network-svg object {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Network popup styles */
.network-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.network-popup.hidden {
  display: none;
}

.network-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.network-popup-content {
  overflow-y: auto;
  position: relative;
  max-width: 900px;
  max-height: 90vh;
  margin: 40px auto;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.network-popup-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--clr-focus);
  border-radius: 15px;
  z-index: -1;
}

.network-popup-header {
  margin: 1.5rem;
  background: var(--phoenics_dark_purple);
  padding: 0; 
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-radius: 15px;
  position: relative;
  min-height: fit-content;
}

.network-popup-avatar {
  flex-shrink: 0;
  width: auto;
  height: auto;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.5);
  background: white;
  margin: 10px 0 10px 10px;
}

.network-popup-avatar img {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.network-popup-title {
  color: var(--phoenics_orange);
  font-size: 22px;
  font-weight: bold;
  margin: 0;
  line-height: 1.3;
  flex: 1;
  text-align: left; /* Center the text */
}

.network-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0; /* Remove margin since you're using top/right positioning */
  z-index: 10; /* Ensure it stays above other content */
}

.network-popup-close:hover {
  background: white;
}

.network-popup-body {
  padding: 20px 40px;
  overflow-y: auto;
  color: #000;
}

.network-popup-body h3 {
  font-size: 20px;
  font-weight: bold;
  margin-top: 2px;
  margin-bottom: 10px;
  color: #000;
}

.network-popup-body h3:first-child {
  margin-top: 0;
}

.network-popup-body ul {
  margin: 0 0 20px 0;
  padding-left: 20px;
}

.network-popup-body li {
  font-size: 18px;
  margin-bottom: 12px;
  line-height: 1.2;
  text-align: justify;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .network-popup-content {
    margin: 20px;
    max-height: 90vh;
  }
  
  .network-popup-header {
    flex-wrap: wrap;
    padding: 25px 20px;
    gap: 15px;
  }
  
  .network-popup-avatar {
    width: 70px;
    height: 70px;
    order: 1;
  }
  
  .network-popup-close {
    width: 70px;
    height: 70px;
    font-size: 24px;
    order: 3;
  }
  
  .network-popup-title {
    font-size: 18px;
    order: 2;
    flex-basis: calc(100% - 155px);
  }
  
  .network-popup-body {
    padding: 25px 20px;
  }
}

.speakers-roster {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0.5rem;
}

.speakers-roster img {
  width: 100%;
  height: auto;
  margin: 0 0.5rem;
}

.panel-discussion-panel {
  padding: 1rem 0.5rem;
}

.panel-text-panel {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  border-radius: 20px;
  background: var(--clr-focus);
}

#row-video-poster > [class*="col"] {
  display: flex;
  align-items: center;
}

.panel-video-panel,
.panel-poster-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9; /* Force both containers to same aspect ratio */
}

.panel-video-panel iframe,
.panel-poster-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Scales down to fit, adds letterboxing if needed */
}

.panel-bridge object{
  width: 100%;
  height: auto;
}

.panel-bridge-svg {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.panel-bridge-text-box {
  background: var(--clr-focus), white;
  border-radius: 15px;
  padding: 30px;
  min-height: 200px;
  transition: all 0.3s ease;
}

.panel-bridge-text-content h3 {
  color: var(--phoenics_dark_purple);
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: bold;
}

.panel-bridge-text-content p {
  color: #333;
  line-height: 1.6;
  margin: 0;
}

.network-overview {
  width: 100%;
  height: 100%;
  max-width: 100%;
}

.school-ws-content{
  overflow-y: auto;
  max-height: 100%;
  padding-right: 15px;
}

/* Card look */
.abstract.ws-card {
  background-color: var(--clr-focus);
  border-radius: 15px;
  color: black;
}

/* Make the image fill the Bootstrap ratio box nicely */
.abstract.ws-card .ratio > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile first: cards just grow to fit content, no internal scroll */
@media (max-width: 575.98px) {
  .abstract.ws-card {
    display: flex;            /* ensures children are contained by the card */
    flex-direction: column;
    height: auto;             /* grow to fit all content */
    min-height: 0;            /* guard for flex overflow math */
  }

  .pipette-img {
    display: none;
  }

  .abstract.ws-card > h4,
  .abstract.ws-card > h5,
  .abstract.ws-card .ratio,
  .abstract.ws-card .school-ws-content {
    flex: 0 0 auto;           /* nothing is forced to shrink/scroll */
  }

  .abstract.ws-card .school-ws-content {
    overflow: visible;        /* no scroll on mobile */
  }
}

/* Tablet & up: constrain card height so only text scrolls (prevents pushing next section) */
@media (min-width: 576px) {
  .abstract.ws-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    /* pick a height that suits your design */
    height: var(--ws-card-height, 520px);
  }

  .abstract.ws-card > h4,
  .abstract.ws-card > h5,
  .abstract.ws-card .ratio {
    flex: 0 0 auto;           /* headers + image are fixed-height blocks */
  }

  .abstract.ws-card .school-ws-content {
    flex: 1 1 auto;           /* take remaining space */
    min-height: 0;            /* required for proper overflow in flex containers */
    overflow: auto;           /* scroll only this area when content is long */
  }
}

/* Full-width wrapper with background */
.gallery {
  width: 90%;
  background-color: var(--clr-focus);
  border-radius: 10px;
  padding: 20px;
  display: block; /* ensure it spans full width */
}

/* Let the inner container also span full width */
.gallery-container {
  width: 100%;
  margin: 0;
  padding: 0;
  /* Remove max-width constraints so it can truly be full width */
}

/* Make each image fill its ratio box and have rounded corners */
.tile > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: .5rem; /* similar to Bootstrap .rounded */
}

.carousel-container {
  width: 100%;
  padding: 0 auto;
  overflow: hidden;
  position: relative;
  cursor: grab;
  background: transparent;
  margin-bottom: 30px;
}

.carousel-container:active {
  cursor: grabbing;
}

/* Define different heights for different carousels */
#carousel-1 {
  height: 120px;
}

#carousel-2 {
  height: 250px;
}

.carousel-track {
  display: flex;
  height: 100%;
  position: relative;
  will-change: transform;
}

.carousel-track img {
  height: 100%;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
  user-select: none;
  pointer-events: none;
  margin-right: 10px;
  border-radius: 10px;
}

#roadmap-collage {
  width: 100%;
  background: transparent;
}

#roadmap-collage .container-80 {
  width: 80%;
  margin-inline: auto;  
}

#roadmap-collage .g-custom {
  --bs-gutter-x: 2rem;  
  --bs-gutter-y: 2rem; 
}

#roadmap-collage .a4-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 210 / 297;
  border-radius: 8px;
  margin: 0.5rem 0;
}

#roadmap-collage .a4-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 575.98px) {
  #roadmap-collage .container-80 {
    width: 90%;
  }
}

.roadmap-pdf-reader {
  display: flex;
  justify-content: center;   /* horizontally center */
  /* align-items: center;    /* add this if you also want vertical centering inside a fixed-height parent */
}

.roadmap-pdf-reader .pdf-frame {
  width: 95%;
  height: 70vh;;
  border: 0;
}

/* Optional: make it friendlier on small screens */
@media (max-width: 575.98px) {
  .pdf-frame { width: 100%; height: 70vh; }
}

.ed-gallery-container {
    max-width: 100%; /* Changed from 1200px to 90% */
    margin: 0 auto;
    padding: 60px 20px;
    overflow: hidden;
}   

    .ed-gallery-track {
      position: relative;
      min-height: 400px;
      display: flex;
      align-items: center;
      justify-content: center;
      max-width: 100%;
    }

    .ed-gallery-item {
      position: absolute;
      left: 50%;
      transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
      cursor: pointer;
    }

    .ed-gallery-item img {
      display: block;
      max-height: 300px;
      max-width: 400px;
      width: auto;
      height: auto;
      object-fit: contain;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      user-select: none;
    }

    /* Side images - smaller and faded */
    .ed-gallery-item.ed-side-left {
      opacity: 0.5;
      transform: translateX(-450px) scale(0.85);
    }

    .ed-gallery-item.ed-side-left:hover {
      opacity: 0.75;
      transform: translateX(-450px) scale(0.9);
    }

    .ed-gallery-item.ed-side-right {
      opacity: 0.5;
      transform: translateX(-50px) scale(0.85);
    }

    .ed-gallery-item.ed-side-right:hover {
      opacity: 0.75;
      transform: translateX(-50px) scale(0.9);
    }

    /* Center image - larger and prominent */
    .ed-gallery-item.ed-center {
      opacity: 1;
      transform: translateX(-250px) scale(1.15);
      z-index: 10;
    }

    .ed-gallery-item.ed-center img {
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }

    /* Hidden items */
    .ed-gallery-item.ed-hidden {
      opacity: 0;
      transform: scale(0.7);
      pointer-events: none;
    }

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

    .ed-lightbox.ed-active {
      opacity: 1;
      visibility: visible;
    }

    .ed-lightbox-content {
      max-width: 90%;
      max-height: 90%;
      position: relative;
    }

    .ed-lightbox-content img {
      max-width: 100%;
      max-height: 90vh;
      object-fit: contain;
      border-radius: 8px;
      box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    }

    .ed-lightbox-close {
      position: fixed;
      top: 20px;
      right: 20px;
      width: 50px;
      height: 50px;
      background: rgba(255, 255, 255, 0.9);
      border: none;
      border-radius: 50%;
      font-size: 24px;
      font-weight: bold;
      cursor: pointer;
      color: #333;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1002;
      transition: all 0.2s ease;
    }

    .ed-lightbox-close:hover {
      background: white;
      transform: scale(1.1);
    }


/* ========================================= TOBIL CHANGES  ================================== */

.content-split-box {
  display: flex;
  align-items: center;
  background-color: #F0E5F5;
  padding: 1.25rem;
  border-radius: 0.625rem;
  width: 100%;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: #333;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.content-split-text {
  flex: 1;
  display: flex;
  align-items: center;
}

.content-split-text ul {
  list-style-type: disc;
  text-align: left;
  margin: 0;
  padding-left: 20px;
  width: 100%;
}

.content-split-text ul li {
  margin-bottom: 0.5rem;
}

.content-split-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Works for both regular images and SVGs */
.content-split-image img,
.content-split-image svg {
  max-width: 100%;
  height: auto;
  border-radius: 0.625rem;
}

@media (max-width: 768px) {
  .content-split-box {
    flex-direction: column;
  }
}



/* Bullet points with image layout IdeaCompetition */
.image-box-ideacomp {
  aspect-ratio: 16 / 9; /* or 1 / 1 for square */
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-box-ideacomp img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.content-split-box {
  display: flex;
  align-items: center;
  background-color: #F0E5F5;
  padding: 1.25rem;
  border-radius: 0.625rem;
  width: 100%;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: #333;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.content-split-text {
  flex: 1;
  display: flex;
  align-items: center;
}

.content-split-text ul {
  list-style-type: disc;
  text-align: left;
  margin: 0;
  padding-left: 20px;
  width: 100%;
}

.content-split-text ul li {
  margin-bottom: 0.5rem;
}

.content-split-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Works for both regular images and SVGs */
.content-split-image img,
.content-split-image svg {
  max-width: 100%;
  height: auto;
  border-radius: 0.625rem;
}

@media (max-width: 768px) {
  .content-split-box {
    flex-direction: column;
  }
}



/* Bullet points with image layout IdeaCompetition */
.image-box-ideacomp {
  aspect-ratio: 16 / 9; /* or 1 / 1 for square */
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-box-ideacomp img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}


/* Raoul quote box without background - layout only */
.raoul-quote-layout {
  display: flex;
  align-items: center;
  padding: 1.25rem 0;
  width: 100%;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: #333;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.raoul-quote-layout .raoul-quote-image {
  flex-shrink: 0;
}

.raoul-quote-layout .raoul-quote-image img {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.raoul-quote-layout .raoul-quote-text {
  flex: 1;
  font-size: var(--fs-body);
  color: #333;
  line-height: 1.6;
}

.raoul-quote-layout .raoul-quote-text p {
  margin: 0;
  padding: 0.7rem 0;
  text-align: justify;
}

.raoul-quote-layout:nth-child(even) {
  flex-direction: row-reverse;
}


/* Icon circles for Summer School section icons */
.icon-circle-summer {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, rgba(53, 34, 83, 0.95), rgba(61, 38, 82, 0.95));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18%;  /* Changed from 20% to make icons bigger */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin: 0 auto; /* Center the circle horizontally */
}

.icon-circle-summer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* Icon labels with Nunito Sans */
.icon-label-summer {
  font-family: "Nunito Sans", sans-serif;
  font-weight: var(--fw-bold);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-align: center;
  width: 100%;
  display: block;
}

/* Make icon circles summer clickable */
.icon-link-summer-wrapper {
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.icon-link-summer-wrapper:hover {
  transform: translateY(-5px);
  opacity: 0.85;
}

.icon-link-summer-wrapper:hover .icon-circle-summer {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}



/* Friday Lecture Carousel Improvements */
#lectureCarousel .carousel-item {
  min-height: 650px;
}

#lectureCarousel .carousel-inner {
  padding-bottom: 60px;
}

#lectureCarousel .lecture-content-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 650px;
  background-color: var(--clr-focus);
  border-radius: 15px;
  padding: 1.5rem;
}

#lectureCarousel .lecture-top-content {
  flex: 0 0 auto;
}

#lectureCarousel .lecture-middle-content {
  flex: 0 0 auto;
  margin-top: 1.5rem;
}

#lectureCarousel .lecture-button-wrapper {
  flex: 1 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 1.5rem;
}

/* Updated button styling */
#lectureCarousel .btn {
  background-color: var(--clr-abstract) !important;
  color: white !important;
  border: none !important;
  padding: 0.75rem 2.5rem;
  font-weight: 600;
  font-family: "Nunito Sans", sans-serif !important;
  border-radius: 10px;
  transition: all 0.3s ease;
}

#lectureCarousel .btn:hover {
  background-color: var(--phoenics_yellow) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(246, 151, 31, 0.4);
}

/* Custom arrow styling with visible arrows inside */
#lectureCarousel .carousel-control-prev,
#lectureCarousel .carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--phoenics_bright_purple), var(--phoenics_orange));
  border-radius: 50%;
  opacity: 0.9;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lectureCarousel .carousel-control-prev {
  left: -10px;
}

#lectureCarousel .carousel-control-next {
  right: -10px;
}

#lectureCarousel .carousel-control-prev:hover,
#lectureCarousel .carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 6px 20px rgba(212, 43, 233, 0.5);
}

/* Hide default Bootstrap icons */
#lectureCarousel .carousel-control-prev-icon,
#lectureCarousel .carousel-control-next-icon {
  display: none;
}

/* Create custom arrow symbols */
#lectureCarousel .carousel-control-prev::after {
  content: '‹';
  font-size: 4rem;
  color: white;
  font-weight: bold;
  line-height: 1;
  display: block;
  position: relative;
  top: -2px;
}

#lectureCarousel .carousel-control-next::after {
  content: '›';
  font-size: 4rem;
  color: white;
  font-weight: bold;
  line-height: 1;
  display: block;
  position: relative;
  top: -2px;
}

/* Responsive */
@media (max-width: 992px) {
  #lectureCarousel .carousel-control-prev {
    left: 10px;
  }
  
  #lectureCarousel .carousel-control-next {
    right: 10px;
  }
}

@media (max-width: 768px) {
  #lectureCarousel .carousel-item {
    min-height: auto;
  }
  
  #lectureCarousel .lecture-content-wrapper {
    min-height: auto;
  }
}




/* Key points box with subtle prominence */
.key-points-box-educ {
  background: linear-gradient(135deg, #ED7A3E, #F6971F);
  color: var(--phoenics_dark_purple);
  border-radius: 15px;
  padding: 2rem;
  margin: 1rem 0;
  font-family: "Nunito Sans", sans-serif;
  font-size: calc(var(--fs-body) * 1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.key-points-box-educ ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}
.key-points-box-educ li {
  margin-bottom: 1rem;
  line-height: 1.5;
  color: black;
  padding-left: 1.5rem;
  position: relative;
  font-weight: 700;
}
.key-points-box-educ li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0.5rem;  /* Add this to adjust vertical position */
  color: black;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1;  /* Add this for consistent height */
}
.key-points-box-educ li:last-child {
  margin-bottom: 0;
}
/* Key points split box - text and image */
.key-points-split-box-educ {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(53, 34, 83, 0.95), rgba(61, 38, 82, 0.95));
  padding: 2rem;
  border-radius: 15px;
  width: 100%;
  color: white;
  gap: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.key-points-split-box-educ .split-text {
  flex: 1;
  font-family: "Nunito Sans", sans-serif;
  font-size: calc(var(--fs-body) * 1.05);
  text-align: left;
}
.key-points-split-box-educ .split-text ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}
.key-points-split-box-educ .split-text li {
  margin-bottom: 1rem;
  line-height: 1.5;
  color: white;
  padding-left: 1.5rem;
  position: relative;
  font-weight: 600;
}
.key-points-split-box-educ .split-text li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0.5rem;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1;
}
.key-points-split-box-educ .split-text li:last-child {
  margin-bottom: 0;
}
.key-points-split-box-educ .split-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.key-points-split-box-educ .split-image img {
  max-width: 70%;
  height: auto;
  border-radius: 0.625rem;
}
@media (max-width: 768px) {
  .key-points-split-box-educ {
    flex-direction: column;
  }
  .key-points-split-box-educ .split-image img {
    max-width: 100%;
  }
}



/* Container für die Zitat-Boxen FÜR EDUCATION BEGINNING QUOTE BOXES INSIDE DROPDOWN BOX*/

/* Jede Quote-Box als Flex-Container */
.quote-box-edu1 {
  display: flex;
  align-items: center;        /* Bild und Text vertikal zentrieren */
  background-color: transparent;  /* Hintergrundfarbe */
  padding: 1.25rem;           /* ~20px */
  border-radius: 0.625rem;    /* ~10px */
  width: 100%;                /* Ganze Breite */
  font-size: var(--fs-body);  /* Schriftgröße wie im restlichen Text */
  line-height: 1.5;
  color: #333;
  gap: 1.5rem;                /* Abstand Bild–Text */
  margin-bottom: 1.5rem;      /* Abstand zwischen Boxen */
}

/* Bild der Person */
.quote-box-edu1 .quote-image {
  flex-shrink: 0;             /* Bild schrumpft nicht */
}

.quote-box-edu1 .quote-image img {
  width: 7.5rem;              /* ~120px */
  height: 7.5rem;
  border-radius: 50%;         /* rundes Bild */
  object-fit: cover;          /* kein Verzerren */
}

/* Textbereich */
.quote-box-edu1 .quote-text {
  flex: 1;
  font-size: var(--fs-body);
  color: #333;
  font-style: italic;
  line-height: 1.6;
}

.quote-box-edu1 .quote-text p {
  margin: 0;
  padding: 0.7rem;
  text-align: justify;
}

/* Alternierend: jedes gerade Element umdrehen */
.quote-box-edu1:nth-child(even) {
  flex-direction: row-reverse;  
}
/* Quote box without image */
.quote-box-edu1.no-image {
  justify-content: center;
  text-align: center;
  background-color: transparent; /* Lila Hintergrund */
  padding: 1.5rem;
  border-radius: 0.625rem;
  width: 100%;
  margin: 1.5rem 0;
}

.quote-box-edu1.no-image .quote-text {
  font-style: italic;
  color: #333;
  font-size: var(--fs-body);
  line-height: 1.6;
}


/* Mehrere Gesichter untereinander */
.quote-box-edu1 .quote-image-group.vertical {
  display: flex;
  flex-direction: column;   /* vertikal statt horizontal */
  gap: 1rem;                /* Abstand zwischen den Bildern */
  align-items: center;      /* zentriert in der Spalte */
  flex-shrink: 0;
}

.quote-box-edu1 .quote-image-group.vertical img {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
}




/* ============================= SPONSOR PAGE ============================= */

.collab-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.collab-title {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.75rem;
}

.collab-logo {
    float: right;
    margin-left: 25px;
    margin-bottom: 15px;
    max-height: 150px;
    max-width: 40%;
    width: auto;
}

.collab-logo img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.collab-text {
    color: #555;
    line-height: 1.7;
    text-align: justify;
}

.collab-text p {
    margin-bottom: 15px;
}

.collab-text p:last-child {
    margin-bottom: 0;
}

/* Clear float after content */
.collab-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Mobile responsiveness */
@media (max-width: 767.98px) {
    .collab-logo {
        float: none;
        max-width: 60%;
        margin: 0 auto 20px;
        display: block;
    }
    
    .collab-text {
        text-align: left;
    }
    
    .collab-title {
        text-align: center;
        font-size: 1.5rem;
    }
}


/* ============================= NOTEBOOK PAGE ============================= */

.notebook-pdf-reader {
  display: flex;
  justify-content: center;   /* horizontally center */
}

.notebook-pdf-reader .pdf-frame {
  width: 70%;
  height: 80vh;
  border: 0;
}

/* Optional: make it friendlier on small screens */
@media (max-width: 575.98px) {
  .pdf-frame { width: 100%; height: 70vh; }
}


/* EMERGENCY MATH CLASSES */


/* .numbered-formula {
    display: flex;
    align-items: center;
    margin: 20px 0;
    padding: 15px 0;
}

.formula-content {
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
}

.formula-number {
    width: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1em;
}

Optional: Style for the equation number
.formula-number::before {
    content: "(";
}

.formula-number::after {
    content: ")";
} */

.equation-container {
    display: flex;
    width: 100%;
    height: 300px; /* Control height here */
    background: transparent;
    margin-bottom: 20px;
}

.equation-column {
    width: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
}

.equation-column img {
    height: auto;
    width: auto;
    object-fit: contain;
}

.number-column {
    width: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: normal;
    font-family: 'Latin Modern Roman', 'Computer Modern', serif;
    color: #333;
}

/* Different heights example */
.container-small {
    height: 80px;
}

.container-medium {
    height: 120px;
}

.container-large {
    height: 200px;
}



/* ---- HOME PAGE BOTTOM SECTUION ---- */

.video-container {
  padding: 3rem 0;
    width: 80%;
    margin: 0 auto; /* Centers the container */
}

.video-container iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* Maintains video aspect ratio */
}

/* Mobile devices */
@media screen and (max-width: 768px) {
    .video-container {
        width: 100%;
        padding: 2rem 10px; /* Optional padding for small screens */
    }
}

/* Cards */

.homepage-container {
    max-width: 1400px;
    margin: 0 auto;
}

.homepage-header {
    margin-bottom: 40px;
    text-align: center;
}

.homepage-header img {
    max-width: 600px;
    width: 100%;
    height: auto;
}

.homepage-cards-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;
}

.homepage-card {
    flex: 1 1 0;
    max-width: 280px;
    max-height: 400px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.homepage-card:hover {
    transform: translateY(-8px);
}

.homepage-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1200px) {
    .homepage-cards-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .homepage-card {
        flex: 0 1 calc(33.333% - 20px);
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .homepage-card {
        flex: 0 1 calc(50% - 20px);
    }
}

/* Download PDF on Mobile */
.mobile-pdf-download {
  display: none;
  padding: 12px 20px;
  background-color: var(--phoenics_yellow);
  color: black;
  text-decoration: none;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: bold;;
  transition: all 0.2s ease;
}

.mobile-pdf-download:hover {
  background-color: var(--phoenics_yellow);
  color: black;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .mobile-pdf-download {
    display: block;
  }
}