/* =========================================================
   PIMBAL TECHNOLOGY - FINAL STYLESHEET
   Last updated: Feb 2026
========================================================= */

/* ==============================
   ROOT DESIGN TOKENS
============================== */
:root {
  /* Legacy Brand Elements */
  --color-primary: #005df8;
  --color-primary-dark: #0047c2;
  --color-primary-light: #3b82ff;

  /* Legacy Neutrals & Backgrounds */
  --color-dark: #110e0f;
  --color-light: #f1f1e8;
  --bg-body: #ffffff;
  --bg-surface: #ffffff;
  --bg-dark: #110e0f;

  /* Legacy Text & UI */
  --text-primary: #110e0f;
  --text-secondary: #555555;
  --text-light: #ffffff;
  --border-color: #e5e5e5;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;

  /* ==============================
     PREMIUM TOKENS (Shared globally)
  ============================== */
  /* Sophisticated Color Palette */
  --prm-slate-900: #0f172a;
  --prm-slate-800: #1e293b;
  --prm-slate-700: #334155;
  --prm-slate-600: #475569;
  --prm-slate-500: #64748b;
  --prm-slate-400: #94a3b8;
  --prm-slate-300: #cbd5e1;
  --prm-slate-200: #e2e8f0;
  --prm-slate-100: #f1f5f9;
  --prm-slate-50: #f8fafc;

  --prm-primary: #2563eb;
  --prm-primary-hover: #1d4ed8;
  --prm-primary-light: #eff6ff;

  --prm-bg: #ffffff;
  --prm-surface: #f8fafc;
  --prm-border: #e2e8f0;

  /* Global Shadow scale for depth */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md:
    0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg:
    0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-card:
    0 0 0 1px rgba(15, 23, 42, 0.05), 0 4px 6px -1px rgba(15, 23, 42, 0.05);

  /* Layout Constants */
  --sidebar-w: 280px;
  --widget-w: 320px;
  --content-max-w: clamp(820px, 60vw, 1100px);
  --navbar-h: 80px;
}

/* Dark mode support (TEMPORARILY DISABLED)
@media (prefers-color-scheme: dark) {
  :root {
    --bg-body: #0d0d11;
    --bg-surface: #17171f;
    --bg-dark: #000000;
    --text-primary: #f1f1f5;
    --text-secondary: #a0a0b0;
    --border-color: #333344;
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.6);
  }

  .navbar {
    background: rgba(23, 23, 31, 0.92) !important;
    backdrop-filter: blur(12px);
  }

  .pimbal-item,
  .card {
    background: var(--bg-surface);
  }
}
*/

/* ==============================
   GLOBAL BASE
============================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ==============================
   TYPOGRAPHY
============================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1rem;
}

p {
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--color-primary-dark);
}

/* ==============================
   BOOTSTRAP OVERRIDES
============================== */
.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 10px;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-outline-primary {
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
}

.btn-outline-primary:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.card {
  border: none;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.form-control {
  border-radius: 10px;
  border: 1px solid var(--border-color);
  padding: 12px 16px;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.25rem rgba(0, 93, 248, 0.12);
}

/* ==============================
   NAVBAR
============================== */
.navbar {
  padding: 1rem 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  z-index: 1020;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--prm-border);
}

.navbar-brand {
  letter-spacing: -0.02em;
  color: var(--prm-primary) !important;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--prm-slate-600);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 1rem;
  transition: color 0.2s;
}

.navbar-light .navbar-nav .nav-link:hover {
  color: var(--prm-slate-900);
}

/* ==============================
   SECTIONS
============================== */
.section {
  padding: 100px 0;
}

.section-light {
  background: var(--bg-surface);
}

/* ==============================
   HERO
============================== */
.hero-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--prm-bg);
  background-image:
    radial-gradient(
      circle at top right,
      var(--prm-primary-light) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(37, 99, 235, 0.05) 0%,
      transparent 40%
    );
  padding: 100px 15px 60px;
  position: relative;
  overflow: hidden;
}

.hero-main .container {
  position: relative;
  z-index: 1;
}

.hero-img {
  max-width: 100%;
  height: auto;
  transition: transform 0.5s ease;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

.hero-img:hover {
  transform: translateY(-12px) scale(1.03);
}

/* ==============================
   WHO WE ARE STATS (BENTO)
============================== */
.stat-bento {
  background: var(--prm-bg);
  border: 1px solid var(--prm-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.who-we-are hr {
  width: 90px;
  height: 4px;
  margin: 14px auto;
  border: none;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary) 50%,
    transparent
  );
  opacity: 0.75;
}

.stat-bento:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--prm-slate-300);
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--prm-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--prm-slate-500);
  line-height: 1.4;
}

/* ==============================
   BENTO GRID (PIMBAL STYLE)
============================== */
.pimbal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 24px;
}

