/* ============================================
   AWS Builder Community Day — Styles
   ============================================ */

:root {
  --bg:          #0a0a0f;
  --bg-card:     #111118;
  --grid-line:   rgba(255, 255, 255, 0.04);
  --accent:      #9b59f5;   /* exact logo purple */
  --accent-2:    #7c3ee0;
  --accent-glow: rgba(155, 89, 245, 0.28);
  --aws-orange:  #ff9900;
  --text:        #f0f0f5;
  --text-muted:  #7b7b96;
  --border:      rgba(255, 255, 255, 0.08);
  --radius:      12px;
  --cell:        48px;
  --font:        'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ============================================
   GRID BACKGROUND — unchanged
   ============================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 68px;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}
.nav-logo .logo-text { display: flex; flex-direction: column; }
.nav-logo .logo-title { font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.nav-logo .logo-sub   { font-size: 0.68rem; font-weight: 500; color: var(--accent); white-space: nowrap; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 7px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }

/* Active nav link — white text + purple underline */
.nav-links a.active {
  color: var(--text);
  background: transparent;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--accent-glow);
}

.btn-register {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  font-family: var(--font) !important;
  font-size: 0.88rem !important;
  transition: background 0.2s, box-shadow 0.2s !important;
}
.btn-register:hover {
  background: var(--accent-2) !important;
  box-shadow: 0 0 20px var(--accent-glow) !important;
}

.footer-col-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: color 0.2s;
}
.footer-col-btn:hover { color: var(--accent); }

/* Ticket-shaped register button in footer */
.footer-ticket-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 14px;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, box-shadow 0.2s;
  /* ticket notches */
  -webkit-mask:
    radial-gradient(circle 5px at 0% 50%, transparent 100%, black 0),
    radial-gradient(circle 5px at 100% 50%, transparent 100%, black 0);
  -webkit-mask-composite: destination-in;
  mask:
    radial-gradient(circle 5px at 0% 50%, transparent 100%, black 0),
    radial-gradient(circle 5px at 100% 50%, transparent 100%, black 0);
  mask-composite: intersect;
}
.footer-ticket-btn:hover {
  background: var(--accent-2);
  box-shadow: 0 0 14px var(--accent-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO  — split layout
   ============================================ */
.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 40px 6% 60px;
  position: relative;
  z-index: 1;
  gap: 6%;
  overflow: hidden;
}

/* Full left-side gradient — only visible within hero, scrolls away naturally */
.hero::before {
  content: '';
  position: absolute;
  top: -5%; left: -5%;
  width: 65%;
  height: calc(100% + 240px);
  background:
    radial-gradient(ellipse 75% 65% at 8% 42%,
      rgba(155, 89, 245, 0.28) 0%,
      rgba(130, 60, 220, 0.14) 30%,
      rgba(90,  40, 180, 0.06) 56%,
      transparent 78%);
  pointer-events: none;
  z-index: 0;
}
.hero::after { display: none; }

/* ---- Left: text directly on grid, no box ---- */
.hero-left {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;   /* vertically centres content */
  gap: 0;
  align-self: stretch;       /* fill full hero height so justify-content works */
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--aws-orange);
  background: rgba(255, 153, 0, 0.08);
  border: 1px solid rgba(255, 153, 0, 0.22);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--aws-orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

.hero-left h1 {
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  color: #fff;
}


/* ---- Hero title block — stacked layout matching reference ---- */
.hero-title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 22px;
}

/* AWS logo — small, top */
.hero-title-block .hero-aws-logo {
  height: 56px;
  width: auto;
  margin-bottom: 6px;
  display: block;
  vertical-align: unset;
}

/* STUDENT */
.hero-student {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  margin-bottom: 2px;
}

/* COMMUNITY DAY + year row */
.hero-cd-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1;
  margin-bottom: 6px;
}

.hero-cd-text {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 0.95;
}

/* "2026" inline in orange after DAY */
.hero-year {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 900;
  color: var(--aws-orange);
  letter-spacing: -0.02em;
  line-height: 0.95;
}

