/* ==========================================================================
   Green Rudraksha Charitable Trust (GRC Trust)
   RTI Online Examination & Digital Certificate System Stylesheet
   Designed with Deep Forest Green, Soft Purple, Earthy Gold, & IBM Plex Serif
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Serif:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Institutional Brand Palette */
  --exam-green: #0F3826;
  --exam-green-light: #164E35;
  --exam-green-subtle: #F0FDF4;
  --exam-green-border: #BBF7D0;
  
  --exam-purple: #6B46C1;
  --exam-purple-light: #7C3AED;
  --exam-purple-subtle: #FAF5FF;
  --exam-purple-border: #E9D5FF;
  
  --exam-gold: #D97706;
  --exam-gold-light: #F59E0B;
  --exam-gold-subtle: #FFFBEB;
  --exam-gold-border: #FDE68A;
  
  --exam-red: #DD183B;
  --exam-red-light: #EF4444;
  --exam-red-subtle: #FEF2F2;
  --exam-red-border: #FECACA;
  
  --exam-surface: #FFFFFF;
  --exam-bg-subtle: #F8FAFC;
  --exam-card-border: #E2E8F0;
  --exam-heading-color: #0F172A;
  --exam-text-color: #334155;
  --exam-text-muted: #64748B;
  
  /* Fonts */
  --font-exam-heading: 'IBM Plex Serif', Georgia, serif;
  --font-exam-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Shadows */
  --exam-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --exam-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --exam-shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12);
  --exam-shadow-gold: 0 8px 24px rgba(217, 119, 6, 0.2);
  --exam-shadow-green: 0 8px 24px rgba(15, 56, 38, 0.2);
}

/* ==========================================================================
   Exam Hero & Landing Section
   ========================================================================== */
.exam-hero {
  position: relative;
  background: linear-gradient(135deg, #092619 0%, #0F3826 60%, #1E3A2F 100%);
  color: #FFFFFF;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.exam-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(124, 58, 237, 0.25) 0%, transparent 60%),
              radial-gradient(circle at 15% 80%, rgba(217, 119, 6, 0.2) 0%, transparent 55%);
  pointer-events: none;
}

.exam-hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.exam-badge-institutional {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 0.45rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #FDE68A;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.exam-badge-institutional span.dot {
  width: 8px;
  height: 8px;
  background-color: var(--exam-gold);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--exam-gold);
}

.exam-hero-title {
  font-family: var(--font-exam-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.exam-hero-subtitle {
  font-family: var(--font-exam-body);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #CBD5E1;
  max-width: 780px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* Exam Overview Metrics Bar */
.exam-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}

@media (max-width: 992px) {
  .exam-metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .exam-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.exam-metric-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 130px;
}

.exam-metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(253, 230, 138, 0.5);
}

.exam-metric-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.exam-metric-val {
  font-family: var(--font-exam-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.exam-metric-label {
  font-size: 0.8rem;
  color: #94A3B8;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* CTA buttons */
.exam-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-exam-primary {
  background: #1E40AF;
  color: #FFFFFF !important;
  font-family: var(--font-exam-body);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 2.2rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.3);
  border: 2px solid #1E40AF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.25s ease;
}

.btn-exam-primary:hover {
  background: #1E3A8A;
  border-color: #1E3A8A;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(30, 64, 175, 0.45);
}

.btn-exam-outline {
  background: transparent;
  color: #FFFFFF !important;
  border: 2px solid rgba(255, 255, 255, 0.8);
  font-family: var(--font-exam-body);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all 0.25s ease;
}

.btn-exam-outline:hover {
  background: #FFFFFF !important;
  color: #1E40AF !important;
  border-color: #FFFFFF !important;
}

/* ==========================================================================
   Candidate Registration Section & Modal
   ========================================================================== */
.exam-registration-wrapper {
  max-width: 680px;
  margin: -2.5rem auto 4rem;
  position: relative;
  z-index: 10;
  padding: 0 1rem;
}

.exam-reg-card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: var(--exam-shadow-lg);
  border: 1px solid var(--exam-card-border);
  padding: 2.5rem;
}

.exam-reg-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--exam-card-border);
}

.exam-reg-header h3 {
  font-family: var(--font-exam-heading);
  font-size: 1.65rem;
  color: var(--exam-heading-color);
  margin-bottom: 0.5rem;
}

.exam-reg-header p {
  color: var(--exam-text-muted);
  font-size: 0.925rem;
}

