/* ============================================================
   RVIBS Course Recommender — Custom Portal Design
   Colors: Deep Teal (#0f4c5c) + Fuchsia (#e91e8c) on Warm Cream
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=DM+Serif+Display&display=swap');

:root {
  /* Colors from Screenshots */
  --primary-teal: #0f4c5c;
  --primary-teal-dark: #0a333d;
  --primary-teal-light: #eaf2f4;
  --accent-fuchsia: #e91e8c;
  --accent-fuchsia-hover: #c41876;
  --bg-pink: #fce4f1;
  --bg-cream: #faf6f0;
  
  --ink-900: #0a2e38;
  --ink-700: #2c4e57;
  --ink-500: #597d86;
  --ink-300: #a3bec5;
  --ink-100: #e5edf0;
  --white: #ffffff;
  
  /* Status Colors */
  --success: #15803d;
  --success-bg: #dcfce7;
  --warning: #b45309;
  --warning-bg: #fef3c7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  
  /* Layout tokens */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 4px rgba(15,76,92,0.05);
  --shadow-md: 0 4px 16px rgba(15,76,92,0.08);
  --shadow-lg: 0 12px 32px rgba(15,76,92,0.12);
  
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
}

/* ── Reset & Base ──────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--ink-900);
  background-color: var(--bg-cream);
  min-height: 100vh;
  line-height: 1.5;
}

/* ── Portal Header (Screenshot Mockup) ───────────────────────── */
.portal-header {
  background-color: var(--primary-teal);
  color: var(--white);
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

.header-left .logo {
  height: 40px;
  width: auto;
}

.brand-name {
  font-family: 'Cooper Black', serif;
  font-size: var(--text-xl);
  line-height: 1;
}

.brand-tag {
  font-size: var(--text-xs);
  color: var(--bg-pink);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-search-mockup {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 4px 16px;
  gap: 12px;
  flex: 0 1 450px;
}

.header-select-mock {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.search-input-wrapper input {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: var(--text-sm);
  width: 100%;
  outline: none;
}

.search-input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--accent-fuchsia);
}

/* ── Header Navigation Dropdowns ─────────────────────────── */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown .nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff !important;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  display: none;
  z-index: 999;
  animation: dropdownIn 0.2s ease-out forwards;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700 !important;
  color: #1a2533 !important;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.dropdown-item:hover {
  background: #fce4f1 !important;
  color: #e91e8c !important;
}

.btn-login-mock {
  background-color: var(--white);
  color: var(--primary-teal);
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
}

.btn-get-started {
  background-color: var(--accent-fuchsia);
  color: var(--white);
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-get-started:hover {
  background-color: var(--accent-fuchsia-hover);
}

/* ── Container Layout ──────────────────────────────────────── */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  min-height: calc(100vh - 64px);
}

.screen {
  display: none;
  animation: screenIn 0.35s ease-out forwards;
}

.screen.active {
  display: block;
}

@keyframes screenIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Screen 1: Welcome Hero (Picture 1 Mockup) ────────────────── */
#screenLanding {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
}

.hero-slideshow-wrapper {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  border-radius: 0 !important;
  overflow: hidden;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  min-height: calc(100vh - 120px) !important;
  display: flex;
  align-items: center;
}

.hero-slideshow-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: none !important;
  outline: none !important;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-color: var(--primary-teal-dark);
  border: none !important;
  outline: none !important;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay-card {
  position: relative;
  z-index: 2;
  background: rgba(15, 76, 92, 0.38) !important;
  backdrop-filter: blur(14px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
  padding: 80px 48px !important;
  border-radius: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border: none !important;
  min-height: calc(100vh - 120px) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.hero-content-glass {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  flex: 1;
}

.glass-portal-card {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-radius: 0 !important;
  border: none !important;
  border-top: none !important;
  outline: none !important;
  box-shadow: none !important;
  overflow: visible;
  transition: none !important;
}

.glass-portal-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

.glass-portal-card .portal-card-header {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none !important;
  padding: 0 0 20px 0 !important;
}

.glass-portal-card .portal-card-header h3 {
  color: #ffffff !important;
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85) !important;
  margin-bottom: 8px !important;
}

.glass-portal-card .portal-card-header p {
  color: #ffffff !important;
  font-size: 1.02rem !important;
  font-weight: 600 !important;
  line-height: 1.55 !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.80) !important;
}

.glass-portal-card .portal-card-body {
  background: transparent !important;
  padding: 0 !important;
}