/* DERA ISMAIL KHAN */
.hero-location {
  font-size: clamp(0.75rem, 1.4vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}

/* Hero quick stats strip */
.hero-stats {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.hero-stat-num {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
}
.hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.hero-stats-sep {
  color: rgba(155, 89, 245, 0.4);
  font-weight: 400;
  align-self: center;
}

@media (max-width: 480px) {
  .hero-stats {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
  }
  .hero-stat-num   { font-size: 0.72rem; }
  .hero-stat-label { font-size: 0.6rem; white-space: nowrap; }
  .hero-stats-sep  { font-size: 0.7rem; }
}

/* "Community Day" in purple */
.hero-left h1 .highlight {
  color: var(--accent);
}

.hero-left p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 440px;
}

/* ---- Right: pixel mosaic on grid ---- */
.hero-right {
  position: relative;
  z-index: 1;
  width: 100%;
  /* 9 rows × 40px + 8 gaps × 6px = 408px */
  height: calc(40px * 9 + 6px * 8);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/*
  11 cols × 9 rows, cell=40px, gap=6px.
  Mix of 1×1, 2×2, 2×1 blocks with visible gaps.
  Sharp corners. No animation.
*/
.mosaic {
  display: grid;
  grid-template-columns: repeat(11, 40px);
  grid-template-rows:    repeat(9,  40px);
  gap: 6px;
  flex-shrink: 0;
}

/* base block — sharp square corners, no animation */
.mb { width: 100%; height: 100%; }

/* colours — violet = same as logo purple */
.mb-orange  { background: #ff9900; }
.mb-violet  { background: #9b59f5; }   /* logo purple */
.mb-teal    { background: #14b8a6; }
/* legacy aliases kept for safety */
.mb-purple  { background: #9b59f5; }
.mb-purple2 { background: #9b59f5; }
.mb-orange2 { background: #ff9900; }
.mb-cyan    { background: #14b8a6; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 0 28px var(--accent-glow);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

/* ============================================
   STATS BAR — removed
   ============================================ */

/* ============================================
   SECTION COMMONS
   ============================================ */
.section-inner {
  padding: 70px 6%;
  position: relative;
  z-index: 1;
}
.section-divider {
  border-top: 1px solid var(--border);
}
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 0.97rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ============================================
   CARDS — 3 per row, compact so all 6 fit in one viewport
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover { border-color: rgba(155,89,245,0.3); transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,0.4); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 32px; height: 32px;
  background: rgba(155,89,245,0.1);
  border: 1px solid rgba(155,89,245,0.2);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  color: var(--accent);
}
.card-icon svg { width: 16px; height: 16px; }
.card h3 { font-size: 0.82rem; font-weight: 700; margin-bottom: 5px; }
.card p  { font-size: 0.76rem; color: var(--text-muted); line-height: 1.55; }

/* 4-column grid for image cards */
.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Image card variant */
.card.card-img {
  padding: 0;
  overflow: hidden;
}
.card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.card.card-img:hover .card-img-wrap img {
  transform: scale(1.04);
}
.card-body {
  padding: 16px 16px 18px;
}
.card.card-img .card-icon  { margin-bottom: 10px; }
.card.card-img h3          { font-size: 0.82rem; font-weight: 700; margin-bottom: 5px; }
.card.card-img p           { font-size: 0.76rem; color: var(--text-muted); line-height: 1.55; }

@media (max-width: 900px) { .card-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid-4 { grid-template-columns: 1fr; } }

/* ============================================
   TIMELINE
   ============================================ */
.timeline { display: flex; flex-direction: column; gap: 2px; max-width: 760px; }
.timeline-item { display: flex; gap: 24px; align-items: flex-start; padding: 18px 22px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color 0.3s; }
.timeline-item:hover { border-color: rgba(124,106,247,0.3); }
.timeline-time { font-size: 0.8rem; font-weight: 600; color: var(--accent); white-space: nowrap; min-width: 88px; padding-top: 2px; }
.timeline-content h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 3px; }
.timeline-content p  { font-size: 0.83rem; color: var(--text-muted); }

/* ============================================
   SPEAKERS — glassmorphism cards
   ============================================ */
.speakers-reveal-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 8px;
}

.spk-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(155, 89, 245, 0.18);
  background: var(--bg-card);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.spk-card:hover {
  transform: translateY(-5px);
  border-color: rgba(155, 89, 245, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(155,89,245,0.12);
}

/* Glassmorphism photo area */
.spk-glass {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(135deg,
      rgba(155, 89, 245, 0.22) 0%,
      rgba(90, 60, 200, 0.14) 40%,
      rgba(20, 184, 166, 0.08) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* subtle animated shimmer */
.spk-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255,255,255,0.06) 50%,
    transparent 80%
  );
  background-size: 200% 200%;
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* grid pattern overlay */
.spk-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(155,89,245,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155,89,245,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.spk-lock {
  position: relative;
  z-index: 1;
  color: rgba(155, 89, 245, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Info strip below */
.spk-info {
  padding: 14px 16px;
  border-top: 1px solid rgba(155, 89, 245, 0.12);
  text-align: center;
}
.spk-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 3px;
}
.spk-role {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Speaker photo glass area */
.spk-glass-photo {
  background: var(--bg-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.spk-glass-photo::before,
.spk-glass-photo::after { display: none; }
.spk-glass-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Community/role tag below role */
.spk-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #14b8a6;
  margin-top: 3px;
}

@media (max-width: 900px) { .speakers-reveal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .speakers-reveal-grid { grid-template-columns: repeat(2, 1fr); } }

/* Speaker teaser notice */
.spk-teaser {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(155, 89, 245, 0.07);
  border: 1px solid rgba(155, 89, 245, 0.2);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.spk-teaser strong { color: var(--text); }
.spk-teaser-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

/* "Could be You?" CTA card */
.spk-card-cta {
  text-decoration: none;
  cursor: pointer;
  border-color: rgba(155, 89, 245, 0.3);
  border-style: dashed;
}
.spk-card-cta:hover {
  border-color: var(--accent);
  border-style: solid;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 30px rgba(155,89,245,0.18);
}

.spk-glass-cta {
  background:
    linear-gradient(135deg,
      rgba(155, 89, 245, 0.1) 0%,
      rgba(155, 89, 245, 0.04) 100%);
  flex-direction: column;
  gap: 10px;
}
.spk-cta-icon {
  color: var(--accent);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(155, 89, 245, 0.12);
  border: 1px solid rgba(155, 89, 245, 0.25);
  transition: background 0.3s, transform 0.3s;
}
.spk-card-cta:hover .spk-cta-icon {
  background: rgba(155, 89, 245, 0.22);
  transform: scale(1.08);
}
.spk-cta-label {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}
/* ============================================
   PREVIOUS EVENTS — two-column (heading inside left col)
   ============================================ */

/* .events-gallery wrapper is gone — section-inner padding handles spacing */

.events-split {
  display: grid;
  grid-template-columns: 2fr 3fr;   /* ~40% / 60% */
  gap: 56px;
  align-items: center;
  margin-top: 0;
  padding-top: 80px;
  padding-bottom: 10px;             /* section-inner already has 70px bottom */
  border-top: 1px solid var(--border);
}

/* LEFT: editorial statement */
.events-editorial {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.events-editorial-heading {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.events-editorial-sub {
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 400;
}

.events-story-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(155, 89, 245, 0.3);
  padding-bottom: 2px;
  width: fit-content;
  transition: color 0.2s, border-color 0.2s;
}
.events-story-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* RIGHT: mosaic — self-contained height, never stretches to fill parent */
.events-mosaic {
  width: 100%;
  /* align-self: center prevents grid from stretching this column */
  align-self: center;
}

.em-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 160px 200px 140px;
  grid-auto-flow: dense;
  gap: 6px;
}

/* tall: col 1, rows 1–2 — placement via inline style */
.em-tall {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  min-height: 0;
}

/* top-right pair, wide, and bottom pair placements are on inline styles */

/* wide image needs these base styles */
.em-wide {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  min-height: 0;
}

.em-sm {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  min-height: 0;
}

/* hover lift */
.em-grid img {
  transition: transform 0.3s, box-shadow 0.3s;
}
.em-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
}

/* 1100px */
@media (max-width: 1100px) {
  .events-split { gap: 40px; }
  .em-grid {
    grid-template-rows: 140px 175px 120px;
  }
}

/* 860px — stack */
@media (max-width: 860px) {
  .events-split {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 60px;
  }
  .em-grid {
    grid-template-rows: 130px 165px 115px;
  }
}

/* 480px mobile */
@media (max-width: 480px) {
  .events-split {
    padding-top: 45px;
  }
  .em-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 120px 120px 110px 110px;
  }
  .em-tall { grid-column: 1;     grid-row: 1 / 3; }
  .em-tr1  { grid-column: 2;     grid-row: 1; }
  .em-tr2  { grid-column: 2;     grid-row: 2; }
  .em-wide { grid-column: 1 / 3; grid-row: 3; }
  .em-bl   { grid-column: 1;     grid-row: 4; }
  .em-br   { grid-column: 2;     grid-row: 4; }
}
  .em-sm:nth-child(6) { grid-column: 2;     grid-row: 4; }

/* ============================================
   ABOUT — split layout with image
   ============================================ */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;   /* image top-aligns with the heading */
  margin-top: 0;
}

.about-text { display: flex; flex-direction: column; }

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  width: 100%;
  aspect-ratio: 4/3;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .about-split { grid-template-columns: 1fr; gap: 28px; }
  .about-image { aspect-ratio: 16/9; }
}

/* Speakers */
.speakers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 24px; }
.speaker-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 18px; text-align: center; transition: border-color 0.3s, transform 0.3s; }
.speaker-card:hover { border-color: rgba(124,106,247,0.3); transform: translateY(-4px); }
.speaker-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #c084fc);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  margin: 0 auto 12px;
  border: 2px solid rgba(155,89,245,0.3);
}
.speaker-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.speaker-card p  { font-size: 0.78rem; color: var(--text-muted); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question { width: 100%; background: none; border: none; color: var(--text); font-family: var(--font); font-size: 0.92rem; font-weight: 600; padding: 18px 22px; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: background 0.2s; }
.faq-question:hover { background: rgba(255,255,255,0.03); }
.faq-question .arrow { color: var(--accent); font-size: 1rem; flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-question .arrow { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer p { padding: 0 22px 18px; font-size: 0.86rem; color: var(--text-muted); line-height: 1.7; }

/* ============================================
   CONTACT
   ============================================ */
/* ============================================
   CONTACT — cards grid (no form)
   ============================================ */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 0;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.contact-card:hover {
  border-color: rgba(155, 89, 245, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}

.contact-card-icon {
  width: 44px; height: 44px;
  background: rgba(155, 89, 245, 0.1);
  border: 1px solid rgba(155, 89, 245, 0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-card-text small {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.contact-card-text strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.contact-card-arrow {
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.contact-card:hover .contact-card-arrow {
  transform: translateX(4px);
}

@media (max-width: 900px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .contact-cards { grid-template-columns: 1fr; } }

/* Payment radio options */
.payment-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.pay-opt {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  user-select: none;
}
.pay-opt input[type="radio"] { accent-color: var(--accent); }
.pay-opt:has(input:checked) {
  border-color: var(--accent);
  background: rgba(155,89,245,0.1);
  color: var(--text);
}

/* File upload box */
.upload-box {
  border: 1.5px dashed rgba(155,89,245,0.35);
  border-radius: 10px;
  background: rgba(155,89,245,0.04);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.upload-box:hover {
  border-color: var(--accent);
  background: rgba(155,89,245,0.08);
}
.upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 16px;
  pointer-events: none;
}
.upload-placeholder span {
  font-size: 0.84rem;
  color: var(--text-muted);
}
.upload-placeholder small {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
}

/* Payment details reveal box */
.pay-details {
  margin-bottom: 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(155,89,245,0.2);
  background: rgba(155,89,245,0.05);
}
.pay-details-inner {
  padding: 14px 16px;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.pay-details-inner strong {
  color: var(--text);
  display: inline-block;
  min-width: 80px;
}
.pay-details-inner .pay-amount {
  font-size: 1rem;
  font-weight: 800;
  color: var(--aws-orange);
  display: block;
  margin-bottom: 6px;
}

/* ============================================
   CUSTOM SELECT DROPDOWN
   ============================================ */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.2);
  padding: 10px 14px;
  font-size: 0.88rem;
  font-family: var(--font);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: rgba(155, 89, 245, 0.06);
}
.custom-select-trigger svg {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s;
}
.custom-select.open .custom-select-trigger svg {
  transform: rotate(180deg);
}
.custom-select-value {
  color: inherit;
}

.custom-select-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #1a1a24;
  border: 1px solid var(--accent);
  border-radius: 8px;
  list-style: none;
  overflow: hidden;
  z-index: 300;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.custom-select.open .custom-select-dropdown {
  display: block;
}
.custom-select-dropdown li {
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.custom-select-dropdown li:hover {
  background: rgba(155, 89, 245, 0.12);
  color: var(--text);
}
.custom-select-dropdown li + li {
  border-top: 1px solid var(--border);
}

/* ============================================
   FORM ELEMENTS — used in modal
   ============================================ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Required asterisk */
.form-group label .req {
  color: #f87171;
  font-weight: 700;
  margin-left: 2px;
  text-transform: none;
  letter-spacing: 0;
}

.form-group input,
.form-group textarea,
.form-group select {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 14px;
  font-size: 0.88rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237b7b96' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: rgba(155, 89, 245, 0.06);
}

.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select option { background: #111118; color: var(--text); }

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--bg-card);
  border: 1px solid rgba(155,89,245,0.2);
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  padding: 36px 36px 28px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none; border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  padding: 4px;
}
.modal-close:hover { color: var(--text); }

.modal .badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aws-orange);
  background: rgba(255,153,0,0.1);
  border: 1px solid rgba(255,153,0,0.2);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.modal h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.2;
}

.modal > p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  line-height: 1.5;
}
.success-message { display: none; text-align: center; padding: 20px 0; }
.success-message .check { font-size: 3rem; margin-bottom: 14px; display: block; }
.success-message h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.success-message p  { color: var(--text-muted); font-size: 0.88rem; }

/* ============================================
   FOOTER — 3-column, compact, no grid
   ============================================ */
footer {
  background: #080810;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 6% 16px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 24px;
}

.footer-brand { display: flex; flex-direction: column; gap: 12px; }

.footer-logo-link {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text); width: fit-content;
}
.footer-logo-title { font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.footer-logo-sub   { font-size: 0.68rem; color: var(--accent); font-weight: 500; }
.footer-desc       { font-size: 0.8rem; color: var(--text-muted); line-height: 1.65; max-width: 260px; }

.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h5 {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text); margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.8rem; color: var(--text-muted);
  text-decoration: none; transition: color 0.2s; width: fit-content;
}
.footer-col a:hover { color: var(--accent); }

/* Icons + label vertical list in footer */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  transition: color 0.2s;
  width: fit-content;
}
.footer-contact-item svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer-contact-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.footer-contact-item:hover {
  color: var(--accent);
}
.footer-contact-item:hover svg {
  opacity: 1;
}

.footer-divider { height: 1px; background: var(--border); margin-bottom: 12px; }

.footer-bottom p { font-size: 0.72rem; color: var(--text-muted); }

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: 35fr 65fr;  /* Quick Links 35% | Contact Us 65% */
    gap: 16px;
  }
  .footer-brand { grid-column: span 2; }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .about-grid    { grid-template-columns: 1fr; }
  .mission-block { grid-template-columns: 1fr; }
  .mission-card.featured { grid-column: span 1; }
}

@media (max-width: 768px) {
  /* ---- Mobile nav menu ---- */
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(10, 10, 15, 0.99);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: center;
    padding: 24px 6% 28px;
    gap: 4px;
    display: none;
    z-index: 99;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  }
  .nav-links.open { display: flex; }

  /* nav text links — centred, no underline overlap */
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a {
    display: block;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 10px;
    width: 100%;
  }
  /* active underline goes below the text, not over it */
  .nav-links a.active::after {
    bottom: 4px;
    width: 40%;
    left: 50%;
    transform: translateX(-50%);
  }
  /* Register Now button — full width, centred */
  .nav-links .btn-register {
    margin-top: 8px;
    width: 100%;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    border-radius: 10px !important;
    text-align: center;
  }
  .nav-toggle { display: flex; }

  /* ---- Hero — hide mosaic on mobile ---- */
  .hero {
    grid-template-columns: 1fr;
    padding: 24px 5% 40px;
    min-height: calc(100dvh - 68px - 48px);
    gap: 24px;
    background-image: url('assets/mobile-hero-bg.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    align-items: start;        /* push content toward the top */
  }
  .hero-right { display: none; }

  .hero-left {
    align-items: center;
    justify-content: flex-start;  /* push content to top, not centre */
    align-self: auto;
    text-align: center;
  }
  .hero-title-block {
    align-items: center;
  }
  .hero-cd-row {
    justify-content: center;
  }
  .countdown {
    justify-content: center;
  }

  .stats-bar { flex-wrap: wrap; }
  .stat-item { flex: 1 1 50%; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   MILESTONE BANNER
   ============================================ */
.milestone-banner {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#milestone-mobile {
  margin-top: 68px;   /* clears fixed navbar */
}
  background: linear-gradient(
    90deg,
    rgba(155, 89, 245, 0.06) 0%,
    rgba(255, 153, 0, 0.06) 50%,
    rgba(155, 89, 245, 0.06) 100%
  );
  overflow: hidden;
}

/* animated shimmer sweep */
.milestone-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 70%
  );
  background-size: 300% 100%;
  animation: milestoneShimmer 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes milestoneShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.milestone-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 18px 6%;
  flex-wrap: wrap;
}

.milestone-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aws-orange);
  background: rgba(255, 153, 0, 0.1);
  border: 1px solid rgba(255, 153, 0, 0.25);
  padding: 5px 12px;
  border-radius: 100px;
  flex-shrink: 0;
}
.milestone-badge svg {
  fill: rgba(255, 153, 0, 0.5);
  stroke: var(--aws-orange);
  flex-shrink: 0;
}

.milestone-text {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  text-align: center;
}
.milestone-text span {
  color: var(--accent);
}

.milestone-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

.milestone-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Mobile banner: hidden on desktop, shown on mobile */
#milestone-mobile  { display: none; }

/* Desktop banner: shown on desktop, hidden on mobile */
#milestone-desktop { display: block; }

@media (max-width: 768px) {
  #milestone-mobile  { display: block; }
  #milestone-desktop { display: none;  }

  /* Hide the "Historic Milestone" badge on mobile */
  .milestone-badge { display: none; }
  /* Hide "Dera Ismail Khan · 2026" and divider on mobile */
  .milestone-divider { display: none; }
  .milestone-sub     { display: none; }
}

/* ============================================
   EVENT — details strip
   ============================================ */
.event-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 40px;
  overflow: hidden;
}
.event-detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  flex: 1;
  min-width: 200px;
  color: var(--accent);
}
.event-detail-item svg { flex-shrink: 0; }
.event-detail-item div { display: flex; flex-direction: column; gap: 2px; }
.event-detail-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.event-detail-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.event-detail-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .event-detail-divider { display: none; }
  .event-detail-item { border-bottom: 1px solid var(--border); }
  .event-detail-item:last-child { border-bottom: none; }
}

