@import "tokens.css";

/* ============================================================================
   eHealth 2026 — "International symposium, hosted in Bangladesh" theme layer.
   Loaded after style.css + extra.css so it refines without touching the base.
   Motifs: Bengal-delta river network, jamdani lattice, an off-centre flag red,
   editorial serif display type (Fraunces) + a Bengali face (Hind Siliguri).
   ========================================================================== */

:root {
  --bd-green: var(--color-brand-green);
  --bd-red:   var(--color-brand-red);
  --bd-lime:  var(--color-brand-lime);
}

/* ---- Typography -------------------------------------------------------- */
body, button, input, textarea, select, .picker { font-family: var(--font-sans); }
body { letter-spacing: -0.006em; }

/* Big editorial statements in a warm serif; structural headings stay sans. */
.hero-copy h1,
.page-hero h1,
.cta h2,
.pathway h3,
.announcement-card h2,
.faq-grid h2,
.about-grid h2,
.registration-aside h1,
.dashboard-heading h1,
.success-page h1,
.login-card h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  font-optical-sizing: auto;
}
em { font-family: var(--font-display); font-style: italic; font-weight: 500; }
.hero-copy h1 { font-weight: 380; }

.section-heading h2, .cta h2 { letter-spacing: -0.03em; }
.eyebrow { font-weight: 600; }

/* ---- National accents -------------------------------------------------- */
/* A discreet "letterhead" green edge at the very top of every page. */
.announcement {
  border-top: 3px solid var(--bd-green);
}

/* A persistent hairline of Bangladesh green → lime under the sticky header. */
header { position: sticky; }
header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--bd-green), var(--color-brand-green-bright) 45%, var(--bd-lime));
  opacity: 0.85;
}

/* Flag-disc red bullet on section eyebrows (light backgrounds). */
.eyebrow:not(.light) { display: flex; align-items: center; gap: 9px; }
.eyebrow:not(.light)::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bd-red);
  flex-shrink: 0;
}

/* ---- Hero: layer the Bengal delta behind the copy ---------------------- */
.hero { position: relative; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 78% 18%, var(--color-hero-glow-1), transparent 60%),
    radial-gradient(90% 70% at 12% 92%, var(--color-hero-glow-2), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: url("delta.svg") no-repeat 62% 46% / 78% auto;
  mix-blend-mode: screen;
  opacity: 0.55;
  pointer-events: none;
  transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -10px), 0);
  transition: transform 0.5s ease-out;
  animation: delta-drift 22s ease-in-out infinite alternate;
}
@keyframes delta-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-10px, -8px, 0) scale(1.03); }
}
.hero-copy, .hero-art { position: relative; z-index: 2; }
.hero-copy .eyebrow.light {
  color: var(--color-brand-lime);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.hero-copy .eyebrow.light > span {
  background: var(--color-brand-lime);
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  display: inline-block;
  flex-shrink: 0;
}
.hero-copy h1 {
  color: var(--color-text-inverse);
}
.hero-copy h1 em {
  color: var(--color-brand-lime);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}
.hero-copy > p {
  color: var(--color-text-inverse-muted);
}
.hero-buttons .btn:not(.secondary) {
  background: var(--color-brand-lime);
  color: var(--color-brand-green-deep);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}
.hero-buttons .btn:not(.secondary):hover {
  background: var(--color-brand-lime-hover);
  color: var(--color-brand-green-dark);
}
.hero-buttons .btn:not(.secondary) svg {
  color: var(--color-brand-green-deep);
}
.hero-buttons .text-link {
  color: var(--color-text-inverse);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
}
.hero-buttons .text-link svg {
  color: var(--color-text-inverse);
  transition: transform var(--transition-fast);
}
.hero-buttons .text-link:hover {
  color: var(--color-brand-lime);
}
.hero-buttons .text-link:hover svg {
  color: var(--color-brand-lime);
  transform: translateX(3px);
}
.hero-detail {
  color: var(--color-text-inverse-muted);
}
.hero-detail span {
  color: var(--color-text-inverse-muted);
}
.hero-detail svg {
  color: var(--color-text-inverse-muted);
}
.hero-copy .provisional {
  color: var(--color-text-inverse-subtle);
}
.hero-bottom {
  color: var(--color-text-inverse-muted);
}
.hero-art img {
  transform: translate3d(calc(var(--px, 0) * 10px), calc(var(--py, 0) * 8px), 0);
  transition: transform 0.5s ease-out;
}
.float-label {
  transform: translate3d(calc(var(--px, 0) * 16px), calc(var(--py, 0) * 12px), 0) rotate(-4deg);
  transition: transform 0.5s ease-out;
}

/* ---- Jamdani texture on the quiet light sections ----------------------- */
.tracks-section, .faq-section, footer, .page-hero {
  background-image: url("jamdani.svg");
  background-size: 54px 54px;
}
.tracks-section { background-color: var(--color-surface-canvas); }
.faq-section { background-color: var(--color-surface-faq); }
.page-hero { position: relative; overflow: hidden; }
.page-hero::after {
  content: "";
  position: absolute; right: -140px; top: -120px;
  width: 460px; height: 460px;
  background: url("delta.svg") no-repeat center / contain;
  opacity: 0.06;
  pointer-events: none;
}

/* Delta whisper inside the dark CTA band. */
.cta { position: relative; overflow: hidden; }
.cta::after {
  content: "";
  position: absolute; right: -80px; bottom: -160px;
  width: 520px; height: 520px;
  background: url("delta.svg") no-repeat center / contain;
  mix-blend-mode: screen; opacity: 0.4; pointer-events: none;
}
.cta > div { position: relative; z-index: 2; }

/* ---- Micro-interactions ------------------------------------------------ */
.desktop-nav a { position: relative; }
.desktop-nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -6px; height: 1.5px;
  background: var(--bd-green);
  transition: right 0.32s cubic-bezier(0.16, 0.8, 0.24, 1);
}
.desktop-nav a:hover::after { right: 0; }

