/* Reset default margin/padding and set box-sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base body styles */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  background-color: #fff;
}

/* Header styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  border-bottom: 1px solid #ddd;
  background-color: #fff;
}

/* Container inside header, max width and center alignment */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 40px;
  gap: 40px;
}

/* Logo sizing */
.logo img {
  height: 60px;
  width: auto;
}

/* Navigation list styling */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

/* Link styling */
.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 10px 8px;
}

/* Link hover color */
.nav-links a:hover {
  color: #0072ce;
}

.menu-toggle {
  position: absolute;       /* Remove from flow */
  width: 1px;               /* Minimal width */
  height: 1px;              /* Minimal height */
  margin: -1px;             /* Remove margin */
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);      /* Clip so not visible */
  clip-path: inset(50%);    /* Clip-path alternative */
  overflow: hidden;
  white-space: nowrap;
}

/* Dropdown container setup */
.dropdown {
  position: relative;
}

/* Dropdown menu */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 10px;
  min-width: 180px;
  z-index: 10;
}

/* Dropdown list items */
.dropdown-content li {
  margin: 5px 0;
}

/* Show dropdown on hover (except on small screens overridden below) */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Hero section styles */
.hero {
  position: relative;
  height: 50vh;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  max-height: 600px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  text-align: center;
  color: white;
  max-width: 700px;
  padding: 0 20px;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero-text p {
  font-size: 1.2rem;
  line-height: 1.7;
}

/* Main content padding */
main {
  padding: 40px;
}

/* Content headings */
.content h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0; /* reduced bottom margin */
}

/* Paragraphs inside content */
.content p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #333;
  margin-top: 0;
  margin-bottom: 30px;
  width: 100%;
}

/* Containers for layout consistency */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* horizontal padding */
  width: 100%;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Side-by-side section with light background */
.side-by-side-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  gap: 40px;
  flex-wrap: wrap;
  background-color: #f9f9f9;
}

/* Text wrapper sizing */
.text-wrapper {
  flex: 1 1 400px;
  max-width: 600px;
}

.text-wrapper h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #222;
}

.text-wrapper p {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 30px;
  color: #444;
}

/* Buttons with consistent style */
.learn-more-button {
  background-color: #0072ce;
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.learn-more-button:hover,
.learn-more-button:focus {
  background-color: #005fa3;
  outline: none;
}

/* Image wrapper for consistent spacing and shadow */
.image-wrapper {
  flex: 1 1 400px;
  max-width: 450px; /* unified max-width for general use */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
}

.image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 6px; /* subtle rounding inside image wrapper */
}

/* Footer styling */
footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #ddd;
  font-size: 0.9rem;
  background-color: #f9f9f9;
}

.site-footer {
  background-color: white;
  color: #333; /* Adjust text color accordingly for readability */
}

/* Footer banner section */
.footer-banner {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  margin-top: 40px;
}

.footer-banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.footer-menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: 0 20px;
  box-sizing: border-box;
}

.footer-menu-container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
}

/* Footer logo size */
.footer-logo img {
  height: 60px;
  width: auto;
}

/* Footer navigation */
.footer-nav {
  list-style: none;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  flex: 1;
  font-weight: 500;
  padding-left: 0;
  position: relative;
}

.footer-nav > li {
  position: relative;
  list-style: none;
}

.footer-nav li a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  padding: 12px 8px;
  display: block;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

.footer-nav li a:hover {
  color: #66aaff;
}

/* Footer dropdown content */
.footer-nav .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #222;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  padding: 10px 0;
  min-width: 180px;
  z-index: 1000;
  border-radius: 4px;
}

.footer-nav .dropdown-content li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-nav .dropdown-content li a {
  padding: 10px 20px;
  color: white;
  font-weight: 400;
  white-space: nowrap;
}

.footer-nav .dropdown-content li a:hover {
  background-color: #444;
  color: #66aaff;
}

/* Show footer dropdown on hover */
.footer-nav li.dropdown:hover > .dropdown-content {
  display: block;
}

/* Utility classes */
.white-bg {
  background-color: white;
}

.centered-text {
  text-align: center;
}

/* Pipeline Table Section */
.pipeline-section {
  padding: 60px 20px;
  background-color: #fff;
  text-align: center;
}

.pipeline-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #222;
}

.pipeline-container {
  flex-direction: column;
}

.pipeline-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.pipeline-table th, .pipeline-table td {
  border-bottom: 1px solid #ddd;
  padding: 18px 14px;
  text-align: center;
  background-color: #fafafa;
  font-weight: 600;
}

