:root {
  --primary-color: #5c4f90; /* romantic rose */
  --primary-600: #4c407c;
  --secondary-color: #5a3a8a; /* plum */
  --accent-color: #5c4f90; /* use brand as accent on light */
  --bg: #ffffff; /* light background */
  --surface: #ffffff; /* cards */
  --surface-2: #f6f3f9; /* subtle tinted surface */
  --text: #1f1630; /* deep plum text */
  --muted: #6d5f82; /* secondary text */
  --border: #e6e0ee; /* light borders */
  --success: #2e9e6f;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --shadow-1: 0 8px 24px rgba(0,0,0,0.06);

  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --shadow-soft: 0 6px 20px rgba(0,0,0,0.25);
  --container: 1120px;
  
  a {
    color:#18627b;
    text-decoration: none;
  }

  a:hover {
    text-decoration: underline;
  }

/* Reset / base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -10%, rgba(193,59,106,0.10), transparent 60%),
              radial-gradient(1000px 700px at 10% -20%, rgba(90,58,138,0.08), transparent 60%),
              var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  min-width: 0;
}

h1, h2, h3, h4 { font-family: "Playfair Display", Georgia, serif; margin: 0 0 0.4em; }
p { margin: 0 0 1em; color: var(--muted); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  min-width: 0;
  overflow-x: hidden;
}
/* Utilities */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.stack-4 > * + * { margin-top: var(--space-4); }
.stack-5 > * + * { margin-top: var(--space-5); }
.center { display: grid; place-items: center; }

/* Focus visibility for a11y */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); background:linear-gradient(135deg,#6b3b85 0%, #2c8fb1 100%); box-shadow: var(--shadow-soft); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  background:linear-gradient(135deg,#6b3b85 0%, #2c8fb1 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 16px 0 rgba(90,58,138,0.13), 0 1.5px 8px rgba(193,59,106,0.10);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: filter 0.18s, box-shadow 0.18s;
}
.btn-secondary:hover {
  filter: brightness(1.08) drop-shadow(0 0 8px var(--primary-color));
  box-shadow: 0 4px 24px 0 rgba(193,59,106,0.18);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: saturate(130%) blur(10px);
  background: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  width: 100%;
}
.navbar.scrolled { background: rgba(255,255,255,0.95); box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.nav-container { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 16px; 
  padding: 12px 20px; 
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.logo-section { display: flex; align-items: center; gap: 12px; }
.nav-logo { height: 44px; width: auto; border-radius: 8px; object-fit: contain; display: block; transition: height .25s ease; }
.navbar.expanded .nav-logo { height: 120px; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-menu { display: flex; align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .2s ease, color .2s ease;
}
.nav-menu a:hover { background: rgba(0,0,0,0.04); color: var(--text); }
/* Active link highlight */
.nav-menu a.active { background: rgba(193,59,106,0.12); background:rgb(243 240 253); color: var(--primary-600); }

/* Nav social icons */
.nav-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}
.nav-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 14px;
  transition: background .2s ease, transform .15s ease, color .2s ease;
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.08);
  color: var(--muted);
}
.nav-social a:hover {
  background: rgb(243 240 253);
  transform: translateY(-1px);
  border-color: rgba(193,59,106,0.2);
  color: var(--primary-color);
}
.nav-social a i {
  font-size: 14px;
}

.mobile-menu-btn { display: none; font-size: 22px; background: #fff; color: var(--text); border: 1px solid var(--border); padding: 6px 10px; border-radius: 10px; }

/* Newsletter Signup */
.newsletter-signup {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  background: linear-gradient(135deg, #6b3b85 0%, #2c8fb1 100%);
  color: white;
  margin-top: 70px; /* Account for fixed navbar */
  position: relative;
  overflow: hidden;
}

.newsletter-signup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}

.newsletter-content {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  position: relative;
  z-index: 1;
}

.newsletter-text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 2px 0;
  color: white;
}

.newsletter-text p {
  margin: 0;
  opacity: 0.95;
  font-size: 0.85rem;
  color: #e2e8f0;
}

.newsletter-form {
  flex: 1;
  max-width: 500px;
}

