/**
 * BE Career Academy - Premium Theme & World-Class Design System
 * Modern, accessible, mobile-first design tokens and Ubuntu typography unification.
 */

@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&family=Ubuntu+Sans:ital,wght@0,300..800;1,300..800&family=Ubuntu+Mono:wght@400;700&display=swap');

:root {
  --primary: #0891b2;        /* cyan-600 */
  --primary-hover: #0e7490;  /* cyan-700 */
  --primary-light: #e0f2fe;  /* cyan-100 */
  --secondary: #2563eb;      /* blue-600 */
  --dark: #0f172a;           /* slate-900 */
  --dark-surface: #1e293b;   /* slate-800 */
  --light-surface: #f8fafc;  /* slate-50 */
  --card-border: #e2e8f0;    /* slate-200 */
  --text-primary: #1e293b;   /* slate-800 */
  --text-muted: #64748b;     /* slate-500 */
  --accent-amber: #f59e0b;   /* amber-500 */
  --accent-emerald: #10b981; /* emerald-500 */
  --header-height-desktop: 116px;
  --header-height-mobile: 130px;
}

/* Base Body Spacing to eliminate hacky <br> tags */
body.site-loaded {
  padding-top: var(--header-height-desktop);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
@media (max-width: 768px) {
  body.site-loaded {
    padding-top: var(--header-height-mobile);
  }
}

/* Prevent unwanted horizontal overflow */
*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Ubuntu', 'Ubuntu Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

button, input, select, textarea, optgroup {
  font-family: inherit !important;
}

h1, h2, h3, h4, h5, h6, .hero-title, .section-title, .brand-font {
  font-family: 'Ubuntu', 'Ubuntu Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  letter-spacing: -0.015em;
}

code, pre, kbd, samp {
  font-family: 'Ubuntu Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

/* Fluid Responsive Typography */
.hero-title {
  font-size: clamp(2rem, 5vw + 1rem, 3.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.section-title {
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #0891b2 0%, #2563eb 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gradient-cyan-blue {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

/* Premium Card & Shadow effects */
.premium-card {
  background: var(--color-surface, #ffffff);
  border: 1px solid var(--color-border, rgba(226, 232, 240, 0.9));
  border-radius: 1rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}
.premium-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  border-color: #cbd5e1;
}
html.dark .premium-card {
  background-color: #131b2e !important;
  border-color: #1e293b !important;
  color: #f8fafc !important;
}
html.dark .premium-card:hover {
  border-color: #334155 !important;
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.65) !important;
}

/* Dual-Track Program Badges */
.badge-dual-track {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 100%);
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* Glass Header Effect */
.glass-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}

/* Interactive Curriculum Accordions */
.curriculum-accordion-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
  background: var(--color-surface, #ffffff);
}
.curriculum-accordion-item.open {
  border-color: #0891b2;
  box-shadow: 0 4px 14px -2px rgba(8, 145, 178, 0.12);
}
.curriculum-header {
  width: 100%;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: var(--color-surface, #ffffff);
  border: none;
  text-align: left;
  transition: background 0.15s ease;
}
.curriculum-header:hover {
  background: var(--color-surface-elevated, #f8fafc);
}
.curriculum-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--color-surface-elevated, #f8fafc);
  border-top: 1px solid transparent;
}
.curriculum-accordion-item.open .curriculum-body {
  border-top-color: var(--color-border, #f1f5f9);
}

html.dark .curriculum-accordion-item,
html.dark .curriculum-header {
  background-color: #131b2e !important;
  border-color: #1e293b !important;
  color: #f8fafc !important;
}
html.dark .curriculum-header:hover {
  background-color: #1a233a !important;
}
html.dark .curriculum-body {
  background-color: #0b0f19 !important;
  border-top-color: #1e293b !important;
  color: #cbd5e1 !important;
}
html.dark .week-row {
  border-bottom-color: #1e293b !important;
  color: #cbd5e1 !important;
}

/* Week item row */
.week-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #edf2f7;
  font-size: 0.925rem;
  color: #334155;
}
.week-row:last-child {
  border-bottom: none;
}
.week-badge {
  flex-shrink: 0;
  background: #0891b2;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 0.375rem;
  margin-top: 0.15rem;
}

/* Phase Tabs */
.phase-tab-btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #475569;
  background: #f1f5f9;
}
.phase-tab-btn.active {
  background: #0891b2;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.25);
}
.phase-tab-btn:hover:not(.active) {
  background: #e2e8f0;
  color: #0f172a;
}

/* Sticky Action Sidebar */
.sticky-sidebar-card {
  position: sticky;
  top: calc(var(--header-height-desktop) + 1.5rem);
  z-index: 20;
}

/* Modal Overlay & Dialog */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-dialog {
  background: #ffffff;
  border-radius: 1.25rem;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-dialog {
  transform: scale(1) translateY(0);
}

/* Mobile Nav Drawer */
#mobile-menu {
  width: min(85vw, 360px);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
}

/* Touch target accessibility */
button, a, input, select {
  touch-action: manipulation;
}

/* Global Floating Back-To-Top Button */
#go-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background-color: #0891b2;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.15s ease;
  border: none;
  cursor: pointer;
}
#go-to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#go-to-top:hover {
  background-color: #0e7490;
  transform: translateY(-2px);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Ensure all content is immediately visible with zero flash of invisible text */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/* Custom Scrollbar for Mega Menus, Drawers, and Overflow Containers */
.custom-scroll {
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #f1f5f9;
}
.custom-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.custom-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.custom-scroll::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: #0891b2;
}

html.dark .custom-scroll {
  scrollbar-color: #475569 #0f172a;
}
html.dark .custom-scroll::-webkit-scrollbar-track {
  background: #0f172a;
}
html.dark .custom-scroll::-webkit-scrollbar-thumb {
  background: #475569;
}
html.dark .custom-scroll::-webkit-scrollbar-thumb:hover {
  background: #06b6d4;
}

/* Table Responsive Overflow Wrapper with Smooth Scrollbars */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #f1f5f9;
}
.table-responsive::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}
.table-responsive::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #0891b2;
}
html.dark .table-responsive {
  scrollbar-color: #475569 #0f172a;
}
html.dark .table-responsive::-webkit-scrollbar-track {
  background: #0f172a;
}
html.dark .table-responsive::-webkit-scrollbar-thumb {
  background: #475569;
}
html.dark .table-responsive::-webkit-scrollbar-thumb:hover {
  background: #06b6d4;
}

