/* ==========================================================================
   Webcross Academy (https://webcross.academy) — Bespoke Static Design System
   York, United Kingdom • Scholars • University & 18+ • Business & Enterprise
   ========================================================================== */

:root {
    --wc-navy: #0b1120;
    --wc-navy-elevated: #111827;
    --wc-cyan: #06b6d4;
    --wc-violet: #8b5cf6;
    --wc-emerald: #10b981;
    --wc-amber: #f59e0b;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.font-mono-tech {
    font-family: 'JetBrains Mono', monospace;
}

/* Hide Horizontal Scrollbar on Touch Pill Strips */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Subtle Architectural Dot Grid */
.bg-dot-matrix-dark {
    background-color: #070b14;
    background-image: radial-gradient(rgba(148, 163, 184, 0.16) 1.25px, transparent 1.25px);
    background-size: 24px 24px;
}

.bg-dot-matrix-adaptive {
    background-image: radial-gradient(rgba(15, 23, 42, 0.08) 1.25px, transparent 1.25px);
    background-size: 24px 24px;
}

html.dark .bg-dot-matrix-adaptive {
    background-image: radial-gradient(rgba(148, 163, 184, 0.14) 1.25px, transparent 1.25px);
}

/* Hero Ambient Mesh Glows */
.hero-mesh-glow {
    background:
        radial-gradient(circle at 15% 20%, rgba(6, 182, 212, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 85% 25%, rgba(139, 92, 246, 0.20) 0%, transparent 48%),
        radial-gradient(circle at 55% 85%, rgba(16, 185, 129, 0.14) 0%, transparent 45%);
}

/* Glassmorphic Cards */
.wc-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease;
}

@media (hover: hover) {
    .wc-card:hover {
        transform: translateY(-4px);
    }
}

/* Interactive Flowchart Nodes */
.flow-node {
    position: relative;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

@media (hover: hover) {
    .flow-node:hover {
        transform: translateY(-3px) scale(1.01);
    }
}

.flow-node.active-node {
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.75), 0 18px 36px -10px rgba(6, 182, 212, 0.35);
}

.flow-badge {
    width: 26px;
    height: 26px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

/* Filter Pills (Courses & Blog) */
.pillar-filter-btn,
.blog-filter-btn,
.city-tab-btn {
    transition: all 0.22s ease;
}

.pillar-filter-btn.active,
.blog-filter-btn.active,
.city-tab-btn.active {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.25);
}

html.dark .pillar-filter-btn.active,
html.dark .blog-filter-btn.active,
html.dark .city-tab-btn.active {
    background: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.45);
}

/* Image Frame Hover Zoom */
.course-img-wrap {
    overflow: hidden;
    position: relative;
}

.course-img-wrap img {
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
    .wc-card:hover .course-img-wrap img {
        transform: scale(1.055);
    }
}

/* Mobile Sticky Footer On-Page Navigator (Course Pages) */
.mobile-sticky-course-bar {
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
    box-shadow: 0 -10px 30px -5px rgba(2, 6, 23, 0.35);
}

.mobile-spy-link {
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mobile-spy-link.active {
    background: linear-gradient(135deg, #06b6d4 0%, #4f46e5 100%);
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
}

/* Below-Hero Quick Sub-Navigation Links */
.subnav-pill {
    transition: all 0.2s ease;
    white-space: nowrap;
}

.subnav-pill:hover,
.subnav-pill.active {
    border-color: rgba(6, 182, 212, 0.6);
    color: #0891b2;
    background: rgba(6, 182, 212, 0.08);
}

html.dark .subnav-pill:hover,
html.dark .subnav-pill.active {
    border-color: rgba(34, 211, 238, 0.55);
    color: #67e8f9;
    background: rgba(6, 182, 212, 0.14);
}

/* Desktop Programmes Dropdown */
.nav-dropdown-panel {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown-group:hover .nav-dropdown-panel,
.nav-dropdown-group:focus-within .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Editorial Blog Article Typography */
.wc-prose p {
    margin-bottom: 1.35rem;
    line-height: 1.8;
}

.wc-prose h2 {
    margin-top: 2.5rem;
    margin-bottom: 0.9rem;
    line-height: 1.25;
    scroll-margin-top: 108px;
}

.wc-prose h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.65rem;
    line-height: 1.35;
}

/* Modal Backdrop & Slide Animation */
.scope-modal-backdrop {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.scope-modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.scope-modal-panel {
    transform: translateY(16px) scale(0.98);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.scope-modal-backdrop.open .scope-modal-panel {
    transform: translateY(0) scale(1);
}

/* Gradient Text Utility */
.text-gradient-brand {
    background: linear-gradient(135deg, #38bdf8 0%, #a78bfa 52%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subtle Animated Pulse Ring for Live Campuses */
@keyframes pulseRing {
    0% { transform: scale(0.95); opacity: 0.8; }
    70% { transform: scale(1.75); opacity: 0; }
    100% { transform: scale(1.75); opacity: 0; }
}

.live-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: inherit;
    animation: pulseRing 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

/* Print / PDF Scoping Export Support */
@media print {
    header, #scope-modal, #enquiry-modal, .mobile-sticky-course-bar, .no-print {
        display: none !important;
    }
    body {
        background: #ffffff !important;
        color: #0f172a !important;
    }
}