.hero-slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border: 1.5px solid var(--ink-200);
  color: var(--primary-teal-dark);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.hero-slide-arrow:hover {
  background: var(--accent-fuchsia);
  border-color: var(--accent-fuchsia);
  transform: translateY(-50%) scale(1.08);
}

.hero-slide-arrow.prev { left: 16px; }
.hero-slide-arrow.next { right: 16px; }

.hero-slide-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-slide-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-slide-dots .dot.active {
  width: 28px;
  border-radius: 100px;
  background: var(--accent-fuchsia);
}

.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 24px;
  background: linear-gradient(135deg, var(--bg-pink) 0%, #ffffff 100%);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  gap: 40px;
}

.hero-content {
  flex: 1;
}

.badge-row {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.fuchsia-badge {
  background-color: var(--accent-fuchsia);
  color: var(--white);
  padding: 6px 16px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.hero-content h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 3.5rem;
  color: var(--primary-teal-dark);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-content h1 .highlight {
  color: var(--accent-fuchsia);
  border-bottom: 3px solid var(--primary-teal);
}

.hero-content .subtitle {
  font-size: var(--text-lg);
  color: var(--ink-700);
  max-width: 520px;
  line-height: 1.6;
}

.hero-card-wrapper {
  flex: 0 0 420px;
}

.portal-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ink-100);
  overflow: hidden;
}

.portal-card-header {
  background-color: var(--primary-teal-light);
  padding: 24px;
  border-bottom: 1px solid var(--ink-100);
}

.portal-card-header h3 {
  font-family: 'DM Serif Display', serif;
  color: var(--primary-teal);
  font-size: var(--text-xl);
  margin-bottom: 6px;
}

.portal-card-header p {
  font-size: var(--text-sm);
  color: var(--ink-700);
}

.portal-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 14px;
}

.feat-icon {
  font-size: 1.75rem;
}

.feature-item strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--ink-900);
  margin-bottom: 2px;
}

.feat-desc {
  font-size: var(--text-xs);
  color: var(--ink-500);
}

.btn-primary {
  background-color: var(--accent-fuchsia);
  color: var(--white);
  border: none;
  width: 100%;
  padding: 16px;
  font-size: var(--text-md);
  font-weight: 700;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  box-shadow: 0 4px 12px rgba(233,30,140,0.2);
}

.btn-primary:hover {
  background-color: var(--accent-fuchsia-hover);
  transform: translateY(-2px);
}

.btn-primary:disabled {
  background-color: var(--ink-300);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* ── Button Shake Micro-Animation ────────────────────────────── */
@keyframes buttonShake {
  0%, 80%, 100% {
    transform: translateX(0);
    box-shadow: 0 4px 14px rgba(233, 30, 140, 0.35);
  }
  82%, 90% {
    transform: translateX(-6px);
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.55);
  }
  84%, 92% {
    transform: translateX(6px);
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.55);
  }
  86%, 94% {
    transform: translateX(-3px);
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.55);
  }
  88%, 96% {
    transform: translateX(3px);
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.55);
  }
  98% {
    transform: translateX(0) scale(1.02);
    box-shadow: 0 8px 24px rgba(233, 30, 140, 0.65);
  }
}

.btn-shake {
  animation: buttonShake 5.2s infinite ease-in-out;
}

.btn-shake:hover {
  animation-play-state: paused;
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 10px 28px rgba(233, 30, 140, 0.70) !important;
}

/* ── Screen Common Step Header ────────────────────────────── */
.step-progress {
  max-width: 580px;
  margin: 40px auto 20px;
  padding: 0 20px;
}

.step-label {
  font-size: var(--text-xs);
  color: var(--accent-fuchsia);
  font-weight: 700;
  text-transform: uppercase;
}

.step-title {
  font-family: 'DM Serif Display', serif;
  font-size: var(--text-2xl);
  color: var(--primary-teal);
  margin-bottom: 12px;
}

.progress-track {
  display: flex;
  gap: 6px;
}

.progress-segment {
  flex: 1;
  height: 4px;
  background-color: var(--ink-100);
  border-radius: var(--radius-full);
}

.progress-segment.active {
  background-color: var(--accent-fuchsia);
}

.progress-segment.done {
  background-color: var(--primary-teal);
}

/* ── Cards / Inputs ────────────────────────────────────────── */
.screen-body {
  max-width: 580px;
  margin: 0 auto;
  padding: 20px;
}

.screen-body-wide {
  max-width: 980px;
}

.card {
  background-color: var(--white);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.card-label {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--primary-teal-dark);
  margin-bottom: 6px;
}