.pipeline-table thead th {
  background-color: #f2f6f9;
  color: #333;
  border-bottom: 3px solid #0072ce;
}

.pipeline-table tbody tr:nth-child(even) td {
  background-color: #f9f9f9;
}

/* Progress bar styling */
.progress-cell {
  position: relative;
  width: 100%;
  height: 16px;
  background-color: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.progress-cell.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(270deg, #005bb5, #0072ce, #005bb5);
  border-radius: 8px;
  animation: progressBarAnimation 2s ease forwards;
}

@keyframes progressBarAnimation {
  0% { width: 0%; }
  100% { width: 100%; }
}

.pipeline-table tbody tr:hover {
  background-color: #e6f0fc;
  cursor: default;
}

.progress-cell.active:hover::after {
  background: linear-gradient(270deg, #003d7a, #005bb5, #003d7a);
  transition: background-color 0.3s ease;
}

/* Leadership Section */
.leadership-section {
  padding: 60px 20px;
  background-color: white;
  text-align: center;
}

.leadership-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #222;
}

.team-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.team-member {
  width: 280px;
  cursor: pointer;
  outline: none;
}

.team-member .img-container {
  width: 280px;
  height: 280px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transition: box-shadow 0.3s ease;
  position: relative;
}

.team-member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.team-member:hover .img-container img,
.team-member:focus .img-container img {
  transform: scale(1.1);
}

.team-member h3 {
  margin-top: 15px;
  font-weight: 700;
  color: #0072ce;
  font-size: 1.3rem;
}

.team-member p {
  font-weight: 500;
  color: #555;
  margin-top: 6px;
}

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  display: none;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  overflow-y: auto;
}

.popup-overlay.active {
  display: flex;
  scroll-behavior: smooth;
}

.popup-content {
  background: white;
  width: 90%;
  max-width: 1200px;
  height: 80vh;
  border-radius: 12px;
  display: flex;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  position: relative;
}

/* Image container takes about 55% width */
.popup-image-container {
  flex: 0 0 55%;
  overflow: hidden;
  position: relative;
}

.popup-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Text panel 45% width */
.popup-text {
  flex: 0 0 45%;
  padding: 40px 50px;
  overflow-y: auto;
  text-align: left;
}

.popup-text h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 2.5rem;
  font-weight: 700;
  color: #0072ce;
  line-height: 1.1;
}

.popup-text p {
  font-size: 1.15rem;
  color: #333;
  line-height: 1.6;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  font-size: 3.5rem;
  background: white;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  width: 56px;
  height: 56px;
  line-height: 56px;
  color: #0072ce;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 0;
  user-select: none;
  z-index: 2100;
}

.close-btn:hover,
.close-btn:focus {
  background-color: #0072ce;
  color: white;
  outline: none;
}

/* Contact Section */
.contact-section {
  padding: 40px 20px;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  text-align: center;
}

.contact-container {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
}

.contact-info {
  margin: 0;
}

.contact-info h2 {
  margin-bottom: 20px;
  font-size: 2rem;
  color: #0072ce;
}

.facility {
  margin-bottom: 16px;
}

.facility h3 {
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 1.25rem;
}

.facility address,
.contact-emails p {
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #555;
  margin-bottom: 8px;
}

.contact-emails p:last-child {
  margin-bottom: 0;
}

.contact-info a {
  color: #0072ce;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form-wrapper {
  flex: 1 1 400px;
  min-width: 320px;
  background: #f9f9f9;
  padding: 40px 40px 50px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.contact-form-wrapper h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: #0072ce;
  text-align: center;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #444;
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  resize: vertical;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0072ce;
  outline: none;
}

/* News Publications Section */
.news-publications-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.news-publications-section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #0072ce;
  text-align: center;
}

.news-publications-container {
  width: 100%;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px 32px;
}

.news-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 24px 28px;
  color: #003366;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 2px solid #0072ce;
  height: auto;
  min-height: 320px;
  box-sizing: border-box;
  justify-content: space-between;
  text-decoration: none;
}

.news-item:hover,
.news-item:focus {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
  outline: none;
  border-color: #005fa3;
}

.news-date {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0072ce;
  text-transform: uppercase;
}

