/* ==========================================================================
   Skillvora Academy — Premium Design System v2.0
   A modern, animated, responsive CSS framework for the LMS platform.
   ========================================================================== */

/* ── Google Fonts ────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties (Light Mode — Default) ────────────────────── */
:root {
    /* Primary Palette */
    --primary: #1E5AA8;
    --primary-hover: #154582;
    --primary-light: #dbeafe;
    --primary-subtle: rgba(30, 90, 168, 0.08);
    --primary-glow: rgba(30, 90, 168, 0.25);

    /* Secondary / Accent */
    --secondary: #D4A017;
    --secondary-hover: #b38510;
    --secondary-light: #fef3c7;
    --secondary-subtle: rgba(212, 160, 23, 0.08);

    /* Teal / Emerald Accent */
    --accent: #0d9488;
    --accent-hover: #0f766e;
    --accent-light: #ccfbf1;
    --accent-subtle: rgba(13, 148, 136, 0.08);

    --emerald: #10b981;
    --emerald-subtle: rgba(16, 185, 129, 0.08);

    /* Danger */
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --danger-light: #fee2e2;
    --danger-subtle: rgba(239, 68, 68, 0.08);

    /* Neutrals */
    --dark: #0D1B3D;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Semantic */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f8fafc;
    --bg-elevated: #ffffff;
    --bg-overlay: rgba(15, 23, 42, 0.5);

    --border-color: #e2e8f0;
    --border-light: rgba(226, 232, 240, 0.8);

    /* Gradients */
    --grad-primary: linear-gradient(135deg, #2563EB 0%, #0d9488 100%);
    --grad-primary-vivid: linear-gradient(135deg, #2563EB 0%, #3b82f6 50%, #0d9488 100%);
    --grad-secondary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --grad-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --grad-hero: linear-gradient(135deg, rgba(37,99,235,0.05) 0%, rgba(13,148,136,0.03) 50%, rgba(248,250,252,1) 100%);
    --grad-glass: linear-gradient(135deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.65) 100%);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.03);
    --shadow-premium: 0 20px 40px -12px rgba(37, 99, 235, 0.18);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.15);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition-base: all 0.2s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-indices */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-toast: 600;
    --z-whatsapp: 700;
}

/* ── Dark Mode ───────────────────────────────────────────────────────── */
[data-theme="dark"] {
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;

    --bg-body: #0c1222;
    --bg-surface: #1a2332;
    --bg-surface-hover: #1e293b;
    --bg-elevated: #1e293b;
    --bg-overlay: rgba(0, 0, 0, 0.7);

    --border-color: rgba(148, 163, 184, 0.12);
    --border-light: rgba(148, 163, 184, 0.08);

    --primary-subtle: rgba(37, 99, 235, 0.15);
    --secondary-subtle: rgba(245, 158, 11, 0.12);
    --accent-subtle: rgba(13, 148, 136, 0.12);
    --emerald-subtle: rgba(16, 185, 129, 0.12);
    --danger-subtle: rgba(239, 68, 68, 0.12);

    --grad-hero: linear-gradient(135deg, rgba(37,99,235,0.08) 0%, rgba(13,148,136,0.05) 50%, rgba(12,18,34,1) 100%);
    --grad-glass: linear-gradient(135deg, rgba(26,35,50,0.9) 0%, rgba(26,35,50,0.7) 100%);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.35), 0 2px 4px -1px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.35), 0 4px 6px -2px rgba(0,0,0,0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.35);
    --shadow-premium: 0 20px 40px -12px rgba(37, 99, 235, 0.25);

    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
}

[data-theme="dark"] .bg-white {
    background-color: var(--bg-surface) !important;
}

[data-theme="dark"] .bg-light {
    background-color: var(--bg-body) !important;
}

