/* ============================================
   HKMU-ALIGNED DESIGN SYSTEM
   Hong Kong Metropolitan University brand identity
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Core HKMU Palette */
  --white: #ffffff;
  --black: #1a1a1a;
  
  /* Primary Blues - HKMU Brand */
  --primary-900: #002B50;
  --primary-800: #003A6E;
  --primary-700: #0056A4;
  --primary-600: #0065BD;
  --primary-500: #1A7ED4;
  --primary-100: #D8EAFA;
  --primary-50: #EEF5FC;
  --primary-200: #A8D1F0;
  
  /* Neutral Grays */
  --gray-900: #1a1a1a;
  --gray-800: #2d2d2d;
  --gray-700: #444444;
  --gray-600: #555555;
  --gray-500: #777777;
  --gray-400: #999999;
  --gray-300: #cccccc;
  --gray-200: #e0e0e0;
  --gray-100: #f0f0f0;
  --gray-50: #F5F7FA;
  
  /* Accent Colors - HKMU */
  --accent-gold: #C8A415;
  --accent-burgundy: #7c2d41;
  --accent-emerald: #047857;
  
  /* Semantic */
  --success: #059669;
  --success-light: #d1fae5;
  --error: #dc2626;
  --error-light: #fee2e2;
  
  /* Shadows - Institutional, subtle */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.07);
  --shadow-xl: 0 8px 24px rgba(0,0,0,0.09);
  
  /* Consistent Spacing Scale (8px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  
  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.25rem;
  
  /* Border Radius - HKMU institutional (minimal rounding) */
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  
  /* Max Widths */
  --max-w-content: 1200px;
  --max-w-narrow: 720px;
  --max-w-form: 560px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w-content);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  color: var(--gray-700);
  font-size: var(--text-lg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.menu-toggle:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 3px solid var(--primary-600);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

nav {
  padding: 0;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary-600);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--sp-8);
  align-items: center;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  padding: var(--sp-2) 0;
  position: relative;
  transition: color 0.15s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-600);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--gray-900);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--primary-800);
  font-weight: 600;
}

.nav-links a.active::after {
  transform: scaleX(1);
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.dropdown-arrow {
  font-size: var(--text-xs);
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  padding: var(--sp-2) 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  list-style: none;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-sm);
  color: var(--gray-700);
  transition: all 0.15s ease;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  background: var(--gray-50);
  color: var(--primary-800);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  padding: var(--sp-2) 0;
  position: relative;
  transition: color 0.15s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  color: var(--gray-900);
}

.btn-primary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-700);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.btn-primary:hover::after {
  transform: scaleX(1);
}

.btn-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3) var(--sp-8);
  background: var(--primary-600);
  color: var(--white);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}

.btn-large:hover {
  background: var(--primary-800);
}

.btn-large:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-large.btn-white {
  background: var(--white);
  color: var(--primary-800);
  border: 1px solid var(--gray-300);
}

.btn-large.btn-white:hover {
  background: var(--gray-50);
  border-color: var(--primary-600);
}

/* ============================================
   HERO SECTION WITH STATIC POSTER
   ============================================ */

.hero {
  padding: var(--sp-24) 0 var(--sp-20);
  text-align: center;
  border-bottom: none;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(to right, rgba(0, 43, 80, 0.82), rgba(0, 58, 110, 0.75)),
    url('/public/images/ui/hero-bioinformatics.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--primary-800);
}

.hero h1 {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto var(--sp-6);
  position: relative;
  z-index: 1;
}

.subtitle {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto var(--sp-10);
  position: relative;
  z-index: 1;
}

.hero-details {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin: var(--sp-10) 0 var(--sp-12);
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 1;
}

.detail-item {
  font-size: var(--text-base);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.detail-separator {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}

/* ============================================
   SECTIONS - Consistent Spacing
   ============================================ */

section {
  padding: var(--sp-20) 0;
}

section h2 {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-4xl);
  font-weight: 400;
  color: var(--primary-600);
  text-align: center;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-12);
}

section h2 strong {
  font-weight: 700;
}

section h2::after {
  display: none;
}

.about {
  background: var(--white);
}

.about p {
  font-size: var(--text-lg);
  line-height: 1.75;
  color: var(--gray-600);
  text-align: center;
  max-width: var(--max-w-narrow);
  margin: 0 auto var(--sp-6);
}

.about p:last-child {
  margin-bottom: 0;
}

/* ============================================
   SPEAKERS SECTION
   ============================================ */

.speakers {
  background: var(--white);
  padding: var(--sp-20) 0;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--gray-500);
  text-align: center;
  margin: calc(var(--sp-8) * -1) auto var(--sp-12);
  max-width: var(--max-w-narrow);
}

/* ============================================
   PAGE HERO (Sub-pages) WITH STATIC POSTER
   ============================================ */