.card-hint {
  font-size: var(--text-xs);
  color: var(--ink-500);
  margin-bottom: 16px;
}

/* Chips grids */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip, .subject-chip {
  background-color: var(--white);
  border: 1.5px solid var(--ink-100);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover, .subject-chip:hover {
  border-color: var(--primary-teal);
  color: var(--primary-teal);
}

.chip.selected, .subject-chip.selected {
  background-color: var(--primary-teal);
  border-color: var(--primary-teal);
  color: var(--white);
}

/* Dynamic grade entry rows */
.grade-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink-100);
}

.grade-row:last-child {
  border-bottom: none;
}

.subject-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-700);
}

.grade-select {
  padding: 6px 12px;
  border: 1.5px solid var(--ink-300);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  outline: none;
}

/* ── Dynamic RIASEC Likert scale ────────────────────────────── */
.question-card-riasec {
  margin-bottom: 20px;
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  background-color: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.question-card-riasec:hover {
  border-color: var(--ink-300);
  box-shadow: var(--shadow-md);
}

.riasec-q-text {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--primary-teal-dark);
  margin-bottom: 18px;
}

.likert-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: 100%;
}

.likert-btn {
  padding: 12px 6px;
  border: 1.5px solid var(--ink-100);
  background-color: var(--white);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-700);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}

.likert-btn:hover {
  border-color: var(--primary-teal);
  background-color: var(--primary-teal-light);
}

/* Likert Selection Color Highlights (Strongly Dislike to Strongly Like) */
.likert-btn.selected.btn-opt-0 {
  border-color: #dc2626;
  background-color: #fee2e2;
  color: #dc2626;
}

.likert-btn.selected.btn-opt-1 {
  border-color: #ea580c;
  background-color: #ffedd5;
  color: #ea580c;
}

.likert-btn.selected.btn-opt-2 {
  border-color: #4b5563;
  background-color: #f3f4f6;
  color: #4b5563;
}

.likert-btn.selected.btn-opt-3 {
  border-color: #16a34a;
  background-color: #dcfce7;
  color: #16a34a;
}

.likert-btn.selected.btn-opt-4 {
  border-color: var(--accent-fuchsia);
  background-color: var(--bg-pink);
  color: var(--accent-fuchsia);
}

@media (max-width: 600px) {
  .likert-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .likert-btn {
    padding: 14px 10px;
    font-size: 0.85rem;
  }
}

.spark-chip {
  background-color: var(--white);
  border: 1.5px solid var(--ink-100);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.spark-chip:hover {
  border-color: var(--primary-teal);
}

.spark-chip.selected {
  border-color: var(--accent-fuchsia);
  background-color: var(--bg-pink);
  color: var(--ink-900);
}

.cta-container {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* ── Screen 5: Portal Results Layout (Picture 2 Mockup) ───────── */
.results-portal-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 40px 24px;
}

/* ── Department Select Dropdown ────────────────────────────── */
.department-filter-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
  margin-bottom: 8px; /* Spacing above the education level tabs */
}

.dropdown-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-500);
}

.department-select {
  width: 100%;
  padding: 10px 16px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-700);
  background-color: var(--white);
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-md);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none; /* Remove default browser arrow */
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 36px;
}

.department-select:focus {
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

/* Main content area */
.portal-results-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Credibility Banner */
.credibility-card {
  background-color: var(--white);
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.cred-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: 8px;
}

.cred-badge {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
}

.cred-consistent {
  background-color: var(--success-bg);
  color: var(--success);
}

.cred-minor {
  background-color: var(--warning-bg);
  color: var(--warning);
}

.cred-inconsistent {
  background-color: var(--danger-bg);
  color: var(--danger);
  animation: pulseWarning 2s infinite;
}

@keyframes pulseWarning {
  0% { box-shadow: 0 0 0 0 rgba(220,38,38,0.4); }
  70% { box-shadow: 0 0 0 6px rgba(220,38,38,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}

.cred-msg {
  font-size: var(--text-sm);
  color: var(--ink-700);
  line-height: 1.4;
}

/* Portal Tabs and search row */
.portal-results-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-bottom: 1.5px solid var(--ink-100);
  padding-bottom: 16px;
}

.portal-tabs {
  display: flex;
  gap: 10px;
}

.tab-btn {
  border: none;
  background-color: var(--ink-100);
  color: var(--ink-700);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  background-color: var(--primary-teal-light);
  color: var(--primary-teal);
}

.tab-btn.active {
  background-color: var(--accent-fuchsia);
  color: var(--white);
}

.tab-btn.disabled-tab {
  opacity: 0.35;
  cursor: not-allowed;
}

.tab-btn.disabled-tab:hover {
  background-color: var(--ink-100);
  color: var(--ink-700);
}

.results-search-mock input {
  padding: 8px 16px;
  border: 1.5px solid var(--ink-300);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  outline: none;
  width: 200px;
}

/* Vertical Course recommendation List (Wide Horizontal Cards) */
.portal-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portal-course-card {
  background-color: var(--white);
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}

.portal-course-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink-300);
}

