/*
 * Copyright © 2026 IUSCI. All rights reserved.
 *
 * This software and its source code were initially developed by:
 * - Spyridon Eftychios Kokotos (skokotos@ionio.gr)
 * - Evangelos Konstantinidis (inf2021113@ionio.gr)
 *
 * Redistribution and use in source and binary forms, with or without modification,
 * are permitted under the terms of the MIT License.
 * See the LICENSE file distributed with this work for detailed terms and conditions.
 *
 * This software is provided "as is," without warranty of any kind, express or implied,
 * including but not limited to the warranties of merchantability, fitness for a
 * particular purpose, and non-infringement.
 */

/* CSS Custom Properties */
:root {
  /* Brand */
  --primary: #2563eb;
  --primary-rgb: 37, 99, 235;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-lighter: #dbeafe;
  --accent: #0ea5e9;
  --accent-dark: #0284c7;

  /* Surfaces */
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --surface-border: #e2e8f0;
  --surface-hover: #f1f5f9;

  /* Text */
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* Semantic */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.1);

  /* Layout */
  --header-h: 64px;
  --max-w: 1200px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: .25s cubic-bezier(.4,0,.2,1);

  /* Hero */
  --hero-bg: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0ea5e9 100%);
  --hero-overlay: rgba(15,23,42,.55);
}

/* Dark theme */
html.dark {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --surface: #1e293b;
  --surface-alt: #283548;
  --surface-border: #334155;
  --surface-hover: #334155;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0f172a;
  --primary-lighter: rgba(37,99,235,.2);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.25);
  --shadow-md: 0 4px 6px rgba(0,0,0,.25);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.3);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.4);
}

/* Reset & Base */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
  z-index: 10000; background: var(--primary); color: #fff; padding: .5rem 1.5rem; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 1rem; top: 1rem; width: auto; height: auto; overflow: visible; }

/* Utilities */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.muted, .text-muted { color: var(--text-muted); }
.required { color: var(--danger); }

.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .6rem 1.3rem;
  font-family: 'Inter', sans-serif; font-size: .9rem; font-weight: 600;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition);
  background: var(--surface); color: var(--text); border-color: var(--surface-border);
  text-decoration: none;
}
.btn:hover { background: var(--surface-hover); border-color: var(--primary-light); color: var(--primary); }

.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

.btn-cta {
  background: var(--primary); color: #fff; border-color: var(--primary);
  padding: .75rem 2rem; font-size: 1rem; border-radius: var(--radius);
  box-shadow: 0 4px 15px rgba(var(--primary-rgb),.35);
}
.btn-cta:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(var(--primary-rgb),.45); color: #fff; }

.btn-outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #dc2626; border-color: #dc2626; color: #fff; }

.btn-sm { padding: .35rem .7rem; font-size: .82rem; }
.btn-block { width: 100%; justify-content: center; }