.form-group {
  display: flex;
  gap: 8px;
  align-items: center;
  border-radius: 50px;
  padding: 4px;
}

.form-group input,
.form-group select {
  background: transparent;
  border: none;
  color: white;
  padding: 10px 14px;
  border-radius: 25px;
  outline: none;
  font-size: 0.9rem;
  flex: 1;
  min-width: 0;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.85);
}

.form-group select {
  color: white;
  cursor: pointer;
  min-width: 120px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  transition: all 0.3s ease;
}

.form-group select:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.form-group select:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.form-group select option {
  background: #2d3748;
  color: white;
}

.signup-btn {
  background: white;
  color: #2d3748;
  border: none;
  padding: 10px 16px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.signup-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Countdown Strip */
.countdown-strip {
  background: linear-gradient(90deg, #1a202c, #2d3748);
  background: #302d53; /* solid color */
  color: white;
  padding: 12px 0;
  border-bottom: 2px solid #4a5568;
  border-bottom: 2px solid #23728d;
  position: relative;
  overflow: hidden;
  display: none;
}

.countdown-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.countdown-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.countdown-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #cbd5e0;
}

.countdown-label i {
  font-size: 1rem;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-unit {
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px 8px;
  min-width: 50px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.time-number {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  color: white;
  font-family: 'Courier New', monospace;
}

.time-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1px;
  opacity: 0.9;
  color: #e2e8f0;
}

.time-separator {
  font-size: 1rem;
  font-weight: 600;
  color: #cbd5e0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Hero */
.hero { 
  position: relative; 
  padding: 48px 0 32px; 
  overflow: hidden; 
  background: linear-gradient(180deg, rgba(16,88,96,0.04), rgba(255,255,255,0)); 
}
.hero-grid { 
  display: grid; 
  grid-template-columns: minmax(240px, 460px) 1fr; 
  gap: 28px; 
  align-items: start; 
  min-width: 0;
}
.hero-left { align-self: start; min-width: 0; }
.hero-right { align-self: start; max-width: none; min-width: 0; }
.hero-brand { 
  width: clamp(260px, 26vw, 460px); 
  height: auto; 
  display: block; 
  object-fit: contain; 
  object-position: top left; 
  max-width: 100%;
  margin:0 auto;
}
.hero-text { max-width: 820px; min-width: 0; }
.hero-title { 
  font-size: clamp(36px, 4.2vw, 62px); 
  letter-spacing: -0.015em; 
  line-height: 1.08; 
  color: #302d53; 
  max-width: 22ch; 
  word-wrap: break-word;
  hyphens: auto;
}
.hero-subtitle { 
  font-size: 1.1rem; 
  color: var(--muted); 
  word-wrap: break-word;
}

.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.meta-chip { 
  background: #fff; 
  border: 1px solid var(--border); 
  border-radius: 999px; 
  padding: 8px 12px; 
  font-weight: 600; 
  color: #302d53; 
  font-size: .92rem; 
  white-space: nowrap;
  word-break: keep-all;
}

.countdown-card { align-self: start; padding: 14px; background: #eef7f8; border-color: #d3e9ec; }
.countdown-title { margin: 0 0 8px; font-weight: 700; color: #302d53; }
.stat-item { display: grid; min-width: 160px; }
.stat-number { font-weight: 800; font-size: 1.25rem; color: var(--text); line-height: 1.2; }
.stat-label { font-size: .85rem; color: var(--muted); }
.stats-divider { width: 1px; background: var(--border); align-self: stretch; }

.countdown { 
  display: grid; 
  grid-auto-flow: column; 
  grid-auto-columns: 1fr; 
  gap: 10px; 
  padding: 8px; 
  background: var(--surface-2); 
  border: none; 
  border-radius: 14px; 
}
.cd-seg { display: grid; grid-template-rows: auto auto; align-items: center; justify-items: center; min-width: 70px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; }
.cd-num { font-weight: 800; font-size: 1.1rem; color: var(--text); line-height: 1; }
.cd-unit { font-size: .75rem; color: var(--muted); }

.cta-buttons { margin-top: 18px; margin-bottom: 16px; display: flex; gap: 12px; flex-wrap: wrap; }

/* cleaned up old hero icon styles (removed) */

.floating-element { position: absolute; font-size: 18px; opacity: .25; animation: floatY 10s ease-in-out infinite; }
.floating-element:nth-child(1) { top: 8%; left: 6%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 14%; right: 8%; animation-delay: .8s; }
.floating-element:nth-child(3) { bottom: 18%; left: 12%; animation-delay: 1.6s; }
.floating-element:nth-child(4) { bottom: 10%; right: 15%; animation-delay: 2.4s; }
.floating-element:nth-child(5) { top: 40%; left: 46%; animation-delay: 3.2s; }
@keyframes floatY { 0%,100%{ transform: translateY(0)} 50%{ transform: translateY(-14px)} }

/* Scroll indicator */
.scroll-indicator { position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; color: var(--muted); opacity: .9; transition: opacity .2s ease; }
.scroll-arrow { display: inline-block; animation: bounce 1.4s infinite; font-size: 22px; }
@keyframes bounce { 0%,100%{ transform: translateY(0)} 50%{ transform: translateY(6px)} }

/* Sections */
section { padding: 60px 0; scroll-margin-top: 100px; }
.section-header { text-align: center; margin-bottom: 30px; }
.section-header h2 { font-size: clamp(24px, 3.4vw, 40px); }
.section-subtitle { color: var(--accent-color); font-weight: 600; }

/* About */
.about-content { display: flex; flex-direction: column; gap: 40px; min-width: 0; }

/* Hero section with quote and photo side-by-side */
.about-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 20px;
}

/* Magazine-style intro */
.about-text { 
  background: linear-gradient(135deg, rgba(193,59,106,0.08) 0%, rgba(90,58,138,0.08) 100%);
  background: #ebe7fb9e;
  /*
  border-left: 6px solid var(--primary-color);
  border-left: 6px solid #5c4f90;*/
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 40px 48px; 
  word-wrap: break-word;
  min-width: 0;
  position: relative;
  margin: 0;
}

/*
.about-text::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.3;
  font-family: "Playfair Display", serif;
  line-height: 1;
}
*/

.about-text p {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text);
  margin: 0;
  font-style: normal;
  text-align: left;
  position: relative;
  z-index: 1;
}

/* Centerpiece Photo */
.organizer-photo {
  background: none;
  border: none;
  padding: 0;
  text-align: center;
  margin: 0;
  order: 0;
}

.fun-photo {
  width: 100%;
  max-width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  margin-bottom: 16px;
}

.photo-caption {
  color: var(--muted);
  font-style: italic;
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

/* Organizer Bios - Magazine Layout */
.organizer-bios { 
  margin-top: 0;
  position: relative;
}

.organizer-bios h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 16px;
  text-align: center;
  position: relative;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}



.bio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 0;
}

/* Magazine-style bio cards */
.bio-card {
  background: #fff;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  word-wrap: break-word;
  min-width: 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
  position: relative;
}

.bio-card:nth-child(even) {
  grid-template-columns: 1fr 280px;
}

.bio-card:nth-child(even) .bio-header {
  order: 2;
}

.bio-card:nth-child(even) .bio-content {
  order: 1;
  text-align: right;
}

.bio-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0;
  position: relative;
}

.bio-headshot {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid #fff;
  margin-bottom: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  position: relative;
}

.bio-headshot::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  opacity: 0.6;
}

