﻿/* ==========================================================================
   NCLI 2026 — Consolidated Legacy Patches
   Merged from: ui-polish.css + 3d-cards.css + unified-cards.css
              + modern-refresh.css + dark-mode-fixes.css + error-pages.css
   ========================================================================== */

/* --- css\ui-polish.css --- */
/* NCLI UI polish â€” navigation, accessibility, mobile UX */

.os-subtext {
  margin-top: 8px;
  color: #64748b;
}

:root {
  --ncli-primary: #2563eb;
  --ncli-primary-dark: #0f172a;
  --ncli-dark: #0f172a;
  --ncli-accent: #22c55e;
  --ncli-warning: #f59e0b;
  --ncli-text: #1e293b;
  --ncli-muted: #64748b;
  --ncli-border: #e2e8f0;
  --ncli-radius: 10px;
  --ncli-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --focus-ring: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 10000;
  background: var(--ncli-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  outline: none;
  box-shadow: var(--focus-ring);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.nav-dropdown-toggle .fa-chevron-down {
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-dropdown-toggle .fa-chevron-down,
.nav-dropdown:hover .nav-dropdown-toggle .fa-chevron-down {
  transform: rotate(180deg);
}

.nav-dropdown.is-open .dropdown-menu {
  display: block;
}

/* Focus & keyboard */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn-primary:focus-visible,
.btn-outline:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Softer image reveal â€” content only */
.gallery-item img,
.hero-image img,
.product-card img,
.blog-card img {
  transition: opacity 0.35s ease;
}

img.is-loading {
  opacity: 0;
}

img.is-loaded,
img.img-error {
  opacity: 1;
}

img.img-error {
  object-fit: contain;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  min-height: 120px;
}

/* Mobile action bar */
.mobile-action-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--ncli-border);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 8px;
  grid-template-columns: 1fr 1fr 1.2fr;
}

.mab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: var(--ncli-radius);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--ncli-border);
  color: var(--ncli-text);
  background: #fff;
}

.mab-btn.mab-wa {
  border-color: #86efac;
  color: var(--ncli-accent);
  background: #f0fdf4;
}

.mab-btn.mab-primary {
  background: var(--ncli-primary);
  border-color: var(--ncli-primary);
  color: #fff;
}

body.dark .mobile-action-bar {
  background: rgba(15, 23, 42, 0.96);
  border-top-color: #334155;
}

body.dark .mab-btn {
  background: #1e293b;
  border-color: #334155;
  color: #e2e8f0;
}

/* Chat + WA spacing on mobile */
@media (max-width: 900px) {
  .mobile-action-bar {
    display: grid;
  }

  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }

  .whatsapp-float {
    bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .chat-widget {
    bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .back-to-top.show {
    bottom: 175px !important;
  }

  .header-inner .btn-primary.header-cta {
    display: none !important;
  }

  .navbar {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .navbar .nav-dropdown .dropdown-menu {
    display: none !important;
    margin-top: 4px;
    padding-left: 8px;
  }

  .navbar .nav-dropdown.is-open .dropdown-menu {
    display: block !important;
  }

  .navbar .nav-dropdown:hover .dropdown-menu {
    display: none !important;
  }

  .navbar .nav-dropdown.is-open:hover .dropdown-menu {
    display: block !important;
  }
}

@media (max-width: 480px) {
  .header-inner .btn-primary.header-cta {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .page-loader {
    display: none !important;
  }

  .testimonials-track {
    animation: none !important;
  }
}

/* =========================================
   MAGIC THEME TOGGLE (DAY / NIGHT SWITCH)
========================================= */
.magic-theme-toggle {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  margin-right: 10px;
}

.mtt-track {
  width: 66px;
  height: 32px;
  border-radius: 34px;
  background: #4facfe; /* Day Sky */
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.2), 0 2px 5px rgba(0,0,0,0.1);
  overflow: hidden;
  position: relative;
  transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mtt-sky {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Sun / Moon Wrapper */
.mtt-sun-moon {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fcd34d; /* Sun color */
  box-shadow: 0 0 8px #fde68a, inset -2px -2px 4px rgba(0,0,0,0.1);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 5;
}

/* Clouds (Day Mode) */
.mtt-clouds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease, transform 0.5s ease;
}

.mtt-cloud {
  background: #fff;
  position: absolute;
  border-radius: 50px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.mtt-cloud-1 {
  width: 20px;
  height: 8px;
  top: 6px;
  right: 8px;
}
.mtt-cloud-1::before, .mtt-cloud-1::after {
  content: '';
  position: absolute;
  background: #fff;
  border-radius: 50%;
}
.mtt-cloud-1::before {
  width: 10px; height: 10px; top: -4px; left: 2px;
}
.mtt-cloud-1::after {
  width: 6px; height: 6px; top: -2px; right: 2px;
}

.mtt-cloud-2 {
  width: 14px;
  height: 6px;
  top: 18px;
  right: 22px;
  opacity: 0.8;
}

/* Stars (Night Mode) */
.mtt-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.5s ease;
}

.mtt-star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 3px #fff;
  animation: mtt-twinkle 2s infinite ease-in-out alternate;
}

.mtt-star:nth-child(1) { width: 3px; height: 3px; top: 5px; left: 14px; }
.mtt-star:nth-child(2) { width: 2px; height: 2px; top: 16px; left: 8px; animation-delay: 0.5s; }
.mtt-star:nth-child(3) { width: 4px; height: 4px; top: 10px; left: 28px; animation-delay: 1s; }
.mtt-star:nth-child(4) { width: 2px; height: 2px; top: 20px; left: 22px; animation-delay: 1.5s; }

@keyframes mtt-twinkle {
  0% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

/* Moon Craters */
.mtt-craters {
  width: 100%;
  height: 100%;
  position: relative;
  opacity: 0;
  transform: rotate(-45deg);
  transition: all 0.5s ease;
}

.mtt-crater {
  position: absolute;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  box-shadow: inset 1px 1px 2px rgba(0,0,0,0.2);
}

.mtt-crater:nth-child(1) { width: 5px; height: 5px; top: 4px; left: 12px; }
.mtt-crater:nth-child(2) { width: 3px; height: 3px; top: 12px; left: 6px; }
.mtt-crater:nth-child(3) { width: 7px; height: 7px; top: 12px; left: 14px; }

/* =========================================
   DARK MODE ACTIVATED
========================================= */
body.dark .mtt-track {
  background: #0f172a; /* Deep space */
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5), 0 2px 5px rgba(0,0,0,0.2);
}

body.dark .mtt-sun-moon {
  transform: translateX(34px);
  background: #cbd5e1; /* Moon color */
  box-shadow: 0 0 10px rgba(255,255,255,0.4), inset -2px -2px 5px rgba(0,0,0,0.2);
}

body.dark .mtt-clouds {
  opacity: 0;
  transform: translateY(10px);
}

body.dark .mtt-stars {
  opacity: 1;
  transform: translateY(0);
}

body.dark .mtt-craters {
  opacity: 1;
  transform: rotate(0deg);
}

.magic-theme-toggle:focus-visible .mtt-track {
  outline: 2px solid var(--ncli-primary);
  outline-offset: 2px;
}

/* Responsive grid overrides for Govt Jobs on home page */
@media (max-width: 1024px) {
  .jobs-preview-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 768px) {
  .jobs-preview-grid {
    grid-template-columns: 1fr !important;
  }
}


/* --- css\3d-cards.css --- */
/* ==========================================================================
   3D GLASSMORPHISM CARDS (DEPTHFOLD STYLE)
   ========================================================================== */

/* The outer container defining the 3D perspective space */
.ux-parent {
    width: 100%;
    /* Let max-width be controlled by the grid, or provide a generous max */
    max-width: 100%; 
    height: 380px;
    margin-inline: auto;
    perspective: 1000px;
    perspective-origin: 50% 50%;
    filter: drop-shadow(0 28px 50px rgba(0, 40, 30, 0.25)); /* Lighter shadow for light mode fallback */
}

body.dark .ux-parent {
    filter: drop-shadow(0 28px 50px rgba(0, 40, 30, 0.45));
}

/* The 3D rotating card */
.ux-card {
    position: relative;
    height: 100%;
    border-radius: 40px;
    background: var(--ux-grad);
    transform-style: preserve-3d;
    transition:
        transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.55s ease;
    box-shadow:
        rgba(5, 71, 17, 0) 40px 50px 25px -40px,
        rgba(5, 71, 17, 0.15) 0 25px 25px -5px; /* Lighter shadow */
    text-decoration: none;
    display: block;
    color: inherit;
}

body.dark .ux-card {
    box-shadow:
        rgba(5, 71, 17, 0) 40px 50px 25px -40px,
        rgba(5, 71, 17, 0.28) 0 25px 25px -5px;
}

.ux-parent:hover .ux-card {
    transform: rotate3d(1, 1, 0, 18deg); /* Slightly less extreme rotation for readability */
    box-shadow:
        rgba(5, 71, 17, 0.25) 28px 48px 28px -38px,
        rgba(0, 255, 214, 0.08) 0 0 60px -10px,
        rgba(5, 71, 17, 0.1) 0 25px 35px 0;
}

body.dark .ux-parent:hover .ux-card {
    box-shadow:
        rgba(5, 71, 17, 0.45) 28px 48px 28px -38px,
        rgba(0, 255, 214, 0.12) 0 0 60px -10px,
        rgba(5, 71, 17, 0.15) 0 25px 35px 0;
}

/* THEMES */
/* NCLI Brand Theme: Deep Blue and Royal Blue with Gold Orbits */
.ux-parent--brand {
    --ux-grad: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --ux-title: #ffffff;
    --ux-body: rgba(255, 255, 255, 0.9);
    --ux-cta: #f59e0b;
    --ux-orbit: rgba(255, 255, 255, 0.15); /* Soft white orbits */
}

/* NCLI Brand Theme Alt: Slate and Blue with White Orbits */
.ux-parent--brand-alt {
    --ux-grad: linear-gradient(145deg, #0f172a 0%, #1e40af 100%);
    --ux-title: #ffffff;
    --ux-body: rgba(255, 255, 255, 0.85);
    --ux-cta: #38bdf8;
    --ux-orbit: rgba(56, 189, 248, 0.15); /* Light blue orbits */
}

/* Glass Layer */
.ux-glass {
    transform-style: preserve-3d;
    position: absolute;
    inset: 6px;
    border-radius: 36px;
    border-top-right-radius: 90%;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.82) 100%);
    transform: translate3d(0, 0, 20px);
    border-inline-start: 1px solid rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.75);
    transition: all 0.5s ease-in-out;
    pointer-events: none;
}

