/* ==========================================================================
   Ethiopian Future Builders Initiative (EFBI) - Core Design System
   ========================================================================== */

/* Fonts & Base Setup */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Red+Hat+Display:wght@400;500;700;800;900&family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;
}

/* Theme - Dark Mode (Default) */
:root, html[data-theme="dark"] {
  --bg-primary: #070a13;
  --bg-secondary: #0d1222;
  --bg-tertiary: #13192f;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --primary: #4f46e5;
  --primary-hover: #6366f1;
  --primary-glow: rgba(79, 70, 229, 0.2);
  
  --secondary: #10b981;
  --secondary-hover: #34d399;
  --secondary-glow: rgba(16, 185, 129, 0.15);
  
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-glow: rgba(245, 158, 11, 0.15);

  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.15);
  
  --border-color: rgba(255, 255, 255, 0.07);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  
  --glass-bg: rgba(13, 18, 34, 0.65);
  --glass-bg-hover: rgba(19, 25, 47, 0.8);
  --glass-shadow: rgba(0, 0, 0, 0.4);
  --glass-blur: blur(16px);
  
  --hero-glow-1: rgba(79, 70, 229, 0.12);
  --hero-glow-2: rgba(16, 185, 129, 0.08);

  --input-bg: rgba(7, 10, 19, 0.6);
}

/* Theme - Light Mode */
html[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --primary: #3b82f6;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(59, 130, 246, 0.15);
  
  --secondary: #059669;
  --secondary-hover: #047857;
  --secondary-glow: rgba(5, 150, 105, 0.15);
  
  --accent: #d97706;
  --accent-hover: #b45309;
  --accent-glow: rgba(217, 119, 6, 0.15);

  --danger: #dc2626;
  --danger-glow: rgba(220, 38, 38, 0.15);
  
  --border-color: rgba(15, 23, 42, 0.08);
  --border-color-hover: rgba(15, 23, 42, 0.15);
  
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-bg-hover: rgba(255, 255, 255, 0.9);
  --glass-shadow: rgba(15, 23, 42, 0.05);
  --glass-blur: blur(16px);
  
  --hero-glow-1: rgba(59, 130, 246, 0.08);
  --hero-glow-2: rgba(5, 150, 105, 0.05);

  --input-bg: rgba(255, 255, 255, 0.9);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Glassmorphism Panels */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px 0 var(--glass-shadow);
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
  background: var(--glass-bg-hover);
  box-shadow: 0 12px 36px 0 var(--glass-shadow);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.text-center { text-align: center; }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 64px 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #312e81 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #4338ca 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--secondary) 0%, #065f46 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--secondary-glow);
}
.btn-accent:hover {
  background: linear-gradient(135deg, var(--secondary-hover) 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 80px;
  border-bottom: 1px solid var(--border-color);
  background: rgba(7, 10, 19, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease, border 0.3s ease;
}

html[data-theme="light"] .navbar {
  background: rgba(248, 250, 252, 0.7);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-family: var(--font-heading);
  margin-right: 24px; /* Ensure space from the Home button */
}

.logo span {
  background: linear-gradient(to right, var(--primary-hover), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  transition: gap 0.3s ease;
}

/* Medium Screen Spacing Fix: reduce gaps between 901px and 1100px */
@media (min-width: 901px) and (max-width: 1100px) {
  .nav-links {
    gap: 18px;
  }
}

.nav-item a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.nav-item a:hover, .nav-item.active a {
  color: var(--text-primary);
}

.nav-item.active a {
  font-weight: 600;
  border-bottom: 2px solid var(--primary-hover);
  padding-bottom: 4px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 16px; /* Ensure spacing on the right side */
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
  transform: scale(1.05);
  background: var(--glass-bg-hover);
}

.theme-toggle-btn .sun-icon { display: none; }
.theme-toggle-btn .moon-icon { display: block; }

html[data-theme="light"] .theme-toggle-btn .sun-icon { display: block; }
html[data-theme="light"] .theme-toggle-btn .moon-icon { display: none; }

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Auth Items styling */
.mobile-auth-guest, .mobile-auth-student {
  display: none;
}

@media (max-width: 900px) {
  .hamburger { display: flex; z-index: 1100; }
  
  #nav-guest-actions, #nav-student-actions {
    display: none !important;
  }

  .mobile-auth-guest, .mobile-auth-student {
    width: 100%;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px;
    gap: 20px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }
}

/* Hero Section */
.hero-glow-effect-1 {
  position: absolute;
  top: 15%;
  left: 10%;
  width: 30vw;
  height: 30vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hero-glow-1) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.hero-glow-effect-2 {
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 35vw;
  height: 35vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--hero-glow-2) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: left;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--secondary);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-tagline::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 8px var(--secondary);
}

.hero-headline {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .hero-headline {
  background: linear-gradient(135deg, #0f172a 30%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheadline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid var(--border-color);
}

.hero-image {
  width: 100%;
  height: auto;
  transition: transform 0.8s ease;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.05);
}

/* Animated Floating Elements */
.floating-circle-1 {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, transparent 100%);
  opacity: 0.15;
  animation: float 6s ease-in-out infinite alternate;
}

.floating-circle-2 {
  position: absolute;
  bottom: -30px;
  right: -10px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary) 0%, transparent 100%);
  opacity: 0.12;
  animation: float 8s ease-in-out infinite alternate-reverse;
}

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-15px) rotate(15deg); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-content { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .hero-headline { font-size: 2.5rem; }
  .hero-subheadline { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
}

/* Statistics section styling (integrated in Hero/Home page) */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
  z-index: 1;
}