.bio-header h4 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 600;
}

.bio-title {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bio-content {
  position: relative;
  padding-top: 20px;
}

.bio-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.bio-card:nth-child(even) .bio-content::before {
  left: auto;
  right: 0;
}

.bio-content p {
  color: var(--text);
  line-height: 1.7;
  text-align: left;
  font-size: 1rem;
  margin: 0;
  font-weight: 400;
}

.bio-card:nth-child(even) .bio-content p {
  text-align: right;
}

.about-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; min-width: 0; }
.feature-card { 
  background: #fff; 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  padding: 18px; 
  text-align: center; 
  box-shadow: var(--shadow-soft); 
  word-wrap: break-word;
  min-width: 0;
}
.feature-icon { font-size: 28px; margin-bottom: 8px; }

/* Authors */
.authors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; min-width: 0; }
.author-card { 
  background: var(--surface); 
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  padding: 18px; 
  text-align: center; 
  transition: transform .15s ease, border-color .2s ease; 
  word-wrap: break-word;
  min-width: 0;
}
.author-card:hover { transform: translateY(-3px); border-color: rgba(255,179,199,.5); }
.author-avatar { font-size: 40px; margin-bottom: 8px; }


/* Modern Venue Section */
.venue-content-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: stretch;
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .venue-content-modern {
    flex-direction: column;
    gap: 24px;
  }
  .venue-img-col, .venue-info-col {
    max-width: 100%;
    min-width: 0;
  }
  .venue-main-img {
    max-width: 100%;
  }
  .venue-actions-modern {
    justify-content: center !important;
  }
}
.venue-img-col {
  flex: 1 1 340px;
  min-width: 280px;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.venue-main-img {
  width: 100%;
  max-width: 420px;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(90,58,138,0.13), 0 1.5px 8px rgba(193,59,106,0.10);
  object-fit: cover;
  aspect-ratio: 4/3;
}
.venue-info-col {
  flex: 2 1 400px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.venue-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.1rem;
  color: var(--primary-color);
  margin-bottom: 0.2em;
}
.venue-address {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0.5em;
}
.venue-description {
  color: var(--text);
  font-size: 1.08rem;
  margin-bottom: 0.7em;
}
.venue-features-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.feature-tag {
  background: none;
  color: var(--secondary-color);
  border: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .92rem;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.venue-actions-modern {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}
.venue-actions-modern .btn {
  border-radius: 8px;
  font-size: 1rem;
  padding: 10px 22px;
  box-shadow: none;
}
.venue-highlights-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin-top: 10px;
}
.venue-highlight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.04rem;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}
.venue-highlight .highlight-icon {
  font-size: 1.5em;
  margin-bottom: 0;
  color: var(--primary-color);
  margin-top: -7px;
}