.card-thumbnail-container {
  width: 120px;
  height: 120px;
  flex: 0 0 auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--ink-100);
  background-color: var(--bg-cream);
}

.course-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portal-course-card:hover .course-card-thumb {
  transform: scale(1.05);
}

.card-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.card-main-left {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-main-center {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.card-main-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.card-meta-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.department-tag {
  font-size: var(--text-xs);
  color: var(--ink-600);
  font-weight: 600;
  background-color: var(--ink-100);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.card-star-row {
  display: flex;
  align-items: center;
  margin-bottom: 2px;
}

.stars-mock {
  color: var(--accent-fuchsia);
  letter-spacing: 0.05em;
  font-size: var(--text-xs);
}

.card-course-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--primary-teal-dark);
  font-size: var(--text-md);
  margin: 0;
}

.level-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  display: inline-block;
}

.badge-diploma {
  background-color: #e3f2fd;
  color: #1565c0;
}

.badge-certificate {
  background-color: #f1f8e9;
  color: #558b2f;
}

.badge-artisan {
  background-color: #efebe9;
  color: #4e342e;
}

/* Side-by-Side Horizontal Suitability stats */
.fit-gauges-horizontal {
  display: flex;
  gap: 12px;
  background-color: var(--primary-teal-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.horizontal-gauge {
  flex: 1;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--primary-teal-dark);
}

.horizontal-gauge .g-label {
  display: block;
  color: var(--ink-500);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.card-duration-row {
  font-size: var(--text-xs);
  color: var(--ink-700);
  margin-bottom: 16px;
}

.btn-card-learn {
  border: 1.5px solid var(--accent-fuchsia);
  color: var(--accent-fuchsia);
  background: transparent;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-card-learn:hover {
  background-color: var(--accent-fuchsia);
  color: var(--white);
}

.btn-card-apply {
  background-color: var(--accent-fuchsia);
  border: 1.5px solid var(--accent-fuchsia);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-card-apply:hover {
  background-color: var(--primary-teal);
  border-color: var(--primary-teal);
  color: var(--white);
}

/* Expandable Drawer in Card */
.card-detail-drawer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ink-100);
  font-size: var(--text-xs);
  color: var(--ink-700);
  line-height: 1.4;
  animation: slideDown 0.2s ease-out;
}

.course-desc-drawer {
  margin-top: 8px;
  color: var(--ink-500);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Actions Row ─────────────────────────────────────────── */
.results-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.btn-secondary {
  flex: 1;
  background-color: var(--white);
  border: 1.5px solid var(--primary-teal);
  color: var(--primary-teal);
  padding: 14px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.btn-secondary:hover {
  background-color: var(--primary-teal);
  color: var(--white);
}

/* ── Premium Multi-Column Portal Footer ───────────────────── */
.portal-footer {
  background-color: var(--primary-teal); /* Matches header color #0f4c5c */
  color: #cce3e6;
  padding: 60px 0 30px;
  font-family: 'Inter', sans-serif;
  margin-top: 60px;
  border-top: 4px solid var(--accent-fuchsia);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  margin-bottom: 20px;
  text-transform: none;
}

.footer-contact-list,
.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-list li,
.footer-menu li {
  display: flex;
  align-items: center;
  font-size: var(--text-sm);
  color: #cce3e6;
}

.footer-contact-list a,
.footer-menu a {
  color: #e0f2f1;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.footer-contact-list a:hover,
.footer-menu a:hover {
  color: var(--accent-fuchsia);
}

.footer-icon-wrap {
  color: var(--accent-fuchsia);
  margin-right: 12px;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.accent-link-about {
  color: var(--accent-fuchsia) !important;
  font-weight: 700 !important;
  border-bottom: 1.5px solid var(--accent-fuchsia);
  padding-bottom: 2px;
}

.accent-link-about:hover {
  border-color: var(--white);
}

.footer-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  margin: 40px 0 20px;
}

.footer-copyright-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer-copyright-row p {
  margin: 0;
}

/* ── Student Career Profile visual dashboard ────────────────── */
.profile-visual-card {
  background-color: var(--white);
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.profile-visual-content {
  display: flex;
  align-items: center;
  gap: 32px;
}

.chart-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  flex-shrink: 0;
}

.donut-chart-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* Starts the cumulative offset at the top */
}

@keyframes draw-donut {
  from {
    stroke-dasharray: 0 314.159;
  }
}

.donut-slice {
  transition: stroke-width 0.25s ease, filter 0.25s ease;
  cursor: pointer;
  animation: draw-donut 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.donut-slice:hover,
.donut-slice.highlighted {
  stroke-width: 20;
  filter: drop-shadow(0px 3px 6px rgba(0,0,0,0.15));
}

.chart-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  width: 80px;
}

.center-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-teal-dark);
  line-height: 1.1;
}

.center-label {
  font-size: 0.55rem;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
  line-height: 1.2;
}

.profile-summary-section {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-icon {
  font-size: 1.2rem;
}

.summary-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-teal-dark);
  margin: 0;
}

.profile-summary-text {
  font-size: 0.82rem;
  color: var(--ink-700);
  line-height: 1.6;
  margin: 0;
}

.profile-summary-text strong {
  color: var(--primary-teal-dark);
  font-weight: 700;
}

/* ── Responsive media queries ───────────────────────────────── */
@media (max-width: 900px) {
  .hero-section {
    flex-direction: column;
    padding: 40px 20px;
  }
  
  .hero-card-wrapper {
    flex: 1 1 auto;
    width: 100%;
  }



  .card-row-main {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .card-thumbnail-container {
    width: 100%;
    height: 160px;
  }

  .drawer-grid-container {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .drawer-column-left {
    width: 100% !important;
  }

  .drawer-large-image-wrapper {
    width: 100% !important;
    height: 200px !important;
  }

  .card-main-left, .card-main-center, .card-main-right {
    width: 100%;
  }

  .card-main-right {
    justify-content: flex-start;
  }

  .profile-visual-content {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {

  .portal-results-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .results-search-mock input {
    width: 100%;
  }

  .results-actions {
    flex-direction: column;
  }
}

/* ============================================================
   APPLICATION MODAL — Overlay, Card, Header, Body, Footer
   ============================================================ */

/* ── 1. Modal Overlay ──────────────────────────────────────── */
.application-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 46, 56, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.25s ease;
  padding: 20px;
}

/* ── 2. Modal Card ─────────────────────────────────────────── */
.application-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 85vh;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease-out;
  overflow: hidden;
}

/* ── 3. Modal Header ───────────────────────────────────────── */
.modal-header {
  background: var(--primary-teal);
  color: var(--white);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: var(--text-lg);
  font-weight: 700;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ── 4. Modal Body ─────────────────────────────────────────── */
.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* ── 5. Modal Footer ───────────────────────────────────────── */
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--ink-100);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: var(--bg-cream);
}

/* ============================================================
   FORM ELEMENTS — Sections, Groups, Inputs, Selects, Hints
   ============================================================ */

/* ── 6. Form Sections ──────────────────────────────────────── */
.form-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink-100);
}

