/* ====== THEME ====== */
:root{
  --royal: #0b2a6f;     /* royal blue */
  --royal-600: #12378b;
  --gold: #d5a431;      /* royal gold */
  --paper: #f7f1e6;     /* warm cream background */
  --ink: #0d1b2a;       /* near-black for text */
  --muted: #324a6d;
  --line: rgba(11,42,111,0.3);
  --shadow: 0 18px 40px -18px rgba(7, 24, 61, .45);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin:0;
  background: var(--paper);
  color: var(--royal);
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

/* Typography */
.h1{
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800;
  margin: 12px 0 6px;
}
.h2{
  font-size: clamp(22px, 3.2vw, 32px);
  font-weight: 800;
  margin: 28px 0 4px;
}
.h3{
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  margin: 0 0 10px;
}
.subtitle{ color: var(--royal); opacity:.9; margin: 0 0 14px; }
.muted{ color: var(--muted); }
.small{ font-size: 14px; }

/* Top bar */
.topbar{
  background: var(--royal);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: var(--shadow);
}
.nav-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.brand{
  display:flex; align-items:center; gap: 14px; font-weight: 800;
}
.title{ font-size: clamp(18px, 2.2vw, 28px); letter-spacing:.2px; }
.crown{ color: #fcdc6c; display:inline-flex; }

.pill-group{ display:flex; align-items:center; gap:10px; }
.pill{
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.25);
  color:#fff; padding:8px 14px; border-radius:999px; font-weight:700; font-size:14px;
  transition: transform .2s ease, background .2s ease;
}
.pill:hover{ transform: translateY(-1px); background: rgba(255,255,255,.15); }

/* visually strike out a pill without changing layout */
.pill.struck{ position: relative; }
.pill.struck::after{
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 2px;
  background: rgba(255,255,255,0.9);
  transform: translateY(-50%);
  border-radius: 2px;
}

/* tooltip for the struck pill */
.pill.struck::before{
  content: 'He dropped the class';
  position: absolute;
  left: 50%;
  transform: translate(-50%, -6px) scale(.98);
  top: calc(100% + 8px); /* place the tooltip below the pill */
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
  z-index: 50;
}
.pill.struck:focus::before,
.pill.struck:hover::before{
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

/* Layout */
.wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 80px;
  display:grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
}
.left{ min-width: 0; }
.right{ min-width: 0; }

/* Video Card */
.video-card{
  background: #fff;
  border: 6px solid var(--royal);
  border-radius: 22px;
  box-shadow: 0 30px 80px -20px rgba(7, 24, 61, 0.55); /* stronger lift */
  overflow: hidden;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.video-embed{ position: relative; aspect-ratio: 16 / 9; background: var(--royal); }
.video-embed iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }

.video-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 48px 110px -28px rgba(7, 24, 61, 0.60);
}

.btn{
  margin-top: 14px;
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px; padding: 12px 20px; border-radius: 999px;
  border: 2px solid var(--royal);
  background: #fff; color: var(--royal); font-weight: 800; letter-spacing:.3px;
  cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease;
  box-shadow: var(--shadow);
}
.btn:hover{ transform: translateY(-1px); background: #fdfdfd; }
.btn.gold{ background: var(--gold); color: #072050; border-color: transparent; }
.btn.gold:hover{ background: #e2b74f; }

.btn.outline{ background:#fff; color: var(--royal); border-color: var(--royal); }
.btn.outline:hover{ background:#f9fafb; }

/* Ask us questions */
.ask .q-row{ display:flex; align-items:center; gap: 16px; margin-top: 10px; }
.q-bubble{
  flex:1;
  background:#fff;
  border:2px solid var(--royal);
  border-radius: 14px;
  padding: 14px 16px;
  display:flex; align-items:center; gap: 10px;
  box-shadow: var(--shadow);
}
.q-label{ font-weight:800; font-size:18px; }
.link-btn{
  /* Turn the old link-style button into a proper boxed control */
  background: #fff;
  border: 2px solid var(--royal);
  color: var(--royal);
  font-weight: 800;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 999px; /* pill-shaped */
  text-decoration: none; /* remove underline */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
.link-btn:hover{ color: var(--royal-600); transform: translateY(-1px); }

/* Specific: render the Different Question button as a circular icon-like control */
#btnDifferent{
  width: 52px;
  height: 52px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
  letter-spacing: .2px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 2px solid var(--royal);
  background: #fff;
  color: var(--royal);
  box-shadow: var(--shadow);
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
#btnDifferent:hover{ transform: translateY(-3px); }
#btnDifferent:focus{ outline: 3px solid rgba(11,42,111,0.12); outline-offset: 3px; }

/* Right column cards */
.summary-card{
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.ideas-card{
  /* light blue card to separate it visually from the summary */
  background: #efefff;
  border: 2px solid rgba(10, 90, 160, 0.08);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  color: var(--royal); /* ensure text stays readable */
}
.scroll-box{
  background: #fceeee;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  height: 220px;
  overflow: auto;
  margin-bottom: 20px; /* create breathing room between the scroll area and the ideas card */
}
.ideas-card .btn{ width: 100%; margin-top: 8px; }

/* Footer */
.footer{
  background: var(--royal);
  color: #fff;
  position: sticky; bottom:0; width:100%;
  box-shadow: var(--shadow);
  z-index: 9999; /* ensure footer always appears above other page content */
}
.footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display:flex; align-items:center; gap: 10px; justify-content:center;
}
.book-ico{ color: #fcdc6c; display:inline-flex; }
.footer-text{ font-weight: 800; letter-spacing:.3px; }

/* Responsiveness */
@media (max-width: 980px){
  .wrap{ grid-template-columns: 1fr; }
  .right{ order: -1; } /* Summary/Ideas stack on top on phones */
}

/* Desktop: keep the summary card visible while scrolling */
@media (min-width: 981px) {
  .summary-card{
    position: sticky;
    top: 84px; /* leave space for the topbar/header */
    align-self: start; /* ensure it sticks relative to the grid column */
    z-index: 5; /* sit above page content but below the topbar which has z-index:10 */
  }
}