.stat-item {
  padding: 24px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1;
  background: linear-gradient(to right, var(--text-primary), var(--primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-number span {
  -webkit-text-fill-color: initial;
  color: var(--secondary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
  .stat-number { font-size: 2.2rem; }
}

/* Section Titles */
.section-header {
  max-width: 650px;
  margin: 0 auto 56px auto;
}

.section-tag {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  background: linear-gradient(to bottom, var(--text-primary) 60%, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .section-title {
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* About Us Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.about-card {
  padding: 32px;
  display: flex;
  gap: 20px;
}

.about-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-glow);
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.about-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Core Values Sub-grid */
.values-section {
  margin-top: 64px;
}

.value-card {
  padding: 24px;
  border-radius: var(--border-radius-md);
  text-align: center;
}

.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-glow);
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  border: 1px solid var(--border-color);
}

.value-card:nth-child(even) .value-icon {
  background: var(--secondary-glow);
  color: var(--secondary);
}

.value-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.value-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Programs Section */
.program-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.program-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.program-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--primary-glow);
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.program-badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  background: var(--secondary-glow);
  color: var(--secondary);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.program-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.program-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.program-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.program-duration {
  display: flex;
  align-items: center;
  gap: 6px;
}

.program-btn {
  color: var(--primary-hover);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.program-btn:hover {
  color: var(--text-primary);
}

/* Success Stories Carousel */
.stories-slider-container {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
}

.stories-track-wrapper {
  overflow: hidden;
}

.stories-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.story-slide {
  min-width: 100%;
  padding: 0 16px;
}

.story-card {
  padding: 48px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.story-image-box {
  width: 100%;
  height: 250px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-image-box i {
  font-size: 4rem;
  color: var(--text-muted);
}

.story-quote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 24px;
  position: relative;
}

.story-quote::before {
  content: '“';
  font-size: 3rem;
  position: absolute;
  top: -24px;
  left: -20px;
  color: var(--primary-glow);
  font-family: serif;
}

.story-author {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.story-info {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
}

.story-badge {
  font-size: 0.75rem;
  background: var(--primary-glow);
  color: var(--primary-hover);
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
}

/* Slider navigation */
.slider-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.slider-btn:hover {
  background: var(--glass-bg-hover);
  border-color: var(--text-secondary);
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-dot.active {
  width: 28px;
  border-radius: 5px;
  background: var(--primary-hover);
}

@media (max-width: 768px) {
  .story-card { grid-template-columns: 1fr; padding: 24px; text-align: center; }
  .story-quote::before { display: none; }
  .story-image-box { height: 180px; }
}

/* Gallery Section */
.gallery-masonry {
  columns: 3;
  column-gap: 24px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 24px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(7, 10, 19, 0.9) 0%, rgba(7, 10, 19, 0.2) 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: var(--transition-smooth);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-tag {
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.gallery-caption {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

@media (max-width: 900px) {
  .gallery-masonry { columns: 2; }
}
@media (max-width: 600px) {
  .gallery-masonry { columns: 1; }
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  padding: 24px;
  text-align: center;
}

.team-photo-box {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px auto;
  border: 2px solid var(--border-color);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo-box i {
  font-size: 3.5rem;
  color: var(--text-muted);
}

.team-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-bio {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.team-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.team-social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-glow);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.team-social-link:hover {
  color: var(--text-primary);
  background: var(--primary);
}

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* Contact Page Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  padding: 24px;
  display: flex;
  gap: 16px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-glow);
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  border: 1px solid var(--border-color);
}

.contact-info-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-info-val {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-form-box {
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-hover);
  box-shadow: 0 0 10px var(--primary-glow);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Footer Section */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 32px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.footer-brand-title span {
  color: var(--primary-hover);
}

.footer-desc {
  line-height: 1.5;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.footer-social:hover {
  background: var(--primary);
  transform: scale(1.05);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ==========================================================================
   DYNAMIC PAGES / ROUTER VIEWS
   ========================================================================== */
.router-view {
  display: none;
  animation: pageFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.router-view.active {
  display: block;
}

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

/* Page Header component */
.page-header {
  padding: 120px 0 48px 0;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-color);
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Courses Page styling */
.catalog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  background: var(--glass-bg);
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary-hover);
  box-shadow: 0 0 10px var(--primary-glow);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.filter-tags {
  display: flex;
  gap: 12px;
}

.filter-tag {
  padding: 10px 20px;
  border-radius: var(--border-radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-tag:hover, .filter-tag.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary-hover);
}

@media (max-width: 768px) {
  .catalog-controls { flex-direction: column; align-items: stretch; gap: 16px; }
  .search-box { max-width: none; }
}

/* Course cards */
.course-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.course-img-box {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

.course-img-box i {
  font-size: 3rem;
  color: var(--text-muted);
}

.course-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary);
  color: #ffffff;
}

.course-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-instructor {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.course-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.course-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.course-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  margin-top: auto;
}

.course-lessons, .course-duration {
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-action {
  margin-top: 16px;
  width: 100%;
}

/* ── Courses empty / no-results state ─────────────────────────────────── */
.courses-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px;
  gap: 16px;
  width: 100%;
  grid-column: 1 / -1;          /* span all columns when inside a grid parent */
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  animation: fadeInUp 0.5s ease both;
}

.courses-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.courses-empty-icon i,
.courses-empty-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--primary-hover);
}

.courses-empty-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.courses-empty-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.6;
  margin: 0;
}

/* Registration Form layout */
.register-container {
  max-width: 680px;
  margin: 0 auto;
}

.register-card {
  padding: 48px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .register-card { padding: 24px; }
}

.register-success-box {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.register-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--secondary-glow);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 24px auto;
  border: 1px solid var(--secondary);
}

.register-success-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Certification Page Previews */
.cert-perks {
  margin-bottom: 48px;
}

/* ==========================================================================
   PREMIUM EFBI CERTIFICATE — Luxury / Technology-Inspired Redesign
   ========================================================================== */

.cert-preview-card {
  max-width: 840px;
  margin: 0 auto;
  padding: 12px;
}

/* Outer wrapper — always light/cream for print fidelity */
.cert-frame-wrapper {
  width: 100%;
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #faf8f5 45%, #f5f7fc 100%);
  aspect-ratio: 1.414 / 1;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 4px 16px rgba(0,0,0,0.12);
  border-radius: 4px;
}

/* Outer border frame */
.cert-frame-wrapper::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1.5px solid #0b132b;
  pointer-events: none;
  z-index: 10;
  border-radius: 2px;
}

/* Inner gold accent border */
.cert-frame-wrapper::after {
  content: '';
  position: absolute;
  inset: 14px;
  border: 0.5px solid #c5a456;
  pointer-events: none;
  z-index: 10;
  border-radius: 1px;
}

/* Subtle geometric watermark background */
.cert-watermark {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Top accent bar */
.cert-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #0b132b 0%, #1a3a6b 40%, #c5a456 70%, #0b132b 100%);
  z-index: 5;
}

/* Bottom accent bar */
.cert-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #0b132b 0%, #c5a456 30%, #1a3a6b 60%, #0b132b 100%);
  z-index: 5;
}

/* Main content layout */
.cert-preview-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 5.5% 7%;
  text-align: center;
  z-index: 3;
  box-sizing: border-box;
  color: #0b132b;
}

/* ---- HEADER SECTION ---- */
.cert-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
}

.cert-org-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.cert-logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.cert-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #0b132b;
  text-transform: uppercase;
}

.cert-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: 0.58rem;
  font-weight: 400;
  color: #64748b;
  letter-spacing: 0.06em;
  font-style: italic;
}

/* ---- DIVIDER ---- */
.cert-divider {
  width: 60px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #c5a456, transparent);
  margin: 4px auto;
}

/* ---- HEADING GROUP ---- */
.cert-title-group {
  margin: 2px 0;
}

.cert-main-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #0b132b;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 2px;
}

.cert-sub-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  font-weight: 400;
  font-style: italic;
  color: #c5a456;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* ---- RECIPIENT SECTION ---- */
.cert-presented-to {
  font-family: 'Outfit', sans-serif;
  font-size: 0.62rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 4px 0 2px;
}

.cert-recipient {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: #0b132b;
  letter-spacing: 0.02em;
  line-height: 1;
  padding-bottom: 6px;
  border-bottom: 1.5px solid #c5a456;
  min-width: 280px;
  display: inline-block;
  margin: 2px 0 6px;
}

/* ---- COURSE DESCRIPTION ---- */
.cert-body-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.62rem;
  color: #475569;
  max-width: 480px;
  line-height: 1.6;
  margin: 0;
}

.cert-course-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: #0b132b;
  font-style: italic;
}

/* ---- ACHIEVEMENT BADGE ---- */
.cert-achievement-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 4px 0;
}

.cert-achievement-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid;
}

.cert-achievement-badge.pass {
  background: rgba(59,130,246,0.08);
  color: #1d4ed8;
  border-color: rgba(59,130,246,0.3);
}

.cert-achievement-badge.merit {
  background: rgba(147,51,234,0.08);
  color: #7c3aed;
  border-color: rgba(147,51,234,0.3);
}

.cert-achievement-badge.distinction {
  background: rgba(180,140,60,0.1);
  color: #92400e;
  border-color: rgba(180,140,60,0.4);
}

.cert-score-chip {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  color: #475569;
  background: rgba(0,0,0,0.04);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.08);
}

/* ---- THREE-COLUMN FOOTER ---- */
.cert-footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  padding-top: 8px;
  border-top: 0.5px solid rgba(197,164,86,0.4);
  gap: 16px;
}

.cert-footer-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.cert-footer-col.left {
  align-items: flex-start;
  text-align: left;
}

.cert-footer-col.right {
  align-items: flex-end;
  text-align: right;
}

.cert-footer-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.52rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 2px;
}

.cert-footer-value {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: #0b132b;
}

.cert-footer-id {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  color: #1a3a6b;
  letter-spacing: 0.05em;
}

/* ---- QR CODE PLACEHOLDER ---- */
.cert-qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.cert-qr-svg {
  width: 42px;
  height: 42px;
  opacity: 0.75;
}

.cert-verify-url {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.46rem;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

/* ---- SIGNATURES ---- */
.cert-sig-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.cert-sig-name {
  font-family: 'Great Vibes', cursive;
  font-size: 1.2rem;
  color: #1a3a6b;
  line-height: 1.1;
  transform: rotate(-2deg);
  user-select: none;
  display: block;
  margin-bottom: -2px;
}

.cert-sig-line {
  width: 130px;
  height: 0.5px;
  background: #0b132b;
  margin: 4px 0 2px;
}

.cert-sig-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.5rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---- MULTIPLE SIGNATURES ROW ---- */
.cert-sigs-row {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  align-items: flex-end;
}

.cert-sig-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- RESPONSIVE SCALING ---- */
@media (max-width: 768px) {
  .cert-logo { font-size: 0.55rem; }
  .cert-main-title { font-size: 1.25rem; }
  .cert-sub-title { font-size: 0.62rem; }
  .cert-recipient { font-size: 1.5rem; min-width: 200px; }
  .cert-body-text { font-size: 0.54rem; }
  .cert-sig-name { font-size: 0.95rem; }
  .cert-qr-svg { width: 32px; height: 32px; }
  .cert-achievement-badge, .cert-score-chip { font-size: 0.5rem; }
}

@media (max-width: 480px) {
  .cert-logo { font-size: 0.45rem; letter-spacing: 0.1em; }
  .cert-main-title { font-size: 0.95rem; }
  .cert-recipient { font-size: 1.1rem; min-width: 150px; }
  .cert-body-text { display: none; }
  .cert-sig-name { font-size: 0.8rem; }
  .cert-qr-svg { width: 26px; height: 26px; }
  .cert-achievement-row { gap: 6px; }
}

.cert-frame-wrapper {
  width: 100%;
  position: relative;
  background: #fdfbf7; /* Premium paper linen cream */
  border: 16px solid #050a30; /* Thick navy outer border */
  box-shadow: 0 15px 50px rgba(0,0,0,0.3);
  aspect-ratio: 1.414 / 1; /* A4 Landscape aspect ratio */
  overflow: hidden;
  box-sizing: border-box;
}

/* Gold inner border */
.cert-frame-wrapper::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 2px solid #c5a880; /* Gold inner line */
  pointer-events: none;
  z-index: 2;
}

