/* ── RESET & BASE ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #1a4f8a;
  --blue-dark:  #0f3260;
  --blue-light: #2d6cc0;
  --accent:     #e8820c;
  --accent-light: #fdf3e7;
  --gray-100:   #f7f8fa;
  --gray-200:   #eef0f4;
  --gray-400:   #9aa3b2;
  --gray-700:   #3d4759;
  --gray-900:   #1a202c;
  --white:      #ffffff;
  --radius:     10px;
  --shadow:     0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 6px 30px rgba(0,0,0,0.13);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  background: var(--white);
}

a { color: var(--blue-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HERO ───────────────────────────────────────────────────────────── */
.hero-logo-band {
  background: var(--white);
  padding: 32px 0;
  text-align: center;
}

.hero {
  background: #1b3f7a;
  color: var(--white);
  padding: 60px 0 60px;
  text-align: center;
}

.badge {
  display: inline-block;
  background: none;
  border: none;
  border-radius: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0;
  margin-bottom: 0;
}

.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.15rem;
  opacity: 0.85;
  margin-bottom: 36px;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 40px;
  margin-bottom: 40px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.meta-icon { font-size: 1.4rem; }

.meta-item strong { display: block; font-size: 0.95rem; }
.meta-item span   { display: block; font-size: 0.82rem; opacity: 0.78; }

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 32px;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background: #c96f08;
  text-decoration: none;
  transform: translateY(-1px);
}
.hero-contact {
  margin-top: 12px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
}
.hero-contact a {
  color: var(--white);
  text-decoration: underline;
}
.hero-contact a:hover {
  color: var(--accent-light, #ffd199);
}

/* ── STICKY NAV ─────────────────────────────────────────────────────── */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  overflow-x: auto;
}

.sticky-nav a {
  display: inline-block;
  padding: 14px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.sticky-nav a:hover,
.sticky-nav a.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  text-decoration: none;
}