/* Schedule */
.schedule-timeline { position: relative; margin-left: 10px; }
.schedule-timeline::before { content: ""; position: absolute; left: 130px; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--accent-color), transparent); }
.timeline-item { 
  position: relative; 
  display: grid; 
  grid-template-columns: 120px 1fr; 
  gap: 18px; 
  padding: 12px 10px; 
  min-width: 0;
}
.timeline-item::before { content: ""; position: absolute; left: 120px; top: 20px; width: 18px; height: 18px; background: var(--accent-color); border-radius: 50%; box-shadow: 0 0 0 4px rgba(193,59,106,0.18); }
.timeline-time { 
  color: var(--text); 
  font-weight: 800; 
  word-break: keep-all;
  white-space: nowrap;
}
.timeline-content { 
  background: var(--surface); 
  border: 1px solid var(--border); 
  border-radius: 12px; 
  padding: 14px; 
  min-width: 0;
  word-wrap: break-word;
}

/* Contact */
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; min-width: 0; }
.contact-info { display: grid; gap: 12px; min-width: 0; }
.contact-item { 
  display: grid; 
  grid-template-columns: 44px 1fr; 
  gap: 12px; 
  align-items: center; 
  background: #fff; 
  border: 1px solid var(--border); 
  border-radius: 12px; 
  padding: 12px; 
  min-width: 0;
}
.contact-icon { font-size: 24px; display: grid; place-items: center; }
.contact-details { min-width: 0; word-wrap: break-word; }
.contact-form form { 
  background: #fff; 
  border: 1px solid var(--border); 
  border-radius: 12px; 
  padding: 16px; 
  display: grid; 
  gap: 12px; 
  min-width: 0;
}
.form-group input, .form-group textarea { 
  width: 100%; 
  background: var(--surface-2); 
  border: 1px solid var(--border); 
  color: var(--text); 
  border-radius: 10px; 
  padding: 10px 12px; 
  outline: none; 
  min-width: 0;
  box-sizing: border-box;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #9b93a7; }

/* Dialog */
dialog#newsletter-modal { border: none; border-radius: 16px; padding: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow); width: min(92vw, 520px); }
dialog[open]::backdrop { background: rgba(0,0,0,0.55); backdrop-filter: blur(2px); }
dialog article { padding: 16px; }
dialog header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
dialog h3 { margin: 0; }
dialog form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 10px; }
dialog input { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 10px 12px; }
dialog button[type="submit"] { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: #fff; border: none; border-radius: 10px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
#close-newsletter { background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; cursor: pointer; }

/* Footer */
footer { border-top: 1px solid var(--border); background: var(--surface-2); padding: 36px 0 10px; }
.footer-content { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 20px; }
.social-links { display: flex; gap: 10px; margin-top: 8px; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: #fff; border: 1px solid var(--border); border-radius: 50%; text-decoration: none; color: var(--text); }
.footer-link { display: inline-block; color: var(--text); text-decoration: none; margin: 4px 0; opacity: 0.8; }
.footer-link:hover { color: #fff; }
.footer-bottom { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 10px; text-align: center; color: var(--muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1200px) {
  /* Newsletter signup adjustments */
  .newsletter-content {
    gap: 20px;
  }
  
  /* Countdown timer adjustments */
  .countdown-wrapper {
    gap: 14px;
  }
  .time-unit {
    min-width: 45px;
    padding: 5px 7px;
  }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero-right { order: 2; }
  .hero-left { order: 1; align-self: center; text-align: center; }
  .hero-title { font-size: clamp(28px, 6vw, 44px); }
  /* Reset hero logo sizing on stacked layout */
  .hero-brand { height: auto; width: clamp(240px, 60vw, 420px); margin: 0 auto; }
  .countdown { margin-left: 0; justify-content: center; width: 100%; }
  .cd-seg { min-width: 60px; }
  .venue-content { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: repeat(2, 1fr); }
  
  /* Bio section responsive */
  .about-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .bio-card {
    grid-template-columns: 1fr !important;
    gap: 24px;
    text-align: center;
  }
  
  .bio-card:nth-child(even) .bio-header {
    order: 1;
  }
  
  .bio-card:nth-child(even) .bio-content {
    order: 2;
    text-align: center !important;
  }
  
  .bio-content::before {
    left: 50% !important;
    transform: translateX(-50%);
    right: auto !important;
  }
  
  .bio-content p {
    text-align: center !important;
  }
  
  .organizer-bios h3 {
    font-size: 2rem;
    letter-spacing: 1px;
  }
  
  .about-text {
    padding: 32px 28px;
  }
  
  .about-text p {
    font-size: 1.1rem;
  }
  
  .fun-photo {
    height: 300px;
  }
  .authors-grid { grid-template-columns: repeat(2, 1fr); }
  .venue-highlights { grid-template-columns: 1fr 1fr; }
  .footer-content { grid-template-columns: 1fr 1fr; }

  /* Ensure proper container padding for tablet sizes */
  .container { padding: 0 18px; }

  /* Newsletter signup responsive */
  .newsletter-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .newsletter-text h3 {
    font-size: 1.1rem;
  }
  
  .form-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
  }
  
  .form-group input {
    flex: 1;
    min-width: 180px;
    padding: 12px 14px;
  }
  
  .form-group select {
    flex: 0 0 140px;
    padding: 12px 14px;
  }
  
  .signup-btn {
    flex: 0 0 100%;
    margin-top: 4px;
  }
  
  /* Countdown timer responsive */
  .countdown-wrapper {
    flex-direction: column;
    gap: 12px;
  }
  
  .time-unit {
    min-width: 42px;
    padding: 5px 6px;
  }
  
  .time-number {
    font-size: 1.1rem;
  }
}

@media (max-width: 720px) {
  .nav-right { 
    position: absolute; 
    top: 64px; 
    right: 16px; 
    left: 16px; 
    background: #fff; 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    padding: 10px; 
    display: none; 
    flex-direction: column; 
    gap: 6px; 
    box-shadow: var(--shadow); 
  }
  .nav-right.open { display: flex; }
  .nav-menu { flex-direction: column; gap: 6px; width: 100%; }
  .nav-social { justify-content: center; padding-top: 10px; border-top: 1px solid var(--border); }
  .mobile-menu-btn { display: inline-block; }

  /* Newsletter signup mobile */
  .newsletter-text h3 {
    font-size: 1rem;
  }
  
  .newsletter-text p {
    font-size: 0.8rem;
  }
  
  .form-group {
    padding: 4px;
  }
  
  .form-group input {
    min-width: 150px;
  }
  
  .form-group select {
    flex: 0 0 120px;
  }
  
  .signup-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  /* Countdown timer mobile */
  .countdown-wrapper {
    gap: 10px;
  }
  
  .countdown-label {
    font-size: 0.8rem;
  }
  
  .countdown-timer {
    gap: 6px;
  }
  
  .time-unit {
    min-width: 38px;
    padding: 4px 6px;
  }
  
  .time-number {
    font-size: 1rem;
  }
  
  .time-label {
    font-size: 0.6rem;
  }

  .about-features { grid-template-columns: 1fr; }
  
  /* Bio section mobile */
  .about-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .bio-card {
    grid-template-columns: 1fr !important;
    gap: 20px;
    text-align: center;
  }
  
  .bio-card:nth-child(even) .bio-header {
    order: 1;
  }
  
  .bio-card:nth-child(even) .bio-content {
    order: 2;
    text-align: center !important;
  }
  
  .bio-headshot {
    width: 150px;
    height: 150px;
  }
  
  .bio-content::before {
    left: 50% !important;
    transform: translateX(-50%);
    right: auto !important;
    width: 40px;
  }
  
  .bio-content p {
    text-align: center !important;
    font-size: 0.95rem;
  }
  
  .organizer-bios h3 {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }
  
  .about-text {
    padding: 28px 20px;
    border-left-width: 4px;
  }
  
  .about-text::before {
    font-size: 3rem;
    left: 12px;
  }
  
  .about-text p {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .fun-photo {
    height: 250px;
    border-radius: 16px;
  }
  .authors-grid { grid-template-columns: 1fr; }
  .venue-card { grid-template-columns: 1fr; }
  .venue-highlights { grid-template-columns: 1fr; }
  .contact-content { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  .floating-element { display: none; }
  .hero-stats { flex-direction: column; align-items: stretch; gap: 12px; }
  .stats-divider { display: none; }
  .countdown { margin-left: 0; align-self: center; grid-auto-columns: minmax(56px, 1fr); }
  .navbar.expanded .nav-logo { height: 44px; }
  
  /* Mobile hero layout changes */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .hero-right {
    order: 2;
    text-align: center;
  }
  
  .hero-left {
    order: 1;
    text-align: center;
  }
  
  .hero-brand {
    margin: 0 auto 20px auto;
  }
  
  /* Mobile CTA buttons - 50% width each */
  .cta-buttons {
    gap: 8px;
    justify-content: center;
  }
  
  .cta-buttons .btn {
    flex: 0 0 calc(50% - 4px);
    min-width: 0;
    text-align: center;
    font-size: 0.9rem;
    padding: 12px 8px;
  }
  
  /* Ensure container padding is appropriate for small screens */
  .container { padding: 0 16px; }
}

@media (max-width: 540px) {
  /* Newsletter signup extra small screens */
  .newsletter-content {
    padding: 18px 0;
    gap: 14px;
  }
  
  .newsletter-text h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
  }
  
  .newsletter-text p {
    font-size: 0.85rem;
    opacity: 0.9;
  }
  
  /* Improved mobile form styling */
  .form-group {
    flex-direction: column;
    gap: 10px;
    padding: 0;
  }
  
  .form-group input {
    padding: 14px 16px !important;
    font-size: 16px !important; /* Prevents zoom on iOS */
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #2d3748 !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    flex: none !important;
    width: 100% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  }
  
  .form-group input::placeholder {
    color: #718096 !important;
  }
  
  .form-group input:focus {
    background: white;
    border-color: #4a5568;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
  }
  
  .form-group select {
    padding: 14px 16px !important;
    font-size: 16px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #2d3748 !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    flex: none !important;
    width: 100% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  }
  
  .form-group select:focus {
    background: white;
    border-color: #4a5568;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 85, 104, 0.1);
  }
  
  .form-group select option {
    background: white;
    color: #2d3748;
  }
  
  .signup-btn {
    padding: 14px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    background: white !important;
    color: #2d3748 !important;
    border: none !important;
    flex: none !important;
    width: 100% !important;
    margin-top: 2px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
  }
  
  .signup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }
  
  /* Countdown timer extra small screens */
  .countdown-strip {
    padding: 12px 0;
  }
  
  .countdown-wrapper {
    gap: 10px;
  }
  
  .countdown-label {
    font-size: 0.85rem;
  }
  
  .countdown-timer {
    gap: 6px;
  }
  
  .time-unit {
    min-width: 40px;
    padding: 4px 6px;
  }
  
  .time-number {
    font-size: 1rem;
  }
  
  .time-label {
    font-size: 0.6rem;
  }
  
  .time-separator {
    font-size: 1rem;
  }
  
  /* Improve readability on very small screens */
  .hero-title { 
    font-size: clamp(24px, 8vw, 36px); 
    line-height: 1.2;
  }
  .hero-subtitle { font-size: 1rem; }
  .meta-chip { 
    font-size: .85rem; 
    padding: 6px 10px;
  }
  
  /* Ensure sections don't cause overflow */
  section { padding: 40px 0; }
  .container { padding: 0 12px; }
  
  /* Timeline adjustments for small screens */
  .timeline-item { 
    grid-template-columns: 80px 1fr; 
    gap: 12px; 
  }
  .timeline-time { 
    font-size: .85rem; 
  }
  .schedule-timeline::before { left: 90px; }
  .timeline-item::before { left: 80px; width: 14px; height: 14px; }
}

/* Extra small screens */
@media (max-width: 400px) {
  .timeline-item { 
    grid-template-columns: 1fr; 
    gap: 8px; 
    margin-left: 0;
  }
  .schedule-timeline { margin-left: 0; }
  .schedule-timeline::before { display: none; }
  .timeline-item::before { display: none; }
  .timeline-time { 
    font-size: .9rem; 
    color: var(--accent-color);
    font-weight: 700;
  }
}

/* Mobile Newsletter Form Override - Super Specific Selectors */
@media (max-width: 540px) {
  .newsletter-signup .newsletter-content .form-group {
    background: none !important;
    border: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  /* Create a wrapper for the input row */
  .newsletter-signup .form-group input#newsletter-bar-email,
  .newsletter-signup .form-group select#newsletter-bar-type {
    display: inline-flex !important;
  }
  
  /* Use CSS Grid to put email and select on same row */
  .newsletter-signup .newsletter-content .form-group {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    grid-template-rows: auto auto !important;
    gap: 8px !important;
  }
  
  .newsletter-signup .form-group input#newsletter-bar-email {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #2d3748 !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    font-size: 16px !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
  }
  
  .newsletter-signup .form-group select#newsletter-bar-type {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #2d3748 !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 12px !important;
    padding: 14px 40px 14px 16px !important;
    font-size: 16px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
  }
  
  .newsletter-signup .form-group button#newsletter-bar-submit {
    background: white !important;
    color: #2d3748 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    margin-top: 2px !important;
  }
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px 16px;
  border-bottom: 1px solid rgba(144, 80, 165, 0.1);
}

.modal-header h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  color: var(--text);
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.modal-close:hover {
  background-color: rgba(144, 80, 165, 0.1);
}

.modal-body {
  padding: 24px 32px 32px;
}

.modal-body p {
  margin-bottom: 24px;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 90vh;
    border-radius: 16px;
  }
  
  .modal-header {
    padding: 20px 24px 12px;
  }
  
  .modal-header h3 {
    font-size: 1.5rem;
  }
  
  .modal-body {
    padding: 20px 24px 24px;
  }
  
  .modal-body p {
    font-size: 1rem;
  }
}

/* Loading spinner animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