.form-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.form-section-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-teal-dark);
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent-fuchsia);
  display: inline-block;
}

/* ── 7. Form Groups ───────────────────────────────────────── */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 5px;
}

.required {
  color: var(--danger);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--ink-300);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-family: 'Inter', sans-serif;
  color: var(--ink-900);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.1);
  outline: none;
}

.form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--ink-300);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-family: 'Inter', sans-serif;
  color: var(--ink-900);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232c4e57' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 38px;
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.1);
  outline: none;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--ink-500);
  font-style: italic;
  margin-bottom: 10px;
}

/* ============================================================
   SELECTION CONTROLS — Radios, Checkboxes, Skill Pills
   ============================================================ */

/* ── 8. Radio Group (Gender, etc.) ─────────────────────────── */
.radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--ink-700);
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: var(--primary-teal);
  width: 16px;
  height: 16px;
}

/* ── 9. Checkbox Label ─────────────────────────────────────── */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: var(--ink-700);
  cursor: pointer;
  white-space: nowrap;
}

.checkbox-label input[type="checkbox"] {
  accent-color: var(--primary-teal);
}

/* ── 10. Skill Pills ───────────────────────────────────────── */
.skill-pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.skill-pill {
  padding: 7px 16px;
  border: 2px solid var(--primary-teal);
  border-radius: 999px;
  background: transparent;
  color: var(--primary-teal);
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.skill-pill:hover {
  background: var(--primary-teal-light);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 76, 92, 0.12);
}

