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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #1a202c;
  background: #ffffff;
  font-size: 16px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
}

/* Updated Header Styles */
header {
  background: #ffffff;
  color: #1a202c;
  padding: 1.5rem 0;
  position: relative;
  border-bottom: 2px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  align-items: center;
  column-gap: 12px;
  grid-template-columns: max-content 1fr max-content;
}

/* Logo & partner never shrink off-screen */
.main-logo {
  height: 100px;
  width: auto;
  object-fit: contain;
}

.partner-logo {
  height: 100px;
  width: auto;
  object-fit: contain;
  justify-self: end;
}

/* Make the long title flexible; show ellipsis instead of pushing logos */
.header-content .tagline {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1.25rem, 2vw + .1rem, 2rem);
  font-weight: 500;
  color: #e38b2c;
  line-height: 1.15;
  letter-spacing: .7px;
  white-space: normal;
  /* allow wrapping */
  overflow: hidden;
  /* don't overflow the middle column */
  display: -webkit-box;
  /* line clamp support */
  -webkit-line-clamp: 2;
  /* max 2 lines */
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Subhead: make it pop */
.subhead {
  margin: .5rem 0 0;
  font-size: clamp(1.25rem, 1.2vw + .3rem, 1.6rem);
  font-weight: 600;
  color: #2c5282;
  /* brand blue to stand out under the H2 */
  letter-spacing: .3px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.subhead::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1.2em;
  background: #f59e0b;
  /* amber accent */
  border-radius: 4px;
  transform: translateY(1px);
}

/* Emphasized call-to-action line */
.cta-lead {
  margin-top: .75rem;
  padding: .6rem .9rem;
  font-size: clamp(1.05rem, 1.2vw + .2rem, 1.4rem);
  font-weight: 700;
  color: #1a365d;
  /* navy text */
  border-left: 6px solid #f59e0b;
  /* amber accent */
  background: linear-gradient(90deg, rgba(245, 158, 11, .12), rgba(245, 158, 11, .05));
  border-radius: 8px;
  letter-spacing: .2px;
}

nav {
  background: #2c5282;
  border-bottom: 1px solid #2c5282;
  box-shadow: 0 2px 10px rgba(0, 88, 116, 0.2);
  position: relative;
}

nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
}

nav li {
  margin-right: 2rem;
}

nav a {
  color: #dbeafe;
  text-decoration: none;
  padding: 0.3rem 0;
  display: block;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
}

nav a:hover {
  color: white;
  border-bottom-color: #f59e0b;
}

nav a.active {
  color: white;
  border-bottom-color: #f59e0b;
}

main {
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero section styles */
.hero {
  padding: 3rem 0;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #fefefe 0%, #f8fafc 100%);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 88, 116, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #2c5282;
  position: relative;
}

.hero h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #f59e0b;
  border-radius: 2px;
}

/* Update the hero grid to use flexbox for equal heights */
.hero-grid {
  display: flex;
  gap: 3rem;
  align-items: stretch;
}

.hero-grid>div:first-child {
  flex: 2;
}

.hero-grid>div:last-child {
  flex: 1;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #1a202c;
  line-height: 1.7;
}

/* Make the hero visual adjust to content height */
.hero-visual {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  text-align: left;
  display: flex;
  align-items: stretch;
  height: 100%;
}

/* Video container styling */
.video-container {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}

.video-container iframe {
  border-radius: 8px;
}

/* Events and News Grid Layout */
.events-news-grid {
  padding: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
}

/* Upcoming Events: fixed height with internal scrolling */
.upcoming-events {
  background: #f59e0b;
  border-radius: 12px;
  padding: 0.5rem 1.5rem 1.5rem;
  box-shadow: 0 4px 15px rgba(245, 158, 11, .3);
  border: 2px solid #d97706;
  margin-bottom: 24px;

  /* NEW: fix the overall height and stack header + list */
  height: 720px;
  /* ← adjust to taste (e.g., 500–650px) */
  display: flex;
  flex-direction: column;
}

.upcoming-events h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #2c5282;
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, .2);

  /* keep header visible; list below will scroll */
  flex: 0 0 auto;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  /* NEW: scroll only the list area */
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: .25rem;
  /* space for scrollbar */

  /* smoother mobile scrolling */
  -webkit-overflow-scrolling: touch;
}

/* optional: slimmer scrollbar (WebKit) */
.events-list::-webkit-scrollbar {
  width: 8px;
}

.events-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .2);
  border-radius: 8px;
}

.event-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 1rem;
  border-left: 4px solid #2c5282;
  transition: all 0.3s ease;
}

.event-item:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.event-date {
  font-size: 0.9rem;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 0.25rem;
}

.event-platform {
  font-size: 0.8rem;
  color: #7c3aed;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.event-title {
  font-size: 0.9rem;
  color: #1a202c;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.event-title strong {
  color: #2c5282;
}

