/* =============================================================================
   EARBASE.CSS - Updated for Bootstrap 5.3 Integration
   Modern, professional styles for the EarBase landing page
   ============================================================================= */

/* -----------------------------------------------------------------------------
   CSS Variables - Easy theming and consistency
   ----------------------------------------------------------------------------- */
:root {
  --eb-primary-blue: #1e4d8b;
  --eb-accent-teal: #2a9d8f;
  --eb-text-dark: #2c3e50;
  --eb-text-muted: #5a6c7d;
  --eb-gray-light: #f8f9fa;
  --eb-border-light: #e8ecef;
  --eb-shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
  --eb-shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --eb-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --eb-gradient-start: #1e4d8b;
  --eb-gradient-end: #2a9d8f;
}

/* -----------------------------------------------------------------------------
   Typography Improvements
   ----------------------------------------------------------------------------- */

/* Import Google Fonts for better typography */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;600;700&family=DM+Sans:wght@400;500;700&display=swap');

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  color: var(--eb-text-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 700;
  color: var(--eb-primary-blue);
}

h2 {
  margin-top: 2rem;
  margin-bottom: 1.25rem;
  font-size: 2rem;
}

h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* -----------------------------------------------------------------------------
   Page Header Hero Section
   ----------------------------------------------------------------------------- */
.page-header-hero {
  background: linear-gradient(135deg, rgba(30, 77, 139, 0.03) 0%, rgba(42, 157, 143, 0.03) 100%);
  border-bottom: 1px solid var(--eb-border-light);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-header-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(42, 157, 143, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.eb-hero-logo {
  display: block;
  margin: 0 auto 1.5rem auto;
  max-width: 220px;   /* caps width on large screens */
  width: 30%;         /* scales down gracefully on tablet */
  height: auto;
  mix-blend-mode: multiply;
}

@media (max-width: 768px) {
  .eb-hero-logo {
    width: 50%;        /* a little larger on mobile since it's the hero */
    max-width: 200px;
  }
}

.page-header-hero .site-title {
  margin: 0 0 1rem;
  font-weight: 700;
  font-size: 3.5rem;
  letter-spacing: 0.5px;
  color: var(--eb-primary-blue);
}

.page-header-hero .tagline {
  max-width: 42em;
  margin: 0 auto 2rem;
  line-height: 1.6;
  font-size: 1.25rem;
  color: var(--eb-text-dark);
}

/* Updated button styles for Bootstrap 5.3 */
.page-header-hero .btn-lg {
  padding: 0.875rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(30, 77, 139, 0.3);
  transition: all 0.3s ease;
}

.page-header-hero .btn-outline-primary {
  background: var(--eb-primary-blue);
  border: 2px solid var(--eb-primary-blue);
  color: white;
}

.page-header-hero .btn-outline-primary:hover:not(.disabled) {
  background: var(--eb-accent-teal);
  border-color: var(--eb-accent-teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 157, 143, 0.4);
}

.btn-badge {
  display: inline-block;
  margin-left: 1rem;
  font-size: 0.85rem;
  padding: 0.375rem 0.75rem;
  background: rgba(42, 157, 143, 0.15);
  color: var(--eb-accent-teal);
  border-radius: 20px;
  vertical-align: middle;
  font-weight: 500;
}

/* -----------------------------------------------------------------------------
   Sub-Navigation (Compatible with Bootstrap 5.3)
   ----------------------------------------------------------------------------- */
.sub-nav {
  margin: 1.5rem 0 1rem;
  border-bottom: 2px solid var(--eb-border-light);
}

#htbd-nav {
  display: flex;
}

#htbd-nav > li {
  flex: 1 1 0;
}

#htbd-nav > li > a {
  border: none;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: var(--eb-text-dark);
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
}

#htbd-nav > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--eb-accent-teal);
  transition: width 0.3s;
}

#htbd-nav > li > a:hover::after,
#htbd-nav > li.active > a::after {
  width: 100%;
}

