/*
Theme Name: KB Education
Theme URI: https://kbeducation.in
Author: KB Education
Author URI: https://kbeducation.in
Description: A modern, high-performance custom WordPress theme for KB Education — real industry practitioners teaching on university campuses.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kb-education
*/

/* 1. Design System Tokens (1:1 with src/styles.css) */
:root {
    --radius: 0.75rem;
    --radius-sm: calc(var(--radius) - 4px);
    --radius-md: calc(var(--radius) - 2px);
    --radius-lg: var(--radius);
    --radius-xl: calc(var(--radius) + 6px);
    --radius-2xl: calc(var(--radius) + 12px);
    --radius-3xl: calc(var(--radius) + 18px);

    --font-display: "Outfit", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --background: #ffffff;
    --foreground: #0f172a;
    --ink: #0a1329;

    --surface: #f8fafc;
    --surface-strong: #f1f5f9;

    --card: #ffffff;
    --card-foreground: #0f172a;
    --popover: #ffffff;
    --popover-foreground: #0f172a;

    --primary: #0a2569;
    --primary-foreground: #ffffff;

    --brand: #1d4ed8;
    --brand-foreground: #ffffff;

    --accent: #f59e0b;
    --accent-foreground: #1e1503;

    --secondary: #eef2ff;
    --secondary-foreground: #0a2569;

    --muted: #f1f5f9;
    --muted-foreground: #475569;

    --destructive: #ef4444;
    --destructive-foreground: #ffffff;

    --border: #e2e8f0;
    --input: #cbd5e1;
    --ring: #2563eb;

    --shadow-soft: 0 4px 20px -2px rgba(10, 37, 105, 0.08), 0 2px 6px -1px rgba(10, 37, 105, 0.04);
    --shadow-lift: 0 20px 35px -8px rgba(10, 37, 105, 0.14), 0 8px 16px -4px rgba(10, 37, 105, 0.06);
    --shadow-glow: 0 0 40px -10px rgba(37, 99, 235, 0.25);
}

/* 2. Base Typography & Smooth Rendering */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    letter-spacing: -0.025em;
    font-weight: 700;
}

:is(h1, h2, h3, h4, h5, h6):not([class*="text-"]):not(.text-white) {
    color: var(--ink);
}

.text-white,
.text-white :is(h1, h2, h3, h4, h5, h6),
:is(h1, h2, h3, h4, h5, h6).text-white,
[class*="bg-slate-950"] :is(h1, h2, h3, h4, h5, h6),
[class*="bg-slate-900"] :is(h1, h2, h3, h4, h5, h6),
[class*="bg-blue-950"] :is(h1, h2, h3, h4, h5, h6),
[class*="bg-gradient-to-r"] :is(h1, h2, h3, h4, h5, h6),
[class*="bg-gradient-to-br"] :is(h1, h2, h3, h4, h5, h6) {
    color: #ffffff;
}

/* 3. Utility Classes (1:1 with src/styles.css) */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
}

.surface-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    transition: all 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.surface-card:hover {
    box-shadow: var(--shadow-lift);
    border-color: #93c5fd;
    transform: translateY(-4px);
}