.btn { transition: background 0.18s, transform 0.18s, box-shadow 0.22s; }
.btn:not(.secondary):hover { box-shadow: var(--shadow-lg); }
.nav-register { transition: background 0.18s, transform 0.18s, box-shadow 0.22s; }
.nav-register:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.track-card, .people-grid > a { transition: transform 0.28s cubic-bezier(0.16,0.8,0.24,1), box-shadow 0.28s, border-color 0.28s; }
.track-card:hover { box-shadow: var(--shadow-xl); border-color: var(--color-border-strong); }
.track-icon { transition: transform 0.28s cubic-bezier(0.16,0.8,0.24,1), background 0.28s; }
.track-card:hover .track-icon { transform: translateY(-2px) rotate(-4deg); background: var(--color-emerald-100); }
.people-grid > a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.language { transition: color var(--transition-fast); border-radius: var(--radius-sm); }
.language:hover { color: var(--bd-green); }

/* ---- Scroll-reveal (progressive; only applied once JS marks elements) --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 0.8, 0.24, 1),
              transform 0.7s cubic-bezier(0.16, 0.8, 0.24, 1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero::after, .hero-art img, .float-label { animation: none; transform: none; }
}

/* ---- A few responsive refinements -------------------------------------- */
@media (max-width: 850px) {
  .hero::after { opacity: 0.4; background-size: 130% auto; background-position: 70% 30%; }
  .page-hero::after { width: 300px; height: 300px; right: -100px; top: -90px; }
}

/* ============================================================================
   Colour & imagery refresh — brighter, more welcoming, still cohesive.
   Inspired by a lively Bangladesh innovation-fair palette (teal / emerald /
   coral / amber) layered over the existing green identity.
   ========================================================================== */
:root {
  --teal:         var(--color-teal-500);
  --teal-bright:  var(--color-teal-400);
  --coral:        var(--color-coral-400);
  --amber:        var(--color-amber-500);
  --sky:          var(--color-sky-400);
  --emerald:      var(--color-emerald-500);
}