.card-theme > .table-responsive {
  border: none;
  border-radius: 0;
}

/* Strict Carousel Overflow Containment (Fixes Partner Logo Bleed) */
.owl-carousel {
  display: none;
  width: 100%;
  position: relative;
  z-index: 1;
}
.owl-carousel.owl-loaded {
  display: block;
}
.owl-carousel .owl-stage-outer,
.hiring-partners-wrap {
  position: relative;
  overflow: hidden !important;
  width: 100%;
  max-width: 100%;
}

/* ==========================================================================
   EXTRAORDINARY MODERN ANIMATIONS (Inspired by Savingy.com standards)
   High-performance, 60fps GPU-accelerated micro-interactions & attention-grabbers
   ========================================================================== */

/* 1. High-Converting Button Shimmer / Radiance Wave */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.32) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  animation: btn-shimmer-sweep 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}
@keyframes btn-shimmer-sweep {
  0%, 65% {
    left: -75%;
  }
  100% {
    left: 175%;
  }
}

/* 2. Soft Ambient Cyan & Emerald Glow Pulses */
@keyframes ambient-glow-pulse {
  0%, 100% {
    box-shadow: 0 4px 14px -2px rgba(8, 145, 178, 0.25), 0 0 15px -2px rgba(6, 182, 212, 0.15);
  }
  50% {
    box-shadow: 0 8px 25px 0px rgba(8, 145, 178, 0.45), 0 0 28px 4px rgba(6, 182, 212, 0.3);
  }
}
.glow-pulse-cyan {
  animation: ambient-glow-pulse 3.2s infinite ease-in-out;
}

