/**
 * Ayurveda Library — AACCC All India AYUSH PG Rank Predictor
 * Design System & Responsive Styles (Desktop & Mobile)
 */

/* ── Predictor Design Tokens ── */
:root {
  --rp-primary: #0d9488;
  --rp-primary-dark: #0f766e;
  --rp-primary-darker: #042f2e;
  --rp-accent-gold: #c8963e;
  --rp-accent-gold-dark: #b78a28;
  --rp-gold-light: #fffbeb;
  --rp-teal-light: #f0fdfa;
  --rp-surface: #ffffff;
  --rp-surface-card: #ffffff;
  --rp-border: #e2e8f0;
  --rp-border-light: #f1f5f9;
  --rp-text-main: #0f172a;
  --rp-text-muted: #64748b;
  --rp-safe: #15803d;
  --rp-safe-bg: #dcfce7;
  --rp-safe-border: #86efac;
  --rp-target: #1d4ed8;
  --rp-target-bg: #dbeafe;
  --rp-target-border: #93c5fd;
  --rp-reach: #c2410c;
  --rp-reach-bg: #ffedd5;
  --rp-reach-border: #fdba74;
}

/* ── Predictor Hero ── */
.predictor-hero {
  background: linear-gradient(135deg, #042f2e 0%, #0f766e 65%, #0d9488 100%);
  color: #ffffff;
  padding: 3rem 1.25rem 2.75rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.predictor-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 150, 62, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.predictor-hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.predictor-shell {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.predictor-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.predictor-badge {
  background: rgba(255, 255, 255, 0.14);
  color: #f0fdf4;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(6px);
}

.predictor-badge.gold {
  background: rgba(200, 150, 62, 0.25);
  border-color: rgba(200, 150, 62, 0.5);
  color: #fef3c7;
}

.predictor-badge.free {
  background: rgba(34, 197, 94, 0.25);
  border-color: rgba(34, 197, 94, 0.5);
  color: #bbf7d0;
}

.predictor-hero-title {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.predictor-hero-title span {
  color: #fde68a;
}

.predictor-hero-sub {
  font-size: 1rem;
  color: #ccfbf1;
  max-width: 800px;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}

.predictor-stats-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  max-width: 860px;
  margin: 0 auto;
}

.predictor-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.predictor-stat-icon {
  font-size: 1.45rem;
  color: #fde68a;
}

.predictor-stat-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
  line-height: 1.2;
}

.predictor-stat-lbl {
  font-size: 0.74rem;
  color: #99f6e4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ── Main Container ── */
.predictor-main-wrapper {
  max-width: 1200px;
  margin: -2rem auto 3rem;
  padding: 0 1.25rem;
  position: relative;
  z-index: 10;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* ── SECTION 1: Free Benchmark Category Cutoffs ─────────────────── */
/* ═══════════════════════════════════════════════════════════════════ */
.benchmark-section {
  background: #ffffff;
  border: 1px solid var(--rp-border);
  border-radius: 20px;
  padding: 2rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.section-title-wrap {
  margin-bottom: 1.25rem;
}

.benchmark-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.section-tag {
  display: inline-block;
  background: #f0fdfa;
  color: #0d9488;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 6px;
  border: 1px solid #99f6e4;
  letter-spacing: 0.05em;
}

.section-title {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--rp-text-main);
  line-height: 1.3;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--rp-text-muted);
  margin-top: 4px;
}

.badge-free-live {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #86efac;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Category Switcher Tabs */
.benchmark-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 6px;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--rp-border);
}

.benchmark-tabs::-webkit-scrollbar {
  display: none;
}

.benchmark-tab-btn {
  background: #ffffff;
  border: 1px solid var(--rp-border);
  padding: 10px 18px;
  border-radius: 10px 10px 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--rp-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.benchmark-tab-btn:hover {
  color: #0d9488;
  background: #f0fdfa;
}

.benchmark-tab-btn.active {
  background: #0d9488;
  color: #ffffff;
  border-color: #0d9488;
}

/* Mobile Scroll Indicator */
.table-scroll-hint {
  display: none;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 8px;
  text-align: right;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

/* Benchmark Cutoff Table */
.benchmark-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--rp-border);
}

.benchmark-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.benchmark-table th {
  background: #f8fafc;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--rp-border);
  white-space: nowrap;
}

.benchmark-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--rp-border-light);
  vertical-align: middle;
}