body.dark .ux-glass {
    /* Slightly dimmer glass in dark mode */
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.4) 100%);
    border-inline-start: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.ux-parent--void .ux-glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(15, 23, 42, 0.55) 100%);
    border-color: rgba(148, 163, 184, 0.25);
}

/* Logo Orbits */
.ux-logo {
    position: absolute;
    inset-inline-end: 0;
    top: 0;
    transform-style: preserve-3d;
    pointer-events: none;
    z-index: 2;
}

.ux-circle {
    display: block;
    position: absolute;
    aspect-ratio: 1;
    border-radius: 50%;
    top: 0;
    inset-inline-end: 0;
    background: var(--ux-orbit);
    box-shadow: rgba(100, 100, 111, 0.15) -10px 10px 24px 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: all 0.5s ease-in-out;
}

.ux-circle:nth-child(1) { width: 170px; transform: translate3d(0, 0, 15px); top: 8px; inset-inline-end: 8px; }
.ux-circle:nth-child(2) { width: 140px; transform: translate3d(0, 0, 30px); top: 10px; inset-inline-end: 10px; backdrop-filter: blur(4px); transition-delay: 0.05s; }
.ux-circle:nth-child(3) { width: 110px; transform: translate3d(0, 0, 45px); top: 17px; inset-inline-end: 17px; transition-delay: 0.1s; }
.ux-circle:nth-child(4) { width: 80px;  transform: translate3d(0, 0, 60px); top: 23px; inset-inline-end: 23px; transition-delay: 0.15s; }
.ux-circle:nth-child(5) { 
    width: 50px;  
    transform: translate3d(0, 0, 75px); 
    top: 30px; 
    inset-inline-end: 30px; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition-delay: 0.2s; 
}

.ux-circle:nth-child(5) i {
    font-size: 20px;
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.ux-parent:hover .ux-circle:nth-child(2) { transform: translate3d(0, 0, 45px); }
.ux-parent:hover .ux-circle:nth-child(3) { transform: translate3d(0, 0, 60px); }
.ux-parent:hover .ux-circle:nth-child(4) { transform: translate3d(0, 0, 75px); }
.ux-parent:hover .ux-circle:nth-child(5) { transform: translate3d(0, 0, 90px); }

/* Content Area */
.ux-content {
    padding: 180px 1.5rem 0 1.5rem;
    transform: translate3d(0, 0, 90px); /* Pushed forward to float above circles */
    position: relative;
    z-index: 10;
    pointer-events: none; /* Let clicks pass through if the card itself is a link */
}

.ux-title {
    display: block;
    color: var(--ux-title);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.ux-text {
    display: block;
    color: var(--ux-body);
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 600;
    padding-bottom: 60px; /* Space for the absolute bottom bar */
}

/* Bottom Actions / Meta */
.ux-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px 24px;
    transform: translate3d(0, 0, 30px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 4;
}

.ux-meta {
    font-size: 13px;
    font-weight: 700;
    color: var(--ux-title);
    display: flex;
    gap: 12px;
}

.ux-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ux-more {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ux-title);
    font-weight: 700;
    font-size: 14px;
    transition: gap 0.3s ease;
}

.ux-parent:hover .ux-more {
    gap: 10px;
}

.ux-more i {
    transition: transform 0.3s ease;
}

.ux-parent:hover .ux-more i {
    transform: translateX(4px);
}


/* --- css\unified-cards.css --- */
/* ==========================================================================
   GLASSMORPHISM LITE CARDS (Unified)
   ========================================================================== */

.course-card,
.service-card,
.job-card,
.testi-card,
.blog-card,
.mv-card,
.facility-card,
.team-card,
.location-card,
.info-card,
.contact-form-box,
.map-item,
.feedback-average-box,
.fb-info-card,
.feedback-form-box,
.seo-box,
.course-detail-card,
.wj-card,
.coming-card,
.summary-card,
.dash-card,
.lesson-card,
.practice-container,
.stat-card-large,
.certificate-card,
.coding-container,
.game-container,
.race-container,
.online-card,
.online-home,
.online-lobby,
.online-race,
.practice-results,
.game-over-content,
.race-result-card,
.online-result-card,
.cv-search-box,
.cv-info-card,
.cv-not-found,
.login-form-box {
    position: relative;
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 24px !important; /* Unified rounded corners */
    box-shadow: 
        0 10px 30px rgba(37, 99, 235, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    z-index: 1;
}

/* Ensure blog cards don't leak their top images outside the new border radius */
.blog-card {
    overflow: hidden;
}

/* Subtle background glowing orb inside the cards */
.course-card::before,
.service-card::before,
.job-card::before,
.testi-card::before,
.blog-card::before,
.mv-card::before,
.facility-card::before,
.team-card::before,
.location-card::before,
.info-card::before,
.contact-form-box::before,
.map-item::before,
.feedback-average-box::before,
.fb-info-card::before,
.feedback-form-box::before,
.seo-box::before,
.course-detail-card::before,
.wj-card::before,
.coming-card::before,
.summary-card::before,
.dash-card::before,
.lesson-card::before,
.practice-container::before,
.stat-card-large::before,
.certificate-card::before,
.coding-container::before,
.game-container::before,
.race-container::before,
.online-card::before,
.online-home::before,
.online-lobby::before,
.online-race::before,
.practice-results::before,
.game-over-content::before,
.race-result-card::before,
.online-result-card::before,
.cv-search-box::before,
.cv-info-card::before,
.cv-not-found::before,
.login-form-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0) 70%);
    z-index: -1;
    transition: all 0.4s ease;
    pointer-events: none;
}