@keyframes ambient-emerald-pulse {
  0%, 100% {
    box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.2);
  }
  50% {
    box-shadow: 0 6px 20px 2px rgba(16, 185, 129, 0.4);
  }
}
.glow-pulse-emerald {
  animation: ambient-emerald-pulse 3.2s infinite ease-in-out;
}

/* 3. Floating Micro-Interactions */
@keyframes float-subtle {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}
.animate-float-subtle {
  animation: float-subtle 3.8s ease-in-out infinite;
}

/* 4. Smooth Card 3D-like Hover Lift & Bloom */
.hover-lift {
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.32s ease, border-color 0.25s ease;
}
.hover-lift:hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.12), 0 0 22px -3px rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.45) !important;
}

/* 5. Glowing Radial Beacon / Live Indicator */
.beacon-dot {
  position: relative;
  display: inline-flex;
}
.beacon-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 9999px;
  background: currentColor;
  opacity: 0.7;
  animation: beacon-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes beacon-ping {
  70%, 100% {
    transform: scale(2.3);
    opacity: 0;
  }
}

/* 6. Ringing Phone Attention Animation */
@keyframes phone-ring {
  0%, 100% {
    transform: rotate(0deg);
  }
  10%, 30% {
    transform: rotate(-14deg);
  }
  20%, 40% {
    transform: rotate(14deg);
  }
  50% {
    transform: rotate(0deg);
  }
}
.call-badge:hover i,
.counselor-pulse:hover i {
  animation: phone-ring 0.8s ease;
}

/* 7. Subtle Gradient Border Glow */
.gradient-border-glow {
  position: relative;
  background-clip: padding-box;
}
.gradient-border-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.6), rgba(59, 130, 246, 0.25), rgba(168, 85, 247, 0.5));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}





/* ==========================================================================
   CENTRAL DESIGN TOKEN ARCHITECTURE & LIGHT/DARK MODE ENGINE (2026 SaaS)
   ========================================================================== */

:root {
  /* Three Brand Colours */
  --color-primary: #0891b2;         /* Teal / Cyan 600 - Brand actions */
  --color-primary-hover: #0e7490;   /* Teal 700 */
  --color-primary-light: #ecfeff;   /* Teal 50 */
  --color-primary-rgb: 8, 145, 178;

  --color-accent: #2563eb;          /* Blue 600 - Secondary actions */
  --color-accent-hover: #1d4ed8;    /* Blue 700 */
  --color-accent-light: #eff6ff;    /* Blue 50 */
  --color-accent-rgb: 37, 99, 235;

  --color-highlight: #f59e0b;       /* Amber 500 - Special emphasis / ratings */
  --color-highlight-hover: #d97706; /* Amber 600 */
  --color-highlight-light: #fffbeb; /* Amber 50 */
  --color-highlight-rgb: 245, 158, 11;

  /* Light Theme Neutrals */
  --color-bg: #f8fafc;              /* Slate 50 */
  --color-surface: #ffffff;         /* Pure white card surface */
  --color-surface-elevated: #f1f5f9;/* Slate 100 */
  --color-surface-hover: #f8fafc;
  --color-border: #e2e8f0;          /* Slate 200 */
  --color-border-subtle: #cbd5e1;   /* Slate 300 */
  --color-text-primary: #0f172a;    /* Slate 900 */
  --color-text-secondary: #475569;  /* Slate 600 */
  --color-text-muted: #64748b;      /* Slate 500 */
  --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --card-shadow-hover: 0 12px 30px -4px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
}

