/* ================================================================
   exam-nav.css — AmarPorashona
   Secondary nav + Exam info card + Breadcrumb
================================================================ */

/* ══ Breadcrumb ══════════════════════════════════════════════ */
.breadcrumb-bar {
  background: var(--bg-surface, #f0f4ff);
  border-bottom: 1px solid var(--border, #e5e7eb);
  padding: 9px 0;
}
[data-theme="dark"] .breadcrumb-bar {
  background: #1a2535;
  border-bottom-color: #2d3e55;
}
.breadcrumb-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.bc-link {
  font-size: 12.5px;
  color: var(--primary, #2563eb);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}
.bc-link:hover { opacity: 0.7; }
.bc-sep { font-size: 13px; color: var(--text-muted, #9ca3af); }
.bc-current {
  font-size: 12.5px;
  color: var(--text-secondary, #4b5563);
  font-weight: 600;
}

/* ══ Exam Info Card ══════════════════════════════════════════ */
.exam-info-card {
  background: linear-gradient(135deg, #1B4FBB 0%, #0F1B2D 100%);
  padding: 24px 0;
}
.exam-info-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.exam-info-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.exam-info-icon { font-size: 44px; line-height: 1; flex-shrink: 0; }
.exam-info-name {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 4px;
}
.exam-info-fullname {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 10px;
}
.exam-info-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.exam-info-chip {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.2);
}
.exam-info-chip.chip-accent {
  background: #F5A623;
  color: #000000;
  border-color: #F5A623;
}

/* ══ Secondary Nav Tabs ══════════════════════════════════════ */
.exam-sec-nav {
  background: var(--bg-card, #ffffff);
  border-bottom: 2px solid var(--border, #e5e7eb);
  position: sticky;
  top: 97px;
  z-index: 100;
  width: 100%;
}
[data-theme="dark"] .exam-sec-nav {
  background: #1a2535;
  border-bottom-color: #2d3e55;
}
.exam-sec-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.exam-sec-inner::-webkit-scrollbar { display: none; }

/* Works for both <a> and <button> tabs */
.exam-sec-link,
button.exam-sec-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 15px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary, #4b5563);
  text-decoration: none;
  border: none;
  background: transparent;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
  cursor: pointer;
  font-family: inherit;
}
.exam-sec-link:hover,
button.exam-sec-link:hover {
  color: var(--primary, #2563eb);
  background: var(--primary-light, #eff6ff);
}
.exam-sec-link.active,
button.exam-sec-link.active {
  color: var(--primary, #2563eb);
  border-bottom-color: var(--primary, #2563eb);
  font-weight: 700;
  background: var(--primary-light, #eff6ff);
}

/* ══ Tab Content ═════════════════════════════════════════════ */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ══ Responsive ══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .exam-sec-nav { top: 55px; }
  .exam-sec-link,
  button.exam-sec-link { padding: 10px 11px; font-size: 12px; }
  .exam-info-name { font-size: 18px; }
}
@media (max-width: 480px) {
  .exam-sec-link svg,
  button.exam-sec-link svg { display: none; }
}