/* ---- Hero: livelier gradient + the new relevant illustration ------------ */
.hero {
  background: radial-gradient(135% 130% at 82% 0%, var(--color-brand-green-light) 0%, var(--color-brand-green-mid) 44%, var(--color-brand-green-deep) 100%);
}
.hero::before {
  background:
    radial-gradient(90% 70% at 16% 20%, var(--color-hero-sky-glow), transparent 60%),
    radial-gradient(120% 90% at 82% 12%, var(--color-hero-emerald-glow), transparent 62%),
    radial-gradient(80% 70% at 60% 100%, var(--color-hero-glow-2), transparent 70%);
}
.hero-art { width: 100%; margin-left: 0; }
.hero-collage {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.collage-main img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-4xl);
  box-shadow: var(--shadow-2xl);
}
.collage-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.collage-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
}
.collage-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  transition: transform 0.45s ease;
}
.collage-item:hover img {
  transform: scale(1.04);
}
.collage-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--color-surface-glass-dark);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-text-inverse);
  font-size: var(--font-size-2xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-md);
  pointer-events: none;
}
.hero-art .art-caption { display: none; }
.float-label { bottom: 20px; }

/* ---- Colourful section accents ----------------------------------------- */
/* About: give the two info cards bright icon chips. */
.info-cards > div svg {
  box-sizing: content-box;
  width: 24px; height: 24px; padding: 12px;
  border-radius: var(--radius-2xl); color: var(--color-text-inverse); background: var(--teal);
}
.info-cards > div:nth-child(2) svg { background: var(--coral); }

/* Challenge tracks: rotate icon colours so the grid feels alive. */
.track-grid > div:nth-child(3n+1) .track-icon { color: var(--color-teal-500); background: var(--color-teal-100); }
.track-grid > div:nth-child(3n+2) .track-icon { color: var(--color-amber-600); background: var(--color-amber-100); }
.track-grid > div:nth-child(3n+3) .track-icon { color: var(--color-indigo-600); background: var(--color-indigo-100); }

/* Timeline milestones: colourful step badges. */
.milestones > div:nth-child(3n+1) .step-number { color: var(--color-text-inverse); background: var(--teal); }
.milestones > div:nth-child(3n+2) .step-number { color: var(--color-text-inverse); background: var(--coral); }
.milestones > div:nth-child(3n+3) .step-number { color: var(--color-text-inverse); background: var(--sky); }
.timeline-list .step-number { color: var(--color-text-inverse); background: var(--teal); }

/* A warmer, brighter closing CTA band. */
.cta { background: linear-gradient(125deg, var(--color-brand-green-mid) 0%, var(--color-brand-green) 55%, var(--color-brand-green-light) 100%); }

/* People cards: a soft tint + coloured "soon" pill. */
.people-grid > a:nth-child(3n+1) { background: linear-gradient(160deg, var(--color-surface-white), var(--color-surface-card-alt-1)); }
.people-grid > a:nth-child(3n+2) { background: linear-gradient(160deg, var(--color-surface-white), var(--color-surface-card-alt-2)); }
.people-grid > a:nth-child(3n+3) { background: linear-gradient(160deg, var(--color-surface-white), var(--color-surface-card-alt-3)); }
.soon { color: var(--teal); border-color: var(--color-teal-border); background: var(--color-teal-50); }

/* ---- Dhaka skyline band above the footer ------------------------------- */
footer { position: relative; }
footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 54px;
  background: url("skyline.svg") center bottom / cover no-repeat;
  opacity: 0.8; pointer-events: none;
}

