/* ============================================
   LearnFlow LMS — Premium Design System v2
   Inspired by Linear, Notion, Vercel
   ============================================ */

/* --- Design Tokens --- */
:root {
     /* Core Colors - Vibrant SaaS Palette */
     --primary: #4f46e5;
     /* Deeper, richer Indigo */
     --primary-hover: #4338ca;
     --primary-soft: rgba(79, 70, 229, 0.08);
     --primary-glow: rgba(79, 70, 229, 0.25);

     --secondary: #0f172a;
     /* Slate 900 */
     --secondary-hover: #1e293b;

     --accent: #ec4899;
     /* Pink 500 */
     --accent-hover: #db2777;
     --accent-soft: rgba(236, 72, 153, 0.1);

     /* Neutrals */
     --dark: #0f172a;
     /* Slate 900 */
     --light: #f8fafc;
     /* Slate 50 */
     --white: #ffffff;

     /* Status */
     --success: #10b981;
     --success-soft: rgba(16, 185, 129, 0.1);
     --warning: #f59e0b;
     --warning-soft: rgba(245, 158, 11, 0.1);
     --danger: #ef4444;
     --danger-soft: rgba(239, 68, 68, 0.1);

     /* Text */
     --text-primary: #1e293b;
     /* Slate 800 */
     --text-secondary: #475569;
     /* Slate 600 */
     --text-muted: #64748b;
     /* Slate 500 */

     /* Borders & Backgrounds */
     --border: #e2e8f0;
     /* Slate 200 */
     --border-light: #f1f5f9;
     /* Slate 100 */
     --bg-body: #f1f5f9;
     /* Slightly darker for better card contrast */
     --bg-panel: #ffffff;
     --bg-hover: #f8fafc;
     --bg-sidebar: #ffffff;

     /* Glass Effects */
     --glass: rgba(255, 255, 255, 0.7);
     --glass-border: rgba(255, 255, 255, 0.4);
     --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

     /* Shadows */
     --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
     --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
     --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
     --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

     /* Layout */
     --sidebar-w: 280px;
     /* Slightly wider */
     --topbar-h: 70px;
     --radius-sm: 0.5rem;
     --radius-md: 0.75rem;
     --radius-lg: 1.25rem;
     --radius-xl: 2rem;

     /* Animation */
     --transition-fast: 0.15s ease;
     --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card {
     background: var(--glass);
     backdrop-filter: blur(10px);
     -webkit-backdrop-filter: blur(10px);
     border: 1px solid var(--glass-border);
     box-shadow: var(--glass-shadow);
}

.premium-gradient {
     background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
}

.text-gradient {
     background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
     -webkit-background-clip: text;
     background-clip: text;
     -webkit-text-fill-color: transparent;
}

/* --- Base --- */
*,
*::before,
*::after {
     box-sizing: border-box;
}

html,
body {
     max-width: 100vw;
     overflow-x: hidden;
}

body {
     font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
     color: var(--text-primary);
     background: var(--bg-body);
     -webkit-font-smoothing: antialiased;
     -moz-osx-font-smoothing: grayscale;
     line-height: 1.6;
     font-size: 0.9rem;
}

body.panel-body {
     overflow-x: hidden;
     /* Redundant but safe */
}

/* ============================================
   GLOBAL LAYOUT PADDING OVERRIDES
   ============================================ */
.container {
     padding-left: 1rem !important;
     padding-right: 1rem !important;
}

@media (min-width: 768px) {
     .container {
          padding-left: 2.5rem !important;
          padding-right: 2.5rem !important;
     }
}

@media (min-width: 1200px) {
     .container {
          padding-left: 4.5rem !important;
          padding-right: 4.5rem !important;
     }
}

/* ============================================
   PANEL SIDEBAR
   ============================================ */
.panel-sidebar {
     width: var(--sidebar-w);
     height: 100vh;
     position: fixed;
     top: 0;
     left: 0;
     background: var(--bg-sidebar);
     border-right: 1px solid var(--border);
     z-index: 2200;
     display: flex;
     flex-direction: column;
     scrollbar-width: thin;
     scrollbar-color: var(--border) transparent;
}

.panel-sidebar>* {
     flex-shrink: 0;
}

.sidebar-nav {
     flex-grow: 1;
     overflow-y: auto;
     overflow-x: hidden;
     scrollbar-width: thin;
     scrollbar-color: var(--border) transparent;
}

.sidebar-nav::-webkit-scrollbar {
     width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
     background: var(--border);
     border-radius: 10px;
}

.panel-sidebar::-webkit-scrollbar {
     width: 4px;
}

.panel-sidebar::-webkit-scrollbar-thumb {
     background: var(--border);
     border-radius: 10px;
}

/* Brand */
.sidebar-brand {
     padding: 1.25rem 1.25rem 1rem;
     border-bottom: 1px solid var(--border-light);
     position: sticky;
     top: 0;
     background: var(--bg-sidebar);
     z-index: 20;
}

.brand-link {
     display: flex;
     align-items: center;
     gap: 0.6rem;
     text-decoration: none;
     color: var(--text-primary);
}

.brand-icon {
     width: 34px;
     height: 34px;
     background: linear-gradient(135deg, var(--primary), #818cf8);
     border-radius: var(--radius-sm);
     display: flex;
     align-items: center;
     justify-content: center;
     color: white;
     font-size: 0.9rem;
     flex-shrink: 0;
}

.brand-text {
     font-weight: 700;
     font-size: 1.1rem;
     letter-spacing: -0.02em;
}

/* Navigation */
.sidebar-nav {
     flex: 1;
     padding: 0.75rem 0.75rem;
}

.nav-section {
     padding: 1.25rem 0.75rem 0.35rem;
}

.nav-section-title {
     font-size: 0.65rem;
     font-weight: 600;
     text-transform: uppercase;
     letter-spacing: 0.08em;
     color: var(--text-muted);
}

.nav-item {
     display: flex;
     align-items: center;
     gap: 0.7rem;
     padding: 0.6rem 0.75rem;
     border-radius: var(--radius-sm);
     color: var(--text-secondary);
     font-weight: 500;
     font-size: 0.85rem;
     text-decoration: none;
     transition: all var(--transition);
     margin-bottom: 2px;
     position: relative;
}

.nav-item:hover {
     background: var(--bg-hover);
     color: var(--text-primary);
}

.nav-item.active {
     background: var(--primary-soft);
     color: var(--primary);
     font-weight: 600;
}

.nav-item.active .nav-icon {
     color: var(--primary);
}

.nav-icon {
     width: 20px;
     text-align: center;
     font-size: 0.9rem;
     color: var(--text-muted);
     transition: color var(--transition);
     flex-shrink: 0;
}

.nav-item:hover .nav-icon {
     color: var(--text-secondary);
}

/* Sidebar Submenus */
.nav-item-has-submenu {
     cursor: pointer;
}

.nav-submenu {
     display: none;
     flex-direction: column;
     padding-left: 2.3rem;
     margin-bottom: 8px;
     animation: slideDown 0.3s ease;
}

@keyframes slideDown {
     from {
          opacity: 0;
          transform: translateY(-10px);
     }

     to {
          opacity: 1;
          transform: translateY(0);
     }
}

.nav-item-has-submenu[aria-expanded="true"]+.nav-submenu {
     display: flex;
}

.submenu-item {
     display: block;
     padding: 0.5rem 0.75rem;
     font-size: 0.8rem;
     color: var(--text-muted);
     text-decoration: none;
     border-left: 2px solid var(--border-light);
     transition: all var(--transition);
     border-top-right-radius: var(--radius-sm);
     border-bottom-right-radius: var(--radius-sm);
}

.submenu-item:hover {
     color: var(--primary);
     border-left-color: var(--primary);
     background: var(--primary-soft);
}

.submenu-item.active {
     background: transparent;
     color: var(--primary);
     border-left-color: var(--primary);
     font-weight: 700;
}

.arrow-icon {
     font-size: 0.65rem;
     margin-left: auto;
     transition: transform var(--transition);
     opacity: 0.5;
}

.nav-item-has-submenu[aria-expanded="true"] .arrow-icon {
     transform: rotate(180deg);
     opacity: 0.8;
}

/* Sidebar Footer User Card */
.sidebar-footer {
     padding: 0.75rem;
     border-top: 1px solid var(--border-light);
     margin-top: auto;
     position: sticky;
     bottom: 0;
     background: var(--bg-sidebar);
     z-index: 20;
}

@media (max-width: 992px) {
     .sidebar-footer {
          padding-bottom: 80px !important;
          /* Space for mobile nav if it's there */
     }
}

.user-card {
     display: flex;
     align-items: center;
     gap: 0.6rem;
     padding: 0.6rem 0.65rem;
     border-radius: var(--radius-sm);
     text-decoration: none;
     transition: all var(--transition);
}

.user-card:hover {
     background: var(--bg-hover);
}

.user-avatar {
     width: 32px;
     height: 32px;
     border-radius: var(--radius-sm);
     object-fit: cover;
     flex-shrink: 0;
}

.user-info {
     flex: 1;
     min-width: 0;
}

.user-name {
     display: block;
     font-weight: 600;
     font-size: 0.8rem;
     color: var(--text-primary);
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
}

.user-role {
     display: block;
     font-size: 0.65rem;
     color: var(--text-muted);
     font-weight: 500;
}

.user-menu-icon {
     color: var(--text-muted);
     font-size: 0.75rem;
}

.logout-btn {
     display: flex;
     align-items: center;
     gap: 0.6rem;
     padding: 0.5rem 0.75rem;
     border-radius: var(--radius-sm);
     margin-top: 0.25rem;
     font-size: 0.8rem;
     font-weight: 500;
     color: var(--accent);
     text-decoration: none;
     transition: all var(--transition);
}

.logout-btn:hover {
     background: rgba(244, 63, 94, 0.06);
     color: var(--accent);
}

/* Sidebar Overlay */
.sidebar-overlay {
     position: fixed;
     inset: 0;
     background: rgba(15, 23, 42, 0.4);
     backdrop-filter: blur(4px);
     z-index: 2150;
     opacity: 0;
     visibility: hidden;
     transition: all 0.3s ease;
}

.sidebar-overlay.show {
     opacity: 1;
     visibility: visible;
}

/* ============================================
   TOP BAR
   ============================================ */
.panel-topbar {
     position: sticky;
     top: 0;
     left: var(--sidebar-w);
     right: 0;
     height: var(--topbar-h);
     margin-left: var(--sidebar-w);
     background: rgba(248, 250, 252, 0.85);
     backdrop-filter: blur(12px);
     -webkit-backdrop-filter: blur(12px);
     border-bottom: 1px solid var(--border);
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 0 1.5rem;
     z-index: 1030;
}

.topbar-left {
     display: flex;
     align-items: center;
     gap: 0.75rem;
}

.topbar-toggle {
     border: none;
     background: none;
     font-size: 1.15rem;
     color: var(--text-secondary);
     padding: 0.35rem;
     cursor: pointer;
}

.topbar-breadcrumb {
     display: flex;
     align-items: center;
     gap: 0.5rem;
}

.breadcrumb-role {
     font-size: 0.78rem;
     font-weight: 500;
     color: var(--text-muted);
}

.breadcrumb-sep {
     font-size: 0.55rem;
     color: var(--text-muted);
}

.breadcrumb-page {
     font-size: 0.85rem;
     font-weight: 600;
     color: var(--text-primary);
}

.topbar-right {
     display: flex;
     align-items: center;
     gap: 0.5rem;
}

.topbar-icon-btn {
     width: 36px;
     height: 36px;
     border: 1px solid var(--border);
     border-radius: var(--radius-sm);
     background: var(--white);
     color: var(--text-secondary);
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 0.95rem;
     cursor: pointer;
     position: relative;
     transition: all var(--transition);
}

.topbar-icon-btn:hover {
     background: var(--bg-hover);
     border-color: var(--text-muted);
}

.notification-dot {
     position: absolute;
     top: -4px;
     right: -4px;
     min-width: 18px;
     height: 18px;
     padding: 0 4px;
     background: var(--accent);
     color: white;
     font-size: 10px;
     font-weight: bold;
     border-radius: 9px;
     display: flex;
     align-items: center;
     justify-content: center;
     border: 2px solid var(--white);
}

.topbar-user {
     display: flex;
     align-items: center;
     gap: 0.5rem;
     padding: 0.3rem 0.7rem 0.3rem 0.3rem;
     border: 1px solid var(--border);
     border-radius: var(--radius-sm);
     background: var(--white);
     cursor: pointer;
     transition: all var(--transition);
}

.topbar-user:hover {
     background: var(--bg-hover);
}

.topbar-avatar {
     width: 26px;
     height: 26px;
     border-radius: 6px;
}

.topbar-username {
     font-size: 0.8rem;
     font-weight: 600;
     color: var(--text-primary);
}

/* ============================================
   PUBLIC NAVBAR — Premium Design System
   ============================================ */
.pub-navbar {
     padding: 14px 0;
     background: rgba(255, 255, 255, 0.72);
     backdrop-filter: saturate(180%) blur(20px);
     -webkit-backdrop-filter: saturate(180%) blur(20px);
     border-bottom: 1px solid rgba(0, 0, 0, 0.05);
     position: sticky;
     top: 0;
     z-index: 1060;
     transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.pub-navbar.scrolled {
     padding: 8px 0;
     box-shadow: 0 4px 30px rgba(0, 0, 0, 0.07);
}

.pub-navbar-inner {
     display: flex;
     align-items: center;
     justify-content: space-between;
}

.pub-brand {
     display: flex;
     align-items: center;
     gap: 0.6rem;
     text-decoration: none;
     color: var(--text-primary);
     font-weight: 800;
     font-size: 1.25rem;
     letter-spacing: -0.03em;
     transition: opacity 0.2s ease;
}

.pub-brand:hover {
     opacity: 0.8;
     color: var(--text-primary);
}

.brand-icon {
     width: 34px;
     height: 34px;
     display: flex;
     align-items: center;
     justify-content: center;
     background: linear-gradient(135deg, var(--primary), var(--accent));
     color: #fff;
     border-radius: 10px;
     font-size: 0.85rem;
}

.pub-search {
     position: relative;
     max-width: 280px;
     width: 100%;
}

.pub-search-icon {
     position: absolute;
     left: 0.9rem;
     top: 50%;
     transform: translateY(-50%);
     color: var(--text-muted);
     font-size: 0.78rem;
     transition: color 0.3s ease;
}

.pub-search-input {
     width: 100%;
     padding: 0.5rem 1rem 0.5rem 2.4rem;
     border: 1.5px solid var(--border);
     border-radius: 10px;
     background: var(--bg-body);
     font-size: 0.8rem;
     font-weight: 500;
     transition: all 0.3s ease;
     color: var(--text-primary);
}

.pub-search-input::placeholder {
     color: var(--text-muted);
     font-weight: 400;
}

.pub-search-input:focus {
     background: white;
     border-color: var(--primary);
     box-shadow: 0 0 0 4px var(--primary-glow);
     outline: none;
}

.pub-nav-links {
     display: flex;
     align-items: center;
     gap: 0.2rem;
}

.pub-nav-link {
     text-decoration: none;
     color: var(--text-secondary);
     font-weight: 600;
     font-size: 0.82rem;
     padding: 0.4rem 0.8rem;
     border-radius: 8px;
     transition: all 0.2s ease;
}

.pub-nav-link:hover {
     color: var(--primary);
     background: var(--primary-soft);
}

.pub-cta-btn {
     padding: 0.48rem 1.2rem;
     background: var(--primary);
     color: white;
     font-weight: 700;
     font-size: 0.8rem;
     border-radius: 10px;
     text-decoration: none;
     transition: all 0.3s ease;
     border: none;
     margin-left: 0.15rem;
}

.pub-cta-btn:hover {
     background: var(--primary-hover);
     transform: translateY(-1px);
     box-shadow: 0 6px 20px var(--primary-glow);
     color: white;
}

/* — Nav User Trigger (Logged-in button) — */
.nav-user-trigger {
     display: flex;
     align-items: center;
     gap: 0.5rem;
     padding: 0.25rem 0.65rem 0.25rem 0.3rem;
     border-radius: 10px;
     text-decoration: none;
     color: var(--text-primary);
     transition: all 0.2s ease;
     border: 1.5px solid transparent;
     cursor: pointer;
}

.nav-user-trigger:hover {
     background: var(--bg-body);
     border-color: var(--border);
     color: var(--text-primary);
}

.nav-user-trigger .nav-avatar {
     width: 30px;
     height: 30px;
     border-radius: 8px;
     object-fit: cover;
     flex-shrink: 0;
}

.nav-user-trigger .nav-avatar-ph {
     width: 30px;
     height: 30px;
     border-radius: 8px;
     background: linear-gradient(135deg, var(--primary), var(--accent));
     color: #fff;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 0.7rem;
     font-weight: 800;
     flex-shrink: 0;
}

.nav-user-trigger .nav-user-name {
     font-weight: 700;
     font-size: 0.8rem;
}

.nav-user-trigger .nav-chevron {
     font-size: 0.45rem;
     color: var(--text-muted);
     margin-left: 0.1rem;
     transition: transform 0.2s ease;
}

.nav-user-trigger[aria-expanded="true"] .nav-chevron {
     transform: rotate(180deg);
}

/* — Nav User Dropdown — */
.nav-user-dropdown {
     min-width: 230px;
     padding: 0.4rem;
     border: 1px solid var(--border-light);
     border-radius: 14px;
     box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.02);
     background: rgba(255, 255, 255, 0.98);
     backdrop-filter: blur(20px);
     animation: navDropIn 0.2s ease;
}

@keyframes navDropIn {
     from {
          opacity: 0;
          transform: translateY(-6px) scale(0.97);
     }

     to {
          opacity: 1;
          transform: translateY(0) scale(1);
     }
}

.nav-user-dropdown .dd-header {
     padding: 0.6rem 0.7rem;
     background: var(--bg-body);
     border-radius: 10px;
     margin-bottom: 0.3rem;
}

.nav-user-dropdown .dropdown-item {
     border-radius: 8px;
     padding: 0.5rem 0.7rem;
     font-size: 0.8rem;
     font-weight: 500;
     color: var(--text-secondary);
     transition: all 0.15s ease;
}

.nav-user-dropdown .dropdown-item:hover {
     background: var(--primary-soft);
     color: var(--primary);
}

.nav-user-dropdown .dropdown-item i {
     width: 18px;
     text-align: center;
     margin-right: 0.45rem;
     font-size: 0.78rem;
}

.nav-user-dropdown .dropdown-item.text-danger:hover {
     background: rgba(239, 68, 68, 0.08);
     color: var(--danger);
}

/* ============================================
   PUBLIC FOOTER
   ============================================ */
.pub-footer {
     background: #0f172a;
     color: #94a3b8;
     padding: 100px 0 40px;
}

.footer-top {
     display: grid;
     grid-template-columns: 2fr 1fr 1fr 1fr;
     gap: 40px;
     margin-bottom: 60px;
}

@media (max-width: 992px) {
     .footer-top {
          grid-template-columns: 1fr 1fr;
     }
}

@media (max-width: 576px) {
     .footer-top {
          grid-template-columns: 1fr;
     }
}

.footer-desc {
     max-width: 300px;
     font-size: 0.85rem;
     line-height: 1.7;
     margin-top: 1rem;
}

.footer-heading {
     color: white;
     font-weight: 700;
     font-size: 0.9rem;
     margin-bottom: 1.5rem;
     text-transform: uppercase;
     letter-spacing: 0.05em;
}

.footer-link {
     display: block;
     color: #94a3b8;
     text-decoration: none;
     margin-bottom: 0.75rem;
     font-size: 0.85rem;
     transition: all var(--transition);
}

.footer-link:hover {
     color: var(--primary);
     transform: translateX(4px);
}

.footer-socials {
     display: flex;
     gap: 1rem;
}

.footer-social-icon {
     width: 36px;
     height: 36px;
     border-radius: 50%;
     background: rgba(255, 255, 255, 0.05);
     display: flex;
     align-items: center;
     justify-content: center;
     color: white;
     text-decoration: none;
     transition: all var(--transition);
}

.footer-social-icon:hover {
     background: var(--primary);
     transform: translateY(-3px);
}

.footer-bottom {
     border-top: 1px solid rgba(255, 255, 255, 0.05);
     padding-top: 30px;
     display: flex;
     justify-content: space-between;
     align-items: center;
     font-size: 0.8rem;
}

@media (max-width: 576px) {
     .footer-bottom {
          flex-direction: column;
          gap: 1rem;
          text-align: center;
     }
}

.footer-bottom-links {
     display: flex;
     gap: 1.5rem;
}

.footer-bottom-links a {
     color: #94a3b8;
     text-decoration: none;
}

.footer-bottom-links a:hover {
     color: white;
}

/* ============================================
   PUBLIC HERO & HOMEPAGE
   ============================================ */
.pub-hero {
     padding: 100px 0;
     background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 40%),
          radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.05), transparent 40%);
     overflow: hidden;
}

