/* ============================================================
   CBT NEET UG.COM — Core Design System
   Base tokens (Normal Mode). Theme overrides live in theme.css
   ============================================================ */

:root {
  --navy:        #0f2c59;
  --navy-deep:   #0a1f42;
  --accent-blue: #1e5a96;
  --teal-accent: #0891b2;
  --panel-navy:  #14356b;
  --gold:        #e8b23c;

  --page-bg:     #f5f7fa;
  --card-bg:     #ffffff;
  --header-bg:   #ffffff;
  --text-dark:   #1a2332;
  --text-label:  #1a2332;
  --text-muted:  #6b7c93;
  --success:     #10b981;
  --warn:        #f59e0b;
  --danger:      #dc2626;
  --border-soft: #e4e9f0;
  --border-mid:  #cfd8e3;
  --input-bg:    #ffffff;
  --hover-grey:  #eef2f8;

  --shadow-soft: 0 1px 3px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lift: 0 6px 18px rgba(15,44,89,0.14);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.18);
  --ease:        0.2s ease;
  --radius:      8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }

body {
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background-color var(--ease), color var(--ease);
}

button { font-family: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { letter-spacing: -0.01em; font-weight: 700; line-height: 1.25; }
strong, b { font-weight: 600; }

/* ================= HEADER ================= */
.site-header {
  width: 100%;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  transition: background-color var(--ease), border-color var(--ease);
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.logo-link { display: inline-flex; align-items: center; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.logo-accent { color: var(--accent-blue); }
.logo-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.weekly-nav-btn { display:inline-flex; flex-direction:column; justify-content:center; gap:1px; min-height:42px; padding:6px 12px; border:1px solid rgba(15,44,89,.18); border-radius:8px; background:linear-gradient(180deg,#fff,#f5f8fc); color:var(--navy); box-shadow:0 2px 8px rgba(15,44,89,.06); transition:transform var(--ease),box-shadow var(--ease),border-color var(--ease); white-space:nowrap; }
.weekly-nav-btn:hover { transform:translateY(-1px); border-color:rgba(15,44,89,.32); box-shadow:0 5px 14px rgba(15,44,89,.12); }
.weekly-nav-title { font-size:12px; font-weight:700; line-height:1.15; }
.weekly-nav-countdown { font-size:10px; font-weight:500; color:var(--text-muted); line-height:1.25; white-space:nowrap; }

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  transition: background-color var(--ease), color var(--ease), transform var(--ease);
  cursor: pointer;
}
.btn-nav:hover { background: var(--hover-grey); transform: translateY(-1px); }
.btn-nav-primary {
  background: var(--navy);
  color: #ffffff;
  padding: 10px 18px;
}
.btn-nav-primary:hover { background: var(--accent-blue); color: #fff; }

.header-divider {
  margin: 0 4px;
  height: 22px;
  width: 1px;
  background: var(--border-soft);
}

/* ================= 3-MODE THEME SWITCH ================= */
.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--hover-grey);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 3px;
  gap: 0;
  height: 34px;
}
.tm-btn {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: color var(--ease);
  cursor: pointer;
}
.tm-btn.tm-active { color: var(--navy); }
.tm-btn:hover { color: var(--navy); }
.tm-indicator {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 36px;
  height: 28px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(15,44,89,0.15);
  transition: transform var(--ease);
  z-index: 1;
}
.theme-switch[data-active="light"]  .tm-indicator { transform: translateX(0); }
.theme-switch[data-active="normal"] .tm-indicator { transform: translateX(36px); }
.theme-switch[data-active="dark"]   .tm-indicator { transform: translateX(72px); }

/* ================= FORM CONTROLS ================= */
.select {
  border: 1px solid var(--border-mid);
  background: var(--input-bg);
  border-radius: 6px;
  color: var(--text-dark);
  font-family: inherit;
  appearance: auto;
}
.select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 44, 89, 0.2);
}
.select-sm { padding: 8px 14px; font-size: 14px; }
.select-full { width: 100%; padding: 12px 14px; font-size: 16px; }

/* ================= NAVY MAIN AREA ================= */
.navy-main {
  background-color: var(--navy);
  flex: 1;
  padding-bottom: 40px;
  transition: background-color var(--ease);
}
.page-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 32px;
}
.grid-2col {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Left video panel */
.panel-dark {
  background: var(--panel-navy);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18),
              inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 20px;
}