.page-hero {
  padding: var(--sp-10) 0;
  text-align: center;
  border-bottom: none;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(to right, rgba(0, 43, 80, 0.82), rgba(0, 58, 110, 0.75)),
    url('/public/images/ui/hero-bioinformatics.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--primary-800);
}

.page-hero h1 {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.page-hero .subtitle,
.page-hero-sub {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* ============================================
   HIGHLIGHTS SECTION
   ============================================ */

.highlights {
  position: relative;
  padding: var(--sp-20) 0;
  /* background is handled by .highlights-bg slideshow layers below */
}

/* Slideshow background layers — JS toggles opacity for cross-fade */
.highlights-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1.2s ease-in-out;
  z-index: 0;
}

.highlights-bg--1 {
  background-image: url('/public/images/venue/hkmu.jpg');
  opacity: 1;
}

.highlights-bg--2 {
  background-image: url('/public/images/venue/hksfu.jpg');
  opacity: 0;
}

/* Light wash above background photos so cards remain the focal point */
.highlights::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 255, 0.90);
  pointer-events: none;
  z-index: 1;
}

.highlights .container {
  position: relative;
  z-index: 2;
}

.highlights h2 {
  text-align: center;
  color: var(--primary-700);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  margin-top: var(--sp-12);
}

/* Card: background image is set via inline style in HTML */
.highlight-card {
  position: relative;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  border: none;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: var(--sp-8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Blue overlay on each card */
.highlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 50, 150, 0.80);
  transition: background 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0, 30, 100, 0.30);
}

.highlight-card:hover::before {
  background: rgba(0, 50, 150, 0.68);
}

/* All direct children sit above the card overlay */
.highlight-card > * {
  position: relative;
  z-index: 1;
}

.highlight-icon {
  display: none;
}

.highlight-card h3 {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--sp-3);
}

.highlight-card p {
  font-size: var(--text-base);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--sp-4);
  flex-grow: 1;
}

.highlight-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.90);
  transition: all 0.2s ease;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.40);
  padding-bottom: 2px;
  width: fit-content;
}

.highlight-card:hover .highlight-link {
  color: #ffffff;
  gap: var(--sp-3);
  border-bottom-color: rgba(255, 255, 255, 0.80);
}

/* ============================================
   VIDEO SECTION
   ============================================ */

.video-section {
  background: var(--gray-50);
  padding: var(--sp-20) 0;
}

.video-section h2 {
  margin-bottom: var(--sp-2);
}

.video-section .section-subtitle {
  margin: 0 auto var(--sp-8);
}

.video-container {
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--black);
  box-shadow: var(--shadow-xl);
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   SPEAKERS GRID
   ============================================ */

.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--sp-8);
  margin-top: var(--sp-12);
}

.speaker-card {
  background: var(--white);
  padding: var(--sp-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.speaker-card::before {
  display: none;
}

.speaker-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
}

.speaker-avatar {
  width: 120px;
  height: 120px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-4xl);
  margin: 0 auto var(--sp-6);
  overflow: hidden;
  border: 3px solid var(--gray-100);
  transition: all 0.2s ease;
}

.speaker-card:hover .speaker-avatar {
  border-color: var(--primary-100);
}

.speaker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.speaker-card h3 {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--sp-2);
}

.speaker-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-500);
  margin-bottom: var(--sp-1);
}

.speaker-affiliation {
  font-size: var(--text-sm);
  color: var(--gray-400);
  font-style: italic;
  margin-bottom: var(--sp-4);
}

.speaker-bio {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--gray-600);
  text-align: left;
  margin-bottom: var(--sp-4);
}

.speaker-topic {
  background: var(--primary-50);
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-700);
  text-align: left;
  font-size: var(--text-sm);
  color: var(--gray-700);
  margin-top: auto;
  padding-top: var(--sp-4);
}

.speaker-topic strong {
  color: var(--gray-900);
  font-weight: 600;
}

/* ============================================
   TOPICS GRID
   ============================================ */

.topics {
  background: var(--gray-50);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}

.topic-card {
  background: var(--white);
  padding: var(--sp-6);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
}

.topic-card:hover {
  border-color: var(--gray-300);
}

.topic-card h3 {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--sp-3);
}

.topic-card p {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--gray-600);
}

/* ============================================
   SCHEDULE
   ============================================ */

.schedule {
  background: var(--gray-50);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--sp-8);
  margin-top: var(--sp-12);
}

.schedule-day {
  background: var(--white);
  padding: var(--sp-6);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
}

.schedule-day h3 {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--gray-100);
}

.schedule-day ul {
  list-style: none;
}

.schedule-day li {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: var(--text-base);
  color: var(--gray-700);
  line-height: 1.5;
}

.schedule-day li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
  background: var(--primary-600);
  color: var(--white);
  text-align: center;
  padding: var(--sp-20) 0;
  position: relative;
  overflow: hidden;
}



.cta h2 {
  color: var(--white);
  margin-bottom: var(--sp-4);
  position: relative;
  z-index: 1;
}

