* {
  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("../images/soil-with-roots.JPEG");
  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;
}

/* --- 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: 85%; }
.stat-card.is-visible.fill-30::before { height: 30%; }
.stat-card.is-visible.fill-70::before { height: 70%; }

/* Ensure the card content sits on top of the fill layer */
.stat-card-header, .stat-card 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: #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;
}


*, ::before, ::after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / 0.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/* ! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com */*,::after,::before{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}::after,::before{--tw-content:''}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.mt-2{margin-top:0.5rem}.bg-gradient-to-r{background-image:linear-gradient(to right, var(--tw-gradient-stops))}.from-green-700{--tw-gradient-from:#15803d var(--tw-gradient-from-position);--tw-gradient-to:rgb(21 128 61 / 0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to)}.to-purple-700{--tw-gradient-to:#7e22ce var(--tw-gradient-to-position)}.py-8{padding-top:2rem;padding-bottom:2rem}.text-center{text-align:center}.text-sm{font-size:0.875rem;line-height:1.25rem}.text-white{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{-webkit-text-decoration-line:underline;text-decoration-line:underline}.hover\:text-gray-200:hover{--tw-text-opacity:1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}

    :root {
        --primary-color: #4f46e5;
        --secondary-color: #22c55e;
        --text-dark: #1e293b;
        --text-light: #64748b;
        --bg-light: #f8fafc;
        --bg-white: #ffffff;
        --border-color: #e2e8f0;
        --hero-green: #15803d; 
        --hero-purple: #6b21a8;
    }

    #notebook-component .nb-container {
        max-width: 900px;
        margin: 0 auto;
        padding: 0 2rem;
    }
    
    #notebook-component .nb-hero-header {
        background: linear-gradient(to right, var(--hero-green), var(--hero-purple));
        color: white;
        padding: 4rem 1.5rem;
        text-align: center;
    }
    #notebook-component .nb-hero-header h1 { font-size: 3rem; font-weight: 800; margin: 0; }
    #notebook-component .nb-hero-header p { font-size: 1.1rem; max-width: 600px; margin: 1rem auto 0; color: rgba(255, 255, 255, 0.9); }

    #notebook-component .nb-notebook-container {
        padding: 3rem 0;
    }

    /* Accordion Icon */
    #notebook-component .nb-accordion-icon {
        position: relative;
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        transition: transform 0.3s ease-out;
    }
    #notebook-component .nb-accordion-icon::before,
    #notebook-component .nb-accordion-icon::after {
        content: '';
        position: absolute;
        background-color: currentColor;
        border-radius: 2px;
    }
    #notebook-component .nb-accordion-icon::before {
        top: 0; left: 50%; width: 3px; height: 100%; transform: translateX(-50%);
    }
    #notebook-component .nb-accordion-icon::after {
        top: 50%; left: 0; width: 100%; height: 3px; transform: translateY(-50%);
    }

    /* Accordion Items */
    #notebook-component .nb-month-item, 
    #notebook-component .nb-week-item {
        border: 1px solid var(--border-color);
        margin-bottom: 1rem;
    }
    #notebook-component .nb-month-item {
        background: var(--bg-white);
        border-radius: 0.75rem;
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    }
    #notebook-component .nb-month-header, 
    #notebook-component .nb-week-header {
        width: 100%;
        text-align: left;
        background: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    #notebook-component .nb-month-header {
        padding: 1rem 1.5rem;
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-color);
    }
    #notebook-component .nb-month-content, 
    #notebook-component .nb-week-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }
    #notebook-component .nb-month-content { padding: 0 1.5rem; }
    #notebook-component .nb-month-item.active .nb-month-content {
        max-height: 2000px;
    }
    /* Icon rotation */
    #notebook-component .nb-month-item.active > .nb-month-header .nb-accordion-icon,
    #notebook-component .nb-week-item.active > .nb-week-header .nb-accordion-icon {
        transform: rotate(45deg);
    }

    #notebook-component .nb-week-container {
        padding: 0.5rem 0 1.5rem 1.5rem;
        border-left: 2px solid var(--border-color);
        margin-left: 0.5rem;
    }
    #notebook-component .nb-week-item {
        background: var(--bg-light);
        border-radius: 0.5rem;
        margin-bottom: 0.5rem;
    }
    #notebook-component .nb-week-header {
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-dark);
    }
    #notebook-component .nb-week-header span:first-child {
        color: var(--text-light);
        margin-right: 0.5rem;
    }
    #notebook-component .nb-week-content { padding: 0 1rem; }
    #notebook-component .nb-week-content-inner { padding: 0.5rem 0 1.5rem 0; }
    #notebook-component .nb-week-item.active .nb-week-content {
        max-height: 2000px;
    }

    /* Content */
    #notebook-component .nb-week-content-inner h4 {
        color: var(--text-dark); margin-top: 1.5rem; margin-bottom: 0.5rem;
    }
    #notebook-component .nb-week-content-inner ul {
        padding-left: 20px;
    }
    #notebook-component .nb-week-content-inner img {
        max-width: 100%; border-radius: 0.5rem; margin-top: 1rem;
    }


.container {
    width: 100%;
    max-width: 100%; /* overrides Tailwind container max-width */
}
