* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  margin: 0;
}

body {
    overflow-x: hidden; /* Prevents horizontal scrollbars */
    overflow-y: visible; /* Allows vertical scrolling and lets sticky work */
}

/* Progress Bar */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(to right, #b859dd, #7a40d1);
  width: 0%;
  z-index: 2000;
}

/* Premium Navbar */
.navbar-1 {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-1 .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}


/* Main Navigation */
.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 8px;
}

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

.nav-menu > li > a {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  color: #1c1f28;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  font-weight: bold;
}

.nav-menu > li > a:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #ca74ec;
}

/* macOS-style Dropdown */
.navbar-2 {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(20px);
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 180px;
  padding: 8px;
}

.navbar-2::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 4px solid rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.1));
}

.nav-menu > li:hover .navbar-2 {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.navbar-2 .container {
  padding: 0;
  height: auto;
  display: block;
}

.nav-menu_hovered {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-menu_hovered a {
  display: block;
  padding: 8px 12px;
  color: #1c1f28;
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all 0.15s ease;
  position: relative;
}

.nav-menu_hovered a:hover {
  background: #ca74ec;
  color: white;
  transform: translateX(2px);
}
/* Mobile Responsive */
@media (max-width: 768px) {
  .navbar-1 .container {
    height: 60px;
    padding: 0 1rem;
    justify-content: space-between; /* logo left, toggle right */
  }

  .nav-menu {
    max-height: 0;                 /* hidden by default */
    overflow: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 0 1rem;
    flex-direction: column;
    gap: 0;
    z-index: 999;
    transition: max-height 0.4s ease; /* smooth slide */
  }

  .nav-menu.open {
    max-height: 600px; /* enough space for all links */
    padding: 1rem;
  }

  .nav-menu > li {
    width: 100%;
  }

  .nav-menu > li > a {
    padding: 12px 16px;
    border-radius: 8px;
    justify-content: space-between;
  }

  .navbar-2 {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: none;
    border: none;
    border-radius: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    padding: 8px;
  }

  .navbar-2::before {
    display: none;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-text {
    padding: 2rem 1.5rem;
  }
}

/* Default (desktop) — hidden */
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.5rem;
  justify-content: center;
  align-items: center;
}

/* Show only on mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
}

/* Hamburger icon (3 bars) */
.nav-toggle-icon {
  position: relative;
  width: 28px;
  height: 3px;
  background-color: #333;
  display: block;
  transition: background-color 0.2s ease-in-out;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 3px;
  background-color: #333;
  transition: transform 0.2s ease-in-out, top 0.2s ease-in-out;
}

.nav-toggle-icon::before {
  top: -8px;
}

.nav-toggle-icon::after {
  top: 8px;
}

/* Expanded (turn into X) */
.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: rotate(-45deg);
  top: 0;
}


/* Logo */
.navbar-brand {
  margin-top: 1px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  top: 60px;
}

.navbar-brand img {
  height: 60px;
  width: auto;
  transition: transform 0.2s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}


/* Hero Section */
.hero-fullscreen {
  position: relative;
  width: 100%;
  height: 100vh;
  background-image: url("https://static.igem.wiki/teams/6006/wiki/soil-with-roots.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 60px;
}

.hero-text {
  color: #fff;
  text-align: left;
  max-width: 600px;
  padding: 20px;
  margin-top: -40px;
  animation: fadeInUp 1.5s ease;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.hero-text p {
  font-size: 1.4rem;
  font-weight: 300;
  margin: 0;
}

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

/* Apply custom cursor only in the hero/bacteria section */
.hero-overlay,
.bacteria-mask {
  cursor: url("https://static.igem.wiki/teams/6006/wiki/magnifying-glass.webp") 16 16, auto;
}

.hero-overlay {
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0)
  );
}


/* Bacteria Mask */
.bacteria-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;

  /* Blurred edges */
  mask-image: radial-gradient(
    circle 180px at var(--x, 50%) var(--y, 50%),
    black 0%,
    black 70%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    circle 180px at var(--x, 50%) var(--y, 50%),
    black 0%,
    black 70%,
    transparent 100%
  );

  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;

  opacity: 0;              
  transition: opacity 0.3s ease;
}

.bacteria-mask.visible {
  opacity: 1;              
}