/* Flash Alerts */
.alert {
  padding: .85rem 1.2rem; border-radius: var(--radius-sm);
  margin-bottom: 1.25rem; font-size: .92rem; font-weight: 500;
  display: flex; align-items: center; gap: .5rem;
  border-left: 4px solid;
}
.alert-success { background: rgba(16,185,129,.1); color: #047857; border-color: var(--success); }
.alert-error, .alert-danger { background: rgba(239,68,68,.1); color: #b91c1c; border-color: var(--danger); }
.alert-warning { background: rgba(245,158,11,.1); color: #92400e; border-color: var(--warning); }
.alert-info { background: rgba(59,130,246,.1); color: #1d4ed8; border-color: var(--info); }
html.dark .alert-success { color: #6ee7b7; }
html.dark .alert-error, html.dark .alert-danger { color: #fca5a5; }
html.dark .alert-warning { color: #fbbf24; }
html.dark .alert-info { color: #93c5fd; }

/* Site Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--surface-border);
  transition: background var(--transition), box-shadow var(--transition);
}
html.dark .site-header { background: rgba(15,23,42,.85); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1.5rem;
}

/* Logo */
.site-logo { text-decoration: none; display: flex; align-items: center; }
.logo-text {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.4rem;
  color: var(--text); letter-spacing: -.025em;
}
.logo-year {
  color: var(--primary); font-weight: 800;
}

/* Navigation */
.main-nav { flex: 1; display: flex; justify-content: center; }
.mobile-nav-utils { display: none; }
.nav-list { display: flex; gap: .15rem; align-items: center; }
.nav-list > li > a,
.nav-dropdown-toggle {
  padding: .45rem .85rem; border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 500; color: var(--text-secondary);
  transition: all var(--transition); white-space: nowrap;
  background: none; border: none; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; gap: .3rem;
}
.nav-list > li > a:hover,
.nav-dropdown-toggle:hover,
.nav-list > li.active > a,
.nav-dropdown.active > .nav-dropdown-toggle {
  color: var(--primary); background: var(--primary-lighter);
}

.nav-chevron { font-size: .6rem; transition: transform var(--transition); margin-left: .15rem; }
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + .45rem); left: 50%;
  transform: translateX(-50%); min-width: 220px;
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .5rem; z-index: 100; opacity: 0;
  animation: dropdownIn .2s ease forwards;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
@keyframes dropdownIn { to { opacity: 1; transform: translateX(-50%) translateY(0); } }

.nav-dropdown-menu li a {
  display: block; padding: .5rem .85rem; font-size: .87rem; font-weight: 500;
  color: var(--text-secondary); border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-dropdown-menu li a:hover,
.nav-dropdown-menu li.active a {
  color: var(--primary); background: var(--primary-lighter);
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: .6rem; }

.lang-switch {
  padding: .3rem .65rem; border-radius: var(--radius-sm);
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  background: var(--primary-lighter); color: var(--primary);
  transition: all var(--transition);
}
.lang-switch:hover { background: var(--primary); color: #fff; }

.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--surface-border); background: var(--surface);
  color: var(--text-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); font-size: .95rem;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-icon-dark { display: none; }
html.dark .theme-icon-light { display: none; }
html.dark .theme-icon-dark { display: flex; }

/* Mobile nav toggle */
.nav-toggle {
  display: none; width: 36px; height: 36px; border: none;
  background: none; cursor: pointer; position: relative;
  flex-direction: column; align-items: center; justify-content: center;
}
.hamburger,
.hamburger::before,
.hamburger::after {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: all .3s ease;
}
.hamburger::before, .hamburger::after { content:''; position: absolute; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

/* Hero Section */
.hero {
  position: relative; min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--header-h) + 3rem) 1.5rem 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: var(--hero-bg);
  z-index: 0;
}
.hero-bg::after {
  content:''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2l2 2v2h18v2H22v2l-2-2z' fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
  z-index: 1;
}

/* Hero video (both upload and YouTube) */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero-video-yt {
  /* Scale iframe to cover area (16:9 ratio may not fill) */
  width: 100vw; height: 56.25vw; /* 16:9 */
  min-height: 100%; min-width: 177.78vh; /* 16:9 inverse */
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Dark overlay for readability */
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 2;
}

.hero-content {
  position: relative; z-index: 3; text-align: center; color: #fff;
  max-width: 800px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem 1rem; border-radius: 50px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(6px);
  font-size: .85rem; font-weight: 600; margin-bottom: 1.25rem;
  border: 1px solid rgba(255,255,255,.2);
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  margin-bottom: .75rem; letter-spacing: -.03em; color: #fff;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem); opacity: .9;
  max-width: 600px; margin: 0 auto 1.25rem; line-height: 1.6;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center;
  margin-bottom: 2rem; font-size: .95rem; opacity: .85;
}
.hero-meta i { margin-right: .3rem; }

/* Sections */
.section {
  padding: 4rem 0;
}
.section:nth-child(even) { background: var(--bg-alt); }

.section-title {
  font-size: 1.75rem; margin-bottom: 2.5rem; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
}
.section-title i { color: var(--primary); font-size: 1.5rem; }

.section-cta { text-align: center; margin-top: 2.5rem; }

/* Page Header */
.page-header {
  padding: calc(var(--header-h) + 2.5rem) 0 2rem;
  background: var(--hero-bg); color: #fff;
  position: relative;
}
.page-header.has-hero-image {
  padding: calc(var(--header-h) + 3.5rem) 0 3rem;
  background-size: cover;
  background-position: center;
}
.page-header::after {
  content:''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 20.5V18H0v-2h20v-2l2 2v2h18v2H22v2l-2-2z' fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.page-header.has-hero-image::after {
  background: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem); color: #fff;
  display: flex; align-items: center; gap: .55rem; margin-top: .5rem;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: .35rem;
  font-size: .85rem; margin-bottom: .5rem; opacity: .8;
}
.breadcrumbs a { color: rgba(255,255,255,.8); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs .sep { margin: 0 .2rem; opacity: .5; }
.breadcrumbs .current { opacity: .7; }

/* Page Content (from DB) */
.page-content {
  max-width: 820px; margin: 0 auto;
  font-size: 1.02rem; line-height: 1.85;
}
.page-content h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; color: var(--primary); }
.page-content h3 { font-size: 1.2rem; margin: 1.5rem 0 .6rem; }
.page-content p { margin-bottom: 1rem; }
.page-content ul, .page-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: .4rem; }
.page-content a { text-decoration: underline; text-underline-offset: 3px; }
.page-content strong { font-weight: 700; }
.page-content blockquote {
  border-left: 4px solid var(--primary); padding: 1rem 1.25rem;
  background: var(--primary-lighter); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0; font-style: italic;
}
.page-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.page-content th, .page-content td {
  padding: .65rem .85rem; border: 1px solid var(--surface-border); text-align: left;
}
.page-content th { background: var(--bg-alt); font-weight: 600; }
.page-content hr { border: none; border-top: 2px solid var(--surface-border); margin: 2rem 0; }

/* Page Gallery Carousel */
.page-gallery-section {
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 2px solid var(--surface-border);
}
.page-gallery-title {
  font-size: 1.2rem; margin-bottom: .85rem;
  color: var(--primary); display: flex; align-items: center; gap: .45rem;
}
.page-gallery-title i { font-size: .95rem; }

/* Carousel wrapper */
.gallery-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--surface-border);
}
.gallery-carousel-track {
  display: flex;
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}
.gallery-carousel-slide {
  flex: 0 0 25%;
  min-width: 0;
  padding: .35rem;
  box-sizing: border-box;
}
.gallery-carousel-link {
  display: block; position: relative;
  aspect-ratio: 3/2; overflow: hidden;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.gallery-carousel-link img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease, filter .3s ease;
}
.gallery-carousel-link:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}
.gallery-carousel-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: .35rem .5rem;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: #fff; font-size: .72rem; font-weight: 500;
  opacity: 0; transition: opacity .25s ease;
}
.gallery-carousel-link:hover .gallery-carousel-caption { opacity: 1; }

/* Navigation buttons */
.gallery-carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,.9); border: 1px solid var(--surface-border);
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--text);
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  backdrop-filter: blur(4px);
  opacity: 0;
}
.gallery-carousel:hover .gallery-carousel-btn { opacity: 1; }
.gallery-carousel-btn:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(37,99,235,.3);
  transform: translateY(-50%) scale(1.1);
}
.gallery-carousel-prev { left: .5rem; }
.gallery-carousel-next { right: .5rem; }