/* Corner Geometries matching the Canva blueprint */
.cert-corner-tl {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 160px;
  height: 160px;
  background: #2e266d; /* Purple triangle */
  clip-path: polygon(0 0, 100% 0, 0 100%);
  opacity: 0.85;
  z-index: 1;
}

.cert-corner-tl-sub {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  background: #b1d4e0; /* Light blue accent triangle */
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 1;
}

.cert-corner-br {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  background: #2e266d;
  clip-path: polygon(100% 100%, 100% 0, 0 100%);
  opacity: 0.85;
  z-index: 1;
}

.cert-corner-br-sub {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: #b1d4e0;
  clip-path: polygon(100% 100%, 100% 0, 0 100%);
  z-index: 1;
}

.cert-preview-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 5% 8%;
  text-align: center;
  color: #0f172a;
  z-index: 3;
  box-sizing: border-box;
}

.cert-logo {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #050a30;
  text-transform: uppercase;
  margin-top: 10px;
}

.cert-title-group {
  margin: 10px 0;
}

.cert-main-title {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: #050a30;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.cert-sub-title {
  font-family: 'Red Hat Display', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #9b7a4d; /* Metallic Gold */
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.cert-text-present {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 8px 0;
}

.cert-recipient {
  font-family: 'Outfit', sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: #050a30;
  border-bottom: 2.5px solid #c5a880; /* Gold underline */
  padding-bottom: 4px;
  min-width: 320px;
  display: inline-block;
  letter-spacing: 0.03em;
}

.cert-details-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.76rem;
  color: #475569;
  max-width: 530px;
  line-height: 1.6;
  margin: 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cert-course-name {
  font-weight: 800;
  color: #2e266d;
}

/* Three-column premium footer */
.cert-footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(197, 168, 128, 0.4);
}

.cert-footer-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cert-footer-col.left {
  align-items: flex-start;
  text-align: left;
}

.cert-footer-col.right {
  align-items: flex-end;
  text-align: right;
}

.cert-footer-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
}

.cert-footer-value {
  font-size: 0.72rem;
  font-weight: 700;
  color: #050a30;
}

/* Premium Rotating Gold Security Seal */
.cert-seal-container {
  position: relative;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-gold-seal {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #fce0ad 0%, #dfa856 60%, #b8812c 100%);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(184, 129, 44, 0.35), inset 0 2px 4px rgba(255,255,255,0.4);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slow-rotate 25s linear infinite;
}

/* Spiked/sunburst edge overlay using CSS border spikes */
.cert-gold-seal::before {
  content: '';
  position: absolute;
  width: 90%;
  height: 90%;
  border: 2px dashed rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.cert-seal-star {
  position: absolute;
  color: #fcf6e8;
  font-size: 1.15rem;
  z-index: 5;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

@keyframes slow-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Realistic handwriting signature */
.cert-signature-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-signature-text {
  font-family: 'Great Vibes', cursive;
  font-size: 1.7rem;
  color: #1e3a8a;
  line-height: 1;
  margin-bottom: -2px;
  transform: rotate(-3deg);
  user-select: none;
}

@media (max-width: 768px) {
  .cert-frame-wrapper {
    border-width: 10px;
  }
  .cert-logo { font-size: 0.85rem; }
  .cert-main-title { font-size: 1.25rem; }
  .cert-sub-title { font-size: 0.8rem; }
  .cert-recipient { font-size: 1.45rem; min-width: 220px; }
  .cert-details-text { font-size: 0.62rem; margin: 4px 0; }
  .cert-seal-container { width: 50px; height: 50px; }
  .cert-seal-star { font-size: 0.85rem; }
  .cert-signature-text { font-size: 1.3rem; }
  .cert-footer-label { font-size: 0.55rem; }
  .cert-footer-value { font-size: 0.6rem; }
}

@media (max-width: 480px) {
  .cert-frame-wrapper {
    border-width: 6px;
  }
  .cert-logo { font-size: 0.65rem; letter-spacing: 0.1em; }
  .cert-main-title { font-size: 0.95rem; }
  .cert-sub-title { font-size: 0.65rem; }
  .cert-recipient { font-size: 1.1rem; min-width: 160px; }
  .cert-details-text { display: none; } /* Hide descriptions on tiny mobile */
  .cert-seal-container { width: 38px; height: 38px; }
  .cert-signature-text { font-size: 1rem; }
}

/* Certificate Verification page */
.verifier-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
}

.verifier-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.verifier-input {
  flex-grow: 1;
  padding: 14px 20px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-primary);
  font-family: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.verifier-input::placeholder {
  text-transform: none;
  font-weight: 400;
}

/* Verification Result Box */
.verifier-result {
  display: none;
  text-align: left;
  padding: 32px;
  border-radius: var(--border-radius-md);
  animation: slideDownIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.verifier-result.valid {
  border: 2px solid var(--secondary);
  background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(16, 185, 129, 0.04) 100%);
  box-shadow: 0 0 24px rgba(16, 185, 129, 0.15);
}

.verifier-result.invalid {
  border: 2px solid var(--danger);
  background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(239, 68, 68, 0.04) 100%);
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.15);
}

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

.verifier-result-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.verifier-result.valid .verifier-result-header { color: var(--secondary); }
.verifier-result.invalid .verifier-result-header { color: var(--danger); }

.verifier-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.verifier-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.verifier-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

@media (max-width: 500px) {
  .verifier-input-group { flex-direction: column; }
  .verifier-details-grid { grid-template-columns: 1fr; }
}

/* Blog Page styling */
.blog-featured {
  margin-bottom: 56px;
}

.blog-featured-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  padding: 40px;
  align-items: center;
}

.blog-featured-image {
  width: 100%;
  height: 320px;
  background: var(--bg-tertiary);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-featured-image i {
  font-size: 4rem;
  color: var(--text-muted);
}

.blog-tag {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-block;
}

.blog-featured-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.blog-featured-excerpt {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 1rem;
}

.blog-meta-info {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .blog-featured-card { grid-template-columns: 1fr; padding: 24px; }
  .blog-featured-image { height: 200px; }
  .blog-featured-title { font-size: 1.5rem; }
}

.blog-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card-img {
  width: 100%;
  height: 180px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

.blog-card-img i {
  font-size: 2.5rem;
  color: var(--text-muted);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  padding: 16px 24px;
  border-radius: var(--border-radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  font-weight: 600;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.success {
  border-left: 4px solid var(--secondary);
}

.toast.error {
  border-left: 4px solid var(--danger);
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   ADMIN DASHBOARD LAYOUT
   ========================================================================== */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 80px);
  margin-top: 80px;
  background-color: var(--bg-primary);
}

#admin-view .admin-layout {
  margin-top: 0;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-sidebar-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 12px 12px 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.admin-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.admin-menu-item:hover, .admin-menu-item.active {
  color: var(--text-primary);
  background: var(--primary-glow);
}

.admin-menu-item.active {
  border-left: 4px solid var(--primary-hover);
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.admin-main-content {
  padding: 40px;
  overflow-y: auto;
}

.admin-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.admin-view-panel {
  display: none;
}

.admin-view-panel.active {
  display: block;
}

/* Admin Dashboard Widgets */
.admin-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.admin-widget-card {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-data h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.widget-data .widget-val {
  font-size: 1.8rem;
  font-weight: 800;
}

.widget-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--primary-glow);
  color: var(--primary-hover);
}

/* Charts container */
.admin-charts-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-bottom: 32px;
}

.chart-card {
  padding: 24px;
}

.chart-container {
  position: relative;
  height: 280px;
  width: 100%;
}

/* Admin Tables styling */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th, .admin-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  background: var(--bg-tertiary);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: 0.8rem;
}

.admin-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

html[data-theme="light"] .admin-table tr:hover {
  background: rgba(0, 0, 0, 0.01);
}

/* Badges for tables */
.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.verified { background: var(--secondary-glow); color: var(--secondary); }
.status-badge.pending { background: var(--accent-glow); color: var(--accent); }
.status-badge.active { background: var(--secondary-glow); color: var(--secondary); }
.status-badge.inactive { background: var(--danger-glow); color: var(--danger); }

/* Table search and additions */
.table-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.table-search {
  max-width: 300px;
}

@media (max-width: 1024px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border-color); padding: 16px; }
  .admin-sidebar-title { display: none; }
  .admin-widgets { grid-template-columns: repeat(2, 1fr); }
  .admin-charts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .admin-widgets { grid-template-columns: 1fr; }
  .admin-main-content { padding: 16px; }
  .table-actions { flex-direction: column; align-items: stretch; gap: 12px; }
}

/* ==========================================================================
   Admin Login Gate & Auth Styles
   ========================================================================== */

/* Position the admin view section as a stacking context for the gate overlay */
#admin-view {
  position: relative;
  min-height: 100vh;
}