.bacteria-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-overlay {
    padding: 0 20px;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .nav-menu {
    gap: 15px;
  }
  .collage-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* Progress Bar */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(to right, #b859dd, #7a40d1);
  width: 0%;
  z-index: 3000; /* make sure it's above navbar */
  transition: width 0.2s ease-out;
}

/* Letter Magnify */
.letter {
  display: inline-block;
  transition: transform 0.2s ease;
}

.letter:hover {
  transform: scale(1.5);
  position: relative;
  z-index: 2; /* ensures it grows above neighbors */
}

.word {
  white-space: nowrap; /* prevent breaking inside a word */
}
.letter {
  display: inline-block; /* lets you scale/animate without pushing neighbors */
}

.hero-text .letter { display:inline-block; transition: transform .15s ease; }


/* Problem Section */

    .problem-band {
        position: relative;
        padding: 4rem 1.5rem;
        text-align: center;
        border-bottom: 1px solid #e2e8f0;
        overflow: hidden;
    }

    .problem-inner {
        max-width: 800px;
        margin: 0 auto;
        position: relative;
        z-index: 10; /* Ensure text is always on top */
    }

    .problem-inner h2 {
        font-size: 2.25rem;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 1rem;
    }

    .problem-inner p {
        font-size: 1.125rem;
        line-height: 1.8;
        color: #475569;
    }

    /* Water Animation Container */
    
    .water-animation {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80%;
        z-index: 1; 
    }
    
    .waves {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        z-index: 1; /* Waves are at the bottom of this container */
    }
    
    .wave-path {
        animation: standing-wave 6s ease-in-out infinite alternate;
    }
    
    #wave-2 {
        animation-duration: 10s;
    }

    @keyframes standing-wave {
        from {
            d: path("M0,64 C240,110 480,10 720,64 S960,110 1200,64 S1440,10 1440,64 V150 H0 Z");
        }
        to {
            d: path("M0,64 C240,10 480,110 720,64 S960,10 1200,64 S1440,110 1440,64 V150 H0 Z");
        }
    }

    .water-animation-svg {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 80%;
        z-index: 4;
        overflow: visible;
    }

    .waves-svg {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 120%;
        height: 250px; /* match SVG viewBox height */
        opacity: 0;
        z-index: 4;
    }

    .nitrate-container {
        position: absolute;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 10;
    }

/* Stats Section */

.stats-section {
    max-width: 1100px;
    margin: 60px auto 0 auto;
    text-align: center;
}

.stats-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3rem;
}

.stats-section p {
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

/* --- Grid for the Cards --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* --- Individual Stat Card Styling --- */
.stat-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: left;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 3.5rem;
    font-weight: 800;
    color: rgb(254, 5, 5);
    margin: 0;
}

.stat-card .icon {
    width: 48px;
    height: 48px;
    color: #2ecc71; /* A nice green for the icons */
}

.stat-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.stat-card strong {
    color: #1e293b;
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .stat-inner,
  .stat-inner.reverse {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }
  .dial-container {
    width: 120px;
    height: 120px;
  }
  .dial-text h2 {
    font-size: 1.75rem;
  }
}

.dial-svg {
    overflow: visible !important;
}


/* --- Add these styles for the fill effect --- */

/* Make the card a positioning container for the fill layer */
.stat-card {
    position: relative;
    overflow: hidden; /* Keeps the fill inside the rounded corners */
}

/* The "water" fill layer */
.stat-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0; /* Starts at 0 height */
    background-color: rgba(0, 119, 255, 0.273); /* A light, semi-transparent red */
    z-index: 0; /* Sits behind the content */
    transition: height 1.5s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth animation */
}

/* When the card is visible, the ::before element gets a height */
.stat-card.is-visible.fill-85::before { height: 90%; }
.stat-card.is-visible.fill-30::before { height: 85%; }
.stat-card.is-visible.fill-70::before { height: 20%; }

/* Ensure the card content sits on top of the fill layer */
.stat-card-header, .stat-card p {
    position: relative;
    z-index: 1;
}

/* Stat Section Second */


.stats-section-second {
    max-width: 1100px;
    margin: 60px auto 0 auto;
    text-align: center;
}

.stats-section-second h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3rem;
}