/* Dark Theme Overrides */
html.dark {
  --color-primary: #06b6d4;         /* Cyan 500 in dark mode for vibrancy */
  --color-primary-hover: #22d3ee;   /* Cyan 400 */
  --color-primary-light: rgba(6, 182, 212, 0.15);
  --color-primary-rgb: 6, 182, 212;

  --color-accent: #3b82f6;          /* Blue 500 in dark mode */
  --color-accent-hover: #60a5fa;    /* Blue 400 */
  --color-accent-light: rgba(59, 130, 246, 0.15);
  --color-accent-rgb: 59, 130, 246;

  --color-highlight: #fbbf24;       /* Amber 400 in dark mode */
  --color-highlight-hover: #f59e0b;
  --color-highlight-light: rgba(245, 158, 11, 0.15);
  --color-highlight-rgb: 251, 191, 36;

  /* Dark Theme Neutrals */
  --color-bg: #0b0f19;              /* Deep rich dark background */
  --color-surface: #131b2e;         /* Refined navy-slate card surface */
  --color-surface-elevated: #1a233a;/* Elevated card / modal surface */
  --color-surface-hover: #1e293b;
  --color-border: #1e293b;          /* Subtle dark border */
  --color-border-subtle: #334155;   /* Secondary border */
  --color-text-primary: #f8fafc;    /* Slate 50 - Ultra-crisp high contrast */
  --color-text-secondary: #cbd5e1;  /* Slate 300 - Clear readable supporting text */
  --color-text-muted: #94a3b8;      /* Slate 400 - Visible subtle hints/captions */
  --card-shadow: 0 4px 25px -2px rgba(0, 0, 0, 0.45), 0 2px 8px -1px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 16px 36px -4px rgba(0, 0, 0, 0.55), 0 4px 16px -2px rgba(0, 0, 0, 0.35);
}

/* Global Dark Mode High-Contrast Rules & Uniformity Engine */
html.dark {
  color-scheme: dark;
}

html.dark body {
  background-color: var(--color-bg) !important;
  color: var(--color-text-primary) !important;
}

/* Enforce crisp high contrast on headings in dark mode */
html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6 {
  color: #f8fafc !important;
}

/* Neutralize accidental dark text classes in dark mode */
html.dark .text-slate-900,
html.dark .text-slate-800,
html.dark .text-gray-900,
html.dark .text-gray-800,
html.dark .text-neutral-900,
html.dark .text-neutral-800 {
  color: #f1f5f9 !important;
}

html.dark .text-slate-700,
html.dark .text-gray-700,
html.dark .text-neutral-700 {
  color: #e2e8f0 !important;
}

html.dark .text-slate-600,
html.dark .text-gray-600,
html.dark .text-neutral-600 {
  color: #cbd5e1 !important;
}

html.dark .text-slate-500,
html.dark .text-gray-500,
html.dark .text-neutral-500 {
  color: #94a3b8 !important;
}

/* Make sure white-text utility is never overridden */
html.dark .text-white,
html.dark .text-white * {
  color: #ffffff !important;
}