.event-speaker {
  font-size: 0.8rem;
  color: #6b7280;
  font-style: italic;
  line-height: 1.3;
}

/* Base description text (not the button) */
.event-description {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.45;
  margin-top: .25rem;
}

/* Register link → brand CTA button */
.event-description a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  background: #2c5282;
  /* brand navy */
  border: 2px solid #2c5282;
  padding: .15rem .5rem;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(44, 82, 130, .18);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  margin-top: 0.6rem;
}

/* subtle external-arrow cue */
.event-description a[target="_blank"]::after {
  content: "↗";
  font-size: .95em;
  line-height: 1;
}

.event-description a:hover {
  background: #1a365d;
  /* deeper navy on hover */
  border-color: #1a365d;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(26, 54, 93, .25);
}

.event-description a:focus-visible {
  outline: 3px solid #f59e0b;
  /* amber focus ring */
  outline-offset: 2px;
}

/* Smaller padding on narrow screens */
@media (max-width:480px) {
  .event-description a {
    font-size: .95rem;
    padding: .5rem .75rem;
  }
}

/* Latest STSDS News: fixed panel + scrollable list */
.news-container {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 950px;
  /* ← fix the height (match your Events card) */
}

.news-container h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c5282;
  margin-bottom: 1rem;
  text-align: center;
  border-bottom: 2px solid #2c5282;
  padding-bottom: 0.5rem;
  flex-shrink: 0;
  /* header stays visible */
}

.news-items-wrapper {
  flex: 1 1 auto;
  /* list takes remaining space */
  overflow-y: auto;
  /* scroll only the list */
  padding-right: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

/* (optional) slimmer scrollbar */
.news-items-wrapper::-webkit-scrollbar {
  width: 8px;
}

.news-items-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .2);
  border-radius: 8px;
}

.news-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #d1d5db;
  flex-shrink: 0;
}

.news-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.news-thumbnail {
  margin-bottom: 0.75rem;
  border-radius: 8px;
  overflow: hidden;
}

.news-thumbnail iframe {
  border-radius: 8px;
}

/* News link styling */
.news-link {
  display: block;
  text-decoration: none;
}

.news-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
}

.news-title-link {
  text-decoration: none;
  color: inherit;
}

.news-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c5282;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.news-meta {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.news-description {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.4;
  margin: 0;
}

/* Mailchimp Form Styles - SIMPLE */
#mc_embed_shell {
  margin-top: 2rem;
}

#mc_embed_signup {
  background: #fff;
  margin: 0 auto;
  border: 1px solid #f59e0b;
  border-left: 4px solid #f59e0b;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.15);
}

#mc_embed_signup h2 {
  color: #e38b2c;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 600;
}

#mc_embed_signup .mc-field-group {
  margin-bottom: 1.5rem;
}

#mc_embed_signup label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #1a202c;
  font-size: 1rem;
}

/* Simple input styles - replace all the complex Mailchimp CSS with this */
#mc_embed_signup input[type="email"],
#mc_embed_signup input[type="text"] {
  width: 100%;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  padding: 0.875rem;
  font-size: 1rem;
  background-color: white;
  box-sizing: border-box;
}

#mc_embed_signup input[type="email"]:focus,
#mc_embed_signup input[type="text"]:focus {
  border-color: #2c5282;
  outline: none;
}

#mc_embed_signup .button {
  background: #e38b2c;
  border: none;
  border-radius: 8px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 1rem;
}

#mc_embed_signup .button:hover {
  background: #7a3507;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(144, 62, 8, 0.3);
}

#mc_embed_signup .indicates-required {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #6b7280;
}

#mc_embed_signup .asterisk {
  color: #dc2626;
  font-weight: bold;
}

#mc_embed_signup .clear {
  text-align: center;
}

/* Success message styling */
.subscription-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: #22c55e;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.success-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 1rem;
}

.success-message {
  font-size: 1.1rem;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.success-submessage {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 2rem;
}

/* Form elements */
.form-description {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #4b5563;
}

.form-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  font-size: 0.95rem;
}

.honeypot {
  position: absolute;
  left: -5000px;
}

.hidden-iframe {
  display: none;
}

.mce_inline_error {
  display: none;
}

#mce-error-response {
  display: none;
}

#mce-success-response {
  display: none;
}

/* Page header styles */
.page-header {
  padding: 3rem 0 2rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2c5282;
}

/* Section styles */
.section {
  padding: 3rem 0;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
}

.section:nth-child(even) {
  background: linear-gradient(135deg, #fefefe 0%, #f9fafb 100%);
}

.section:nth-child(even)::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 88, 116, 0.02) 0%, transparent 70%);
  pointer-events: none;
}

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

.section h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: #2c5282;
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #f59e0b;
  border-radius: 1px;
}