/* Bottom bar: dots + counter */
.gallery-carousel-footer {
  display: flex; align-items: center; justify-content: center;
  gap: .75rem; padding: .5rem .75rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--surface-border);
}
.gallery-carousel-dots {
  display: flex; justify-content: center; gap: .35rem;
}
.gallery-carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  border: none; background: var(--surface-border);
  cursor: pointer; padding: 0;
  transition: all .25s ease;
}
.gallery-carousel-dot.active {
  background: var(--primary);
  width: 20px; border-radius: 4px;
}
.gallery-carousel-counter {
  font-size: .72rem; font-weight: 600; color: var(--text-muted);
  white-space: nowrap;
}

/* Lightbox */
.lightbox-backdrop {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; transition: opacity .3s ease;
}
.lightbox-backdrop.active { opacity: 1; }
.lightbox-content {
  position: relative; max-width: 90vw; max-height: 85vh;
  display: flex; flex-direction: column; align-items: center;
}
.lightbox-content img {
  max-width: 100%; max-height: 80vh;
  object-fit: contain; border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.lightbox-caption {
  margin-top: .75rem; color: #e2e8f0;
  font-size: .88rem; text-align: center;
}
.lightbox-close {
  position: absolute; top: -40px; right: 0;
  background: none; border: none; color: #fff;
  font-size: 1.5rem; cursor: pointer; opacity: .7;
  transition: opacity .2s ease;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border: none; color: #fff;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; cursor: pointer;
  transition: background .2s ease;
  backdrop-filter: blur(4px);
}
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

@media (max-width: 768px) {
  .gallery-carousel-slide { flex: 0 0 50%; }
  .gallery-carousel-btn { width: 34px; height: 34px; font-size: .85rem; }
  .gallery-carousel-prev { left: .4rem; }
  .gallery-carousel-next { right: .4rem; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-nav { width: 36px; height: 36px; font-size: .9rem; }
}
@media (max-width: 480px) {
  .gallery-carousel-slide { flex: 0 0 100%; }
  .gallery-carousel-dots { gap: .3rem; }
  .gallery-carousel-dot { width: 6px; height: 6px; }
}

/* Important Dates Grid */
.dates-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.date-card {
  background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--radius);
  padding: 1.5rem; text-align: center;
  transition: all var(--transition); position: relative;
}
.date-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.date-card.date-passed { opacity: .6; }
.date-card.date-passed::after {
  content:''; position: absolute; inset: 0; border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, transparent, transparent 8px, rgba(0,0,0,.02) 8px, rgba(0,0,0,.02) 16px);
}
.date-icon { font-size: 1.75rem; color: var(--primary); margin-bottom: .75rem; }
.date-card h3 { font-size: 1rem; margin-bottom: .35rem; }
.date-value { font-size: .92rem; color: var(--text-secondary); font-weight: 500; }
.date-badge-passed {
  display: inline-block; margin-top: .65rem;
  padding: .15rem .65rem; border-radius: 50px;
  font-size: .75rem; font-weight: 600;
  background: var(--text-muted); color: #fff;
}

/* Topics Grid */
.topics-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 1rem;
}
.topic-card {
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--radius); padding: 1.25rem 1rem;
  text-align: center; transition: all var(--transition);
}
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.topic-card i { font-size: 1.75rem; color: var(--primary); display: block; margin-bottom: .6rem; }
.topic-card span { font-size: .88rem; font-weight: 600; color: var(--text); display: block; }

/* Keynotes */
/* Preview (homepage) */
.keynotes-preview-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
}
.keynote-preview-card {
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  text-align: center; transition: all var(--transition);
}
.keynote-preview-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.keynote-photo {
  width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
  margin: 0 auto .85rem; border: 3px solid var(--primary-lighter);
}
.keynote-photo-placeholder {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--primary-lighter); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto .85rem;
}
.keynote-preview-card h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.keynote-institution { font-size: .85rem; color: var(--text-secondary); }