.reg-form-group {
  margin-bottom: 1.25rem;
}

.reg-form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--exam-heading-color);
  margin-bottom: 0.45rem;
}

.reg-form-group label span.req {
  color: var(--exam-red);
}

.reg-form-input,
.reg-form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--exam-card-border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-exam-body);
  color: var(--exam-heading-color);
  background: #FFFFFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.reg-form-input:focus,
.reg-form-select:focus {
  outline: none;
  border-color: var(--exam-green);
  box-shadow: 0 0 0 3px rgba(15, 56, 38, 0.12);
}

.reg-input-error {
  border-color: var(--exam-red) !important;
}

.reg-error-msg {
  color: var(--exam-red);
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}

.reg-input-error + .reg-error-msg {
  display: block;
}

.reg-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* ==========================================================================
   Exam Instructions Screen
   ========================================================================== */
.exam-instructions-card {
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: var(--exam-shadow-lg);
  border: 1px solid var(--exam-card-border);
  padding: 2.5rem;
  max-width: 820px;
  margin: 3rem auto;
}

.exam-instructions-card h3 {
  font-family: var(--font-exam-heading);
  font-size: 1.8rem;
  color: var(--exam-green);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--exam-green-subtle);
}

.instruction-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.instruction-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--exam-text-color);
  line-height: 1.5;
}