/* The login gate full-screen overlay */
#admin-login-gate {
  position: absolute;
  inset: 0;
  z-index: 200;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

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

/* Admin sidebar: push logout to bottom */
.admin-sidebar {
  display: flex;
  flex-direction: column;
}

/* Logout button in sidebar — styled as danger */
#btn-admin-logout {
  cursor: pointer;
  transition: var(--transition-fast);
}

#btn-admin-logout:hover {
  background: var(--danger-glow);
  color: var(--danger) !important;
  border-radius: var(--border-radius-sm);
}

/* On mobile: logout button flows inline */
@media (max-width: 1024px) {
  .admin-sidebar {
    flex-direction: row;
  }
  #btn-admin-logout {
    border-top: none !important;
    padding-top: 12px !important;
    margin-top: 0 !important;
    margin-left: auto;
  }
}

/* ==========================================================================
   Premium Assets: IDE Mockup & Certified Seal Styles
   ========================================================================== */

/* IDE Window Styling */
.ide-window {
  width: 100%;
  max-width: 520px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
  text-align: left; /* Reset text alignment to left */
}

.ide-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
  user-select: none;
}

.ide-dots {
  display: flex;
  gap: 8px;
}

.ide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.ide-dot.close { background: #ef4444; }
.ide-dot.minimize { background: #f59e0b; }
.ide-dot.maximize { background: #10b981; }

.ide-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-family: monospace;
}

.ide-editor-container {
  display: flex;
  height: 220px;
}

.ide-sidebar {
  width: 120px;
  background: rgba(0,0,0,0.15);
  border-right: 1px solid var(--border-color);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ide-file {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
}

.ide-file.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-weight: 600;
}

.ide-code-view {
  flex: 1;
  padding: 14px 16px;
  overflow: auto; /* Enable both horizontal and vertical scrolling */
  background: rgba(0, 0, 0, 0.08);
}

.ide-code {
  font-family: 'Fira Code', 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
  white-space: pre; /* Keep code lines on single line for scrolling */
}

.code-line {
  color: var(--text-muted);
  display: inline-block;
  width: 18px;
  text-align: right;
  margin-right: 10px;
  user-select: none;
}

.code-keyword { color: #f43f5e; font-weight: 600; }
.code-function { color: #3b82f6; }
.code-string { color: #10b981; }
.code-comment { color: var(--text-muted); font-style: italic; }

.ide-terminal {
  background: #04060b;
  border-top: 1px solid var(--border-color);
  padding: 12px 16px;
  font-family: monospace;
}

.ide-terminal-header {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ide-terminal-body {
  font-size: 0.75rem;
  line-height: 1.4;
}

.terminal-line {
  color: var(--text-secondary);
}

.terminal-prompt {
  color: var(--secondary);
}

.terminal-line.success {
  color: var(--secondary);
}

/* Floating AI Copilot Card */
.floating-copilot-card {
  position: absolute;
  bottom: -20px;
  right: -30px;
  width: 250px;
  padding: 16px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  z-index: 10;
  animation: float-slow 4s ease-in-out infinite alternate;
}

@keyframes float-slow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.copilot-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.copilot-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--secondary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.copilot-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.copilot-status {
  font-size: 0.65rem;
  color: var(--secondary);
}

.copilot-body {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Light Theme overrides for IDE */
html[data-theme="light"] .ide-window {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}
html[data-theme="light"] .ide-titlebar {
  background: #f1f5f9;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .ide-sidebar {
  background: #f8fafc;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}
html[data-theme="light"] .ide-code-view {
  background: #ffffff;
}
html[data-theme="light"] .ide-file.active {
  background: rgba(0, 0, 0, 0.04);
  color: #0f172a;
}
html[data-theme="light"] .ide-terminal {
  background: #0f172a;
}

/* Certified Seal Styling */
.certified-seal-wrapper {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 320px;
  margin: 0 auto;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  transition: var(--transition-smooth);
}

.certified-seal-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.seal-container {
  width: 160px;
  height: 160px;
  margin-bottom: 20px;
  position: relative;
}

.seal-svg {
  width: 100%;
  height: 100%;
}

.spinning-ring {
  transform-origin: center;
  animation: spin 25s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

.seal-title {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 4px;
  background: linear-gradient(135deg, #fbbf24 0%, var(--text-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.seal-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 12px;
  padding: 4px 10px;
  background: var(--secondary-glow);
  border-radius: 20px;
  display: inline-block;
}

.seal-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

/* Light Theme adjustments for Certified Seal */
html[data-theme="light"] .certified-seal-wrapper {
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}
html[data-theme="light"] .certified-seal-wrapper:hover {
  box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}
html[data-theme="light"] circle[fill="rgba(13, 18, 34, 0.7)"] {
  fill: rgba(255, 255, 255, 0.95);
}

/* Mobile Responsiveness tweaks for Hero mockups */
@media (max-width: 900px) {
  .floating-copilot-card {
    display: none; /* Prevent horizontal overflow on tablet/mobile screens */
  }
  .ide-window {
    max-width: 100%;
  }
  .ide-sidebar {
    display: none !important; /* Hide file tree sidebar on smaller devices to maximize code space */
  }
}

/* ==========================================================================
   Header Spacing and Auth Duplication Fixes
   ========================================================================== */

/* Desktop Specific: ALWAYS hide mobile-only auth links on larger screens */
@media (min-width: 901px) {
  .mobile-auth-guest,
  .mobile-auth-student {
    display: none !important;
  }
}

/* ==========================================================================
   Student Portal Panel Switching & Responsiveness
   ========================================================================== */

/* Toggles visibility of active/inactive student dashboard tabs */
.student-view-panel {
  display: none;
}

.student-view-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* Student Main Layout: Remove full-screen margins and stretch from admin layout */
#student-main-layout {
  margin-top: 0 !important;
  min-height: auto !important;
  background: transparent !important;
  gap: 32px;
  grid-template-columns: 260px 1fr;
}

#student-main-layout .admin-main-content {
  padding: 0 !important;
  overflow: visible;
}

/* Responsive sidebar and content stacking for tablets and mobile */
@media (max-width: 1024px) {
  #student-main-layout {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  /* Force student sidebar to stay vertical instead of horizontal scrolling row */
  #student-main-layout .admin-sidebar {
    flex-direction: column !important;
    width: 100% !important;
    border-right: none !important;
    border-bottom: none !important;
    padding: 24px !important;
    height: auto !important;
    overflow-x: visible !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }

  /* Adjust spacing inside sidebar for mobile stack */
  #student-main-layout .admin-sidebar div[style*="border-top"] {
    margin-top: 16px;
  }
}

/* Syllabus Grid and Progress summary adjustments for small mobile screens */
@media (max-width: 600px) {
  /* Stack the syllabus module checkmark cards vertically */
  #student-syllabus-grid .glass-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 16px !important;
  }

  #student-syllabus-grid .glass-card label {
    align-self: flex-end !important;
    width: auto !important;
    margin-top: 4px;
  }

  /* Stack course completion progress bar header vertically */
  #student-learning-portal .glass-panel[style*="justify-content: space-between"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 20px !important;
    padding: 20px !important;
  }

  #student-learning-portal .glass-panel[style*="justify-content: space-between"] > div {
    text-align: left !important;
    width: 100%;
  }

  #student-learning-portal .glass-panel[style*="justify-content: space-between"] > div:last-child {
    min-width: 100% !important;
  }
}

/* ==========================================================================
   Homepage Animations & Responsiveness Upgrades
   ========================================================================== */

/* Blinking cursor for typewriter effect */
.code-cursor {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  background-color: var(--secondary);
  margin-left: 2px;
  animation: cursor-blink 0.8s step-end infinite;
  vertical-align: middle;
}

@keyframes cursor-blink {
  from, to { background-color: transparent; }
  50% { background-color: var(--secondary); }
}

/* IDE Lift hover effect */
.ide-window:hover {
  transform: translateY(-8px);
  box-shadow: 0 35px 70px rgba(0,0,0,0.7);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Make sure gallery SVGs scale on hover */
.gallery-item svg {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover svg {
  transform: scale(1.05);
}

/* Extra-small screens stats counter stacking */
@media (max-width: 480px) {
  .stats-bar {
    grid-template-columns: 1fr !important;
    gap: 16px;
    padding: 16px !important;
  }
  .stat-item {
    padding: 12px 0;
  }
  .hero-headline {
    font-size: 2.1rem !important;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ==========================================================================
   PHASE 1: SKELETON LOADERS (Shimmer Effect)
   ========================================================================== */
@keyframes shimmer {
  0% { background-position: -800px 0; }
  100% { background-position: 800px 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border-color-hover) 50%, var(--bg-tertiary) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 8px;
}

.skeleton-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  overflow: hidden;
}

.skeleton-line {
  height: 14px;
  margin-bottom: 10px;
  border-radius: 6px;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.full { width: 100%; }
.skeleton-img {
  height: 140px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.skeleton-btn {
  height: 40px;
  border-radius: 10px;
  margin-top: 16px;
}

/* Table skeleton rows */
.skeleton-row {
  display: grid;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}
.skeleton-cell {
  height: 16px;
  border-radius: 6px;
}

/* ==========================================================================
   PHASE 2: VIEW TRANSITION ANIMATIONS
   ========================================================================== */
.router-view {
  animation: none;
}

.router-view.active {
  animation: viewFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* ==========================================================================
   PHASE 3: QUIZ STYLES
   ========================================================================== */
.quiz-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 10, 19, 0.9);
  backdrop-filter: blur(12px);
  padding: 20px;
}

.quiz-modal-overlay.open {
  display: flex;
}

.quiz-modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.quiz-header {
  margin-bottom: 24px;
}
.quiz-module-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-glow);
  color: var(--primary-hover);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.quiz-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.quiz-progress-track {
  width: 100%;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  margin-top: 14px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-hover), var(--secondary));
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-question-text {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.quiz-option {
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.quiz-option:hover {
  border-color: var(--primary-hover);
  background: var(--primary-glow);
  transform: translateX(4px);
}

.quiz-option.selected {
  border-color: var(--primary-hover);
  background: var(--primary-glow);
}

.quiz-option.correct {
  border-color: var(--secondary);
  background: var(--secondary-glow);
  color: var(--secondary);
}

.quiz-option.wrong {
  border-color: var(--danger);
  background: var(--danger-glow);
  color: var(--danger);
}

.quiz-option-letter {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--border-color-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.quiz-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.quiz-result-box {
  text-align: center;
  padding: 24px 0;
}
.quiz-score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  border: 4px solid;
}
.quiz-score-circle.pass {
  background: var(--secondary-glow);
  border-color: var(--secondary);
  color: var(--secondary);
}
.quiz-score-circle.fail {
  background: var(--danger-glow);
  border-color: var(--danger);
  color: var(--danger);
}
.quiz-score-circle.neutral {
  background: var(--primary-glow);
  border-color: var(--primary-hover);
  color: var(--primary-hover);
}

/* Quiz trigger button on lesson cards */
.btn-quiz {
  background: var(--primary-glow);
  color: var(--primary-hover);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-quiz:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}
.btn-quiz.completed {
  background: var(--secondary-glow);
  color: var(--secondary);
  border-color: var(--secondary);
}

/* Certificate unlock banner */
.cert-unlock-banner {
  background: linear-gradient(135deg, var(--secondary-glow), var(--accent-glow));
  border: 1px solid var(--secondary);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-top: 24px;
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  from { box-shadow: 0 0 0px rgba(16, 185, 129, 0.2); }
  to   { box-shadow: 0 0 30px rgba(16, 185, 129, 0.4); }
}

/* ==========================================================================
   PHASE 4: IMPROVED ADMIN MODALS
   ========================================================================== */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 350;
  display: none;
  align-items: flex-start;
  justify-content: center;
  background: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  padding: 24px;
}

.admin-modal-overlay.open {
  display: flex;
}

.admin-modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  width: 100%;
  max-width: 560px;
  padding: 36px;
  position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  margin: auto;
}

.admin-modal-box.wide {
  max-width: 700px;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.admin-modal-title {
  font-size: 1.4rem;
  font-weight: 700;
}

.admin-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.admin-modal-close:hover {
  background: var(--danger-glow);
  border-color: var(--danger);
  color: var(--danger);
}

/* Student Detail Modal */
.student-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.student-detail-item {
  background: var(--bg-tertiary);
  border-radius: 10px;
  padding: 14px 16px;
}

.student-detail-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.student-detail-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.student-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   PHASE 5: NOTIFICATIONS PANEL
   ========================================================================== */
.notif-badge {
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  margin-left: auto;
  animation: notif-pulse 2s ease-in-out infinite;
}

@keyframes notif-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 60vh;
  overflow-y: auto;
}

.notif-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.notif-item:hover {
  border-color: var(--primary-hover);
  background: var(--primary-glow);
}

.notif-item.unread {
  border-left: 3px solid var(--primary-hover);
}

.notif-item.read {
  opacity: 0.6;
}

.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-icon.info { background: var(--primary-glow); color: var(--primary-hover); }
.notif-icon.success { background: var(--secondary-glow); color: var(--secondary); }
.notif-icon.warning { background: var(--accent-glow); color: var(--accent); }
.notif-icon.danger { background: var(--danger-glow); color: var(--danger); }

.notif-text {
  flex: 1;
}

.notif-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.notif-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.notif-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   PHASE 6: CONTACT MESSAGES PANEL (Admin)
   ========================================================================== */
.contact-msg-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px 20px;
  transition: all 0.2s ease;
}

.contact-msg-card:hover {
  border-color: var(--primary-hover);
  transform: translateX(4px);
}

.contact-msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-msg-from {
  font-weight: 700;
  font-size: 0.95rem;
}

.contact-msg-email {
  font-size: 0.8rem;
  color: var(--primary-hover);
}

.contact-msg-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.contact-msg-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
  margin-top: 10px;
}

/* ==========================================================================
   PHASE 7: MICRO-ANIMATIONS & HOVER EFFECTS
   ========================================================================== */

/* Card hover lift */
.glass-card, .glass-panel {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
}

/* Only on desktop — don't apply on mobile */
@media (min-width: 768px) {
  .program-card:hover,
  .value-card:hover,
  .about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px var(--glass-shadow);
  }
}