@media (min-width: 851px) {
  .hero-collage {
    flex-direction: row;
    align-items: stretch;
  }
  .collage-main {
    flex: 1.6;
    min-width: 0;
  }
  .collage-main img {
    height: 100%;
    min-height: 320px;
  }
  .collage-side {
    flex: 1;
    min-width: 0;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .collage-item img {
    height: 100%;
    min-height: 150px;
  }
}

@media (max-width: 850px) {
  .hero-collage { max-width: 460px; margin: 0 auto; }
  .collage-main img { height: 220px; }
  .collage-item img { height: 130px; }
  footer::before { height: 40px; }
}

/* Active navigation link indicator */
body[data-page="speakers"] .desktop-nav a[href="speakers.html"]::after,
body[data-page="about"] .desktop-nav a[href="about.html"]::after,
body[data-page="tracks"] .desktop-nav a[href="tracks.html"]::after,
body[data-page="timeline"] .desktop-nav a[href="timeline.html"]::after,
body[data-page="faq"] .desktop-nav a[href="faq.html"]::after {
  right: 0;
}

/* ============================================================================
   Speakers Page — Modern, Editorial Card Layout & Talk Agenda
   ========================================================================== */
.speakers-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-teal-50);
  color: var(--color-teal-600);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-5);
  border: 1px solid var(--color-teal-border);
}

.speaker-filters {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin: var(--space-7) 0 var(--space-9);
}

.speaker-filter-btn {
  border: 1px solid var(--color-border-default);
  background: var(--color-surface-white);
  color: var(--color-text-body);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: inherit;
}

.speaker-filter-btn:hover,
.speaker-filter-btn.active {
  background: var(--color-brand-green);
  color: var(--color-text-inverse);
  border-color: var(--color-brand-green);
  box-shadow: var(--shadow-glow-green);
  transform: translateY(-1px);
}

/* Featured Keynote Card */
.featured-speaker {
  background: linear-gradient(135deg, var(--color-brand-green-deep) 0%, var(--color-brand-green-mid) 50%, var(--color-brand-green-light) 100%), url("jamdani.svg");
  background-size: cover, 54px 54px;
  color: var(--color-text-inverse);
  border-radius: var(--radius-5xl);
  padding: var(--space-9);
  margin-bottom: var(--space-11);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-9);
  align-items: center;
  box-shadow: var(--shadow-2xl);
  position: relative;
  overflow: hidden;
}

.featured-speaker::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--color-glow-lime) 0%, transparent 70%);
  pointer-events: none;
}

.featured-speaker::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 320px;
  height: 320px;
  background: url("delta.svg") no-repeat center / contain;
  mix-blend-mode: screen;
  opacity: 0.18;
  pointer-events: none;
}

.featured-avatar-wrap {
  position: relative;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 3px solid var(--color-border-glass);
}

.featured-avatar-wrap img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--bd-red);
  color: var(--color-text-inverse);
  font-size: var(--font-size-2xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: var(--space-1) var(--space-2\.5);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.featured-content h3 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 400;
  margin: 8px 0 4px;
  color: var(--color-text-inverse);
  letter-spacing: var(--tracking-tight);
}

.featured-role {
  color: var(--bd-lime);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.featured-bio {
  color: var(--color-text-inverse-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 22px;
}

.featured-agenda-box {
  background: var(--color-surface-glass-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-glass);
  border-radius: var(--radius-2xl);
  padding: var(--space-4) var(--space-5);
}

.agenda-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bd-lime);
  margin-bottom: 6px;
}

.agenda-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-inverse);
  margin: 0;
  line-height: var(--line-height-snug);
}

/* Speaker Grid & Alternating Card Tints */
.speaker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-7);
  margin-bottom: var(--space-12);
}

.speaker-card {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-4xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.speaker-card:nth-child(3n+1) { background: linear-gradient(160deg, var(--color-surface-white) 0%, var(--color-surface-card-alt-1) 100%); }
.speaker-card:nth-child(3n+2) { background: linear-gradient(160deg, var(--color-surface-white) 0%, var(--color-surface-card-alt-2) 100%); }
.speaker-card:nth-child(3n+3) { background: linear-gradient(160deg, var(--color-surface-white) 0%, var(--color-surface-card-alt-3) 100%); }

.speaker-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-border-strong);
}

.speaker-card-top {
  padding: var(--space-6) var(--space-6) var(--space-4);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.speaker-avatar-wrap {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  border-radius: var(--radius-3xl);
  overflow: hidden;
  background: var(--color-surface-muted);
  border: 2px solid var(--color-surface-white);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base);
}