/* Hover Effects */
.course-card:hover,
.service-card:hover,
.job-card:hover,
.testi-card:hover,
.blog-card:hover,
.mv-card:hover,
.facility-card:hover,
.team-card:hover,
.location-card:hover,
.info-card:hover,
.contact-form-box:hover,
.map-item:hover,
.feedback-average-box:hover,
.fb-info-card:hover,
.feedback-form-box:hover,
.seo-box:hover,
.course-detail-card:hover,
.wj-card:hover,
.coming-card:hover,
.summary-card:hover,
.dash-card:hover,
.lesson-card:hover,
.certificate-card:hover,
.online-card:hover,
.cv-info-card:hover,
.login-form-box:hover {
    transform: translateY(-8px) !important;
    box-shadow: 
        0 20px 40px rgba(37, 99, 235, 0.12),
        0 0 0 1px rgba(37, 99, 235, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
    background: rgba(255, 255, 255, 0.85) !important;
}

.course-card:hover::before,
.service-card:hover::before,
.job-card:hover::before,
.testi-card:hover::before,
.blog-card:hover::before,
.mv-card:hover::before,
.facility-card:hover::before,
.team-card:hover::before,
.location-card:hover::before,
.info-card:hover::before,
.contact-form-box:hover::before,
.map-item:hover::before,
.feedback-average-box:hover::before,
.fb-info-card:hover::before,
.feedback-form-box:hover::before,
.seo-box:hover::before,
.course-detail-card:hover::before,
.wj-card:hover::before,
.coming-card:hover::before,
.summary-card:hover::before,
.dash-card:hover::before,
.lesson-card:hover::before,
.certificate-card:hover::before,
.online-card:hover::before,
.cv-info-card:hover::before,
.login-form-box:hover::before {
    transform: scale(1.5);
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0) 70%);
}

/* ----------------------------------
   ICONS STYLING
   ---------------------------------- */
.course-icon,
.scard-icon,
.tc-avatar,
.cdc-icon,
.wj-card i,
.coming-icon,
.summary-icon,
.dsc-icon,
.ai-icon,
.cert-badge,
.crc-icon,
.oc-icon,
.cv-search-icon,
.cv-info-card i,
.lf-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05)) !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
    color: #2563eb !important;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.1) !important;
    transition: all 0.3s ease !important;
}

.course-card:hover .course-icon,
.service-card:hover .scard-icon,
.testi-card:hover .tc-avatar,
.course-detail-card:hover .cdc-icon,
.wj-card:hover i,
.coming-card:hover .coming-icon,
.summary-card:hover .summary-icon,
.lesson-card:hover .lesson-badge,
.certificate-card:hover .cert-badge,
.online-card:hover .oc-icon,
.cv-info-card:hover i,
.login-feature:hover .lf-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.3) !important;
}

body.dark .course-icon,
body.dark .scard-icon,
body.dark .tc-avatar,
body.dark .cdc-icon,
body.dark .wj-card i,
body.dark .coming-icon,
body.dark .summary-icon,
body.dark .dsc-icon,
body.dark .ai-icon,
body.dark .cert-badge,
body.dark .crc-icon,
body.dark .oc-icon,
body.dark .cv-search-icon,
body.dark .cv-info-card i,
body.dark .lf-icon {
    background: rgba(56, 189, 248, 0.1) !important;
    border-color: rgba(56, 189, 248, 0.2) !important;
    color: #38bdf8 !important;
}

body.dark .course-card:hover .course-icon,
body.dark .service-card:hover .scard-icon,
body.dark .testi-card:hover .tc-avatar,
body.dark .course-detail-card:hover .cdc-icon,
body.dark .wj-card:hover i,
body.dark .coming-card:hover .coming-icon,
body.dark .summary-card:hover .summary-icon,
body.dark .lesson-card:hover .lesson-badge,
body.dark .certificate-card:hover .cert-badge,
body.dark .online-card:hover .oc-icon,
body.dark .cv-info-card:hover i,
body.dark .login-feature:hover .lf-icon {
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
    color: #ffffff !important;
}

/* ----------------------------------
   DARK MODE SUPPORT
   ---------------------------------- */
body.dark .course-card,
body.dark .service-card,
body.dark .job-card,
body.dark .testi-card,
body.dark .blog-card,
body.dark .mv-card,
body.dark .facility-card,
body.dark .team-card,
body.dark .location-card,
body.dark .info-card,
body.dark .contact-form-box,
body.dark .map-item,
body.dark .feedback-average-box,
body.dark .fb-info-card,
body.dark .feedback-form-box,
body.dark .seo-box,
body.dark .course-detail-card,
body.dark .wj-card,
body.dark .coming-card,
body.dark .summary-card,
body.dark .dash-card,
body.dark .lesson-card,
body.dark .practice-container,
body.dark .stat-card-large,
body.dark .certificate-card,
body.dark .coding-container,
body.dark .game-container,
body.dark .race-container,
body.dark .online-card,
body.dark .online-home,
body.dark .online-lobby,
body.dark .online-race,
body.dark .practice-results,
body.dark .game-over-content,
body.dark .race-result-card,
body.dark .online-result-card,
body.dark .cv-search-box,
body.dark .cv-info-card,
body.dark .cv-not-found,
body.dark .login-form-box {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(148, 163, 184, 0.15) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

body.dark .course-card:hover,
body.dark .service-card:hover,
body.dark .job-card:hover,
body.dark .testi-card:hover,
body.dark .blog-card:hover,
body.dark .mv-card:hover,
body.dark .facility-card:hover,
body.dark .team-card:hover,
body.dark .location-card:hover,
body.dark .info-card:hover,
body.dark .contact-form-box:hover,
body.dark .map-item:hover,
body.dark .feedback-average-box:hover,
body.dark .fb-info-card:hover,
body.dark .feedback-form-box:hover,
body.dark .seo-box:hover,
body.dark .course-detail-card:hover,
body.dark .wj-card:hover,
body.dark .coming-card:hover {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(56, 189, 248, 0.15) !important;
}

body.dark .course-icon,
body.dark .scard-icon,
body.dark .tc-avatar,
body.dark .cdc-icon,
body.dark .wj-card i,
body.dark .coming-icon {
    background: rgba(56, 189, 248, 0.1) !important;
    border-color: rgba(56, 189, 248, 0.2) !important;
    color: #38bdf8 !important;
}

/* ==========================================================================
   STYLISH FAQ SECTION
   ========================================================================== */
.faq-item {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 16px !important;
    margin-bottom: 1rem !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.03) !important;
    transition: all 0.3s ease !important;
    overflow: hidden;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.08) !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
}