.pimbal-item {
  background: var(--prm-bg);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--prm-border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pimbal-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.pimbal-large {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(135deg, var(--prm-primary) 0%, #4f46e5 100%);
  color: white;
  padding: 40px;
  border: none;
}

.pimbal-wide {
  grid-column: span 2;
}

.pimbal-clickable {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.pimbal-link {
  font-weight: 600;
  color: var(--color-primary);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.pimbal-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.pimbal-clickable:hover .pimbal-link::after {
  width: 100%;
}

.pimbal-clickable:hover .pimbal-link {
  transform: translateX(6px);
  color: var(--color-primary-dark);
}

/* Hover overlay effect */
.pimbal-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(0, 93, 248, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.pimbal-item:hover::before {
  opacity: 1;
}

/* Icon scaling on hover */
.pimbal-item i.fa-3x {
  transition: var(--transition);
}

.pimbal-clickable:hover i.fa-3x {
  transform: scale(1.15);
}

/* Large block button */
.pimbal-large .btn-light {
  background: white;
  color: var(--color-primary);
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 10px;
}

.pimbal-large .btn-light:hover {
  background: var(--color-primary-light);
  color: white;
  transform: translateY(-3px);
}

/* ==============================
   FOOTER
============================== */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 80px 0 40px;
}

.footer a {
  color: #cccccc;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--color-primary);
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 1200px) {
  .pimbal-grid {
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .pimbal-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .pimbal-large {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 576px) {
  .pimbal-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 20px;
  }

  .pimbal-item {
    min-height: 220px;
    padding: 28px 24px;
  }

  .pimbal-large,
  .pimbal-wide {
    grid-column: span 1;
  }

  .hero-main {
    min-height: auto;
    padding: 100px 15px 80px;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 2rem;
  }
}

.pimbal-item i.fa-3x {
  transition: var(--transition);
}

/* ==============================
   CASE AUTHORITY BLOCK
============================== */

.case-authority {
  padding: 100px 0;
}

.authority-box {
  background: var(--bg-primary);
  border-radius: 40px;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* subtle background glow */
.authority-box::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 93, 248, 0.25), transparent 70%);
  top: -150px;
  right: -150px;
  z-index: 0;
}

.authority-left,
.authority-right {
  position: relative;
  z-index: 1;
}

.authority-left h2 {
  font-size: 2.5rem;
}

.authority-left p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
}

.authority-link {
  display: inline-block;
  margin-top: 30px;
  font-weight: 600;
  color: white;
  transition: var(--transition);
}

.authority-link:hover {
  transform: translateX(8px);
  color: var(--color-primary-light);
}

/* Right Grid */
.case-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.case-proof {
  text-align: center;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.case-proof img {
  max-height: 60px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.case-proof span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  display: block;
}

.case-proof:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 992px) {
  .authority-box {
    padding: 60px 30px;
  }

  .case-proof-grid {
    margin-top: 40px;
  }
}

@media (max-width: 576px) {
  .case-proof-grid {
    grid-template-columns: 1fr;
  }

  .authority-left h2 {
    font-size: 2rem;
  }
}

/* CASE SPOTLIGHT */
.case-spotlight {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  margin-top: 5px;
  box-shadow: var(--shadow-md);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.case-slide.active {
  opacity: 1;
  position: relative;
}

.case-logo {
  max-width: 120px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.case-slide h5 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: white;
}

.case-slide span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* Carousel Nav Buttons */
.case-carousel-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.carousel-prev,
.carousel-next {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

/* CTA Arrow */
.case-cta {
  text-align: center;
  margin-top: 12px;
}

.view-case-link {
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.view-case-link i {
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.view-case-link:hover {
  color: var(--color-primary-dark);
}

.view-case-link:hover i {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
  .case-spotlight {
    padding: 30px;
    min-height: 220px;
  }

  .case-logo {
    max-width: 100px;
  }

  .case-slide h5 {
    font-size: 1.1rem;
  }
}

.step-number {
  font-size: clamp(10rem, 20vw, 18rem);
  font-weight: 900;
  line-height: 1;
  opacity: 0.12;
  user-select: none;
  pointer-events: none;
}

.step-wrapper {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
}

.step-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
  color: var(--black);
  opacity: 0.6;
  pointer-events: auto;
  transition: transform 0.35s ease;
}

.step-item {
  transition: transform 0.4s ease;
}

.step-item:hover {
  transform: translateY(-18px);
}

.step-item:hover .step-wrapper {
  transform: translateY(-8px);
}

.step-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--black);
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 992px) {
  .step-number {
    font-size: clamp(8rem, 18vw, 12rem);
  }

  .step-wrapper {
    height: 140px;
  }

  .step-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 576px) {
  .step-number {
    font-size: clamp(6rem, 16vw, 9rem);
  }

  .step-wrapper {
    height: 110px;
  }

  .step-title {
    font-size: 1.4rem;
  }

  .step-item:hover {
    transform: translateY(-10px);
  }

  .step-item:hover .step-wrapper {
    transform: translateY(-5px);
  }
}

.service-hero {
  min-height: 100vh;
  background: #f8f9fa;
}

.hero-image {
  max-width: 90%;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Mobile fix */
@media (max-width: 991px) {
  .service-hero {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* ============================= */
/* CTA SECTION */
/* ============================= */

.cta-section {
  padding: 80px 0;
}

/* ============================= */
/* CTA CONTAINER */
/* ============================= */

.cta-bento {
  background: linear-gradient(135deg, var(--color-primary), #003bb5);
  border-radius: 24px;
  padding: 60px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Subtle highlight */
.cta-bento::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(255, 255, 255, 0.12),
    transparent 60%
  );
  pointer-events: none;
}

/* ============================= */
/* LAYOUT */
/* ============================= */

.cta-wrapper {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* ============================= */
/* LEFT SIDE */
/* ============================= */

.cta-main h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  margin-bottom: 20px;
  color: whitesmoke;
}

.cta-main p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 520px;
  margin-bottom: 30px;
  color: whitesmoke;
}

/* ============================= */
/* BUTTONS */
/* ============================= */

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  /* FIX: proper spacing */
  margin-bottom: 25px;
}

.cta-buttons .btn {
  border-radius: 12px;
  padding: 14px 26px;
  font-weight: 600;
  min-width: 220px;
}

.cta-buttons .btn-light {
  background: #ffffff;
  color: var(--color-primary);
  border: none;
}

.cta-buttons .btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: whitesmoke;
}

.cta-buttons .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ============================= */
/* TRUST ITEMS */
/* ============================= */

.cta-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  opacity: 0.85;
}

/* ============================= */
/* RIGHT SIDE CARDS */
/* ============================= */

.cta-side {
  display: grid;
  gap: 20px;
}

.cta-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 24px;
  border-radius: 18px;
  transition: all 0.3s ease;
}

.cta-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.14);
}

.cta-card h5 {
  margin-bottom: 8px;
  font-weight: 600;
  color: whitesmoke;
}

.cta-card p {
  font-size: 0.95rem;
  opacity: 0.9;
  color: whitesmoke;
}

.cta-card a {
  display: inline-block;
  margin-top: 12px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
}

.cta-card.highlight {
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* ============================= */
/* TABLET FIX */
/* ============================= */

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

  .cta-side {
    grid-template-columns: 1fr 1fr;
  }

  .cta-bento {
    padding: 50px 40px;
  }
}