.speaker-card:hover .speaker-avatar-wrap {
  transform: scale(1.04) rotate(-2deg);
}

.speaker-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.speaker-info {
  flex: 1;
  min-width: 0;
}

.speaker-tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-2xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-2);
}

.tag-teal { background: var(--color-teal-50); color: var(--color-teal-600); }
.tag-coral { background: var(--color-coral-50); color: var(--color-coral-600); }
.tag-sky { background: var(--color-sky-100); color: var(--color-sky-600); }
.tag-emerald { background: var(--color-emerald-50); color: var(--color-emerald-600); }
.tag-amber { background: var(--color-amber-50); color: var(--color-amber-600); }
.tag-indigo { background: var(--color-indigo-50); color: var(--color-indigo-600); }

.speaker-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 0 0 4px;
  line-height: 1.25;
}

.speaker-title {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin: 0;
}

.speaker-body {
  padding: 0 24px 20px;
  flex: 1;
}

.speaker-bio {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.speaker-agenda {
  background: var(--color-surface-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-border-subtle);
  padding: 18px 24px;
  margin-top: auto;
}

.speaker-agenda-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-teal-500);
  margin-bottom: var(--space-1\.5);
}

.speaker-agenda-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.speaker-agenda-topic {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 850px) {
  .featured-speaker, .featured-judge {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 20px;
  }
  .featured-avatar-wrap img {
    height: 200px;
  }
  .speaker-grid {
    grid-template-columns: 1fr;
  }
}

/* Active navigation link indicator */
body[data-page="speakers"] .desktop-nav a[href="speakers.html"]::after,
body[data-page="judges"] .desktop-nav a[href="speakers.html"]::after,
body[data-page="mentors"] .desktop-nav a[href="speakers.html"]::after,
body[data-page="partners"] .desktop-nav a[href="speakers.html"]::after,
body[data-page="exhibitors"] .desktop-nav a[href="speakers.html"]::after,
body[data-page="about"] .desktop-nav a[href="about.html"]::after,
body[data-page="tracks"] .desktop-nav a[href="tracks.html"]::after,
body[data-page="timeline"] .desktop-nav a[href="timeline.html"]::after,
body[data-page="faq"] .desktop-nav a[href="faq.html"]::after {
  right: 0;
}

/* ============================================================================
   Judges & Mentors Page — Distinct Layout & Role Styles
   ========================================================================== */

/* Evaluation Criteria Matrix (Judges Page) */
.evaluation-matrix-section {
  margin: var(--space-8) 0 var(--space-11);
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.criteria-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.criteria-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-teal-500);
}

.criteria-percent {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-medium);
  color: var(--color-teal-500);
  margin-bottom: var(--space-1);
}

.criteria-card h4 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-1);
}

.criteria-card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-normal);
  margin: 0;
}

/* Featured Grand Jury Chair */
.featured-judge {
  background: linear-gradient(135deg, var(--color-indigo-900) 0%, var(--color-indigo-700) 50%, var(--color-indigo-600) 100%), url("jamdani.svg");
  background-size: cover, 54px 54px;
  color: var(--color-text-inverse);
  border-radius: var(--radius-5xl);
  padding: var(--space-9);
  margin-bottom: var(--space-11);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-9);
  align-items: center;
  box-shadow: var(--shadow-2xl);
  position: relative;
  overflow: hidden;
}

.featured-judge::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--color-glow-sky) 0%, transparent 70%);
  pointer-events: none;
}

.featured-judge::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 320px;
  height: 320px;
  background: url("delta.svg") no-repeat center / contain;
  mix-blend-mode: screen;
  opacity: 0.18;
  pointer-events: none;
}

.featured-judge .featured-badge {
  background: var(--color-sky-600);
}