.cta p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--sp-10);
  max-width: var(--max-w-narrow);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta .btn-large {
  background: var(--white);
  color: var(--primary-800);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-10);
  position: relative;
  z-index: 1;
  font-weight: 700;
}

.cta .btn-large:hover {
  background: var(--gray-100);
}

/* Compact CTA for subpages (pages with page-hero) */
main:has(.page-hero) .cta {
  padding: var(--sp-12) 0;
}

main:has(.page-hero) .cta h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--sp-3);
}

main:has(.page-hero) .cta p {
  margin-bottom: var(--sp-6);
}

/* ============================================
   REGISTRATION FORM
   ============================================ */

.registration-section {
  background: var(--gray-50);
  padding: var(--sp-20) 0;
}

.registration-header {
  text-align: center;
  margin-bottom: var(--sp-12);
}

.registration-header h1 {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--primary-600);
  margin-bottom: var(--sp-4);
}

.registration-header p {
  font-size: var(--text-lg);
  color: var(--gray-600);
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  line-height: 1.6;
}

.registration-form-container {
  max-width: var(--max-w-form);
  margin: 0 auto;
  background: var(--white);
  padding: var(--sp-10);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
}

.form-group {
  margin-bottom: var(--sp-6);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-800);
  margin-bottom: var(--sp-2);
}

.required {
  color: var(--error);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-base);
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--primary-600);
  box-shadow: 0 0 0 3px rgba(0, 101, 189, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-message {
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-4);
  font-size: var(--text-sm);
  display: none;
}

.form-message.error {
  background: var(--error-light);
  color: var(--error);
  border: 1px solid var(--error);
  display: block;
}

.form-message.success {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success);
  display: block;
}

.form-note {
  text-align: center;
  margin-top: var(--sp-4);
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.registration-form {
  text-align: center;
}

.registration-form .form-group {
  text-align: left;
}

.registration-form button[type="submit"] {
  width: 100%;
  max-width: 320px;
  margin: var(--sp-4) auto 0;
}

.spinner {
  display: inline-block;
}

/* ============================================
   SUCCESS PAGE
   ============================================ */

.success-section {
  padding: var(--sp-20) 0;
  background: var(--gray-50);
}

.success-card {
  max-width: var(--max-w-form);
  margin: 0 auto;
  background: var(--white);
  padding: var(--sp-12);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  text-align: center;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--success);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  margin: 0 auto var(--sp-6);
  box-shadow: none;
}

.success-card h1 {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--sp-4);
}

.success-message {
  font-size: var(--text-lg);
  color: var(--gray-600);
  margin-bottom: var(--sp-4);
  line-height: 1.6;
}

.success-card p {
  font-size: var(--text-base);
  color: var(--gray-600);
  margin-bottom: var(--sp-4);
  line-height: 1.6;
}

.success-actions {
  margin: var(--sp-8) 0;
}

.next-steps {
  background: var(--primary-50);
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
  margin-top: var(--sp-8);
  text-align: left;
  border-left: 4px solid var(--primary-600);
}

.next-steps h3 {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--sp-4);
}

.next-steps ul {
  list-style-position: inside;
  color: var(--gray-700);
}

.next-steps li {
  padding: var(--sp-2) 0;
  font-size: var(--text-base);
}

/* ============================================
   ERROR PAGE
   ============================================ */

.error-section {
  padding: var(--sp-20) 0;
  background: var(--gray-50);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  padding: var(--sp-12);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  text-align: center;
}

.error-card h1 {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: 72px;
  font-weight: 800;
  color: var(--gray-300);
  line-height: 1;
  margin-bottom: var(--sp-4);
}

.error-card h2 {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--sp-4);
}

.error-card p {
  font-size: var(--text-base);
  color: var(--gray-600);
  margin-bottom: var(--sp-8);
  line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: #666666;
  color: var(--gray-300);
  padding: var(--sp-4) 0;
  text-align: center;
}

footer p {
  font-size: var(--text-sm);
  margin: 0;
  color: var(--gray-300);
}

