* {
  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: flex;
  justify-content: flex-start;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.main-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.tagline {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 2rem;
  font-weight: 500;
  color: #903e08;
  line-height: 1.3;
  flex: 1;
  letter-spacing: 0.7px;
}

/* Remove old header styles that are no longer needed */
.header-text,
.header-text h1,
.subtitle,
.endorsements,
.header-logo,
.logo-container,
.endorsement-text {
  display: none;
}

nav {
  background: #005874;
  border-bottom: 1px solid #005874;
  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: #005874;
  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 Styles */
.upcoming-events {
  background: #f59e0b;
  border-radius: 12px;
  padding: 0.5rem 1.5rem 1.5rem 1.5rem;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  border: 2px solid #d97706;
  margin-bottom: 2rem;
}

.upcoming-events h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #005874;
  margin-bottom: 1rem;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  width: 100%;
  display: block;
  padding: 0.5rem 0;
}

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

.event-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 1rem;
  border-left: 4px solid #005874;
  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: #005874;
}

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

/* News Container as separate grid item */
.news-container {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.news-items-wrapper {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.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: #005874;
  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: #903e08;
  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: #005874;
   outline: none;
}

#mc_embed_signup .button {
  background: #903e08;
  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: #005874;
}

/* 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: #005874;
  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 #005874;
  border-left: 4px solid #005874;
  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: #005874;
}

.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: #005874;
  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: #005874;
}

.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: #903e08;
  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: #005874;
  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 {
      flex-direction: column;
      text-align: center;
      gap: 1.5rem;
      align-items: center;
  }

  .header-left {
      flex-direction: column;
      text-align: center;
      gap: 1rem;
  }

  .main-logo {
      height: 60px;
  }

  .tagline {
      font-size: 1.1rem;
      text-align: center;
  }

  .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 #005874;
  }

  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;
  }
}

@media (max-width: 480px) {
  .tagline {
      font-size: 1rem;
  }
  
  .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 */
}

.logo-caption {
  font-size: .95rem;
  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: #005874;
  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;
  }
}