/* Button press effect */
.btn:active {
  transform: scale(0.97);
}

/* Icon pulse on active admin tab */
.admin-menu-item.active i {
  animation: icon-pop 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes icon-pop {
  0% { transform: scale(0.75); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

/* Progress bar animation */
#student-progress-bar {
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   PHASE 8: WARNING TOAST TYPE
   ========================================================================== */
.toast.warning {
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent);
}

/* ==========================================================================
   PHASE 9: CSV EXPORT BUTTON
   ========================================================================== */
.btn-export {
  background: var(--secondary-glow);
  color: var(--secondary);
  border: 1px solid var(--secondary);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-export:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--secondary-glow);
}

/* ==========================================================================
   PHASE 10: ACCESSIBILITY — FOCUS VISIBLE RINGS
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--primary-hover);
  outline-offset: 3px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary-hover);
  outline-offset: 3px;
}

/* Modal accessibility trap visual indicator */
.modal-overlay:focus {
  outline: none;
}

/* ==========================================================================
   PHASE 11: MOBILE RESPONSIVENESS FIXES (320px–375px)
   ========================================================================== */
@media (max-width: 375px) {
  .admin-layout {
    flex-direction: column !important;
    gap: 16px;
  }
  .admin-sidebar {
    width: 100% !important;
    min-width: unset !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding-bottom: 16px !important;
  }
  .admin-widgets {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .admin-modal-box {
    padding: 24px 18px;
  }
  .quiz-modal-box {
    padding: 24px 18px;
  }
  .student-detail-grid {
    grid-template-columns: 1fr !important;
  }
  .table-responsive {
    font-size: 0.78rem;
  }
  .table-actions {
    flex-direction: column !important;
    gap: 10px !important;
  }
}

@media (max-width: 480px) {
  .admin-charts-grid {
    grid-template-columns: 1fr !important;
  }
  .admin-modal-box {
    padding: 24px 16px;
    border-radius: 16px;
  }
  .student-detail-grid {
    grid-template-columns: 1fr !important;
  }
  .student-detail-actions {
    flex-direction: column;
  }
  .student-detail-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .quiz-actions {
    flex-direction: column;
  }
  .quiz-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .notif-item {
    flex-direction: row;
  }
}

/* ==========================================================================
   PHASE 12: STUDENT PORTAL ENHANCEMENTS
   ========================================================================== */

/* Lesson card with quiz button */
.lesson-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lesson-card:hover {
  border-color: var(--border-color-hover);
}

.lesson-card.completed {
  border-left: 3px solid var(--secondary);
}

.lesson-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.lesson-num-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.lesson-num-badge.done {
  background: var(--secondary-glow);
  color: var(--secondary);
}

.lesson-num-badge.pending {
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.lesson-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

.lesson-card-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lesson-check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* Stats cards row on student portal */
.student-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.student-stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.student-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-hover);
  line-height: 1;
  margin-bottom: 4px;
}

.student-stat-value.green { color: var(--secondary); }
.student-stat-value.amber { color: var(--accent); }

.student-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 480px) {
  .student-stats-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Learning timeline */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--secondary-glow);
  border: 2px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.timeline-content {
  flex: 1;
  padding-bottom: 12px;
}

.timeline-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Claim certificate button */
.claim-cert-btn {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.claim-cert-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.4);
}

.claim-cert-btn:active {
  transform: scale(0.97);
}

/* ==========================================================================
   SETTINGS & SYNC CENTER — Admin Panel
   ========================================================================== */

/* Sync status badge */
.settings-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  width: fit-content;
}

.sync-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-muted);
  display: inline-block;
  transition: background 0.3s ease;
}