.focus-pills {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

.focus-pill {
  background: var(--color-surface-glass-subtle);
  border: 1px solid var(--color-border-glass);
  color: var(--color-text-inverse);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
}

/* Judge Evaluation Focus Box */
.judge-focus-box {
  background: var(--color-surface-glass);
  border-top: 1px solid var(--color-border-subtle);
  padding: var(--space-3) var(--space-6);
  margin-top: auto;
  font-size: var(--font-size-xs);
  color: var(--color-text-body);
}

.judge-focus-box strong {
  display: block;
  font-size: var(--font-size-2xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--color-indigo-600);
  margin-bottom: var(--space-1);
}

/* Mentors Domains Banner */
.mentor-domains-section {
  margin: var(--space-8) 0 var(--space-10);
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.domain-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-sm);
}

.domain-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xl);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--color-text-inverse);
}

.icon-tech { background: var(--color-teal-500); }
.icon-clinical { background: var(--color-coral-400); }
.icon-ux { background: var(--color-sky-400); }
.icon-pitch { background: var(--color-amber-500); }

.domain-card h4 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0 0 2px;
}

.domain-card p {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin: 0;
}

/* Mentor Expertise Badges */
.mentor-skills {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  padding: 0 var(--space-6) var(--space-4);
}

.skill-chip {
  background: var(--color-surface-muted);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-subtle);
  font-size: var(--font-size-2xs);
  font-weight: var(--font-weight-medium);
  padding: 3px var(--space-2);
  border-radius: var(--radius-lg);
}

.mentor-availability {
  background: var(--color-surface-card-alt-1);
  border-top: 1px solid var(--color-border-subtle);
  padding: var(--space-3) var(--space-6);
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-teal-600);
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-emerald-500);
  display: inline-block;
  margin-right: var(--space-1);
  box-shadow: var(--shadow-glow-green);
}

/* ============================================================================
   Partners & Sponsors Page — Tier Showcase & Ecosystem Matrix
   ========================================================================== */
.partner-support-section {
  margin: var(--space-8) 0 var(--space-10);
}

.partner-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.partner-support-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-2xl);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.partner-support-card h4 {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-1);
}

.partner-support-card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-normal);
  margin: 0 0 var(--space-3);
}

.support-stat {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  color: var(--color-teal-500);
  font-weight: var(--font-weight-medium);
  margin-top: auto;
}

/* Featured Host Partner */
.featured-partner {
  background: linear-gradient(135deg, var(--color-emerald-900) 0%, var(--color-emerald-700) 50%, var(--color-emerald-600) 100%), url("jamdani.svg");
  background-size: cover, 54px 54px;
  color: var(--color-text-inverse);
  border-radius: var(--radius-5xl);
  padding: var(--space-9);
  margin-bottom: var(--space-11);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-9);
  align-items: center;
  box-shadow: var(--shadow-2xl);
  position: relative;
  overflow: hidden;
  border: 2px solid var(--color-brand-lime);
}

.featured-partner::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 320px;
  height: 320px;
  background: url("delta.svg") no-repeat center / contain;
  mix-blend-mode: screen;
  opacity: 0.2;
  pointer-events: none;
}

.partner-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-4xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-teal-500);
}

.partner-logo-wrap {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: var(--radius-4xl);
  overflow: hidden;
  background: var(--color-surface-white);
  border: 2px solid var(--color-border-subtle);
  box-shadow: var(--shadow-md);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.perk-chips {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  padding: 0 var(--space-6) var(--space-4);
}

.perk-chip {
  background: var(--color-teal-50);
  color: var(--color-teal-600);
  border: 1px solid var(--color-teal-border);
  font-size: var(--font-size-2xs);
  font-weight: var(--font-weight-semibold);
  padding: 3px var(--space-2);
  border-radius: var(--radius-lg);
}

.tier-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-2xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-2);
}