/* Full keynotes page */
.keynotes-grid { display: flex; flex-direction: column; gap: 2rem; }
.keynote-card {
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg); padding: 2rem; overflow: hidden;
  transition: box-shadow var(--transition);
}
.keynote-card:hover { box-shadow: var(--shadow-lg); }
.keynote-card-header { display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 1.25rem; }
.keynote-card-header .keynote-photo { width: 120px; height: 120px; flex-shrink: 0; }
.keynote-card-header .keynote-photo-placeholder { width: 120px; height: 120px; flex-shrink: 0; font-size: 2.5rem; }
.keynote-header-info { flex: 1; }
.keynote-header-info h2 { font-size: 1.35rem; margin-bottom: .25rem; }
.keynote-title { display: block; font-size: .9rem; color: var(--text-secondary); margin-bottom: .15rem; }
.keynote-header-info .keynote-institution { display: block; margin-bottom: .35rem; font-weight: 500; }
.keynote-website { font-size: .85rem; }

/* Keynote Social Links */
.keynote-links { display: flex; gap: .35rem; margin-top: .35rem; flex-wrap: wrap; }
.keynote-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--primary-lighter); color: var(--primary);
    font-size: .85rem; transition: background var(--transition), color var(--transition);
    text-decoration: none;
}
.keynote-links a:hover { background: var(--primary); color: #fff; }
.keynote-links-preview { justify-content: center; margin-top: .5rem; }

.keynote-talk {
  background: var(--primary-lighter); border-radius: var(--radius); padding: 1.25rem;
  margin-bottom: 1rem;
}
.keynote-talk h3 { font-size: 1.08rem; display: flex; align-items: center; gap: .5rem; margin-bottom: .65rem; color: var(--primary-dark); }
.keynote-abstract { font-size: .93rem; line-height: 1.7; color: var(--text-secondary); }

.keynote-bio { border-top: 1px solid var(--surface-border); padding-top: 1rem; }
.keynote-bio h4 { font-size: .95rem; margin-bottom: .5rem; color: var(--primary); }
.keynote-bio-text { font-size: .92rem; line-height: 1.7; color: var(--text-secondary); }

/* Committee */
.committee-section { margin-bottom: 3rem; }
.committee-type-title {
  font-size: 1.35rem; margin-bottom: 1.25rem;
  padding-bottom: .5rem; border-bottom: 3px solid var(--primary);
  display: inline-block;
}
.committee-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}
.committee-card {
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--radius); padding: 1.25rem;
  display: flex; gap: 1rem; align-items: flex-start;
  transition: all var(--transition);
  max-width: 480px;
}
.committee-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.committee-card-chair { border-left: 4px solid var(--primary); }