.sync-indicator.live {
  background: var(--secondary);
  box-shadow: 0 0 8px var(--secondary);
  animation: pulse-dot 2s infinite;
}

.sync-indicator.sandbox {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.sync-indicator.error {
  background: var(--danger);
  box-shadow: 0 0 8px var(--danger);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Diagnostics Terminal */
.diagnostics-terminal {
  background: #0d0d14;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px 24px;
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: 0.78rem;
  line-height: 1.8;
  min-height: 180px;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.terminal-line {
  display: block;
  white-space: pre-wrap;
}

.terminal-line.system {
  color: var(--secondary);
  font-weight: 700;
}

.terminal-line.muted {
  color: var(--text-muted);
}

.terminal-line.ok {
  color: #4ade80;
}

.terminal-line.warn {
  color: var(--accent);
}

.terminal-line.err {
  color: var(--danger);
}

.terminal-line.info {
  color: var(--primary-hover);
}

.terminal-cursor::after {
  content: '▮';
  animation: blink 1s step-end infinite;
  color: var(--secondary);
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Setup step guide */
.setup-step {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border-color);
  align-items: flex-start;
}

.setup-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-glow);
  border: 2px solid var(--primary-hover);
  color: var(--primary-hover);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.setup-step-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.setup-step-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.setup-step-desc code {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.78rem;
  color: var(--secondary);
  font-family: monospace;
}

/* Course Live Preview Card (inside course modal) */
.course-preview-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.course-preview-card .preview-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.35);
  color: var(--primary-hover);
  display: inline-block;
}

.course-preview-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.course-preview-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 8px 0 4px;
  color: var(--text-primary);
}

.course-preview-instructor {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.course-preview-body {
  padding: 16px 20px;
}

.course-preview-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.course-preview-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.course-preview-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* Smart Retry / Sync Recovery Modal */
#sync-recovery-modal .modal-card {
  max-width: 480px;
}

.recovery-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.recovery-option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
  color: var(--text-primary);
  font-family: var(--font-body);
}

.recovery-option-btn:hover {
  background: rgba(99,102,241,0.08);
  border-color: var(--primary-hover);
}

.recovery-option-btn .recovery-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.recovery-option-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.recovery-option-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MY COURSES PAGE
   ========================================================================== */

/* ── Enrolled course card ────────────────────────────────────────────────── */
.my-course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.my-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}

/* ── Thumbnail icon box ──────────────────────────────────────────────────── */
.mc-thumb {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
  border-bottom: 1px solid var(--border-color);
}

.mc-thumb i {
  width: 56px;
  height: 56px;
  stroke: var(--primary);
  opacity: 0.9;
}

.mc-enrolled-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(16, 185, 129, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(16, 185, 129, 0.35);
  backdrop-filter: blur(6px);
}

.mc-enrolled-badge i {
  width: 11px;
  height: 11px;
  stroke: var(--secondary);
}

.mc-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
}

/* ── Card body ───────────────────────────────────────────────────────────── */
.mc-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0;
}

.mc-instructor {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.mc-title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 18px;
  color: var(--text-primary);
}

/* ── Progress section ────────────────────────────────────────────────────── */
.mc-progress-section {
  margin-bottom: 16px;
}

.mc-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.mc-progress-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mc-progress-pct {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary);
}

.mc-block-bar {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--primary-hover);
  margin-top: 5px;
  line-height: 1;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
}

.mc-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 100px;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.mc-progress-fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.mc-progress-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 30px;
  background: rgba(255,255,255,0.25);
  animation: mcShimmer 1.6s ease-in-out infinite;
  border-radius: 100px;
}

@keyframes mcShimmer {
  0%   { opacity: 0; transform: translateX(-20px); }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(10px); }
}

/* ── Stats row (modules / last activity) ─────────────────────────────────── */
.mc-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 12px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 18px;
  gap: 8px;
  flex-wrap: wrap;
}

.mc-stat {
  display: flex;
  align-items: center;
  gap: 5px;
}

.mc-stat i {
  width: 13px;
  height: 13px;
  stroke: var(--primary);
}

/* ── Continue Learning button ────────────────────────────────────────────── */
.mc-cta {
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.mc-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.mc-cta i {
  width: 16px;
  height: 16px;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.mc-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px;
  gap: 18px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-xl);
  animation: fadeInUp 0.5s ease both;
}

.mc-empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-glow), var(--secondary-glow));
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mc-empty-icon i {
  width: 36px;
  height: 36px;
  stroke: var(--primary);
}

.mc-empty-title {
  font-size: 1.35rem;
  font-weight: 800;
}

.mc-empty-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 360px;
  line-height: 1.6;
}

/* ==========================================================================
   STUDENT CERTIFICATE DASHBOARD
   ========================================================================== */

/* Dashboard Header */
.sc-dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.sc-dashboard-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.sc-dashboard-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.5;
}

.sc-verify-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 0.82rem;
  padding: 9px 18px;
  flex-shrink: 0;
}

/* Certificate Card Grid */
.sc-cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Individual Cert Card */
.sc-cert-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: fadeInUp 0.4s ease both;
}

.sc-cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  border-color: var(--secondary);
}

/* ── Mini Certificate Thumbnail ─────────────────────────────── */
.sc-cert-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1.6 / 1;
  background: linear-gradient(145deg, #ffffff 0%, #faf8f5 45%, #f5f7fc 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Thumb top accent bar */
.sc-thumb-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0b132b 0%, #1a3a6b 40%, #c5a456 70%, #0b132b 100%);
  z-index: 4;
}

/* SVG Watermark positioned absolute */
.sc-thumb-watermark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Thumb inner content */
.sc-thumb-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 12px 16px;
}

.sc-thumb-logomark {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
}

.sc-thumb-heading {
  font-family: 'Playfair Display', serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: #0b132b;
  letter-spacing: 0.04em;
}

.sc-thumb-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c5a456, transparent);
  margin: 2px auto;
}

.sc-thumb-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0b132b;
  max-width: 200px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sc-thumb-course {
  font-family: 'Outfit', sans-serif;
  font-size: 0.58rem;
  color: #64748b;
  max-width: 200px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Achievement ribbon on thumbnail corner */
.sc-thumb-ribbon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  z-index: 5;
}

/* ── Card Body ───────────────────────────────────────────────── */
.sc-cert-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sc-cert-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sc-cert-course {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.sc-cert-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Achievement Badges ─────────────────────────────────────── */
.sc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid;
}

.sc-badge-pass, .sc-thumb-ribbon.sc-badge-pass {
  background: rgba(59,130,246,0.1);
  color: #1d4ed8;
  border-color: rgba(59,130,246,0.3);
}

.sc-badge-merit, .sc-thumb-ribbon.sc-badge-merit {
  background: rgba(147,51,234,0.1);
  color: #7c3aed;
  border-color: rgba(147,51,234,0.3);
}

.sc-badge-distinction, .sc-thumb-ribbon.sc-badge-distinction {
  background: rgba(180,140,60,0.12);
  color: #92400e;
  border-color: rgba(180,140,60,0.4);
}

.sc-score-chip {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

/* ── Detail Rows ─────────────────────────────────────────────── */
.sc-cert-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.sc-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.sc-detail-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.sc-detail-value {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.sc-cert-id {
  font-family: 'Montserrat', monospace;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--primary-hover);
  letter-spacing: 0.03em;
}

/* ── Action Buttons ─────────────────────────────────────────── */
.sc-cert-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sc-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 12px;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
}

.sc-action-view {
  background: var(--primary-glow);
  color: var(--primary-hover);
  border-color: rgba(var(--primary-rgb, 59,130,246), 0.25);
}

.sc-action-view:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.sc-action-verify {
  background: var(--secondary-glow, rgba(16,185,129,0.1));
  color: var(--secondary);
  border-color: rgba(16,185,129, 0.25);
}

.sc-action-verify:hover {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

.sc-action-download {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.sc-action-download:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Empty State ─────────────────────────────────────────────── */
.sc-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px;
  gap: 18px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-xl);
  animation: fadeInUp 0.5s ease both;
}

.sc-empty-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-glow), rgba(197,164,86,0.15));
  border: 2px solid rgba(197,164,86,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-empty-icon i {
  width: 40px;
  height: 40px;
  stroke: #c5a456;
}

.sc-empty-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.sc-empty-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 420px;
  line-height: 1.7;
}

/* ==========================================================================
   CERTIFICATE VIEWER MODAL — Premium Full-Screen Viewer
   ========================================================================== */

/* Overlay Backdrop */
.cert-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 9900;
  background: rgba(5, 8, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

/* Container */
.cert-viewer-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  animation: slideUpFade 0.3s ease;
  scrollbar-width: thin;
}

/* Close Button */
.cert-viewer-close {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.cert-viewer-close:hover {
  background: var(--danger-glow, rgba(239,68,68,0.1));
  color: var(--danger);
  border-color: var(--danger);
}

/* Two-Column Grid */
.cert-viewer-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  min-height: 550px;
}