.tier-diamond { background: var(--color-amber-100); color: var(--color-amber-700); border: 1px solid var(--color-amber-200); }
.tier-gold { background: var(--color-amber-50); color: var(--color-amber-700); border: 1px solid var(--color-amber-100); }
.tier-cloud { background: var(--color-sky-100); color: var(--color-sky-700); border: 1px solid var(--color-sky-200); }
.tier-clinical { background: var(--color-emerald-50); color: var(--color-emerald-700); border: 1px solid var(--color-emerald-200); }
.tier-ecosystem { background: var(--color-purple-100); color: var(--color-purple-700); border: 1px solid var(--color-purple-200); }
.tier-venture { background: var(--color-indigo-100); color: var(--color-indigo-700); border: 1px solid var(--color-indigo-200); }

/* ============================================================================
   Exhibitors Page — Hall Directory & Product Showcase
   ========================================================================== */
.hall-directory-section {
  margin: var(--space-8) 0 var(--space-10);
}

.hall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.hall-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-3xl);
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.hall-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-teal-500);
}

.hall-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.hall-badge {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  padding: 3px var(--space-2);
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.hall-a { background: var(--color-sky-100); color: var(--color-sky-600); }
.hall-b { background: var(--color-emerald-50); color: var(--color-emerald-600); }
.hall-c { background: var(--color-purple-100); color: var(--color-purple-700); }

.hall-booths {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
}

.hall-card h4 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-1);
}

.hall-card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: var(--line-height-normal);
  margin: 0;
}

/* Exhibitor Cards */
.exhibitor-card {
  background: var(--color-surface-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-4xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.exhibitor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-teal-500);
}

.booth-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--color-surface-dark-slate);
  color: var(--color-text-inverse);
  font-size: var(--font-size-2xs);
  font-weight: var(--font-weight-bold);
  padding: 3px var(--space-2);
  border-radius: var(--radius-md);
  letter-spacing: var(--tracking-wide);
}

.demo-slot {
  background: var(--color-amber-50);
  border-top: 1px solid var(--color-amber-100);
  padding: var(--space-3) var(--space-6);
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-amber-700);
}

.product-chips {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  padding: 0 var(--space-6) var(--space-4);
}

.product-chip {
  background: var(--color-surface-muted);
  color: var(--color-text-body);
  border: 1px solid var(--color-border-subtle);
  font-size: var(--font-size-2xs);
  font-weight: var(--font-weight-medium);
  padding: 3px var(--space-2);
  border-radius: var(--radius-lg);
}

@media (max-width: 850px) {
  .featured-partner {
    grid-template-columns: 1fr;
    padding: var(--space-6);
    gap: var(--space-5);
  }
}

/* ============================================================================
   Hero collage holding ILLUSTRATIONS rather than photographs.
   Photos can be cover-cropped; illustrations cannot — they must be seen whole.
   So the tiles adopt their artwork's aspect ratio at every breakpoint.
   ========================================================================== */
.hero-collage { flex-direction: column; }
.collage-main { flex: none; }
.collage-main img {
  height: auto;
  min-height: 0;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: transparent;
  box-shadow: 0 18px 40px rgba(4, 32, 26, 0.32);
}
.collage-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
.collage-item img {
  height: auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  box-shadow: 0 14px 30px rgba(4, 32, 26, 0.28);
}
@media (min-width: 851px) {
  .hero-collage { flex-direction: column; align-items: stretch; }
  .collage-main { flex: none; }
  .collage-main img { height: auto; min-height: 0; }
  .collage-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .collage-item img { height: auto; min-height: 0; }
}

/* ============================================================================
   HOMEPAGE — colour banding, oversized numerals, pattern.
   Scoped to the homepage so inner pages keep their calmer treatment.
   Rhythm: deep green → cream → white → mint → cream → marigold → deep green.
   ========================================================================== */
body[data-page="index"] {
  --band-cream: #fdf4e3;
  --band-mint: #dff1e9;
  --band-marigold: #f7b93f;
  --band-deep: #0d4f43;
  --ink-warm: #5a3d14;
}