footer a {
  color: var(--gray-200);
  text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero h1 {
    font-size: var(--text-4xl);
  }
  
  section h2 {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  header {
    position: sticky;
    top: 0;
    background: var(--white);
  }

  nav .container {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    padding-top: var(--sp-4);
    padding-bottom: var(--sp-4);
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: var(--sp-4) 0 0;
    border-top: 1px solid var(--gray-200);
    margin-top: var(--sp-4);
    background: var(--white);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    padding: 0;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: var(--sp-4) 0;
  }

  .nav-links a::after {
    display: none;
  }

  .btn-primary {
    display: block;
    width: 100%;
    padding: var(--sp-4) 0;
  }

  /* Hero - Static Poster Mobile */
  .hero {
    padding: var(--sp-16) 0 var(--sp-12);
    background-position: center center;
  }

  .hero h1 {
    font-size: var(--text-3xl);
    line-height: 1.15;
  }

  .subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--sp-6);
  }

  .hero-details {
    flex-direction: column;
    gap: var(--sp-1);
    margin: var(--sp-6) 0 var(--sp-8);
  }

  .detail-separator {
    display: none;
  }

  .detail-item {
    text-align: center;
  }

  /* Page Hero - Static Poster Mobile */
  .page-hero {
    padding: var(--sp-8) 0;
    background-position: center center;
  }

  .page-hero h1 {
    font-size: var(--text-3xl);
  }

  /* Sections */
  section {
    padding: var(--sp-12) 0;
  }

  section h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--sp-8);
  }

  .section-subtitle {
    margin-top: calc(var(--sp-4) * -1);
    margin-bottom: var(--sp-8);
    font-size: var(--text-base);
  }

  /* Grids */
  .highlights-grid,
  .speakers-grid,
  .topics-grid,
  .schedule-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
    margin-top: var(--sp-8);
  }

  .highlight-card,
  .speaker-card,
  .topic-card,
  .schedule-day {
    padding: var(--sp-6);
    border-radius: var(--radius-xl);
  }

  .speaker-avatar {
    width: 100px;
    height: 100px;
  }

  /* Video */
  .video-section {
    padding: var(--sp-12) 0;
  }

  .video-container {
    margin-top: var(--sp-8);
    border-radius: var(--radius-md);
  }

  /* Registration */
  .registration-section {
    padding: var(--sp-12) 0;
  }

  .registration-header {
    margin-bottom: var(--sp-8);
  }

  .registration-header h1 {
    font-size: var(--text-3xl);
  }

  .registration-form-container {
    padding: var(--sp-6);
    margin: 0 var(--sp-4);
  }

  .form-group {
    margin-bottom: var(--sp-4);
  }

  /* Success/Error */
  .success-card,
  .error-card {
    padding: var(--sp-8);
    margin: 0 var(--sp-4);
  }

  .success-card h1 {
    font-size: var(--text-2xl);
  }

  .error-card h1 {
    font-size: var(--text-5xl);
  }

  /* CTA */
  .cta {
    padding: var(--sp-12) 0;
  }

  .cta h2 {
    font-size: var(--text-2xl);
  }

  .cta p {
    font-size: var(--text-base);
  }

  /* Footer */
  footer {
    padding: var(--sp-3) 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--sp-4);
  }

  .hero h1 {
    font-size: var(--text-2xl);
  }

  section h2 {
    font-size: var(--text-xl);
  }

  .btn-large {
    padding: var(--sp-3) var(--sp-6);
    font-size: var(--text-sm);
  }

  .highlight-card,
  .speaker-card,
  .topic-card,
  .schedule-day {
    padding: var(--sp-4);
  }

  .registration-form-container {
    padding: var(--sp-4);
  }

  .form-group input,
  .form-group textarea {
    font-size: var(--text-base);
  }
}

/* ============================================
   PARTNERS SECTION (Organizers + Sponsor)
   ============================================ */

.partners-section {
  background: var(--white);
  padding: var(--sp-12) 0;
  border-top: none;
}

.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-12);
  max-width: 900px;
  margin: 0 auto;
}

.partners-group {
  text-align: center;
}

.partners-group h3 {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--sp-4);
}

.partners-logos {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.partner-link {
  display: block;
  transition: opacity 0.2s ease;
}

.partner-link:hover {
  opacity: 0.8;
}

.partner-logo {
  height: 80px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.partner-logo-sm {
  height: 50px;
}

.partners-divider {
  width: 1px;
  height: 60px;
  background: var(--gray-300);
  flex-shrink: 0;
}

/* ============================================
   COMPACT SPEAKER CARDS (New Design)
   ============================================ */

.speakers-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8);
  margin-top: var(--sp-12);
}

.speaker-compact-card {
  background: var(--gray-50);
  padding: var(--sp-8) var(--sp-6) var(--sp-10);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-4);
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}

.speaker-compact-card::after {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: '\f35d';
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  font-size: 0.75rem;
  color: var(--primary-600);
  opacity: 0;
  transition: opacity 0.25s ease;
  line-height: 1;
  pointer-events: none;
}

.speaker-compact-card:hover::after {
  opacity: 1;
}

.speaker-compact-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.speaker-compact-card:focus {
  outline: 2px solid var(--primary-400);
  outline-offset: 3px;
}

.speaker-compact-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 4px solid var(--primary-600);
  box-shadow: 0 2px 12px rgba(0, 58, 110, 0.1);
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-4xl);
}

.speaker-compact-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  padding: 0;
}

.speaker-compact-info {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding-top: 0;
}

.speaker-compact-position {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-bottom: var(--sp-1);
  line-height: 1.4;
}

.speaker-compact-name {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: 1.618rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--sp-3);
  line-height: 1.3;
}