/* Left Preview Pane */
.cert-viewer-preview-pane {
  padding: 36px 32px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%);
  border-right: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  border-radius: 20px 0 0 20px;
}

/* Right Actions Sidebar */
.cert-viewer-actions-sidebar {
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg-secondary);
  border-radius: 0 20px 20px 0;
}

/* Active Credential Badge */
.cert-badge-active {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.25);
  margin-bottom: 12px;
}

.cert-viewer-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.cert-viewer-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

/* Metadata Box */
.cert-viewer-meta-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cert-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cert-meta-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cert-meta-value {
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cv-id-mono {
  font-family: 'Montserrat', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary-hover);
  letter-spacing: 0.04em;
}

/* Action Buttons List */
.cert-viewer-action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.cert-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
.cert-action-btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}

.cert-action-btn.primary:hover {
  background: var(--primary-hover, #4f46e5);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.45);
}

.cert-action-btn.secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.cert-action-btn.secondary:hover {
  background: var(--primary-glow);
  color: var(--primary-hover);
  border-color: var(--primary-hover);
}

/* Trust Footer */
.cert-viewer-trust-footer {
  display: flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

/* Responsive collapse to stacked on small screens */
@media (max-width: 768px) {
  .cert-viewer-grid {
    grid-template-columns: 1fr;
  }
  .cert-viewer-preview-pane {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 20px 20px 0 0;
    padding: 24px 16px;
    min-height: auto;
  }
  .cert-viewer-actions-sidebar {
    border-radius: 0 0 20px 20px;
    padding: 24px 20px;
  }
}

/* ==========================================================================
   COURSERA-STYLE LEARNING PORTAL (lp-*) — PREMIUM REDESIGN
   ========================================================================== */

/* Top bar — sticky below main nav */
.lp-topbar {
  position: sticky;
  top: 72px;
  z-index: 90;
  background: #0d1117;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.lp-topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  max-width: 1600px;
  margin: 0 auto;
}

.lp-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
}

.lp-back-btn:hover {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.3);
  color: #818cf8;
}

.lp-course-info {
  flex: 1;
  min-width: 0;
}

.lp-course-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-course-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

.lp-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lp-cert-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.3s;
}

.lp-cert-badge.locked {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
}

.lp-cert-badge.unlocked {
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.35);
  color: #34d399;
  animation: certGlow 2s ease-in-out infinite alternate;
}

@keyframes certGlow {
  from { box-shadow: 0 0 0 rgba(16,185,129,0.3); }
  to   { box-shadow: 0 0 12px rgba(16,185,129,0.25); }
}

/* Main layout: content + sidebar */
.lp-body {
  display: grid;
  grid-template-columns: 1fr 360px;
  min-height: calc(100vh - 130px);
  align-items: start;
  background: #090d16;
}

/* Left: Video + content */
.lp-content-area {
  padding: 24px 32px 60px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

/* Video wrapper */
.lp-video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

.lp-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Full-top overlay: blocks YouTube title bar & links on hover */
.lp-video-top-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #000;
  z-index: 5;
  pointer-events: auto;
  cursor: default;
}

/* Top-right: hides YouTube logo watermark & share button */
.lp-video-topright-mask {
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 64px;
  background: #000;
  z-index: 6;
  pointer-events: auto;
}

/* Bottom-left: hides YouTube branding in controls */
.lp-video-bottomleft-mask {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 140px;
  height: 48px;
  background: #000;
  z-index: 6;
  pointer-events: auto;
}

/* Loading placeholder */
.lp-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0d14;
  z-index: 6;
  border-radius: 14px;
}

.lp-video-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: rgba(255,255,255,0.35);
  font-size: 0.88rem;
  font-weight: 500;
}

/* Spinner */
.lp-loader {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(99,102,241,0.15);
  border-top-color: #818cf8;
  border-radius: 50%;
  animation: lpSpin 0.9s linear infinite;
}

@keyframes lpSpin {
  to { transform: rotate(360deg); }
}

/* Lesson header below video */
.lp-lesson-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}

.lp-lesson-header-left {
  flex: 1;
  min-width: 0;
}

.lp-module-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(99,102,241,0.12);
  color: #818cf8;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.lp-lesson-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #f1f5f9;
  margin: 0;
  line-height: 1.3;
}

.lp-complete-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  border: 2px solid #6366f1;
  background: #6366f1;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.2px;
}

.lp-complete-btn:hover {
  background: #818cf8;
  border-color: #818cf8;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}

.lp-complete-btn.done {
  background: rgba(16,185,129,0.1);
  border-color: #10b981;
  color: #34d399;
}

.lp-complete-btn.done:hover {
  background: rgba(16,185,129,0.18);
  transform: translateY(-1px);
}

/* Tabs */
.lp-tabs {
  display: flex;
  gap: 0;
  padding: 16px 0 0 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow-x: auto;
}

.lp-tab {
  padding: 9px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  margin-bottom: -1px;
  letter-spacing: 0.2px;
}

.lp-tab:hover {
  color: rgba(255,255,255,0.8);
}

.lp-tab.active {
  color: #818cf8;
  border-bottom-color: #818cf8;
}

.lp-tab-body {
  min-height: 140px;
}

.lp-tab-panel {
  display: none;
  padding: 22px 0 10px 0;
  animation: lpTabFade 0.25s ease both;
}

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

.lp-tab-panel.active { display: block; }

.lp-desc-text {
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  font-size: 0.95rem;
  margin: 0;
}

.lp-notes-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 20px;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  line-height: 1.8;
  white-space: pre-wrap;
}

.lp-resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.lp-quiz-box {
  text-align: center;
  padding: 36px 24px;
  background: rgba(99,102,241,0.04);
  border: 1px dashed rgba(99,102,241,0.2);
  border-radius: 14px;
}

/* Prev/Next nav footer */
.lp-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0 0 0;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.lp-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: transparent;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.2px;
}

.lp-nav-btn.primary {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
}

.lp-nav-btn.primary:hover {
  background: #818cf8;
  border-color: #818cf8;
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
  transform: translateY(-1px);
}

.lp-nav-btn.secondary:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.lp-nav-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

/* Right sidebar */
.lp-sidebar {
  position: sticky;
  top: 120px;
  height: calc(100vh - 130px);
  border-left: 1px solid rgba(255,255,255,0.06);
  background: #0d1117;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lp-sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.lp-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.lp-sidebar-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.lp-sidebar-count {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
}

.lp-sidebar-progress {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.lp-sidebar-progress-bar {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 7px;
}

.lp-sidebar-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #10b981);
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}

.lp-sidebar-progress-pct {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}

/* Lesson list */
.lp-lesson-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.lp-lesson-list::-webkit-scrollbar { width: 4px; }
.lp-lesson-list::-webkit-scrollbar-track { background: transparent; }
.lp-lesson-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }

.lp-lesson-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  cursor: pointer;
  transition: background 0.15s;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  color: rgba(255,255,255,0.5);
  font-size: 0.84rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  line-height: 1.4;
}

.lp-lesson-item:hover {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.9);
}

.lp-lesson-item.active {
  background: rgba(99,102,241,0.1);
  color: #818cf8;
  font-weight: 700;
  border-left-color: #6366f1;
}

.lp-lesson-item.done {
  color: rgba(255,255,255,0.35);
}

.lp-lesson-item-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-lesson-item-icon.completed { color: #10b981; }
.lp-lesson-item-icon.active-icon { color: #818cf8; }
.lp-lesson-item-icon.pending { color: rgba(255,255,255,0.2); }

.lp-lesson-item-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

/* Mobile sidebar panel */
.lp-mobile-sidebar {
  position: fixed;
  bottom: 60px;
  left: 0;
  right: 0;
  background: #0d1117;
  border-top: 1px solid rgba(255,255,255,0.06);
  max-height: 60vh;
  overflow-y: auto;
  z-index: 200;
  padding: 10px 0;
}

/* Mobile bottom bar */
.lp-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0d1117;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 10px 16px;
  z-index: 201;
}

.lp-mobile-contents-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: #f1f5f9;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Resource link card */
.resource-link-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.resource-link-card:hover {
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.25);
  color: #818cf8;
}

/* Responsive */
@media (max-width: 1100px) {
  .lp-body { grid-template-columns: 1fr 300px; }
  .lp-content-area { padding: 20px 20px 48px 20px; }
}

@media (max-width: 860px) {
  .lp-body { grid-template-columns: 1fr; }
  .lp-sidebar { display: none; }
  .lp-mobile-bar { display: block; }
  .lp-content-area { padding: 16px 16px 80px 16px; }
  .lp-topbar-inner { padding: 10px 16px; }
  .lp-lesson-title { font-size: 1.15rem; }
}

/* ==========================================================================
   GLOBAL SYNC STATUS BADGE (navbar live/local indicator)
   ========================================================================== */