/* --- 1. Facts strip: cream band with oversized numerals ----------------- */
body[data-page="index"] .facts {
  background: var(--band-cream);
  background-image: url("jamdani.svg");
  background-size: 54px 54px;
  border: 0;
  border-radius: 20px;
  padding: 34px 10px;
  margin-top: 34px;
}
body[data-page="index"] .facts div { border-right-color: rgba(90, 61, 20, 0.16); }
body[data-page="index"] .facts strong {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2.2rem, 3.4vw, 3.1rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #12503f;
}
body[data-page="index"] .facts div:nth-child(2) strong { color: #c2620c; }
body[data-page="index"] .facts div:nth-child(3) strong { color: #0f7d8c; }
body[data-page="index"] .facts div:nth-child(4) strong { color: #b23a48; }
body[data-page="index"] .facts span { color: #6b5836; font-size: 13px; margin-top: 8px; }

/* --- 2. Tracks: deeper mint band ---------------------------------------- */
body[data-page="index"] .tracks-section { background-color: var(--band-mint); }

/* --- 3. Schedule strip: marigold band ----------------------------------- */
body[data-page="index"] .schedule-strip {
  background: var(--band-marigold);
  background-image: url("jamdani.svg");
  background-size: 54px 54px;
  border-block: 0;
}
body[data-page="index"] .schedule-strip .eyebrow { color: #7a4a10; }
body[data-page="index"] .schedule-strip .eyebrow::before { background: #12503f; }
body[data-page="index"] .schedule-strip h2,
body[data-page="index"] .schedule-strip h3 { color: #4a2f0a; }
body[data-page="index"] .schedule-strip p,
body[data-page="index"] .schedule-strip .section-heading p { color: #6d4b17; }
body[data-page="index"] .schedule-strip .milestones > div { border-top-color: rgba(74, 47, 10, 0.28); }
body[data-page="index"] .schedule-strip .milestones strong {
  color: #3d2708;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 400;
}
body[data-page="index"] .schedule-strip .milestones strong small { color: #7a5a22; }
body[data-page="index"] .schedule-strip .step-number {
  background: #12503f !important;
  color: #ffe9b8 !important;
  font-weight: 600;
}

/* --- 4. People: deep green band so the cards and faces pop -------------- */
body[data-page="index"] .people-band {
  background: var(--band-deep);
  background-image: url("jamdani-light.svg");
  background-size: 54px 54px;
  padding-top: 78px;
  padding-bottom: 78px;
}
body[data-page="index"] .people-band .section-heading h2 { color: #f4fbf6; }
body[data-page="index"] .people-band .section-heading p,
body[data-page="index"] .people-band .partners-line { color: #b9d6c8; }
body[data-page="index"] .people-band .eyebrow { color: #9fd3b4; }
body[data-page="index"] .people-band .partners-line {
  border-block-color: rgba(255, 255, 255, 0.16);
}
body[data-page="index"] .people-band .partners-line a { color: #eafff4; }
body[data-page="index"] .people-band {
  border-radius: 22px;
  padding-left: 42px;
  padding-right: 42px;
}
@media (max-width: 700px) {
  body[data-page="index"] .people-band { padding-left: 20px; padding-right: 20px; }
}

/* Overlapping illustrated portraits on the homepage people cards */
body[data-page="index"] .face-stack {
  display: inline-flex;
  align-items: center;
  margin-bottom: 4px;
}
body[data-page="index"] .face-stack img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #ffffff;
  box-shadow: 0 4px 10px rgba(16, 48, 38, 0.18);
  background: #dff1e9;
}
body[data-page="index"] .face-stack img + img { margin-left: -14px; }
body[data-page="index"] .people-grid > a:hover .face-stack img + img { margin-left: -8px; }
body[data-page="index"] .face-stack img { transition: margin-left 0.28s cubic-bezier(0.16, 0.8, 0.24, 1); }

/* Illustrated banner at the top of each challenge-track card */
body[data-page="index"] .track-card { overflow: hidden; padding-top: 0; }
body[data-page="index"] .track-art {
  display: block;
  width: calc(100% + 52px);
  margin: 0 -26px 20px;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}
@media (max-width: 850px) {
  body[data-page="index"] .track-art { width: calc(100% + 38px); margin: 0 -19px 16px; }
}