/* Delivery Pillar Card Hover States (Exact Match with Image 1 & 2) */
.kb-pillar-card {
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    transition: all 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.kb-pillar-card .kb-pillar-icon {
    background-color: #eff6ff;
    color: #0a2569;
    transition: all 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.kb-pillar-card .kb-pillar-title {
    color: #0f172a;
    transition: color 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.kb-pillar-card:hover,
.kb-pillar-card.is-visible:hover {
    border-color: #2563eb !important;
    box-shadow: 0 20px 40px -8px rgba(37, 99, 235, 0.18), 0 8px 16px -4px rgba(10, 37, 105, 0.06) !important;
    transform: translateY(-6px) !important;
}
.kb-pillar-card:hover .kb-pillar-icon {
    background-color: #0a2569 !important;
    color: #ffffff !important;
}
.kb-pillar-card:hover .kb-pillar-title {
    color: #2563eb !important;
}

/* Pillar Card Button Hover Lift & Blue States (Matches User Image 1 & 2) */
.kb-pillar-btn {
    border: 1.5px solid #cbd5e1 !important;
    color: #0a2569 !important;
    background-color: #ffffff !important;
    border-radius: 0.875rem !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: all 240ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.kb-pillar-btn span {
    color: #0a2569 !important;
    transition: color 200ms ease;
}
.kb-pillar-btn svg {
    color: #2563eb !important;
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms ease;
}

/* When the card is hovered: button turns blue too and lifts up */
.kb-pillar-card:hover .kb-pillar-btn,
.kb-pillar-card.is-visible:hover .kb-pillar-btn {
    border-color: #2563eb !important;
    color: #2563eb !important;
    background-color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px -3px rgba(37, 99, 235, 0.16), 0 2px 6px -1px rgba(10, 37, 105, 0.04) !important;
}
.kb-pillar-card:hover .kb-pillar-btn span,
.kb-pillar-card.is-visible:hover .kb-pillar-btn span {
    color: #2563eb !important;
}
.kb-pillar-card:hover .kb-pillar-btn svg,
.kb-pillar-card.is-visible:hover .kb-pillar-btn svg {
    color: #2563eb !important;
    transform: translateX(4px);
}

/* When hovering directly on the button itself: lifts up more with soft highlight */
.kb-pillar-btn:hover {
    border-color: #1d4ed8 !important;
    color: #1d4ed8 !important;
    background-color: #eff6ff !important;
    box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.24), 0 3px 8px -2px rgba(10, 37, 105, 0.08) !important;
    transform: translateY(-4px) !important;
}
.kb-pillar-btn:hover span {
    color: #1d4ed8 !important;
}
.kb-pillar-btn:hover svg {
    color: #1d4ed8 !important;
    transform: translateX(6px);
}
.kb-pillar-btn:active {
    transform: translateY(-1px) !important;
}

/* 4-Step Framework Card Hover Inversion (Turns Dark Blue on Cursor Hover) */
.kb-step-card {
    background-color: #ffffff;
    border: 1.5px solid #e2e8f0;
    transition: all 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.kb-step-card .kb-step-num {
    color: rgba(37, 99, 235, 0.3);
    transition: all 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.kb-step-card .kb-step-title {
    color: #0f172a;
    transition: color 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.kb-step-card .kb-step-desc {
    color: #475569;
    transition: color 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.kb-step-card:hover {
    background-color: #0a2569 !important;
    background-image: linear-gradient(145deg, #071948 0%, #0a2569 60%, #1e3a8a 100%) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    box-shadow: 0 20px 40px -8px rgba(10, 37, 105, 0.35), 0 8px 16px -4px rgba(10, 37, 105, 0.15) !important;
    transform: translateY(-4px);
}
.kb-step-card:hover .kb-step-num {
    color: #f59e0b !important;
    transform: scale(1.06);
}
.kb-step-card:hover .kb-step-title {
    color: #ffffff !important;
}
.kb-step-card:hover .kb-step-desc {
    color: #e2e8f0 !important;
}

.glass-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    transition: all 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover {
    box-shadow: var(--shadow-lift);
    border-color: rgba(59, 130, 246, 0.45);
    transform: translateY(-3px);
}

.gradient-hero {
    background: radial-gradient(circle at 50% 0%, rgba(219, 234, 254, 0.7) 0%, rgba(254, 243, 199, 0.3) 45%, rgba(255, 255, 255, 1) 85%);
}

.gradient-navy {
    background: linear-gradient(135deg, #071948 0%, #0a2569 50%, #1e3a8a 100%);
}

.gradient-brand-glow {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #f59e0b 100%);
}

.btn-base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius-lg);
    padding: 0.8rem 1.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
}
.btn-base:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, #0a2569 0%, #1e40af 100%);
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(10, 37, 105, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    box-shadow: 0 6px 22px rgba(37, 99, 235, 0.38);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.btn-accent {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0f172a !important;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}
.btn-accent:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.48);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1.5px solid #cbd5e1;
    color: #0a2569 !important;
    background: #ffffff;
    transition: all 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-outline:hover {
    border-color: #2563eb !important;
    background: #ffffff;
    color: #2563eb !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px -3px rgba(37, 99, 235, 0.16), 0 2px 6px -2px rgba(10, 37, 105, 0.05);
}

.grid-dots {
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 24px 24px;
}

.grid-mesh {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(226, 232, 240, 0.6) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(226, 232, 240, 0.6) 1px, transparent 1px);
}

/* 4. Complete Responsive Grid System (Guarantees rock-solid layout across all pages) */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-5 { grid-column: span 5 / span 5; }
.col-span-6 { grid-column: span 6 / span 6; }
.col-span-7 { grid-column: span 7 / span 7; }
.col-span-8 { grid-column: span 8 / span 8; }
.col-span-9 { grid-column: span 9 / span 9; }
.col-span-10 { grid-column: span 10 / span 10; }
.col-span-11 { grid-column: span 11 / span 11; }
.col-span-12 { grid-column: span 12 / span 12; }

@media (min-width: 640px) {
  .sm\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sm\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .sm\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

  .sm\:col-span-1 { grid-column: span 1 / span 1; }
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
  .sm\:col-span-3 { grid-column: span 3 / span 3; }
  .sm\:col-span-4 { grid-column: span 4 / span 4; }
  .sm\:col-span-5 { grid-column: span 5 / span 5; }
  .sm\:col-span-6 { grid-column: span 6 / span 6; }
  .sm\:col-span-7 { grid-column: span 7 / span 7; }
  .sm\:col-span-8 { grid-column: span 8 / span 8; }
  .sm\:col-span-12 { grid-column: span 12 / span 12; }
}

@media (min-width: 768px) {
  .md\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

  .md\:col-span-1 { grid-column: span 1 / span 1; }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:col-span-3 { grid-column: span 3 / span 3; }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:col-span-5 { grid-column: span 5 / span 5; }
  .md\:col-span-6 { grid-column: span 6 / span 6; }
  .md\:col-span-7 { grid-column: span 7 / span 7; }
  .md\:col-span-8 { grid-column: span 8 / span 8; }
  .md\:col-span-12 { grid-column: span 12 / span 12; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-3 { grid-column: span 3 / span 3; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-6 { grid-column: span 6 / span 6; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:col-span-9 { grid-column: span 9 / span 9; }
  .lg\:col-span-10 { grid-column: span 10 / span 10; }
  .lg\:col-span-11 { grid-column: span 11 / span 11; }
  .lg\:col-span-12 { grid-column: span 12 / span 12; }
}

/* 5. Scroll Reveal Animations (High Polish) */
.kb-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.kb-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.kb-reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.kb-reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.kb-reveal-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.kb-reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* 6. Comprehensive Palette & Theme Utilities (1:1 with React TailWind Output) */
.bg-slate-950 { background-color: #020617 !important; }
.bg-slate-900 { background-color: #0f172a !important; }
.bg-slate-900\/90 { background-color: rgba(15, 23, 42, 0.9) !important; }
.bg-slate-900\/80 { background-color: rgba(15, 23, 42, 0.8) !important; }
.bg-slate-800 { background-color: #1e293b !important; }
.bg-slate-700 { background-color: #334155 !important; }
.bg-slate-100 { background-color: #f1f5f9 !important; }
.bg-slate-50 { background-color: #f8fafc !important; }
.bg-slate-50\/80 { background-color: rgba(248, 250, 252, 0.8) !important; }

.bg-\[\#0a2569\] { background-color: #0a2569 !important; }
.bg-\[\#071948\] { background-color: #071948 !important; }
.bg-\[\#1e40af\] { background-color: #1e40af !important; }

.bg-blue-950 { background-color: #081a4d !important; }
.bg-blue-950\/90 { background-color: rgba(8, 26, 77, 0.9) !important; }
.bg-blue-900 { background-color: #1e3a8a !important; }
.bg-blue-900\/60 { background-color: rgba(30, 58, 138, 0.6) !important; }
.bg-blue-700 { background-color: #1d4ed8 !important; }
.bg-blue-600 { background-color: #2563eb !important; }
.bg-blue-500\/20 { background-color: rgba(59, 130, 246, 0.2) !important; }
.bg-blue-50 { background-color: #eff6ff !important; }
.bg-blue-50\/80 { background-color: rgba(239, 246, 255, 0.8) !important; }

.bg-amber-500 { background-color: #f59e0b !important; }
.bg-amber-500\/5 { background-color: rgba(245, 158, 11, 0.05) !important; }
.bg-amber-400\/10 { background-color: rgba(251, 191, 36, 0.1) !important; }
.bg-amber-100 { background-color: #fef3c7 !important; }
.bg-amber-50 { background-color: #fffbeb !important; }

.bg-emerald-500 { background-color: #10b981 !important; }
.bg-emerald-100 { background-color: #d1fae5 !important; }
.bg-emerald-50 { background-color: #ecfdf5 !important; }

/* Text colors */
.text-slate-950 { color: #020617 !important; }
.text-slate-900 { color: #0f172a !important; }
.text-slate-800 { color: #1e293b !important; }
.text-slate-700 { color: #334155 !important; }
.text-slate-600 { color: #475569 !important; }
.text-slate-500 { color: #64748b !important; }
.text-slate-400 { color: #94a3b8 !important; }
.text-slate-300 { color: #cbd5e1 !important; }
.text-slate-200 { color: #e2e8f0 !important; }
.text-slate-100 { color: #f1f5f9 !important; }
.text-white { color: #ffffff !important; }

.text-\[\#0a1329\] { color: #0a1329 !important; }
.text-\[\#0a2569\] { color: #0a2569 !important; }
.text-blue-900 { color: #1e3a8a !important; }
.text-blue-700 { color: #1d4ed8 !important; }
.text-blue-600 { color: #2563eb !important; }
.text-blue-400 { color: #60a5fa !important; }
.text-blue-300 { color: #93c5fd !important; }
.text-blue-200 { color: #bfdbfe !important; }
.text-blue-100 { color: #dbeafe !important; }

.text-amber-500 { color: #f59e0b !important; }
.text-amber-400 { color: #fbbf24 !important; }
.text-amber-300 { color: #fcd34d !important; }
.text-amber-800 { color: #92400e !important; }

.text-emerald-500 { color: #10b981 !important; }
.text-emerald-400 { color: #34d399 !important; }
.text-emerald-800 { color: #065f46 !important; }

/* Borders */
.border-slate-800 { border-color: #1e293b !important; }
.border-slate-800\/80 { border-color: rgba(30, 41, 59, 0.8) !important; }
.border-slate-700 { border-color: #334155 !important; }
.border-slate-300 { border-color: #cbd5e1 !important; }
.border-slate-200 { border-color: #e2e8f0 !important; }
.border-slate-200\/80 { border-color: rgba(226, 232, 240, 0.8) !important; }
.border-slate-200\/70 { border-color: rgba(226, 232, 240, 0.7) !important; }
.border-slate-100 { border-color: #f1f5f9 !important; }

.border-blue-700\/50 { border-color: rgba(29, 78, 216, 0.5) !important; }
.border-blue-500\/30 { border-color: rgba(59, 130, 246, 0.3) !important; }
.border-blue-500\/20 { border-color: rgba(59, 130, 246, 0.2) !important; }
.border-blue-400\/30 { border-color: rgba(96, 165, 250, 0.3) !important; }
.border-blue-200 { border-color: #bfdbfe !important; }
.border-blue-100 { border-color: #dbeafe !important; }

.border-amber-200 { border-color: #fde68a !important; }
.border-emerald-200 { border-color: #a7f3d0 !important; }

/* Gradients */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops, #071948, #0a2569, #1e40af)) !important;
}
.from-\[\#071948\] {
    --tw-gradient-from: #071948 !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(7, 25, 72, 0)) !important;
}
.via-\[\#0a2569\] {
    --tw-gradient-stops: var(--tw-gradient-from, #071948), #0a2569, var(--tw-gradient-to, rgba(10, 37, 105, 0)) !important;
}
.to-\[\#1e40af\] {
    --tw-gradient-to: #1e40af !important;
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops, #0f172a, #0a2569, #020617)) !important;
}
.from-blue-950\/90 {
    --tw-gradient-from: rgba(8, 26, 77, 0.9) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(8, 26, 77, 0)) !important;
}
.via-slate-900 {
    --tw-gradient-stops: var(--tw-gradient-from, #081a4d), #0f172a, var(--tw-gradient-to, rgba(15, 23, 42, 0)) !important;
}
.to-slate-950 {
    --tw-gradient-to: #020617 !important;
}

/* 7. Filter Pills & Live Search Specific Styling */
.prog-cat-btn {
    transition: all 180ms ease;
    cursor: pointer;
}
.prog-cat-btn.is-active,
.prog-cat-btn.active,
.prog-cat-btn.bg-\[\#0a2569\] {
    background-color: #0a2569 !important;
    color: #ffffff !important;
    border-color: #0a2569 !important;
    box-shadow: 0 4px 12px rgba(10, 37, 105, 0.25) !important;
}

/* 8. Right Edge AI Advisor Vertical Writing Mode */
.kb-vertical-advisor-text {
    writing-mode: vertical-rl;
    -webkit-writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    transform: rotate(180deg);
    letter-spacing: 0.12em;
}

/* 9. Markdown Formatted Output in KB Chatbot (1:1 with KBChatbot.tsx) */
.kb-chat-prose table {
    width: 100%;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    border-collapse: collapse;
    font-size: 0.75rem;
    background: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.kb-chat-prose th {
    background-color: #071948;
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #0a2569;
}
.kb-chat-prose td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: top;
}
.kb-chat-prose tr:last-child td {
    border-bottom: none;
}
.kb-chat-prose tr:nth-child(even) td {
    background-color: #f8fafc;
}
.kb-chat-prose code {
    background-color: #f1f5f9;
    color: #0f172a;
    padding: 0.15rem 0.35rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.85em;
}
.kb-chat-prose pre {
    background-color: #071948;
    color: #e2e8f0;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-size: 0.75rem;
    margin: 0.5rem 0;
}
.kb-chat-prose pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}
.kb-chat-prose ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
}
.kb-chat-prose ol {
    list-style-type: decimal;
    padding-left: 1.25rem;
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
}
.kb-chat-prose li {
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
}

/* -------------------------------------------------------------
   Hero Screen 4-Directional Swipe Animations (Left, Right, Up, Down)
------------------------------------------------------------- */
@keyframes heroSwipeLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroSwipeRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroSwipeDown {
    0% {
        opacity: 0;
        transform: translateY(-40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroSwipeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-swipe-left {
    opacity: 0;
    animation: heroSwipeLeft 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: opacity, transform;
}

.hero-swipe-right {
    opacity: 0;
    animation: heroSwipeRight 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: opacity, transform;
}

.hero-swipe-down {
    opacity: 0;
    animation: heroSwipeDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: opacity, transform;
}

.hero-swipe-up {
    opacity: 0;
    animation: heroSwipeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
    .hero-swipe-left,
    .hero-swipe-right,
    .hero-swipe-down,
    .hero-swipe-up {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   Custom Yellowish Scrollbar (Cross-Browser: Chrome, Safari, Edge, Firefox)
   ========================================================================== */
html {
    scrollbar-width: thin;
    scrollbar-color: #f59e0b #071530;
}

::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

::-webkit-scrollbar-track {
    background: #071530;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    border-radius: 9999px;
    border: 2px solid #071530;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #fde68a 0%, #fbbf24 50%, #f59e0b 100%);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

::-webkit-scrollbar-thumb:active {
    background: #b45309;
}

::-webkit-scrollbar-corner {
    background: #071530;
}

/* ==========================================================================
   4-Step Institutional Execution Interactive Cards
   Matches User Reference Screenshots 1:1
   ========================================================================== */
.kb-step-card {
    transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, box-shadow, background-color;
    background-color: #ffffff;
}

.kb-step-card .kb-step-num {
    color: #93c5fd;
    transition: color 0.35s ease, transform 0.35s ease, text-shadow 0.35s ease;
}

.kb-step-card .kb-step-title {
    color: #0f172a;
    transition: color 0.35s ease;
}

.kb-step-card .kb-step-desc {
    color: #475569;
    transition: color 0.35s ease;
}

/* Inactive Card Hover State (subtle lift) */
.kb-step-card:not(.kb-step-active):hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(10, 37, 105, 0.12);
    border-color: #cbd5e1;
}

/* Active Card State - Deep Navy Blue, Radiant Yellow Number, White Title (Images 2-5) */
.kb-step-card.kb-step-active {
    background-color: #0f2b6e !important;
    border-color: rgba(96, 165, 250, 0.5) !important;
    transform: translateY(-10px) !important;
    box-shadow: 0 25px 45px -10px rgba(10, 37, 105, 0.5),
                0 12px 20px -6px rgba(10, 37, 105, 0.3),
                0 0 0 1px rgba(96, 165, 250, 0.25) !important;
}

.kb-step-card.kb-step-active .kb-step-num {
    color: #f59e0b !important;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.45);
    transform: scale(1.05);
}

.kb-step-card.kb-step-active .kb-step-title {
    color: #ffffff !important;
}

.kb-step-card.kb-step-active .kb-step-desc {
    color: #cbd5e1 !important;
}

/* Dots indicator */
.kb-step-dot.is-active {
    width: 2rem !important;
    background-color: #0f2b6e !important;
}

/* ==========================================================================
   Global Floating Scroll-To-Top Button (Yellowish Accent)
   Matches User Reference Screenshot 1:1 (Bottom-Right Corner)
   ========================================================================== */
#kb-global-scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.9);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: #f59e0b;
    color: #0f172a;
    box-shadow: 0 12px 28px -4px rgba(245, 158, 11, 0.5), 0 4px 10px -2px rgba(0, 0, 0, 0.2);
}

#kb-global-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#kb-global-scroll-top:hover {
    background-color: #fbbf24;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 16px 32px -4px rgba(245, 158, 11, 0.65), 0 6px 14px -2px rgba(10, 37, 105, 0.3);
}

/* ==========================================================================
   Disciplines Domain Explorer Interactive Transitions
   Matches User Reference Screenshots 1:1
   ========================================================================== */
.kb-domain-btn {
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, background-color, box-shadow;
}

.kb-domain-btn.kb-domain-active {
    background-color: #0f2b6e !important;
    color: #ffffff !important;
    transform: translateX(8px);
    box-shadow: 0 12px 25px -6px rgba(10, 37, 105, 0.4) !important;
    border-color: rgba(96, 165, 250, 0.4) !important;
}

.kb-domain-btn.kb-domain-active svg:first-child {
    color: #f59e0b !important;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.4));
}

.kb-domain-btn.kb-domain-active svg:last-child {
    color: #ffffff !important;
}

.kb-domain-panel:not(.hidden) {
    animation: domainPanelFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes domainPanelFade {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.kb-domain-dot.is-active {
    width: 1.75rem !important;
    background-color: #0f2b6e !important;
}