#htbd-nav > li.active > a {
  color: var(--eb-primary-blue);
  font-weight: 600;
}

/* Legacy compatibility for nav-tabs */
.nav-tabs > li > a {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* -----------------------------------------------------------------------------
   Mission Cards - Modern card design
   ----------------------------------------------------------------------------- */
.mission-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--eb-shadow-sm);
  border: 1px solid var(--eb-border-light);
  margin-bottom: 2rem;
  transition: box-shadow 0.3s ease;
}

.mission-card:hover {
  box-shadow: var(--eb-shadow-md);
}

.mission-card .mission-title {
  color: var(--eb-primary-blue);
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.mission-card .lead-text {
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--eb-text-dark);
}

.mission-card p {
  color: var(--eb-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.mission-card p:last-child {
  margin-bottom: 0;
}

/* Highlighted text within content */
.highlight-text {
  color: var(--eb-accent-teal);
  font-weight: 600;
}

/* Accent links */
.link-accent {
  color: var(--eb-accent-teal);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.link-accent:hover {
  color: var(--eb-primary-blue);
  text-decoration: underline;
}

/* -----------------------------------------------------------------------------
   Content Copy Styling
   ----------------------------------------------------------------------------- */
main .content-copy {
  max-width: 100%;
}

.content-copy p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.content-copy h2 {
  margin: 2rem 0 1rem;
}

/* -----------------------------------------------------------------------------
   Feature Cards - Enhanced with Bootstrap 5.3 compatible icons
   ----------------------------------------------------------------------------- */
.feature-cards {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.feature-cards .row-eq {
  display: flex;
  flex-wrap: wrap;
}

.feature-cards .row-eq > [class*="col-"] {
  display: flex;
}

.feature-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--eb-border-light);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--eb-shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--eb-shadow-lg);
  border-color: var(--eb-accent-teal);
}

/* Modern icon styling using Bootstrap Icons */
.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--eb-gradient-start) 0%, var(--eb-gradient-end) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
  font-size: 2rem;
  color: white;
}

/* Legacy glyphicon support - fallback */
.card-icon {
  font-size: 2rem;
  color: var(--eb-primary-blue);
  display: block;
  text-align: center;
  margin-bottom: 1rem;
}

.feature-card .card-title {
  font-size: 1.4rem;
  color: var(--eb-primary-blue);
  margin: 0 0 1rem;
  line-height: 1.35;
  text-align: center;
  font-weight: 600;
}

.feature-card .card-text {
  flex: 1 1 auto;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--eb-text-muted);
  text-align: center;
}

.feature-card .btn {
  margin-top: auto;
}

/* Feature card buttons */
.feature-card .btn-feature {
  color: var(--eb-primary-blue);
  border: 2px solid var(--eb-primary-blue);
  padding: 0.5rem 1.75rem;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  font-weight: 500;
  text-align: center;
}

.feature-card .btn-feature:hover {
  background: var(--eb-primary-blue);
  color: white;
  transform: scale(1.05);
  text-decoration: none;
}

/* Legacy button support */
.feature-card .btn-outline {
  background: white;
  border: 1px solid var(--eb-primary-blue);
  color: var(--eb-primary-blue);
}

.feature-card .btn-outline:hover,
.feature-card .btn-outline:focus {
  background: rgba(30, 77, 139, 0.05);
  color: var(--eb-primary-blue);
}

/* -----------------------------------------------------------------------------
   Sidebar Components
   ----------------------------------------------------------------------------- */

/* Image Cards */
.image-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--eb-shadow-md);
  margin-bottom: 2rem;
  border: 1px solid var(--eb-border-light);
  transition: transform 0.3s, box-shadow 0.3s;
}

.image-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--eb-shadow-lg);
}

.image-card img {
  width: 100%;
  height: auto;
  display: block;
}

.image-card-caption {
  padding: 1.25rem;
  background: var(--eb-gray-light);
}

.image-card-caption p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--eb-text-dark);
  line-height: 1.6;
}