.benchmark-table tr:hover td {
  background: #f8fafc;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* ── SECTION 2: AIAPGET Rank Match Engine Form ──────────────────── */
/* ═══════════════════════════════════════════════════════════════════ */
.predictor-finder-card {
  background: var(--rp-surface);
  border: 2px solid #0d9488;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(13, 148, 136, 0.1), 0 4px 12px rgba(15, 23, 42, 0.05);
  padding: 2.25rem 2rem 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.predictor-finder-card::before {
  content: '🎯 FREE AIAPGET PREDICTOR ENGINE';
  position: absolute;
  top: -14px;
  left: 28px;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
}

.finder-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.finder-title-area h2 {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--rp-text-main);
  margin-bottom: 0.35rem;
}

.finder-title-area p {
  color: var(--rp-text-muted);
  font-size: 0.9rem;
}

.finder-free-pill {
  background: #ecfdf5;
  color: #059669;
  border: 1.5px solid #86efac;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Quick Rank Chips */
.rank-chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.rank-chip-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--rp-text-muted);
  text-transform: uppercase;
}

.rank-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.rank-chip:hover {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0284c7;
  transform: translateY(-1px);
}

/* Form Grid */
.predictor-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.predictor-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.predictor-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--rp-text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.predictor-input,
.predictor-select {
  width: 100%;
  height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--rp-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--rp-text-main);
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.predictor-input:focus,
.predictor-select:focus {
  border-color: var(--rp-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.predictor-input-rank {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--rp-primary-dark);
  letter-spacing: 0.02em;
}

/* Form Actions */
.predictor-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-predict {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  padding: 13px 30px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
  transition: all 0.25s ease;
  flex: 2;
  min-width: 240px;
  font-family: inherit;
}

.btn-predict:hover {
  background: linear-gradient(135deg, #0f766e 0%, #042f2e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
}

.btn-reset {
  background: #f8fafc;
  color: var(--rp-text-muted);
  font-size: 0.92rem;
  font-weight: 700;
  border: 1.5px solid var(--rp-border);
  border-radius: 12px;
  padding: 13px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  flex: 1;
  min-width: 140px;
  font-family: inherit;
}

.btn-reset:hover {
  background: #f1f5f9;
  color: var(--rp-text-main);
  border-color: #cbd5e1;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* ── Results Container ───────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════════ */
.predictor-results-container {
  display: none;
  margin-bottom: 3rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Candidate Profile Strip */
.candidate-report-strip {
  background: linear-gradient(135deg, #042f2e 0%, #0f766e 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.strip-user-details {
  display: flex;
  align-items: center;
  gap: 14px;
}

.strip-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fde68a;
  flex-shrink: 0;
}

.strip-meta h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.strip-meta p {
  font-size: 0.82rem;
  color: #ccfbf1;
}

.strip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.strip-tag {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

/* 3-Scorecards Grid */
.scorecards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.scorecard {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.25rem;
  border: 2px solid;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  position: relative;
  transition: transform 0.2s ease;
}

.scorecard:hover {
  transform: translateY(-2px);
}

.scorecard.safe {
  border-color: var(--rp-safe-border);
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 60%);
}

.scorecard.target {
  border-color: var(--rp-target-border);
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 60%);
}

.scorecard.reach {
  border-color: var(--rp-reach-border);
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 60%);
}

.scorecard-badge {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}

.scorecard.safe .scorecard-badge {
  background: var(--rp-safe-bg);
  color: var(--rp-safe);
}

.scorecard.target .scorecard-badge {
  background: var(--rp-target-bg);
  color: var(--rp-target);
}

.scorecard.reach .scorecard-badge {
  background: var(--rp-reach-bg);
  color: var(--rp-reach);
}

.scorecard-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.scorecard-num {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.scorecard.safe .scorecard-num { color: var(--rp-safe); }
.scorecard.target .scorecard-num { color: var(--rp-target); }
.scorecard.reach .scorecard-num { color: var(--rp-reach); }

.scorecard-unit {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rp-text-muted);
}

.scorecard-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--rp-text-main);
  margin-bottom: 3px;
}