.hero-title {
     font-size: 4.5rem;
     font-weight: 800;
     line-height: 1.05;
     letter-spacing: -0.04em;
     color: var(--dark);
     margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
     .hero-title {
          font-size: 3.5rem;
     }
}

@media (max-width: 768px) {
     .hero-title {
          font-size: 2.8rem;
     }
}

.text-gradient {
     background: linear-gradient(135deg, var(--primary) 0%, #818cf8 50%, #c084fc 100%);
     -webkit-background-clip: text;
     background-clip: text;
     -webkit-text-fill-color: transparent;
     display: inline-block;
}

.hero-subtitle {
     font-size: 1.25rem;
     color: var(--text-secondary);
     max-width: 600px;
}

.stat-num {
     font-size: 1.25rem;
     font-weight: 800;
     color: var(--dark);
}

.stat-label {
     font-size: 0.8rem;
     font-weight: 600;
     color: var(--text-muted);
     text-transform: uppercase;
     letter-spacing: 0.05em;
}

.stat-sep {
     width: 1px;
     height: 30px;
     background: var(--border);
}

.hero-image-stack {
     position: relative;
     width: 100%;
     height: 450px;
}

.main-img img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     border: 8px solid white;
     box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.floating-card {
     position: absolute;
     bottom: 20px;
     left: -40px;
     width: 260px;
     z-index: 10;
     border: 1px solid var(--border-light);
}

.section-title {
     font-size: 2.5rem;
     font-weight: 800;
     letter-spacing: -0.02em;
     margin-bottom: 1rem;
     color: var(--dark);
}

.section-subtitle {
     font-size: 1.05rem;
     color: var(--text-secondary);
     max-width: 500px;
}

/* Category Card V2 */
.category-card-v2 {
     background: white;
     border: 1px solid var(--border-light);
     border-radius: var(--radius-lg);
     transition: all var(--transition);
     height: 100%;
}

.category-card-v2:hover {
     transform: translateY(-8px);
     border-color: var(--primary);
     box-shadow: 0 12px 30px rgba(99, 102, 241, 0.12);
}

.cat-title {
     font-weight: 700;
     font-size: 0.85rem;
     color: var(--text-primary);
}

/* Course Card V2 */
.course-card-v2 {
     background: white;
     border-radius: var(--radius-xl);
     border: 1px solid var(--border-light);
     overflow: hidden;
     height: 100%;
     transition: all var(--transition);
     display: flex;
     flex-direction: column;
     box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.course-card-v2:hover {
     transform: translateY(-8px) scale(1.01);
     box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.15);
     border-color: rgba(79, 70, 229, 0.2);
}

.course-img-wrapper {
     position: relative;
     height: 180px;
     overflow: hidden;
}

.course-img-wrapper img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     transition: all 0.5s ease;
}