.image-card-caption .famous-people-list {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--eb-text-muted);
  line-height: 1.6;
}

/* Legacy thumbnail support */
.thumbnail {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--eb-shadow-md);
  margin-bottom: 2rem;
  border: 1px solid var(--eb-border-light);
}

.thumbnail .caption {
  padding: 1.25rem;
  background: var(--eb-gray-light);
}

/* News Sidebar */
.news-sidebar {
  background: white;
  border-radius: 16px;
  box-shadow: var(--eb-shadow-sm);
  border: 1px solid var(--eb-border-light);
  margin-bottom: 2rem;
  overflow: hidden;
}

.news-sidebar .news-header {
  padding: .25rem 2rem 0;
}

.news-sidebar h3 {
  color: var(--eb-primary-blue);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--eb-accent-teal);
}

.news-sidebar .list-group-item {
  border: none;
  border-bottom: 1px solid var(--eb-border-light);
  padding: 0.875rem 2rem;
  transition: all 0.3s;
  background: transparent;
}

.news-sidebar .list-group-item:last-child {
  border-bottom: none;
}

.news-sidebar .list-group-item:hover {
  background: rgba(42, 157, 143, 0.05);
  padding-left: 2.5rem;
  cursor: pointer;
  color: var(--eb-primary-blue);
}

.news-sidebar .news-footer {
  padding: 1rem 2rem 1.5rem;
}

.view-all-link {
  color: var(--eb-accent-teal);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s, color 0.3s;
}

.view-all-link:hover {
  gap: 0.75rem;
  color: var(--eb-primary-blue);
}

/* Legacy panel support for news */
.panel.panel-default {
  background: white;
  border-radius: 16px;
  box-shadow: var(--eb-shadow-sm);
  border: 1px solid var(--eb-border-light);
  margin-bottom: 2rem;
}

.panel-heading {
  padding: 1.5rem 2rem;
  background: transparent;
  border-bottom: 3px solid var(--eb-accent-teal);
}

.panel-footer {
  padding: 1rem 2rem;
  background: transparent;
  border-top: none;
}