.scorecard-desc {
  font-size: 0.8rem;
  color: var(--rp-text-muted);
  line-height: 1.5;
}

/* Action Toolbar */
.results-toolbar {
  background: #ffffff;
  border: 1px solid var(--rp-border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.status-filter-btn {
  background: #f8fafc;
  border: 1px solid var(--rp-border);
  color: var(--rp-text-main);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.status-filter-btn:hover {
  background: #f1f5f9;
}

.status-filter-btn.active {
  background: #0d9488;
  color: #ffffff;
  border-color: #0d9488;
}

.toolbar-search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}

.toolbar-search input {
  width: 100%;
  height: 38px;
  padding: 6px 12px 6px 32px;
  border: 1.5px solid var(--rp-border);
  border-radius: 8px;
  font-size: 0.85rem;
  outline: none;
  background: #f8fafc;
  box-sizing: border-box;
}

.toolbar-search input:focus {
  border-color: var(--rp-primary);
  background: #ffffff;
}

.toolbar-search i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.82rem;
}

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

.sort-select-input {
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1.5px solid var(--rp-border);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rp-text-main);
  background: #ffffff;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
}

.btn-share-tool {
  background: #ffffff;
  color: #0f766e;
  border: 1.5px solid #0f766e;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
  height: 38px;
  box-sizing: border-box;
}

.btn-share-tool:hover {
  background: #f0fdfa;
  transform: translateY(-1px);
}

/* College Result Cards */
.college-results-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.college-result-card {
  background: #ffffff;
  border: 1px solid var(--rp-border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
  position: relative;
}

.college-result-card:hover {
  border-color: #0d9488;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.1);
  transform: translateY(-2px);
}

.college-result-card.premier {
  border-left: 6px solid var(--rp-accent-gold);
  background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
}

.card-header-line {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.card-title-group {
  flex: 1;
  min-width: 240px;
}

.card-priority-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 3px;
}

.card-college-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--rp-text-main);
  line-height: 1.35;
  margin-bottom: 6px;
}