[data-theme="dark"] .text-dark {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .border-light {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .border-bottom {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .border {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background-color: var(--bg-elevated) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .table {
    --bs-table-bg: transparent !important;
    --bs-table-border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .table thead th {
    color: var(--text-muted) !important;
    background-color: transparent !important;
    border-bottom-color: var(--border-color) !important;
}

[data-theme="dark"] .table tbody tr td {
    color: var(--text-primary) !important;
    background-color: transparent !important;
    border-bottom-color: var(--border-color) !important;
}

[data-theme="dark"] .card,
[data-theme="dark"] .premium-card,
[data-theme="dark"] .academy-card,
[data-theme="dark"] .course-card,
[data-theme="dark"] .control-deck,
[data-theme="dark"] .dashboard-stat-card {
    background-color: var(--bg-surface) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .modal-content {
    background-color: var(--bg-elevated) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary);
}

[data-theme="dark"] .dropdown-menu {
    background-color: var(--bg-elevated) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .dropdown-item:hover {
    background-color: var(--bg-surface-hover) !important;
}

[data-theme="dark"] .navbar-premium {
    background: rgba(12, 18, 34, 0.92) !important;
    border-bottom-color: var(--border-color) !important;
}

[data-theme="dark"] .navbar-premium.scrolled {
    background: rgba(12, 18, 34, 0.97) !important;
}

[data-theme="dark"] .nav-link {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: var(--primary) !important;
}



[data-theme="dark"] .hero-section::before {
    opacity: 0.05;
}

[data-theme="dark"] .accordion-button {
    background-color: var(--bg-surface) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .accordion-body {
    background-color: var(--bg-surface) !important;
    color: var(--text-secondary);
}

[data-theme="dark"] .input-group-text {
    background-color: var(--bg-elevated) !important;
    border-color: var(--border-color) !important;
    color: var(--text-muted) !important;
}

[data-theme="dark"] footer.bg-dark {
    background-color: #060a13 !important;
}

/* ── Global Reset & Base ─────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-body);
    overflow-x: clip;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

a {
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background-color: var(--primary);
    color: white;
}

/* ── Keyframe Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(100%); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

@keyframes pulse-slow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.05); opacity: 0.9; }
}

@keyframes pulse-ring {
    0%   { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.8); opacity: 0; }
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes ripple-effect {
    0%   { transform: scale(0); opacity: 0.5; }
    100% { transform: scale(4); opacity: 0; }
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounceIn {
    0%   { transform: scale(0.3); opacity: 0; }
    50%  { transform: scale(1.05); }
    70%  { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes draw-check {
    0%   { stroke-dashoffset: 100; }
    100% { stroke-dashoffset: 0; }
}

@keyframes progress-bar {
    from { width: 100%; }
    to   { width: 0%; }
}

@keyframes bell-bounce {
    0%, 100% { transform: rotate(0); }
    10%      { transform: rotate(14deg); }
    20%      { transform: rotate(-8deg); }
    30%      { transform: rotate(6deg); }
    40%      { transform: rotate(-4deg); }
    50%      { transform: rotate(2deg); }
    60%      { transform: rotate(0); }
}

@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float-shape {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25%      { transform: translate(10px, -15px) rotate(5deg); }
    50%      { transform: translate(-5px, -25px) rotate(-3deg); }
    75%      { transform: translate(-15px, -10px) rotate(3deg); }
}

/* ── Animation Utility Classes ───────────────────────────────────────── */
.animate-fade-in-up {
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse-slow 2s ease-in-out infinite;
}

.animate-bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.animate-bell {
    animation: bell-bounce 1s ease-in-out;
}

/* Scroll-triggered reveal */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate="fade-in-left"] {
    transform: translateX(-30px);
}

[data-animate="fade-in-right"] {
    transform: translateX(30px);
}

[data-animate="scale-in"] {
    transform: scale(0.9);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Legacy .reveal support */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── Premium Navigation Bar ──────────────────────────────────────────── */
.navbar-premium {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    padding: 14px 0;
    z-index: 1030 !important;
}

.navbar-premium.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
    border-bottom-color: transparent;
}

.navbar-brand {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    text-decoration: none !important;
}

.navbar-brand .brand-accent {
    color: var(--primary);
}

/* ── Logo Styling & Theme Inversion ─────────────────────────────────── */
.navbar-logo {
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.navbar-brand .navbar-logo {
    height: 85px;
}

.portal-sidebar-brand .navbar-logo {
    height: 80px;
    filter: brightness(0) invert(1);
}

.auth-visual .navbar-logo {
    height: 64px;
    filter: brightness(0) invert(1);
}

.navbar-logo-mobile {
    height: 40px;
}

.logo-dark {
    display: none !important;
}

[data-theme="dark"] .logo-light {
    display: none !important;
}

[data-theme="dark"] .logo-dark {
    display: inline-block !important;
}

.nav-link {
    font-weight: 600;
    color: var(--text-secondary) !important;
    font-size: 17px;
    padding: 8px 16px !important;
    position: relative;
    transition: var(--transition-fast);
    border-radius: var(--radius-sm);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2.5px;
    bottom: 2px;
    left: 50%;
    background: var(--grad-primary);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
    border-radius: var(--radius-full);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link.active {
    color: var(--primary) !important;
    font-weight: 700;
}

/* Dark mode toggle button */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 20px;
    padding: 0;
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-subtle);
    transform: rotate(15deg);
}

/* User Avatar Dropdown */
.user-avatar-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--grad-primary);
    color: white;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.user-avatar-btn:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-glow);
}

.user-dropdown {
    min-width: 220px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    background: var(--bg-elevated);
    backdrop-filter: blur(20px);
}

.user-dropdown .dropdown-item {
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition-fast);
}

.user-dropdown .dropdown-item:hover {
    background: var(--primary-subtle);
    color: var(--primary);
}

.user-dropdown .dropdown-item i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* Mobile Hamburger Animation */
.navbar-toggler {
    border: none !important;
    padding: 8px;
    outline: none !important;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler-icon {
    transition: var(--transition-smooth);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

/* Ripple effect container */
.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    animation: ripple-effect 0.6s linear;
    pointer-events: none;
}

.btn-premium {
    background: var(--grad-primary);
    color: white !important;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    letter-spacing: 0.01em;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px var(--primary-glow);
    filter: brightness(1.05);
}

.btn-premium:active {
    transform: translateY(0);
}

.btn-premium:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

.btn-premium-outline {
    background: transparent;
    color: var(--primary) !important;
    border: 2px solid var(--primary);
    padding: 10px 26px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-premium-outline:hover {
    background: var(--primary);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px var(--primary-glow);
}

.btn-danger-premium-outline {
    background: transparent;
    color: var(--danger) !important;
    border: 2px solid var(--danger);
    padding: 10px 26px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-danger-premium-outline:hover {
    background: var(--danger);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.4);
}

.btn-secondary-premium {
    background: var(--grad-secondary);
    color: white !important;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.btn-secondary-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.35);
    filter: brightness(1.05);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--primary);
}

/* Loading state */
.btn-loading {
    pointer-events: none;
    opacity: 0.85;
}

.btn-loading .btn-text {
    visibility: hidden;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
}

/* ── Hero Section ────────────────────────────────────────────────────── */
.hero-section {
    background: var(--grad-hero);
    padding: 160px 0 100px 0;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/home_hero_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    z-index: 1;
    pointer-events: none;
    transition: var(--transition-smooth);
}



.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.12;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-title span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Cards ────────────────────────────────────────────────────────────── */
.premium-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.premium-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-premium);
}