/* Info Callout */
.info-callout {
  background: linear-gradient(135deg, rgba(30, 77, 139, 0.08) 0%, rgba(42, 157, 143, 0.08) 100%);
  border-left: 4px solid var(--eb-accent-teal);
  padding: 1.25rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.info-callout i {
  color: var(--eb-accent-teal);
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.info-callout p {
  margin: 0;
  color: var(--eb-text-dark);
  font-weight: 500;
  line-height: 1.6;
}

/* Legacy alert support */
.alert.alert-info {
  background: linear-gradient(135deg, rgba(30, 77, 139, 0.08) 0%, rgba(42, 157, 143, 0.08) 100%);
  border-left: 4px solid var(--eb-accent-teal);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.alert.alert-info .glyphicon {
  color: var(--eb-accent-teal);
  font-size: 1.5rem;
  margin-right: 0;
}

/* -----------------------------------------------------------------------------
   Responsive Spacing & Layout
   ----------------------------------------------------------------------------- */
.section,
aside.col-sm-12.col-md-4 {
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .page-header-hero .site-title {
    font-size: 2.5rem;
  }

  .page-header-hero .tagline {
    font-size: 1.1rem;
  }

  .mission-card {
    padding: 1.5rem;
  }

  .mission-card .mission-title {
    font-size: 1.75rem;
  }

  #htbd-nav > li > a {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  aside {
    margin-top: 2rem;
  }
}

/* -----------------------------------------------------------------------------
   Additional Utility Classes
   ----------------------------------------------------------------------------- */

/* Disorder cards (from other pages) */
.disorder-card {
  background: white;
  border: 1px solid var(--eb-border-light);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--eb-shadow-sm);
  transition: box-shadow 0.3s;
}

.disorder-card:hover {
  box-shadow: var(--eb-shadow-md);
}

/* Program icons (from Researchers & Clinicians page) */
.program-icon {
  font-size: 1.75rem;
  color: var(--eb-primary-blue);
  width: 44px;
  text-align: center;
  margin-right: 1rem;
}

.program {
  padding: 1rem 0;
  border-bottom: 1px solid var(--eb-border-light);
}

.program:last-child {
  border-bottom: none;
}

/* Tissue Donation page */
span.telephone {
  padding: 0.625rem;
  font-size: 1.3em;
  font-weight: bold;
  color: var(--eb-primary-blue);
}

/* -----------------------------------------------------------------------------
   Bootstrap 5.3 Icon Support
   ----------------------------------------------------------------------------- */

/* Ensure Bootstrap Icons are loaded */
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

/* Legacy glyphicon to Bootstrap Icons mapping hints */
.glyphicon {
  display: inline-block;
  font-family: 'bootstrap-icons' !important;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}

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

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth transitions for interactive elements */
a,
button,
.btn,
.feature-card,
.mission-card,
.image-card {
  transition: all 0.3s ease;
}

/* -----------------------------------------------------------------------------
   Print Styles
   ----------------------------------------------------------------------------- */
@media print {
  .page-header-hero,
  .sub-nav,
  .btn,
  .news-sidebar,
  .info-callout {
    display: none;
  }

  .mission-card {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
}

/* ============================================================================
   Imaging Carousel - Vanilla JS, no Bootstrap dependencies
   ============================================================================ */

.imaging-carousel {
  position: relative;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: #f8f9fa;
}

.carousel-slides {
  position: relative;
  width: 100%;
/*  height: 320px;       */   /* fixed media-area height */
}

.carousel-slide {
  display: none;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  /* height: 320px; */         /* match container; no more jumping */
}

.carousel-slide.active {
  display: block;
  opacity: 1;
}

/* Images crop to fill; video shows full frame + controls */
.carousel-slide img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.carousel-slide video {
  width: 100%;
  height: 320px;
  object-fit: contain;    /* no cropping, controls stay visible */
  background: #000;
  display: block;
}

.carousel-video {
  outline: none;
  background: #000;
}

/* Caption styling */
.carousel-caption-custom {
  background: var(--eb-gray-light);
  padding: 1.25rem;
  border-top: 1px solid var(--eb-border-light);
}

.carousel-caption-custom p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--eb-text-dark);
  line-height: 1.6;
}

.carousel-caption-custom strong {
  font-size: 1.05rem;
  color: var(--eb-primary-blue);
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.carousel-caption-custom .caption-text {
  color: var(--eb-text-muted);
  font-size: 0.85rem;
  font-style: italic;
}

/* Navigation buttons */
.carousel-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(30, 77, 139, 0.8);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s, background 0.3s;
  z-index: 10;
  font-size: 1.25rem;
}

.carousel-container:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: var(--eb-primary-blue);
}

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

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

/* Indicators (dots) */
.carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

.indicator.active {
  background: white;
  box-shadow: 0 0 0 2px var(--eb-primary-blue);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .carousel-btn {
    opacity: 0.7;
    width: 35px;
    height: 35px;
  }

  .carousel-slide img,
  .carousel-slide video {
    max-height: 300px;
  }
}

/* =============================================================================
   ADDITIONS: Welcome Banner, Publications, Modals
   ============================================================================= */

/* Welcome Banner */
.welcome-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(135deg, var(--eb-gradient-start) 0%, var(--eb-gradient-end) 100%);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.welcome-banner-icon {
  flex-shrink: 0;
  font-size: 1.75rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}

.welcome-banner-body strong {
  display: block;
  font-size: 1.1rem;
  color: white;
  margin-bottom: 0.4rem;
}

.welcome-banner-body p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}

