html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #fff;
  color: #333;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

* {
  box-sizing: border-box;
}

.hero {
  background-color: #b0313f;
  color: white;
  padding: 2rem 0 1rem 0;
  text-align: center;
}

.hero-content {
  max-width: 75em;
  margin: 0 auto;
  padding: 0 2rem;
}

.content {
  max-width: 75em;
  margin: 0 auto;
  padding: 2rem;
}

.centered-svg {
  width: 18.75em;
  height: auto;
  margin: 2rem auto;
  display: block;
}

.intro-text {
  font-size: 1rem;
  line-height: 1.6;
  margin: 1rem 0;
  text-align: justify;
}

.register-program-button {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.register-button {
  display: inline-block;
  padding: 1rem 1rem;
  font-size: 1.3rem;
  background-color: #ffffff;
  color: #b0313f;
  text-decoration: none;
  border-radius: 0.3125em;
  transition: background-color 0.3s;
  width: 200px;
  text-align: center;
  box-sizing: border-box;
}

.register-button:hover {
  background-color: #f0f0f0;
}

@media (max-width: 48em) {
  .register-button {
    width: 180px;
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
  }
}

.sponsor-logos {
  background: #f5f5f5;
  padding: 2rem 1rem;
  margin: 1rem 0;
  text-align: center;
  border-radius: 0.3125em;
  width: 100%;
}

.sponsor-tier {
  margin: 1rem 0;
  width: 100%;
}

.sponsor-tier h3 {
  color: #b0313f;
  margin-bottom: 1.5rem;
}

.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

.sponsor-logo {
  transition: transform 0.2s;
}

.sponsor-logo:hover {
  transform: scale(1.05);
}

.sponsor-logo img {
  max-width: 100%;
  height: auto;
}

/* Sponsor logos: keep aspect ratio, fix vertical size per tier */
.sponsor-logo img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto; /* default fallback */
}

/* Gold sponsors get larger vertical height */
.gold .sponsor-logo img {
  max-height: 12rem;
  width: auto;
}

/* Silver sponsors get medium vertical height */
.silver .sponsor-logo img {
  max-height: 6rem;
  width: auto;
}

/* Community sponsors get smaller vertical height */
.community .sponsor-logo img {
  max-height: 4rem;
  width: auto;
}

/* Supporters section */
.supporter-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto;
  padding: 0 1rem;
  max-width: 50rem;
}

.supporter-name {
  color: #666;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0.25rem;
}

@media (max-width: 48em) {
  .sponsor-logos {
    padding: 1rem 0.5rem;
  }

  .sponsor-grid {
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .gold .sponsor-logo img {
    max-height: 6rem;
    width: auto;
  }

  .silver .sponsor-logo img {
    max-height: 3.25rem;
    width: auto;
  }

  .community .sponsor-logo img {
    max-height: 3rem;
    width: auto;
  }
}

h2 {
  border-bottom: 2px solid #b0313f;
  padding-bottom: 0.5rem;
  margin-top: 2rem;
  color: #b0313f;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th,
td {
  border: 1px solid #ddd;
  padding: 0.8rem;
  text-align: left;
}

@media (max-width: 48em) {
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrapper table {
    min-width: 100%;
    width: auto;
  }

  .sponsor-content th,
  .sponsor-content td {
    padding: 0.5rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }
}

th {
  background: #f5f5f5;
}

.program-link {
  color: #333;
  text-decoration: underline;
  cursor: pointer;
}

.program-link:hover {
  color: #333;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 0.25rem;
  margin-right: 0.2rem;
  vertical-align: middle;
}

.badge-lecture {
  background-color: #b0313f;
  color: white;
}

.badge-sponsor {
  background-color: #4a90e2;
  color: white;
}

.red-link {
  color: #b0313f;
  text-decoration: none;
}

.red-link:hover {
  color: #922732;
  text-decoration: underline;
}

.speaker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
  max-width: 62.5em;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 48em) {
  .speaker-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.speaker-card {
  background: #f5f5f5;
  padding: 2rem;
  border-radius: 0.3125em;
  text-align: center;
  box-shadow: 0 0.125em 0.25em rgba(0, 0, 0, 0.1);
  max-width: 100%;
}

.speaker-image {
  width: 9.375em;
  height: 9.375em;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.contact-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: #b0313f;
  color: white;
  text-decoration: none;
  border-radius: 0.3125em;
  margin: 1rem 0;
  transition: background-color 0.3s;
  border: none;
  font-size: 1rem;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.contact-button:hover:not(:disabled) {
  background-color: #922732;
}

.contact-button:disabled {
  background-color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

.speaker-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 1rem 0 0.5rem;
}

.speaker-role {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.speaker-bio {
  text-align: left;
  margin: 1rem 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #444;
}

.talk-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 1.1rem;
}

.talk-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}