/* ── SECTIONS ───────────────────────────────────────────────────────── */
.section {
  padding: 32px 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 12px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.section-intro {
  color: var(--gray-700);
  margin-bottom: 32px;
  max-width: 720px;
}

.section p { margin-bottom: 16px; }

/* ── HIGHLIGHT CARDS ─────────────────────────────────────────────────── */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.highlight-card {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.15s;
}
.highlight-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.highlight-icon { font-size: 2rem; margin-bottom: 10px; }
.highlight-card h3 { font-size: 1rem; color: var(--blue-dark); margin-bottom: 8px; }
.highlight-card p  { font-size: 0.88rem; color: var(--gray-700); margin: 0; }

/* ── BOX ─────────────────────────────────────────────────────────────── */
.box {
  background: var(--gray-100);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin-top: 24px;
}
.box h3 { font-size: 1rem; color: var(--blue-dark); margin-bottom: 10px; }
.box ul  { padding-left: 20px; }
.box ul li { margin-bottom: 4px; font-size: 0.92rem; }

/* ── AGENDA ──────────────────────────────────────────────────────────── */
.agenda-table { display: flex; flex-direction: column; gap: 28px; }

.agenda-block { display: flex; gap: 0; }

.agenda-block-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 10px;
  border-radius: var(--radius) 0 0 var(--radius);
  min-width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.morning-label   { background: #dbeafe; color: #1e40af; }
.lunch-label     { background: #d1fae5; color: #065f46; }
.afternoon-label { background: #fde68a; color: #92400e; }

.agenda-items {
  flex: 1;
  border: 1px solid var(--gray-200);
  border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  overflow: hidden;
}

.agenda-item {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.15s;
}
.agenda-item:last-child { border-bottom: none; }
.agenda-item:hover:not(.break) { background: var(--gray-100); }

.agenda-item.break {
  background: var(--gray-100);
  opacity: 0.75;
}
.agenda-item.break strong { font-weight: 600; color: var(--gray-700); }

.time {
  min-width: 130px;
  padding: 16px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  border-right: 1px solid var(--gray-200);
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

.agenda-content {
  padding: 16px 20px;
  flex: 1;
}
.agenda-content strong { display: inline; font-size: 0.95rem; color: var(--gray-900); margin-right: 8px; }
.agenda-content p { font-size: 0.87rem; color: var(--gray-700); margin: 6px 0 0; }

/* tags */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  vertical-align: middle;
}
.tag-talk     { background: #dbeafe; color: #1e40af; }
.tag-hands-on { background: #d1fae5; color: #065f46; }
.tag-panel    { background: #ede9fe; color: #4c1d95; }
.tag-admin    { background: var(--gray-200); color: var(--gray-700); }

/* ── AGENDA SESSION HEADER ───────────────────────────────────────────── */
.agenda-session-header {
  background: var(--blue-dark);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 8px 20px;
}

.agenda-speaker {
  font-size: 0.82rem;
  color: var(--blue-light);
  font-weight: 600;
  margin: 6px 0 0 !important;
}

/* ── PEOPLE GRID ─────────────────────────────────────────────────────── */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.person-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.person-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.person-photo-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  border: 3px solid var(--gray-200);
  flex-shrink: 0;
}
.person-photo-wrap img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.organizers-grid {
  grid-template-columns: repeat(5, 1fr);
}
.organizers-grid .person-photo-wrap,
.organizers-grid .person-photo-wrap img {
  width: 100px;
  height: 100px;
}
.organizers-grid .person-photo-wrap {
  margin: 16px 0;
}

.panelists-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}
.panelists-grid .person-photo-wrap,
.panelists-grid .person-photo-wrap img {
  width: 110px;
  height: 110px;
}
.panelists-grid .person-photo-wrap {
  margin: 16px 0;
}

.instructors-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 60%;
  margin-left: 0;
  margin-right: auto;
}
.instructors-grid .person-photo-wrap,
.instructors-grid .person-photo-wrap img {
  width: 100px;
  height: 100px;
}
.instructors-grid .person-photo-wrap {
  margin: 16px 0;
}

.person-card h3 { font-size: 1.05rem; color: var(--blue-dark); margin-bottom: 4px; }
.person-affiliation { font-size: 0.83rem; color: var(--blue-light); font-weight: 600; margin-bottom: 10px; }
.person-bio { font-size: 0.87rem; color: var(--gray-700); margin: 0; }

/* ── MATERIALS GRID ──────────────────────────────────────────────────── */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.material-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.material-icon { font-size: 1.8rem; }
.material-card h3 { font-size: 1rem; color: var(--blue-dark); }
.material-card p  { font-size: 0.87rem; color: var(--gray-700); flex: 1; }

.coming-soon {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 20px;
  padding: 3px 10px;
  align-self: flex-start;
}

.repo-link-box {
  text-align: center;
  padding: 24px;
  background: var(--gray-100);
  border-radius: var(--radius);
}
.repo-link-box p { margin-bottom: 14px; color: var(--gray-700); }

.btn-secondary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 26px;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.btn-secondary:hover { background: var(--blue-dark); text-decoration: none; }

/* ── REGISTRATION ────────────────────────────────────────────────────── */
.subsection-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.participation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.participation-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}
.participation-card:hover { border-color: var(--blue-light); }

.participation-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.participation-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.participation-mode {
  font-weight: 400;
  color: var(--gray-400);
  font-size: 0.88rem;
}

.registration-cta {
  text-align: center;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.registration-cta p {
  font-size: 1rem;
}

/* ── FOOTER ──────────────────────────────────────────────────────────── */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.75);
  padding: 32px 0;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer strong { color: var(--white); display: block; margin-bottom: 4px; }
.footer a { color: rgba(255,255,255,0.65); }
.footer a:hover { color: var(--white); }

.footer-links { display: flex; gap: 20px; }

.btn-jump-top {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 12px 32px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-jump-top:hover { background: #c96f08; text-decoration: none; transform: translateY(-1px); }

/* ── HYBRID NOTICE ───────────────────────────────────────────────────── */
.hybrid-notice {
  background: #eef6fb;
  border-left: 4px solid #2d9cdb;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 18px;
  margin: 20px 0;
  font-size: 0.92rem;
  color: var(--gray-700);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.hybrid-notice .hybrid-icon { font-size: 1.15rem; flex-shrink: 0; line-height: 1.6; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .organizers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .organizers-grid,
  .panelists-grid,
  .instructors-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .time { min-width: 90px; font-size: 0.76rem; }
  .agenda-block { flex-direction: column; }
  .agenda-block-label {
    writing-mode: horizontal-tb;
    transform: none;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 8px 16px;
  }
  .agenda-items { border-left: 1px solid var(--gray-200); border-radius: 0 0 var(--radius) var(--radius); }
  .participation-grid { grid-template-columns: 1fr; }
}