/* News item links and dates */
.news-date {
  display: block;
  font-size: 0.78rem;
  color: var(--eb-accent-teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.news-item-link {
  color: var(--eb-primary-blue);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  display: block;
}

.news-item-link:hover {
  color: var(--eb-accent-teal);
  text-decoration: underline;
}

/* Publications sidebar */
.pubs-sidebar .news-header h3 {
  color: var(--eb-primary-blue);
}

.pub-item {
  padding: 0.875rem 2rem !important;
}

.pub-lab {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: white;
  background: var(--eb-primary-blue);
  border-radius: 20px;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.35rem;
}

.pub-authors {
  display: block;
  font-size: 0.8rem;
  color: var(--eb-text-muted);
  font-style: italic;
  margin-top: 0.25rem;
  line-height: 1.4;
}

/* Modal styles */
.eb-modal-header {
  background: linear-gradient(135deg, var(--eb-gradient-start) 0%, var(--eb-gradient-end) 100%);
  color: white;
  border-radius: 12px 12px 0 0;
}

.eb-modal-header .modal-title {
  color: white;
  font-size: 1.4rem;
}

.eb-modal-body {
  padding: 2rem;
  color: var(--eb-text-dark);
  line-height: 1.7;
}

.eb-modal-body p {
  margin-bottom: 1rem;
  color: var(--eb-text-muted);
}

.eb-modal-section-title {
  color: var(--eb-primary-blue);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--eb-border-light);
}

.modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: var(--eb-shadow-lg);
  overflow: hidden;
}

.modal-footer {
  border-top: 1px solid var(--eb-border-light);
  padding: 1rem 2rem;
}

/* Contact entries in modal */
.contact-entry {
  background: var(--eb-gray-light);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--eb-border-light);
}

.contact-name {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--eb-text-dark);
}

.contact-org {
  color: var(--eb-text-muted);
  font-weight: 400;
  font-size: 0.9rem;
}

.contact-email {
  margin: 0;
  font-size: 0.95rem;
  padding-left: 1.75rem;
}

/* Float utilities for EarBase (independent of .page-content) */
.eb-float-right {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.eb-float-left {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

/* Clearfix — contains floated children without extra markup */
.eb-clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Temporal bone figure (What We Do page) */
.temporal-bone-figure {
  width: 250px;
}

.temporal-bone-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.temporal-bone-caption {
  font-size: 0.9rem;
  color: var(--eb-text-muted);
  line-height: 1.4;
  margin-top: 0.5rem;
  width: 100%;
}

/* =============================================================================
   ADDITIONS: New pages, compact nav, donor banner
   ============================================================================= */

/* Clickable hero logo */
.page-header-hero a .eb-hero-logo,
.page-header-hero a:hover .eb-hero-logo {
  text-decoration: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.page-header-hero a:hover .eb-hero-logo {
  opacity: 0.85;
}



/* Donor thanks banner */
.donor-thanks {
  background: linear-gradient(135deg, var(--eb-gradient-start) 0%, var(--eb-gradient-end) 100%);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  text-align: center;
  color: white;
  margin-bottom: 2rem;
}

.donor-thanks-icon {
  font-size: 2rem;
  color: rgba(255,255,255,0.85);
  display: block;
  margin-bottom: 0.75rem;
}

.donor-thanks p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.95);
  font-style: italic;
}

/* News full page */
.news-full-item {
  border-bottom: 1px solid var(--eb-border-light);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.news-full-item:last-child {
  border-bottom: none;
}

.news-date-lg {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--eb-accent-teal);
  margin-bottom: 0.5rem;
}

.news-full-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-read-more {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Publications full page */
.pub-project-block {
  margin-bottom: 2.5rem;
}

.pub-project-title {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  border-bottom: 2px solid var(--eb-border-light);
  padding-bottom: 0.75rem;
}

.pub-lab-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--eb-gradient-start) 0%, var(--eb-gradient-end) 100%);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.02em;
}

.pub-entry {
  padding: 1.25rem 0 1.25rem 1.25rem;
  border-left: 3px solid var(--eb-border-light);
  margin-bottom: 1.25rem;
  transition: border-color 0.3s;
}

.pub-entry:hover {
  border-left-color: var(--eb-accent-teal);
}

.pub-entry-title {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--eb-text-dark);
}