.course-card-v2:hover .course-img-wrapper img {
     transform: scale(1.1);
}

.course-tag {
     position: absolute;
     top: 1rem;
     left: 1rem;
     padding: 0.4rem 0.8rem;
     background: rgba(255, 255, 255, 0.95);
     color: var(--primary);
     font-weight: 700;
     font-size: 0.65rem;
     border-radius: 2rem;
     text-transform: uppercase;
     letter-spacing: 0.05em;
     backdrop-filter: blur(4px);
}

.course-tag.pink {
     color: var(--accent);
}

.course-tag.purple {
     color: #8b5cf6;
}

.course-tag.orange {
     color: #f97316;
}

.course-content-v2 {
     padding: 1.5rem;
     flex: 1;
     display: flex;
     flex-direction: column;
}

.course-title {
     font-weight: 700;
     font-size: 1.05rem;
     line-height: 1.4;
     margin-bottom: 1rem;
     color: var(--dark);
     flex: 1;
}

.course-instructor {
     display: flex;
     align-items: center;
     gap: 0.6rem;
     margin-bottom: 1.25rem;
}

.course-instructor img {
     width: 24px;
     height: 24px;
     border-radius: 50%;
}

.course-instructor span {
     font-size: 0.78rem;
     font-weight: 600;
     color: var(--text-secondary);
}