.faq-item[open] {
    background: #ffffff !important;
    border-color: rgba(37, 99, 235, 0.4) !important;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12) !important;
}

.faq-summary {
    padding: 1.5rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    cursor: pointer;
    transition: color 0.3s ease !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-summary:hover {
    color: #2563eb !important;
}

.faq-summary i {
    transition: transform 0.3s ease;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.faq-item[open] .faq-summary i {
    transform: rotate(180deg);
    background: #2563eb;
    color: #ffffff;
}

.faq-content {
    padding: 0 1.5rem 1.5rem 1.5rem !important;
    color: #475569 !important;
    line-height: 1.6;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 0.5rem;
    padding-top: 1rem !important;
}

/* Smooth Opening Animation */
.faq-item[open] .faq-content {
    animation: faq-slide-down 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    transform-origin: top;
}

@keyframes faq-slide-down {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark Mode FAQ */
body.dark .faq-item {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(148, 163, 184, 0.1) !important;
}

body.dark .faq-item:hover {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(56, 189, 248, 0.3) !important;
}

body.dark .faq-item[open] {
    background: rgba(30, 41, 59, 0.95) !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
}

body.dark .faq-summary {
    color: #e2e8f0 !important;
}

body.dark .faq-summary:hover {
    color: #38bdf8 !important;
}

body.dark .faq-content {
    color: #cbd5e1 !important;
    border-top-color: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   LAYOUT FIXES FOR ABOUT.PHP
   ========================================================================== */
.team-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
    max-width: 900px !important;
    margin-inline: auto !important;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr !important;
    }
}

.team-card {
    padding: 2rem 1.5rem !important;
    max-width: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* About Quote styling */
.about-quote {
    text-align: center;
    margin-top: 3.5rem !important;
    padding: 2rem;
    font-size: 1.15rem;
    font-weight: 500;
    color: #334155;
    font-style: italic;
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 16px;
    max-width: 800px;
    margin-inline: auto;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.05);
}

body.dark .about-quote {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(148, 163, 184, 0.15) !important;
    color: #e2e8f0;
}

/* ==========================================================================
   FORM & MAP STYLING (Contact Page)
   ========================================================================== */
.map-item {
    overflow: hidden; /* Ensure iframe respects the border-radius */
    padding: 0 !important; /* Maps shouldn't have internal padding */
    display: flex;
    flex-direction: column;
}

.map-item h3 {
    padding: 1.5rem;
    margin: 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

body.dark .map-item h3 {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.map-wrapper {
    flex: 1;
}

.map-wrapper iframe {
    display: block;
    border-radius: 0 0 24px 24px;
}

/* Modern Form Inputs */
.contact-form input,
.contact-form textarea,
.contact-form select {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02) !important;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    background: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
    outline: none !important;
}

body.dark .contact-form input,
body.dark .contact-form textarea,
body.dark .contact-form select {
    background: rgba(15, 23, 42, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
}

body.dark .contact-form input:focus,
body.dark .contact-form textarea:focus,
body.dark .contact-form select:focus {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15) !important;
}

body.dark .contact-form label {
    color: #cbd5e1 !important;
}

/* Custom Select Dropdown Arrow & Options */
.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%232563eb%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1.2rem top 50% !important;
    background-size: 0.8rem auto !important;
    padding-right: 3rem !important; 
    cursor: pointer;
}

.contact-form select option {
    background-color: #ffffff;
    color: #1e293b;
    padding: 12px;
    font-size: 1rem;
}

body.dark .contact-form select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2338bdf8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
}

body.dark .contact-form select option {
    background-color: #1e293b;
    color: #f8fafc;
}

/* ==========================================================================
   FEEDBACK FORM SPECIFIC
   ========================================================================== */
.feedback-average-box {
    margin-bottom: 2.5rem !important;
    max-width: 500px;
    margin-inline: auto;
    padding: 2rem !important;
    text-align: center;
    border-radius: 20px !important;
}

.feedback-average-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

body.dark .feedback-average-title {
    color: #f8fafc;
}

.feedback-average-desc {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
}

body.dark .feedback-average-desc {
    color: #94a3b8;
}

.feedback-form-box {
    padding: 2.5rem !important;
}

.fb-info-card {
    padding: 2rem !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Testimonials Grid Fix */
.testimonials-track-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* SEO Box Fix */
.seo-box {
    padding: 2.5rem !important;
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
    border-radius: 20px !important;
}

.seo-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

body.dark .seo-box h3 {
    color: #f8fafc;
}

.seo-box p {
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

body.dark .seo-box p {
    color: #94a3b8;
}

@media (max-width: 992px) {
    .testimonials-track-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .feedback-form-box, .fb-info-card, .seo-box {
        padding: 1.5rem !important;
    }
    .testimonials-track-grid {
        grid-template-columns: 1fr;
    }
    .feedback-average-title {
        font-size: 1.4rem;
    }
}


/* --- css\modern-refresh.css --- */
/* ============================================================
   NCLI â€” Modern Refresh (safe, additive, no layout changes)
   Load order: style.css -> ui-polish.css -> modern-refresh.css -> dark-mode-fixes.css
   Only refines design tokens, shadows, radii, buttons, cards, inputs.
   Dark mode is handled by dark-mode-fixes.css (loaded after this).
============================================================ */

:root {
  /* Layered shadow ladder for depth */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 18px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 14px 34px rgba(15, 23, 42, 0.10);
  --shadow-blue: 0 10px 24px rgba(37, 99, 235, 0.20);

  /* Radius scale */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Screen-reader-only utility (visually hidden, accessible to AT) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Smooth, consistent micro-interactions (only safe props) */
a,
.btn-primary,
.btn-outline,
.btn-white,
.course-card, .service-card, .product-card, .blog-card,
.facility-card, .team-card, .pricing-card, .ds-card, .gj-card,
.job-card, .location-card, .mv-card, .gs-card {
  transition: transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease),
              border-color 0.25s var(--ease),
              color 0.2s var(--ease);
}

/* ---------- Buttons ---------- */
.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}

.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ---------- Cards: unified soft radius + layered shadow + lift ---------- */
.course-card, .service-card, .product-card, .blog-card,
.facility-card, .team-card, .pricing-card, .ds-card, .gj-card,
.job-card, .location-card, .mv-card, .gs-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.course-card:hover, .service-card:hover, .product-card:hover, .blog-card:hover,
.facility-card:hover, .team-card:hover, .pricing-card:hover, .ds-card:hover,
.gj-card:hover, .job-card:hover, .location-card:hover, .mv-card:hover, .gs-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Featured course card keeps a subtle brand glow */
.course-card.featured {
  box-shadow: var(--shadow-sm), 0 10px 28px rgba(37, 99, 235, 0.12);
}

/* ---------- Inputs / selects / textareas ---------- */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
select,
textarea {
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ---------- Headings: slightly tighter, modern ---------- */
.section-title {
  letter-spacing: -0.5px;
}

/* ---------- Images: gentle rounding on content media ---------- */
.product-card img,
.blog-card img,
.gallery-item img {
  border-radius: var(--radius-md);
}

/* ============================================================
   MODERN HEADER & NAVBAR
============================================================ */

/* Glassy header with smooth scrolled state */
.header {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
}

/* Gradient logo mark with subtle pop on hover */
.logo-icon {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.logo:hover .logo-icon {
  transform: translateY(-1px) rotate(-4deg) scale(1.05);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.38);
}

.logo-main {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Pill-shaped nav links with animated underline */
.navbar {
  gap: 4px;
}

.nav-link {
  position: relative;
  border-radius: var(--radius-full);
  padding: 9px 16px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

/* growing underline pill on hover */
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  transform: translateX(-50%);
  transition: width 0.25s var(--ease);
}

.nav-link:hover {
  background: #eff6ff;
  color: #2563eb;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 22px;
}

/* Active link = filled gradient pill */
.nav-link.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.nav-link.active::after {
  display: none;
}

/* Chevron in dropdown toggles */
.nav-dropdown-toggle .fa-chevron-down {
  font-size: 10px;
  margin-left: 2px;
  transition: transform 0.25s var(--ease);
}

.nav-dropdown:hover .nav-dropdown-toggle .fa-chevron-down {
  transform: rotate(180deg);
}

/* ---------- Dropdown menu: modern card + slide-fade ---------- */
.dropdown-menu {
  border-radius: 14px;
  padding: 8px;
  min-width: 210px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: #475569;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease);
}

/* icon chip before each dropdown item */
.dropdown-menu a .dd-ico {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.dropdown-menu a:hover {
  background: #eff6ff;
  color: #2563eb;
  transform: translateX(3px);
}

.dropdown-menu a:hover .dd-ico {
  background: #2563eb;
  color: #fff;
}

/* Smoother dropdown reveal (overrides the older keyframe timing) */
.dropdown-menu {
  animation: ddReveal 0.22s var(--ease) !important;
}

@keyframes ddReveal {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modern theme toggle + CTA */
.theme-toggle {
  border-radius: var(--radius-full);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.theme-toggle:hover {
  transform: translateY(-1px) rotate(-10deg);
}

.header-cta.btn-primary {
  border-radius: var(--radius-full);
  padding-left: 20px;
  padding-right: 20px;
}

/* Dark mode header glass */
body.dark .header {
  background: rgba(15, 23, 42, 0.78);
  border-bottom-color: rgba(51, 65, 85, 0.7);
}

body.dark .header.scrolled {
  background: rgba(15, 23, 42, 0.9);
}

body.dark .nav-link:hover {
  background: rgba(37, 99, 235, 0.18);
}


/* --- css\dark-mode-fixes.css --- */
/**
 * Dark mode â€” missing text/contrast fixes (loads after style.css)
 */

body.dark {
  color: #e2e8f0;
}

/* Global text on dark page background */
body.dark main h1,
body.dark main h2,
body.dark main h3,
body.dark main h4,
body.dark main h5,
body.dark .section h2,
body.dark .section h3 {
  color: #f1f5f9 !important;
}

body.dark main p,
body.dark .section p {
  color: #94a3b8;
}

body.dark main strong,
body.dark .section strong {
  color: #e2e8f0;
}

body.dark .menu-btn {
  color: #94a3b8 !important;
}

/* Login / contact */
body.dark .login-info h2,
body.dark .login-form-box h3,
body.dark .contact-info h2,
body.dark .contact-info > p,
body.dark .login-feature h4,
body.dark .note-info h4 {
  color: #f1f5f9 !important;
}

body.dark .login-info > p,
body.dark .login-footer-note,
body.dark .login-footer-note a,
body.dark .login-feature p {
  color: #94a3b8 !important;
}

body.dark .login-help {
  background: rgba(37, 99, 235, 0.12) !important;
  border-color: #334155 !important;
  color: #93c5fd !important;
}

body.dark .login-help strong {
  color: #e2e8f0 !important;
}

body.dark .login-form-box,
body.dark .login-info {
  color: #e2e8f0;
}

/* Forms & alerts */
body.dark .form-alert.success {
  background: rgba(22, 163, 74, 0.15) !important;
  color: #86efac !important;
  border: 1px solid rgba(74, 222, 128, 0.3) !important;
}

body.dark .form-alert.error {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(248, 113, 113, 0.3) !important;
}

body.dark .input-icon-wrap i {
  color: #64748b !important;
}

/* Shop sidebar */
body.dark .scat {
  color: #94a3b8 !important;
}

body.dark .scat:hover {
  background: #2d3f5e !important;
  color: #e2e8f0 !important;
}

body.dark .scat.active {
  background: rgba(37, 99, 235, 0.25) !important;
  color: #93c5fd !important;
}

body.dark .scat span {
  background: #0f172a !important;
  color: #94a3b8 !important;
}

body.dark .scat.active span {
  background: #2563eb !important;
  color: #fff !important;
}

body.dark .ssb-card h4,
body.dark .jsb-card h4 {
  color: #f1f5f9 !important;
}

body.dark .products-found,
body.dark .shop-toolbar {
  color: #94a3b8 !important;
}

body.dark .products-found strong {
  color: #f1f5f9 !important;
}

body.dark .p-price {
  color: #93c5fd !important;
}

body.dark .p-old-price {
  color: #64748b !important;
}

body.dark .cart-btn {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

/* Shop hero + compare modal */
body.dark .shop3-hero .shop3-hero-copy {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(15, 23, 42, 0.84) 68%, rgba(15, 23, 42, 0.58) 100%) !important;
  border-color: rgba(125, 211, 252, 0.24) !important;
  box-shadow: 24px 0 76px rgba(2, 6, 23, 0.46), inset 1px 0 0 rgba(255, 255, 255, 0.10) !important;
}

body.dark .shop3-hero .shop2-kicker {
  color: #dbeafe !important;
  border-color: rgba(96, 165, 250, 0.32) !important;
  background: rgba(37, 99, 235, 0.22) !important;
}

body.dark .shop3-hero .shop3-hero-copy h1 {
  color: #ffffff !important;
  text-shadow: 0 14px 42px rgba(0, 0, 0, 0.72) !important;
}

body.dark .shop3-hero .shop3-hero-copy p {
  color: #e0f2fe !important;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.62) !important;
}

body.dark .shop3-compare-modal-card {
  border-color: #334155 !important;
  background: #0f172a !important;
}

body.dark .shop3-compare-modal-body h3 {
  color: #f8fafc !important;
}

body.dark .shop3-compare-table th,
body.dark .shop3-compare-table td {
  border-color: #334155 !important;
}

body.dark .shop3-compare-feature-cell,
body.dark .shop3-compare-product-head {
  color: #e2e8f0 !important;
  background: #111827 !important;
}

body.dark .shop3-compare-value-cell {
  color: #cbd5e1 !important;
  background: #0b1220 !important;
}

body.dark .shop3-compare-value-cell strong {
  color: #f8fafc !important;
}

body.dark .shop3-compare-pill {
  color: #bfdbfe !important;
  background: rgba(37, 99, 235, 0.22) !important;
}

body.dark .shop3-compare-price,
body.dark .shop3-compare-link {
  color: #60a5fa !important;
}

body.dark .shop3-compare-old-price {
  color: #64748b !important;
}

body.dark .shop3-compare-discount {
  color: #fecaca !important;
  background: rgba(239, 68, 68, 0.22) !important;
}

/* Cart / checkout */
body.dark .cs-row span {
  color: #94a3b8 !important;
}

body.dark .cs-row strong,
body.dark .cs-total strong {
  color: #f1f5f9 !important;
}

body.dark .cs-divider {
  border-color: #334155 !important;
}

body.dark .cart-empty,
body.dark .cart-empty h3 {
  color: #94a3b8 !important;
}

body.dark .cart-empty > i {
  color: #475569 !important;
}

body.dark .ci-info h4 {
  color: #f1f5f9 !important;
}

body.dark .ci-price,
body.dark .ci-subtotal {
  color: #93c5fd !important;
}

body.dark .ci-image {
  background: #0f172a !important;
  color: #60a5fa !important;
}

body.dark .payment-option .po-content {
  background: #0f172a !important;
  border-color: #334155 !important;
}

body.dark .payment-option input:checked + .po-content {
  border-color: #60a5fa !important;
  background: rgba(37, 99, 235, 0.15) !important;
}

body.dark .po-content strong {
  color: #f1f5f9 !important;
}

body.dark .po-content span {
  color: #94a3b8 !important;
}

body.dark .order-success h2 {
  color: #f1f5f9 !important;
}

body.dark .order-success p {
  color: #94a3b8 !important;
}

body.dark .text-muted {
  color: #94a3b8 !important;
}

/* Testimonials */
body.dark .testi-info strong {
  color: #f1f5f9 !important;
}

body.dark .tc-info span {
  background: rgba(37, 99, 235, 0.2) !important;
  color: #93c5fd !important;
}

/* Toast */
body.dark .toast {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  border: 1px solid #334155 !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4) !important;
}

/* Typing / games */
body.dark .gs-header p,
body.dark .gs-card p,
body.dark .game-instructions p,
body.dark .game-live-stats span {
  color: #94a3b8 !important;
}

body.dark .tp-display,
body.dark .tp-stats-bar {
  color: #e2e8f0 !important;
}

body.dark .stat-box .stat-label {
  color: #94a3b8 !important;
}

body.dark .stat-box .stat-value {
  color: #f1f5f9 !important;
}

/* Certificate verify */
body.dark .cv-result h3,
body.dark .cv-result h4 {
  color: #f1f5f9 !important;
}

body.dark .cv-row span {
  color: #64748b !important;
}

body.dark .cv-row strong {
  color: #e2e8f0 !important;
}

/* Blog extras */
body.dark .blog-count,
body.dark .blog-toolbar {
  color: #94a3b8 !important;
}

body.dark .blog-empty h3 {
  color: #f1f5f9 !important;
}

body.dark .blog-empty p {
  color: #94a3b8 !important;
}

body.dark .ba-title {
  color: #f1f5f9 !important;
}

body.dark .ba-meta,
body.dark .ba-meta span {
  color: #94a3b8 !important;
}

/* Govt jobs */
body.dark .job-list-item h4,
body.dark .jl-title {
  color: #f1f5f9 !important;
}

body.dark .job-list-item p,
body.dark .jl-meta {
  color: #94a3b8 !important;
}

/* Footer newsletter stays on blue gradient â€” already white text */

/* Inline-style overrides used in templates */
body.dark .os-subtext {
  color: #94a3b8 !important;
}

/* Cards & links */
body.dark .card-link {
  color: #60a5fa !important;
}

body.dark .course-meta span {
  color: #94a3b8 !important;
}

body.dark .story-text h2,
body.dark .story-text p {
  color: #94a3b8 !important;
}

body.dark .story-text h2 {
  color: #f1f5f9 !important;
}

body.dark .pricing-price {
  color: #93c5fd !important;
}

body.dark .pricing-card p {
  color: #94a3b8 !important;
}

/* Links in content */
body.dark main a:not(.btn-primary):not(.btn-outline):not(.btn-white):not(.nav-link):not(.card-link) {
  color: #60a5fa;
}

body.dark main a:not(.btn-primary):not(.btn-outline):not(.btn-white):hover {
  color: #93c5fd;
}

/* Outline button on dark */
body.dark .btn-outline {
  color: #60a5fa !important;
  border-color: #60a5fa !important;
}

body.dark .btn-outline:hover {
  background: #2563eb !important;
  color: #fff !important;
}

/* ============================================
   LOGO DARK / LIGHT MODE SMOOTH TRANSITION
   ============================================ */
#ncli-logo-img {
  transition: opacity 0.15s ease;
}

/* Light mode mein blue logo ka subtle glow */
body:not(.dark) #ncli-logo-img {
  filter: drop-shadow(0 0 6px rgba(37, 99, 235, 0.18));
}

/* Dark mode mein gold logo ka warm glow */
body.dark #ncli-logo-img {
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.30));
}

/* About NCLI Section Dark Mode Fixes */
body.dark .story-badge-1 strong,
body.dark .story-badge-2 strong {
  color: #0f172a !important; /* Keep black/dark in dark mode */
}

body.dark .highlight-item {
  color: #ffffff !important;
}

/* Dashboard Cards (.ds-card) Fixes for Dark Mode */
body.dark .ds-card.blue { background-color: rgba(59, 130, 246, 0.1) !important; border-color: rgba(59, 130, 246, 0.2) !important; }
body.dark .ds-card.green { background-color: rgba(16, 185, 129, 0.1) !important; border-color: rgba(16, 185, 129, 0.2) !important; }
body.dark .ds-card.orange { background-color: rgba(245, 158, 11, 0.1) !important; border-color: rgba(245, 158, 11, 0.2) !important; }
body.dark .ds-card.purple { background-color: rgba(139, 92, 246, 0.1) !important; border-color: rgba(139, 92, 246, 0.2) !important; }

body.dark .ds-card span { color: #94a3b8 !important; }
body.dark .ds-card strong { color: #f1f5f9 !important; }

/* ==========================================================================
   INDEX.PHP HERO SECTION & FAQ DARK MODE OVERRIDES
   ========================================================================== */

/* Keep the home hero wave image visible in dark mode */
body.dark .home-visual-hero.hero {
  background-color: #07111f !important;
  background-image:
    radial-gradient(circle at 10% 8%, rgba(56, 189, 248, 0.20), transparent 28%),
    linear-gradient(135deg, rgba(2, 6, 23, 0.22), rgba(15, 23, 42, 0.08)),
    url("../images/home-hero-wave-bg.png") !important;
  background-repeat: no-repeat, no-repeat, no-repeat !important;
  background-position: center, center, center center !important;
  background-size: cover, cover, 100% 100% !important;
}

body.dark .home-visual-hero.hero::before,
body.dark .home-visual-hero.hero::after {
  display: none !important;
}

body.dark .home-visual-hero .hero-kickers .hero-badge {
  color: #dbeafe !important;
  border-color: rgba(96, 165, 250, 0.42) !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.32), rgba(14, 165, 233, 0.20)) !important;
  box-shadow: 0 10px 26px rgba(14, 165, 233, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

body.dark .home-visual-hero .hero-kickers .hero-badge i {
  color: #67e8f9 !important;
}

/* Hero Section cards backgrounds & borders */
body.dark .home-visual-hero .hero-main-card,
body.dark .home-visual-hero .hero-track-card,
body.dark .home-visual-hero .hero-info-card {
  background: rgba(15, 23, 42, 0.68) !important;
  border-color: rgba(125, 211, 252, 0.22) !important;
  color: #cbd5e1 !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(9px) saturate(1.18) !important;
}

body.dark .home-visual-hero .hero-main-card:hover,
body.dark .home-visual-hero .hero-track-card:hover,
body.dark .home-visual-hero .hero-info-card:hover {
  background: rgba(30, 41, 59, 0.95) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.15) !important;
}

body.dark .home-visual-hero .hero-title {
  color: #ffffff !important;
}

body.dark .home-visual-hero .hero-desc {
  color: #cbd5e1 !important;
}

/* Stat items inside hero card */
body.dark .home-visual-hero .hero-stats .stat-item {
  background: rgba(15, 23, 42, 0.6) !important;
  border-color: rgba(148, 163, 184, 0.1) !important;
  color: #cbd5e1 !important;
}

body.dark .home-visual-hero .hero-stats .stat-item:hover {
  background: rgba(30, 41, 59, 0.8) !important;
  border-color: #38bdf8 !important;
}

body.dark .home-visual-hero .hero-stats .stat-num {
  color: #38bdf8 !important;
}

body.dark .home-visual-hero .hero-stats .stat-label {
  color: #94a3b8 !important;
}

/* Track card list & details */
body.dark .home-visual-hero .hero-track-head strong {
  color: #ffffff !important;
}

body.dark .home-visual-hero .hero-track-head p {
  color: #94a3b8 !important;
}

body.dark .home-visual-hero .hero-track-list {
  color: #cbd5e1 !important;
}

body.dark .home-visual-hero .hero-card-link {
  color: #38bdf8 !important;
}

body.dark .home-visual-hero .hero-card-label {
  color: #93c5fd !important;
}

body.dark .home-visual-hero .hero-card-label em {
  color: #bbf7d0 !important;
  background: rgba(16, 185, 129, 0.18) !important;
  border: 1px solid rgba(52, 211, 153, 0.26) !important;
}

/* Mini Services Inline H4/P Fixes */
body.dark .hero-services-mini h4 {
  color: #f1f5f9 !important;
}

body.dark .hero-services-mini p {
  color: #94a3b8 !important;
}

/* Visit card details */
body.dark .hero-visit-card p,
body.dark .hero-visit-card p i {
  color: #cbd5e1 !important;
}

body.dark .hero-visit-card a {
  color: #38bdf8 !important;
}

/* Certificate verify card */
body.dark .hero-certificate-card a {
  color: #38bdf8 !important;
}

/* FAQ Accordion hover fixes */
body.dark .faq-summary:hover {
  background: rgba(30, 41, 59, 0.5) !important;
  color: #38bdf8 !important;
}

body.dark .faq-item[open] .faq-summary {
  background: rgba(30, 41, 59, 0.95) !important;
  color: #38bdf8 !important;
}

/* ==========================================================================
   SHOP.PHP DARK MODE OVERRIDES
   ========================================================================== */

/* Category runway dark mode overrides */
body.dark .shop3-category-runway a {
  color: #cbd5e1 !important;
  border-color: #253044 !important;
  background: rgba(17, 24, 39, 0.9) !important;
}
body.dark .shop3-category-runway a strong {
  color: #94a3b8 !important;
  background: #1e293b !important;
}
body.dark .shop3-category-runway a:hover,
body.dark .shop3-category-runway a.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #7c3aed, #2563eb) !important;
  border-color: transparent !important;
}
body.dark .shop3-category-runway a:hover strong,
body.dark .shop3-category-runway a.active strong {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.18) !important;
}
body.dark .shop3-category-runway a:hover i,
body.dark .shop3-category-runway a.active i {
  color: #ffffff !important;
}

/* Shop results block in dark mode */
body.dark .shop2-results p {
  color: #94a3b8 !important;
}
body.dark .shop2-results span {
  color: #60a5fa !important;
}

/* Shop promise sidebar list in dark mode */
body.dark .shop3-promise span {
  color: #cbd5e1 !important;
}
body.dark .shop3-promise i {
  background: rgba(37, 99, 235, 0.2) !important;
  color: #93c5fd !important;
}

/* Shop filter summary reset link in dark mode */
body.dark .shop3-filter-summary a {
  color: #60a5fa !important;
}

/* Info strip dark mode support */
body.dark .shop3-info-strip {
  background: rgba(17, 24, 39, 0.9) !important;
  border-color: #253044 !important;
}
body.dark .shop3-info-item {
  color: #cbd5e1 !important;
}

/* Product card overrides in dark mode */
body.dark .shop2-product p {
  color: #cbd5e1 !important;
}
body.dark .shop2-detail-link {
  color: #60a5fa !important;
}
body.dark .shop2-product-top span {
  color: #60a5fa !important;
}
body.dark .shop2-product-top em {
  color: #4ade80 !important;
}
body.dark .shop2-product-top em.low {
  color: #f87171 !important;
}
body.dark .shop3-stock-line span {
  color: #94a3b8 !important;
}
body.dark .shop3-stock-line div {
  background: #334155 !important;
}

/* ==========================================================================
   STUDENT DASHBOARD & TEST RESULTS DARK MODE FIXES
   ========================================================================== */

/* Main Containers & Cards */
body.dark .dash-card,
body.dark .student-info-bar,
body.dark .learning-hub {
  background: #111827 !important;
  border-color: #1f2937 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

body.dark .dash-card-header {
  border-bottom-color: #1f2937 !important;
}

body.dark .dash-card-header h3,
body.dark .student-info-bar h2,
body.dark .learning-hub-head h2,
body.dark .dash-card h3,
body.dark .dash-card h4,
body.dark .dash-card h5 {
  color: #f8fafc !important;
}

body.dark .sib-details h2 {
  color: #f8fafc !important;
}

body.dark .sib-meta span {
  color: #cbd5e1 !important;
}

body.dark .dash-details .dd-row span {
  color: #cbd5e1 !important;
}

body.dark .dash-details .dd-row strong {
  color: #f8fafc !important;
}

body.dark .dash-details .dd-row span[style*="color: #0f172a"],
body.dark .dash-details strong[style*="color: #0f172a"],
body.dark .dash-details span[style*="color:#0f172a"],
body.dark .dash-details strong[style*="color:#0f172a"] {
  color: #f8fafc !important;
}

/* Learning Hub */
body.dark .learning-card {
  background: #1e293b !important;
  border-color: #334155 !important;
}

body.dark .learning-card.current {
  background: rgba(30, 58, 138, 0.4) !important;
  border-color: #3b82f6 !important;
}

body.dark .learning-label {
  color: #94a3b8 !important;
}

body.dark .learning-card strong {
  color: #f8fafc !important;
}

body.dark .learning-card small {
  color: #cbd5e1 !important;
}

body.dark .learning-item {
  background: #0f172a !important;
  border-color: #334155 !important;
}

body.dark .learning-item strong {
  color: #f8fafc !important;
}

body.dark .learning-item small {
  color: #94a3b8 !important;
}

body.dark .learning-empty {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #94a3b8 !important;
}

body.dark .learning-card input[type="text"],
body.dark .learning-card select {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

/* Test Cards in Student Dashboard */
body.dark .dash-card div[style*="background: #fff; border: 1.5px solid #e2e8f0"],
body.dark .dash-card div[style*="background:#fff; border:1.5px solid #e2e8f0"],
body.dark .dash-card div[style*="background: #fff; border: 1.5px solid"],
body.dark .dash-card div[style*="background:#fff; border:1.5px solid"] {
  background: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

body.dark .dash-card h4[style*="color: #0f172a"],
body.dark .dash-card h4[style*="color:#0f172a"],
body.dark .dash-card h4 {
  color: #f8fafc !important;
}

body.dark .dash-card div[style*="background: #f8fafc; border: 1px solid #e2e8f0"],
body.dark .dash-card div[style*="background:#f8fafc; border:1px solid #e2e8f0"] {
  background: #0f172a !important;
  border-color: #334155 !important;
}

body.dark .dash-card div[style*="background: #f8fafc; border: 1px solid #e2e8f0"] span,
body.dark .dash-card div[style*="background:#f8fafc; border:1px solid #e2e8f0"] span,
body.dark .dash-card p[style*="color: #64748b"],
body.dark .dash-card p[style*="color:#64748b"] {
  color: #cbd5e1 !important;
}

/* Top 10 Leaderboard in Test Cards */
body.dark .dash-card div[style*="border-top: 1px dashed #cbd5e1"],
body.dark .dash-card div[style*="border-top:1px dashed #cbd5e1"] {
  border-top-color: #334155 !important;
}

body.dark .dash-card span[style*="color: #0f172a"],
body.dark .dash-card span[style*="color:#0f172a"] {
  color: #f8fafc !important;
}

body.dark .dash-card span[style*="background: #f1f5f9"],
body.dark .dash-card span[style*="background:#f1f5f9"] {
  background: #334155 !important;
  color: #e2e8f0 !important;
}

body.dark .dash-card div[style*="background: #f8fafc; border: 1px solid #f1f5f9"],
body.dark .dash-card div[style*="background:#f8fafc; border:1px solid #f1f5f9"] {
  background: #0f172a !important;
  border-color: #1e293b !important;
}

body.dark .dash-card div[style*="background: #f8fafc"] span[style*="color: #334155"],
body.dark .dash-card div[style*="background:#f8fafc"] span[style*="color:#334155"] {
  color: #e2e8f0 !important;
}

body.dark .dash-card div[style*="background: #eff6ff; border: 1px solid #bfdbfe"],
body.dark .dash-card div[style*="background:#eff6ff; border:1px solid #bfdbfe"] {
  background: rgba(30, 58, 138, 0.4) !important;
  border-color: #2563eb !important;
}

body.dark .dash-card div[style*="background: #eff6ff"] span[style*="color: #1d4ed8"],
body.dark .dash-card div[style*="background:#eff6ff"] span[style*="color:#1d4ed8"] {
  color: #93c5fd !important;
}

/* Empty Test State Placeholder */
body.dark div[style*="background: #f8fafc; border-radius: 12px; border: 1px dashed #cbd5e1"],
body.dark div[style*="background:#f8fafc; border-radius:12px; border:1px dashed #cbd5e1"] {
  background: #0f172a !important;
  border-color: #334155 !important;
}

body.dark div[style*="background: #f8fafc; border-radius: 12px; border: 1px dashed #cbd5e1"] h4,
body.dark div[style*="background:#f8fafc; border-radius:12px; border:1px dashed #cbd5e1"] h4 {
  color: #f8fafc !important;
}

body.dark div[style*="background: #f8fafc; border-radius: 12px; border: 1px dashed #cbd5e1"] p,
body.dark div[style*="background:#f8fafc; border-radius:12px; border:1px dashed #cbd5e1"] p {
  color: #cbd5e1 !important;
}

/* Fee Receipts & History Table */
body.dark table tr[style*="border-bottom: 2px solid #e2e8f0"],
body.dark table tr[style*="border-bottom:2px solid #e2e8f0"] {
  border-bottom-color: #334155 !important;
  color: #cbd5e1 !important;
}

body.dark table tr[style*="border-bottom: 1px solid #f1f5f9"],
body.dark table tr[style*="border-bottom:1px solid #f1f5f9"] {
  border-bottom-color: #1e293b !important;
}

body.dark table td {
  color: #cbd5e1 !important;
}

body.dark table td strong {
  color: #f8fafc !important;
}

body.dark table td span[style*="background:#f1f5f9"],
body.dark table td span[style*="background: #f1f5f9"] {
  background: #334155 !important;
  color: #e2e8f0 !important;
}

body.dark table td span[style*="background: #eff6ff"],
body.dark table td span[style*="background:#eff6ff"] {
  background: rgba(30, 58, 138, 0.4) !important;
  color: #93c5fd !important;
}

/* Study Notes */
body.dark .note-item {
  background: #1e293b !important;
  border-color: #334155 !important;
}

body.dark .note-info h4 {
  color: #f8fafc !important;
}

body.dark .note-info span {
  color: #94a3b8 !important;
}

/* Support Chat Box */
body.dark .support-chat-card .support-chat-body h4 {
  color: #f8fafc !important;
}

body.dark .support-chat-card .support-chat-body p {
  color: #cbd5e1 !important;
}

/* Typing Achievements in Dark Mode */
body.dark .typing-achievement-card .typing-achievement-summary {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

body.dark .typing-achievement-card .typing-achievement-summary strong {
  color: #f8fafc !important;
}

body.dark .typing-achievement-item {
  background: #0f172a !important;
  border-color: #334155 !important;
}

body.dark .typing-achievement-info strong {
  color: #f8fafc !important;
}

body.dark .typing-achievement-info span {
  color: #94a3b8 !important;
}

body.dark .typing-achievement-pending {
  background: #0f172a !important;
  border-color: #334155 !important;
}

body.dark .typing-achievement-pending h4 {
  color: #f8fafc !important;
}

body.dark .typing-achievement-pending p {
  color: #cbd5e1 !important;
}

body.dark .typing-current-progress {
  background: #1e293b !important;
  color: #cbd5e1 !important;
}

body.dark .typing-current-progress strong {
  color: #f8fafc !important;
}

/* Certificate Card in Dark Mode */
body.dark .cert-pending h4,
body.dark .cert-available h4 {
  color: #f8fafc !important;
}

body.dark .cert-pending p,
body.dark .cert-available p {
  color: #cbd5e1 !important;
}



/* --- css\error-pages.css --- */
/* =====================================================
   NCLI â€” Custom Error Pages (404 / 403 / 500) styles
   Designed to be lightweight, on-brand, and accessible.
   ===================================================== */

.ncli-error-card {
  max-width: 720px;
  margin: 40px auto;
  padding: 36px 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

body.dark .ncli-error-card {
  background: #0f172a;
  border-color: #1e293b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.ncli-error-illustration {
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}

.ncli-error-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
}

body.dark .ncli-error-card h2 {
  color: #f1f5f9;
}

.ncli-error-card p {
  color: #64748b;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
}

body.dark .ncli-error-card p {
  color: #94a3b8;
}

.ncli-error-search {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.ncli-error-search input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #ffffff;
  color: #0f172a;
}

body.dark .ncli-error-search input[type="search"] {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

.ncli-error-search input[type="search"]:focus {
  border-color: #2563eb;
}

.ncli-error-search .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ncli-error-quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.ncli-error-quick-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #0f172a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.2s;
}

.ncli-error-quick-links a:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

body.dark .ncli-error-quick-links a {
  background: #1e293b;
  color: #f1f5f9;
}

body.dark .ncli-error-quick-links a:hover {
  background: #334155;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 540px) {
  .ncli-error-illustration { font-size: 72px; }
  .ncli-error-card { padding: 28px 18px; }
  .ncli-error-search { flex-direction: column; }
  .ncli-error-search .btn-primary { width: 100%; justify-content: center; }
}