/* ============ VIDEO PLAYER ============ */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.video-wrapper { cursor: pointer; }
.video-wrapper:focus-visible { outline: 3px solid var(--gold, #f5b301); outline-offset: 2px; }
.intro-video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.video-msg { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 4; padding: 8px 12px; border-radius: 6px; background: rgba(160,30,30,.92); color: #fff; font-size: 13px; text-align: center; }


.video-controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}
.video-wrapper:hover .video-controls,
.video-wrapper:focus-visible .video-controls,
.video-wrapper.is-paused .video-controls,
.video-wrapper.playing .video-controls { opacity: 1; }

.vc-btn {
  border: none; background: transparent; padding: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; border-radius: 4px;
  transition: background-color 0.15s ease;
}
.vc-btn:hover { background: rgba(255,255,255,0.15); }

.vc-progress {
  flex: 1; height: 5px;
  background: rgba(255,255,255,0.3);
  border-radius: 3px; cursor: pointer;
  position: relative; overflow: hidden;
}
.vc-progress-fill {
  height: 100%; width: 0%;
  background: var(--gold);
  border-radius: 3px;
  transition: width 0.1s linear;
}
.vc-time { color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; min-width: 78px; text-align: center; }

/* Right form card */
.card-stack { display: flex; flex-direction: column; }
.card {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
  padding: 24px;
  transition: background-color var(--ease), border-color var(--ease);
}
.field { margin-bottom: 20px; }
.field-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-label);
  margin-bottom: 8px;
}

/* Navy buttons */
.btn-navy {
  border: none;
  background: var(--navy);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  border-radius: 6px;
  padding: 14px 24px;
  transition: background-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn-navy:hover { background: var(--accent-blue); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-navy:active { transform: scale(0.98); }
.btn-block { width: 100%; }

/* AI proctoring card */
.card-proctored {
  margin-top: 24px;
  border-top: 4px solid var(--teal-accent);
}
.proctor-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #e6f6fb; color: #0e6d85;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: none;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.proctor-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--success); animation: proctorPulse 2s infinite;
}
@keyframes proctorPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.btn-proctored {
  width: 100%; border: none; color: #ffffff; background: var(--teal-accent);
  font-size: 15px; font-weight: 600; line-height: 1.4;
  padding: 14px 24px; border-radius: 6px; letter-spacing: 0.02em;
  transition: background-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn-proctored:hover { background: #0b6f8f; transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-proctored:active { transform: scale(0.98); }
.proctor-help { margin-top: 12px; font-size: 14px; color: var(--text-muted); line-height: 1.55; text-align: justify; }
.proctor-launch-status {
  min-height: 0; margin: 8px 0 0; padding: 0;
  font-size: 12px; line-height: 1.5; text-align: justify;
}
.proctor-launch-status.active {
  padding: 7px 9px; border-radius: 5px; background: #f4f6fb; border: 1px solid #d5dbe4; color: #0f2c59;
}
.proctor-launch-status.error {
  background: #fff5f5; border: 1px solid #e3b2b2; border-left: 4px solid #8E1B1B; color: #8E1B1B;
}

/* Contact-for-demo ghost button */
.demo-row {
  margin: 40px auto 0;
  display: flex;
  justify-content: flex-end;
  max-width: 1320px;
}
.btn-ghost-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 340px;
  height: 56px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 17px;
  font-weight: 500;
  border-radius: 6px;
  transition: background-color var(--ease), transform var(--ease);
  cursor: pointer;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-2px); }

.welcome {
  margin-top: 60px;
  text-align: center;
  color: #ffffff;
}
.welcome h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; }
.welcome p {
  margin: 16px auto 0;
  max-width: 56rem;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

/* ================= FOOTER ================= */
.site-footer {
  background: var(--navy-deep);
  color: #ffffff;
  padding: 40px 0 20px;
  margin-top: auto;
  transition: background-color var(--ease);
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}
.footer-col h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}
.footer-col p, .footer-col a {
  display: block;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 6px;
  line-height: 1.6;
}
.footer-col a:hover { color: #ffffff; }
.footer-bottom {
  max-width: 1320px;
  margin: 24px auto 0;
  padding: 20px 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom p { margin-bottom: 8px; }
.footer-disclaimer { font-size: 13px; color: rgba(255, 255, 255, 0.55); max-width: 800px; margin: 0 auto; }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .grid-2col { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .page-wrap { padding: 24px 16px; }
  .demo-row { justify-content: center; }
  .btn-ghost-light { width: 100%; max-width: 340px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .welcome h1 { font-size: 24px; }
  .welcome p { font-size: 15px; }
}

@media (max-width: 600px) {
  .btn-nav { padding: 8px 12px; font-size: 13px; }
  .logo-main { font-size: 18px; }
  .logo-tag { font-size: 10px; }
}

/* Brand logo (image mark) */
.site-header .logo { height: 72px; width: auto; object-fit: contain; display: block; }
@media (max-width: 720px) { .site-header .logo { height: 52px; } }

/* Small separator used between the dynamic practice route and static papers. */
.selection-or {
  margin: 12px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
}
.card .field-label,
.card .proctor-help {
  text-align: justify;
}

/* New selection and proctoring copy follows the requested readable sentence-case layout. */
.card .field-label,
.card .proctor-help,
.card .selection-or {
  text-align: justify;
  text-justify: inter-word;
}

/* Intro video fallback: the deployment package does not include the optional video file, so the branded poster remains a clean static visual. */
.video-unavailable .video-controls { display: none !important; }
.video-unavailable .intro-video { cursor: default; }