.cta-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  opacity: 0.9;
}

.cta-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-trust i {
  font-size: 14px;
  opacity: 0.9;
}

/* ============================= */
/* MOBILE FIX */
/* ============================= */

@media (max-width: 576px) {
  .cta-bento {
    padding: 40px 25px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 14px;
  }

  .cta-buttons .btn {
    width: 100%;
    min-width: unset;
  }

  .cta-side {
    grid-template-columns: 1fr;
  }

  .cta-trust {
    flex-direction: column;
    gap: 10px;
  }
}

/* ============================= */
/* DARK MODE */
/* ============================= */

[data-theme="dark"] .cta-bento {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

[data-theme="dark"] .cta-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .cta-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ============================= */
/* GLOBAL CONTAINER */
/* ============================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  /* for overlay positioning */
  z-index: 2;
}

/* ============================= */
/* PRIMARY TRAINING HERO */
/* ============================= */
.training-hero-primary {
  padding: 110px 0 90px;
  color: whitesmoke;
  position: relative;
  overflow: hidden;
  background-color: var(--color-primary-dark, #1a2b4c);
  /* fallback */
}

/* Subtle glow overlay – now inside container to avoid overflow */
.training-hero-primary .container::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
}

/* ============================= */
/* BREADCRUMB */
/* ============================= */
.training-breadcrumb {
  font-size: 14px;
  margin-bottom: 30px;
  opacity: 0.85;
}

.training-breadcrumb a {
  color: whitesmoke;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.training-breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

.training-breadcrumb span {
  margin: 0 8px;
}

/* ============================= */
/* CONTENT */
/* ============================= */
.training-hero-content {
  width: 100%;
}

.training-hero-content h1 {
  /* font-size: clamp(34px, 5vw, 52px); */
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 25px;
  color: whitesmoke;
  font-size: 2.5rem;
}

.training-description {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-bottom: 50px;
  line-height: 1.5;
  color: whitesmoke;
}
.course-description .container {
  margin-left: -20px;
}

.course-description {
  opacity: 0.9;
  margin-bottom: 50px;
  line-height: 1.5;
}
.course-description h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.course-description h3 {
  font-size: 1.4rem;
  margin-bottom: 25px;
}
.course-description p {
  font-size: 1rem;
  margin-bottom: 20px;
}
.course-description ul {
  list-style: none; /* remove default bullet */
  padding-left: 35px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.course-description li {
  margin-bottom: 10px;
  position: relative;
}

.course-description li::before {
  content: "\f058"; /* fa-circle-check */
  font-family: "Font Awesome 6 Free";
  font-weight: 700; /* required for solid icons */
  position: absolute;
  left: -20px;
  top: 3px;
  font-size: 10px;
  color: var(--color-primary);
}
.course-description a {
  color: var(--color-primary);
  text-decoration: underline;
}
.course-description a:hover {
  color: var(--color-primary-dark);
}
.course-description strong {
  font-weight: 600;
  color: var(--text-primary);
}
/* ============================= */
/* META */
/* ============================= */
.instructor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 30px 0 45px;
  font-size: 1rem;
  /* slightly larger for readability */
  opacity: 0.9;
}

.instructor-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.instructor-meta i {
  font-size: 1.1rem;
  width: 1.2rem;
  /* fixed width for alignment */
  text-align: center;
}

/* ============================= */
/* CTA BUTTONS */
/* ============================= */
.training-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.training-cta .btn {
  border-radius: 12px;
  padding: 14px 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  border: 2px solid transparent;
}

.course-details-left {
  text-align: justify;
}

/* Light button (Enroll Now) */
.btn-light {
  background-color: whitesmoke;
  color: var(--color-primary-dark, #1a2b4c);
}

.btn-light:hover {
  background-color: transparent;
  color: whitesmoke;
  border-color: whitesmoke;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Outline button (Enquire Now) */
.btn-outline-light {
  background-color: var(--color-primary);
  color: whitesmoke;
  border-color: whitesmoke;
}

.btn-outline-light:hover {
  background-color: whitesmoke;
  color: var(--color-primary-dark, #1a2b4c);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width: 768px) {
  .training-hero-primary {
    padding: 80px 0;
  }

  .training-hero-content h1 {
    font-size: 38px;
  }

  .training-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .instructor-meta {
    flex-direction: column;
    gap: 12px;
    margin: 20px 0 35px;
  }

  .training-cta {
    flex-direction: column;
    gap: 15px;
  }

  .training-cta .btn {
    width: 100%;
    text-align: center;
  }

  /* Adjust glow on mobile */
  .training-hero-primary .container::before {
    width: 250px;
    height: 250px;
    top: -50px;
    right: -50px;
  }
}

@media (max-width: 480px) {
  .training-hero-primary {
    padding: 60px 0;
  }

  .training-hero-content h1 {
    font-size: 32px;
  }

  .training-breadcrumb {
    font-size: 12px;
    margin-bottom: 20px;
  }

  .instructor-meta span {
    font-size: 0.9rem;
  }
}

/* ============================= */
/* QUICK INTRO SECTION */
/* ============================= */

/* ============================= */
/* QUICK INTRO SECTION */
/* ============================= */

.quick-intro {
  padding: 60px 0;
  background-color: #f9fafb;
  /* Fixed color */
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .quick-intro {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.06);
}

/* Grid Layout */

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 30px;
}

/* Each Item */

.quick-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Icon */

.quick-icon {
  width: 45px;
  height: 45px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #e1e2e3;
  transition: all 0.3s ease;
}

.quick-item:hover .quick-icon {
  transform: translateY(-3px);
  background: #063395;
  color: #fff;
}

[data-theme="dark"] .quick-icon {
  background: rgba(255, 255, 255, 0.06);
  color: #60a5fa;
}

/* Text */

.quick-text {
  display: flex;
  flex-direction: column;
}

.quick-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.6;
  margin-bottom: 3px;
}

.quick-value {
  font-size: 16px;
  font-weight: 600;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

/* Tablet */
@media (max-width: 992px) {
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 576px) {
  .quick-grid {
    grid-template-columns: 1fr;
  }

  .quick-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  [data-theme="dark"] .quick-item {
    border-color: rgba(255, 255, 255, 0.06);
  }
}

/* Hide content visually but keep in DOM */
.more-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

/* Expanded state */
.more-wrapper.active {
  max-height: 500px;
  /* Large enough for content */
}

.show-more-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

.price-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 20px;
}

.discount-badge {
  background: #dc3545;
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 13px;
}

.old-price {
  text-decoration: line-through;
  color: #888;
}

.new-price {
  color: var(--color-primary);
  font-weight: 700;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.feature-list li {
  margin-bottom: 10px;
}

.enroll-btn {
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  padding: 10px;
  font-weight: 600;
}

.course-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 2px solid #eee;
  margin-bottom: 30px;
  overflow: hidden;
}

.tab-btn {
  background: none;
  border: none;
  font-weight: 600;
  padding: 12px 20px;
  cursor: pointer;
  position: relative;
  color: #555;
}

.tab-btn.active {
  color: var(--color-primary);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-primary);
}

/* Hide inactive content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Remove default bullets */
ul.custom-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.custom-list li {
  position: relative;
  padding-left: 40px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.5;
}

/* Font Awesome Tick Icon */
ul.custom-list li::before {
  content: "\f058";
  /* fa-circle-check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  /* required for solid icons */
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 18px;
  color: var(--primary);
  color: var(--color-primary);
}

/* ===== Right Sidebar ===== */
.sticky-sidebar {
  position: sticky;
  top: 20px;
}

/* ===== Card Base ===== */
.sidebar-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  margin-bottom: 25px;
  border: 1px solid #f0f0f0;
}