/* ============================================
   CHIEF GUEST
   ============================================ */

/* Override section-inner padding — tighter top/bottom */
#chief-guest {
  padding-top: 20px;
  padding-bottom: 56px;
}

/* Two-column grid — starts immediately, no full-width header row */
.cg-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

/* Left column */
.cg-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Right column — centres the portrait, padding keeps it off section edges */
.cg-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

/* Portrait frame — smaller max-width keeps section compact */
.cg-image {
  width: 100%;
  max-width: 470px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.cg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.cg-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.cg-placeholder-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.cg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aws-orange);
  background: rgba(255,153,0,0.08);
  border: 1px solid rgba(255,153,0,0.2);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
  width: fit-content;
}
.cg-badge svg { fill: rgba(255,153,0,0.4); stroke: var(--aws-orange); }

.cg-name {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.cg-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

@media (max-width: 768px) {
  #chief-guest {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .cg-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cg-right { padding: 0; }
  .cg-image {
    max-width: 220px;
    margin: 0 auto;
  }
}

/* ============================================
   AGENDA TABLE
   ============================================ */
.agenda-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.agenda-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

/* Header */
.agenda-table thead tr {
  background: var(--accent);
  border-bottom: 1px solid rgba(155, 89, 245, 0.2);
}
.agenda-table thead th {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

/* Body rows */
.agenda-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
/* Alternating row fills */
.agenda-table tbody tr:nth-child(odd) {
  background: rgba(155, 89, 245, 0.04);
}
.agenda-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}
.agenda-table tbody tr:last-child {
  border-bottom: none;
}
.agenda-table tbody tr:hover {
  background: rgba(155, 89, 245, 0.09);
}

/* Break row — subtle orange tint overrides alternating */
.agenda-table tbody tr.at-break {
  background: rgba(255, 153, 0, 0.05) !important;
}
.agenda-table tbody tr.at-break:hover {
  background: rgba(255, 153, 0, 0.09) !important;
}

.agenda-table td {
  padding: 16px 20px;
  vertical-align: top;
  color: var(--text);
}

/* Time column */
.at-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent) !important;
  white-space: nowrap;
  width: 100px;
}