.instruction-item .inst-icon {
  width: 24px;
  height: 24px;
  background: var(--exam-green-subtle);
  color: var(--exam-green);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   LIVE EXAMINATION ARENA (The Core Testing UI)
   ========================================================================== */
.exam-arena {
  display: none; /* activated when exam starts */
  background: #F8FAFC;
  min-height: 100vh;
  padding-bottom: 4rem;
}

.exam-top-sticky-bar {
  position: sticky;
  top: 70px;
  z-index: 990;
  background: #FFFFFF;
  border-bottom: 1px solid var(--exam-card-border);
  box-shadow: var(--exam-shadow-sm);
  padding: 0.75rem 0;
}

.exam-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.exam-candidate-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.exam-candidate-avatar {
  width: 36px;
  height: 36px;
  background: var(--exam-green-subtle);
  color: var(--exam-green);
  border: 1px solid var(--exam-green-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.exam-candidate-name {
  font-weight: 600;
  color: var(--exam-heading-color);
  font-size: 0.925rem;
}

.exam-candidate-lang {
  font-size: 0.75rem;
  color: var(--exam-text-muted);
}

/* Timer Widget */
.exam-timer-box {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-family: var(--font-exam-body);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.exam-timer-box.timer-normal {
  background: var(--exam-green-subtle);
  color: var(--exam-green);
  border: 1.5px solid var(--exam-green-border);
}

.exam-timer-box.timer-warning {
  background: var(--exam-gold-subtle);
  color: var(--exam-gold);
  border: 1.5px solid var(--exam-gold-border);
  animation: timerWarning 1.5s infinite;
}

.exam-timer-box.timer-critical {
  background: var(--exam-red-subtle);
  color: var(--exam-red);
  border: 1.5px solid var(--exam-red-border);
  animation: timerCritical 0.8s infinite;
}

@keyframes timerWarning {
  0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.3); }
  70% { box-shadow: 0 0 0 6px rgba(217, 119, 6, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

@keyframes timerCritical {
  0% { box-shadow: 0 0 0 0 rgba(221, 24, 59, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(221, 24, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(221, 24, 59, 0); }
}

/* Arena Layout Grid */
.exam-arena-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

/* Question Main Card */
.exam-question-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid var(--exam-card-border);
  box-shadow: var(--exam-shadow-md);
  padding: 2.25rem;
  position: relative;
}

.question-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--exam-card-border);
}

.question-counter-pill {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--exam-green);
  background: var(--exam-green-subtle);
  border: 1px solid var(--exam-green-border);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
}

.question-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-tag {
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--exam-purple-subtle);
  color: var(--exam-purple);
  border: 1px solid var(--exam-purple-border);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}

.difficulty-pill {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.diff-easy { background: #DCFCE7; color: #166534; }
.diff-medium { background: #FEF3C7; color: #92400E; }
.diff-hard { background: #FEE2E2; color: #991B1B; }

.question-text {
  font-family: var(--font-exam-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--exam-heading-color);
  line-height: 1.55;
  margin-bottom: 2rem;
}

/* Options Grid */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #FFFFFF;
  border: 2px solid var(--exam-card-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.option-card:hover {
  border-color: var(--exam-green-light);
  background: #F0FDF4;
  transform: translateX(4px);
}

.option-card.selected {
  border-color: var(--exam-green);
  background: #F0FDF4;
  box-shadow: 0 4px 12px rgba(15, 56, 38, 0.1);
}

.option-key {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--exam-bg-subtle);
  border: 1px solid var(--exam-card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--exam-heading-color);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.option-card.selected .option-key {
  background: var(--exam-green);
  color: #FFFFFF;
  border-color: var(--exam-green);
}

.option-label {
  font-size: 1rem;
  color: var(--exam-heading-color);
  line-height: 1.45;
  flex-grow: 1;
}

/* Question Action Bar */
.question-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--exam-card-border);
}

.action-left, .action-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-nav-prev, .btn-nav-next {
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-nav-prev {
  background: transparent;
  border: 1.5px solid #1E40AF;
  color: #1E40AF;
}

.btn-nav-prev:hover:not(:disabled) {
  background: #1E40AF;
  color: #FFFFFF;
}

.btn-nav-prev:disabled, .btn-nav-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-nav-next {
  background: #1E40AF;
  color: #FFFFFF;
  border: 1.5px solid #1E40AF;
}

.btn-nav-next:hover:not(:disabled) {
  background: #1E3A8A;
  border-color: #1E3A8A;
}

.btn-review-toggle {
  background: var(--exam-purple-subtle);
  color: var(--exam-purple);
  border: 1.5px solid var(--exam-purple-border);
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-review-toggle:hover {
  background: #E9D5FF;
}

.btn-review-toggle.marked {
  background: var(--exam-purple);
  color: #FFFFFF;
  border-color: var(--exam-purple);
}

.btn-clear-choice {
  background: transparent;
  color: var(--exam-text-muted);
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.5rem;
}

.btn-clear-choice:hover {
  color: var(--exam-red);
}

.btn-exam-submit-trigger {
  background: var(--exam-red);
  color: #FFFFFF;
  border: none;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(221, 24, 59, 0.2);
  transition: all 0.2s ease;
}

.btn-exam-submit-trigger:hover {
  background: #CC1939;
  transform: translateY(-1px);
}

/* ==========================================================================
   Question Navigator Palette (Sidebar)
   ========================================================================== */
.exam-palette-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid var(--exam-card-border);
  box-shadow: var(--exam-shadow-md);
  padding: 1.75rem;
  position: sticky;
  top: 90px;
}

.palette-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--exam-card-border);
}

.palette-header h4 {
  font-family: var(--font-exam-heading);
  font-size: 1.15rem;
  color: var(--exam-heading-color);
  margin-bottom: 0.25rem;
}

/* Legend */
.palette-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  color: var(--exam-text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.dot-answered { background: var(--exam-green); }
.dot-unanswered { background: #E2E8F0; border: 1px solid #CBD5E1; }
.dot-marked { background: var(--exam-purple); }
.dot-current { border: 2px solid var(--exam-red); background: #FFFFFF; }

/* 1-20 Question Grid */
.palette-buttons-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.palette-btn {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  color: var(--exam-heading-color);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.palette-btn:hover {
  border-color: var(--exam-green);
  transform: scale(1.05);
}

.palette-btn.btn-answered {
  background: var(--exam-green);
  color: #FFFFFF;
  border-color: var(--exam-green);
}

.palette-btn.btn-marked {
  background: var(--exam-purple);
  color: #FFFFFF;
  border-color: var(--exam-purple);
}

.palette-btn.btn-current {
  outline: 2.5px solid var(--exam-red);
  outline-offset: 2px;
  font-weight: 800;
}

/* Progress bar inside palette */
.palette-progress-wrap {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--exam-card-border);
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--exam-heading-color);
  margin-bottom: 0.4rem;
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--exam-green) 0%, var(--exam-gold) 100%);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* ==========================================================================
   Submit Confirmation Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2.25rem 1.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
  margin: auto;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #F1F5F9;
  color: var(--exam-heading-color);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Summary stats inside submit modal */
.submit-modal-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.modal-stat-box {
  background: var(--exam-bg-subtle);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.modal-stat-num {
  font-family: var(--font-exam-heading);
  font-size: 1.75rem;
  font-weight: 700;
}

.modal-stat-lbl {
  font-size: 0.8rem;
  color: var(--exam-text-muted);
}

/* ==========================================================================
   Result Page Styling (rti-exam-result.html)
   ========================================================================== */
.result-hero-card {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: var(--exam-shadow-lg);
  border: 1px solid var(--exam-card-border);
  padding: 3rem 2rem;
  text-align: center;
  max-width: 840px;
  margin: 3rem auto;
}

.result-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.status-passed {
  background: #DCFCE7;
  color: #166534;
  border: 1.5px solid #86EFAC;
}

.status-failed {
  background: #FEE2E2;
  color: #991B1B;
  border: 1.5px solid #FCA5A5;
}

.result-score-large {
  font-family: var(--font-exam-heading);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--exam-heading-color);
  margin-bottom: 0.5rem;
}

.result-percentage {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--exam-green);
  margin-bottom: 1.5rem;
}

/* Breakdown Grid */
.result-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.breakdown-box {
  background: var(--exam-bg-subtle);
  border: 1px solid var(--exam-card-border);
  border-radius: 12px;
  padding: 1.25rem 0.75rem;
}

.breakdown-num {
  font-family: var(--font-exam-heading);
  font-size: 1.6rem;
  font-weight: 700;
}

.breakdown-lbl {
  font-size: 0.8rem;
  color: var(--exam-text-muted);
  margin-top: 0.25rem;
}

/* Certificate Offer Card */
.cert-offer-card {
  background: linear-gradient(135deg, #092619 0%, #0F3826 100%);
  color: #FFFFFF;
  border-radius: 16px;
  padding: 2.5rem;
  margin: 2.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--exam-gold);
}

.cert-offer-card::before {
  content: '★';
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 120px;
  color: rgba(217, 119, 6, 0.1);
  pointer-events: none;
}

.cert-offer-title {
  font-family: var(--font-exam-heading);
  font-size: 1.85rem;
  color: #FDE68A;
  margin-bottom: 0.75rem;
}

/* Review Questions Accordion */
.review-section {
  max-width: 840px;
  margin: 4rem auto;
}

.review-item-card {
  background: #FFFFFF;
  border-radius: 12px;
  border: 1.5px solid var(--exam-card-border);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.review-item-card.is-correct {
  border-left: 6px solid #16A34A;
}

.review-item-card.is-incorrect {
  border-left: 6px solid #DC2626;
}

.review-item-card.is-unanswered {
  border-left: 6px solid #F59E0B;
}

.review-explanation-box {
  background: #F8FAFC;
  border-left: 4px solid var(--exam-purple);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin-top: 1rem;
  font-size: 0.925rem;
  line-height: 1.6;
}

.review-legal-ref {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--exam-purple);
  margin-top: 0.5rem;
  display: block;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .exam-arena-grid {
    grid-template-columns: 1fr;
  }
  .exam-palette-card {
    position: static;
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .exam-hero {
    padding: 3.5rem 0 2.5rem;
  }
  .reg-grid-2 {
    grid-template-columns: 1fr;
  }
  .exam-reg-card,
  .exam-instructions-card,
  .exam-question-card,
  .result-hero-card {
    padding: 1.5rem;
  }
  .exam-sticky-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .question-action-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .action-left, .action-right {
    justify-content: space-between;
    width: 100%;
  }
  .btn-nav-prev, .btn-nav-next, .btn-exam-submit-trigger {
    flex-grow: 1;
    justify-content: center;
  }
}

/* ==========================================================================
   Certificate Verification Portal Styles
   ========================================================================== */
.verify-search-card {
  background: var(--exam-surface);
  border: 1px solid var(--exam-card-border);
  border-radius: 14px;
  padding: 2.25rem;
  box-shadow: var(--exam-shadow-md);
  margin-bottom: 2.5rem;
}
.verify-input-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.verify-input {
  flex: 1;
  min-width: 260px;
  padding: 0.9rem 1.25rem;
  font-size: 1.05rem;
  font-family: monospace, sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 2px solid var(--exam-card-border);
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
}
.verify-input:focus {
  border-color: var(--exam-green);
  box-shadow: 0 0 0 3px rgba(15, 56, 38, 0.15);
}
.verification-card {
  background: var(--exam-surface);
  border: 2px solid #BBF7D0;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--exam-shadow-lg);
  position: relative;
  overflow: hidden;
}
.verification-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--exam-green) 0%, var(--exam-gold) 50%, var(--exam-purple) 100%);
}
.verification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--exam-card-border);
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.credential-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.credential-status-badge.verified {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
}
.credential-status-badge.invalid {
  background: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #FCA5A5;
}
.credential-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.credential-item {
  background: var(--exam-bg-subtle);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--exam-card-border);
}
.credential-label {
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--exam-text-muted);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.credential-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--exam-heading-color);
}