/* ===== Pricing Header ===== */
.pricing-header {
  background: var(--color-primary);
  padding: 25px;
  color: whitesmoke;
  border-bottom: 1px solid #f1f1f1;
}

.pricing-header h3 {
  font-weight: 700;
  color: whitesmoke;
}

.old-price {
  text-decoration: line-through;
  color: whitesmoke;
  font-size: 14px;
}

.pricing-header small {
  color: whitesmoke;
}

/* ===== Features ===== */
.feature-item {
  padding: 14px 0;
  border-bottom: 1px solid #f1f1f1;
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-icon {
  color: var(--color-primary);
  margin-right: 10px;
  font-size: 18px;
}

/* ===== Buttons ===== */
.btn-primary {
  background: var(--color-primary);
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-weight: 600;
}

.btn-primary:hover {
  background: #0b5ed7;
}

.btn-outline-secondary {
  border-radius: 8px;
}

/* ===== Enquiry Form ===== */
.enquiry-header {
  background: var(--color-primary);
  padding: 25px;
  border-bottom: 1px solid #f1f1f1;
}

.enquiry-header h6 {
  font-weight: 600;
  color: whitesmoke;
}

.form-control {
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}

.form-control:focus {
  box-shadow: none;
  border-color: var(--color-primary);
}

.feature-icon {
  color: var(--color-primary);
  font-size: 18px;
  margin-top: 4px;
}

.course-syllabus {
  font-family: "Poppins", sans-serif;
  color: #333;
  padding: 50px 15px;
}

.course-syllabus h2 {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
  color: whitesmoke;
}

/* course-accordion Container */
.course-accordion {
  width: 100%;
  margin: 0;
  max-width: 800px;
}

/* Module Item */
.course-accordion-item {
  background-color: #fff;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    background-color 0.3s;
}

.course-accordion-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* course-accordion Header */
.course-accordion-header {
  background-color: var(--color-primary);
  color: #fff;
  cursor: pointer;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition:
    background 0.3s,
    color 0.3s;
}

.course-accordion-header:hover {
  background-color: #0b5ed7;
}

.course-accordion-header i {
  transition: transform 0.3s;
}

/* course-accordion Body */
.course-accordion-body {
  background-color: #f9f9f9;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.5s ease,
    padding 0.3s ease,
    background-color 0.3s;
  padding: 0 25px;
}

.course-accordion.active .course-accordion-body {
  padding: 20px 25px;
}

/* Topics List */
ul.custom-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.custom-list li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
}

ul.custom-list li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 16px;
  color: var(--color-primary);
}

ul.custom-list li a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

ul.custom-list li a:hover {
  color: var(--color-primary);
}

.course-accordion-body p {
  margin-bottom: 15px;
  line-height: 1.7;
  color: #555;
}

.benefits-table {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.benefits-col {
  padding: 25px;
}
.benefits-col li {
  position: relative;
  padding-left: 28px; /* space for icon */
  list-style: none;
}

.benefits-col li::before {
  content: "\f058"; /* fa-circle-check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900; /* required for solid icons */
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 10px;
  line-height: 1.5;
  color: var(--primary);
  color: var(--color-primary);
}

.benefits-right {
  border-left: 1px solid #eee;
}

.benefit-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1.5;
}

.provider-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid #eee;
}

.provider-header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.provider-logo img {
  width: 70px;
  height: auto;
  border-radius: 8px;
}

.provider-tagline {
  font-size: 14px;
  color: #6c757d;
  display: block;
}

.provider-name {
  font-size: 24px;
  font-weight: 700;
  margin: 2px 0 0;
}

.provider-about {
  margin: 20px 0;
  line-height: 1.7;
  color: #555;
}

.provider-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.provider-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 6px;
}

.provider-item i {
  color: var(--color-primary);
  font-size: 16px;
}

.faq-accordion {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
}

.faq-question i {
  transition: 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  color: #555;
  margin-top: 10px;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.career-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: 0.3s;
}

