/* ==========================================================================
   JyotirVed Engine — Career Intelligence & Professional Path Redesign
   Synchronized with light & dark themes
   ========================================================================== */

.cip-container {
  color: var(--ink, #0f172a);
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  background: var(--paper, #ffffff);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

body.dark .cip-container {
  background: var(--paper, #0c1527);
  border-color: var(--line, rgba(223, 177, 91, 0.22));
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   Header Card
   ========================================================================== */
.cip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 20px;
  position: relative;
}

body.dark .cip-header {
  background: #0f1a2e;
  border-color: rgba(59, 130, 246, 0.25);
}

.cip-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.cip-briefcase-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.cip-briefcase-icon svg {
  width: 24px;
  height: 24px;
}

.cip-header-titles h1 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  font-family: var(--font-serif, "Georgia", serif);
  color: #0f2d59;
  letter-spacing: -0.2px;
}

body.dark .cip-header-titles h1 {
  color: #93c5fd;
}

.cip-header-titles p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

body.dark .cip-header-titles p {
  color: #94a3b8;
}

/* Native Profile Pill */
.cip-native-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 30px;
  padding: 8px 18px 8px 10px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06);
  flex-shrink: 0;
}

body.dark .cip-native-pill {
  background: #132238;
  border-color: rgba(59, 130, 246, 0.3);
}

.cip-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cip-avatar-circle svg {
  width: 20px;
  height: 20px;
}

.cip-native-info {
  display: flex;
  flex-direction: column;
}

.cip-native-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
}

body.dark .cip-native-name {
  color: #f1f5f9;
}

.cip-native-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
  line-height: 1.2;
}

body.dark .cip-native-sub {
  color: #94a3b8;
}

/* Secondary Navigation Tabs (Top) */
.cip-view-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.cip-nav-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

body.dark .cip-nav-btn {
  background: #132238;
  border-color: rgba(223, 177, 91, 0.2);
  color: #cbd5e1;
}

.cip-nav-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}

body.dark .cip-nav-btn:hover {
  background: #1e3352;
  color: #ffffff;
}

.cip-nav-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

body.dark .cip-nav-btn.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
}

/* ==========================================================================
   5-KPI Ribbon
   ========================================================================== */