.academy-card {
    position: relative;
    background: var(--bg-surface);
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    height: 100%;
}

.academy-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(37, 99, 235, 0.2);
}

.academy-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.academy-card:hover .academy-icon {
    transform: scale(1.1);
}

/* Card glow accent lines */
.glow-card {
    position: relative;
    overflow: hidden;
}

.glow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--grad-primary);
    z-index: 1;
}

.glow-card-secondary::before {
    background: var(--grad-secondary);
}

.glow-card-accent::before {
    background: linear-gradient(135deg, var(--accent) 0%, var(--emerald) 100%);
}

.glow-card-danger::before {
    background: linear-gradient(135deg, var(--danger) 0%, #b91c1c 100%);
}

.glow-card-success::before {
    background: linear-gradient(135deg, var(--emerald) 0%, #047857 100%);
}

/* ── Stat Icon ───────────────────────────────────────────────────────── */
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: var(--transition-smooth);
}

/* ── Parallax Banner ─────────────────────────────────────────────────── */
.parallax-banner {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 100px 0;
    position: relative;
    color: white;
}

.parallax-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(37, 99, 235, 0.7) 100%);
    z-index: 1;
}

.parallax-banner .container {
    position: relative;
    z-index: 2;
}

/* CSS-only gradient banner (replaces external image dependency) */
.gradient-banner {
    padding: 100px 0;
    position: relative;
    color: white;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #2563EB 70%, #0d9488 100%);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
    overflow: hidden;
}

.gradient-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.gradient-banner .container {
    position: relative;
    z-index: 2;
}

/* ── Subpage Header (Used on About, Courses, etc.) ───────────────────── */
.subpage-header {
    background: #ffffff !important;
    padding-top: 140px !important;
    padding-bottom: 60px !important;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: var(--primary);
}


/* ── Badge Tints ─────────────────────────────────────────────────────── */
.badge-tint-primary {
    background-color: var(--primary-subtle) !important;
    color: var(--primary) !important;
}

.badge-tint-secondary {
    background-color: var(--secondary-subtle) !important;
    color: var(--secondary) !important;
}

.badge-tint-accent {
    background-color: var(--accent-subtle) !important;
    color: var(--accent) !important;
}

.badge-tint-danger {
    background-color: var(--danger-subtle) !important;
    color: var(--danger) !important;
}

.badge-tint-success {
    background-color: var(--emerald-subtle) !important;
    color: var(--emerald) !important;
}

/* ── Form Controls ───────────────────────────────────────────────────── */
.premium-form-control {
    border: 1.5px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    background-color: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    transition: var(--transition-smooth) !important;
    font-size: 17px;
    padding: 10px 16px;
}

.premium-form-control:focus {
    background-color: var(--bg-surface) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--primary-subtle) !important;
    outline: none;
}

.premium-form-control::placeholder {
    color: var(--gray-400);
}

/* Floating Label */
.form-floating-premium {
    position: relative;
}

.form-floating-premium label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 17px;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-smooth);
    background: transparent;
    padding: 0 4px;
}

.form-floating-premium input:focus ~ label,
.form-floating-premium input:not(:placeholder-shown) ~ label {
    top: 0;
    font-size: 14px;
    color: var(--primary);
    background: var(--bg-surface);
    font-weight: 600;
}

/* Custom Select Arrow */
select.premium-form-control {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23475569' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 16px 12px !important;
    padding-right: 2.5rem !important;
}

/* Input Group Addon */
.input-group-text-premium {
    background: var(--bg-surface) !important;
    border: 1.5px solid var(--border-color) !important;
    border-right: none !important;
    color: var(--text-muted) !important;
    border-radius: var(--radius-md) 0 0 var(--radius-md) !important;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    z-index: 5;
    transition: var(--transition-fast);
}

.password-toggle:hover {
    color: var(--primary);
}

/* ── File Upload Widget ──────────────────────────────────────────────── */
.file-uploader-box {
    border: 2px dashed var(--gray-300) !important;
    background-color: var(--bg-surface);
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    cursor: pointer;
    padding: 40px 24px;
    text-align: center;
    position: relative;
}

.file-uploader-box:hover,
.file-uploader-box.drag-over {
    border-color: var(--primary) !important;
    background-color: var(--primary-subtle) !important;
    transform: scale(1.01);
}

.file-uploader-box input[type="file"] {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-progress-bar {
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--gray-200);
    overflow: hidden;
    margin-top: 16px;
}

