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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #ffffff;
  --navy-2: #f8fafc;
  --blue: #0066ff;
  --blue-light: #2563eb;
  --cyan: #0ea5e9;
  --white: #0f172a;
  --white-70: rgba(15, 23, 42, 0.7);
  --white-40: rgba(15, 23, 42, 0.4);
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(15, 23, 42, 0.08);
  --green: #10b981;
  --sv-gold: #D4AF37;
  --sv-platinum: #0ea5e9;
  --font-head: 'Inter', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

@page {
  size: A4;
  margin: 0;
}

@media print {
  body {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .page {
    page-break-after: always;
    page-break-inside: avoid;
    width: 210mm;
    min-height: 297mm;
  }

  .page:last-child {
    page-break-after: auto;
  }
}

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

/* ── COVER PAGE ── */
.cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cover__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.08), transparent 70%);
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cover__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cover__content {
  position: relative;
  z-index: 2;
  padding: 0 40px;
  width: 100%;
}

.cover__logo {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  background: #fff;
  padding: 8px;
  display: block;
  margin: 0 auto 24px auto;
  box-shadow: 0 8px 40px rgba(0, 102, 255, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.cover__badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  border: 1px solid rgba(0, 230, 118, 0.4);
  background: rgba(0, 230, 118, 0.06);
  font-size: 11px;
  font-weight: 700;
  color: #00e676;
  letter-spacing: .08em;
  margin-bottom: 20px;
}

.cover__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e676;
}

.cover__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.35);
  margin-bottom: 8px;
}

.cover__title {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cover__title .grad {
  background: linear-gradient(135deg, #0f172a 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cover__desc {
  font-size: 14px;
  color: var(--white-70);
  max-width: 460px;
  margin: 0 auto 24px;
  line-height: 1.8;
}

.cover__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 28px;
}

.cover__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--white-70);
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

.cover__sv-pill {
  display: inline-flex;
  align-items: stretch;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  margin-top: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.cover__sv-left {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  background: #ffffff;
  border-right: 1px solid rgba(15, 23, 42, 0.06);
}

.cover__sv-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: #f0f9ff;
  border-top: 2px solid var(--sv-platinum);
  gap: 2px;
}

.cover__footer {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  color: var(--white-40);
  letter-spacing: .08em;
}

.cover__divider {
  width: 80px;
  height: 2px;
  margin: 0 auto 24px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.cover__cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.btn-p {
  padding: 10px 22px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.btn-o {
  padding: 9px 20px;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  border: 1.5px solid var(--glass-border);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
}

/* ── INNER PAGES ── */
.page-inner {
  padding: 36px 42px;
  position: relative;
}

.page-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
}

.page-header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-header__logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  padding: 2px;
}

.page-header__logo-text {
  font-family: var(--font-head);
}

.page-header__logo-conf {
  font-size: 14px;
  font-weight: 800;
  display: block;
}

.page-header__logo-sub {
  font-size: 10px;
  font-weight: 600;
  color: var(--green);
  display: block;
}

.page-header__right {
  font-size: 10px;
  color: var(--white-40);
  text-align: right;
}

.stag {
  font-size: 10px;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 6px;
}

.stitle {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 14px;
  line-height: 1.15;
}

.stitle .grad {
  background: linear-gradient(135deg, #0f172a, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sdesc {
  font-size: 13px;
  color: var(--white-70);
  line-height: 1.75;
  margin-bottom: 18px;
}

/* Track cards */
.track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.track-card {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

.track-card__title {
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--cyan);
}

.track-card__body {
  font-size: 11px;
  color: var(--white-70);
  line-height: 1.6;
}

/* Date cards */
.dates-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.date-pill {
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  flex: 1;
  min-width: 120px;
}

.date-pill__event {
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 2px;
}

.date-pill__date {
  font-size: 13px;
  font-weight: 800;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.status-badge--open {
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: #00e676;
}

.status-badge--accepting {
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--cyan);
}

/* Info cards */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.info-card {
  padding: 14px;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

.info-card__title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.info-card__body {
  font-size: 11px;
  color: var(--white-70);
  line-height: 1.6;
}

/* SDG row */
.sdg-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.sdg-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
}

.sdg-pill img {
  width: 28px;
  height: 28px;
  border-radius: 5px;
}

/* SV section */
.sv-section {
  padding: 24px;
  border-radius: 14px;
  background: rgba(244, 206, 20, 0.03);
  border: 1px solid rgba(244, 206, 20, 0.15);
  margin-bottom: 18px;
}

.sv-pill-large {
  display: inline-flex;
  align-items: stretch;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.sv-checks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.sv-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--white-70);
}