/* ==========================================================================
   Admin Dashboard Styles
   ========================================================================== */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.admin-kpi-card {
  background: var(--exam-surface);
  border: 1px solid var(--exam-card-border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--exam-shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.admin-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--exam-shadow-md);
}
.admin-kpi-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.admin-kpi-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--exam-heading-color);
  line-height: 1.1;
  font-family: var(--font-exam-heading);
}
.admin-kpi-label {
  font-size: 0.85rem;
  color: var(--exam-text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}
.admin-tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--exam-card-border);
  margin-bottom: 2rem;
  overflow-x: auto;
}
.admin-tab-btn {
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--exam-text-muted);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.admin-tab-btn:hover {
  color: var(--exam-green);
}
.admin-tab-btn.active {
  color: var(--exam-green);
  border-bottom-color: var(--exam-green);
  font-weight: 700;
}
.admin-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--exam-card-border);
  border-radius: 10px;
  background: var(--exam-surface);
  box-shadow: var(--exam-shadow-sm);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}
.admin-table th {
  background: #F8FAFC;
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: #334155;
  border-bottom: 1px solid var(--exam-card-border);
  white-space: nowrap;
}
.admin-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--exam-card-border);
  color: #475569;
  vertical-align: middle;
}
.admin-table tr:hover td {
  background: #F8FAFC;
}
.status-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.775rem;
  font-weight: 700;
}
.status-pill.active {
  background: #DCFCE7;
  color: #15803D;
}
.status-pill.inactive {
  background: #F1F5F9;
  color: #64748B;
}
.status-pill.pass {
  background: #DCFCE7;
  color: #15803D;
}
.status-pill.fail {
  background: #FEE2E2;
  color: #DC2626;
}