.card-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.badge-specialty {
  background: #f0fdfa;
  color: #0d9488;
  border: 1px solid #99f6e4;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}

.badge-premier {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-status {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-status.safe {
  background: var(--rp-safe-bg);
  color: var(--rp-safe);
}

.badge-status.target {
  background: var(--rp-target-bg);
  color: var(--rp-target);
}

.badge-status.reach {
  background: var(--rp-reach-bg);
  color: var(--rp-reach);
}

.card-address {
  font-size: 0.84rem;
  color: var(--rp-text-muted);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rp-border-light);
  font-size: 0.84rem;
}

.meta-box span {
  display: block;
  font-size: 0.72rem;
  color: var(--rp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.meta-box strong {
  font-size: 0.92rem;
  color: var(--rp-text-main);
  font-weight: 700;
}

.meta-box.highlight strong {
  color: #0f766e;
  font-size: 1rem;
}

/* Round Shifts Details */
.card-rounds-strip {
  margin-top: 0.85rem;
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
  color: #475569;
}

.round-shift-item strong {
  color: var(--rp-text-main);
}

/* Cross Card */
.state-counselling-crosscard {
  background: linear-gradient(135deg, #f0fdfa, #f8fafc);
  border: 1.5px solid #ccfbf1;
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.crosscard-title {
  font-family: var(--font-serif, "Playfair Display", Georgia, serif);
  font-size: 1.2rem;
  color: #0f766e;
  margin-bottom: 0.35rem;
}

.crosscard-desc {
  font-size: 0.88rem;
  color: #475569;
  margin: 0;
}

/* FAQ Grid */
.predictor-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--rp-border);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.faq-card h4 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f766e;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-card p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--rp-text-muted);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════ */
/* ── COMPREHENSIVE MOBILE OPTIMIZATIONS (Max Width: 768px) ───────── */
/* ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Prevent any horizontal screen drift */
  html, body {
    overflow-x: hidden;
  }

  .predictor-hero {
    padding: 2.25rem 1rem 2.25rem;
  }

  .predictor-badge-wrap {
    gap: 6px;
    margin-bottom: 1rem;
  }

  .predictor-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .predictor-hero-title {
    font-size: 1.7rem;
    line-height: 1.25;
    margin-bottom: 0.65rem;
  }

  .predictor-hero-sub {
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
  }

  /* 2x2 grid for hero stats on mobile */
  .predictor-stats-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-top: 1rem;
  }

  .predictor-stat-item {
    gap: 8px;
  }

  .predictor-stat-icon {
    font-size: 1.25rem;
  }

  .predictor-stat-val {
    font-size: 1.05rem;
  }

  .predictor-stat-lbl {
    font-size: 0.68rem;
  }

  /* Container adjustments */
  .predictor-main-wrapper {
    margin: -1.25rem auto 2rem;
    padding: 0 10px;
  }

  /* Benchmark Section Mobile */
  .benchmark-section {
    padding: 1.25rem 1rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
  }

  .benchmark-header-row {
    flex-direction: column;
    gap: 8px;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .section-subtitle {
    font-size: 0.84rem;
  }

  /* Show scroll indicator on mobile */
  .table-scroll-hint {
    display: flex;
  }

  .benchmark-tabs {
    gap: 6px;
  }

  .benchmark-tab-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .benchmark-table {
    min-width: 580px;
  }

  .benchmark-table th {
    padding: 10px 12px;
    font-size: 0.72rem;
  }

  .benchmark-table td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  /* Finder Card Mobile */
  .predictor-finder-card {
    padding: 1.5rem 1rem 1.25rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
  }

  .predictor-finder-card::before {
    left: 16px;
    font-size: 0.68rem;
    padding: 3px 10px;
  }

  .finder-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 1.25rem;
  }

  .finder-title-area h2 {
    font-size: 1.25rem;
  }

  .finder-title-area p {
    font-size: 0.84rem;
  }

  /* Form inputs full width on mobile */
  .predictor-form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .predictor-input,
  .predictor-select {
    height: 44px;
    font-size: 0.9rem;
  }

  .rank-chips-row {
    gap: 5px;
  }

  .rank-chip {
    padding: 3px 7px;
    font-size: 0.72rem;
  }

  /* Action buttons stacked on mobile */
  .predictor-actions-row {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .btn-predict {
    width: 100%;
    min-width: 100%;
    font-size: 0.95rem;
    padding: 12px;
  }

  .btn-reset {
    width: 100%;
    min-width: 100%;
    font-size: 0.88rem;
    padding: 10px;
  }

  /* Results area on mobile */
  .candidate-report-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 10px;
    border-radius: 12px;
  }

  .strip-avatar {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }

  .strip-meta h3 {
    font-size: 1.05rem;
  }

  /* Single column scorecards */
  .scorecards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .scorecard {
    padding: 1rem;
    border-radius: 12px;
  }

  .scorecard-num {
    font-size: 1.75rem;
  }

  /* Toolbar on mobile */
  .results-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 10px;
  }

  .toolbar-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 100%;
  }

  .status-filter-btn {
    text-align: center;
    padding: 8px 6px;
    font-size: 0.76rem;
  }

  .toolbar-search {
    max-width: 100%;
    width: 100%;
  }

  .toolbar-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .sort-select-input {
    flex: 1;
    font-size: 0.76rem;
  }

  .btn-share-tool {
    font-size: 0.78rem;
    padding: 6px 10px;
  }

  /* College cards on mobile */
  .college-result-card {
    padding: 1rem;
    border-radius: 12px;
  }

  .card-header-line {
    flex-direction: column;
    gap: 8px;
  }

  .card-college-name {
    font-size: 1.05rem;
  }

  .card-meta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 0.78rem;
  }

  .meta-box strong {
    font-size: 0.86rem;
  }

  .card-rounds-strip {
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  .state-counselling-crosscard {
    flex-direction: column;
    padding: 1.25rem 1rem;
    border-radius: 14px;
    gap: 1rem;
  }

  .crosscard-title {
    font-size: 1.1rem;
  }

  .results-bottom-pdf-strip {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
    gap: 1rem;
  }

  .results-bottom-pdf-strip .btn-download-pdf-report {
    width: 100%;
    justify-content: center;
  }

  .candidate-report-strip .btn-download-pdf-report {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    margin-top: 6px;
  }
}

