:root {
  --bg: #07111f;
  --surface: #0f1c2f;
  --surface-2: #15263d;
  --text: #f5f7fb;
  --muted: #8fa2bf;
  --accent: #5ad2ff;
  --accent-2: #8b5cf6;
  --success: #2ec4b6;
  --border: rgba(255,255,255,0.12);
  --shadow: 0 20px 60px rgba(0,0,0,0.25);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(318deg, #373383, #3d2643 45%, #2a3973);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(106, 44, 120, 0.58);
  border-bottom: 1px solid var(--border);
}
.navbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.95rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.nav-links a {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  color: #ffffff;
  transition: 180ms ease;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(154, 122, 211, 0.6);
  color: var(--text);
}
.search-toggle,
.search-submit {
  border: 0;
  color: var(--text);
  background: linear-gradient(122deg, #7b57a3, #2e4057);
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}
.search-toggle { padding: 0.65rem 0.8rem; font-size: 1.12rem; line-height: 1; }

main { max-width: 1180px; margin: 0 auto; padding: 0 1.2rem 3rem; }
.hero {
  padding: 3.2rem 1.4rem 2.2rem;
  margin-top: 1rem;
  display: grid;
  gap: 1.2rem;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background:
    linear-gradient(34deg, rgba(46, 21, 53, 0.8), rgba(120, 33, 149, 0.47)), url("images-best-bmvc/bg-banner.svg");
  background-size: cover;
  background-position: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.14), transparent 42%);
  pointer-events: none;
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero h1, .page-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 0;
  line-height: 1.1;
}
.hero p, .section-copy {
  color: #e9d7fb;
  max-width: 760px;
}

.badge {
  display: inline-block;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(90, 210, 255, 0.25);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(90, 210, 255, 0.08);
  font-size: 0.92rem;
}
.hero-card,
.panel,
.card,
.table-card,
.speaker-card,
.organizer-card,
.sponsor-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 24px;
}

.organizer-card{ text-align: center;}

.organizer-card p{font-size: 0.8rem;}