.skill-pill.active {
  background: var(--primary-teal);
  color: var(--white);
  border-color: var(--primary-teal);
  animation: pillBounce 0.3s ease;
}

/* ============================================================
   FEEDBACK COMPONENTS — Match Preview, CV Notice, Toasts
   ============================================================ */

/* ── 11. Match Preview Bar ─────────────────────────────────── */
.match-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.match-bar-track {
  flex: 1;
  height: 10px;
  background: var(--ink-100);
  border-radius: 999px;
  overflow: hidden;
}

.match-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-teal), #14b8a6);
  border-radius: 999px;
  transition: width 0.4s ease;
  min-width: 0;
}

.match-percentage-text {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--primary-teal-dark);
  min-width: 70px;
  text-align: right;
}

/* ── 12. CV Notice ─────────────────────────────────────────── */
.cv-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-pink);
  border: 1px solid rgba(233, 30, 140, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 8px;
}

.cv-notice-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.cv-notice p {
  font-size: var(--text-xs);
  color: var(--ink-700);
  line-height: 1.5;
  margin: 0;
}

/* ── 13. Toast Notifications ───────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  animation: toastSlideIn 0.35s ease-out;
  max-width: 360px;
}

.toast-success {
  background: var(--success);
}

.toast-error {
  background: var(--danger);
}

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pillBounce {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes toastSlideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================================
   RESPONSIVE — Application Modal & Form adjustments ≤ 600px
   ============================================================ */

@media (max-width: 600px) {
  .application-modal {
    max-width: 100%;
    max-height: 95vh;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .modal-body {
    padding: 16px;
  }

  .radio-group {
    gap: 12px;
  }

  .job-overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .toast-container {
    right: 12px;
    left: 12px;
  }

  .toast {
    max-width: 100%;
  }
}

/* ============================================================
   MOBILE RESPONSIVE BREAKPOINTS (≤ 768px & ≤ 480px)
   ============================================================ */

html, body {
  overflow-x: hidden !important;
  width: 100% !important;
}

@media (max-width: 768px) {
  /* 1. Header Navigation Mobile Fixes */
  .portal-header {
    padding: 10px 14px !important;
  }

  .header-container {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .header-left .logo {
    height: 26px !important;
  }

  .brand-name {
    font-size: 0.82rem !important;
    line-height: 1.15 !important;
  }

  .brand-tag {
    font-size: 8px !important;
  }

  .header-right {
    gap: 8px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    justify-content: space-between !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  .nav-link {
    font-size: 12px !important;
  }

  .btn-get-started {
    padding: 6px 14px !important;
    font-size: 11.5px !important;
  }

  /* 2. Hero Slideshow & Edgeless Mobile Width Fix */
  .hero-slideshow-wrapper {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    min-height: unset !important;
    height: auto !important;
  }

  .hero-overlay-card {
    padding: 24px 16px 20px !important;
    flex-direction: column !important;
    gap: 20px !important;
    min-height: unset !important;
    height: auto !important;
  }

  .quote-inspiration-section {
    padding-top: 10px !important;
    padding-bottom: 4px !important;
    margin-top: 0 !important;
  }

  .hero-content-glass h1,
  .hero-content-glass h1 span {
    font-size: 2.2rem !important;
    line-height: 1.18 !important;
  }

  .hero-content-glass .subtitle {
    font-size: 1.05rem !important;
    line-height: 1.55 !important;
  }

  .badge-row {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .fuchsia-badge {
    font-size: 10px !important;
    padding: 4px 10px !important;
  }

  /* 3. Hero Assessment Card Mobile Stacking */
  .hero-card-wrapper {
    width: 100% !important;
  }

  .glass-portal-card {
    width: 100% !important;
  }

  /* 4. Cookie Consent Bar Mobile Fix */
  #cookieConsentBar {
    padding: 14px 16px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    text-align: center !important;
  }

  #cookieConsentBar > div:last-child {
    width: 100% !important;
    justify-content: center !important;
  }

  #cookieConsentBar button {
    flex: 1 !important;
  }
}

@media (max-width: 480px) {
  .hero-content-glass h1,
  .hero-content-glass h1 span {
    font-size: 1.95rem !important;
    line-height: 1.20 !important;
  }

  .portal-header {
    padding: 8px 12px !important;
  }
}