/* ==========================================================================
   High-Contrast Buttons & Sample ID Chips (Light Surfaces)
   ========================================================================== */
.sample-id-chip {
  background: #F1F5F9;
  color: #1E40AF !important;
  border: 1px solid #CBD5E1;
  font-family: monospace, -apple-system, sans-serif;
  font-weight: 700;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
  text-decoration: none;
}
.sample-id-chip:hover {
  background: #1E40AF;
  color: #FFFFFF !important;
  border-color: #1E40AF;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(30, 64, 175, 0.2);
}

.verification-card .btn-exam-outline,
.btn-exam-outline-dark {
  background: #FFFFFF !important;
  color: #1E40AF !important;
  border: 2px solid #1E40AF !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.verification-card .btn-exam-outline:hover,
.btn-exam-outline-dark:hover {
  background: #1E40AF !important;
  color: #FFFFFF !important;
}

/* Social Share Action Buttons */
.btn-share-fb {
  background: #1877F2 !important;
  color: #FFFFFF !important;
  border: none !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.btn-share-fb:hover {
  background: #145DBF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(24, 119, 242, 0.35);
}

.btn-share-ig {
  background: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.btn-share-ig:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(220, 39, 67, 0.35);
}

/* Bilingual Language Toggle */
.lang-toggle-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.825rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}
.lang-toggle-btn:hover,
.lang-toggle-btn.active {
  background: #D97706;
  border-color: #D97706;
  color: #0F172A;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Responsive Optimizations
   ========================================================================== */

/* Input font-size guard: Prevents iOS Safari from auto-zooming */
.reg-form-input,
.reg-form-select,
.verify-input {
  font-size: 16px !important;
}

@media (max-width: 768px) {
  /* Container Padding on Mobile */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Live Exam Arena Sticky Bar */
  .exam-top-sticky-bar {
    top: 60px !important;
    padding: 0.5rem 0 !important;
  }
  .exam-sticky-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.45rem !important;
    flex-wrap: nowrap !important;
  }
  .exam-candidate-badge {
    gap: 0.4rem !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }
  .exam-candidate-avatar {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.75rem !important;
    flex-shrink: 0 !important;
  }
  .exam-candidate-name {
    font-size: 0.8rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 95px !important;
  }
  .exam-candidate-lang {
    display: none !important;
  }
  .exam-timer-box {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.9rem !important;
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
  }
  .lang-toggle-btn {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.75rem !important;
    gap: 0.25rem !important;
    flex-shrink: 0 !important;
  }
  .btn-exam-submit-trigger {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.8rem !important;
    gap: 0.25rem !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  /* Question Card & Arena */
  .exam-question-card {
    padding: 1.25rem 1rem !important;
    border-radius: 12px !important;
  }
  .question-meta-bar {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.75rem !important;
  }
  .question-text {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.5rem !important;
  }
  .options-list {
    gap: 0.65rem !important;
    margin-bottom: 1.5rem !important;
  }
  .option-card {
    padding: 0.85rem 1rem !important;
    gap: 0.75rem !important;
    border-radius: 10px !important;
  }
  .option-card:hover {
    transform: none !important;
  }
  .option-key {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.8rem !important;
  }
  .option-label {
    font-size: 0.925rem !important;
  }

  /* Question Action Bar: Ergonomic Mobile Layout */
  .question-action-bar {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 0.75rem !important;
    padding-top: 1rem !important;
  }
  .action-right {
    width: 100% !important;
  }
  .action-right .btn-nav-next {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.85rem 1rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
  }
  .action-left {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }
  .action-left .btn-nav-prev {
    grid-column: 1 !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 0.75rem 0.5rem !important;
    font-size: 0.9rem !important;
  }
  .action-left .btn-review-toggle {
    grid-column: 2 !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 0.75rem 0.5rem !important;
    font-size: 0.825rem !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .action-left .btn-clear-choice {
    grid-column: span 2 !important;
    text-align: center !important;
    width: 100% !important;
    padding: 0.4rem !important;
    font-size: 0.825rem !important;
  }

  /* Question Navigator Palette */
  .exam-palette-card {
    padding: 1.25rem 1rem !important;
    border-radius: 12px !important;
    margin-top: 1.5rem !important;
  }
  .palette-buttons-grid {
    gap: 0.5rem !important;
  }
  .palette-btn {
    font-size: 0.825rem !important;
    border-radius: 6px !important;
  }

  /* Modals on Mobile */
  .modal-overlay {
    padding: 0.75rem 0.5rem !important;
  }
  .modal-container {
    padding: 1.5rem 1rem !important;
    border-radius: 16px !important;
    max-height: 92vh !important;
    max-height: 92dvh !important;
  }
  .modal-close-btn {
    top: 0.75rem !important;
    right: 0.75rem !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 1.1rem !important;
  }
  .exam-reg-header h3 {
    font-size: 1.35rem !important;
  }
  .reg-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .reg-form-group {
    margin-bottom: 1rem !important;
  }
  #btn-send-exam-otp,
  #btn-send-download-otp {
    flex-shrink: 0 !important;
    padding: 0.65rem 0.85rem !important;
    font-size: 0.85rem !important;
  }
  #regOtpInput,
  #certDownloadOtpInput {
    width: 110px !important;
    font-size: 1rem !important;
    padding: 0.6rem 0.4rem !important;
  }

  /* Certificate Verification Card & Search */
  .verify-search-card {
    padding: 1.25rem 1rem !important;
    margin-bottom: 1.5rem !important;
  }
  .verify-input-group {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  .verify-input {
    min-width: 100% !important;
    width: 100% !important;
  }
  .verify-input-group .btn-exam-primary {
    width: 100% !important;
    justify-content: center !important;
  }
  .sample-id-chip {
    font-size: 0.75rem !important;
    padding: 0.25rem 0.6rem !important;
  }
  .verification-card {
    padding: 1.5rem 1rem !important;
    border-radius: 12px !important;
  }
  .verification-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    padding-bottom: 1rem !important;
    margin-bottom: 1.25rem !important;
  }
  .verification-header > div:last-child {
    text-align: left !important;
    width: 100% !important;
    border-top: 1px dashed var(--exam-card-border) !important;
    padding-top: 0.5rem !important;
  }
  #res-candidate-name {
    font-size: clamp(1.35rem, 5.5vw, 1.85rem) !important;
    word-break: break-word !important;
  }
  .credential-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    margin-bottom: 1.5rem !important;
  }
  .credential-item {
    padding: 0.75rem 1rem !important;
  }
  .verification-actions-group,
  .verification-card div[style*="justify-content: center; flex-wrap: wrap"] {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }
  .verification-actions-group button,
  .verification-actions-group a,
  .verification-card div[style*="justify-content: center; flex-wrap: wrap"] button,
  .verification-card div[style*="justify-content: center; flex-wrap: wrap"] a {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.85rem 1rem !important;
    text-align: center !important;
  }

  /* Result Page (rti-exam-result.html) */
  .result-hero-card {
    margin: 1.5rem auto 2rem !important;
    padding: 1.75rem 1rem !important;
    border-radius: 14px !important;
  }
  .result-hero-card h1#result-candidate-name {
    font-size: clamp(1.4rem, 6vw, 2rem) !important;
    word-break: break-word !important;
  }
  .result-score-large {
    font-size: 3rem !important;
  }
  .result-percentage {
    font-size: 1.15rem !important;
    margin-bottom: 1.25rem !important;
  }
  .result-breakdown-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
    margin: 1.5rem 0 !important;
  }
  .breakdown-box {
    padding: 0.85rem 0.5rem !important;
  }
  .breakdown-num {
    font-size: 1.35rem !important;
  }
  .breakdown-lbl {
    font-size: 0.75rem !important;
  }
  .result-action-group,
  #result-display-wrapper div[style*="justify-content: center; gap: 1rem; flex-wrap: wrap"] {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.75rem !important;
  }
  #btn-download-cert-main,
  #btn-verify-cert-main {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.85rem 1rem !important;
  }
  .social-share-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }
  .social-share-title {
    grid-column: span 2 !important;
    text-align: center !important;
    margin-bottom: 0.25rem !important;
  }
  .btn-share-wa,
  .btn-share-fb,
  .btn-share-ig,
  .btn-share-linkedin {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.65rem 0.5rem !important;
    font-size: 0.825rem !important;
  }
  .cert-offer-card {
    padding: 1.5rem 1rem !important;
    margin: 1.5rem 0 !important;
    border-radius: 14px !important;
  }
  .cert-offer-title {
    font-size: 1.35rem !important;
  }
  #btn-download-pdf,
  #btn-download-png {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.95rem !important;
  }
  .review-item-card {
    padding: 1.15rem 1rem !important;
    margin-bottom: 1rem !important;
  }
  .review-explanation-box {
    padding: 0.85rem 0.9rem !important;
    font-size: 0.85rem !important;
  }
}