.news-type {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0056a0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.news-title {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #003366;
}

.news-separator {
  border: none;
  border-bottom: 2px solid #0072ce;
  width: 60px;
  margin: 0 0 16px 0;
}

.read-more {
  font-weight: 700;
  color: #0072ce;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.25s ease;
  margin-top: auto;
}

.news-item:hover .read-more,
.news-item:focus .read-more {
  color: #005fa3;
  text-decoration: underline;
}

/* Patients & Caregivers Section */
.patients-caregivers-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.patients-caregivers-container {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}

.content-wrapper {
  flex: 1 1 500px;
  max-width: 700px;
}

.content-wrapper h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: #0072ce;
}

.content-wrapper p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 36px;
  color: #333;
}

.trial-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
}

.trial-button {
  display: inline-block;
  background-color: #0072ce;
  color: white;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.trial-button:hover,
.trial-button:focus {
  background-color: #005fa3;
  outline: none;
}

/* Expanded Access Section */
.expanded-access-section {
  max-width: 900px;
  margin: 60px auto 80px auto;
  padding: 0 20px;
  box-sizing: border-box;
  color: #333;
  font-size: 1.15rem;
  line-height: 1.65;
}

.expanded-access-container h2 {
  font-size: 2.5rem;
  color: #0072ce;
  margin-bottom: 32px;
  text-align: center;
}

.expanded-access-container p {
  margin-bottom: 24px;
}

.expanded-access-container a {
  color: #0072ce;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.expanded-access-container a:hover,
.expanded-access-container a:focus {
  color: #005fa3;
  text-decoration: underline;
}

/* Mission Quote & Statement Section */
.mission-quote-statement {
  max-width: 1200px;
  margin: 60px auto 80px auto;
  padding: 0 20px;
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  align-items: stretch;
  box-sizing: border-box;
}

.mission-container > div {
  flex: 1 1 400px;
  min-width: 300px;
}

.quote-wrapper {
  border-left: 4px solid #0072ce;
  padding-left: 24px;
  font-style: italic;
  color: #444;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-wrapper blockquote p {
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 16px;
}

.quote-wrapper blockquote footer cite {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0072ce;
  white-space: pre-line;
}

.statement-wrapper h2 {
  font-size: 2.5rem;
  color: #0072ce;
  margin-bottom: 24px;
}

.statement-wrapper p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
}

/* Partnership Section */
.partnership-section {
  max-width: 1200px;
  margin: 60px auto 100px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.partnership-container {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  align-items: center;
}

/* Reuse image-wrapper styles above for partnership images */

/* Reuse text-wrapper styles above for partnership text */

/* Responsive adjustments */
/* Small screen adjustments (max-width 600px) */
@media (max-width: 600px) {
  /* Header container: vertical stacking, smaller padding */
  .header-container {
    flex-direction: column;
    padding: 10px;
  }

  /* Nav links stacked vertically */
  .nav-links {
    flex-direction: column;
    gap: 10px;
  }

  /* Hero text heading smaller on small screens */
  .hero-text h1 {
    font-size: 2rem;
  }

  /* Image wrapper full width images */
  .image-wrapper img {
    width: 100%;
    height: auto;
  }

  /* Disable hover dropdown on mobile */
  .dropdown:hover .dropdown-content {
    display: none;
  }

  /* Indicate nav hidden by default, hamburger visible */
  .hamburger {
    display: block;
    font-size: 2.5rem;
    cursor: pointer;
    user-select: none;
  }

  .menu-toggle {
    display: none; /* menu-toggle hidden if unused */
  }

  nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
  }

  /* Show nav when menu toggle is checked */
  .menu-toggle:checked + .hamburger + nav {
    display: block;
  }

  /* Stack nav links vertically with border */
  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links li {
    padding: 12px 20px;
    border-bottom: 1px solid #ddd;
  }

  /* Footer navigation dropdown disabled on small screens */
  .footer-nav .dropdown .dropdown-content {
    display: none !important;
  }

  /* Responsive news grid single column */
  .news-item {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
  }

  .news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px 32px;
  justify-content: center; /* center the grid inside container */
  width: 100%;
  }
  
  .news-item * {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.table-wrapper {
  overflow-x: auto;           /* Enables horizontal scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth momentum scrolling on iOS */
  width: 100%;
}

.pipeline-table {
  width: 100%;
  min-width: 700px; /* Adjust based on minimum desired scrollable width */
  border-collapse: collapse;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow-x: auto;
   -webkit-overflow-scrolling: touch;
   max-width: none;
}

.pipeline-container {
  width: 100%;
  overflow-x: auto;            /* Enable horizontal scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  padding: 0;                  /* Remove extra padding that may shrink container */
  margin: 0;                   /* Remove any margin */
}

  /* Header container flex reset for hamburger */
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
  }

  /* Hamburger button visible and nav toggle */
  #hamburger-button {
    display: block;
  }

  nav#main-nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 10px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 6px;
    z-index: 9999;
    width: calc(100% - 40px);
    max-width: 300px;
    padding: 10px 0;
  }

  nav#main-nav.open {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    padding: 0 20px;
  }

  .nav-links li {
    margin-bottom: 10px;
  }

  /* Disable dropdown hover on mobile */
  .dropdown:hover .dropdown-content {
    display: none;
  }
  
    /* For content section container and text wrapper: use full width + padding */
  .content.section-container, .mission-quote-statement.white-bg, .partnership-section.white-bg {
	max-width: 100% !important;
    width: 100% !important;
    padding: 0 0px;
    margin: 0 0;
    box-sizing: border-box;
  }
  
    .text-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0px;
    padding-right: 0px;
    box-sizing: border-box;
  }

  /* Side-by-side section: stack vertically */
  .side-by-side-section .section-container {
    flex-direction: column !important;
    align-items: center;
    padding: 0 0px;
	margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .section-container.mission-container {
    flex-direction: column !important;
    align-items: center;
    padding: 0 0px;
	margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  /* Make image wrapper full-width and below text */
  .side-by-side-section .image-wrapper {
    max-width: 100% !important;
    margin-top: 20px;
    flex: none !important;
  }
    .quote-wrapper {
    text-align: center;
  }
  
    .quote-wrapper, .statement-wrapper, .image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0px;
    padding-right: 0px;
    box-sizing: border-box;
  }
 
    .expanded-access-section.white-bg, .section-container.expanded-access-container {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0px;
    padding-right: 0px;
    box-sizing: border-box;
  }

    .pipeline-section.white-bg, .section-container.pipeline-container {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0px;
    padding-right: 0px;
  }
  /* Text wrapper adjusts width */
 /* .side-by-side-section .text-wrapper {
    width: 100% !important;
    max-width: 600px !important;
  }*/
}