.section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #374151;
}

.section p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #1a202c;
  line-height: 1.7;
}

/* Grid layouts */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.schedule-item {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #2c5282;
  border-left: 4px solid #2c5282;
  border-radius: 8px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.schedule-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 88, 116, 0.2);
  border-left-width: 6px;
}

.schedule-item h4 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2c5282;
}

.topics-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.topic-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  background: white;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.topic-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #f59e0b;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.topic-item:hover {
  border-color: #2c5282;
  box-shadow: 0 8px 25px rgba(0, 88, 116, 0.15);
  transform: translateY(-3px);
}

.topic-item:hover::before {
  transform: scaleX(1);
}

.topic-item h4 {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #2c5282;
}

.topic-item p {
  color: #6b7280;
  font-size: 0.95rem;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.format-item {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  transition: all 0.3s ease;
  position: relative;
}

.format-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.format-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.format-item:hover::before {
  width: 100px;
  height: 100px;
}

.format-number {
  font-size: 2rem;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 0.5rem;
}

/* Organizers styles */
.former-organizers ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

.former-organizers li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Link styles */
.email-link {
  color: #e38b2c;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.email-link:hover {
  color: #7a3507;
  text-decoration: underline;
}

.contributor-link {
  color: #1e40af;
  text-decoration: none;
}

.contributor-link:hover {
  text-decoration: underline;
}

/* Contact and footer */
.contact {
  background: #2c5282;
  color: white;
  padding: 3rem 2rem;
  margin-top: 2rem;
}

.contact-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.contact h2 {
  color: white;
  margin-bottom: 1rem;
}

.contact-email {
  font-size: 1.1rem;
  color: #fbbf24;
  margin: 1rem 0;
  font-weight: 600;
}

footer {
  background: #374151;
  color: #d1d5db;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* Utility styles */
.highlight {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #f59e0b;
  text-decoration-thickness: 3px;
  color: #1a202c;
}

/* Responsive design */
@media (max-width: 768px) {

  .header-content,
  .nav-content,
  main {
    padding: 0 1rem;
  }

  .header-content {
    grid-template-columns: 1fr;
    row-gap: .5rem;
    text-align: center;
    padding: 0 1rem;
  }

  .main-logo {
    justify-self: center;
    height: 60px;
  }

  .partner-logo {
    justify-self: center;
    height: 48px;
  }

  .header-content .tagline {
    -webkit-line-clamp: unset;
    line-clamp: unset;
  }

  /* allow wrapping on tablets/phones */

  .page-header h1 {
    font-size: 2rem;
  }

  .hero-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-visual {
    max-height: 600px;
  }

  .events-news-grid {
    padding: 1rem;
    gap: 1rem;
    grid-template-rows: auto auto;
    max-height: 600px;
    overflow-y: auto;
  }

  .upcoming-events {
    padding: 1rem;
  }

  .news-container {
    padding: 1rem;
    max-height: 400px;
  }

  .event-item {
    padding: 0.75rem;
  }

  .event-title {
    font-size: 0.85rem;
  }

  .event-speaker {
    font-size: 0.75rem;
  }

  .news-items-wrapper {
    overflow-y: auto;
  }

  .news-thumbnail iframe {
    height: 100px;
  }

  .news-content h4 {
    font-size: 0.9rem;
  }

  nav ul {
    flex-direction: column;
  }

  nav li {
    margin-right: 0;
    border-bottom: 1px solid #2c5282;
  }

  nav li:last-child {
    border-bottom: none;
  }

  .section {
    padding: 2rem 0;
  }

  .topics-list {
    grid-template-columns: 1fr;
  }

  #mc_embed_signup {
    padding: 1.5rem;
  }

  .video-container {
    padding: 1rem;
  }

  .video-container iframe {
    height: 300px;
  }

  /* Show the right column (events/news) first on phones */
  .hero-visual {
    order: -1;
  }

  /* (optional) tidy spacing when reordered */
  .hero-grid {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .tagline {
    font-size: 1rem;
  }

  .header-content .tagline {
    font-size: 1rem;
  }

  /* now this overrides correctly */
  .main-logo {
    height: 50px;
  }

  #mc_embed_signup {
    padding: 1rem;
  }

  #mc_embed_signup h2 {
    font-size: 1.5rem;
  }

  .video-container iframe {
    height: 250px;
  }

  .upcoming-events h3 {
    font-size: 1.5rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }
}

/* Supporting Institutions (Contact page) */
.logos-section {
  max-width: 1000px;
  margin: 0 auto;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: white;
}

.logo-item img {
  display: block;
  /* removes baseline gap */
  width: 100%;
  max-width: 200px;
  /* keep consistent width */
  height: 80px;
  /* consistent logo height */
  object-fit: contain;
  /* preserve aspect ratio */
}