.career-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.career-card i {
  font-size: 28px;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.career-card h6 {
  font-weight: 600;
  margin-bottom: 10px;
  color: #222;
}

.career-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.blog-card {
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  background: transparent;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.blog-card img {
  height: 200px;
  object-fit: cover;
  width: 100%;
  border-radius: 8px;
}

.blog-card h5 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.blog-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.read-btn {
  font-size: 14px;
  font-weight: 600;
  color: #0d6efd;
  cursor: pointer;
  text-decoration: none;
}

.read-btn:hover {
  text-decoration: underline;
}

.bottom-cta {
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  margin-top: 60px;
}

.bottom-cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: whitesmoke;
  margin-bottom: 20px;
}

.bottom-cta-subtitle {
  font-size: 1.2rem;
  max-width: 700px;
  color: whitesmoke;
  margin: 0 auto;
}

.bottom-cta-btn {
  font-size: 1.2rem;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.bottom-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ==============================
   FOOTER
============================== */
.footer {
  background-color: var(--prm-slate-900);
  color: var(--prm-slate-400);
  border-top: 1px solid var(--prm-slate-800);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer h5,
.footer h6 {
  color: white;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.footer a {
  color: var(--prm-slate-400);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: white;
}

.footer hr {
  border-color: var(--prm-slate-700);
  opacity: 1;
}

/* Responsive */
@media (max-width: 576px) {
  .bottom-cta-title {
    font-size: 2rem;
  }

  .bottom-cta-subtitle {
    font-size: 1rem;
  }

  .bottom-cta-btn {
    font-size: 1rem;
    padding: 12px 30px;
  }
}

/* ============================== 
   MERGED FROM TOPIC.CSS 
============================== */

/* =============== PREMIUM TOPIC LAYOUT ================ */

body {
  background-color: var(--prm-bg);
  color: var(--prm-slate-800);
  /* Make typography crisp */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Elegant Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--prm-slate-300);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--prm-slate-400);
}

/* Base Layout Wrapper */
.topic-wrapper {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--navbar-h));
  position: relative;
}

@media (min-width: 1024px) {
  .topic-wrapper {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* --- App-Like Left Sidebar --- */
.sidebar-left {
  width: 100%;
  background-color: var(--prm-surface);
  border-right: 1px solid var(--prm-border);
  padding: 2rem 1.5rem;
  overflow-y: auto;
  z-index: 1000;
}

@media (min-width: 1024px) {
  .sidebar-left {
    width: var(--sidebar-w);
    flex-shrink: 0;
    position: sticky;
    top: var(--navbar-h);
    height: calc(100vh - var(--navbar-h));
  }
}

/* Mobile Sidebar Slide-in */
@media (max-width: 1023px) {
  .sidebar-left {
    position: fixed;
    top: var(--navbar-h);
    left: -320px;
    width: 300px;
    height: calc(100vh - var(--navbar-h));
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* Apple-like snap */
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
  }

  .sidebar-left.show-mobile {
    left: 0;
  }
}

.sidebar-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--prm-slate-400);
  margin-bottom: 1.5rem;
  padding-left: 0.5rem;
}

.sidebar-header {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  color: var(--prm-slate-700);
  transition: all 0.2s ease;
  font-size: 0.75rem;
}

.sidebar-header:hover {
  background-color: var(--prm-slate-100);
  color: var(--prm-slate-900);
}

.active-group {
  color: var(--prm-primary);
}

.active-group i {
  color: var(--prm-primary) !important;
}

.subtopics-list {
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  border-left: 1px solid var(--prm-border);
  margin-left: 1.25rem;
  padding-left: 0.5rem;
}

.subtopic-item {
  padding: 0.4rem 0.75rem;
  margin-bottom: 0.15rem;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--prm-slate-500);
  transition: all 0.2s ease;
  font-weight: 400;
  text-decoration: none;
  color: inherit;
}

.subtopic-item:hover {
  color: var(--prm-slate-900);
  background-color: var(--prm-slate-100);
}

.active-subtopic {
  color: var(--prm-primary) !important;
  font-weight: 600 !important;
  background-color: var(--prm-primary-light);
}
.active-subtopic a {
  text-decoration: none;
  color: inherit;
}

/* --- Reading-Optimized Content Area --- */
.topic-content-wrapper {
  flex-grow: 1;
  background-color: var(--prm-bg);
  min-width: 0;
  display: flex;
  justify-content: center;
  /* Center the text container */
}

.topic-content {
  width: 100%;
  max-width: var(--content-max-w);
  /* padding: 2.5rem 1.5rem 5rem 1.5rem; */
}

@media (min-width: 1024px) {
  .topic-content {
    padding: 4rem 3rem 6rem 3rem;
  }
}

/* Refined Typography */
.topic-body {
  animation: fadeIn 0.4s ease-out forwards;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topic-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  /* Responsive fluid typography */
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--prm-slate-900);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.topic-body p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--prm-slate-600);
  margin-bottom: 1.75rem;
  font-weight: 400;
}

.topic-body h2 {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--prm-slate-800);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

.topic-body h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--prm-slate-800);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.topic-body h4 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--prm-slate-800);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.topic-body h5 {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--prm-slate-800);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}
.topic-body h6 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--prm-slate-800);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Rich Content Elements */
.topic-body ul,
.topic-body ol {
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
  color: var(--prm-slate-600);
  font-size: 1.125rem;
  line-height: 1.5rem;
  margin-left: 0.75rem;
}

.topic-body ul li,
.topic-body ol li {
  margin-bottom: 0.5rem;
}

.topic-body ul li::marker {
  color: var(--prm-primary);
}

.topic-body ol {
  list-style-type: decimal;
}

.topic-body ol li::marker {
  color: var(--prm-slate-500);
  font-weight: 600;
}

.topic-body strong,
.topic-body b {
  font-weight: 600;
  color: var(--prm-slate-900);
}

.topic-body em,
.topic-body i {
  font-style: italic;
  color: var(--prm-slate-700);
}

/* Inline Code */
.topic-body code:not(pre code) {
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 0.875em;
  background-color: var(--prm-slate-100);
  color: var(--prm-slate-800);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--prm-border);
}

/* Blockquotes */
.topic-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--prm-primary);
  background-color: var(--prm-primary-light);
  border-radius: 0 8px 8px 0;
  color: var(--prm-slate-700);
  font-size: 1.1rem;
  font-style: italic;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.05);
}

.topic-body blockquote p:last-child {
  margin-bottom: 0;
}

/* Tables */
.topic-body table {
  width: 100%;
  margin-bottom: 2rem;
  border-collapse: collapse;
  font-size: 1rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
  border-radius: 8px;
  overflow: hidden;
  /* For rounded corners on borders */
  border-style: hidden;
  /* Hide outer border to let rounded shadow show */
}

.topic-body th,
.topic-body td {
  padding: 1rem 1.25rem;
  border: 1px solid var(--prm-border);
}

.topic-body th {
  background-color: var(--prm-slate-50);
  color: var(--prm-slate-800);
  font-weight: 600;
}

.topic-body td {
  color: var(--prm-slate-600);
  background-color: var(--prm-bg);
}

.topic-body tr:nth-child(even) td {
  background-color: #fafbfc;
  /* Extremely subtle stripe */
}

.topic-body tr:hover td {
  background-color: var(--prm-primary-light);
  color: var(--prm-slate-900);
}

/* Overflow Wrapper for Tables on Mobile */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 2rem;
  border-radius: 8px;
  border: 1px solid var(--prm-border);
}

.table-responsive table {
  margin-bottom: 0;
  box-shadow: none;
  border-radius: 0;
  border-style: solid;
}

/* Elegant Breadcrumbs */
.breadcrumb-nav {
  margin-bottom: 2rem;
}

.breadcrumb {
  font-size: 0.875rem;
  font-weight: 500;
}

.breadcrumb-item a {
  color: var(--prm-slate-400);
  transition: color 0.2s;
}

.breadcrumb-item a:hover {
  color: var(--prm-slate-700);
}

.breadcrumb-item.active {
  color: var(--prm-primary);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  /* Minimal separator */
  color: var(--prm-slate-300);
  font-size: 1.2rem;
  line-height: 1;
}

/* Mac-Style Code Block */
.code-wrapper {
  background-color: #0d1117;
  /* GitHub Dark tint */
  border-radius: 12px;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mac-dots {
  display: flex;
  gap: 6px;
}

.mac-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mac-dots span:nth-child(1) {
  background-color: #ff5f56;
}

.mac-dots span:nth-child(2) {
  background-color: #ffbd2e;
}

.mac-dots span:nth-child(3) {
  background-color: #27c93f;
}

.code-lang-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--prm-slate-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--prm-slate-300);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.copy-btn i {
  font-size: 1rem;
}

.code-wrapper pre {
  margin: 0;
  padding: 1.5rem !important;
  /* override hljs */
}

.code-wrapper code {
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* High-end Accordion (FAQs) */
.faq-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--prm-border);
}

.faq-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--prm-slate-800);
  margin-bottom: 2rem;
}

.accordion-item {
  border: 1px solid var(--prm-border);
  border-radius: 12px !important;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.accordion-button {
  font-weight: 600;
  color: var(--prm-slate-800);
  padding: 1.25rem 1.5rem;
  background-color: var(--prm-bg);
}

.accordion-button:not(.collapsed) {
  color: var(--prm-primary);
  background-color: var(--prm-slate-50);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.1);
}

.accordion-body {
  color: var(--prm-slate-600);
  line-height: 1.7;
  padding: 0 1.5rem 1.5rem 1.5rem;
  background-color: var(--prm-slate-50);
}

/* Next / Prev Premium Cards */
.nav-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--prm-border);
}

.nav-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--prm-bg);
  border: 1px solid var(--prm-border);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.nav-card:hover:not(:disabled) {
  border-color: var(--prm-slate-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.nav-card:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--prm-slate-50);
}

.nav-card-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--prm-slate-400);
  margin-bottom: 0.5rem;
}

.nav-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--prm-primary);
  line-height: 1.4;
}

.nav-card-next {
  align-items: flex-end;
  text-align: right;
}

.nav-card-next .nav-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-card-prev .nav-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

/* --- Premium Right Sidebar (Bento Widgets) --- */
.sidebar-right {
  width: 100%;
  background-color: var(--prm-bg);
  padding: 2.5rem 1.5rem;
  border-left: 1px solid var(--prm-border);
}

@media (min-width: 1280px) {
  .sidebar-right {
    width: var(--widget-w);
    flex-shrink: 0;
    position: sticky;
    top: var(--navbar-h);
    height: calc(100vh - var(--navbar-h));
    overflow-y: auto;
  }
}

.bento-card {
  background: var(--prm-bg);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease;
}

.bento-card:hover {
  box-shadow: var(--shadow-md);
}

.bento-card-primary {
  background: linear-gradient(135deg, var(--prm-primary) 0%, #4f46e5 100%);
  color: white;
  border: none;
}

.bento-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bento-title i {
  color: var(--prm-primary);
}

.bento-card-primary .bento-title {
  color: white;
}

.bento-card-primary .bento-title i {
  color: rgba(255, 255, 255, 0.8);
}

.bento-form input,
.bento-form textarea {
  border: 1px solid var(--prm-slate-200);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  background: var(--prm-slate-50);
}

.bento-form input:focus,
.bento-form textarea:focus {
  border-color: var(--prm-primary);
  box-shadow: 0 0 0 3px var(--prm-primary-light);
  outline: none;
  background: white;
}

.bento-btn {
  background: var(--prm-slate-900);
  color: white;
  border-radius: 8px;
  padding: 0.75rem;
  font-weight: 600;
  transition: background 0.2s;
}

.bento-btn:hover {
  background: var(--prm-slate-700);
  color: white;
}

.bento-link {
  display: block;
  color: var(--prm-slate-600);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--prm-border);
  transition: color 0.2s;
}

.bento-link:last-child {
  border-bottom: none;
}

.bento-link:hover {
  color: var(--prm-primary);
}

/* Reading Progress Bar */
#reading-progress {
  position: fixed;
  top: 0;
  /* or top of navbar */
  left: 0;
  height: 3px;
  background: var(--prm-primary);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Mobile Toggle Header */
.mobile-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--prm-border);
  position: sticky;
  top: 0;
  /* assuming navbar is static on mobile or hidden for app view */
  z-index: 990;
  box-shadow: var(--shadow-sm);
}

.mobile-header-btn {
  background: none;
  border: 1px solid var(--prm-border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  color: var(--prm-slate-700);
  font-weight: 600;
  font-size: 0.9rem;
}

@media (min-width: 1024px) {
  .mobile-header {
    display: none;
  }
}

/* whatsapp floating button */

/* WhatsApp Sticky Button & Dialog */
.whatsapp-sticky-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
}

.whatsapp-float-btn {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #20b858);
  color: white;
  border: none;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-float-btn:hover {
  transform: scale(1.12) translateY(-4px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.45);
}

.whatsapp-dialog {
  position: absolute;
  bottom: 90px;
  right: 0;
  width: 320px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.85) translateY(20px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.whatsapp-dialog.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.whatsapp-header {
  background: #075e54;
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whatsapp-header small {
  opacity: 0.85;
}

.whatsapp-close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.whatsapp-close-btn:hover {
  opacity: 1;
}

.whatsapp-body {
  padding: 20px;
  background: #f0f2f5;
}

.quick-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.quick-option-btn {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s;
}

.quick-option-btn:hover {
  background: #e8f5e9;
  border-color: #25d366;
  color: #155e2e;
}

.whatsapp-start-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: white;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.whatsapp-start-btn:hover {
  background: #20b858;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* Pulse animation on load */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float-btn {
  animation: pulse 2s infinite;
}

/* Specific Blog Detail Overrides / Additions to ensure topic-body shines */
.blog-header-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 3rem;
}

.blog-meta-divider {
  height: 1px;
  background: var(--prm-border);
  margin: 2rem 0;
}

.blog-category-pill {
  background: var(--prm-bg);
  border: 1px solid var(--prm-border);
  color: var(--prm-slate-700);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
}

.blog-category-pill:hover {
  background: rgba(79, 70, 229, 0.05);
  border-color: var(--prm-primary);
  color: var(--prm-primary);
}

/* =========================================================
       404 HERO SECTION
    ========================================================= */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--navbar-h) + 60px) 20px 80px;
  position: relative;
  overflow: hidden;
  background: var(--prm-bg);
}

/* Ambient background blobs */
.error-page::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.07) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  animation: floatBlob 8s ease-in-out infinite;
}

.error-page::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(79, 70, 229, 0.06) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  animation: floatBlob 10s ease-in-out infinite reverse;
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -30px) scale(1.05);
  }
}

/* =========================================================
       404 NUMBER – Giant Display
    ========================================================= */
.error-number-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.error-number {
  font-size: clamp(7rem, 20vw, 14rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    #4f46e5 50%,
    var(--color-primary-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
  animation: numberPop 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  user-select: none;
}

/* Ghost / echo text behind */
.error-number-ghost {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(7rem, 20vw, 14rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--prm-slate-100);
  z-index: 1;
  transform: translate(8px, 8px);
  user-select: none;
  pointer-events: none;
}

@keyframes numberPop {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* =========================================================
       CONTENT BLOCK
    ========================================================= */
.error-content {
  animation: fadeUp 0.7s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.error-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--prm-primary-light);
  color: var(--prm-primary);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.error-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--prm-slate-900);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.error-desc {
  font-size: 1.05rem;
  color: var(--prm-slate-500);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* =========================================================
       ACTION BUTTONS
    ========================================================= */
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 3rem;
}

.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.btn-primary-custom:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 93, 248, 0.3);
}

.btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--prm-slate-700);
  border: 1.5px solid var(--prm-border);
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.btn-outline-custom:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--prm-primary-light);
  transform: translateY(-2px);
}

/* =========================================================
       QUICK LINKS BENTO GRID
    ========================================================= */
.quick-links-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--prm-slate-400);
  margin-bottom: 1rem;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 380px;
}

.quick-link-card {
  background: var(--prm-surface);
  border: 1px solid var(--prm-border);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--prm-slate-700);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}
.quick-link-card:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--prm-primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.quick-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: var(--transition);
}
.quick-link-card:hover .quick-link-icon {
  background: var(--color-primary);
  color: #fff;
}

/* =========================================================
       ILLUSTRATION SIDE
    ========================================================= */
.error-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 0.7s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Orbit ring */
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(37, 99, 235, 0.18);
  animation: spinSlow linear infinite;
}
.orbit-ring-1 {
  width: 340px;
  height: 340px;
  animation-duration: 20s;
}
.orbit-ring-2 {
  width: 460px;
  height: 460px;
  animation-duration: 30s;
  animation-direction: reverse;
  border-color: rgba(79, 70, 229, 0.1);
}

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

/* Center card */
.illus-center {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #4f46e5 100%);
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 30px 80px rgba(37, 99, 235, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  z-index: 2;
  animation: floatCard 5s ease-in-out infinite;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-18px) rotate(2deg);
  }
}

.illus-center i {
  font-size: 4.5rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Floating satellite dots on orbits */
.orbit-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Floating mini cards */
.float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--prm-border);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--prm-slate-700);
  z-index: 3;
  white-space: nowrap;
}

.float-card-1 {
  top: 10%;
  left: -10%;
  animation: floatMini1 6s ease-in-out infinite;
}
.float-card-2 {
  bottom: 12%;
  right: -8%;
  animation: floatMini2 7s ease-in-out infinite;
}

@keyframes floatMini1 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes floatMini2 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

.float-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* =========================================================
       DIVIDER
    ========================================================= */
.search-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2.5rem 0 2rem;
  max-width: 480px;
}
.search-divider hr {
  flex: 1;
  border: none;
  border-top: 1px solid var(--prm-border);
  margin: 0;
}
.search-divider span {
  font-size: 0.8rem;
  color: var(--prm-slate-400);
  font-weight: 500;
  white-space: nowrap;
}

/* =========================================================
       SEARCH BOX
    ========================================================= */