.committee-card .committee-photo {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--primary-lighter);
}
.committee-photo-placeholder {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-lighter); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.committee-info { flex: 1; min-width: 0; }
.committee-info h3 { font-size: 1.02rem; margin-bottom: .2rem; }
.committee-role { display: block; font-size: .84rem; color: var(--primary); font-weight: 600; }
.committee-institution { display: block; font-size: .84rem; color: var(--text-secondary); margin-bottom: .4rem; }
.committee-specialty { display: block; font-size: .8rem; color: var(--text-muted); font-style: italic; margin-bottom: .35rem; }
.committee-links { display: flex; gap: .35rem; margin-top: .35rem; flex-wrap: wrap; }
.committee-links a {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary-lighter); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: .72rem;
  transition: all var(--transition);
}
.committee-links a:hover { background: var(--primary); color: #fff; }

/* Scientific committee members list */
.scientific-members-list { max-width: 800px; }
.scientific-member {
  padding: .6rem 0; border-bottom: 1px solid var(--surface-border);
  font-size: .93rem; display: flex; flex-wrap: wrap; gap: .3rem; align-items: baseline;
}
.scientific-member:last-child { border-bottom: none; }
.scientific-member strong { color: var(--text); }
.scientific-member .sep { color: var(--text-muted); margin: 0 .15rem; }
.scientific-member em { color: var(--text-muted); font-size: .85rem; }

/* Program */
.program-tabs {
  display: flex; gap: .35rem; margin-bottom: 2rem;
  flex-wrap: wrap; border-bottom: 2px solid var(--surface-border);
  padding-bottom: .35rem;
}
.program-tab-btn {
  padding: .55rem 1.2rem; font-size: .9rem; font-weight: 600;
  background: none; border: none; border-bottom: 3px solid transparent;
  color: var(--text-secondary); cursor: pointer;
  transition: all var(--transition); font-family: inherit;
  margin-bottom: -2px;
}
.program-tab-btn:hover { color: var(--primary); }
.program-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

.program-day { display: none; }
.program-day.active { display: block; }

.program-day-title { font-size: 1.3rem; margin-bottom: 1.5rem; color: var(--primary); }

.program-timeline { position: relative; padding-left: 2rem; }
.program-timeline::before {
  content:''; position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px; background: var(--surface-border);
}

.program-item {
  display: flex; gap: 1.25rem; margin-bottom: 1.25rem;
  position: relative;
}
.program-item::before {
  content:''; position: absolute; left: -2rem; top: .5rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary); border: 2px solid var(--surface);
  z-index: 1;
}
.program-item-break::before { background: var(--warning); }
.program-item-ceremony::before { background: var(--success); }
.program-item-social::before { background: #ec4899; }

.program-time {
  min-width: 55px; text-align: right; font-weight: 700;
  font-size: .88rem; color: var(--primary); padding-top: .15rem;
  display: flex; flex-direction: column; align-items: flex-end;
}
.program-time-end { font-size: .78rem; color: var(--text-muted); font-weight: 500; }

.program-item-content {
  flex: 1; background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  transition: box-shadow var(--transition);
}
.program-item-content:hover { box-shadow: var(--shadow-sm); }

.program-item-header { display: flex; align-items: center; gap: .5rem; margin-bottom: .35rem; }
.program-type-badge {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary-lighter); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; flex-shrink: 0;
}
.program-item-break .program-type-badge { background: rgba(245,158,11,.15); color: var(--warning); }
.program-item-ceremony .program-type-badge { background: rgba(16,185,129,.15); color: var(--success); }
.program-item-social .program-type-badge { background: rgba(236,72,153,.15); color: #ec4899; }

.program-item-header h3 { font-size: 1rem; font-weight: 600; }
.program-speaker { font-size: .87rem; color: var(--text-secondary); margin-bottom: .15rem; }
.program-speaker i { color: var(--primary); margin-right: .25rem; }
.program-location { font-size: .83rem; color: var(--text-muted); }
.program-location i { color: var(--danger); margin-right: .25rem; }
.program-description { font-size: .87rem; color: var(--text-secondary); margin-top: .5rem; line-height: 1.6; }

/* Announcements */
/* Homepage announcement cards */
.announcements-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.announcement-card {
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: all var(--transition);
}
.announcement-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.announcement-date { font-size: .8rem; color: var(--text-muted); margin-bottom: .5rem; }
.announcement-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.announcement-card h3 a { color: var(--text); }
.announcement-card h3 a:hover { color: var(--primary); }
.announcement-card p { font-size: .9rem; color: var(--text-secondary); }

/* Full announcements list page */
.announcements-list { display: flex; flex-direction: column; gap: 1.5rem; max-width: 820px; margin: 0 auto; }
.announcement-card-full {
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: box-shadow var(--transition);
}
.announcement-card-full:hover { box-shadow: var(--shadow-md); }
.announcement-card-full h2 { font-size: 1.2rem; margin-bottom: .5rem; }
.announcement-card-full h2 a { color: var(--text); }
.announcement-card-full h2 a:hover { color: var(--primary); }
.announcement-card-full p { font-size: .92rem; color: var(--text-secondary); margin-bottom: .75rem; line-height: 1.7; }
.read-more {
  font-size: .88rem; font-weight: 600; color: var(--primary);
  display: inline-flex; align-items: center; gap: .35rem;
}
.read-more:hover { gap: .55rem; }

/* Single announcement */
.announcement-single { max-width: 820px; margin: 0 auto; }
.announcement-single-meta { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* Sponsors */
/* Homepage sponsors strip */
.sponsors-grid {
  display: flex; flex-wrap: wrap; gap: 2rem;
  justify-content: center; align-items: center;
}
.sponsor-item {
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; border-radius: var(--radius); transition: all var(--transition);
  filter: grayscale(.4); opacity: .8;
}
.sponsor-item:hover { filter: grayscale(0); opacity: 1; transform: scale(1.05); }
.sponsor-item img { max-height: 60px; max-width: 160px; object-fit: contain; }
.sponsor-name { font-weight: 600; color: var(--text-secondary); font-size: .95rem; }

/* Full sponsors page */
.sponsors-section { margin-bottom: 3rem; }
.sponsors-tier-title {
  font-size: 1.3rem; text-align: center; margin-bottom: 1.25rem;
  padding-bottom: .5rem; border-bottom: 3px solid var(--primary);
  display: inline-block;
}
.sponsors-section { text-align: center; }
.sponsors-tier-grid {
  display: grid; gap: 1.5rem; justify-items: center;
}
.sponsors-tier-platinum { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.sponsors-tier-gold { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.sponsors-tier-silver,
.sponsors-tier-bronze { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.sponsors-tier-partner,
.sponsors-tier-media { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

.sponsor-card {
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--radius); padding: 1.5rem;
  text-align: center; transition: all var(--transition);
  width: 100%;
}
.sponsor-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.sponsor-card a { display: block; }
.sponsor-card img { max-height: 80px; max-width: 200px; object-fit: contain; margin: 0 auto .75rem; }
.sponsor-card h3 { font-size: 1rem; margin-bottom: .35rem; }
.sponsor-card p { font-size: .85rem; color: var(--text-secondary); }

/* Contact */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  max-width: 960px; margin: 0 auto;
}
.contact-details { margin-top: 1.5rem; }
.contact-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 0; font-size: .95rem;
}
.contact-item i { font-size: 1.15rem; color: var(--primary); width: 20px; text-align: center; }
.contact-item a { color: var(--text); }
.contact-item a:hover { color: var(--primary); }

.contact-form-wrapper {
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg); padding: 2rem;
}
.contact-form .form-group { margin-bottom: 1.2rem; }
.contact-form label {
  display: block; font-size: .88rem; font-weight: 600;
  margin-bottom: .35rem; color: var(--text);
}
.contact-form input,
.contact-form textarea {
  width: 100%; padding: .7rem 1rem; border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm); font-size: .92rem; font-family: inherit;
  background: var(--bg); color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.15);
}