.upload-progress-bar .progress-fill {
    height: 100%;
    background: var(--grad-primary);
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* Upload success checkmark */
.upload-success-check {
    width: 60px;
    height: 60px;
}

.upload-success-check .check-path {
    stroke: var(--emerald);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-check 0.5s ease forwards 0.3s;
}

.upload-success-check .circle-path {
    stroke: var(--emerald);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: draw-check 0.6s ease forwards;
}

/* ── Accordion ───────────────────────────────────────────────────────── */
.accordion-item.border-light {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: var(--transition-smooth);
}

.accordion-item.border-light:hover {
    border-color: rgba(37, 99, 235, 0.25) !important;
    box-shadow: var(--shadow-md);
}

.accordion-button {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    padding: 20px 24px;
    background: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    box-shadow: none !important;
    border: none !important;
    transition: var(--transition-smooth);
}

.accordion-button:not(.collapsed) {
    color: var(--primary) !important;
    background: var(--primary-subtle) !important;
    border-bottom: 1px solid var(--border-light) !important;
}

.accordion-button::after {
    transition: var(--transition-smooth);
    filter: grayscale(1) opacity(0.5);
}

.accordion-button:not(.collapsed)::after {
    filter: none;
    transform: rotate(-180deg);
}

.accordion-body {
    background: var(--bg-surface);
    padding: 24px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── Tables ──────────────────────────────────────────────────────────── */
.table {
    color: var(--text-primary);
}

.table thead th {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-color);
    padding: 14px 16px;
}

.table tbody tr {
    transition: var(--transition-fast);
}

.table tbody tr:hover {
    background-color: var(--primary-subtle);
}

/* Striped rows */
.table-premium-striped tbody tr:nth-child(even) {
    background-color: var(--gray-50);
}

[data-theme="dark"] .table-premium-striped tbody tr:nth-child(even) {
    background-color: rgba(255,255,255,0.02);
}

/* ── Modals ───────────────────────────────────────────────────────────── */
.modal-content {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    transform: scale(0.95);
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: scale(1);
    opacity: 1;
}

/* Mobile: slide up */
@media (max-width: 575.98px) {
    .modal-dialog:not(.modal-dialog-centered) {
        margin: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
    }

    .modal-dialog:not(.modal-dialog-centered) .modal-content {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: var(--radius-xl);
        border-top-right-radius: var(--radius-xl);
    }

    .modal.fade .modal-dialog:not(.modal-dialog-centered) {
        transform: translateY(100%);
    }

    .modal.show .modal-dialog:not(.modal-dialog-centered) {
        transform: translateY(0);
    }
}

.modal-backdrop {
    backdrop-filter: blur(4px);
}

.modal-header {
    border-bottom: 1px solid var(--border-light);
    padding: 20px 24px;
}

.modal-footer {
    border-top: 1px solid var(--border-light);
    padding: 16px 24px;
}

.modal-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

/* ── Toast Notifications ─────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-notification {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 16px 20px;
    min-width: 320px;
    max-width: 420px;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: all;
    position: relative;
    overflow: hidden;
}

.toast-notification.toast-exiting {
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) reverse forwards;
}

.toast-notification .toast-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.toast-notification.toast-success .toast-icon {
    background: var(--emerald-subtle);
    color: var(--emerald);
}

.toast-notification.toast-danger .toast-icon {
    background: var(--danger-subtle);
    color: var(--danger);
}

.toast-notification.toast-warning .toast-icon {
    background: var(--secondary-subtle);
    color: var(--secondary);
}

.toast-notification.toast-info .toast-icon {
    background: var(--primary-subtle);
    color: var(--primary);
}

.toast-notification .toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    animation: progress-bar var(--toast-duration, 4s) linear forwards;
}

.toast-success .toast-progress { background: var(--emerald); }
.toast-danger .toast-progress  { background: var(--danger); }
.toast-warning .toast-progress { background: var(--secondary); }
.toast-info .toast-progress    { background: var(--primary); }

/* ── Skeleton Loaders ────────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--gray-200) 25%,
        var(--gray-100) 50%,
        var(--gray-200) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

[data-theme="dark"] .skeleton {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.05) 25%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.05) 75%
    );
    background-size: 200% 100%;
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    width: 100%;
}

.skeleton-text.w-75 { width: 75%; }
.skeleton-text.w-50 { width: 50%; }
.skeleton-text.w-25 { width: 25%; }

.skeleton-heading {
    height: 24px;
    margin-bottom: 16px;
    width: 60%;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
}

.skeleton-card {
    height: 200px;
    border-radius: var(--radius-lg);
}

.skeleton-btn {
    height: 44px;
    width: 140px;
    border-radius: var(--radius-md);
}

/* ── Floating WhatsApp Widget ────────────────────────────────────────── */
.whatsapp-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: var(--z-whatsapp);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background-color: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 30px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none !important;
    position: relative;
}

/* Pulse ring animation */
.whatsapp-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    background-color: #25d366;
    animation: pulse-ring 2s ease-out infinite;
    z-index: -1;
}

.whatsapp-button:hover {
    transform: scale(1.08);
    background-color: #20ba5a;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

.whatsapp-chat-box {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 340px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--bg-surface);
    display: none;
    transform-origin: bottom right;
    animation: scaleIn 0.3s ease forwards;
}

.whatsapp-chat-box.show {
    display: block !important;
}

.whatsapp-header {
    background: #075e54;
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.whatsapp-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    background: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-body {
    padding: 20px;
    background: #ece5dd;
    max-height: 250px;
    overflow-y: auto;
}

[data-theme="dark"] .whatsapp-body {
    background: #1a2332;
}

.whatsapp-message {
    background: white;
    padding: 12px 16px;
    border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
    font-size: 16px;
    box-shadow: var(--shadow-xs);
    margin-bottom: 5px;
    line-height: 1.5;
}

[data-theme="dark"] .whatsapp-message {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.whatsapp-footer {
    padding: 12px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
}

.whatsapp-input-btn {
    width: 100%;
    background: #25d366;
    color: white;
    border: none;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none !important;
    transition: var(--transition-fast);
}

.whatsapp-input-btn:hover {
    background: #20ba5a;
    color: white;
}

/* ── Back to Top Button ──────────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    opacity: 0;
    visibility: hidden;
    z-index: var(--z-sticky);
    font-size: 20px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -5px var(--primary-glow);
}

/* ── Footer Hover Link ───────────────────────────────────────────────── */
.hover-link {
    transition: var(--transition-fast);
}

.hover-link:hover {
    color: var(--secondary) !important;
    text-decoration: underline !important;
    padding-left: 4px;
}

/* ── Portal Layout (Student & Admin Sidebar) ─────────────────────────── */
.portal-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-body);
    padding-top: 0px;
}