.hero-card { padding: 1.3rem; display: grid; gap: 1rem; }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel { padding: 1.3rem; }
.panel h2, .panel h3 { margin-top: 0; }
.list { padding-left: 1.1rem; color: #f9f9e8; }
.committee-list {
  margin: 0;
  padding-left: clamp(0.15rem, 1vw, 0.5rem);
  color: #f9f9e8;
  list-style: none;
  text-align: left;
}
.committee-list li {
  position: relative;
  padding-left: 1.4rem;
  overflow-wrap: anywhere;
}
.committee-list li + li { margin-top: 0.55rem; }
.committee-list li::before {
  content: "";
  position: absolute;
  top: 0.8em;
  left: 0;
  width: 0.48rem;
  height: 0.48rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: transparent;
  transform: translateY(-50%);
}
.stats { display: grid; gap: 0.8rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: 1rem; border-radius: 16px; background: rgba(255,255,255,0.03); }
.stat strong { display: block; font-size: 1.25rem; }
.section { padding-top: 1rem; }
.section { width: 100%; }
.section > *,
.hero,
.hero > * {
  min-width: 0;
  max-width: 100%;
}
.about-workshop h2 { text-align: center; }
.about-workshop .section-copy {
  max-width: none;
  margin-inline: auto;
  text-align: justify;
}
.submission-guidelines h2 { text-align: center; }
.guidelines-list {
  max-width: none;
  margin-bottom: 0;
}
.guidelines-list li {
  padding-left: 0.25rem;
  text-align: left;
  overflow-wrap: anywhere;
}
.guidelines-list li + li { margin-top: 0.8rem; }
.guidelines-list a {
  color: var(--accent);
  text-decoration: underline;
}
.topics-interest h2 { text-align: center; }
.topics-interest .section-copy {
  width: 100%;
  max-width: none;
  text-align: left;
}
.topics-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 1rem 0 1.25rem;
  padding: 0;
  list-style: none;
}
.topics-list li {
  position: relative;
  padding: 0.8rem 0.9rem 0.8rem 2rem;
  border: 1px solid rgba(90, 210, 255, 0.16);
  border-radius: 14px;
  background: rgba(90, 210, 255, 0.05);
  text-align: left;
  overflow-wrap: anywhere;
}
.topics-list li::before {
  content: "◆";
  position: absolute;
  top: 0.82rem;
  left: 0.8rem;
  color: var(--accent);
  font-size: 0.7rem;
}
.card { padding: 1.1rem; }
.card h3 { margin-top: 0; }
.timeline { display: grid; gap: 0.8rem; }
.timeline-item { padding: 0.9rem 1rem; border-left: 2px solid var(--accent); background: rgba(255,255,255,0.03); border-radius: 0 16px 16px 0; }
.table-card { padding: 1.3rem; margin-top: 1rem; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.8rem; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--accent); }
.schedule h2 { margin-top: 0; text-align: center; }
.schedule-table {
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid rgba(90, 210, 255, 0.16);
  border-radius: 16px;
  overflow: hidden;
}
.schedule-table th,
.schedule-table td {
  width: 50%;
  padding: 0.85rem 1.25rem;
  text-align: center;
  overflow-wrap: anywhere;
}
.schedule-table th + th,
.schedule-table td + td { border-left: 1px solid var(--border); }
.schedule-table thead th {
  background: rgba(90, 210, 255, 0.1);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.schedule-table tbody tr { transition: background-color 180ms ease; }
.schedule-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.03); }
.schedule-table tbody tr:hover { background: rgba(90, 210, 255, 0.08); }
.schedule-table tbody tr:last-child td { border-bottom: 0; }
.schedule-table td:first-child {
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.speaker-card, .organizer-card, .sponsor-card { padding: 1rem; }
.organizer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.section-title {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
}
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.sponsor-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: center;
}
.sponsor-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}
.sponsor-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 132px;
  margin-bottom: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.94);
  padding: 1.15rem;
  overflow: hidden;
}
.sponsor-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.contact-emails {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
}
.contact-emails__icon {
  display: flex;
  flex: 0 0 auto;
  color: var(--accent);
}
.contact-emails__icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-emails__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
}
.contact-emails__links a {
  color: var(--text);
  overflow-wrap: anywhere;
}
.contact-emails__links a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.avatar {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: white; margin-bottom: 0.75rem;
}
footer {
  border-top: 1px solid var(--border);
  background: #3c135599;
  margin-top: 2rem;
}
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 1.3rem 1.2rem 2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: #ffffff;
}
.search-overlay {
  position: fixed; inset: 0; background: rgba(3,8,16,0.8); backdrop-filter: blur(8px); z-index: 2000;
  display: grid; place-items: center; padding: 1rem;
}
.search-panel {
  width: min(720px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 1.2rem; box-shadow: var(--shadow);
}
.search-form { display: flex; gap: 0.6rem; margin-bottom: 0.8rem; }
.search-form input {
  flex: 1; border: 1px solid var(--border); background: rgba(255,255,255,0.05); color: var(--text); padding: 0.8rem 0.95rem; border-radius: 999px;
}
.search-results { display: grid; gap: 0.7rem; max-height: 56vh; overflow: auto; }
.result-item { padding: 0.9rem 1rem; border-radius: 16px; background: rgba(255,255,255,0.03); }
.result-item strong { display: block; margin-bottom: 0.2rem; }
.result-item small { color: var(--muted); }
.hidden { display: none !important; }
.people-pic {max-height: 125px;border-radius: 125px;}

.image-container {
    display: flex;
    justify-content: center; /* Horizontal center */
    align-items: center;     /* Vertical center */
}

.image-container img {
  max-height: 220px;
  border-radius: 125px;
}


@media (max-width: 1000px) {
  .organizer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sponsor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .grid-2, .grid-3, .stats, .topics-list { grid-template-columns: 1fr; }
  .navbar { flex-wrap: wrap; }
  .nav-links { justify-content: center; }
  .organizer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  main { padding-inline: 0.75rem; }
  .hero { padding: 2rem 1rem 1.4rem; border-radius: 20px; }
  .hero h1, .page-title { font-size: clamp(1.7rem, 9vw, 2.25rem); }
  .panel, .card, .hero-card, .table-card { padding: 1rem; border-radius: 18px; }
  .schedule-table { font-size: 0.95rem; }
  .schedule-table th, .schedule-table td { padding: 0.7rem 0.6rem; }
  .contact-emails { align-items: flex-start; }
  .contact-emails__links { flex-direction: column; }
  .section-copy, .list { overflow-wrap: anywhere; }
  .sponsor-grid { grid-template-columns: 1fr; }
  .sponsor-visual { height: 150px; }
}