.speaker-compact-affiliation {
  display: block;
  color: var(--primary-600);
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: var(--sp-1);
  margin-bottom: var(--sp-4);
}

.speaker-compact-topic {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-base);
  font-style: normal;
  color: #333333;
  line-height: 1.5;
  padding-top: var(--sp-2);
  border-top: 1px solid var(--gray-200);
}

/* 3-column grid variant for invited-talks */
.speakers-compact-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

.speakers-compact-grid--3col .speaker-compact-card {
  padding: var(--sp-6);
}

.speakers-compact-grid--3col .speaker-compact-avatar {
  width: 130px;
  height: 130px;
}

@media (max-width: 1200px) {
  .speakers-compact-grid--3col {
    grid-template-columns: repeat(2, 1fr);
  }

  .speakers-compact-grid--3col .speaker-compact-card {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .speakers-compact-grid--3col .speaker-compact-avatar {
    margin-bottom: 0;
  }

  .speakers-compact-grid--3col .speaker-compact-info {
    width: auto;
  }
}

@media (max-width: 640px) {
  .speakers-compact-grid--3col {
    grid-template-columns: 1fr;
  }
}

/* Responsive Compact Speaker Cards */
@media (max-width: 1024px) {
  .speakers-compact-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
}

@media (max-width: 640px) {
  .speaker-compact-card {
    padding: var(--sp-6);
  }

  .speaker-compact-avatar {
    width: 110px;
    height: 110px;
  }

  .speaker-compact-name {
    font-size: var(--text-lg);
  }

  .speaker-compact-topic {
    font-size: var(--text-sm);
  }
}

/* ============================================
   TALKS SECTION (Formerly Speakers)
   ============================================ */

.talks {
  background: var(--gray-50);
  padding: var(--sp-20) 0;
}

.talks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  margin-top: var(--sp-12);
}

.talk-card {
  background: var(--white);
  padding: var(--sp-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.talk-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.talk-speaker-info {
  display: flex;
  gap: var(--sp-6);
  align-items: flex-start;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--gray-100);
}

.talk-speaker-info .speaker-avatar {
  flex-shrink: 0;
  margin: 0;
}

.speaker-details {
  flex: 1;
}

.speaker-details h3 {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--sp-2);
}

.talk-content {
  padding-left: 0;
}

.talk-title {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--primary-700);
  margin-bottom: var(--sp-4);
  line-height: 1.4;
}

.talk-abstract {
  padding: 0;
}

.talk-abstract strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.talk-abstract p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--gray-600);
  margin: 0;
}

/* ============================================
   TUTORIALS SECTION
   ============================================ */

.tutorials {
  background: var(--gray-50);
}

.tba-message {
  padding: var(--sp-16) 0;
  text-align: center;
  font-size: var(--text-lg);
  color: var(--gray-500);
  font-style: italic;
}

.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}

.tutorial-card {
  background: var(--white);
  padding: var(--sp-6);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
}

.tutorial-card h3 {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--sp-3);
}

.tutorial-card p {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--gray-600);
}

/* Tutorial Day Cards */
.tutorial-day-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  margin-bottom: var(--sp-8);
}

.tutorial-day-header {
  background: var(--primary-600);
  padding: var(--sp-6);
  color: var(--white);
}

.tutorial-day-header h2 {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--sp-2);
  color: var(--white);
}

.tutorial-day-topics {
  font-size: var(--text-base);
  line-height: 1.5;
  opacity: 0.95;
  color: var(--primary-100);
}

.tutorial-sessions {
  padding: var(--sp-6);
}

.tutorial-session {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-4);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.tutorial-session:last-child {
  margin-bottom: 0;
}

.session-time {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.session-period {
  background: var(--primary-700);
  color: var(--white);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  min-width: 50px;
  text-align: center;
}

.session-duration {
  font-size: var(--text-sm);
  color: var(--gray-700);
  font-weight: 500;
}

.session-location {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.tutorial-note {
  margin-top: var(--sp-8);
  padding: var(--sp-5);
  background: var(--primary-50);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary-500);
}

.tutorial-note p {
  font-size: var(--text-sm);
  color: var(--gray-700);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 600px) {
  .tutorial-session {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .session-time {
    flex-wrap: wrap;
  }
}

/* ============================================
   COMMITTEE SECTION
   ============================================ */

.committee {
  background: var(--gray-50);
  padding: var(--sp-20) 0;
}

.committee-section {
  margin-bottom: var(--sp-16);
}

.committee-section:last-child {
  margin-bottom: 0;
}

.committee-section h2 {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--gray-900);
  text-align: left;
  margin-bottom: var(--sp-3);
}

.committee-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--sp-6);
}

.committee-member {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
}