@media (max-width: 480px) {
  /* Hero metrics 2-column with 5th spanning 2 columns */
  .exam-metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
    margin: 1.5rem 0 !important;
  }
  .exam-metrics-grid .exam-metric-card {
    min-height: 95px !important;
    padding: 0.85rem 0.5rem !important;
  }
  .exam-metrics-grid .exam-metric-card:last-child {
    grid-column: span 2 !important;
  }
  .exam-hero-title {
    font-size: clamp(1.6rem, 5.5vw, 2.2rem) !important;
  }
  .exam-cta-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.65rem !important;
  }
  .exam-cta-group .btn-exam-primary,
  .exam-cta-group .btn-exam-outline {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.85rem 1rem !important;
  }
  .exam-candidate-name {
    max-width: 65px !important;
  }
}

/* ==========================================================================
   Print Stylesheet (Official Verification Sheet Single A4 Printout)
   ========================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 15mm;
  }

  /* Hide distracting website chrome */
  .top-bar,
  .site-header,
  .exam-hero,
  .verify-search-card,
  .site-footer,
  .back-to-top,
  .mobile-nav-drawer,
  .mobile-nav-overlay,
  .print-hide,
  .btn,
  .btn-exam-primary,
  .btn-exam-outline,
  .btn-exam-outline-dark,
  #verify-error-box,
  #download-otp-modal,
  .footer-bottom,
  div[style*="margin-top: 3.5rem"] {
    display: none !important;
  }

  body, html, main {
    background: #FFFFFF !important;
    color: #0F172A !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #verify-success-box {
    display: block !important;
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
  }

  .verification-card {
    border: 3px double #1E40AF !important;
    box-shadow: none !important;
    padding: 2rem !important;
    margin: 0 !important;
    page-break-inside: avoid !important;
    border-radius: 8px !important;
    background: #FFFFFF !important;
  }

  .credential-grid {
    gap: 1rem !important;
  }

  .credential-item {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    padding: 0.75rem !important;
  }

  .print-only {
    display: block !important;
  }
}