.portal-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--grad-dark);
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: var(--z-fixed);
    overflow-y: auto;
}

.portal-sidebar-brand {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-sidebar-profile {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.portal-sidebar-nav {
    flex-grow: 1;
    padding: 16px;
}

.portal-sidebar-link {
    display: flex;
    align-items: center;
    padding: 11px 16px;
    color: rgba(255, 255, 255, 0.65) !important;
    text-decoration: none !important;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 16.5px;
    transition: var(--transition-fast);
    margin-bottom: 4px;
}

.portal-sidebar-link i {
    font-size: 20px;
    margin-right: 12px;
    transition: var(--transition-fast);
    width: 22px;
    text-align: center;
}

.portal-sidebar-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06);
}

.portal-sidebar-link.active {
    color: #fff !important;
    background: var(--grad-primary);
    box-shadow: 0 4px 12px -2px var(--primary-glow);
}

.portal-sidebar-link.active i {
    color: #fff !important;
}

.portal-content {
    flex-grow: 1;
    min-width: 0;
    padding: 36px;
    overflow-y: auto;
}

/* Legacy dashboard layout (for admin pages not yet using portal pattern) */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--grad-dark);
    color: white;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar .nav-link-db {
    color: rgba(255,255,255,0.65);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
    font-weight: 500;
    font-size: 16.5px;
    transition: var(--transition-fast);
    border-radius: 0;
    margin: 0 12px;
    border-radius: var(--radius-sm);
}

.sidebar .nav-link-db:hover,
.sidebar .nav-link-db.active {
    color: white;
    background: var(--grad-primary);
}

.sidebar .nav-link-db .badge {
    margin-left: auto;
}

.dashboard-content {
    flex-grow: 1;
    background: var(--bg-body);
    padding: 36px;
}

.dashboard-stat-card {
    background: var(--bg-surface);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
    transition: var(--transition-smooth);
}

.dashboard-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Dashboard stat card border colour variants */
.dashboard-stat-card.border-primary { border-left-color: var(--primary); }
.dashboard-stat-card.border-success { border-left-color: var(--emerald); }
.dashboard-stat-card.border-danger  { border-left-color: var(--danger); }
.dashboard-stat-card.border-warning { border-left-color: var(--secondary); }

/* Glassmorphism Panel */
.glass-panel {
    background: var(--grad-glass);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 24px;
}

[data-theme="dark"] .glass-panel {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.06);
}

/* Mobile Sidebar Toggle */
.portal-sidebar-toggler {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--grad-primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-lg);
    z-index: calc(var(--z-fixed) + 1);
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.portal-sidebar-toggler:hover {
    transform: scale(1.08);
}

/* Sidebar Overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-overlay);
    z-index: calc(var(--z-fixed) - 1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    display: block;
    opacity: 1;
}

/* ── Control Deck (Filter Panels) ────────────────────────────────────── */
.control-deck {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 24px;
}

/* ── Filter Tags ─────────────────────────────────────────────────────── */
.filter-tag {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--text-primary) !important;
    background-color: var(--gray-100) !important;
    border: 1px solid var(--border-color) !important;
    transition: var(--transition-smooth) !important;
    text-decoration: none !important;
}

.filter-tag:hover {
    background-color: var(--primary-subtle) !important;
    color: var(--primary) !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
    transform: translateY(-1px);
}

.filter-tag.active {
    background: var(--grad-primary) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px -2px var(--primary-glow) !important;
}

.filter-tag.active:hover {
    box-shadow: 0 6px 16px -2px var(--primary-glow) !important;
    transform: translateY(-1px);
}

.filter-tag i {
    transition: var(--transition-fast);
}

.filter-tag:hover i {
    transform: translateX(3px);
}

/* ── Course Cards ────────────────────────────────────────────────────── */
.course-card {
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    border-radius: var(--radius-lg) !important;
    background: var(--bg-surface);
    box-shadow: var(--shadow-sm) !important;
    transition: var(--transition-smooth) !important;
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--grad-primary);
    opacity: 0.85;
    transition: var(--transition-smooth);
}

/* Academy theme accent lines */
.course-card.theme-primary::before { background: var(--grad-primary); }
.course-card.theme-secondary::before { background: var(--grad-secondary); }
.course-card.theme-accent::before { background: linear-gradient(135deg, var(--accent) 0%, var(--emerald) 100%); }
.course-card.theme-danger::before { background: linear-gradient(135deg, var(--danger) 0%, #b91c1c 100%); }
.course-card.theme-success::before { background: linear-gradient(135deg, var(--emerald) 0%, #047857 100%); }

.course-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--shadow-xl) !important;
    border-color: rgba(37, 99, 235, 0.15) !important;
}

.course-card.theme-primary:hover {
    box-shadow: 0 20px 35px -10px rgba(37, 99, 235, 0.12), 0 10px 15px -5px rgba(37, 99, 235, 0.06) !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
}

.course-card.theme-secondary:hover {
    box-shadow: 0 20px 35px -10px rgba(245, 158, 11, 0.12), 0 10px 15px -5px rgba(245, 158, 11, 0.06) !important;
    border-color: rgba(245, 158, 11, 0.2) !important;
}

.course-card.theme-accent:hover {
    box-shadow: 0 20px 35px -10px rgba(13, 148, 136, 0.12), 0 10px 15px -5px rgba(13, 148, 136, 0.06) !important;
    border-color: rgba(13, 148, 136, 0.2) !important;
}

.course-card.theme-danger:hover {
    box-shadow: 0 20px 35px -10px rgba(239, 68, 68, 0.12), 0 10px 15px -5px rgba(239, 68, 68, 0.06) !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
}

.course-card.theme-success:hover {
    box-shadow: 0 20px 35px -10px rgba(16, 185, 129, 0.12), 0 10px 15px -5px rgba(16, 185, 129, 0.06) !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
}

.course-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 20px;
    line-height: 1.4;
    margin-top: 8px;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 50px;
}

.course-description {
    font-size: 15.5px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 66px;
}

.course-meta-divider {
    border-top: 1px dashed var(--border-light) !important;
    margin: 16px 0;
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.course-meta-item i {
    font-size: 16px;
    color: var(--primary);
    opacity: 0.85;
}

.course-price {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: var(--text-primary);
    font-size: 22px;
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.course-btn-detail {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15.5px;
    padding: 10px 18px !important;
    border-radius: var(--radius-md) !important;
    transition: var(--transition-smooth);
}

/* ── Instructor Card ─────────────────────────────────────────────────── */
.instructor-card img {
    height: 320px;
    object-fit: cover;
    border-bottom: 4px solid var(--primary);
    transition: var(--transition-smooth);
}

.instructor-card:hover img {
    transform: scale(1.03);
}

.instructor-social-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
    display: flex;
    gap: 8px;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.instructor-card:hover .instructor-social-overlay {
    opacity: 1;
}

/* ── Meeting Card ────────────────────────────────────────────────────── */
.meeting-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.meeting-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.meeting-header {
    background: var(--grad-primary);
    color: white;
    padding: 18px 24px;
}

.meeting-body {
    padding: 24px;
}

/* Countdown timer */
.countdown-timer {
    display: inline-flex;
    gap: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
}

.countdown-timer .unit {
    background: var(--primary-subtle);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    min-width: 32px;
    text-align: center;
}

/* Join Now button pulse when active */
.btn-join-active {
    animation: pulse-slow 1.5s ease-in-out infinite;
    background: var(--emerald) !important;
    color: white !important;
    border-color: var(--emerald) !important;
}

/* ── Glass Ticket ────────────────────────────────────────────────────── */
.glass-ticket {
    background: var(--grad-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* ── Confetti Effect (Admin approval) ────────────────────────────────── */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    opacity: 0;
}

/* ── Auth Pages (Login / Register Split Screen) ──────────────────────── */
.auth-split {
    display: flex;
    min-height: 100vh;
}

.auth-visual {
    flex: 1;
    background: #ffffff url('../images/index_hero_image.jpg') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-visual::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

.auth-visual .floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    animation: float-shape 15s ease-in-out infinite;
    z-index: 1;
}

.auth-visual .shape-1 {
    width: 300px; height: 300px;
    background: var(--primary);
    top: 10%; left: 10%;
}

.auth-visual .shape-2 {
    width: 200px; height: 200px;
    background: var(--accent);
    bottom: 20%; right: 15%;
    animation-delay: 5s;
}

.auth-visual .shape-3 {
    width: 150px; height: 150px;
    background: var(--secondary);
    top: 50%; left: 60%;
    animation-delay: 10s;
}

.auth-visual-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 40px;
    padding-top: 100px;
    max-width: 480px;
}

.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    padding-top: 100px;
    background: var(--bg-body);
}

.auth-form-container {
    width: 100%;
    max-width: 440px;
}

@media (max-width: 991.98px) {
    .auth-split {
        flex-direction: column;
    }

    .auth-visual {
        min-height: 250px;
        flex: none;
    }

    .auth-form-side {
        padding: 32px 24px;
    }
}

/* ── Side Sheet (Student profile in admin) ───────────────────────────── */
.side-sheet-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-overlay);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

.side-sheet-backdrop.show {
    display: block;
    opacity: 1;
}

.side-sheet {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-surface);
    box-shadow: var(--shadow-xl);
    z-index: var(--z-modal);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-left: 1px solid var(--border-color);
}

.side-sheet.show {
    right: 0;
}

.side-sheet-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--bg-surface);
    z-index: 1;
}

.side-sheet-body {
    padding: 24px;
}

/* ── Timeline Component ──────────────────────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--grad-primary);
    border-radius: var(--radius-full);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    padding-left: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    background: var(--primary);
    border: 3px solid var(--bg-body);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.timeline-item .timeline-date {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.timeline-item .timeline-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-xs);
}

/* ── Sticky Table of Contents (Privacy page) ─────────────────────────── */
.sticky-toc {
    position: sticky;
    top: 100px;
}

.toc-link {
    display: block;
    padding: 8px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-left: 2px solid var(--border-color);
    transition: var(--transition-fast);
}

.toc-link:hover,
.toc-link.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: var(--primary-subtle);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ── Testimonials Carousel ───────────────────────────────────────────── */
.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 24px;
}

.testimonial-card {
    min-width: 350px;
    max-width: 350px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.testimonial-card .stars {
    color: var(--secondary);
    font-size: 18px;
    margin-bottom: 16px;
}

.testimonial-card blockquote {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--gray-300);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
}

.testimonial-dot.active {
    width: 28px;
    background: var(--primary);
}

/* ── Count-Up Stats ──────────────────────────────────────────────────── */
.count-up {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 130px 0 70px 0;
        min-height: auto;
    }

    .hero-title {
        font-size: 38px;
    }

    /* Portal sidebar mobile */
    .portal-container {
        flex-direction: column;
    }

    .portal-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        height: 100vh;
        box-shadow: var(--shadow-xl);
    }

    .portal-sidebar.show {
        left: 0;
    }

    .portal-content {
        padding: 24px;
        padding-top: 24px !important;
    }

    .portal-sidebar-toggler {
        display: flex;
    }

    /* Legacy dashboard layout */
    .dashboard-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .dashboard-content {
        padding: 20px;
    }

    /* Testimonials */
    .testimonial-card {
        min-width: 280px;
        max-width: 280px;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 32px;
    }

    h1 { font-size: 30px; }
    h2 { font-size: 26px; }

    .portal-content {
        padding: 16px;
    }

    .dashboard-content {
        padding: 16px;
    }

    /* Tables to cards on mobile */
    .table-responsive-cards .table thead {
        display: none;
    }

    .table-responsive-cards .table tbody tr {
        display: block;
        margin-bottom: 16px;
        background: var(--bg-surface);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 16px;
        box-shadow: var(--shadow-xs);
    }

    .table-responsive-cards .table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border: none;
    }

    .table-responsive-cards .table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 15px;
        color: var(--text-muted);
        margin-right: 16px;
    }

    /* WhatsApp widget smaller on mobile */
    .whatsapp-widget {
        bottom: 16px;
        right: 16px;
    }

    .whatsapp-button {
        width: 52px;
        height: 52px;
        font-size: 26px;
    }

    .whatsapp-chat-box {
        width: calc(100vw - 32px);
        right: 0;
    }

    /* Toast full width on mobile */
    .toast-container {
        left: 16px;
        right: 16px;
    }

    .toast-notification {
        min-width: auto;
        max-width: none;
    }
}

/* ── Print Styles ────────────────────────────────────────────────────── */
@media print {
    .navbar-premium,
    .whatsapp-widget,
    .back-to-top,
    .portal-sidebar,
    .sidebar,
    .portal-sidebar-toggler,
    .toast-container,
    .btn-premium,
    .btn-premium-outline,
    .btn-danger-premium-outline {
        display: none !important;
    }

    .portal-content,
    .dashboard-content {
        padding: 0 !important;
    }

    body {
        background: white !important;
        color: #000 !important;
    }

    .premium-card,
    .academy-card,
    .course-card {
        box-shadow: none !important;
        break-inside: avoid;
    }
}