.course-footer {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding-top: 1rem;
     border-top: 1px solid var(--border-light);
}

.course-price {
     font-weight: 800;
     font-size: 1.15rem;
     color: var(--primary);
}

.course-rating {
     font-size: 0.75rem;
     font-weight: 700;
     color: var(--text-primary);
}

.bg-light-soft {
     background: #f1f5f9;
}

.rounded-5 {
     border-radius: 2rem !important;
}

.shadow-2xl {
     box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.15);
}

.fw-extrabold {
     font-weight: 800;
}

.btn-white {
     background: white;
     color: var(--dark);
     border-color: white;
}

.btn-white:hover {
     background: var(--bg-hover);
     color: var(--primary);
     transform: translateY(-2px);
}

.btn-outline-white {
     color: white;
     border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
     background: rgba(255, 255, 255, 0.1);
     color: white;
     transform: translateY(-2px);
     border-color: white;
}

/* Main layout padding fixed for transparent header */
main {
     min-height: 80vh;
}

.container-content {
     padding-top: 60px;
}

/* ============================================
   MOBILE PUBLIC NAV — Premium
   ============================================ */
.pub-mobile-nav {
     position: fixed;
     bottom: 0;
     left: 0;
     right: 0;
     height: 62px;
     background: rgba(255, 255, 255, 0.85);
     backdrop-filter: saturate(180%) blur(20px);
     -webkit-backdrop-filter: saturate(180%) blur(20px);
     display: flex;
     justify-content: space-around;
     align-items: center;
     border-top: 1px solid rgba(0, 0, 0, 0.05);
     z-index: 2000;
     padding-bottom: env(safe-area-inset-bottom);
}