.search-box {
  display: flex;
  align-items: center;
  max-width: 420px;
  background: var(--prm-surface);
  border: 1.5px solid var(--prm-border);
  border-radius: 14px;
  padding: 10px 16px;
  gap: 12px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  margin-bottom: 2.5rem;
}
.search-box:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0, 93, 248, 0.1);
  background: #fff;
}
.search-box i {
  color: var(--prm-slate-400);
  font-size: 1rem;
}
.search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--text-primary);
  flex: 1;
  font-family: "Inter", sans-serif;
}
.search-box input::placeholder {
  color: var(--prm-slate-400);
}
.search-btn {
  background: var(--color-primary);
  border: none;
  color: #fff;
  border-radius: 9px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.search-btn:hover {
  background: var(--color-primary-dark);
  transform: scale(1.05);
}

/* =========================================================
       FOOTER
    ========================================================= */
.error-footer {
  background: var(--prm-slate-900);
  color: var(--prm-slate-400);
  padding: 32px 0;
  font-size: 0.875rem;
  border-top: 1px solid var(--prm-slate-800);
  margin-top: auto;
}
.error-footer a {
  color: var(--prm-slate-400);
}
.error-footer a:hover {
  color: #fff;
}

/* =========================================================
       RESPONSIVE
    ========================================================= */
@media (max-width: 991px) {
  .error-illustration {
    margin-top: 60px;
  }
  .orbit-ring-1 {
    width: 260px;
    height: 260px;
  }
  .orbit-ring-2 {
    width: 360px;
    height: 360px;
  }
  .illus-center {
    width: 160px;
    height: 160px;
    border-radius: 32px;
  }
  .illus-center i {
    font-size: 3.5rem;
  }
  .float-card-1 {
    top: 0;
    left: 0;
  }
  .float-card-2 {
    bottom: 0;
    right: 0;
  }
}

@media (max-width: 576px) {
  .error-number {
    font-size: clamp(5rem, 25vw, 8rem);
  }
  .quick-links-grid {
    grid-template-columns: 1fr 1fr;
  }
  .error-actions {
    flex-direction: column;
  }
  .btn-primary-custom,
  .btn-outline-custom {
    width: 100%;
    justify-content: center;
  }
  .orbit-ring-2 {
    display: none;
  }
}

/* =========================================================
       COUNTER – auto redirect
    ========================================================= */
.redirect-notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--prm-slate-400);
}
#countdown {
  font-weight: 700;
  color: var(--color-primary);
}

/* ==============================
   Archive & Details Pages
============================== */
.course-card-img {
  height: 220px;
  object-fit: cover;
  width: 100%;
  border-bottom: 1px solid var(--prm-border);
}
.course-card {
  background: var(--prm-bg);
  border: 1px solid var(--prm-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--prm-slate-300);
}
.course-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.course-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--prm-slate-500);
  font-size: 0.85rem;
  font-weight: 500;
}

.service-feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--prm-border);
  border-radius: 16px;
  padding: 24px;
  transition: var(--transition);
  height: 100%;
}
.service-feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--prm-slate-300);
  transform: translateY(-4px);
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--prm-bg);
  border: 1px solid var(--prm-border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--prm-slate-700);
  transition: var(--transition);
}
.tech-badge:hover {
  border-color: var(--prm-primary);
  color: var(--prm-primary);
  box-shadow: var(--shadow-sm);
}

.faq-accordion .accordion-item {
  border: 1px solid var(--prm-border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-accordion .accordion-button {
  font-weight: 600;
  color: var(--prm-slate-900);
  padding: 20px;
  background: var(--prm-bg);
  box-shadow: none;
}
.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--prm-primary);
  background: var(--prm-primary-light);
}
.faq-accordion .accordion-body {
  color: var(--prm-slate-600);
  padding: 0 20px 20px 20px;
  line-height: 1.6;
}

.sticky-form-card {
  background: var(--prm-bg);
  border: 1px solid var(--prm-border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
}

.authority-box {
  background: var(--prm-slate-900);
  border-radius: 24px;
  padding: 4rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.text-muted-custom {
  color: var(--prm-slate-400);
}

.btn-gradient {
  background: linear-gradient(135deg, var(--prm-primary) 0%, #4f46e5 100%);
  border: none;
}

.case-spotlight {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  transition: 0.3s ease;
}

.case-spotlight:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.student-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.student-img {
  width: 100%;
  max-width: 300px;
  height: 300px;
  object-fit: contain; /* important: no crop */
  border-radius: 16px;
  background: #fff;
  padding: 10px;
}

/* Carousel Controls Styling */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}

/* Responsive */
@media (max-width: 768px) {
  .authority-box {
    padding: 2rem;
  }

  .student-img {
    height: auto;
    max-width: 180px;
  }
}
/* Navbar link styling */
.navbar-nav .menu-item {
  position: relative;
}

.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 15.5px;
  color: #1f2937 !important;
  padding: 10px 0;
  transition: all 0.3s ease;
}

/* Hover underline animation */
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 0%;
  height: 2px;
  background: var(--bs-primary);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Hover color */
.navbar-nav .nav-link:hover {
  color: var(--bs-primary) !important;
}

/* Active menu item */
.navbar-nav .current-menu-item > .nav-link {
  color: var(--bs-primary) !important;
  font-weight: 600;
}

/* CTA button */
.navbar .btn {
  padding: 10px 22px;
  font-weight: 500;
  border-radius: 10px;
}

.lesson-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lesson-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.09);
}
.lesson-card-img {
    height: 200px;
    position: relative;
    overflow: hidden;
}
.lesson-card-icon-header {
    height: 120px;
    background: linear-gradient(135deg, var(--prm-primary) 0%, #4f46e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.lesson-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lesson-card:hover .lesson-card-overlay {
    opacity: 1;
}
.lesson-play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--prm-primary);
    font-size: 1.1rem;
    padding-left: 3px;
}
.lesson-card-body {
    padding: 1.5rem;
}
.lesson-meta {
    border-top: 1px solid rgba(0,0,0,0.07);
    padding-top: 0.9rem;
}
.page-numbers.current {
    background: var(--prm-primary);
    color: white;
}