/* ── Workshop Proposal CTA ─────────────────────────── */
.section-workshop-cta { padding: 2rem 0; }
.workshop-cta-card {
  text-align: center;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.workshop-cta-card::before {
  content: '';
  position: absolute; top: -50%; right: -30%; width: 300px; height: 300px;
  background: rgba(255,255,255,0.08); border-radius: 50%;
  pointer-events: none;
}
.workshop-cta-card::after {
  content: '';
  position: absolute; bottom: -40%; left: -20%; width: 250px; height: 250px;
  background: rgba(255,255,255,0.05); border-radius: 50%;
  pointer-events: none;
}
.workshop-cta-icon {
  width: 70px; height: 70px; margin: 0 auto 1.2rem;
  background: rgba(255,255,255,0.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.workshop-cta-card h2 {
  margin: 0 0 .6rem; font-size: 1.6rem; font-weight: 800;
}
.workshop-cta-card p {
  margin: 0 0 1.5rem; font-size: 1rem; opacity: .9;
  max-width: 550px; margin-left: auto; margin-right: auto;
}
.workshop-cta-card .btn-cta {
  background: #fff; color: #7c3aed;
  font-weight: 700; border: none;
}
.workshop-cta-card .btn-cta:hover {
  background: #f5f3ff; color: #6d28d9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

/* ── Workshop Proposal Form ────────────────────────── */
.workshop-form-wrapper {
  background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg); padding: 2rem;
  max-width: 800px; margin: 0 auto;
}
.workshop-form .form-group { margin-bottom: 1.2rem; }
.workshop-form .form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-bottom: .1rem;
}
.workshop-form label {
  display: block; font-size: .88rem; font-weight: 600;
  margin-bottom: .35rem; color: var(--text);
}
.workshop-form .required { color: #ef4444; }
.workshop-form input,
.workshop-form textarea,
.workshop-form select {
  width: 100%; padding: .7rem 1rem; border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm); font-size: .92rem; font-family: inherit;
  background: var(--bg); color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  box-sizing: border-box;
}
.workshop-form input:focus,
.workshop-form textarea:focus,
.workshop-form select:focus {
  outline: none; border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .15);
}
.workshop-form select {
  cursor: pointer;
  appearance: auto;
}

/* ── Workshop Banner (Homepage) ────────────────────── */
.section-workshop-banner { padding: 1rem 0 2rem; }
.workshop-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  color: #fff;
}
.workshop-banner-content {
  display: flex; align-items: center; gap: 1.25rem;
  flex: 1; min-width: 0;
}
.workshop-banner-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  background: rgba(255,255,255,0.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.workshop-banner-text h2 { margin: 0 0 .25rem; font-size: 1.25rem; font-weight: 800; }
.workshop-banner-text p { margin: 0; font-size: .92rem; opacity: .9; }
.workshop-banner-btn {
  background: #fff !important; color: #7c3aed !important;
  font-weight: 700 !important; border: none !important;
  white-space: nowrap; flex-shrink: 0;
}
.workshop-banner-btn:hover {
  background: #f5f3ff !important; color: #6d28d9 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

/* Empty State */
.empty-state-public {
  text-align: center; padding: 4rem 1rem; color: var(--text-muted);
}
.empty-state-public i { font-size: 3rem; margin-bottom: 1rem; opacity: .5; display: block; }
.empty-state-public p { font-size: 1.1rem; }

/* Footer */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--surface-border);
  padding: 3.5rem 0 1.5rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-about .footer-logo {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700;
  display: block; margin-bottom: .5rem;
}
.footer-about p { font-size: .88rem; color: var(--text-secondary); margin-bottom: .5rem; }

.footer-social { display: flex; gap: .5rem; margin-top: .75rem; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-alt); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; }

.footer-links h3, .footer-contact h3 {
  font-size: .92rem; font-weight: 700; margin-bottom: .75rem;
  text-transform: uppercase; letter-spacing: .05em; color: var(--text);
}
.footer-links ul li { margin-bottom: .4rem; }
.footer-links a { font-size: .87rem; color: var(--text-secondary); }
.footer-links a:hover { color: var(--primary); }

.footer-contact p { font-size: .87rem; color: var(--text-secondary); }
.footer-contact a { color: var(--text-secondary); }
.footer-contact a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--surface-border); margin-top: 2.5rem;
  padding-top: 1.5rem; text-align: center;
}
.footer-bottom p { font-size: .82rem; color: var(--text-muted); margin-bottom: .25rem; }
.footer-credits { font-size: .78rem !important; }
.footer-credits a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.footer-credits a:hover { color: var(--primary); }