.pub-mobile-nav-item {
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 3px;
     color: var(--text-muted);
     text-decoration: none;
     font-size: 0.6rem;
     font-weight: 600;
     padding: 0.3rem 0.6rem;
     border-radius: 10px;
     transition: all 0.2s ease;
     position: relative;
}

.pub-mobile-nav-item i {
     font-size: 1.15rem;
     transition: transform 0.2s ease;
}

.pub-mobile-nav-item img {
     border: 2px solid transparent;
     transition: border-color 0.2s ease;
}

.pub-mobile-nav-item.active {
     color: var(--primary);
}

.pub-mobile-nav-item.active::before {
     content: '';
     position: absolute;
     top: -1px;
     width: 20px;
     height: 3px;
     background: var(--primary);
     border-radius: 0 0 3px 3px;
}

.pub-mobile-nav-item.active i {
     transform: scale(1.1);
}

.pub-mobile-nav-item.active img {
     border-color: var(--primary);
}

.pub-nav-link-mobile {
     font-size: 1.1rem;
     color: var(--text-secondary);
     text-decoration: none;
     transition: color 0.2s ease;
}

.pub-nav-link-mobile:hover {
     color: var(--primary);
}

/* ============================================
   MAIN CONTENT & COMPONENTS
   ============================================ */