.global-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: default;
  transition: all 0.3s ease;
  user-select: none;
}
.global-sync-badge.live {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.global-sync-badge.sandbox {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.global-sync-badge.live .sync-dot {
  background: #10b981;
  animation: syncPulse 2s infinite;
}
.global-sync-badge.sandbox .sync-dot {
  background: #f59e0b;
}
@keyframes syncPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50%       { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}


/* ==========================================================================
   ONBOARDING STEP-BY-STEP WIZARD
   ========================================================================== */
.onboarding-progress-container {
  margin-bottom: 28px;
}

.onboarding-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.step-indicator.active {
  color: var(--primary);
  font-weight: 700;
}

.step-indicator.completed {
  color: #10b981;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.step-indicator.active .step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.step-indicator.completed .step-num {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  color: #10b981;
}

.step-line {
  height: 1px;
  background: var(--border-color);
  flex-grow: 1;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.onboarding-progress-bar-bg {
  height: 3px;
  background: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 12px;
}

.onboarding-progress-bar {
  height: 100%;
  width: 33%;
  background: linear-gradient(90deg, var(--primary), #10b981);
  transition: width 0.3s ease;
}

/* Onboarding Step Container — Strictly Separated Multi-Step Form */
.onboarding-step {
  display: none !important;
  animation: stepFade 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.onboarding-step.active {
  display: block !important;
}

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

/* ==========================================================================
   PREMIUM REGISTRATION FORM & INPUT FIELD STYLES (FIXED ALIGNMENT)
   ========================================================================== */

.input-icon-wrap {
  position: relative;
  width: 100%;
  display: block;
}

.input-field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 10;
  transition: color 0.2s ease;
}

.input-icon-wrap:focus-within .input-field-icon {
  color: var(--primary-hover);
}

.form-control.premium-input {
  width: 100%;
  height: 50px;
  padding: 12px 18px;
  font-size: 0.95rem;
  border-radius: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.form-control.premium-input.with-icon {
  padding-left: 50px !important;
}

select.form-control.premium-input.with-icon {
  padding-left: 50px !important;
  background-color: var(--bg-tertiary);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

select.form-control.premium-input option {
  background: #0f172a;
  color: #f8fafc;
  padding: 10px;
}

.form-control.premium-input:focus {
  border-color: var(--primary-hover);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
  outline: none;
}

/* Step Indicators */
.onboarding-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.step-indicator.active {
  color: var(--primary-hover);
  font-weight: 700;
}

.step-indicator.completed {
  color: var(--secondary);
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  transition: all 0.3s ease;
}

.step-indicator.active .step-num {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.4);
}

.step-indicator.completed .step-num {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--secondary);
  color: var(--secondary);
}

.step-line {
  height: 2px;
  background: var(--border-color);
  flex-grow: 1;
  margin: 0 12px;
  transition: all 0.3s ease;
}

.onboarding-progress-bar-bg {
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 14px;
}

.onboarding-progress-bar {
  height: 100%;
  width: 33%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.4s ease;
}

/* Modern Pathway Grid */
.pathway-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.pathway-card {
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  position: relative;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pathway-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(59, 130, 246, 0.4);
}

.pathway-card.selected {
  border-color: var(--primary-hover);
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.pathway-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  color: var(--primary-hover);
  transition: all 0.25s ease;
}

.pathway-card.selected .pathway-card-icon {
  background: var(--primary-hover);
  color: #fff;
  border-color: var(--primary-hover);
}

.pathway-card-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.pathway-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.pathway-card-check {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.pathway-card.selected .pathway-card-check {
  border-color: var(--secondary);
  background: var(--secondary);
}

.pathway-card.selected .pathway-card-check::after {
  content: '✓';
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

/* Success Card */
.register-success-box {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.register-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--secondary-glow);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 24px auto;
  border: 1px solid var(--secondary);
}

.register-success-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ==========================================================================
   REGISTRATION VIEW & GLOBAL LIGHT MODE THEME OVERRIDES
   ========================================================================== */

/* Registration View Defaults (Dark Mode) */
.reg-header-banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e3a5f 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.reg-header-badge {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
}
.reg-header-title {
  color: #ffffff;
}
.reg-header-sub {
  color: rgba(255, 255, 255, 0.72);
}
.reg-body-container {
  background: var(--bg-primary, #0f172a);
}
.reg-card-panel {
  background: var(--glass-bg, rgba(30, 27, 75, 0.95));
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #ffffff;
}
.reg-step-label {
  color: rgba(255, 255, 255, 0.5);
}
.step-indicator.active .reg-step-label {
  color: #a5b4fc;
}
.step-indicator.completed .reg-step-label {
  color: #10b981;
}
.reg-step-heading {
  color: #ffffff;
}
.reg-step-subheading {
  color: rgba(255, 255, 255, 0.5);
}
.reg-label {
  color: rgba(255, 255, 255, 0.85);
}
.reg-input-field, .reg-select-field, .reg-textarea {
  background: rgba(99, 102, 241, 0.08);
  border: 1.5px solid rgba(99, 102, 241, 0.25);
  color: #ffffff;
}
.reg-input-field:focus, .reg-select-field:focus, .reg-textarea:focus {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.14);
}
.reg-option {
  background: #1e1b4b;
  color: #ffffff;
}
.reg-btn-secondary {
  background: rgba(99, 102, 241, 0.12);
  border: 1.5px solid rgba(99, 102, 241, 0.3);
  color: rgba(255, 255, 255, 0.85);
}

/* ── LIGHT MODE OVERRIDES ── */
html[data-theme="light"] .reg-header-banner {
  background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 50%, #dbeafe 100%) !important;
  border-bottom: 1px solid rgba(99, 102, 241, 0.15) !important;
}
html[data-theme="light"] .reg-header-badge {
  background: rgba(99, 102, 241, 0.15) !important;
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
  color: #4338ca !important;
}
html[data-theme="light"] .reg-header-title {
  color: #1e1b4b !important;
}
html[data-theme="light"] .reg-header-sub {
  color: #475569 !important;
}
html[data-theme="light"] .reg-body-container {
  background: #f8fafc !important;
}
html[data-theme="light"] .reg-card-panel {
  background: #ffffff !important;
  border: 1px solid rgba(99, 102, 241, 0.2) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .reg-step-label {
  color: #64748b !important;
}
html[data-theme="light"] .step-indicator.active .reg-step-label {
  color: #4338ca !important;
}
html[data-theme="light"] .step-indicator.completed .reg-step-label {
  color: #059669 !important;
}
html[data-theme="light"] .reg-step-heading {
  color: #0f172a !important;
}
html[data-theme="light"] .reg-step-subheading {
  color: #64748b !important;
}
html[data-theme="light"] .reg-label {
  color: #334155 !important;
}
html[data-theme="light"] .reg-input-field,
html[data-theme="light"] .reg-select-field,
html[data-theme="light"] .reg-textarea {
  background: #f8fafc !important;
  border: 1.5px solid rgba(99, 102, 241, 0.25) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .reg-input-field:focus,
html[data-theme="light"] .reg-select-field:focus,
html[data-theme="light"] .reg-textarea:focus {
  background: #ffffff !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12) !important;
}
html[data-theme="light"] .reg-option {
  background: #ffffff !important;
  color: #0f172a !important;
}
html[data-theme="light"] .reg-btn-secondary {
  background: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #334155 !important;
}
html[data-theme="light"] .pathway-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(99, 102, 241, 0.2) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .pathway-card:hover,
html[data-theme="light"] .pathway-card.selected {
  background: #f5f3ff !important;
  border-color: #6366f1 !important;
}
html[data-theme="light"] .pathway-card-title {
  color: #1e1b4b !important;
}
html[data-theme="light"] .pathway-card-desc {
  color: #64748b !important;
}

/* Global Light Mode Polish across Platform */
html[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}
html[data-theme="light"] .nav-link {
  color: #334155 !important;
}
html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.active {
  color: #4f46e5 !important;
}
html[data-theme="light"] .card,
html[data-theme="light"] .glass-panel,
html[data-theme="light"] .course-card,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .mentor-card,
html[data-theme="light"] .testimonial-card,
html[data-theme="light"] .blog-card,
html[data-theme="light"] .project-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
  color: #0f172a !important;
}
html[data-theme="light"] .course-title,
html[data-theme="light"] .feature-title,
html[data-theme="light"] .card-title,
html[data-theme="light"] .modal-title {
  color: #0f172a !important;
}
html[data-theme="light"] .course-description,
html[data-theme="light"] .feature-desc,
html[data-theme="light"] .text-secondary {
  color: #475569 !important;
}
html[data-theme="light"] select.form-control.premium-input option {
  background: #ffffff !important;
  color: #0f172a !important;
}
html[data-theme="light"] .modal-content,
html[data-theme="light"] .modal-header,
html[data-theme="light"] .modal-body,
html[data-theme="light"] .modal-footer {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
html[data-theme="light"] footer,
html[data-theme="light"] .site-footer {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}