/* Topic column — stacked title + description */
.at-topic {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 3px;
  color: var(--text);
}
.at-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Speaker column */
.at-tba {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Duration column */
.at-duration {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 10px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .agenda-table thead th:nth-child(4),
  .agenda-table td:nth-child(4) { display: none; } /* hide Duration on mobile */
  .agenda-table td { padding: 12px 14px; }
}

/* ============================================
   SPONSORS
   ============================================ */
.sponsor-tier {
  margin-bottom: 36px;
  text-align: center;
}

.sponsor-tier-heading {
  margin-bottom: 18px;
}

.sponsor-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  border: 1px solid;
}

.sponsor-tier-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(155,89,245,0.07);
  border: 1px solid rgba(155,89,245,0.18);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.sponsor-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.sponsor-logos-lg { gap: 18px; }

.sponsor-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1.5px dashed rgba(155,89,245,0.2);
  border-radius: var(--radius);
  padding: 24px 32px;
  min-width: 160px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: border-color 0.25s, background 0.25s;
  cursor: default;
}
.sponsor-slot:hover {
  border-color: rgba(155,89,245,0.4);
  background: rgba(155,89,245,0.04);
}
.sponsor-slot-lg {
  padding: 32px 56px;
  min-width: 220px;
  font-size: 0.85rem;
}