.sv-check::before {
  content: '✓';
  color: var(--sv-gold);
  font-weight: 900;
  font-size: 13px;
}

/* Recog pills */
.recog-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.recog-pill {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
}

/* Score bars */
.score-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
}

.score-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-bar-label {
  font-size: 11px;
  color: var(--white-70);
  width: 140px;
}

.score-bar-track {
  flex: 1;
  height: 6px;
  background: var(--glass);
  border-radius: 100px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.score-bar-val {
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  width: 30px;
  text-align: right;
}

.page-footer {
  position: absolute;
  bottom: 20px;
  left: 42px;
  right: 42px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--white-40);
  border-top: 1px solid var(--glass-border);
  padding-top: 10px;
}

/* Why attend grid */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.why-card {
  padding: 14px;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  text-align: center;
}

.why-card__icon {
  font-size: 24px;
  margin-bottom: 6px;
  color: var(--cyan);
}

.why-card__title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.why-card__body {
  font-size: 11px;
  color: var(--white-70);
  line-height: 1.5;
}

/* Guidelines */
.guidelines-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.guideline-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  color: var(--white-70);
  line-height: 1.5;
}

.guideline-item::before {
  content: '→';
  color: var(--cyan);
  flex-shrink: 0;
  font-weight: 700;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.review-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  color: var(--white-70);
  line-height: 1.5;
}

.review-item::before {
  content: '✓';
  color: var(--green);
  flex-shrink: 0;
  font-weight: 700;
}/* Featured Speakers (Dynamic) */
.speaker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.speaker-grid .person-card {
  padding: 16px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--glass-border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.speaker-grid .person-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue-light));
  opacity: 0.5;
}

.speaker-grid .person-card__left {
  margin-bottom: 12px;
}

.speaker-grid .person-card__photo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--glass-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.speaker-grid .person-card__initials {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--navy-2);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.speaker-grid .person-card__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.speaker-grid .person-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.speaker-grid .person-card__badge {
  font-size: 8px;
  font-weight: 800;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 6px;
  background: rgba(0, 212, 255, 0.1);
  padding: 3px 8px;
  border-radius: 20px;
  order: -1; /* Puts badge above name */
}

.speaker-grid .person-card__badge--keynote {
  color: var(--sv-gold);
  background: rgba(244, 206, 20, 0.1);
}

.speaker-grid .person-card__name {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--white);
  line-height: 1.3;
}

.speaker-grid .person-card__designation {
  font-size: 9.5px;
  color: var(--white-70);
  line-height: 1.4;
}

.speaker-grid .person-card__institution {
  font-size: 9px;
  color: var(--white-40);
  line-height: 1.3;
}

.speaker-grid .person-card__title {
  font-size: 9px;
  color: var(--cyan);
  line-height: 1.3;
  margin-top: 4px;
  font-style: italic;
}

.speaker-grid .person-card__actions {
  display: none;
}

/* ── BROCHURE PRINT: Prevent speaker grid overflow creating blank pages ── */
@media print {
  /* Hard cap the entire Page 3 inner content so nothing bleeds out */
  .page-inner #brochureSpeakersGrid,
  .page-inner #brochureCommitteeGrid {
    overflow: hidden;
  }

  /* Ensure speaker grid stays as 4-column on print */
  #brochureSpeakersGrid {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  /* Committee shows 3-column on print */
  #brochureCommitteeGrid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