/* --- Grid for the Cards --- */
.stats-grid-second {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* --- Individual Stat Card Styling --- */
.stat-card-second {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: left;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.stat-card-second:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.stat-card-header-second {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-card-second h3 {
    font-size: 3.5rem;
    font-weight: 800;
    color: rgb(254, 5, 5);
    margin: 0;
}

.stat-card-second .icon {
    width: 48px;
    height: 48px;
    color: #2ecc71; /* A nice green for the icons */
}

.stat-card-second p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.stat-card-second strong {
    color: #1e293b;
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    .stats-grid-second {
        grid-template-columns: 1fr;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .stat-inner-second,
  .stat-inner-second.reverse {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }
  .dial-container-second {
    width: 120px;
    height: 120px;
  }
  .dial-text-second h2 {
    font-size: 1.75rem;
  }
}

.dial-svg-second {
    overflow: visible !important;
}


/* --- Add these styles for the fill effect --- */

/* Make the card a positioning container for the fill layer */
.stat-card-second {
    position: relative;
    overflow: hidden; /* Keeps the fill inside the rounded corners */
}

/* The "water" fill layer */
.stat-card-second::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0; /* Starts at 0 height */
    background-color: rgba(0, 119, 255, 0.273); /* A light, semi-transparent red */
    z-index: 0; /* Sits behind the content */
    transition: height 1.5s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth animation */
}

/* When the card is visible, the ::before element gets a height */
.stat-card-second.is-visible.fill-85::before { height: 90%; }
.stat-card-second.is-visible.fill-30::before { height: 22%; }
.stat-card-second.is-visible.fill-70::before { height: 27%; }

/* Ensure the card content sits on top of the fill layer */
.stat-card-header-second, .stat-card-second p {
    position: relative;
    z-index: 1;
}



/* Visual Explaination Section */

.visual-expl {
    padding: 5rem 1.5rem;
}

.visual-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

/* Two columns on medium screens and up */
@media (min-width: 768px) {
    .visual-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.visual-left img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.visual-right h2 {
    font-size: 1.875rem; /* 30px */
    font-weight: 700;
    color: #7726a0;
    margin-bottom: 1rem;
}

.visual-right h3 {
    font-size: 1.25rem; /* 30px */
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.visual-right p {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 2rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1rem;
    color: #334155;
    line-height: 1.6;
}

.benefits-list svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #4338ca; /* Accent color */
    margin-top: 2px;
}

/* Buttons */

.primary-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 1.5rem 5rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 9999px; /* Pill shape */
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #4338ca;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #3730a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: #4338ca;
    border-color: #a5b4fc;
}

.btn-secondary:hover {
    background-color: #eef2ff;
    border-color: #4338ca;
    transform: translateY(-2px);
}

/* Explore More */

.explore {
    padding: 5rem 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.explore h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3rem;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-link article {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease-in-out;
}

.card-link:hover article {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #c7d2fe;
}

.card-link img {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.card-link h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.card-link p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    flex-grow: 1; /* Pushes the CTA to the bottom */
}

.card-cta {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: #4338ca;
}

    .lake-image {
    display: block;       /* centers the image */
    margin: 2rem auto;    /* vertical spacing + horizontal centering */
    max-width: 60%;       /* reduces the image size */
    height: auto;         /* maintain aspect ratio */
    border-radius: 0.5rem; /* optional: rounded corners */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* optional: shadow */
}

















/* Explore More Section */

.explore {
    padding: 5rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background-color: #f9fafb; /* Added for context */
}

.explore h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 3rem;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* --- THE FIX IS HERE --- */

/* 1. Remove padding and add overflow:hidden to the main card */
.card-link article {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease-in-out;
    overflow: hidden; /* This is key for the image's border-radius to look right */
    /* padding: 1.5rem; <--- This has been removed */
}

.card-link:hover article {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #c7d2fe;
}

/* 2. Style the image as a full-width banner */
.card-link img {
    width: 100%;
    height: 180px;      /* Set a fixed height for your banner image */
    object-fit: cover;  /* Ensures the image fills the space without distortion */
    margin-bottom: 0;   /* Reset the margin */
}

/* 3. Create a new wrapper for the text and apply padding to it */
.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* This ensures this div fills the remaining card height */
}

.card-link h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.card-link p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    flex-grow: 1; /* Pushes the CTA (if you add one) to the bottom */
}

    .references {
      max-width: 1200px;
        margin: 40px auto; /* This centers it horizontally */

  background-color: #f9faff;
  border-radius: 12px;
  padding: 25px 30px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.references h2 {
  font-size: 2rem;
  color: #9e00b3;
  margin-bottom: 20px;
  border-bottom: 2px solid #e600cf;
  display: inline-block;
  padding-bottom: 5px;
}

.references ol {
  counter-reset: ref-counter; /* reset numbering */
  padding-left: 20px;
}

.references li {
  counter-increment: ref-counter;
  margin-bottom: 15px;
  line-height: 1.6;
  color: #1a1a1a;
  position: relative;
  padding-left: 35px;
}

.references li::before {
  content: counter(ref-counter) ".";
  position: absolute;
  left: 0;
  font-weight: bold;
  color: #9e00b3;
}

.references a {
  color: #9e00b3;
  text-decoration: underline;
}

.references a:hover {
  color: #cc00ff;
}

/* --- Accordion / Expandable List --- */
        .accordion-container {
            max-width: 900px;
            margin: auto auto;
        }

        .accordion-item {
            background: #ffffff;
            border: 1px solid #abbfdd;
            border-radius: 0.5rem;
            margin-bottom: 1rem;
            overflow: hidden;
            height: auto;
        }

        .accordion-header {
            width: 100%;
            text-align: left;
            background: #f9fafb;
            border: none;
            padding: 1rem 1.5rem;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #d1d5db;
        }
        .accordion-item:last-child {
             border-bottom: 1px solid #d1d5db;
        }
        .accordion-item.active .accordion-header {
            border-bottom-color: transparent;
        }


        .accordion-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease-out, padding 0.4s ease-out;
            padding: 0 1.5rem;
        }

        .accordion-content p {
            margin: 0 0 1rem 0;
            color: #333333;
        }

        /* This is the key rule that opens the accordion */
        .accordion-item.active .accordion-content {
            padding: 1.5rem;
        }

        /* Animates the '+' icon */
        .accordion-icon {
            transition: transform 0.3s ease-out;
            font-size: 1.5rem;
            font-weight: 300;
        }
        .accordion-item.active .accordion-icon {
            transform: rotate(45deg);
        }

        /* This is the key rule that opens the accordion */
        .accordion-item.active .accordion-content {
            /* The max-height will now be set by JavaScript */
            padding: 1.5rem;
        }