.pub-year {
  color: var(--eb-text-muted);
  font-weight: 400;
  font-size: 0.85rem;
  margin-left: 0.25rem;
}

.pub-entry-authors {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--eb-text-muted);
  font-style: italic;
}

.pub-entry-abstract {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--eb-text-muted);
  line-height: 1.6;
}

/* Release Notes page */
.release-version-title {
  color: var(--eb-primary-blue);
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--eb-border-light);
}

.release-subsection {
  color: var(--eb-primary-blue);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Contact Us page */
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--eb-gray-light);
  border: 1px solid var(--eb-border-light);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: box-shadow 0.3s;
}

.contact-card:hover {
  box-shadow: var(--eb-shadow-md);
}

.contact-card-icon {
  font-size: 2.5rem;
  color: var(--eb-primary-blue);
  flex-shrink: 0;
  line-height: 1;
}

.contact-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--eb-primary-blue);
  margin-bottom: 0.25rem;
  font-family: 'Crimson Pro', Georgia, serif;
}

.contact-card-org {
  font-size: 0.85rem;
  color: var(--eb-text-muted);
  margin-bottom: 0.5rem;
}

.contact-card-email {
  font-size: 0.95rem;
  font-weight: 500;
}

/* User Guide page */
.btn-disabled {
  opacity: 0.65;
  cursor: default;
  pointer-events: none;
}

.coming-soon-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(42, 157, 143, 0.15);
  color: var(--eb-accent-teal);
  border-radius: 10px;
  padding: 0.1rem 0.5rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Access level grid */
.access-level-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .access-level-grid {
    grid-template-columns: 1fr;
  }
}

.access-level-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--eb-border-light);
  box-shadow: var(--eb-shadow-sm);
}

.access-level-header {
  padding: 1.25rem 1.5rem 1rem;
  text-align: center;
}

.access-level-header i {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.5rem;
}

.access-level-header h4 {
  margin: 0 0 0.25rem;
}

.access-level-sub {
  font-size: 0.8rem;
  margin: 0;
  opacity: 0.85;
}

.open-access .access-level-header {
  background: linear-gradient(135deg, rgba(42, 157, 143, 0.15) 0%, rgba(42, 157, 143, 0.05) 100%);
}

.open-access .access-level-header i,
.open-access .access-level-header h4 {
  color: var(--eb-accent-teal);
}

.controlled-access .access-level-header {
  background: linear-gradient(135deg, rgba(30, 77, 139, 0.12) 0%, rgba(30, 77, 139, 0.04) 100%);
}

.controlled-access .access-level-header i,
.controlled-access .access-level-header h4 {
  color: var(--eb-primary-blue);
}

.access-level-list {
  padding: 1rem 1.5rem 1.25rem 2rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--eb-text-muted);
  line-height: 1.7;
}

/* Data example block */
.data-example-block {
  background: var(--eb-gray-light);
  border: 1px solid var(--eb-border-light);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: var(--eb-text-muted);
  line-height: 1.7;
}

.data-example-block ol,
.data-example-block p {
  margin-bottom: 0;
}

/* Quick Links sidebar */
.quicklinks-sidebar .news-header h3 {
  color: var(--eb-primary-blue);
}

.quicklink-item {
  display: block;
  color: var(--eb-primary-blue);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.1rem 0;
}

.quicklink-item i {
  color: var(--eb-accent-teal);
  margin-right: 0.4rem;
  font-size: 0.9rem;
}

.quicklink-item:hover {
  color: var(--eb-accent-teal);
  text-decoration: none;
}

/* Visually hidden — accessible to screen readers and search engines, invisible to sighted users */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* TEMPORARY: Beta status banner — remove at full release */
.beta-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0;
  padding: 0.75rem 1.1rem;
  background: #fdf2f2;
  border: 1px solid #e7b6b6;
  border-left: 4px solid #c0392b;
  border-radius: 8px;
  color: #b02a2a;
  font-size: 0.95rem;
  line-height: 1.4;
}

.beta-banner-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}