.member-avatar {
  width: 80px;
  height: 80px;
  background: var(--primary-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info {
  flex: 1;
}

.member-info h4 {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--sp-1);
}

.member-title {
  font-size: var(--text-sm);
  color: var(--gray-600);
  margin-bottom: var(--sp-1);
}

.member-affiliation {
  font-size: var(--text-sm);
  color: var(--gray-500);
  font-style: italic;
  margin-bottom: var(--sp-2);
}

.member-email {
  font-size: var(--text-sm);
  color: var(--primary-700);
}

.committee-placeholder {
  grid-column: 1 / -1;
  padding: var(--sp-8);
  text-align: center;
  background: var(--gray-50);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
}

.committee-placeholder p {
  font-size: var(--text-base);
  color: var(--gray-500);
  font-style: italic;
}

/* Simple Two-Column Committee List Layout */
.committee-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  background: var(--white);
  padding: var(--sp-6);
  border-radius: var(--radius-lg);
}

.committee-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-8);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: baseline;
}

.committee-row:last-child {
  border-bottom: none;
}

.member-name {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--primary-600);
}

.committee-row .member-affiliation {
  font-size: var(--text-base);
  color: var(--gray-700);
  font-style: normal;
}

.tpc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-4);
}

.tpc-member {
  padding: var(--sp-4);
  background: var(--gray-50);
  border-radius: var(--radius-md);
}

.tpc-member h4 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--sp-1);
}

.tpc-member p {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

/* ============================================
   VENUE SECTION
   ============================================ */

.venue-section {
  background: var(--white);
  padding: var(--sp-16) 0 var(--sp-20);
}

.venue-block {
  padding: var(--sp-12) 0;
}

.venue-photo-wrap {
  width: 100%;
  height: 420px;
  overflow: hidden;
  margin-bottom: var(--sp-8);
}

.venue-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.venue-text {
  max-width: 760px;
  margin-bottom: var(--sp-8);
}

.venue-text h2 {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--sp-3);
}

.venue-address {
  font-size: var(--text-base);
  color: var(--gray-500);
  margin-bottom: var(--sp-4);
  letter-spacing: 0.01em;
}

.venue-description {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--gray-700);
}

.venue-description a {
  color: var(--primary-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.venue-description a:hover {
  color: var(--primary-900);
}

.venue-map-wrap {
  width: 100%;
  height: 380px;
}

.venue-map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.venue-divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 0;
}

/* ============================================
   TRAVEL & ACCOMMODATION PAGE
   ============================================ */

.section-intro {
  font-size: var(--text-lg);
  color: var(--gray-600);
  text-align: center;
  max-width: var(--max-w-narrow);
  margin: 0 auto var(--sp-12);
  line-height: 1.6;
}

.section-divider {
  display: block;
  border: none;
  height: 1px;
  background-color: var(--gray-200);
  width: 80px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--sp-8);
}

.travel-info-section {
  padding: var(--sp-14) 0;
}

.travel-section-heading {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--sp-3);
}

.travel-section-note {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--gray-600);
  max-width: 680px;
  margin-bottom: var(--sp-8);
}

/* Hotel list */
.hotel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--gray-200);
}

.hotel-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-8);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--gray-200);
}

.hotel-item-main {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.hotel-item-name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--gray-900);
}

.hotel-item-address {
  font-size: var(--text-sm);
  color: var(--gray-600);
}

.hotel-item-transit {
  font-size: var(--text-sm);
  color: var(--primary-700);
}

.hotel-item-links {
  display: flex;
  gap: var(--sp-4);
  flex-shrink: 0;
  align-items: center;
}

.hotel-item-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--primary-700);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.hotel-item-links a:hover {
  color: var(--primary-900);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Section divider (travel page) */
.travel-section-divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 0;
}

/* Shuttle table */
.shuttle-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin-bottom: var(--sp-4);
}

.shuttle-table th {
  text-align: left;
  font-weight: 600;
  color: var(--gray-700);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 2px solid var(--gray-300);
  background: var(--gray-50);
}

.shuttle-table td {
  padding: var(--sp-3) var(--sp-4);
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-200);
}

.shuttle-table tbody tr:last-child td {
  border-bottom: none;
}

.shuttle-note {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-top: var(--sp-3);
}

/* Useful links */
.link-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  margin-top: var(--sp-2);
}

.link-group-heading {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--gray-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-5);
}

.resource-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.resource-link-list li {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.resource-link-list a {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--primary-700);
  text-decoration: none;
  transition: color 0.15s ease;
}

.resource-link-list a:hover {
  color: var(--primary-900);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-desc {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.5;
}

/* ============================================
   RESPONSIVE - Additional Mobile Styles
   ============================================ */

@media (max-width: 768px) {
  /* Mobile dropdown */
  .nav-dropdown .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    box-shadow: none;
    border: none;
    background: var(--gray-50);
    border-radius: 0;
    padding: 0;
    margin: 0;
  }

  .nav-dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding-left: var(--sp-6);
  }

  .dropdown-arrow {
    transition: transform 0.2s ease;
  }

  .nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
  }

  /* Partners section */
  .partners-row {
    flex-direction: column;
    gap: var(--sp-8);
  }

  .partners-divider {
    width: 80px;
    height: 1px;
  }

  /* Talk cards */
  .talk-speaker-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .talk-speaker-info .speaker-avatar {
    margin-bottom: var(--sp-4);
  }

  /* Venue */
  .venue-photo-wrap {
    height: 260px;
  }

  .venue-map-wrap {
    height: 280px;
  }

  /* Travel & Accommodation */
  .hotel-item {
    flex-direction: column;
    gap: var(--sp-3);
  }

  .hotel-item-links {
    flex-direction: row;
  }

  .link-columns {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .shuttle-table {
    font-size: var(--text-xs);
  }

  .shuttle-table th,
  .shuttle-table td {
    padding: var(--sp-2) var(--sp-3);
  }

  /* Committee */
  .committee-members {
    grid-template-columns: 1fr;
  }

  .committee-section h2 {
    font-size: var(--text-xl);
  }

  .committee-row {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }

  .member-name {
    font-weight: 600;
  }
}

/* ============================================
   KEYNOTES SECTION - Distinguished Design
   Uses rounded/circular elements to differentiate from standard talks
   ============================================ */

.keynotes-hero {
  position: relative;
  overflow: hidden;
  background: var(--primary-600);
  color: var(--white);
}

.keynotes-hero h1 {
  color: var(--white);
}

.keynotes-hero .subtitle {
  color: rgba(255, 255, 255, 0.85);
}

/* Decorative circular elements */
.keynote-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.keynote-decoration .circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.keynote-decoration .circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
}

.keynote-decoration .circle-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: 10%;
}

.keynote-decoration .circle-3 {
  width: 150px;
  height: 150px;
  top: 40%;
  right: 15%;
}

.keynotes {
  background: var(--gray-50);
  padding: var(--sp-20) 0;
}

.keynotes h2,
.talks h2,
.tutorials h2 {
  margin-bottom: var(--sp-3);
}

.keynotes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
}

.keynote-card {
  background: var(--white);
  padding: var(--sp-10);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.keynote-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
}

.keynote-badge {
  display: inline-block;
  background: var(--primary-600);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-6);
  letter-spacing: 0.5px;
}

.keynote-speaker-info {
  display: flex;
  gap: var(--sp-6);
  align-items: flex-start;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--gray-100);
}

.keynote-avatar {
  width: 140px;
  height: 140px;
  background: var(--primary-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-5xl);
  overflow: hidden;
  flex-shrink: 0;
  border: 4px solid var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.keynote-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.keynote-details {
  flex: 1;
  padding-top: var(--sp-3);
}

.keynote-details h3 {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--sp-2);
}

.keynote-title {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: var(--sp-1);
  line-height: 1.5;
}

.keynote-affiliation {
  font-size: var(--text-base);
  color: var(--primary-700);
  font-weight: 500;
}

.keynote-content {
  padding-left: 0;
}

.keynote-talk-title {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary-700);
  margin-bottom: var(--sp-4);
  line-height: 1.4;
}

.keynote-abstract {
  padding: 0;
}

.keynote-abstract strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--sp-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.keynote-abstract p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--gray-600);
  margin: 0;
}

/* Responsive Keynotes */
@media (max-width: 768px) {
  .keynote-card {
    padding: var(--sp-6);
    border-radius: var(--radius-xl);
  }

  .keynote-speaker-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .keynote-avatar {
    width: 120px;
    height: 120px;
    margin-bottom: var(--sp-4);
  }

  .keynote-details {
    padding-top: 0;
  }

  .keynote-details h3 {
    font-size: var(--text-xl);
  }

  .keynote-decoration .circle-1 {
    width: 200px;
    height: 200px;
    top: -80px;
    right: -80px;
  }

  .keynote-decoration .circle-2 {
    width: 120px;
    height: 120px;
  }

  .keynote-decoration .circle-3 {
    display: none;
  }
}

/* ============================================
   SPEAKER DETAIL PAGE
   ============================================ */

.speaker-hero {
  min-height: auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  font-size: var(--text-base);
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}

.back-link:hover {
  opacity: 0.9;
  transform: translateX(-4px);
}

.speaker-detail {
  background: var(--gray-50);
  padding: var(--sp-16) 0;
}

.speaker-detail-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.speaker-detail-header {
  display: flex;
  gap: var(--sp-8);
  padding: var(--sp-10);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.speaker-detail-avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 4px solid var(--primary-600);
  box-shadow: 0 2px 12px rgba(0, 58, 110, 0.1);
  background: var(--gray-100);
}

.speaker-detail-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.speaker-detail-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.speaker-detail-name {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--sp-2);
  line-height: 1.2;
}

.speaker-detail-position {
  font-size: var(--text-base);
  color: var(--gray-600);
  margin-bottom: var(--sp-3);
  line-height: 1.5;
}