/* ── Utility Helpers ─────────────────────────────────────────────────── */
.fw-extrabold { font-weight: 800 !important; }
.tracking-wider { letter-spacing: 0.05em; }
.font-weight-bold { font-weight: 700 !important; }
.font-weight-extrabold { font-weight: 800 !important; }
.shadow-premium { box-shadow: var(--shadow-premium) !important; }
.shadow-xs { box-shadow: var(--shadow-xs) !important; }
.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Smooth transition for all interactive elements */
button, a, input, select, textarea, .card, .badge {
    transition: var(--transition-fast);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Ensure touch targets on mobile */
@media (max-width: 767.98px) {
    .btn, .nav-link, .filter-tag, .portal-sidebar-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* ── Bootstrap Input Group & Password Toggle overrides ── */
.input-group > .premium-form-control {
    border-radius: var(--radius-md) !important;
}

.input-group > .premium-form-control:not(:first-child) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.input-group:not(:has(.password-toggle)) > .premium-form-control:not(:last-child) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group > .input-group-text-premium {
    border-radius: var(--radius-md) 0 0 var(--radius-md) !important;
    border-right: none !important;
}

.input-group > .btn:last-child {
    border-top-right-radius: var(--radius-md) !important;
    border-bottom-right-radius: var(--radius-md) !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.input-group > .btn:first-child {
    border-top-left-radius: var(--radius-md) !important;
    border-bottom-left-radius: var(--radius-md) !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}


/* ── Student Dashboard Navigation Card Styles ── */
.student-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16.5px;
    transition: var(--transition-fast);
    margin-bottom: 4px;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.student-nav-link i {
    font-size: 20px;
    margin-right: 12px;
    transition: var(--transition-fast);
    width: 22px;
    text-align: center;
    color: var(--text-muted);
}

.student-nav-link:hover {
    color: var(--primary) !important;
    background: var(--primary-subtle);
}

.student-nav-link:hover i {
    color: var(--primary);
}

.student-nav-link.active {
    color: #ffffff !important;
    background: var(--grad-primary);
    box-shadow: 0 4px 12px -2px var(--primary-glow);
}

.student-nav-link.active i {
    color: #ffffff !important;
}

[data-theme="dark"] .student-nav-link:not(.active):hover {
    background: rgba(37, 99, 235, 0.15);
}

/* ── Visual Bank Card Styling ── */
.bank-card {
    background: linear-gradient(135deg, #1e293b 0%, #0c1222 100%);
    border-radius: var(--radius-lg);
    color: white;
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

.bank-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.bank-card-chip {
    width: 42px;
    height: 32px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 6px;
    position: relative;
}

.bank-card-chip::after {
    content: '';
    position: absolute;
    top: 4px; left: 8px; right: 8px; bottom: 4px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
}

.hover-white:hover {
    color: #ffffff !important;
}

/* ── Payment History Receipt Slips ── */
.receipt-slip {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.receipt-slip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.receipt-slip.status-approved {
    border-left-color: var(--emerald);
}

.receipt-slip.status-pending {
    border-left-color: var(--secondary);
}

.receipt-slip.status-rejected {
    border-left-color: var(--danger);
}

/* ── Subpage Header with Background Patterns ────────────────────────── */
.subpage-header {
    position: relative;
    overflow: hidden;
    padding-top: 140px !important;
    padding-bottom: 60px !important;
    background: #ffffff !important;
}

.subpage-header .text-white {
    color: var(--primary) !important;
}

.subpage-header .text-white-50 {
    color: #4a5568 !important;
    opacity: 1 !important;
}

.subpage-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
    transition: var(--transition-smooth);
    filter: grayscale(100%);
}

#vanta-hero canvas {
    opacity: 0.3 !important;
}

.subpage-header-about::before {
    background-image: url('../images/about_hero_bg.png');
}

.subpage-header-courses::before {
    background-image: url('../images/courses_hero_bg.png');
}

.subpage-header-instructors::before {
    background-image: url('../images/instructors_hero_bg.png');
}

.subpage-header-support::before {
    background-image: url('../images/support_hero_bg.png');
}

.subpage-header-contact::before {
    background-image: url('../images/contact_hero_bg.png');
}

.subpage-header .container {
    position: relative;
    z-index: 2;
}

/* ── Admin Action Buttons Standardization ────────────────────────── */
.btn-admin-action {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
}

.btn-admin-action i {
    margin: 0 !important;
    font-size: 17px;
}

/* ── Top Announcement Bar & Responsive Spacing ───────────────────── */
.top-announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 38px;
    z-index: 1050;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
}
.navbar-premium {
    top: 38px !important;
    transition: top 0.3s ease;
}
.navbar-premium.scrolled {
    top: 38px !important;
}
body {
    /* padding-top: 131px !important; Removed to fix gap above navbar */
}
@media (max-width: 991.98px) {
    .top-announcement-bar {
        position: static;
        height: auto;
        padding: 8px 0;
    }
    .navbar-premium,
    .navbar-premium.scrolled {
        position: sticky !important;
        top: 0 !important;
    }
    body {
        padding-top: 0 !important;
    }
}

/* ── Core Values Timeline Design (Inspired by International Schooling) ── */
.timeline-section {
    position: relative;
    padding: 60px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
    transform: translateX(-50%);
    z-index: 1;
}

[data-theme="dark"] .timeline-line {
    background: rgba(148, 163, 184, 0.12);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    width: 100%;
}

.timeline-section .timeline-item::before {
    display: none;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Timeline dot */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background-color: var(--primary);
    border: 3px solid #ffffff;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

[data-theme="dark"] .timeline-dot {
    border-color: var(--bg-body);
}

/* Faint background number */
.timeline-number {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    font-size: clamp(60px, 8vw, 90px);
    font-weight: 900;
    color: rgba(139, 92, 246, 0.08); /* faint light purple */
    font-family: 'Inter', sans-serif;
    line-height: 1;
    user-select: none;
    z-index: 1;
}

/* Alternating sides */
.timeline-item.left-side {
    justify-content: flex-start;
}

.timeline-item.right-side {
    justify-content: flex-end;
}

.timeline-card-wrapper {
    width: calc(50% - 40px);
    z-index: 2;
}

.timeline-item.left-side .timeline-card-wrapper {
    padding-right: 20px;
}

.timeline-item.right-side .timeline-card-wrapper {
    padding-left: 20px;
}

/* Number positioning */
.timeline-item.left-side .timeline-number {
    right: 0;
    text-align: left;
    padding-left: 40px;
}

.timeline-item.right-side .timeline-number {
    left: 0;
    text-align: right;
    padding-right: 40px;
}

/* Card aesthetics */
.timeline-card {
    background-color: var(--bg-surface) !important;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.015);
    transition: var(--transition-smooth);
    position: relative;
}

[data-theme="dark"] .timeline-card {
    border-color: var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.15);
}

/* Icon container */
.timeline-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: rgba(139, 92, 246, 0.07);
    color: #6d28d9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

[data-theme="dark"] .timeline-card-icon {
    background-color: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.timeline-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #1e3a8a; /* Dark Blue */
    margin-bottom: 15px;
}

[data-theme="dark"] .timeline-card-title {
    color: #93c5fd;
}

.timeline-card-text {
    font-size: 16.5px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Responsiveness */
@media (max-width: 767.98px) {
    .timeline-line {
        left: 20px;
    }
    .timeline-dot {
        left: 20px;
        top: 30px;
    }
    .timeline-card-wrapper {
        width: calc(100% - 40px);
        margin-left: 40px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .timeline-item {
        margin-bottom: 40px;
    }
    .timeline-number {
        position: static;
        width: auto;
        display: block;
        transform: none;
        margin-bottom: 10px;
        text-align: left !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        font-size: 42px;
    }
    .timeline-item.left-side {
        justify-content: flex-start;
    }
    .timeline-item.right-side {
        justify-content: flex-start;
    }
}