.panel-content {
     margin-left: var(--sidebar-w);
     padding: 1.75rem 2rem;
     min-height: calc(100vh - var(--topbar-h));
}

@media (max-width: 992px) {
     .panel-content {
          margin-left: 0;
          padding: 1.25rem 1rem;
          padding-bottom: 80px;
          /* Space for mobile nav */
          min-height: 100vh;
     }
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
     position: fixed;
     bottom: 0;
     left: 0;
     right: 0;
     height: 60px;
     background: var(--white);
     display: none;
     justify-content: space-around;
     align-items: center;
     border-top: 1px solid var(--border);
     z-index: 2000;
     padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 992px) {
     .mobile-bottom-nav {
          display: flex;
     }
}

.mobile-nav-item {
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 3px;
     text-decoration: none;
     color: var(--text-muted);
     font-size: 0.6rem;
     font-weight: 600;
     transition: color var(--transition);
     padding: 0.3rem 0.5rem;
     -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item i {
     font-size: 1.15rem;
}

.mobile-nav-item.active {
     color: var(--primary);
}

/* Components */
.modern-card {
     background: var(--white);
     border-radius: var(--radius-xl);
     border: 1px solid var(--border-light);
     box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
     transition: all var(--transition);
}

.modern-card:hover {
     box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.btn-primary {
     background: var(--primary);
     color: var(--white);
     border: 1px solid var(--primary);
     box-shadow: 0 4px 6px -1px var(--primary-glow);
     transition: all var(--transition);
}

.btn-primary:hover {
     background: var(--primary-hover);
     border-color: var(--primary-hover);
     transform: translateY(-2px);
     box-shadow: 0 6px 12px -2px var(--primary-glow);
     color: var(--white);
}

.btn-premium-login {
     display: block;
     width: 100%;
     padding: 1rem;
     background: linear-gradient(135deg, var(--primary), var(--accent));
     color: white;
     border: none;
     border-radius: var(--radius-md);
     font-weight: 700;
     font-size: 1rem;
     text-align: center;
     transition: all var(--transition);
     box-shadow: 0 10px 25px -5px var(--primary-glow);
     text-decoration: none;
}

.btn-premium-login:hover {
     transform: translateY(-3px);
     box-shadow: 0 15px 35px -5px var(--primary-glow);
     color: white;
}

/* Mobile Button Optimizations */
@media (max-width: 576px) {
     .btn-lg {
          padding: 0.85rem 1.5rem !important;
          font-size: 0.95rem !important;
     }

     .d-flex.flex-column>.btn,
     .d-flex.flex-column>a.btn {
          width: 100%;
          text-align: center;
          justify-content: center;
          display: flex;
          align-items: center;
     }
}

.icon-box-lg {
     width: 60px;
     height: 60px;
     border-radius: var(--radius-md);
     display: flex;
     align-items: center;
     justify-content: center;
}

.icon-box-md {
     width: 48px;
     height: 48px;
     border-radius: var(--radius-sm);
     display: flex;
     align-items: center;
     justify-content: center;
}

.bg-primary-soft {
     background-color: var(--primary-soft);
     color: var(--primary);
}

.bg-success-soft {
     background-color: var(--success-soft);
     color: var(--success);
}

.bg-warning-soft {
     background-color: var(--warning-soft);
     color: var(--warning);
}

.bg-danger-soft {
     background-color: var(--danger-soft);
     color: var(--danger);
}

.bg-pink-soft {
     background-color: var(--accent-soft);
     color: var(--accent);
}

.text-pink {
     color: var(--accent);
}

.bg-orange-soft {
     background-color: rgba(249, 115, 22, 0.1);
     color: #f97316;
}

.text-orange {
     color: #f97316;
}

.bg-purple-soft {
     background-color: rgba(139, 92, 246, 0.1);
     color: #8b5cf6;
}

.text-purple {
     color: #8b5cf6;
}

.extra-small {
     font-size: 0.65rem;
}

.tiny {
     font-size: 0.75rem;
}

.uppercase {
     text-transform: uppercase;
     letter-spacing: 0.05em;
}

.transition-up {
     transition: all var(--transition-fast);
}

.transition-up:hover {
     transform: translateY(-3px);
}

.login-split-page {
     display: flex;
     min-height: 100vh;
     background: var(--bg-body);
}

.login-left-panel {
     flex: 1;
     display: none;
     background: url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&q=80') center/cover;
     position: relative;
}

@media (min-width: 992px) {
     .login-left-panel {
          display: flex;
          align-items: center;
          padding: 4rem;
     }
}

.login-left-panel::before {
     content: '';
     position: absolute;
     inset: 0;
     background: linear-gradient(135deg, rgba(79, 70, 229, 0.9), rgba(15, 23, 42, 0.95));
}

.login-left-panel.educator-panel {
     background-image: url('https://images.unsplash.com/photo-1544717305-2782549b5136?auto=format&fit=crop&q=80');
}

.login-left-panel.educator-panel::before {
     background: linear-gradient(135deg, rgba(236, 72, 153, 0.9), rgba(15, 23, 42, 0.95));
}

.login-glass-card {
     position: relative;
     z-index: 1;
     background: rgba(255, 255, 255, 0.1);
     backdrop-filter: blur(20px);
     -webkit-backdrop-filter: blur(20px);
     border: 1px solid rgba(255, 255, 255, 0.2);
     border-radius: 2rem;
     padding: 3rem;
     max-width: 500px;
     box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.login-right-panel {
     flex: 1;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 2rem;
     background: var(--white);
}

.login-form-control {
     width: 100%;
     padding: 0.85rem 1.25rem;
     font-size: 0.95rem;
     line-height: 1.5;
     color: var(--text-primary);
     background-color: var(--bg-hover);
     background-clip: padding-box;
     border: 1px solid var(--border);
     border-radius: var(--radius-md);
     transition: all var(--transition);
}

.login-form-control:focus {
     background-color: var(--white);
     border-color: var(--primary);
     outline: 0;
     box-shadow: 0 0 0 4px var(--primary-glow);
}

.social-login-btn {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 0.75rem;
     padding: 0.85rem;
     border: 1px solid var(--border);
     border-radius: var(--radius-md);
     background: var(--white);
     color: var(--text-primary);
     font-weight: 600;
     text-decoration: none;
     transition: all var(--transition);
}

.social-login-btn:hover {
     background: var(--bg-hover);
     border-color: var(--text-muted);
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */
@keyframes fadeIn {
     from {
          opacity: 0;
          transform: translateY(10px);
     }

     to {
          opacity: 1;
          transform: translateY(0);
     }
}

.animate-fade-in {
     animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes bounceY {

     0%,
     100% {
          transform: translateY(0);
     }

     50% {
          transform: translateY(-15px);
     }
}

.animate-bounce-y {
     animation: bounceY 4s ease-in-out infinite;
}

.hero-image-stack {
     perspective: 1000px;
}

.main-img {
     transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-img:hover {
     transform: rotate(12deg) scale(1.02);
}

.rotate-12 {
     transform: rotate(12deg);
}

.z-index-1 {
     z-index: 1;
}

.opacity-85 {
     opacity: 0.85;
}

/* Flash Messages Overlay */
.flash-message {
     position: fixed;
     top: 20px;
     right: -350px;
     min-width: 300px;
     max-width: 350px;
     padding: 1rem 1.25rem;
     border-radius: 8px;
     display: flex;
     align-items: center;
     justify-content: space-between;
     box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
     z-index: 3000;
     transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.flash-message.show {
     right: 20px;
}

.flash-content {
     display: flex;
     align-items: center;
     gap: 0.75rem;
     font-weight: 500;
}

.flash-success {
     background-color: #f0fdf4;
     border-left: 4px solid #22c55e;
     color: #166534;
}

.flash-success .flash-icon {
     color: #22c55e;
}

.flash-error {
     background-color: #fef2f2;
     border-left: 4px solid #ef4444;
     color: #991b1b;
}

.flash-error .flash-icon {
     color: #ef4444;
}

.flash-close {
     background: transparent;
     border: none;
     color: inherit;
     opacity: 0.5;
     cursor: pointer;
     padding: 0;
     margin-left: 1rem;
     transition: opacity 0.2s;
}

.flash-close:hover {
     opacity: 1;
}

/* ============================================
   MOBILE RESPONSIVE OVERRIDES
   ============================================ */
@media (max-width: 992px) {
     .panel-sidebar {
          left: calc(-1 * var(--sidebar-w));
          transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
          box-shadow: none;
     }

     .panel-sidebar.show {
          left: 0;
          box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
     }

     .panel-topbar {
          left: 0 !important;
          margin-left: 0 !important;
          padding-left: 1rem;
          padding-right: 1rem;
     }

     .sidebar-brand .brand-text {
          font-size: 1rem;
     }

     .topbar-breadcrumb {
          display: none !important;
     }

     /* Fixed Topbar for glass transition */
     .panel-topbar.glass-card {
          background: rgba(255, 255, 255, 0.95);
     }
}

@media (max-width: 768px) {
     .panel-content {
          padding: 1rem !important;
          padding-bottom: 90px !important;
     }

     .display-4 {
          font-size: 2rem !important;
     }

     .display-5 {
          font-size: 1.75rem !important;
     }

     .card-body {
          padding: 1.25rem !important;
     }

     /* Stack grid elements on small mobile */
     .dashboard-stats {
          grid-template-columns: 1fr !important;
     }
}

/* Smooth Body state when sidebar is open */
body.sidebar-open {
     overflow: hidden;
}

body.sidebar-open .mobile-bottom-nav {
     display: none !important;
}

/* ============================================
   STRATEGY UI - REFINEMENT (Inspired by Reference)
   ============================================ */

.u-strategy-hero {
    min-height: 85vh;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0;
}

.u-strategy-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 20%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0.1) 100%);
    z-index: 1;
}

.u-strategy-hero .container {
    position: relative;
    z-index: 2;
}

.hero-strategy-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-strategy-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.u-btn-gold {
    background: var(--strategy-gold);
    color: var(--strategy-dark) !important;
    border: none;
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.u-btn-gold:hover {
    background: #c29263;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 163, 115, 0.3);
}

.u-btn-outline-white {
    border: 1.5px solid white;
    color: white !important;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.u-btn-outline-white:hover {
    background: white;
    color: var(--strategy-dark) !important;
}

/* Strategic Pillars */
.strategy-pillars-section {
    padding: 100px 0;
    background: #f8fafc;
}

.u-strategy-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.u-strategy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
}

.u-strategy-card .icon-box {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--strategy-blue);
    font-size: 1.75rem;
    background: #f1f5f9;
    border-radius: 12px;
}

.u-strategy-card h5 {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--strategy-dark);
    margin-bottom: 0.75rem;
}

.u-strategy-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.4;
}

/* Programs Section */
.u-program-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.u-program-card .program-header {
    padding: 2rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.u-program-card .program-header h4 {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0;
    color: var(--strategy-dark);
}

.u-program-card .program-footer {
    padding: 1rem;
    background: #f8fafc;
}

/* Testimonial */
.u-testimonial-box {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 3rem;
}

@media (max-width: 991px) {
    .u-testimonial-box {
        flex-direction: column-reverse;
        text-align: center;
        padding: 2rem;
    }
}

.u-testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.u-testimonial-author {
    font-weight: 700;
    color: var(--strategy-dark);
}

.u-testimonial-img {
    width: 250px;
    height: 250px;
    border-radius: 15px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Specialized CTA */
.u-cta-split {
    background: linear-gradient(to right, #1e3a8a, #3b82f6);
    padding: 80px 0;
    color: white;
}

.py-100 {
    padding-top: 100px;
    padding-bottom: 100px;
}