.speaker-detail-affiliation {
  display: block;
  color: var(--primary-600);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-top: var(--sp-1);
  margin-bottom: var(--sp-2);
}

.speaker-detail-content {
  padding: var(--sp-10);
}

.speaker-talk-section {
  margin-bottom: var(--sp-10);
}

.speaker-talk-title {
  font-family: 'Open Sans', 'Inter', sans-serif;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary-700);
  margin-bottom: var(--sp-6);
  line-height: 1.4;
  text-align: left;
}

.speaker-talk-title::after {
  display: none;
}

.speaker-abstract {
  padding-bottom: var(--sp-8);
}

.speaker-abstract h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gray-900);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--sp-4);
}

.speaker-abstract p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--gray-600);
  margin: 0;
}

.speaker-bio-section {
  padding-top: var(--sp-8);
  border-top: 1px solid var(--gray-200);
}

.speaker-page-link {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary-600);
  text-decoration: none;
  transition: color 0.15s ease;
}

.speaker-page-link:hover {
  color: var(--primary-800);
}

.speaker-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.speaker-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  color: var(--gray-600);
  text-decoration: none;
  font-size: var(--text-base);
  transition: all 0.15s ease;
}

.speaker-icon-link:hover {
  border-color: var(--primary-600);
  color: var(--primary-700);
  background: var(--primary-50);
}

.speaker-bio-section h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gray-900);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--sp-4);
}

.speaker-bio-section p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--gray-600);
  margin: 0;
}

/* Responsive Speaker Detail */
@media (max-width: 768px) {
  .speaker-detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--sp-8);
  }

  .speaker-detail-avatar {
    width: 150px;
    height: 150px;
    margin-bottom: var(--sp-4);
  }

  .speaker-detail-name {
    font-size: var(--text-2xl);
  }

  .speaker-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .speaker-detail-content {
    padding: var(--sp-6);
  }

  .speaker-talk-title {
    font-size: var(--text-xl);
    text-align: center;
  }
}

/* highlights-grid is always 3 columns (set in base styles) */

/* Ensure content sits above background */
.hero .container,
.page-hero .container {
  position: relative;
  z-index: 10;
}

/* ============================================
   SPEAKER MODAL
   ============================================ */

.speaker-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: var(--sp-10) var(--sp-6);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.speaker-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.speaker-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  max-width: 800px;
  width: 100%;
  margin: auto;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
}

.speaker-modal-overlay.active .speaker-modal {
  transform: translateY(0);
}

.speaker-modal-close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  background: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  box-shadow: var(--shadow-sm);
  z-index: 10;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.speaker-modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.speaker-modal .speaker-detail-header {
  padding: var(--sp-8);
  gap: var(--sp-10);
  align-items: center;
}

.speaker-modal .speaker-detail-position {
  margin-bottom: var(--sp-1);
}

.speaker-modal .speaker-detail-name {
  font-size: var(--text-2xl);
  margin-bottom: var(--sp-1);
}

.speaker-modal .speaker-detail-affiliation {
  margin-bottom: 0;
}

.speaker-modal .speaker-profile-badges {
  margin-top: var(--sp-4);
}

.speaker-modal .speaker-detail-content {
  padding: var(--sp-8);
}

.speaker-modal .speaker-detail-avatar {
  width: 140px;
  height: 140px;
}

.speaker-modal .speaker-talk-section {
  margin-bottom: var(--sp-8);
}

.speaker-modal .speaker-abstract {
  padding-bottom: 0;
}

.speaker-modal .speaker-bio-section {
  padding-top: var(--sp-8);
}

.speaker-modal .speaker-abstract h3,
.speaker-modal .speaker-bio-section h3 {
  margin-bottom: var(--sp-2);
}

.speaker-modal .speaker-talk-title {
  font-size: var(--text-xl);
  color: var(--gray-900);
}

/* Make speaker cards clickable as buttons */
.speaker-compact-card[data-speaker] {
  cursor: pointer;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .speaker-modal-overlay {
    padding: 0;
    align-items: stretch;
  }

  .speaker-modal {
    border-radius: 0;
    max-width: 100%;
    min-height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
  }

  .speaker-modal .speaker-detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--sp-6);
    padding-top: var(--sp-10);
  }

  .speaker-modal .speaker-detail-avatar {
    width: 110px;
    height: 110px;
    margin-bottom: var(--sp-3);
  }

  .speaker-modal .speaker-detail-name {
    font-size: var(--text-xl);
  }


  .speaker-modal .speaker-detail-content {
    padding: var(--sp-5);
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .speaker-modal .speaker-talk-title {
    font-size: var(--text-lg);
    text-align: center;
  }

  .speaker-modal-close {
    top: var(--sp-2);
    right: var(--sp-2);
    width: 44px;
    height: 44px;
    font-size: 24px;
  }
}