/* Standardise background surfaces in dark mode for sections, cards & containers */
html.dark .bg-white:not(.theme-pill-toggle):not(.partner-logo-tile):not([class*="dark:bg-"]) {
  background-color: var(--color-surface, #131b2e) !important;
}

html.dark .bg-slate-50:not(.theme-pill-toggle):not([class*="dark:bg-"]),
html.dark .bg-gray-50:not(.theme-pill-toggle):not([class*="dark:bg-"]) {
  background-color: var(--color-surface-elevated, #1a233a) !important;
}

/* Invert light neutral backgrounds so tags, chips, secondary buttons and inner containers stay readable */
html.dark .bg-slate-100:not(.partner-logo-tile):not([class*="dark:bg-"]),
html.dark .bg-gray-100:not(.partner-logo-tile):not([class*="dark:bg-"]),
html.dark .bg-slate-200:not(.partner-logo-tile):not([class*="dark:bg-"]) {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html.dark .hover\:bg-slate-100:hover,
html.dark .hover\:bg-slate-200:hover {
  background-color: #334155 !important;
}

/* Form Controls & Dropdowns */
html.dark select,
html.dark input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not(.theme-pill-btn),
html.dark textarea {
  background-color: #1a233a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}
html.dark select option {
  background-color: #131b2e !important;
  color: #f8fafc !important;
}

/* Translucent Card Floating Badges (Rating & Date Badges) */
html.dark .bg-white\/90,
html.dark .bg-white\/95 {
  background-color: rgba(19, 27, 46, 0.92) !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

/* Badge Tints (Teal, Amber, Blue, Emerald, Rose) */
html.dark .bg-cyan-50,
html.dark .bg-cyan-100 {
  background-color: rgba(6, 182, 212, 0.15) !important;
  border-color: rgba(6, 182, 212, 0.3) !important;
  color: #22d3ee !important;
}
html.dark .bg-amber-50,
html.dark .bg-amber-100 {
  background-color: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
  color: #fbbf24 !important;
}
html.dark .bg-emerald-50,
html.dark .bg-emerald-100 {
  background-color: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: #34d399 !important;
}
html.dark .bg-blue-50,
html.dark .bg-blue-100 {
  background-color: rgba(59, 130, 246, 0.15) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  color: #60a5fa !important;
}
html.dark .bg-purple-50,
html.dark .bg-purple-100 {
  background-color: rgba(168, 85, 247, 0.15) !important;
  border-color: rgba(168, 85, 247, 0.3) !important;
  color: #c084fc !important;
}
html.dark .bg-rose-50,
html.dark .bg-rose-100 {
  background-color: rgba(244, 63, 94, 0.15) !important;
  border-color: rgba(244, 63, 94, 0.3) !important;
  color: #fb7185 !important;
}

/* Partner Logo Tiles */
.partner-logo-tile {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
html.dark .partner-logo-tile {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

html.dark .border-slate-100,
html.dark .border-slate-200,
html.dark .border-gray-100,
html.dark .border-gray-200 {
  border-color: var(--color-border) !important;
}

/* Header & Mobile Drawer Precision Styling in Dark Mode */
html.dark #site-header {
  background-color: rgba(15, 23, 42, 0.95) !important;
  border-bottom-color: #1e293b !important;
}

html.dark #mobile-menu {
  background-color: #0b0f19 !important;
  border-left-color: #1e293b !important;
  color: #f8fafc !important;
}

html.dark #mobile-menu .border-b,
html.dark #mobile-menu .border-t {
  border-color: #1e293b !important;
}

html.dark #mobile-menu a {
  color: #f1f5f9;
}
html.dark #mobile-menu a:hover {
  color: #22d3ee;
}
html.dark #mobile-menu button {
  color: #f1f5f9;
}
html.dark #mobile-menu .mobile-acc-btn {
  background-color: #131b2e !important;
  color: #f8fafc !important;
}
html.dark #mobile-menu .mobile-acc-panel {
  background-color: #0b0f19 !important;
  border-color: #1e293b !important;
}
html.dark #mobile-menu .mobile-acc-item {
  color: #cbd5e1 !important;
}
html.dark #mobile-menu .mobile-acc-item:hover {
  background-color: #1a233a !important;
  color: #38bdf8 !important;
}
html.dark #mobile-menu input {
  background-color: #131b2e !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}

/* Modal Dark Mode Theme Adaptation */
html.dark .modal-dialog {
  background-color: var(--color-surface-elevated) !important;
  border: 1px solid var(--color-border) !important;
  color: var(--color-text-primary) !important;
}
html.dark .modal-dialog input,
html.dark .modal-dialog select,
html.dark .modal-dialog textarea {
  background-color: var(--color-surface) !important;
  border-color: var(--color-border) !important;
  color: #ffffff !important;
}

/* Base Body Application */
body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* ==========================================================================
   STANDARDIZED COMPONENT ARCHITECTURE
   ========================================================================== */

/* 1. BUTTON STANDARDIZATION */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-primary);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  min-height: 42px;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px -1px rgba(var(--color-primary-rgb), 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
}
.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 14px -2px rgba(var(--color-primary-rgb), 0.5);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: scale(0.98);
}
.btn-primary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-surface);
  color: var(--color-text-primary) !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  min-height: 42px;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
}
.btn-secondary:hover {
  background-color: var(--color-surface-elevated);
  border-color: var(--color-border-subtle);
  color: var(--color-text-primary) !important;
  transform: translateY(-1px);
}
.btn-secondary:active {
  transform: scale(0.98);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--color-accent);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  min-height: 42px;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px -1px rgba(var(--color-accent-rgb), 0.35);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
}
.btn-accent:hover {
  background-color: var(--color-accent-hover);
  box-shadow: 0 4px 14px -2px rgba(var(--color-accent-rgb), 0.5);
  transform: translateY(-1px);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #dc2626;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  min-height: 42px;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px -1px rgba(220, 38, 38, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
}
.btn-danger:hover {
  background-color: #b91c1c;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
}
.btn-ghost:hover {
  background-color: var(--color-surface-elevated);
  color: var(--color-text-primary);
}