/*_________________MEDIUM SCREENS UP TO 780PX__________________*/

/* Medium screens (up to 899px) */
@media (max-width: 800px) {
  /* Header container: vertical stacking, smaller padding */
  .header-container {
    flex-direction: column;
    padding: 10px;
  }

  /* Nav links stacked vertically */
  .nav-links {
    flex-direction: column;
    gap: 10px;
  }

  /* Hero text heading smaller on small screens */
  .hero-text h1 {
    font-size: 2rem;
  }

  /* Image wrapper full width images */
  .image-wrapper img {
    width: 100%;
    height: auto;
  }

  /* Disable hover dropdown on mobile */
  .dropdown:hover .dropdown-content {
    display: none;
  }

  /* Indicate nav hidden by default, hamburger visible */
  .hamburger {
    display: flex;
    font-size: 2.5rem;
    cursor: pointer;
    user-select: none;
  }

  .menu-toggle {
    display: block; /* menu-toggle hidden if unused */
  }

  nav {
    display: none;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
  }

  /* Show nav when menu toggle is checked */
  .menu-toggle:checked + .hamburger + nav#main-nav {
    display: block;
  }

  /* Stack nav links vertically with border */
  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links li {
    padding: 12px 20px;
    border-bottom: 1px solid #ddd;
  }

  /* Footer navigation dropdown disabled on small screens */
  .footer-nav .dropdown .dropdown-content {
    display: none !important;
  }

  /* Responsive news grid single column */
  .news-item {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
  }

  .news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px 32px;
  justify-content: center; /* center the grid inside container */
  width: 100%;
  }
  
  .news-item * {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.table-wrapper {
  overflow-x: auto;           /* Enables horizontal scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth momentum scrolling on iOS */
  width: 100%;
}

.pipeline-table {
  width: 100%;
  min-width: 700px; /* Adjust based on minimum desired scrollable width */
  border-collapse: collapse;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow-x: auto;
   -webkit-overflow-scrolling: touch;
   max-width: none;
}

.pipeline-container {
  width: 100%;
  overflow-x: auto;            /* Enable horizontal scrolling */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  padding: 0;                  /* Remove extra padding that may shrink container */
  margin: 0;                   /* Remove any margin */
}

  /* Header container flex reset for hamburger */
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
  }

  /* Hamburger button visible and nav toggle */
  #hamburger-button {
    display: block;
  }

  nav#main-nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 10px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 6px;
    z-index: 9999;
    width: calc(100% - 40px);
    max-width: 300px;
    padding: 10px 0;
  }

  nav#main-nav.open {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    padding: 0 20px;
  }

  .nav-links li {
    margin-bottom: 10px;
  }

  /* Disable dropdown hover on mobile */
  .dropdown:hover .dropdown-content {
    display: none;
  }
  
    /* For content section container and text wrapper: use full width + padding */
  .content.section-container, .mission-quote-statement.white-bg, .partnership-section.white-bg {
	max-width: 100% !important;
    width: 100% !important;
    padding: 0 0px;
    margin: 0 0;
    box-sizing: border-box;
  }
  
    .text-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0px;
    padding-right: 0px;
    box-sizing: border-box;
  }

  /* Side-by-side section: stack vertically */
  .side-by-side-section .section-container {
    flex-direction: column !important;
    align-items: center;
    padding: 0 0px;
	margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .section-container.mission-container {
    flex-direction: column !important;
    align-items: center;
    padding: 0 0px;
	margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  /* Make image wrapper full-width and below text */
  .side-by-side-section .image-wrapper {
    max-width: 100% !important;
    margin-top: 20px;
    flex: none !important;
  }
    .quote-wrapper {
    text-align: center;
  }
  
    .quote-wrapper, .statement-wrapper, .image-wrapper, .contact-info, .facility {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0px;
    padding-right: 0px;
    box-sizing: border-box;
  }
 
    .expanded-access-section.white-bg, .section-container.expanded-access-container {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0px;
    padding-right: 0px;
    box-sizing: border-box;
  }

    .pipeline-section.white-bg, .section-container.pipeline-container {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0px;
    padding-right: 0px;
  }
  
  .contact-emails {
  display: flex;
  flex-direction: column; /* or row if side by side */
  align-items: center;    /* centers horizontally */
  justify-content: center; /* centers vertically */
  height: 100%; /* or a fixed height like 200px, depending on your layout */
  text-align: center; /* centers text inside the paragraph tags */
}
  
  .popup-content {
    flex-direction: column;
    height: auto;
	min-height: 20vh;
    max-height: 70vh;
	will-change: scroll-position;
	  height: calc(100% + 1px);
  }

  .popup-image-container,
  .popup-text {
    flex: none;
    width: 100%;
    padding: 20px 30px;
  }  

  .popup-text {
  flex: 0 0 45%;
  padding: 40px 50px;
  max-height: 80vh;`
  overflow-y: auto;  /* Allows vertical scrolling */
  text-align: left;
  -webkit-overflow-scrolling: touch;
  }
.popup-overlay {
  position: fixed;
  display: none;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  overflow-y: auto;
}

.popup-overlay.active {
  display: flex;
  scroll-behavior: smooth;
}  


  /* Text wrapper adjusts width */
 /* .side-by-side-section .text-wrapper {
    width: 100% !important;
    max-width: 600px !important;
  }*/
}

/* Show hamburger on small screens */
@media (max-width: 800px) {
.menu-toggle {
  display: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 26px;
  height: 24px;
  cursor: pointer;
  z-index: 2100;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hide nav initially */
#main-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px 0;
  z-index: 2000;
  overflow-y: auto;
}

/* When checkbox is checked, show nav fullscreen */
.menu-toggle:checked ~ nav#main-nav {
  display: flex;
}

/* Animate hamburger into X */
.menu-toggle:checked + .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle:checked + .hamburger span:nth-child(2) {
  opacity: 0;
}
.menu-toggle:checked + .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Nav link styles */
.nav-links {
  flex-direction: column;
  gap: 20px;
  padding: 0;
}

.nav-links li {
  font-size: 1.5rem;
  list-style: none;
  padding: 12px 24px;
  border-bottom: 1px solid #ddd;
  width: 100%;
  text-align: center;
}
/* Hide dropdown submenus inside hamburger nav by default */
.nav-links .dropdown-content {
  display: none;
  position: static; /* Make dropdowns flow vertically inside full screen menu */
  box-shadow: none;
  background: transparent;
  padding-left: 15px; /* Indent submenu */
}

/* Show submenu when parent li is focused or active */
.nav-links li.dropdown:focus-within > .dropdown-content,
.nav-links li.dropdown:hover > .dropdown-content {
  display: block;
}

/* Optional: make dropdown-content items style consistent inside mobile nav */
.nav-links .dropdown-content li {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.nav-links .dropdown-content li a {
  font-size: 1.3rem;
  color: #333;
}

/* Remove absolute positioning and shadows from dropdown on mobile */
.nav-links .dropdown-content {
  position: static;
  box-shadow: none;
  background: transparent;
}

}