.logos-grid .logo-caption {
  font-size: 0.8rem;
  /* pick your size */
  color: #374151;
  text-align: center;
}

/* Small screens */
@media (max-width: 480px) {
  .logo-item img {
    height: 64px;
  }
}

/* --- Dropdown Navigation --- */
.nav-list {
  position: relative;
  display: flex;
}

nav li.has-dropdown {
  position: relative;
}

nav li.has-dropdown>a::after {
  content: ' ▾';
  font-size: 0.8em;
}

nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #2c5282;
  border: 1px solid #004b64;
  border-top: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .15);
  z-index: 50;
}

nav .dropdown-menu li {
  margin-right: 0;
}

nav .dropdown-menu a {
  padding: .6rem 1rem;
  border-bottom: none;
  white-space: nowrap;
}

nav li.has-dropdown:hover>.dropdown-menu {
  display: block;
}

/* Mobile: stack dropdown as inline list */
@media (max-width: 768px) {
  nav .dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
  }
}

/* --- Past Talks Page Styles --- */
.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}

.talk-card {
  background: #fff;
  border: 1px solid #e6eefb;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  margin-bottom: 2rem;
}

.talk-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: #163a66;
  margin: 0 0 0.25rem;
}

/* Make talk titles with links blend into design */
.talk-title a {
  color: #163a66;
  /* same as .talk-title */
  text-decoration: none;
  /* remove underline */
  font-weight: 700;
  /* keep bold for emphasis */
}

.talk-title a:hover {
  color: #1f6feb;
  /* your brand blue from .btn */
  text-decoration: underline;
}


.talk-date {
  color: #718096;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.talk-speaker {
  font-weight: 600;
}

.talk-affil {
  color: #6b7280;
  font-style: italic;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

/* Make links and buttons with .btn look identical */
a.btn,
button.btn {
  display: inline-flex;
  /* align text + icon consistently */
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  /* space between 🔗 and text */

  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  border: 1.5px solid #1f6feb;

  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1.2;

  color: #1f6feb;
  background: #fff;
  text-decoration: none;
  cursor: pointer;

  min-height: 44px;
  /* ✅ ensures consistent height */
  min-width: 160px;
  /* ✅ optional: keeps widths balanced */
  box-sizing: border-box;
  /* ensure padding + border consistent */
}

a.btn:hover,
button.btn:hover {
  background: #f0f6ff;
}


.btn-primary {
  background: #1f6feb;
  color: #fff;
}

.btn-primary:hover {
  background: #164aa3;
}

/* Actions container should be positioning context for the popover */
.actions {
  position: relative;
}

/* --- Past Talks: mobile-friendly video --- */

/* Base: let the video define the aspect ratio, not the wrapper */
.video-well {
  margin: 1rem 0;
  background: transparent;
  /* no forced black frame */
  border-radius: 12px;
  overflow: hidden;
  /* remove fixed aspect on the wrapper so controls don't get cramped */
  aspect-ratio: auto;
}

/* Make the video responsive and crisp */
.video-well video {
  display: block;
  width: 100%;
  height: auto;
  /* keep natural height from aspect-ratio */
  aspect-ratio: 16 / 9;
  /* consistent shape across devices */
  border-radius: 12px;
  background: #000;
  /* still show black behind letterboxed content */
  object-fit: contain;
  /* don't crop slides/screen recordings */
}

/* Small screens: give it breathing room and nice edge-to-edge feel */
@media (max-width: 600px) {
  .talk-card {
    padding: 0.875rem;
  }

  /* Nudge video wider inside the card for a modern look */
  .video-well {
    margin: 0.75rem -0.5rem;
    /* bleed a bit to card edges */
    border-radius: 0;
    /* edges align with card */
  }

  .video-well video {
    border-radius: 12px;
    /* keep rounded corners on the actual video */
    max-height: 56vh;
    /* avoid “tall video” scroll traps */
  }
}

/* Ultra-small phones */
@media (max-width: 380px) {
  .video-well video {
    max-height: 50vh;
    /* keep controls comfortably usable */
  }
}

/* Optional: if some sources are 4:3 (older decks/recordings), tag the card with .ar-4x3 */
.talk-card.ar-4x3 .video-well video {
  aspect-ratio: 4 / 3;
}

/* Make YouTube <iframe> behave like the responsive <video> */
.video-well iframe {
  display: block;
  width: 100%;
  height: auto;           /* let aspect ratio control height */
  aspect-ratio: 16 / 9;   /* consistent shape */
  border: 0;
  border-radius: 12px;
  background: #000;       /* fills behind letterboxing */
}

/* Small screens: match the video constraints */
@media (max-width: 600px) {
  .video-well iframe {
    max-height: 56vh;
  }
}
@media (max-width: 380px) {
  .video-well iframe {
    max-height: 50vh;
  }
}