/* 2. CARD THEME COMPONENT */
.card-theme {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  box-shadow: var(--card-shadow);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* 3. INPUT THEME COMPONENT */
.input-theme {
  width: 100%;
  min-height: 42px;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  background-color: var(--color-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
html.dark .input-theme {
  background-color: var(--color-surface-elevated);
}
.input-theme:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.18);
}
.input-theme::placeholder {
  color: var(--color-text-muted);
}
.input-theme[readonly], .input-theme:disabled {
  background-color: var(--color-surface-elevated);
  color: var(--color-text-muted);
  cursor: not-allowed;
  opacity: 0.85;
}

/* 4. TABLE THEME COMPONENT (Mobile-First 2026 SaaS) */
.table-responsive {
  width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.875rem;
  border: 1px solid var(--color-border);
}
.table-theme {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}
.table-theme thead th {
  background-color: var(--color-surface-elevated);
  color: var(--color-text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}
.table-theme tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.15s ease;
}
.table-theme tbody tr:last-child {
  border-bottom: none;
}
.table-theme tbody tr:hover {
  background-color: var(--color-surface-elevated);
}
.table-theme tbody td {
  padding: 0.875rem 1rem;
  color: var(--color-text-primary);
  vertical-align: middle;
}

/* 5. BADGES */
.badge-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(var(--color-primary-rgb), 0.25);
}
.badge-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  border: 1px solid rgba(var(--color-accent-rgb), 0.25);
}
.badge-highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: var(--color-highlight-light);
  color: var(--color-highlight);
  border: 1px solid rgba(var(--color-highlight-rgb), 0.25);
}
.badge-neutral {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--color-surface-elevated);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

/* 6. GLOBAL THEME TOGGLE BUTTON STYLING */
.theme-pill-toggle {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  padding: 2px;
  gap: 2px;
}
html.dark .theme-pill-toggle {
  background-color: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}
.theme-pill-btn {
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.theme-pill-btn.active {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.theme-pill-btn:hover:not(.active) {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
}

/* 7. BLOG ARTICLE CONTENT DARK THEME HIGH CONTRAST (WCAG AAA) */
html.dark .blog-article-content {
  color: #cbd5e1 !important;
}
html.dark .blog-article-content p,
html.dark .blog-article-content li,
html.dark .blog-article-content span {
  color: #cbd5e1 !important;
}
html.dark .blog-article-content strong,
html.dark .blog-article-content b {
  color: #f8fafc !important;
}
html.dark .blog-article-content h1,
html.dark .blog-article-content h2,
html.dark .blog-article-content h3,
html.dark .blog-article-content h4,
html.dark .blog-article-content h5,
html.dark .blog-article-content h6 {
  color: #f8fafc !important;
}
html.dark .blog-article-content a {
  color: #22d3ee !important;
}
html.dark .blog-article-content a:hover {
  color: #67e8f9 !important;
}
html.dark .blog-article-content blockquote {
  background-color: #0f172a !important;
  border-left-color: #06b6d4 !important;
  color: #e2e8f0 !important;
}
html.dark .blog-article-content code {
  background-color: #1e293b !important;
  color: #38bdf8 !important;
}
html.dark .blog-article-content pre {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
html.dark .blog-article-content table {
  border-color: #334155 !important;
}
html.dark .blog-article-content th,
html.dark .blog-article-content td {
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}
html.dark .blog-article-content th {
  background-color: #1e293b !important;
  color: #f8fafc !important;
}


