@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --cream: #fdf8ee;
  --teal: #0a3138;
  --red: #9e2a2b;
  --gold: #bd8b52;
  --teal-light: #3a9492;
  --grey: #666;
  --white: #fff;
  --border: rgba(10,49,56,0.1);
}

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

body {
  background: var(--cream);
  color: var(--teal);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--teal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2.5rem;
  height: 56px;
}
nav .brand {
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  color: var(--cream);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}
nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 3px;
  transition: background 0.2s;
}
nav a:hover, nav a.active {
  background: rgba(255,255,255,0.12);
}

/* ── HERO (index only) ── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  opacity: 0.5;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,49,56,0.35) 0%,
    rgba(253,248,238,0.6) 50%,
    var(--cream) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 2rem;
}
.hero h1 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  color: var(--teal);
}
.hero .subtitle {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-style: italic;
  color: var(--grey);
  margin-bottom: 2.25rem;
}
.hero .meta-bar {
  display: inline-flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  background: rgba(255,255,255,0.7);
  border: 2px solid var(--gold);
  border-radius: 4px;
  padding: 0.8rem 2rem;
  backdrop-filter: blur(6px);
}
.hero .meta-bar span { white-space: nowrap; }
.btn {
  display: inline-block;
  margin-top: 2rem;
  background: var(--red);
  color: var(--white);
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.8rem 2.5rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: #852324; transform: translateY(-1px); }

/* ── PAGE HEADER (non-index pages) ── */
.page-header {
  background: var(--teal);
  color: var(--cream);
  padding: 4rem 2rem 3rem;
  text-align: center;
}
.page-header h1 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.page-header p {
  margin-top: 0.5rem;
  font-size: 1rem;
  opacity: 0.75;
}

/* ── SECTIONS ── */
.container { max-width: 920px; margin: 0 auto; padding: 3.5rem 2rem; }
.container.wide { max-width: 1080px; }

section h2 {
  font-family: 'EB Garamond', serif;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--teal);
  border-left: 4px solid var(--red);
  padding-left: 0.75rem;
}

/* ── TOPICS ── */
.topics-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.topics-list li {
  background: var(--teal);
  color: var(--cream);
  padding: 0.45rem 1.1rem;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ── SPEAKER GRID ── */
.speaker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.speaker-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: box-shadow 0.2s;
}
.speaker-card:hover {
  box-shadow: 0 4px 20px rgba(10,49,56,0.08);
}
.speaker-card .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--cream);
  font-family: 'EB Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.speaker-card .name {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.25rem;
}
.speaker-card .affiliation {
  font-size: 0.82rem;
  color: var(--grey);
}

/* ── SCHEDULE ── */
.schedule-day { margin-bottom: 2.5rem; }
.schedule-day h3 {
  font-family: 'EB Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--red);
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.schedule-table th,
.schedule-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.schedule-table th {
  font-weight: 600;
  background: var(--teal);
  color: var(--cream);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.schedule-table tr:hover td { background: rgba(10,49,56,0.03); }
.schedule-table .break-row td {
  background: rgba(189,139,82,0.08);
  font-style: italic;
  color: var(--grey);
}

/* ── TRAVEL / VENUE ── */
.travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.travel-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}
.travel-card h3 {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--red);
}
.travel-card p {
  font-size: 0.9rem;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.travel-card a {
  color: var(--teal-light);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
}
.travel-card a:hover { text-decoration: underline; }

.venue-hero {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

/* ── POSTER ── */
.pdf-container {
  width: 100%;
  height: 80vh;
  min-height: 500px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1rem;
}
.pdf-container embed { width: 100%; height: 100%; border: none; }
.pdf-fallback {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--grey);
}
.pdf-fallback a { color: var(--red); }

/* ── CONTACTS ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.contact-grid div { font-size: 0.9rem; }
.contact-grid .name { font-weight: 600; }
.contact-grid a {
  color: var(--teal-light);
  text-decoration: none;
  font-size: 0.85rem;
}
.contact-grid a:hover { text-decoration: underline; }

/* ── NOTE / PLACEHOLDER ── */
.placeholder-note {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--grey);
  font-style: italic;
  font-size: 1.05rem;
}
/* ── FOOTER ── */
footer {
  margin-top: auto;
  background: var(--teal);
  color: var(--cream);
  /* Added more vertical padding to make the footer much larger */
  padding: 4rem 2.5rem; 
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px; /* Widened to fit larger logos */
  margin: 0 auto;
}

.footer-sponsors {
  display: flex;
  gap: 4rem; /* More space between large logos */
  align-items: center;
}

.footer-sponsors img {
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(0.95);
  opacity: 0.9;
  transition: transform 0.3s ease;
}

/* Individual size controls */
.logo-uni {
  height: 60px; 
}

.logo-for {
  height: 130px; 
}

.logo-dfg {
  height: 45px;  
}


.footer-sponsors img:hover {
  opacity: 1;
  transform: scale(1.05);
}
.footer-sponsors img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.footer-copyright {
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  max-width: 350px;
  line-height: 1.4;
  text-align: right;
}

/* ── RESPONSIVE ADJUSTMENTS ── */
@media (max-width: 1024px) {
  .footer-content {
    flex-direction: column-reverse;
    gap: 3rem;
    text-align: center;
  }
  
  .footer-copyright {
    text-align: center;
  }

  .footer-sponsors img {
    height: 80px; /* Scale down slightly for tablets */
  }
}

@media (max-width: 640px) {
  .footer-sponsors {
    flex-direction: column; /* Stack logos on mobile to prevent overflow */
    gap: 2.5rem;
  }
  
  .footer-sponsors img {
    height: 100px; /* Keep them big on mobile by stacking */
  }
}

/* ── MOBILE ── */
@media (max-width: 640px) {
  nav { padding: 0 1rem; flex-wrap: wrap; height: auto; padding: 0.75rem 1rem; }
  nav ul { gap: 0; flex-wrap: wrap; }
  nav a { padding: 0.3rem 0.6rem; font-size: 0.8rem; }
  .hero { min-height: 70vh; }
  .hero .meta-bar { flex-direction: column; gap: 0.4rem; }
  .container { padding: 2.5rem 1.25rem; }
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

.address-box p {
  margin: 0.5rem 0;
  line-height: 1.5;
}

.address-box a {
  color: #0056b3;
  text-decoration: none;
}

.address-box a:hover {
  text-decoration: underline;
}