.cip-kpis-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.cip-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 14px 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  min-width: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cip-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark .cip-kpi-card {
  background: #0f1a2e;
  border-color: rgba(139, 160, 184, 0.18);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

body.dark .cip-kpi-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.cip-kpi-icon-wrap {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.cip-kpi-icon-target {
  background: #ffe4e6;
  color: #e11d48;
}

.cip-kpi-icon-star {
  background: #e0f2fe;
  color: #0284c7;
}

.cip-kpi-icon-chart {
  background: #dcfce7;
  color: #16a34a;
}

.cip-kpi-icon-clock {
  background: #fef3c7;
  color: #d97706;
}

.cip-kpi-icon-compass {
  background: #ede9fe;
  color: #7c3aed;
}

body.dark .cip-kpi-icon-target {
  background: rgba(225, 29, 72, 0.2);
  color: #fb7185;
}
body.dark .cip-kpi-icon-star {
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
}
body.dark .cip-kpi-icon-chart {
  background: rgba(22, 163, 74, 0.2);
  color: #4ade80;
}
body.dark .cip-kpi-icon-clock {
  background: rgba(217, 119, 6, 0.2);
  color: #fbbf24;
}
body.dark .cip-kpi-icon-compass {
  background: rgba(124, 58, 237, 0.2);
  color: #a78bfa;
}

.cip-kpi-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cip-kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: capitalize;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dark .cip-kpi-label {
  color: #94a3b8;
}

.cip-kpi-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f2d59;
  line-height: 1.25;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dark .cip-kpi-val {
  color: #e2e8f0;
}

.cip-kpi-sub {
  font-size: 10.5px;
  color: #64748b;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.dark .cip-kpi-sub {
  color: #94a3b8;
}

.cip-kpi-progress {
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  margin-top: 5px;
  overflow: hidden;
}

body.dark .cip-kpi-progress {
  background: #1e293b;
}

.cip-kpi-progress-bar {
  height: 100%;
  background: #2563eb;
  border-radius: 2px;
}

/* ==========================================================================
   Main 6-Card Dashboard Grid (3 Columns x 2 Rows)
   ========================================================================== */
.cip-dash-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.cip-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

body.dark .cip-card {
  background: #0f1a2e;
  border-color: rgba(139, 160, 184, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.cip-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.cip-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-serif, "Georgia", serif);
  color: #0f2d59;
  letter-spacing: -0.1px;
}

body.dark .cip-card-title {
  color: #93c5fd;
}

.cip-card-action-link {
  font-size: 11.5px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  cursor: pointer;
}

body.dark .cip-card-action-link {
  color: #60a5fa;
}

.cip-card-action-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Research Desk & All-Vargas (fourth Career Intelligence view)
   -------------------------------------------------------------------------- */
.career-research {
  color: var(--ink, #0f172a);
}

.career-research .cip-header {
  margin-bottom: 20px;
}

.crd-header-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 23px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .25);
}

.crd-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.crd-kpi {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.crd-kpi i {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0284c7;
  font-style: normal;
  font-size: 17px;
}

.crd-kpi:nth-child(2) i { background: #dcfce7; color: #16a34a; }
.crd-kpi:nth-child(3) i { background: #ede9fe; color: #7c3aed; }
.crd-kpi small { display: block; color: #64748b; font-weight: 600; }
.crd-kpi b { display: block; color: #0f2d59; font-size: 16px; line-height: 1.25; }

.crd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.crd-span-all { grid-column: 1 / -1; }
.crd-candidates { display: grid; gap: 10px; }
.crd-candidate { padding: 14px; }

.crd-candidate-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crd-rank {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 800;
}

.crd-candidate h3 { margin: 0; color: #0f2d59; font-size: 14px; }
.crd-candidate .cip-pill { margin-left: auto; }
.crd-layers { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.crd-layers span { padding: 2px 7px; border-radius: 12px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; font-size: 10.5px; font-weight: 650; }
.crd-candidate details { margin-top: 9px; color: #475569; font-size: 12px; }
.crd-candidate summary { cursor: pointer; color: #2563eb; font-weight: 650; }
.crd-candidate ol { margin: 7px 0 0; padding-left: 19px; }

.crd-facts { margin: 0; }
.crd-facts div { display: grid; grid-template-columns: minmax(115px, .7fr) minmax(0, 1.5fr); gap: 10px; padding: 9px 0; border-top: 1px solid #eef2f7; }
.crd-facts dt { color: #334155; font-weight: 700; }
.crd-facts dd { margin: 0; color: #475569; }
.crd-note { margin: 10px 0 0; color: #475569; font-size: 12.5px; }
.crd-axis-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.crd-axis { padding: 12px; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px; }
.crd-axis small { display: block; color: #64748b; line-height: 1.45; }
.crd-axis b { color: #0f2d59; }
.crd-evidence { margin: 0; padding-left: 18px; color: #475569; }
.crd-evidence li + li { margin-top: 7px; }
.career-research .table { margin: 0; }

body.dark .crd-kpi, body.dark .crd-candidate { background: #0f1a2e; border-color: rgba(139, 160, 184, .18); }
body.dark .crd-kpi small, body.dark .crd-axis small { color: #94a3b8; }
body.dark .crd-kpi b, body.dark .crd-candidate h3, body.dark .crd-axis b { color: #e2e8f0; }
body.dark .crd-rank, body.dark .crd-layers span { background: rgba(37, 99, 235, .16); border-color: rgba(37, 99, 235, .3); color: #93c5fd; }
body.dark .crd-facts div { border-color: rgba(139, 160, 184, .14); }
body.dark .crd-facts dt { color: #e2e8f0; }
body.dark .crd-facts dd, body.dark .crd-note, body.dark .crd-evidence, body.dark .crd-candidate details { color: #cbd5e1; }
body.dark .crd-axis { background: #121e33; border-color: rgba(139, 160, 184, .12); }

@media (max-width: 860px) {
  .crd-grid, .crd-axis-grid { grid-template-columns: 1fr; }
}

/* ========================================================
   Education Guidance Redesign (Matches Screenshot)
   ======================================================== */
.edu-guidance-dashboard {
  background: #f0f6fb;
  border-radius: 16px;
  padding: 18px 20px;
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin-bottom: 24px;
}

body.dark .edu-guidance-dashboard {
  background: #0b1322;
  color: #f1f5f9;
}

/* 1. Header Banner */
.edu-header-banner {
  background: #ffffff;
  border: 1px solid #dce8f5;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 2px 10px rgba(15, 76, 129, 0.04);
  margin-bottom: 16px;
}

body.dark .edu-header-banner {
  background: #152238;
  border-color: #243552;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.edu-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.edu-header-icon-box {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 14px;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

body.dark .edu-header-icon-box {
  background: #1e3a8a;
  border-color: #2563eb;
}

.edu-main-title {
  font-size: 24px;
  font-weight: 800;
  color: #0c3359;
  margin: 0 0 4px;
  line-height: 1.2;
}

body.dark .edu-main-title {
  color: #e0f2fe;
}

.edu-sub-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #103b66;
  margin: 0 0 3px;
}

body.dark .edu-sub-title {
  color: #93c5fd;
}

.edu-meta-desc {
  font-size: 12px;
  color: #5c7793;
  margin: 0;
}

body.dark .edu-meta-desc {
  color: #94a3b8;
}

/* Header Navigation Pills */
.edu-nav-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.edu-nav-pill {
  background: #ffffff;
  border: 1px solid #d4e4f5;
  border-radius: 10px;
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: all 0.18s ease;
  min-width: 72px;
}

body.dark .edu-nav-pill {
  background: #1e293b;
  border-color: #334155;
}

.edu-nav-pill:hover {
  border-color: #0284c7;
  background: #f0f7fe;
  transform: translateY(-1px);
}

body.dark .edu-nav-pill:hover {
  background: #27374f;
  border-color: #38bdf8;
}

.edu-nav-pill.active {
  background: #eff6ff;
  border-color: #0284c7;
  box-shadow: 0 0 0 1.5px #0284c7;
}

body.dark .edu-nav-pill.active {
  background: #1e3a8a;
  border-color: #38bdf8;
  box-shadow: 0 0 0 1.5px #38bdf8;
}

.edu-pill-icon {
  font-size: 16px;
  line-height: 1;
}

.edu-pill-top {
  font-size: 11px;
  font-weight: 800;
  color: #0284c7;
  line-height: 1.1;
}

body.dark .edu-pill-top {
  color: #38bdf8;
}

.edu-pill-sub {
  font-size: 10px;
  font-weight: 600;
  color: #475569;
  line-height: 1.1;
}

body.dark .edu-pill-sub {
  color: #cbd5e1;
}

/* 2. Grid Layout Rows */
.edu-grid-row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.edu-row-1 {
  grid-template-columns: 1.15fr 1.25fr 1.05fr;
}

.edu-row-2 {
  grid-template-columns: 1.35fr 1.05fr 0.95fr;
}

.edu-row-3 {
  grid-template-columns: 1.18fr 1.05fr 0.95fr;
}

@media (max-width: 1200px) {
  .edu-row-1 { grid-template-columns: 1.2fr 1fr; }
  .edu-row-1 .edu-card-other { grid-column: 1 / -1; }
  .edu-row-2 { grid-template-columns: 1fr 1fr; }
  .edu-row-2 .edu-card-charts { grid-column: 1 / -1; }
  .edu-row-3 { grid-template-columns: 1fr 1fr; }
  .edu-row-3 .edu-card-axes { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .edu-header-banner { flex-direction: column; align-items: flex-start; }
  .edu-nav-pills { width: 100%; justify-content: space-between; overflow-x: auto; }
  .edu-row-1, .edu-row-2, .edu-row-3 { grid-template-columns: 1fr; }
  .edu-row-1 .edu-card-other, .edu-row-2 .edu-card-charts, .edu-row-3 .edu-card-axes { grid-column: auto; }
}

/* 3. Base Card Style */
.edu-card {
  background: #ffffff;
  border: 1px solid #dce8f5;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 2px 10px rgba(15, 76, 129, 0.04);
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

body.dark .edu-card {
  background: #152238;
  border-color: #243552;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.edu-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.edu-card-header-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.edu-card-icon {
  font-size: 17px;
  line-height: 1;
}

.edu-card-title {
  font-size: 15px;
  font-weight: 750;
  color: #0c3359;
  margin: 0;
}

body.dark .edu-card-title {
  color: #e2e8f0;
}

/* Card 1: Key Conclusion */
.edu-conclusion-body {
  display: grid;
  grid-template-columns: 1fr 115px;
  gap: 14px;
  align-items: center;
  height: 100%;
}

.edu-conclusion-lead {
  font-size: 13.5px;
  font-weight: 750;
  color: #0c3359;
  line-height: 1.35;
  margin: 0 0 8px;
}

body.dark .edu-conclusion-lead {
  color: #93c5fd;
}

.edu-conclusion-text {
  font-size: 11.5px;
  color: #52667d;
  line-height: 1.45;
  margin: 0;
}

body.dark .edu-conclusion-text {
  color: #94a3b8;
}

.edu-score-dial-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.edu-radial-gauge {
  position: relative;
  width: 96px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.edu-gauge-svg {
  width: 96px;
  height: 62px;
  overflow: visible;
}

.edu-gauge-inner {
  position: absolute;
  bottom: 2px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.edu-gauge-num {
  font-size: 22px;
  font-weight: 850;
  color: #0c3359;
  line-height: 1;
}

body.dark .edu-gauge-num {
  color: #f1f5f9;
}

.edu-gauge-denom {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
}

.edu-gauge-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #475569;
  margin: 4px 0 3px;
}

body.dark .edu-gauge-label {
  color: #cbd5e1;
}

.edu-gauge-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

body.dark .edu-gauge-badge {
  background: #14532d;
  color: #86efac;
  border-color: #166534;
}

/* Card 2: Top 3 Favourable Streams */
.edu-top3-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  justify-content: center;
  height: 100%;
}

.edu-top3-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 30px;
  gap: 10px;
  align-items: center;
}

.edu-rank-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
}

.edu-rank-1 { background: #0284c7; }
.edu-rank-2 { background: #10b981; }
.edu-rank-3 { background: #f59e0b; }

.edu-stream-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.edu-stream-name {
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dark .edu-stream-name {
  color: #93c5fd;
}

.edu-track {
  height: 8px;
  background: #e2effa;
  border-radius: 99px;
  overflow: hidden;
  width: 100%;
}

body.dark .edu-track {
  background: #1e293b;
}

.edu-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}

.edu-bar-blue { background: #0284c7; }
.edu-bar-green { background: #10b981; }
.edu-bar-amber { background: #f59e0b; }
.edu-bar-cyan { background: #06b6d4; }
.edu-bar-orange { background: #f97316; }

.edu-stream-score {
  font-size: 12px;
  font-weight: 800;
  color: #0284c7;
  text-align: right;
}

body.dark .edu-stream-score {
  color: #38bdf8;
}

/* Card 3: Other Streams */
.edu-other-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  justify-content: center;
  height: 100%;
}

.edu-other-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 28px 75px;
  gap: 8px;
  align-items: center;
}

.edu-other-name {
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dark .edu-other-name {
  color: #cbd5e1;
}

/* Row 2 Card 1: D1 · D9 · D24 Charts (Quick View) */
.edu-tab-pills {
  display: flex;
  align-items: center;
  gap: 5px;
}

.edu-tab-pill {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #0284c7;
  cursor: pointer;
  transition: all 0.15s ease;
}

body.dark .edu-tab-pill {
  background: #1e293b;
  border-color: #334155;
  color: #93c5fd;
}

.edu-tab-pill.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

body.dark .edu-tab-pill.active {
  background: #2563eb;
  border-color: #38bdf8;
  color: #ffffff;
}

.edu-charts-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

@media (max-width: 600px) {
  .edu-charts-trio { grid-template-columns: 1fr; }
}

.edu-mini-chart-box {
  background: #ffffff;
  border: 1px solid #dce8f5;
  border-radius: 10px;
  padding: 6px 6px 8px;
  text-align: center;
  transition: all 0.2s ease;
}

body.dark .edu-mini-chart-box {
  background: #1a2a44;
  border-color: #2a3d5e;
}

.edu-mini-chart-box:hover,
.edu-mini-chart-box.highlight {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.edu-mini-chart-head {
  font-size: 11px;
  font-weight: 750;
  color: #0c3359;
  margin-bottom: 4px;
}

body.dark .edu-mini-chart-head {
  color: #93c5fd;
}

.edu-mini-chart-svg-wrap {
  width: 100%;
  max-width: 165px;
  margin: 0 auto;
}

.edu-mini-chart-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.edu-mini-chart-foot {
  font-size: 10px;
  font-weight: 700;
  color: #334155;
  margin-top: 4px;
}

body.dark .edu-mini-chart-foot {
  color: #cbd5e1;
}

/* Row 2 Card 2: Key Education Indicators */
.edu-indicators-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edu-ind-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 4px 6px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.edu-ind-item:hover {
  background: #f8fafc;
}

body.dark .edu-ind-item:hover {
  background: #1a2a44;
}

.edu-ind-icon-box {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
}

body.dark .edu-ind-icon-box {
  background: #1e293b;
  border-color: #334155;
}

.edu-ind-copy {
  display: flex;
  flex-direction: column;
}

.edu-ind-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #0c3359;
  line-height: 1.2;
}

body.dark .edu-ind-title {
  color: #e2e8f0;
}

.edu-ind-desc {
  font-size: 10.5px;
  color: #52667d;
  line-height: 1.35;
  margin: 2px 0 0;
}

body.dark .edu-ind-desc {
  color: #94a3b8;
}

.edu-badge-strong,
.edu-badge-active {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  white-space: nowrap;
}

body.dark .edu-badge-strong,
body.dark .edu-badge-active {
  background: #14532d;
  color: #86efac;
  border-color: #166534;
}

.edu-badge-supportive {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
  white-space: nowrap;
}

body.dark .edu-badge-supportive {
  background: #1e3a8a;
  color: #7dd3fc;
  border-color: #2563eb;
}

/* Row 2 Card 3: Learning Profile Snapshot */
.edu-profile-meters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edu-prof-meter {
  display: flex;
  flex-direction: column;
}

.edu-prof-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #0c3359;
}

body.dark .edu-prof-head {
  color: #e2e8f0;
}

.edu-prof-val {
  font-weight: 800;
  color: #0284c7;
}

body.dark .edu-prof-val {
  color: #38bdf8;
}

.edu-prof-track {
  height: 6px;
  background: #e2effa;
  border-radius: 99px;
  overflow: hidden;
  margin: 3px 0;
}

body.dark .edu-prof-track {
  background: #1e293b;
}

.edu-prof-fill {
  background: #0284c7;
  height: 100%;
  border-radius: inherit;
  transition: width 0.3s ease;
}

.edu-prof-sub {
  font-size: 10.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.3;
}

body.dark .edu-prof-sub {
  color: #94a3b8;
}

.edu-learning-style-block {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #edf4fb;
}

body.dark .edu-learning-style-block {
  border-top-color: #243552;
}

.edu-style-title {
  font-size: 11.5px;
  font-weight: 750;
  color: #0c3359;
  margin: 0 0 7px;
  display: flex;
  align-items: center;
  gap: 5px;
}

body.dark .edu-style-title {
  color: #e2e8f0;
}

.edu-style-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.edu-style-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

body.dark .edu-style-chip {
  background: #1a2a44;
  border-color: #2a3d5e;
}

.edu-chip-icon {
  font-size: 15px;
  line-height: 1;
}

.edu-chip-label {
  font-size: 10px;
  font-weight: 700;
  color: #1e293b;
}

body.dark .edu-chip-label {
  color: #cbd5e1;
}

/* Row 3 Card 1: D24 Learning Axes (Housewise) */
.edu-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.edu-axes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.edu-axes-table th {
  background: #f0f7fe;
  color: #0c3359;
  padding: 7px 8px;
  text-align: left;
  font-weight: 750;
  border-bottom: 1px solid #dce8f5;
  font-size: 11px;
}

body.dark .edu-axes-table th {
  background: #1a2a44;
  color: #93c5fd;
  border-bottom-color: #2a3d5e;
}

.edu-axes-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #edf4fb;
  color: #334155;
  vertical-align: top;
  line-height: 1.35;
}

body.dark .edu-axes-table td {
  border-bottom-color: #243552;
  color: #cbd5e1;
}

.edu-axes-table tr:last-child td {
  border-bottom: none;
}

.edu-axes-table .td-h {
  font-weight: 800;
  color: #0284c7;
}

body.dark .edu-axes-table .td-h {
  color: #38bdf8;
}

.edu-axes-table .td-sign {
  font-weight: 600;
  color: #0c3359;
}

body.dark .edu-axes-table .td-sign {
  color: #e2e8f0;
}

.edu-axes-table .td-lord {
  color: #475569;
}

body.dark .edu-axes-table .td-lord {
  color: #94a3b8;
}

/* Row 3 Card 2: 5th-lord Nakshatra & D9 Chain */
.edu-chain-flow {
  display: flex;
  align-items: stretch;
  gap: 6px;
  height: 100%;
}

@media (max-width: 680px) {
  .edu-chain-flow { flex-direction: column; }
  .edu-chain-arrow-icon { transform: rotate(90deg); align-self: center; }
}

.edu-chain-card {
  flex: 1;
  padding: 9px 10px;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.edu-chain-step1 {
  background: #f0f7fe;
  border: 1px solid #d4e7f8;
}

body.dark .edu-chain-step1 {
  background: #142338;
  border-color: #1e3a8a;
}

.edu-chain-step2 {
  background: #effaf4;
  border: 1px solid #d0f0e0;
}

body.dark .edu-chain-step2 {
  background: #0f2c24;
  border-color: #115e59;
}

.edu-chain-step3 {
  background: #ffffff;
  border: 1px solid #d4e7f8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

body.dark .edu-chain-step3 {
  background: #1a2a44;
  border-color: #2a3d5e;
}

.edu-chain-step-title {
  font-size: 10.5px;
  font-weight: 800;
  margin-bottom: 4px;
}

.edu-chain-step1 .edu-chain-step-title { color: #0284c7; }
.edu-chain-step2 .edu-chain-step-title { color: #0d9488; }
.edu-chain-step3 .edu-chain-step-title { color: #0c3359; }

body.dark .edu-chain-step1 .edu-chain-step-title { color: #38bdf8; }
body.dark .edu-chain-step2 .edu-chain-step-title { color: #2dd4bf; }
body.dark .edu-chain-step3 .edu-chain-step-title { color: #93c5fd; }

.edu-chain-step-text {
  font-size: 10.5px;
  color: #475569;
  line-height: 1.38;
  margin: 0;
}

body.dark .edu-chain-step-text {
  color: #cbd5e1;
}

.edu-chain-arrow-icon {
  align-self: center;
  color: #0284c7;
  font-weight: 800;
  font-size: 15px;
}

.edu-chain-target-icon {
  margin-top: 6px;
  font-size: 18px;
  text-align: center;
}

/* Row 3 Card 3: Jaimini Education Sutras */
.edu-badge-coral {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
}

body.dark .edu-badge-coral {
  background: #7f1d1d;
  color: #fca5a5;
  border-color: #991b1b;
}

.edu-sutra-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: #334155;
  line-height: 1.35;
}

body.dark .edu-sutra-bullets {
  color: #cbd5e1;
}

.edu-sutra-bullets li {
  position: relative;
  padding-left: 13px;
}

.edu-sutra-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #0284c7;
  font-weight: 800;
}

body.dark .edu-sutra-bullets li::before {
  color: #38bdf8;
}

.edu-sutra-bullets li.edu-sutra-pk {
  font-weight: 750;
  color: #0c3359;
  background: #f8fafc;
  padding: 3px 6px 3px 14px;
  border-radius: 6px;
  border-left: 2px solid #0284c7;
}

body.dark .edu-sutra-bullets li.edu-sutra-pk {
  background: #1a2a44;
  color: #93c5fd;
  border-left-color: #38bdf8;
}

.edu-sutra-footer {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #edf4fb;
}

body.dark .edu-sutra-footer {
  border-top-color: #243552;
}

.edu-sutra-link {
  background: none;
  border: none;
  color: #0284c7;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.dark .edu-sutra-link {
  color: #38bdf8;
}

.edu-sutra-link:hover {
  text-decoration: underline;
}

.edu-sutra-expandable {
  margin-top: 10px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 11px;
}

body.dark .edu-sutra-expandable {
  background: #1e293b;
  border-color: #334155;
}

/* Guidance & Remedies Section (Activated by Top Nav Pill) */
.edu-remedies-section {
  background: #ffffff;
  border: 1px solid #dce8f5;
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 16px;
  box-shadow: 0 2px 10px rgba(15, 76, 129, 0.04);
}

body.dark .edu-remedies-section {
  background: #152238;
  border-color: #243552;
}

.edu-remedies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .edu-remedies-grid { grid-template-columns: 1fr; }
}

.edu-remedy-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
}

body.dark .edu-remedy-card {
  background: #1a2a44;
  border-color: #2a3d5e;
}

.edu-remedy-card h4 {
  font-size: 13px;
  font-weight: 750;
  color: #0c3359;
  margin: 0 0 6px;
}

body.dark .edu-remedy-card h4 {
  color: #93c5fd;
}

.edu-remedy-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 11.5px;
  color: #334155;
  line-height: 1.45;
}

body.dark .edu-remedy-card ul {
  color: #cbd5e1;
}

/* Sub-tabs inside cards (Planets/Rasis/Houses..., D1/D9/D10..., Current/Next...) */
.cip-subtabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

body.dark .cip-subtabs {
  background: #142238;
}

.cip-subtab-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

body.dark .cip-subtab-btn {
  color: #94a3b8;
}

.cip-subtab-btn:hover {
  color: #1e293b;
}

body.dark .cip-subtab-btn:hover {
  color: #f1f5f9;
}

.cip-subtab-btn.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.2);
}

body.dark .cip-subtab-btn.active {
  background: #3b82f6;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Card 1: Career Direction Summary
   -------------------------------------------------------------------------- */
.cip-summary-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: #334155;
  margin: 0 0 14px;
}

body.dark .cip-summary-text {
  color: #cbd5e1;
}

.cip-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.cip-tag {
  padding: 4px 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #1d4ed8;
}

body.dark .cip-tag {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.3);
  color: #93c5fd;
}

/* --------------------------------------------------------------------------
   Card 2: Relevant Charts
   -------------------------------------------------------------------------- */
.cip-chart-frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 280px;
}

.cip-chart-frame .chart-svg-box {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.cip-chart-frame .astro-chart-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cip-chart-frame .chart-action-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.cip-chart-frame .btn-chart-action {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  cursor: pointer;
}

body.dark .cip-chart-frame .btn-chart-action {
  background: #142238;
  border-color: rgba(139, 160, 184, 0.25);
  color: #cbd5e1;
}

.cip-chart-frame .btn-chart-action.btn-chart-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.cip-lagna-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: #1e3a8a;
  text-align: center;
  margin: 6px 0 2px;
}

body.dark .cip-lagna-badge {
  color: #93c5fd;
}

/* --------------------------------------------------------------------------
   Card 3: Key Career Indicators
   -------------------------------------------------------------------------- */
.cip-indicators-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.cip-indicator-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  transition: all 0.15s ease;
}

body.dark .cip-indicator-row {
  background: #121e33;
  border-color: rgba(139, 160, 184, 0.12);
}

.cip-indicator-row:hover {
  background: #f1f5f9;
}

body.dark .cip-indicator-row:hover {
  background: #172844;
}

.cip-indicator-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.cip-ind-karma { background: #fef3c7; color: #d97706; }
.cip-ind-lord { background: #e0f2fe; color: #0284c7; }
.cip-ind-sun { background: #fff7ed; color: #ea580c; }
.cip-ind-mercury { background: #dcfce7; color: #16a34a; }
.cip-ind-venus { background: #fce7f3; color: #db2777; }
.cip-ind-mars { background: #fee2e2; color: #dc2626; }

body.dark .cip-ind-karma { background: rgba(217, 119, 6, 0.2); color: #fbbf24; }
body.dark .cip-ind-lord { background: rgba(2, 132, 199, 0.2); color: #38bdf8; }
body.dark .cip-ind-sun { background: rgba(234, 88, 12, 0.2); color: #fb923c; }
body.dark .cip-ind-mercury { background: rgba(22, 163, 74, 0.2); color: #4ade80; }
body.dark .cip-ind-venus { background: rgba(219, 39, 119, 0.2); color: #f472b6; }
body.dark .cip-ind-mars { background: rgba(220, 38, 38, 0.2); color: #f87171; }

.cip-indicator-info {
  flex: 1;
  min-width: 0;
}

.cip-indicator-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
}

body.dark .cip-indicator-name {
  color: #f1f5f9;
}

.cip-indicator-sub {
  font-size: 11px;
  color: #64748b;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dark .cip-indicator-sub {
  color: #94a3b8;
}

/* Status Pills */
.cip-pill {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.2px;
}

.cip-pill-strong {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.cip-pill-supportive {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.cip-pill-moderate {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.cip-pill-active {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.cip-pill-activenow {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

body.dark .cip-pill-strong {
  background: rgba(22, 163, 74, 0.2);
  color: #4ade80;
  border-color: rgba(22, 163, 74, 0.35);
}

body.dark .cip-pill-supportive {
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border-color: rgba(2, 132, 199, 0.35);
}

body.dark .cip-pill-moderate {
  background: rgba(217, 119, 6, 0.2);
  color: #fbbf24;
  border-color: rgba(217, 119, 6, 0.35);
}

body.dark .cip-pill-active {
  background: rgba(22, 163, 74, 0.2);
  color: #4ade80;
  border-color: rgba(22, 163, 74, 0.35);
}

body.dark .cip-pill-activenow {
  background: rgba(194, 65, 12, 0.2);
  color: #fb923c;
  border-color: rgba(194, 65, 12, 0.35);
}

/* --------------------------------------------------------------------------
   Card 4: Dasha & Transit Impact (Career)
   -------------------------------------------------------------------------- */
.cip-timeline-wrap {
  position: relative;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.cip-timeline-line {
  position: absolute;
  left: 9px;
  top: 14px;
  bottom: 24px;
  width: 2px;
  background: #cbd5e1;
}

body.dark .cip-timeline-line {
  background: #334155;
}

.cip-timeline-node {
  position: relative;
  display: flex;
  flex-direction: column;
}

.cip-timeline-dot {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #22c55e;
  box-sizing: border-box;
}

.cip-timeline-dot-orange {
  border-color: #f97316;
}

body.dark .cip-timeline-dot {
  background: #0f1a2e;
}

.cip-timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.cip-timeline-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

body.dark .cip-timeline-title {
  color: #f1f5f9;
}

.cip-timeline-date {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 5px;
}

body.dark .cip-timeline-date {
  color: #94a3b8;
}

.cip-timeline-desc {
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 8px 10px;
}

body.dark .cip-timeline-desc {
  background: #121e33;
  border-color: rgba(139, 160, 184, 0.12);
  color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   Card 5: Career Significations
   -------------------------------------------------------------------------- */
.cip-signif-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.cip-signif-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  font-size: 12px;
  line-height: 1.4;
}

body.dark .cip-signif-row {
  background: #121e33;
  border-color: rgba(139, 160, 184, 0.12);
}

.cip-signif-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.cip-signif-name {
  font-weight: 700;
  color: #1e293b;
  width: 60px;
  flex-shrink: 0;
}

body.dark .cip-signif-name {
  color: #f1f5f9;
}

.cip-signif-desc {
  color: #475569;
  flex: 1;
}

body.dark .cip-signif-desc {
  color: #cbd5e1;
}

/* --------------------------------------------------------------------------
   Card 6: Recommended Career Paths
   -------------------------------------------------------------------------- */
.cip-paths-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.cip-path-card,
details.cip-path-card {
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 10px;
  background: var(--paper, #ffffff);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  display: block;
}

body.dark .cip-path-card,
body.dark details.cip-path-card {
  background: var(--paper, #111d30);
  border-color: var(--line, rgba(139, 160, 184, 0.18));
}

.cip-path-card:hover,
details.cip-path-card:hover {
  border-color: var(--gold, #93c5fd);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

body.dark .cip-path-card:hover,
body.dark details.cip-path-card:hover {
  border-color: var(--gold, rgba(59, 130, 246, 0.4));
}

.cip-path-row,
details.cip-path-card > summary.cip-path-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  background: transparent;
  transition: background 0.15s ease;
  list-style: none;
}

details.cip-path-card > summary.cip-path-row::-webkit-details-marker,
details.cip-path-card > summary.cip-path-row::marker {
  display: none;
  content: "";
}

.cip-path-row:hover,
details.cip-path-card > summary.cip-path-row:hover {
  background: var(--soft, #f8fafc);
}

body.dark .cip-path-row:hover,
body.dark details.cip-path-card > summary.cip-path-row:hover {
  background: var(--soft, #15243c);
}

.cip-path-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.cip-picon-blue { background: #e0f2fe; color: #0284c7; }
.cip-picon-purple { background: #ede9fe; color: #7c3aed; }
.cip-picon-green { background: #dcfce7; color: #16a34a; }
.cip-picon-orange { background: #ffedd5; color: #ea580c; }
.cip-picon-red { background: #fee2e2; color: #dc2626; }
.cip-picon-pink { background: #fce7f3; color: #db2777; }

body.dark .cip-picon-blue { background: rgba(2, 132, 199, 0.2); color: #38bdf8; }
body.dark .cip-picon-purple { background: rgba(124, 58, 237, 0.2); color: #a78bfa; }
body.dark .cip-picon-green { background: rgba(22, 163, 74, 0.2); color: #4ade80; }
body.dark .cip-picon-orange { background: rgba(234, 88, 12, 0.2); color: #fb923c; }
body.dark .cip-picon-red { background: rgba(220, 38, 38, 0.2); color: #f87171; }
body.dark .cip-picon-pink { background: rgba(219, 39, 119, 0.2); color: #f472b6; }

.cip-path-info {
  flex: 1;
  min-width: 0;
}

.cip-path-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #1e293b);
  line-height: 1.25;
}

body.dark .cip-path-title {
  color: var(--ink, #f1f5f9);
}

.cip-path-sub {
  font-size: 11px;
  color: var(--muted, #64748b);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.dark .cip-path-sub {
  color: var(--muted, #94a3b8);
}

.cip-path-arrow {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted, #94a3b8);
  margin-left: auto;
  transition: transform 0.2s ease, color 0.15s ease;
  display: inline-block;
  line-height: 1;
}

details.cip-path-card[open] .cip-path-arrow,
.cip-path-card.open .cip-path-arrow {
  transform: rotate(90deg);
  color: var(--navy2, #2563eb);
}

body.dark details.cip-path-card[open] .cip-path-arrow,
body.dark .cip-path-card.open .cip-path-arrow {
  color: var(--gold, #60a5fa);
}

/* Expanded Detail Box — Beautiful theme-matched readable card */
.cip-path-detail {
  display: none;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.55;
  background: var(--paper2, #f8fbff);
  border-top: 1px solid var(--line-subtle, #e2e8f0);
  color: var(--ink, #1e293b);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.02);
}

body:not(.dark) .cip-path-detail {
  background: #f8fbff;
  border-top: 1px solid #e2e8f0;
  color: #1e293b;
}

body.dark .cip-path-detail {
  background: var(--soft, #15243c);
  border-top-color: var(--line, rgba(59, 130, 246, 0.25));
  color: var(--ink, #f1f5f9);
}

details.cip-path-card[open] > .cip-path-detail,
.cip-path-card.open .cip-path-detail {
  display: block;
  animation: cipSlideDown 0.18s ease;
}

@keyframes cipSlideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.cip-path-detail-core {
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 4px;
  display: block;
  font-size: 12px;
}

body.dark .cip-path-detail-core {
  color: var(--gold, #60a5fa);
}

.cip-path-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.cip-path-detail-tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--paper3, #e0f2fe);
  color: #0369a1;
  border: 1px solid var(--line, #bae6fd);
}

body.dark .cip-path-detail-tag {
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border-color: rgba(2, 132, 199, 0.35);
}

/* ==========================================================================
   Deep Analysis Panel & Research Desk Section (Preserving Full Tech Core)
   ========================================================================== */
.cip-deep-section {
  margin-top: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

body.dark .cip-deep-section {
  background: #0f1a2e;
  border-color: rgba(139, 160, 184, 0.18);
}

.cip-deep-summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 13.5px;
  color: #1e3a8a;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.dark .cip-deep-summary {
  color: #93c5fd;
  background: #121e33;
}

.cip-deep-content {
  padding: 18px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #334155;
}

body.dark .cip-deep-content {
  color: #cbd5e1;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1180px) {
  .cip-kpis-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cip-dash-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .cip-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .cip-native-pill {
    width: 100%;
  }
  .cip-kpis-grid {
    grid-template-columns: 1fr;
  }
  .cip-dash-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Transformed Education Guidance Components & Responsive Grids
   ========================================================================== */
.edu-view-panel {
  transition: opacity 0.25s ease;
}

.edu-dasha-pill-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  margin-top: 6px;
}
body.dark .edu-dasha-pill-banner {
  background: #1e3a8a;
  border-color: #2563eb;
  color: #93c5fd;
}

/* Stream Cards Grid */
.edu-stream-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 10px;
}
@media (max-width: 992px) {
  .edu-stream-cards-grid {
    grid-template-columns: 1fr;
  }
}

.edu-stream-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
body.dark .edu-stream-card {
  background: #1a2a44;
  border-color: #2a3d5e;
}
.edu-stream-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
body.dark .edu-stream-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.edu-stream-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.edu-stream-rank-pill {
  font-size: 10.5px;
  font-weight: 800;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 99px;
}
.edu-stream-score-badge {
  font-size: 12px;
  font-weight: 800;
  color: #0284c7;
}
body.dark .edu-stream-score-badge {
  color: #38bdf8;
}
.edu-stream-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #0c3359;
  margin: 0;
  line-height: 1.3;
}
body.dark .edu-stream-card-title {
  color: #f1f5f9;
}
.edu-stream-spec-block {
  margin-bottom: 12px;
}
.edu-spec-label {
  font-size: 11px;
  font-weight: 750;
  color: #475569;
  margin-bottom: 6px;
}
body.dark .edu-spec-label {
  color: #94a3b8;
}
.edu-subfields-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.edu-subfield-pill {
  font-size: 10.5px;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #dce8f5;
  color: #1e3a8a;
  padding: 2px 7px;
  border-radius: 6px;
  line-height: 1.3;
}
body.dark .edu-subfield-pill {
  background: #0f172a;
  border-color: #334155;
  color: #93c5fd;
}
.edu-stream-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}
body.dark .edu-stream-meta-grid {
  border-top-color: #2a3d5e;
}
.edu-meta-cell {
  font-size: 11px;
  line-height: 1.38;
  color: #475569;
}
body.dark .edu-meta-cell {
  color: #cbd5e1;
}
.edu-meta-cell b {
  color: #0c3359;
  display: block;
  font-size: 11px;
  margin-bottom: 2px;
}
body.dark .edu-meta-cell b {
  color: #e2e8f0;
}
.edu-meta-cell p {
  margin: 0;
}

/* Dynamic House-by-House Grid */
.edu-house-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 900px) {
  .edu-house-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .edu-house-grid {
    grid-template-columns: 1fr;
  }
}
.edu-house-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}
body.dark .edu-house-card {
  background: #1a2a44;
  border-color: #2a3d5e;
}
.edu-house-card:hover {
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.1);
}
.edu-house-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.edu-house-badge {
  font-size: 11px;
  font-weight: 800;
  color: #0284c7;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 2px 8px;
  border-radius: 6px;
}
body.dark .edu-house-badge {
  background: #1e3a8a;
  border-color: #2563eb;
  color: #93c5fd;
}
.edu-house-theme {
  font-size: 11px;
  font-weight: 750;
  color: #475569;
}
body.dark .edu-house-theme {
  color: #cbd5e1;
}
.edu-house-meta {
  font-size: 11.5px;
  color: #0c3359;
  margin-bottom: 4px;
}
body.dark .edu-house-meta {
  color: #f1f5f9;
}
.edu-house-occupants {
  font-size: 11px;
  color: #15803d;
  margin-bottom: 6px;
}
body.dark .edu-house-occupants {
  color: #86efac;
}
.edu-house-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.38;
  margin: 0;
}
body.dark .edu-house-desc {
  color: #94a3b8;
}

/* Location Grid */
.edu-location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 800px) {
  .edu-location-grid {
    grid-template-columns: 1fr;
  }
}
.edu-location-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
}
body.dark .edu-location-card {
  background: #1a2a44;
  border-color: #2a3d5e;
}
.edu-loc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.edu-loc-title {
  font-size: 13px;
  font-weight: 800;
  color: #0c3359;
}
body.dark .edu-loc-title {
  color: #f1f5f9;
}
.edu-loc-score {
  font-size: 11.5px;
  color: #0284c7;
  font-weight: 750;
  margin-bottom: 6px;
}
body.dark .edu-loc-score {
  color: #38bdf8;
}
.edu-loc-evidence {
  font-size: 11px;
  color: #475569;
  line-height: 1.4;
  margin: 0;
}
body.dark .edu-loc-evidence {
  color: #cbd5e1;
}

/* Large Cognitive Style Cards */
.edu-style-chips-large {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 800px) {
  .edu-style-chips-large {
    grid-template-columns: 1fr;
  }
}
.edu-style-chip-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
}
body.dark .edu-style-chip-card {
  background: #1a2a44;
  border-color: #2a3d5e;
}
.edu-chip-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.edu-chip-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #0c3359;
}
body.dark .edu-chip-title {
  color: #f1f5f9;
}
.edu-chip-desc {
  font-size: 11px;
  color: #475569;
  line-height: 1.4;
  margin: 0;
}
body.dark .edu-chip-desc {
  color: #cbd5e1;
}

.edu-study-hacks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}
@media (max-width: 768px) {
  .edu-study-hacks-grid {
    grid-template-columns: 1fr;
  }
}
.edu-hack-item {
  font-size: 11px;
  color: #334155;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  line-height: 1.35;
}
body.dark .edu-hack-item {
  background: #142338;
  border-color: #1e3a8a;
  color: #cbd5e1;
}
.edu-hack-item b {
  color: #0284c7;
  display: block;
  margin-bottom: 2px;
}
body.dark .edu-hack-item b {
  color: #38bdf8;
}

/* Vastu Grid */
.edu-vastu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 800px) {
  .edu-vastu-grid {
    grid-template-columns: 1fr;
  }
}
.edu-vastu-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
}
body.dark .edu-vastu-card {
  background: #1a2a44;
  border-color: #2a3d5e;
}
.edu-vastu-icon {
  font-size: 22px;
  margin-bottom: 6px;
}
.edu-vastu-card b {
  display: block;
  font-size: 12.5px;
  color: #0c3359;
  margin-bottom: 4px;
}
body.dark .edu-vastu-card b {
  color: #f1f5f9;
}
.edu-vastu-card p {
  font-size: 11px;
  color: #475569;
  line-height: 1.4;
  margin: 0;
}
body.dark .edu-vastu-card p {
  color: #cbd5e1;
}

.edu-pk-avatar {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 4px;
}

.edu-sutra-detail-box {
  margin-top: 12px;
  padding: 14px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
body.dark .edu-sutra-detail-box {
  background: #1e293b;
  border-color: #334155;
}

.edu-mini-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: #0284c7;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 2px 7px;
  border-radius: 5px;
  margin-right: 5px;
  margin-bottom: 4px;
}
body.dark .edu-mini-tag {
  background: #1e3a8a;
  border-color: #2563eb;
  color: #93c5fd;
}