/* AWS main supporter slot */
.sponsor-slot-aws {
  border-color: rgba(255, 153, 0, 0.35);
  background: rgba(255, 153, 0, 0.04);
}
.sponsor-slot-aws span {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  max-width: 180px;
  text-align: center;
  line-height: 1.4;
}
.sponsor-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Become a Sponsor CTA */
.sponsor-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(90deg, rgba(155,89,245,0.08) 0%, rgba(155,89,245,0.03) 100%);
  border: 1px solid rgba(155,89,245,0.2);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.sponsor-cta-text h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.sponsor-cta-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 440px;
}

/* ============================================
   COUNTDOWN TIMER
   ============================================ */
.countdown {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(155, 89, 245, 0.07);
  border: 1px solid rgba(155, 89, 245, 0.2);
  border-radius: 10px;
  padding: 10px 0;
  width: 80px;           /* fixed equal width for all units */
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* subtle top accent line */
.cd-unit::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cd-num {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  /* flip animation */
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.cd-num.flip {
  transform: translateY(-6px);
  opacity: 0;
}

.cd-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cd-sep {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px; /* align with numbers, above label */
  opacity: 0.7;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 0.2; }
}

/* Event finished state */
.countdown.ended .cd-unit {
  border-color: rgba(255, 153, 0, 0.25);
  background: rgba(255, 153, 0, 0.05);
}
.countdown.ended .cd-num { color: var(--aws-orange); }
.countdown.ended .cd-sep  { color: var(--aws-orange); }

/* Responsive */
@media (max-width: 480px) {
  .cd-unit { width: 62px; padding: 8px 0; }
  .cd-sep  { font-size: 1rem; }
}

/* ============================================
   CUSTOM SCROLLBAR — rounded with arrows
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #111118;
  border-radius: 8px;
  margin: 4px;
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 8px;
  border: 2px solid #111118;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-2);
}
/* Up arrow button */
::-webkit-scrollbar-button:single-button:vertical:decrement {
  background-color: #111118;
  display: block;
  height: 14px;
  width: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M4 2l3 4H1z' fill='%239b59f5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
/* Down arrow button */
::-webkit-scrollbar-button:single-button:vertical:increment {
  background-color: #111118;
  display: block;
  height: 14px;
  width: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M4 6L1 2h6z' fill='%239b59f5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Modal internal scrollbar */
.modal::-webkit-scrollbar { width: 5px; }
.modal::-webkit-scrollbar-track { background: var(--bg-card); border-radius: 8px; margin: 4px; }
.modal::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 8px; border: 1px solid var(--bg-card); }
.modal::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }
