/* ======================================
   GLOBAL RESET & BASE
====================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;   /* ✅ only X, do NOT touch Y here */
  /* DO NOT put overflow-y: hidden or overflow: hidden here */
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #1e293b;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Page Management */
.page {
  display: none;
  animation: fadeIn 0.5s ease-in;
  min-height: calc(100% - 200px);
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======================================
   NAVIGATION
====================================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  padding: 8px 0;
  background: transparent;
  -webkit-backdrop-filter: blur(10px);

  transition:
    background 0.35s ease,
    box-shadow 0.35s ease;
}

nav.scrolled {
  background: rgba(49, 142, 215, 0.75);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.nav-content {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
     min-width: 0;
  justify-content: flex-start;   /* ✅ everything starts from the left */
  gap: 16px;
}




.logo {
  display: flex;
  flex-shrink: 1; /* allow shrinking */
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-img {
  height: 50px;          /* adjust to your preference */
  width: auto;
  display: block;
}

.logo-text {
  font-size: 26px;
  flex-shrink: 1;   /* allow shrinking */
  font-weight: 800;
  color: #93eb35;        /* white for the nav */
  webkit-background-clip: text;
  webkit-text-fill-color: transparent;
  background-clip: text;
  splay: flex;
  gap: 8px;
  transition: transform 0.3s;
  white-space: nowrap;
  margin-right: 20px;
  flex-shrink: 0;

}

.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
  flex-wrap: nowrap;
  margin-left: auto;     /* ✅ pushes all links + CTA as a group to the right */
}


.nav-links li {
  position: relative;
}

.nav-links button {
  background: none;
  border: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  padding: 8px 12px;
  position: relative;
  white-space: nowrap;
}

.nav-links button:hover {
  color: #e4c5ff;
}

.nav-links button.active {
  color: #9aee35;
}

.nav-links button.active::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #9aee35, #9aee35);
  border-radius: 2px;
}

/* NAVBAR SEARCH */
.nav-search {
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.85);
  color: #e5e7eb;
  border-radius: 999px;
  padding: 6px 12px 6px 30px;
  font-size: 13px;
  min-width: 190px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;

  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='6' stroke='%239CA3AF' stroke-width='2'/%3E%3Cline x1='15.5' y1='15.5' x2='20' y2='20' stroke='%239CA3AF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 8px center;
  background-size: 16px 16px;
}

.nav-search::placeholder {
  color: #9ca3af;
}

.nav-search:focus {
  background: rgba(15, 23, 42, 1);
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.7);
}

/* search highlight in content */
.search-highlight {
  background: #facc15;
  color: #111827;
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 600;
}

/* AI search suggestions dropdown */
.nav-search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-width: 320px;
  background: #020617;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  padding: 8px;
  z-index: 60;
  display: none;
}

.nav-search-suggestions.visible {
  display: block;
}

.nav-search-suggestions-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  padding: 4px 6px 2px;
}

.nav-search-suggestion-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.nav-search-suggestion {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(75, 85, 99, 0.8);
  margin: 3px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.nav-search-suggestion span {
  opacity: 0.8;
}

.nav-search-suggestion small {
  font-size: 11px;
  color: #9ca3af;
}

.demo-badge {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.nav-cta-button {
  background: linear-gradient(135deg, #8ec24f 0%, #8ec24f 100%) !important;
  color: #ffffff !important;
  padding: 10px 20px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  transition: all 0.3s !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  font-size: 14px !important;
}

.nav-cta-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5) !important;
}

/* HAMBURGER */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: #0f172a;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ======================================
   HERO & SCROLL SECTIONS
====================================== */

/* Base hero for all pages (non-home) */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: rgba(59, 130, 246, 0.6);
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding: 120px 0 80px;
  display: block;
}

/* Hero overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(59, 130, 246, 0.35);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Page-specific backgrounds */
.hero {
  background-image: url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?w=1600&q=80');
}

.hero-home {
  background-image: url('https://images.unsplash.com/photo-1524178232363-1fb2b075b655?w=1600&q=80');
}

.hero-features {
  background-image: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=1600&q=80');
}

.hero-dashboard {
  background-image: url('https://images.unsplash.com/photo-1551434678-e076c223a692?w=1600&q=80');
}

.hero-student {
  background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=1600&q=80');
}

.hero-contact {
 background-image:
    url("https://images.unsplash.com/photo-1525182008055-f88b95ff7980?w=1600&q=80");
}




#page-home .hero-home {
  height: 100vh;
  min-height: 100vh;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Non-home heroes sit below fixed navbar */
.page:not(#page-home) .hero {
  min-height: auto;
  height: auto;
  top: -20px;
  display: block;
  padding-top: 120px;
  padding-bottom: 80px;
  box-sizing: border-box;
}

/* Snap sections */
.snap-section {
  min-height: 100vh;
  scroll-snap-align: start;
  position: relative;

  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.snap-section.snap-active {
  opacity: 1;
  transform: translateY(0);
}

/* zoom variant */
.snap-zoom {
  opacity: 0;
  transform: scale(0.96);
  filter: blur(8px);
  transition: opacity 1s ease, transform 1s ease, filter 1s ease;
}
.snap-zoom.snap-active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* circle variant */
.snap-circle {
  opacity: 0;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 1.5s ease-out, opacity 1.5s ease-out;
}
.snap-circle.snap-active {
  opacity: 1;
  clip-path: circle(140% at 50% 50%);
}

/* Hero text */
.hero h1 {
  font-size: 56px;
  font-weight: 900;
  margin-bottom: 24px;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero p {
  font-size: 22px;
  opacity: 0.95;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ======================================
   CTA BUTTON
====================================== */

.cta-button {
  background: #ffffff;
  color: #667eea;
  padding: 18px 48px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  display: inline-block;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Micro interaction shine */
.cta-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0)
  );
  transform: skewX(-25deg);
  opacity: 0;
  transition: opacity 0.3s;
}

.cta-button:hover::after {
  opacity: 1;
  left: 120%;
  transition: left 0.5s ease-out, opacity 0.3s;
}

/* ======================================
   TARGET AUDIENCE & USER JOURNEY
====================================== */

.target-users-infographic {
  padding: 80px 0;
  background: #ffffff;
  text-align: center;
}

.user-grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 45px;
}

.user-box {
  background: #ffffff;
  padding: 28px 20px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e5e7eb;
}

.user-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.user-icon {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 14px;
}

.user-box h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1f2937;
}

.user-box p {
  font-size: 14px;
  color: #6b7280;
}

.center-tile {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  box-shadow: 0 12px 28px rgba(99,102,241,0.18);
}

/* target users strip */
.target-users {
  padding: 40px 0 28px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.target-users h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
}

.user-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.user-tags span {
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* video journey */
.user-journey {
  padding: 72px 0;
  background: #ffffff;
}

.parent-container {
  max-width: 1080px;
  margin: 0 auto;
}

.user-journey-video-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  background: #020617;
  position: relative;
aspect-ratio: 1088 / 501;
}

.user-journey-video-wrapper video {
  display: block;
  width: 100%;
  height: 100%;           /* ✅ keep original aspect ratio */
  /* object-fit not needed if we let the video size itself */
  pointer-events: none;
}

.custom-play-btn {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 80px;
  color: #ffffff;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 24px;
}

.custom-play-btn::before {
  content: "▶";
}

.custom-play-btn:hover {
  background: rgba(0, 0, 0, 0.65);
}

/* ======================================
   FEATURE SECTIONS
====================================== */

.features {
  padding: 80px 0;
  background: #ffffff;
}

/* Why Choose Us */
.why-choose-us {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.section-title {
  text-align: center;
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 60px;
  color: #1e293b;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: #64748b;
  max-width: 1080px;
  margin: -40px auto 60px;
  line-height: 1.8;
}

.why-timeline {
  position: relative;
  max-width: 1200px;
  margin: 60px auto;
  padding: 40px 0;
}

.hexagon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.why-card {
  background: #ffffff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.why-card:hover::before {
  transform: scaleX(1);
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(49, 142, 215, 0.75);
}

.why-badge {
  display: inline-block;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #8ec24f 0%, #8ec24f 100%);
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
  margin-bottom: 20px;
}

.why-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
  transition: transform 0.4s;
}

.why-card:hover .why-image {
  transform: scale(1.05);
}

.why-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1e293b;
}

.why-card p {
  color: #64748b;
  line-height: 1.8;
  font-size: 15px;
}

/* Stats banner */
.stats-banner {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)); /* desktop: 3 per row */
  gap: 24px;
  background: linear-gradient(135deg, #4f8ef7 0%, #3a6ff0 100%);
  padding: 32px 32px;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.3);
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  color: #ffffff;
}

.stat-value {
  font-size: 38px;
  font-weight: 900;
  margin-bottom: 6px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stat-label {
  font-size: 13px;
  opacity: 0.9;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Tablet: 2 columns */
@media (max-width: 900px) {
  .stats-banner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 24px 20px;
  }

  .stat-value {
    font-size: 32px;
  }

  .stat-label {
    font-size: 12px;
  }
}

/* Mobile: 1 column */
@media (max-width: 600px) {
  .stats-banner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 20px 16px;
  }

  .stat-value {
    font-size: 28px;
  }

  .stat-label {
    font-size: 11px;
  }
}


/* Services */	
.services-section {
  padding: 80px 0;
  background: #ffffff;
}

.services-grid {
  display: grid; 
  grid-template-columns: repeat(2, 1fr); gap: 24px;
  max-width: 1200px; 
  margin: 0 auto;
}

.service-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.4s;
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s;
}

.service-card:hover .service-image {
  transform: scale(1.05);
}

.service-content {
  padding: 28px;
}

.service-badge {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-content p {
  color: #64748b;
  line-height: 1.7;
  font-size: 15px;
}

/* AI Features */
.ai-features-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.ai-features-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="ai-grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(99,102,241,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23ai-grid)"/></svg>');
  opacity: 0.5;
}

.ai-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.ai-feature-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 32px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s;
}

.ai-feature-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-8px);
}

.ai-icon {
  font-size: 56px;
  margin-bottom: 20px;
  display: inline-block;
  transition: transform 0.3s;
}

.ai-icon-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  transition: transform 0.3s;
  opacity: 0.9;
}

.ai-feature-card:hover .ai-icon {
  transform: scale(1.1) rotate(5deg);
}

.ai-feature-card:hover .ai-icon-img {
  transform: scale(1.05);
  opacity: 1;
}

.ai-feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
}

.ai-feature-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  font-size: 15px;
}

.ai-badge {
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ======================================
   FAQ
====================================== */

.faq-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.faq-container {
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.faq-question {
  width: 100%;
  padding: 28px 32px;
  background: #ffffff;
  border: none;
  text-align: left;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.faq-question:hover {
  background: #f8fafc;
  color: #6366f1;
}

.faq-icon {
  font-size: 24px;
  font-weight: 700;
  color: #6366f1;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 20px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 32px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 32px 28px 32px;
}

.faq-answer p {
  color: #64748b;
  line-height: 1.8;
  font-size: 16px;
}

/* FAQ glow when active */
.faq-question::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.12), transparent 60%);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.faq-item.active .faq-question::after {
  opacity: 1;
  transform: scale(1);
}

.faq-item.active .faq-question {
  background: #eef2ff;
}

.faq-item.active .faq-question span:first-child {
  color: #4f46e5;
}

/* ======================================
   REVEAL ANIMATION
====================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out,
    box-shadow 0.3s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal.visible:hover {
  transform: translateY(-6px);
}

/* ======================================
   HOW IT WORKS
====================================== */

.how-it-works {
  padding: 72px 0;
  background: #ffffff;
}

.steps-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
  border-color: rgba(59, 130, 246, 0.8);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #6366f1, #22c55e);
  color: #f9fafb;
  margin-bottom: 10px;
}

.step-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: #111827;
}

.step-card p {
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
}

/* ======================================
   DASHBOARD & STATS
====================================== */

.dashboard-page {
  padding: 60px 0;
}

.page-header {
  margin-bottom: 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 42px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 12px;
}

.page-header p {
  color: #64748b;
  font-size: 18px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  gap: 20px;
  margin-bottom: 40px;
  justify-content: center;
}

.dashboard-card {
  background: #ffffff;
  padding: 24px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s;
  border-left: 4px solid #6366f1;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.dashboard-card h3 {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-card .value {
  font-size: 42px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 12px;
}

.dashboard-card .change {
  font-size: 14px;
  color: #10b981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chart-card {
  background: #ffffff;
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.chart-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1e293b;
}

/* ======================================
   LOGIN
====================================== */

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 85%;
  padding: 60px 0;
}

.login-container {
  background: #ffffff;
  padding: 48px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  max-width: 480px;
  width: 100%;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 12px;
}

.login-header p {
  color: #64748b;
  font-size: 16px;
}

.login-toggle {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 32px;
}

.toggle-btn {
  flex: 1;
  padding: 12px 24px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s;
}

.toggle-btn.active {
  background: #ffffff;
  color: #6366f1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.login-form-full {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group-full {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-full label {
  font-weight: 600;
  color: #475569;
  font-size: 14px;
}

.form-group-full input {
  padding: 16px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s;
  background: #f8fafc;
}

.form-group-full input:focus {
  outline: none;
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.login-submit {
  padding: 18px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 12px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.login-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}

/* ======================================
   CONTACT
====================================== */

.contact-page {
  padding: 60px 0;
  min-height: 85%;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  padding: 60px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.contact-header {
  text-align: center;
  margin-bottom: 48px;
}

.contact-header h1 {
  font-size: 42px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 16px;
}

.contact-header p {
  font-size: 18px;
  color: #64748b;
  line-height: 1.8;
}

.contact-form {
  display: grid;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-field label {
  font-weight: 600;
  color: #475569;
  font-size: 14px;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 16px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s;
  background: #f8fafc;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #6366f1;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.submit-button {
  padding: 18px 48px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  justify-self: center;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
}

/* ======================================
   ADMIN LAYOUT
====================================== */

.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 60px 0;
  min-height: 85%;
}

.admin-sidebar-full {
  background: #ffffff;
  padding: 28px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  height: fit-content;
}

.sidebar-section {
  margin-bottom: 28px;
}

.sidebar-section h3 {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.sidebar-item {
  padding: 14px 18px;
  margin-bottom: 6px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  color: #64748b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-item:hover {
  background: #f1f5f9;
  color: #6366f1;
  transform: translateX(4px);
}

.sidebar-item.active {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.admin-content {
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* Data table */
.data-table {
  width: 100%;
  margin-top: 28px;
}

.data-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 20px;
  padding: 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px;
  align-items: center;
  transition: all 0.3s;
  background: #ffffff;
}

.data-table-row:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: #6366f1;
  transform: translateY(-2px);
}

.status-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.status-active {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #166534;
}

.status-pending {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.action-buttons {
  display: flex;
  gap: 10px;
}

.btn-icon {
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-edit {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
}

.btn-edit:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-delete {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
}

.btn-delete:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(153, 27, 27, 0.3);
}

/* ======================================
   STUDENT PORTAL – BASIC OVERVIEW
====================================== */

.student-portal {
  padding: 60px 0;
  min-height: 85%;
}

.progress-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 260px));
  gap: 20px;
  margin-bottom: 40px;
  justify-content: center;
}

.progress-card {
  background: #ffffff;
  padding: 24px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  text-align: center;
  transition: all 0.3s;
}

.progress-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.progress-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.progress-value {
  font-size: 36px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.progress-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
}

.course-list {
  padding: 40px;
  border-radius: 20px;
}

.course-item {
  padding: 24px;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  margin-bottom: 20px;
  transition: all 0.3s;
}

.course-item:hover {
  border-color: #6366f1;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.1);
  transform: translateX(4px);
}

.course-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.course-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}

.progress-bar-container {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 10px;
  transition: width 0.5s;
}

.course-stats {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 16px;
}

/* ======================================
   FOOTER
====================================== */

footer {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #94a3b8;
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-section p,
.footer-section a {
  color: #94a3b8;
  line-height: 2;
  text-decoration: none;
  display: block;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #6366f1;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 30px;
  text-align: center;
  color: #64748b;
}

/* ======================================
   SPECIALTIES SECTION (dark)
====================================== */

.specialties-section {
  padding: 80px 0;
  background: radial-gradient(circle at top, rgba(15,23,42,0.95), #020617);
  color: #e5e7eb;
}

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.specialty-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  padding: 20px 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.specialty-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0;
  background: radial-gradient(circle at top left, rgba(59,130,246,0.25), transparent 55%);
  transition: opacity 0.3s ease;
}

.specialty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 1);
  border-color: rgba(129, 140, 248, 0.8);
}

.specialty-card:hover::after {
  opacity: 1;
}

.specialty-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.specialty-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #f9fafb;
}

.specialty-card p {
  font-size: 14px;
  color: #cbd5f5;
  margin-bottom: 12px;
}

.specialty-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(37,99,235,0.22);
  color: #bfdbfe;
  border: 1px solid rgba(96,165,250,0.7);
}

/* ======================================
   CLINICAL LEARNING HUB (light)
====================================== */

.clinical-hub {
  padding: 80px 0;
  background: #ffffff;
  color: #1e293b;
}

.hub-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.hub-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 20px 18px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: 0.25s ease;
}

.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.hub-badge {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hub-card h3 {
  font-size: 18px;
  margin: 4px 0;
  color: #1e293b;
}

.hub-card p {
  font-size: 14px;
  color: #4b5563;
  flex-grow: 1;
}

.hub-link {
  margin-top: 8px;
  align-self: flex-start;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
}

.hub-link:hover {
  text-decoration: underline;
}

/* ======================================
   IMPACT METRICS + CERTIFICATE PREVIEW
====================================== */

.impact-metrics {
  padding: 100px 0 80px;
  background: #ffffff;
}

.impact-metrics .section-title {
  text-align: center;
  margin-bottom: 8px;
}

.impact-metrics .section-subtitle {
  margin: 30px auto 32px;
}

/* Certificate preview outer */
.cert-preview {
  margin-top: 16px;
  padding: 18px;
  background: radial-gradient(circle at top, rgba(148, 163, 184, 0.25), transparent 60%),
              radial-gradient(circle at bottom, rgba(15, 23, 42, 0.75), #020617);
  border-radius: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Paper */
.cert-inner {
  position: relative;
  width: 100%;
  max-width: 880px;
  aspect-ratio: 4 / 3;
  background: #fdfaf3;
  border-radius: 14px;
  padding: 32px 40px;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(148, 163, 184, 0.35);
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Decorative border */
.cert-inner::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: inset 0 0 0 1px rgba(209, 213, 219, 0.45);
  pointer-events: none;
}

.cert-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

/* Logo block */
.cert-logo-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cert-logo-main {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #111827;
}

.cert-logo-sub {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
}

/* Seal / badge on the right */
.cert-seal {
  width: 88px;
  height: 78px;
  border-radius: 50%;
  border: 0.5px solid #151b54;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #ffffff;
  background: radial-gradient(circle at 30% 30%, #79baec, #4682b4 70%);
  box-shadow:
    0 8px 18px rgba(37, 99, 235, 0.45),
    0 0 0 2px rgba(96, 165, 250, 0.45);
}

.cert-title {
  margin: 8px auto 12px;
  text-align: center;
  font-size: 20px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #111827;
}

.cert-line-small {
  text-align: center;
  font-size: 13px;
  color: #4b5563;
  margin: 4px 0;
}

.cert-name {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.06em;
  margin: 6px 0 10px;
}

.cert-course {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #1f2933;
  margin: 4px 0 10px;
}

.cert-meta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 28px;
  padding-top: 14px;
  border-top: 1px dashed rgba(148, 163, 184, 0.7);
}

.cert-meta-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
  margin-bottom: 4px;
}

.cert-meta-value {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.cert-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
  padding-top: 10px;
}

.cert-sign-block {
  flex: 1;
  text-align: center;
}

.cert-line {
  height: 1px;
  width: 70%;
  margin: 0 auto 6px;
  background: linear-gradient(
    to right,
    rgba(156, 163, 175, 0),
    rgba(31, 41, 55, 0.85),
    rgba(156, 163, 175, 0)
  );
}

.cert-sign-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.cert-sign-role {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin-top: 2px;
}

/* Certificate form – scoped so it doesn't override login/contact */

.cert-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cert-form .form-group-full {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cert-form .form-group-full label,
.cert-form .form-field label {
  font-size: 12px;
  font-weight: 500;
  color: #000000;
}

.cert-form .form-group-full input,
.cert-form .form-field input {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: transparent;
  color: #989898;
  font-size: 13px;
  padding: 8px 12px;
  outline: none;
}

.cert-form .form-group-full input:focus,
.cert-form .form-field input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4);
}

.cert-form .form-row {
  display: flex;
  gap: 10px;
}

.cert-form .form-field {
  flex: 1;
}

/* ======================================
   LOGO CAROUSEL
====================================== */

.logo-carousel {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 40px;
}

.logo-row {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: flex-start;
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: nowrap;
}

.logo-track img {
  height: 70px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background: #ffffff;
  box-sizing: border-box;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    filter 0.3s ease,
    border-color 0.3s ease;
}

.logo-track img:hover {
  transform: scale(1.05);
  border-color: rgba(0, 0, 0, 0.18);
}

/* ======================================
   STUDENT – HCP JOURNEY MAP & PATHWAYS
   (CLEANED + NO OVERRIDES)
====================================== */

/* --- Journey map --- */

.journey-map-section {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: flex-start;
}

/* wrap inside card on student page */
.student-portal .journey-map-section {
  margin-top: 32px;
  padding: 24px 22px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

/* flatten inner cards */
.journey-map-card,
.journey-next-best-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.journey-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.journey-map-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.journey-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.journey-steps {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  position: relative;
}

.journey-step {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.journey-step-line {
  height: 4px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.journey-step-line-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #22c55e);
  transition: width 0.35s ease;
}

.journey-step-dot {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.3);
  transition: all 0.3s ease;
}

.journey-step-label {
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.journey-step.active .journey-step-line-fill {
  width: 100%;
}
.journey-step.active .journey-step-dot {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.32);
}
.journey-step.active .journey-step-label {
  color: #0f172a;
}

/* Right-hand “next best action” */
.journey-next-best-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.journey-next-meta {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}

.journey-next-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.journey-next-pill {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
}

.journey-next-pill.secondary {
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
}

.journey-next-body {
  font-size: 13px;
  color: #111827;
  line-height: 1.5;
}

/* --- Clinical pathways --- */

.clinical-pathways {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: flex-start;
}

/* outer card wrapper on student page */
.student-portal .clinical-pathways {
  margin-top: 32px;
  padding: 24px 22px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

/* flatten inner cards */
.clinical-pathways-card,
.path-outcome-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.clinical-pathways-card h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #0f172a;
}

.clinical-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 14px;
}

.clinical-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.clinical-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.path-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.path-option {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #0f172a;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
}

.path-option span {
  display: block;
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
}

.path-option:hover {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3);
}

.path-option.active {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-color: #93c5fd;
  color: #1e3a8a;
}

.path-option.active span {
  color: #1e40af;
}

/* Right side outcome panel */
.path-outcome-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.path-outcome-meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 10px;
}

.path-outcome-body {
  font-size: 13px;
  color: #111827;
  line-height: 1.6;
}

.path-outcome-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.path-outcome-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.12);
  color: #92400e;
  font-weight: 600;
}

/* --- Leaderboard --- */

.leaderboard-section {
  margin-top: 40px;
}

.student-portal .leaderboard-section {
  margin-top: 32px;
  padding: 24px 22px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.leaderboard-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.leaderboard-header p {
  font-size: 13px;
  color: #64748b;
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.leaderboard-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.leaderboard-title {
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
  margin-bottom: 4px;
  color: #0f172a;
}

.leaderboard-meta {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 10px;
}

.leaderboard-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.leaderboard-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 0;
}

.leaderboard-rank {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  background: #eab308;
  box-shadow: 0 0 0 2px #ffffff;
}

.leaderboard-rank.top {
  animation: crownPulse 1.8s infinite ease-in-out;
}

.leaderboard-score {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}

@keyframes crownPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.55); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(250, 204, 21, 0); }
}

/* --- HCP Digital Twin (student) --- */

.hcp-digital-twin {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: flex-start;
}

.student-portal .hcp-digital-twin {
  margin-top: 32px;
  padding: 24px 22px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.digital-twin-card,
.digital-twin-side-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.digital-twin-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #0f172a;
}

.digital-twin-sub {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}

.digital-twin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.digital-pill {
  padding: 8px 10px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  color: #111827;
}

.digital-pill strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1d4ed8;
}

.digital-pill span {
  font-size: 12px;
}

.digital-twin-side-card {
  font-size: 12px;
  color: #111827;
}

/* --- Admin behaviour analytics + digital twin snapshot --- */

.behavior-analytics-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 20px;
}

.behavior-card,
.digital-twin-admin-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  color: #0f172a;
  padding: 18px 20px;
}

.behavior-card h2,
.digital-twin-admin-card h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.behavior-card p,
.digital-twin-admin-card p {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
}

.behavior-heatmap {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 10px;
}

.behavior-cell {
  height: 18px;
  border-radius: 4px;
  background: #e5e7eb;
}

.behavior-cell[data-level="low"] {
  background: rgba(59, 130, 246, 0.25);
}
.behavior-cell[data-level="mid"] {
  background: rgba(59, 130, 246, 0.55);
}
.behavior-cell[data-level="high"] {
  background: rgba(34, 197, 94, 0.85);
}

.behavior-legend {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
  color: #6b7280;
}

.behavior-legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}

.behavior-legend .low::before { background: rgba(59,130,246,0.25); }
.behavior-legend .mid::before { background: rgba(59,130,246,0.55); }
.behavior-legend .high::before { background: rgba(34,197,94,0.85); }

/* ======================================
   STUDENT SIDEBAR LAYOUT (clean)
====================================== */

.student-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 60px 0;
  min-height: 85%;
  margin: 0;
  max-width: 100%;
}

.student-sidebar {
  background: #ffffff;
  padding: 28px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  height: fit-content;
  position: sticky;
  top: 120px;
  align-self: flex-start;
}

.student-content {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 24px 32px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  min-height: 400px;
}

/* if you ever nest a container, remove extra padding */
.student-content > .container {
  max-width: 100%;
  padding: 0;
}

.student-view {
  display: none;
}
.student-view.active {
  display: block;
}

/* ======================================
   RESPONSIVE
====================================== */

@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .specialty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {

  .container {
    padding: 0 16px;
  }

  nav {
    padding: 12px 0;
  }

  .nav-content {
    position: relative;
    gap: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    right: 8px;
    left: 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(0, 0, 0, 0.98);
    padding: 10px 14px;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    z-index: 99;
  }

  .nav-links.open {
    max-height: 400px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links button,
  .nav-links .nav-cta-button {
    width: 100%;
    text-align: left;
    justify-content: flex-start;
  }

  .nav-links button.active::after {
    bottom: 0;
    height: 2px;
  }

  .nav-search {
    width: 100%;
    margin-top: 6px;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .section-title {
    font-size: 30px;
    margin-bottom: 36px;
  }

  .section-subtitle {
    margin-top: -20px;
    margin-bottom: 40px;
    font-size: 15px;
    padding: 0 8px;
  }

  .services-grid,
  .ai-features-grid,
  .feature-grid,
  .hexagon-grid {
    grid-template-columns: 1fr;
  }

  .contact-container,
  .login-container,
  .service-content,
  .ai-feature-card,
  .why-card,
  .course-item,
  .admin-content {
    padding: 20px;
  }

  .stats-banner {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .data-table-header,
  .data-table-row {
    grid-template-columns: 1fr;
  }

  .course-stats {
    flex-direction: column;
    gap: 8px;
  }

  .journey-map-section,
  .clinical-pathways,
  .hcp-digital-twin {
    grid-template-columns: 1fr;
  }

  .student-portal .journey-map-section > * + *,
  .student-portal .clinical-pathways > * + *,
  .student-portal .hcp-digital-twin > * + * {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #e5e7eb;
    padding-top: 14px;
    margin-top: 10px;
  }

  .leaderboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .behavior-analytics-grid {
    grid-template-columns: 1fr;
  }

  .student-layout {
    grid-template-columns: 1fr;
    padding: 32px 16px 64px;
  }

  .student-sidebar {
    position: static;
    order: -1;
  }

  .logo-track img {
    height: 50px;
  }

  .how-it-works {
    padding: 52px 0;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .step-card {
    padding: 16px 14px 14px;
  }

  .user-grid-3x3 {
    grid-template-columns: 1fr;
  }

  .specialty-grid,
  .hub-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links button {
    font-size: 14px;
    padding: 6px 12px;
  }
}


/* ================================
   STUDENT – HCP JOURNEY MAP
================================ */
.journey-map-section {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: flex-start;
}

/* Outer section card in student portal */
.student-portal .journey-map-section {
  margin-top: 32px;
  padding: 24px 22px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

/* Inner cards (no extra card-within-card look) */
.journey-map-card,
.journey-next-best-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Actual content styling */
.journey-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.journey-map-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.journey-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.journey-steps {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  position: relative;
}

.journey-step {
  flex: 1;
  position: relative;
  cursor: pointer;
}

.journey-step-line {
  height: 4px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.journey-step-line-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #22c55e);
  transition: width 0.35s ease;
}

.journey-step-dot {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.3);
  transition: all 0.3s ease;
}

.journey-step-label {
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.journey-step.active .journey-step-line-fill {
  width: 100%;
}
.journey-step.active .journey-step-dot {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.32);
}
.journey-step.active .journey-step-label {
  color: #0f172a;
}

/* Right-hand “next best action” */
.journey-next-best-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.journey-next-meta {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}

.journey-next-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.journey-next-pill {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
}

.journey-next-pill.secondary {
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
}

.journey-next-body {
  font-size: 13px;
  color: #111827;
  line-height: 1.5;
}

/* ================================
   STUDENT – BRANCHING CLINICAL PATHWAYS
================================ */
.clinical-pathways {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: flex-start;
}

/* Outer section as a single card on student page */
.student-portal .clinical-pathways {
  margin-top: 32px;
  padding: 24px 22px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

/* Inner cards flattened */
.clinical-pathways-card,
.path-outcome-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.clinical-pathways-card h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #0f172a;
}

.clinical-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 14px;
}

.clinical-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.clinical-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

.path-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.path-option {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #0f172a;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
}

.path-option span {
  display: block;
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
}

.path-option:hover {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3);
}

.path-option.active {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-color: #93c5fd;
  color: #1e3a8a;
}

.path-option.active span {
  color: #1e40af;
}

/* Right side outcome panel */
.path-outcome-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.path-outcome-meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 10px;
}

.path-outcome-body {
  font-size: 13px;
  color: #111827;
  line-height: 1.6;
}

.path-outcome-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.path-outcome-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.12);
  color: #92400e;
  font-weight: 600;
}

/* ================================
   STUDENT – GAMIFIED LEADERBOARD
================================ */
.leaderboard-section {
  margin-top: 40px;
}

/* Wrap leaderboard in one card on student page */
.student-portal .leaderboard-section {
  margin-top: 32px;
  padding: 24px 22px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.leaderboard-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.leaderboard-header p {
  font-size: 13px;
  color: #64748b;
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.leaderboard-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.leaderboard-title {
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
  margin-bottom: 4px;
  color: #0f172a;
}

.leaderboard-meta {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 10px;
}

.leaderboard-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.leaderboard-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 0;
}

.leaderboard-rank {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  background: #eab308;
  box-shadow: 0 0 0 2px #ffffff;
}

.leaderboard-rank.top {
  animation: crownPulse 1.8s infinite ease-in-out;
}

.leaderboard-score {
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
}

@keyframes crownPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.55); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(250, 204, 21, 0); }
}

/* ================================
   STUDENT – HCP DIGITAL TWIN PANEL
================================ */
.hcp-digital-twin {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: flex-start;
}

/* Wrap as one card in student page */
.student-portal .hcp-digital-twin {
  margin-top: 32px;
  padding: 24px 22px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

.digital-twin-card,
.digital-twin-side-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.digital-twin-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #0f172a;
}

.digital-twin-sub {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}

.digital-twin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.digital-pill {
  padding: 8px 10px;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  color: #111827;
}

.digital-pill strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1d4ed8;
}

.digital-pill span {
  font-size: 12px;
}

.digital-twin-side-card {
  font-size: 12px;
  color: #111827;
}

/* ================================
   ADMIN – BEHAVIOUR ANALYTICS + DIGITAL TWIN SNAPSHOT
================================ */
.behavior-analytics-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 20px;
}

.behavior-card,
.digital-twin-admin-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  color: #0f172a;
  padding: 18px 20px;
}

.behavior-card h2,
.digital-twin-admin-card h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.behavior-card p,
.digital-twin-admin-card p {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
}

.behavior-heatmap {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 10px;
}

.behavior-cell {
  height: 18px;
  border-radius: 4px;
  background: #e5e7eb;
}

.behavior-cell[data-level="low"] {
  background: rgba(59, 130, 246, 0.25);
}
.behavior-cell[data-level="mid"] {
  background: rgba(59, 130, 246, 0.55);
}
.behavior-cell[data-level="high"] {
  background: rgba(34, 197, 94, 0.85);
}

.behavior-legend {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  font-size: 11px;
  color: #6b7280;
}

.behavior-legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}

.behavior-legend .low::before { background: rgba(59,130,246,0.25); }
.behavior-legend .mid::before { background: rgba(59,130,246,0.55); }
.behavior-legend .high::before { background: rgba(34,197,94,0.85); }

/* ============================
   STUDENT – SIDEBAR LAYOUT
============================ */
.student-layout {
  display: grid;
  grid-template-columns: 280px 1fr;  /* same as admin layout */
  gap: 32px;
  padding: 60px 0;
  min-height: 85%;
  margin: 0;
  max-width: 100%;
}

.student-sidebar {
  background: #ffffff;
  padding: 28px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  height: fit-content;
  position: sticky;
  top: 120px;
  align-self: flex-start;
}

.student-content {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 24px 32px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  min-height: 400px;
}

/* Optional: avoid extra padding if you keep a .container inside */
.student-content > .container {
  max-width: 100%;
  padding: 0;
}

/* View switching */
.student-view {
  display: none;
}
.student-view.active {
  display: block;
}

/* ============================
   RESPONSIVE TWEAKS
============================ */
@media (max-width: 900px) {
  .journey-map-section,
  .clinical-pathways,
  .hcp-digital-twin {
    grid-template-columns: 1fr;
  }

  /* When stacked, use top border instead of left */
  .student-portal .journey-map-section > * + *,
  .student-portal .clinical-pathways > * + *,
  .student-portal .hcp-digital-twin > * + * {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #e5e7eb;
    padding-top: 14px;
    margin-top: 10px;
  }

  .leaderboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .behavior-analytics-grid {
    grid-template-columns: 1fr;
  }

  .student-layout {
    grid-template-columns: 1fr;
    padding: 32px 16px 64px;
  }

  .student-sidebar {
    position: static;
    order: -1;
  }
}

/* ================================
   FEATURES – SIX SERVICE CARDS
================================ */
.service-cards-section {
  padding: 80px 0;
  background: #ffffff;
}

.service-card-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 22px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
  text-align: left;
  transition: 0.25s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.service-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: #475569;
  line-height: 1.55;
}

/* ===========================
   ADMIN DASHBOARD – SHARED
   =========================== */

/* Grid layouts for cards */
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr);
  gap: 24px;
  margin-top: 24px;
}

/* Generic card container */
.card {
  background: #020617;
  border-radius: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.75);
}

.card h2 {
  font-size: 18px;
  font-weight: 700;
  color: #e5e7eb;
  margin-bottom: 10px;
}

.card p,
.card li,
.card span {
  font-size: 14px;
  color: #9ca3af;
}

.card-accent {
  border-color: #6366f1;
  box-shadow:
    0 0 0 1px rgba(129, 140, 248, 0.65),
    0 24px 60px rgba(37, 99, 235, 0.55);
}

/* Small helper note inside cards */
.card-note {
  font-size: 12px;
  margin-top: 10px;
  color: #9ca3af;
}

/* ===========================
   MODULES – PILLS & LISTS
   =========================== */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.5);
}

.pill-green {
  background: rgba(22, 163, 74, 0.1);
  border-color: rgba(34, 197, 94, 0.4);
  color: #bbf7d0;
}

.pill-blue {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.4);
  color: #bfdbfe;
}

.pill-purple {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(139, 92, 246, 0.4);
  color: #e9d5ff;
}

.pill-amber {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fed7aa;
}

.pill-red {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

/* Module lists */
.module-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.module-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.module-meta {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
}

/* Module type tiles */
.module-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.module-type {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 14px;
  padding: 12px 13px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.module-type .emoji {
  font-size: 20px;
  display: inline-block;
  margin-bottom: 4px;
}

/* ===========================
   ASSIGNMENTS – DEADLINES
   =========================== */

.deadline-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.deadline-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.deadline-list span {
  font-size: 12px;
  color: #94a3b8;
}

/* ===========================
   QUIZZES – METRICS + MINI BARS
   =========================== */

.quiz-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 14px 0;
}

.quiz-metrics > div {
  min-width: 120px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.metric-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
}

.metric-value {
  font-size: 20px;
  font-weight: 700;
  color: #e5e7eb;
}

.metric-success {
  color: #4ade80;
}

/* Mini bar chart */
.mini-bar-chart {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.mini-bar-label {
  width: 110px;
  color: #cbd5f5;
}

.mini-bar-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.45);
  overflow: hidden;
}

.mini-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #22c55e);
}

.mini-bar-value {
  width: 44px;
  text-align: right;
  font-size: 12px;
  color: #e5e7eb;
}

/* Difficulty pills */
.difficulty-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 14px;
}

/* Bullet helper list */
.bullet-list {
  margin: 0;
  padding-left: 18px;
}

.bullet-list li {
  margin-bottom: 6px;
  font-size: 13px;
}

/* ===========================
   REPORTS – DASHBOARD CARDS
   =========================== */

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin: 18px 0 24px;
}

.dashboard-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.dashboard-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 6px;
}

.dashboard-card .value {
  font-size: 24px;
  font-weight: 800;
  color: #e5e7eb;
}

.dashboard-card .change {
  margin-top: 4px;
  font-size: 12px;
  color: #22c55e;
}

/* ===========================
   REPORTS – BAR CHART + DONUTS
   =========================== */

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.3fr);
  gap: 22px;
  margin-top: 10px;
}

.chart-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 18px;
  padding: 18px 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

/* Vertical bars */
.bar-chart {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.bar-row span:first-child {
  width: 120px;
  color: #e5e7eb;
}

.bar-track {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.45);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
}

.bar-value {
  width: 44px;
  text-align: right;
  font-size: 12px;
  color: #e5e7eb;
}

/* Donut charts */
.donut-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 14px;
}

.donut {
  position: relative;
  width: 110px;
  height: 110px;
}

.donut-ring {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border-width: 10px;
  border-style: solid;
  box-sizing: border-box;
  opacity: 0.95;
}

.donut-live {
  border-color: #22c55e;
}

.donut-ondemand {
  border-color: #6366f1;
}

.donut-center {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.donut-value {
  font-size: 18px;
  font-weight: 700;
  color: #e5e7eb;
}

.donut-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

/* ===========================
   BEHAVIOUR HEATMAP
   =========================== */

.behavior-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 22px;
  margin-top: 24px;
}

.behavior-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.behavior-heatmap {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.behavior-cell {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: #020617;
  border: 1px solid rgba(30, 64, 175, 0.3);
}

/* Intensity levels using data-level attribute */
.behavior-cell[data-level="low"] {
  background: rgba(37, 99, 235, 0.15);
}

.behavior-cell[data-level="mid"] {
  background: rgba(59, 130, 246, 0.5);
}

.behavior-cell[data-level="high"] {
  background: rgba(96, 165, 250, 0.9);
}

.behavior-legend {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}

.behavior-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.behavior-legend .low::before,
.behavior-legend .mid::before,
.behavior-legend .high::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.behavior-legend .low::before {
  background: rgba(37, 99, 235, 0.2);
}

.behavior-legend .mid::before {
  background: rgba(59, 130, 246, 0.55);
}

.behavior-legend .high::before {
  background: rgba(96, 165, 250, 0.95);
}

/* ===========================
   LIVE EVENTS – SPARKLINE
   =========================== */

.sparkline-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 80px;
}

.sparkline-bars > div {
  flex: 1;
  border-radius: 10px;
  background: linear-gradient(180deg, #22c55e, #15803d);
  opacity: 0.9;
}

/* ===========================
   ADMIN CARDS – WHITE THEME
   Overrides previous dark theme
   =========================== */

.card,
.dashboard-card,
.chart-card,
.behavior-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
  color: #111827 !important;
}

/* Headings inside cards */
.card h2,
.dashboard-card h3,
.chart-card h2,
.behavior-card h2 {
  color: #111827 !important;
}

/* General text inside cards */
.card p,
.card li,
.card span,
.dashboard-card span,
.chart-card span,
.behavior-card span {
  color: #374151 !important;
}

/* Metrics text */
.metric-value,
.value {
  color: #111827 !important;
}

/* Pill styling stays color-based but text becomes dark */
.pill,
.module-meta,
.mini-bar-value,
.bar-value {
  color: #111827 !important;
}

/* Donut chart labels */
.donut-value,
.donut-label {
  color: #111827 !important;
}

/* Heatmap cells remain colored – border softened */
.behavior-cell {
  border: 1px solid #e5e7eb !important;
}

/* Remove dark backgrounds from module-type tiles */
.module-type {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  color: #111827 !important;
}

/* For sparkline bars – keep the bars colored but lighten them */
.sparkline-bars > div {
  background: linear-gradient(180deg, #4ade80, #22c55e) !important;
}