/* Animations / fade-in */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .committee-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .sponsors-tier-platinum { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }

  /* ── Mobile Nav — use position:absolute to avoid backdrop-filter containing-block bug ── */
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    background: var(--surface); z-index: 999;
    flex-direction: column; justify-content: flex-start;
    padding: 1rem 1.5rem; overflow-y: auto;
    transform: translateX(100%); transition: transform .35s ease;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav.open { transform: translateX(0); }

  .nav-list { flex-direction: column; gap: .15rem; width: 100%; }
  .nav-list > li > a,
  .nav-dropdown-toggle {
    padding: .85rem 1.1rem; font-size: 1.05rem; width: 100%;
    justify-content: space-between; border-radius: var(--radius-sm);
    min-height: 48px; /* touch-friendly minimum */
  }
  .nav-list > li > a:hover,
  .nav-list > li > a:active,
  .nav-dropdown-toggle:hover,
  .nav-dropdown-toggle:active {
    background: var(--primary-lighter);
  }
  .nav-list > li.active > a {
    background: var(--primary); color: #fff;
  }

  .nav-dropdown-menu {
    position: static; transform: none; box-shadow: none; border: none;
    background: var(--bg-alt); border-radius: var(--radius-sm);
    padding: .25rem 0; margin: .15rem 0 .5rem .75rem;
    animation: none; opacity: 1;
  }
  .nav-dropdown-menu li a {
    font-size: .97rem; padding: .7rem 1rem; min-height: 44px;
    display: flex; align-items: center;
  }
  .nav-dropdown-menu li.active a {
    background: var(--primary-lighter); color: var(--primary); font-weight: 600;
  }

  .nav-toggle { display: flex; }
  .nav-chevron { font-size: .75rem; }

  /* Hero */
  .hero { min-height: 380px; padding: calc(var(--header-h) + 2rem) 1rem 3rem; }
  .hero-meta { flex-direction: column; gap: .35rem; font-size: .88rem; }
  .hero-badge { font-size: .8rem; padding: .35rem .85rem; }
  .hero-subtitle { font-size: .95rem; }

  /* Sections */
  .section { padding: 2.5rem 0; }
  .section-title { font-size: 1.4rem; margin-bottom: 1.75rem; }
  .page-header { padding: calc(var(--header-h) + 1.5rem) 0 1.5rem; }
  .page-header.has-hero-image { padding: calc(var(--header-h) + 2.5rem) 0 2rem; }
  .page-header h1 { font-size: 1.4rem; }

  /* Breadcrumbs */
  .breadcrumbs { font-size: .8rem; gap: .25rem; }

  /* Page content */
  .page-content { font-size: .95rem; line-height: 1.75; }
  .page-content h2 { font-size: 1.3rem; }
  .page-content h3 { font-size: 1.1rem; }
  .page-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .page-content th, .page-content td { white-space: nowrap; font-size: .85rem; padding: .5rem .65rem; }
  .page-content img { border-radius: var(--radius-sm); }

  /* Grids */
  .keynotes-preview-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
  .keynote-card-header { flex-direction: column; align-items: center; text-align: center; }
  .keynote-card-header .keynote-photo,
  .keynote-card-header .keynote-photo-placeholder { width: 100px; height: 100px; }
  .keynote-card { padding: 1.5rem; }
  .keynote-talk { padding: 1rem; }
  .keynote-links { justify-content: center; }

  .committee-grid { grid-template-columns: 1fr; }
  .committee-card { max-width: none; }

  .scientific-member { font-size: .88rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form-wrapper { padding: 1.25rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  .announcements-grid { grid-template-columns: 1fr; }
  .dates-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .topics-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

  /* Program */
  .program-item { flex-direction: column; gap: .5rem; }
  .program-time { flex-direction: row; gap: .5rem; min-width: auto; align-items: center; }
  .program-timeline { padding-left: 1.5rem; }
  .program-item::before { left: -1.5rem; width: 10px; height: 10px; }
  .program-tabs { gap: .25rem; }
  .program-tab-btn { padding: .45rem .85rem; font-size: .82rem; }

  /* Sponsors */
  .sponsors-tier-platinum,
  .sponsors-tier-gold { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .sponsors-tier-silver,
  .sponsors-tier-bronze,
  .sponsors-tier-partner,
  .sponsors-tier-media { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .sponsors-grid { gap: 1.25rem; }
  .sponsor-item img { max-height: 48px; max-width: 130px; }

  /* Workshop */
  .workshop-form .form-row { grid-template-columns: 1fr; }
  .workshop-banner { flex-direction: column; text-align: center; padding: 1.5rem; }
  .workshop-banner-content { flex-direction: column; }
  .workshop-cta-card { padding: 2rem 1.5rem; }
  .workshop-cta-card h2 { font-size: 1.3rem; }
  .workshop-form-wrapper { padding: 1.25rem; }

  /* Hide lang-switch & theme-toggle from header on mobile; they live in nav now */
  .header-actions .lang-switch,
  .header-actions .theme-toggle { display: none; }

  /* Mobile nav utilities bar (inside nav) */
  .mobile-nav-utils {
    display: flex; align-items: center; gap: .75rem;
    padding: .85rem 1rem; margin-bottom: .5rem;
    background: var(--bg-alt); border-radius: var(--radius);
    border: 1px solid var(--surface-border);
  }
  .mobile-nav-utils .lang-switch {
    flex: 1; text-align: center;
    padding: .55rem .75rem; font-size: .9rem; font-weight: 700;
    border-radius: var(--radius-sm);
    background: var(--primary-lighter); color: var(--primary);
  }
  .mobile-nav-utils .theme-toggle {
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--surface-border); background: var(--surface);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--text-secondary); cursor: pointer;
  }

  /* Carousel */
  .gallery-carousel-slide { flex: 0 0 50%; }
  .gallery-carousel:hover .gallery-carousel-btn { opacity: 1; }
  .gallery-carousel-btn { width: 30px; height: 30px; font-size: .8rem; opacity: .7; }
  .gallery-carousel-prev { left: .3rem; }
  .gallery-carousel-next { right: .3rem; }

  /* Lightbox */
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-nav { width: 36px; height: 36px; font-size: .9rem; }

  /* Footer */
  .footer-about p { font-size: .85rem; }
  .footer-links h3, .footer-contact h3 { margin-bottom: .5rem; }
  .footer-bottom { margin-top: 1.5rem; padding-top: 1rem; }
}

@media (max-width: 480px) {
  :root { --header-h: 52px; }
  .container { padding: 0 1rem; }

  /* Typography */
  body { font-size: 15px; }
  .hero-title { font-size: 1.6rem; }
  .hero-subtitle { font-size: .88rem; }
  .section-title { font-size: 1.2rem; margin-bottom: 1.5rem; }
  .page-header h1 { font-size: 1.25rem; gap: .4rem; }
  .page-content { font-size: .92rem; }
  .page-content h2 { font-size: 1.15rem; margin: 1.5rem 0 .6rem; }
  .page-content h3 { font-size: 1rem; }

  /* Grids */
  .dates-grid { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .announcements-grid { grid-template-columns: 1fr; }
  .keynotes-preview-grid { grid-template-columns: 1fr; }
  .committee-card { padding: 1rem; gap: .75rem; }
  .committee-card .committee-photo,
  .committee-photo-placeholder { width: 56px; height: 56px; }

  /* Keynote */
  .keynote-card { padding: 1rem; }
  .keynote-card-header .keynote-photo,
  .keynote-card-header .keynote-photo-placeholder { width: 80px; height: 80px; }
  .keynote-header-info h2 { font-size: 1.15rem; }
  .keynote-talk h3 { font-size: .95rem; }
  .keynote-abstract, .keynote-bio-text { font-size: .88rem; }

  /* Program */
  .program-item-content { padding: .75rem 1rem; }
  .program-item-header h3 { font-size: .92rem; }
  .program-day-title { font-size: 1.1rem; }

  /* Buttons */
  .btn { padding: .55rem 1rem; font-size: .85rem; }
  .btn-cta { padding: .6rem 1.3rem; }

  /* Card padding */
  .announcement-card { padding: 1.15rem; }
  .announcement-card-full { padding: 1.25rem; }
  .date-card { padding: 1rem; }
  .topic-card { padding: .85rem .7rem; }
  .sponsor-card { padding: 1rem; }
  .contact-form-wrapper { padding: 1rem; }

  /* Sponsor */
  .sponsors-tier-platinum,
  .sponsors-tier-gold,
  .sponsors-tier-silver,
  .sponsors-tier-bronze,
  .sponsors-tier-partner,
  .sponsors-tier-media { grid-template-columns: repeat(2, 1fr); }
  .sponsor-card img { max-height: 60px; }

  /* Contact */
  .contact-form input,
  .contact-form textarea { font-size: .88rem; padding: .6rem .85rem; }

  /* Workshop banner */
  .workshop-banner { padding: 1.25rem; gap: 1rem; }
  .workshop-banner-icon { width: 44px; height: 44px; font-size: 1.1rem; }
  .workshop-banner-text h2 { font-size: 1.05rem; }
  .workshop-cta-card { padding: 1.5rem 1rem; }
  .workshop-cta-icon { width: 56px; height: 56px; font-size: 1.4rem; }
  .workshop-cta-card h2 { font-size: 1.2rem; }
  .workshop-form input,
  .workshop-form textarea,
  .workshop-form select { font-size: .88rem; padding: .6rem .85rem; }

  /* Carousel */
  .gallery-carousel-slide { flex: 0 0 100%; }
  .gallery-carousel-dots { gap: .25rem; }
  .gallery-carousel-dot { width: 6px; height: 6px; }
  .gallery-carousel-dot.active { width: 16px; }
  .gallery-carousel-counter { font-size: .68rem; }

  /* Lightbox */
  .lightbox-content { max-width: 95vw; }
  .lightbox-close { top: -32px; font-size: 1.3rem; }
  .lightbox-caption { font-size: .82rem; }

  /* Footer */
  .footer-social a { width: 30px; height: 30px; font-size: .8rem; }
  .footer-bottom p { font-size: .78rem; }
  .footer-credits { font-size: .72rem !important; }

  /* Header actions */
  .lang-switch { padding: .25rem .5rem; font-size: .78rem; }
  .theme-toggle { width: 32px; height: 32px; font-size: .85rem; }
  .logo-text { font-size: 1.2rem; }
}

@media (max-width: 360px) {
  .container { padding: 0 .75rem; }
  .hero { padding: calc(var(--header-h) + 1.5rem) .75rem 2rem; }
  .hero-title { font-size: 1.4rem; }
  .page-header h1 { font-size: 1.15rem; }
  .section { padding: 2rem 0; }
  .keynote-card, .announcement-card-full { padding: .85rem; }
  .committee-card { flex-direction: column; align-items: center; text-align: center; }
  .page-content table { font-size: .8rem; }
}

/* Print */
@media print {
  .site-header, .site-footer, .nav-toggle, .theme-toggle, .lang-switch,
  .hero-bg, .hero-overlay, .hero-video, .btn-cta, .section-cta { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; padding: 1rem 0; }
  .hero-content { color: #000; }
  .section { padding: 1rem 0; }
}