/* ── PDF Download Report Button & Bottom Card ── */
.btn-download-pdf-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #c8963e 0%, #b78a28 100%);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(200, 150, 62, 0.35);
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.btn-download-pdf-cta:hover {
  background: linear-gradient(135deg, #d8a44a 0%, #a87c1f 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(200, 150, 62, 0.45);
  color: #ffffff;
}

.btn-download-pdf-cta:active {
  transform: translateY(0);
}

.btn-download-pdf-cta.compact {
  padding: 7px 14px;
  font-size: 0.82rem;
  border-radius: 8px;
  background: #ffffff;
  color: #0c3e31;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.btn-download-pdf-cta.compact:hover {
  background: #f0fdf4;
  color: #0c3e31;
}

.btn-download-pdf-cta.toolbar {
  padding: 8px 16px;
  font-size: 0.84rem;
  border-radius: 8px;
}

.btn-download-pdf-cta.large {
  padding: 13px 26px;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-download-pdf-cta.loading {
  opacity: 0.75;
  pointer-events: none;
}

.btn-download-pdf-cta.loading i {
  animation: spin 1s infinite linear;
}

/* Scorecard Action Bar */
.scorecard-pdf-action-bar {
  background: linear-gradient(135deg, #042f2e 0%, #0c3e31 100%);
  border: 1.5px solid rgba(200, 150, 62, 0.4);
  border-radius: 16px;
  padding: 1.25rem 1.75rem;
  margin: 1.5rem 0 1.25rem;
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 8px 24px rgba(12, 62, 49, 0.16);
}

.pdf-action-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pdf-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(200, 150, 62, 0.22);
  border: 1px solid rgba(200, 150, 62, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: #fde68a;
  flex-shrink: 0;
}

.pdf-action-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fde68a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.pdf-action-title {
  font-size: 1.18rem;
  font-weight: 800;
  margin: 0 0 3px 0;
  color: #ffffff;
}

.pdf-action-desc {
  font-size: 0.85rem;
  color: #ccfbf1;
  margin: 0;
  line-height: 1.45;
  max-width: 620px;
}

.strip-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Backward compatibility for old class name */
.btn-download-pdf-report {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #c8963e 0%, #b78a28 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 4px 12px rgba(200, 150, 62, 0.25);
  font-family: inherit;
  white-space: nowrap;
}

.btn-download-pdf-report:hover {
  background: linear-gradient(135deg, #d8a44a 0%, #a87c1f 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(200, 150, 62, 0.35);
}

/* Bottom PDF Download Card */
.results-bottom-pdf-strip {
  background: linear-gradient(135deg, #042f2e 0%, #0c3e31 100%);
  border: 1.5px solid rgba(200, 150, 62, 0.35);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 8px 25px rgba(12, 62, 49, 0.15);
}

.bottom-pdf-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #fde68a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.bottom-pdf-content h4 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 0.35rem 0;
  color: #ffffff;
}

.bottom-pdf-content p {
  font-size: 0.88rem;
  color: #ccfbf1;
  margin: 0;
  max-width: 650px;
  line-height: 1.5;
}
