/* ==========================================================================
   MAHDI LMS & STUDENT PORTAL - ULTRA MODERN DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --lms-primary: #0ea8b6;
    --lms-primary-dark: #0b737d;
    --lms-primary-light: #e6f9fa;
    --lms-primary-glow: rgba(14, 168, 182, 0.35);

    --lms-secondary: #f59e0b;
    --lms-secondary-glow: rgba(245, 158, 11, 0.3);

    --lms-accent: #ff6b4a;
    --lms-accent-glow: rgba(255, 107, 74, 0.25);

    --lms-dark: #0d1e24;
    --lms-dark-surface: #142a32;
    --lms-dark-card: #1b353f;

    --lms-light: #f8fafb;
    --lms-light-surface: #ffffff;
    --lms-light-border: #e2e8f0;

    --lms-text-main: #13282e;
    --lms-text-muted: #5e737a;
    --lms-text-light: #f1f5f9;

    --lms-font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
    --lms-font-en: 'Plus Jakarta Sans', system-ui, sans-serif;

    --lms-radius-sm: 10px;
    --lms-radius-md: 16px;
    --lms-radius-lg: 24px;
    --lms-radius-xl: 32px;
    --lms-radius-full: 9999px;

    --lms-shadow-sm: 0 4px 12px rgba(13, 30, 36, 0.05);
    --lms-shadow-md: 0 10px 25px -5px rgba(13, 30, 36, 0.08), 0 8px 10px -6px rgba(13, 30, 36, 0.05);
    --lms-shadow-lg: 0 20px 35px -10px rgba(13, 30, 36, 0.12), 0 10px 15px -5px rgba(13, 30, 36, 0.06);
    --lms-shadow-xl: 0 25px 50px -12px rgba(13, 30, 36, 0.25);
    --lms-shadow-glow: 0 0 25px var(--lms-primary-glow);

    --lms-transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --lms-transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --lms-transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.lms-portal-body {
    font-family: var(--lms-font-ar);
    background-color: var(--lms-light);
    color: var(--lms-text-main);
    line-height: 1.65;
    overflow-x: hidden;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--lms-primary);
}

/* Selection */
::selection {
    background: var(--lms-primary);
    color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--lms-transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--lms-primary) 0%, #06b6d4 50%, var(--lms-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   HEADER - the brand bar
   --------------------------------------------------------------------------
   The same bar as the portal and the administrative navbar: steel #316888 with
   the school's cyan as its one accent. The colours are tokens in brand-bar.css;
   nothing here restates them.
   ========================================================================== */
.lms-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    background: var(--brand-bar-bg);
    box-shadow: var(--brand-bar-shadow);
    transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lms-navbar::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-bar-thread);
    box-shadow: var(--brand-bar-thread-glow);
    pointer-events: none;
}

.lms-navbar.scrolled {
    padding: 8px 0;
    box-shadow: var(--brand-bar-shadow-raised);
}

.lms-nav-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand Logo */
.lms-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lms-brand-logo-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: var(--lms-radius-md);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 3px rgb(6 187 204 / 35%), 0 6px 16px rgb(8 48 63 / 30%);
    overflow: hidden;
    transition: transform var(--lms-transition-normal), box-shadow var(--lms-transition-normal);
}

.lms-brand:hover .lms-brand-logo-wrap {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 0 0 3px var(--brand-bar-cyan), 0 8px 22px rgb(6 187 204 / 45%);
}

.lms-brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.lms-brand-text {
    display: flex;
    flex-direction: column;
}

.lms-brand-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff !important;
    line-height: 1.2;
    text-shadow: 0 1px 8px rgb(8 48 63 / 35%);
    letter-spacing: -0.2px;
}

.lms-brand-subtitle {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-bar-cyan-text) !important;
    letter-spacing: 0.5px;
}

/* Nav Menu Links */
.lms-nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.lms-nav-link {
    display: block;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-bar-text) !important;
    border-radius: var(--lms-radius-full);
    transition: var(--lms-transition-fast);
    position: relative;
}

.lms-nav-link:hover {
    color: #ffffff !important;
    background: var(--brand-bar-glass-hover);
}

.lms-nav-link.active {
    color: var(--brand-bar-ink) !important;
    background: var(--brand-bar-cyan);
    box-shadow: var(--brand-bar-active-shadow);
    font-weight: 800;
}

/* Nav Actions */
.lms-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* White on the steel, so the one action in the bar is the brightest thing in it; it turns
   cyan under the pointer, the colour of the link that is active. */
.btn-lms-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    background: #ffffff;
    color: var(--brand-bar-steel) !important;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: var(--lms-radius-full);
    border: 0;
    box-shadow: 0 6px 18px rgb(8 48 63 / 28%);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--lms-transition-fast);
}

.btn-lms-login:hover,
.btn-lms-login:focus-visible {
    transform: translateY(-2px);
    background: var(--brand-bar-cyan);
    color: var(--brand-bar-ink) !important;
    box-shadow: 0 10px 26px rgb(6 187 204 / 45%);
}

.btn-lms-login i {
    font-size: 1.2rem;
}

.lms-navbar :focus-visible {
    outline: 3px solid var(--brand-bar-cyan-text);
    outline-offset: 3px;
}

.lms-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #ffffff !important;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION & DYNAMIC BANNER
   ========================================================================== */
.lms-hero {
    position: relative;
    padding-top: 74px;
    min-height: 640px;
    background: linear-gradient(180deg, var(--brand-bar-steel-deeper) 0%, #163749 100%);
    color: #ffffff;
    overflow: hidden;
}

.lms-hero-slider-container {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.lms-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1);
    transition: opacity 0.6s ease, visibility 0.6s;
}

.lms-hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.lms-hero-slide.active .lms-hero-title {
    animation: heroTitleAssemble 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lms-hero-slide.active .lms-hero-desc {
    animation: heroDescAssemble 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.lms-hero-slide.active .lms-hero-actions {
    animation: heroActionsAssemble 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes heroTitleAssemble {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.96);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

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

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

/* 3D Shatter Stage & Shards */
.lms-shatter-stage {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    perspective: 1200px;
    transform-style: preserve-3d;
    overflow: hidden;
}

.lms-shatter-shard {
    position: absolute;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    opacity: 0;
    transform: translate3d(var(--scatter-x), var(--scatter-y), var(--scatter-z)) 
               rotateX(var(--scatter-rx)) rotateY(var(--scatter-ry)) rotateZ(var(--scatter-rz)) scale(0.6);
}

.lms-shatter-active .lms-shatter-shard {
    animation: lmsShardAssemble 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lmsShardAssemble {
    0% {
        opacity: 0;
        transform: translate3d(var(--scatter-x), var(--scatter-y), var(--scatter-z)) 
                   rotateX(var(--scatter-rx)) rotateY(var(--scatter-ry)) rotateZ(var(--scatter-rz)) scale(0.6);
        box-shadow: 0 0 20px rgba(78, 231, 243, 0.6);
        outline: 1px solid rgba(78, 231, 243, 0.4);
    }
    40% {
        opacity: 0.95;
    }
    85% {
        outline-color: rgba(78, 231, 243, 0.15);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) rotateX(0) rotateY(0) rotateZ(0) scale(1);
        box-shadow: none;
        outline-color: transparent;
    }
}

.lms-shard-inner {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.lms-shard-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(28 67 89 / 90%) 0%, rgb(28 67 89 / 62%) 50%, rgb(28 67 89 / 30%) 100%);
    pointer-events: none;
}

.lms-hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.lms-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(28 67 89 / 90%) 0%, rgb(28 67 89 / 62%) 50%, rgb(28 67 89 / 30%) 100%);
    pointer-events: none;
}

.lms-hero-content {
    position: relative;
    z-index: 10;
    transform: translateZ(80px);
    max-width: 1380px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

.lms-hero-text-wrap {
    max-width: 680px;
}

.lms-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(14, 168, 182, 0.2);
    border: 1px solid rgba(14, 168, 182, 0.4);
    border-radius: var(--lms-radius-full);
    color: #4ee7f3;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 18px;
    backdrop-filter: blur(8px);
}

.lms-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ee7f3;
    box-shadow: 0 0 10px #4ee7f3;
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
        box-shadow: 0 0 15px #4ee7f3;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.7;
    }
}

.lms-hero-title {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 16px;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.lms-hero-desc {
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    color: #cbd5e1;
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 28px;
}

.lms-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    background: linear-gradient(135deg, #0ea8b6 0%, #0b737d 100%);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--lms-radius-full);
    box-shadow: 0 8px 25px rgba(14, 168, 182, 0.45);
    transition: all var(--lms-transition-normal);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(14, 168, 182, 0.6);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--lms-radius-full);
    backdrop-filter: blur(10px);
    transition: all var(--lms-transition-normal);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-3px);
}

/* Slider Controls */
.lms-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(13, 30, 36, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.4rem;
    backdrop-filter: blur(8px);
    transition: all var(--lms-transition-fast);
}

.lms-slider-btn:hover {
    background: var(--lms-primary);
    border-color: var(--lms-primary);
    transform: translateY(-50%) scale(1.1);
}

.lms-slider-btn.prev {
    right: 24px;
}

.lms-slider-btn.next {
    left: 24px;
}

.lms-slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.lms-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: all var(--lms-transition-fast);
}

.lms-slider-dot.active {
    width: 32px;
    border-radius: 10px;
    background: var(--lms-primary);
    box-shadow: 0 0 10px var(--lms-primary);
}

/* ==========================================================================
   STATS BAR & METRICS HUB
   ========================================================================== */
.lms-stats-bar {
    position: relative;
    z-index: 20;
    margin-top: -45px;
    margin-bottom: -31px;
    background: white;
}

.lms-stats-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.lms-stats-card-grid {
    background: #ffffff;
    border-radius: var(--lms-radius-xl);
    padding: 30px 40px;
    box-shadow: var(--lms-shadow-xl);
    border: 1px solid rgba(14, 168, 182, 0.12);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.lms-stat-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px;
    border-inline-end: 1px solid #f1f5f9;
}

.lms-stat-item:last-child {
    border-inline-end: none;
}

.lms-stat-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: var(--lms-radius-lg);
    background: var(--lms-primary-light);
    color: var(--lms-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    flex-shrink: 0;
    transition: transform var(--lms-transition-normal);
}

.lms-stat-item:hover .lms-stat-icon-wrap {
    transform: scale(1.1) rotate(6deg);
}

.lms-stat-info {
    display: flex;
    flex-direction: column;
}

.lms-stat-number {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--lms-dark);
    line-height: 1.1;
    font-family: var(--lms-font-en);
}

.lms-stat-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--lms-text-muted);
}

/* ==========================================================================
   ROLE PORTALS HUB - 3D HOLOGRAPHIC CYBER PODS
   ========================================================================== */
.lms-portals-section {
    padding: 85px 0 105px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.lms-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 52px;
}

.lms-section-subtitle {
    display: inline-block;
    color: var(--lms-primary);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    background: rgba(14, 168, 182, 0.1);
    padding: 4px 16px;
    border-radius: var(--lms-radius-full);
}

.lms-section-title {
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    font-weight: 900;
    color: var(--lms-dark);
    margin-bottom: 12px;
}

.lms-section-desc {
    font-size: 1.05rem;
    color: var(--lms-text-muted);
    line-height: 1.7;
}

.lms-portals-grid {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.lms-portal-card {
    position: relative;
    background: #ffffff;
    border-radius: 28px;
    padding: 0;
    border: 1px solid rgba(14, 168, 182, 0.2);
    box-shadow: 0 14px 40px rgba(9, 38, 47, 0.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.lms-portal-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 26px 55px rgba(14, 168, 182, 0.22), 0 0 30px rgba(14, 168, 182, 0.12);
    border-color: rgba(14, 168, 182, 0.55);
}

/* Background Watermark Icon */
.lms-card-watermark {
    position: absolute;
    bottom: -10px;
    left: -10px;
    font-size: 9rem;
    color: var(--lms-primary);
    opacity: 0.04;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1;
    z-index: 1;
}

.lms-portal-card:hover .lms-card-watermark {
    transform: scale(1.15) rotate(-10deg);
    opacity: 0.08;
}

/* ==========================================================================
   FUTURISTIC 3D POD CANOPY HEADER
   ========================================================================== */
.lms-pod-canopy {
    position: relative;
    padding: 24px 24px 22px;
    background: linear-gradient(135deg, #071f26 0%, #0d343f 100%);
    border-bottom: 1px solid rgba(14, 168, 182, 0.25);
    overflow: hidden;
    z-index: 2;
}

.lms-pod-canopy::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 50% 120%, rgba(14, 168, 182, 0.35) 0%, transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 20px 20px, 20px 20px;
    pointer-events: none;
}

.lms-pod-canopy::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1647c7 0%, #0ea8b6 50%, #4ee7f3 100%);
    opacity: 0.9;
}

.lms-portal-student .lms-pod-canopy {
    background: linear-gradient(135deg, #09262f 0%, #0c3b4a 60%, #1647c7 100%);
}

.lms-portal-teacher .lms-pod-canopy {
    background: linear-gradient(135deg, #071f26 0%, #0a3d46 60%, #0ea8b6 100%);
}

.lms-portal-parent .lms-pod-canopy {
    background: linear-gradient(135deg, #09202a 0%, #0f303c 60%, #0284c7 100%);
}

/* Pod HUD Status Row */
.lms-pod-hud-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.lms-pod-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(78, 231, 243, 0.25);
    border-radius: var(--lms-radius-full);
    backdrop-filter: blur(8px);
}

.lms-pod-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ee7f3;
    box-shadow: 0 0 8px #4ee7f3;
    animation: lmsPodPulse 1.8s infinite;
}

@keyframes lmsPodPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.3);
        opacity: 1;
        box-shadow: 0 0 12px #4ee7f3;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.7;
    }
}

.lms-pod-status-text {
    font-size: 0.68rem;
    font-weight: 800;
    color: #4ee7f3;
    letter-spacing: 0.8px;
    font-family: var(--lms-font-en);
}

.lms-pod-core-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    font-family: var(--lms-font-en);
    background: rgba(0, 0, 0, 0.25);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Pod Stage Center (Orb + Identity) */
.lms-pod-stage-center {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 2;
}

/* 3D Holographic Crystal Orb */
.lms-pod-emblem-wrap {
    width: 68px;
    height: 68px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lms-pod-orbit {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.lms-pod-orbit-outer {
    inset: -6px;
    border: 1px dashed rgba(78, 231, 243, 0.4);
    animation: lmsPodOrbitSpin 12s linear infinite;
}

.lms-pod-orbit-inner {
    inset: -2px;
    border: 1px solid rgba(78, 231, 243, 0.25);
    animation: lmsPodOrbitSpinReverse 8s linear infinite;
}

@keyframes lmsPodOrbitSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes lmsPodOrbitSpinReverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

.lms-pod-crystal-orb {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    transition: all 0.4s ease;
}

.lms-portal-card:hover .lms-pod-crystal-orb {
    transform: scale(1.1) rotate(5deg);
    color: #4ee7f3;
    border-color: #4ee7f3;
    box-shadow: 0 0 25px rgba(78, 231, 243, 0.5), inset 0 2px 6px rgba(255, 255, 255, 0.8);
}

.lms-pod-badge-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lms-pod-role-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    font-family: var(--lms-font-en);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lms-pod-role-sub {
    font-size: 0.82rem;
    font-weight: 700;
    color: #4ee7f3;
    letter-spacing: 0.2px;
}

/* ==========================================================================
   PORTAL BODY CONTENT
   ========================================================================== */
.lms-portal-body-content {
    padding: 28px 26px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.lms-portal-card-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--lms-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.lms-portal-card-desc {
    font-size: 0.94rem;
    color: var(--lms-text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
    flex-grow: 1;
}

/* Feature Quick Chips */
.lms-portal-chips-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.lms-portal-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f0fbfb;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--lms-primary-dark);
    border: 1px solid rgba(14, 168, 182, 0.22);
    transition: all 0.25s ease;
}

.lms-portal-chip:hover {
    background: #e6f9fa;
    border-color: rgba(14, 168, 182, 0.45);
    transform: translateY(-2px);
}

.lms-portal-chip i {
    color: var(--lms-primary);
    font-size: 0.95rem;
}

/* Feature Check List */
.lms-portal-feature-list {
    list-style: none;
    margin-bottom: 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lms-portal-feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f8fafc;
    border-radius: var(--lms-radius-md);
    border: 1px solid #f1f5f9;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--lms-text-main);
    transition: all var(--lms-transition-fast);
}

.lms-portal-card:hover .lms-portal-feature-list li {
    background: #f1fbfb;
    border-color: rgba(14, 168, 182, 0.18);
}

.lms-portal-feature-list li:hover {
    transform: translateX(-4px);
    background: #e6f9fa !important;
}

.lms-portal-feature-list li i {
    color: var(--lms-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Vibrant Entry Button */
.btn-portal-entry {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--lms-radius-lg);
    font-weight: 800;
    font-size: 1rem;
    color: var(--lms-dark);
    border: 1px solid #e2e8f0;
    transition: all var(--lms-transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-portal-entry i {
    font-size: 1.3rem;
    transition: transform var(--lms-transition-fast);
}

.lms-portal-card:hover .btn-portal-entry {
    background: linear-gradient(135deg, var(--lms-primary) 0%, var(--lms-primary-dark) 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 22px var(--lms-primary-glow);
}

.lms-portal-card:hover .btn-portal-entry i {
    transform: translateX(-6px);
}

/* ==========================================================================
   FEATURES 3D FLIP CARDS (REFINED & MODERNIZED)
   ========================================================================== */
.lms-features-section {
    padding: 95px 0;
    background: radial-gradient(circle at 10% 20%, rgba(14, 168, 182, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, #e3f4f7 0%, #d2edf2 100%);
    border-top: 2px solid rgba(14, 168, 182, 0.32);
    border-bottom: 2px solid rgba(14, 168, 182, 0.25);
    box-shadow: inset 0 25px 35px -15px rgba(9, 38, 47, 0.09);
    position: relative;
}

.lms-features-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.lms-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.lms-flip-card {
    height: 380px;
    perspective: 1200px;
    cursor: pointer;
}

.lms-flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--lms-radius-xl);
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: var(--lms-shadow-md);
}

.lms-flip-card:hover .lms-flip-card-inner {
    transform: rotateY(180deg);
}

.lms-flip-card-front,
.lms-flip-card-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--lms-radius-xl);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow: hidden;
}

.lms-flip-card-front {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
}

.lms-flip-card-img {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.lms-flip-card-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 30, 36, 0.7) 0%, transparent 60%);
}

.lms-flip-card-front-bar {
    padding: 18px 24px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lms-flip-card-front-bar h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--lms-dark);
}

.lms-flip-hint-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--lms-primary-light);
    color: var(--lms-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.lms-flip-card-back {
    background: linear-gradient(145deg, #0e8a93 0%, #075f66 100%);
    color: #ffffff;
    transform: rotateY(180deg);
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #0b6e76;
}

.lms-flip-back-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #ffd05b;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.lms-flip-card-back h3 {
    font-size: 1.45rem;
    font-weight: 900;
    color: #ffd05b;
    margin-bottom: 14px;
}

.lms-flip-card-back p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #f1f5f9;
    font-weight: 500;
}

/* ==========================================================================
   ABOUT INSTITUTION - LUXURY DEEP TEAL 3D HOLOGRAPHIC STAGE
   ========================================================================== */
.lms-about-section {
    padding: 100px 0;
    background: linear-gradient(145deg, #071f26 0%, #0d343f 55%, #082830 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(78, 231, 243, 0.15);
    border-bottom: 1px solid rgba(78, 231, 243, 0.15);
}

.lms-about-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 168, 182, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.lms-about-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Content Side */
.lms-about-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lms-about-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: rgba(14, 168, 182, 0.2);
    border: 1px solid rgba(78, 231, 243, 0.35);
    border-radius: var(--lms-radius-full);
    color: #4ee7f3;
    font-size: 0.88rem;
    font-weight: 800;
    width: fit-content;
    backdrop-filter: blur(8px);
}

.lms-about-title {
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.3;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.lms-about-quote-box {
    position: relative;
    padding: 22px 26px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(14px);
    border-radius: var(--lms-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-inline-start: 4px solid #4ee7f3;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.lms-about-quote-box p {
    font-size: 1.05rem;
    color: #f1f5f9;
    line-height: 1.9;
    font-weight: 600;
    margin: 0;
}

.lms-about-desc {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.9;
}

/* 3 Excellence Pillars */
.lms-about-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 10px;
}

.lms-about-pillar-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--lms-radius-md);
    padding: 18px 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all var(--lms-transition-normal);
}

.lms-about-pillar-card:hover {
    transform: translateY(-4px);
    border-color: #4ee7f3;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 30px rgba(14, 168, 182, 0.35);
}

.lms-pillar-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--lms-radius-sm);
    background: rgba(14, 168, 182, 0.25);
    color: #4ee7f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.lms-about-pillar-card:nth-child(2) .lms-pillar-icon {
    background: rgba(2, 132, 199, 0.25);
    color: #38bdf8;
}

.lms-about-pillar-card:nth-child(3) .lms-pillar-icon {
    background: rgba(14, 168, 182, 0.25);
    color: #4ee7f3;
}

.lms-pillar-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
}

.lms-pillar-text {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.5;
}

/* ==========================================================================
   DAZZLING 3D HOLOGRAPHIC ORBIT STAGE
   ========================================================================== */
.lms-about-visual {
    position: relative;
    height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Orbit Arena Container */
.lms-orbit-arena {
    position: relative;
    width: 420px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Radar Pulse Rings */
.lms-radar-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(78, 231, 243, 0.5);
    box-shadow: 0 0 18px rgba(78, 231, 243, 0.25);
    animation: radarRipple 4s infinite linear;
    pointer-events: none;
}

.lms-radar-pulse:nth-child(2) {
    animation-delay: 1.3s;
}

.lms-radar-pulse:nth-child(3) {
    animation-delay: 2.6s;
}

@keyframes radarRipple {
    0% {
        transform: scale(0.6);
        opacity: 0.85;
    }

    50% {
        opacity: 0.45;
    }

    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

/* Rotating Orbit Track Rings */
.lms-orbit-track {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.lms-orbit-track-outer {
    width: 390px;
    height: 390px;
    border: 2px dashed rgba(78, 231, 243, 0.38);
    box-shadow: 0 0 25px rgba(14, 168, 182, 0.2);
    animation: rotateOuterOrbit 35s linear infinite;
}

.lms-orbit-track-inner {
    width: 270px;
    height: 270px;
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    animation: rotateInnerOrbit 25s linear infinite reverse;
}

@keyframes rotateOuterOrbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateInnerOrbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

/* Central 3D Core Logo Disc */
.lms-orbit-core {
    position: relative;
    z-index: 10;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 45px rgba(78, 231, 243, 0.6), 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 4px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    animation: floatCore 4s ease-in-out infinite alternate;
}

.lms-orbit-core::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(78, 231, 243, 0.6) 0%, rgba(2, 132, 199, 0.4) 100%);
    z-index: -1;
    filter: blur(12px);
    animation: pulseCoreGlow 3s ease-in-out infinite alternate;
}

@keyframes floatCore {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-8px) scale(1.03);
    }
}

@keyframes pulseCoreGlow {
    0% {
        opacity: 0.6;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.lms-orbit-core-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

/* 4 Orbiting Satellite Badges */
.lms-satellite-badge {
    position: absolute;
    z-index: 15;
    background: rgba(10, 36, 44, 0.92);
    backdrop-filter: blur(14px);
    padding: 10px 18px;
    border-radius: var(--lms-radius-full);
    border: 1.5px solid rgba(78, 231, 243, 0.45);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 15px rgba(14, 168, 182, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: default;
    transition: all var(--lms-transition-fast);
}

.lms-satellite-badge:hover {
    box-shadow: 0 14px 35px rgba(78, 231, 243, 0.5);
    border-color: #4ee7f3;
    background: rgba(14, 48, 59, 0.98);
}

.lms-sat-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.lms-sat-info {
    display: flex;
    flex-direction: column;
}

.lms-sat-val {
    font-size: 0.95rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    font-family: var(--lms-font-en);
}

.lms-sat-lbl {
    font-size: 0.72rem;
    font-weight: 700;
    color: #4ee7f3;
}

/* Satellites Positioning & Animation Offsets */
.lms-sat-top {
    top: 15px;
    right: 50%;
    transform: translateX(50%);
    animation: satTopFloat 4s ease-in-out infinite alternate;
}

.lms-sat-top .lms-sat-icon {
    background: rgba(2, 132, 199, 0.35);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.lms-sat-bottom {
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    animation: satBottomFloat 4s ease-in-out infinite alternate 1.5s;
}

.lms-sat-bottom .lms-sat-icon {
    background: rgba(14, 168, 182, 0.35);
    color: #4ee7f3;
    border: 1px solid rgba(78, 231, 243, 0.4);
}

.lms-sat-right {
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    animation: satRightFloat 4s ease-in-out infinite alternate 0.8s;
}

.lms-sat-right .lms-sat-icon {
    background: rgba(2, 132, 199, 0.35);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.lms-sat-left {
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    animation: satLeftFloat 4s ease-in-out infinite alternate 2.2s;
}

.lms-sat-left .lms-sat-icon {
    background: rgba(14, 168, 182, 0.35);
    color: #4ee7f3;
    border: 1px solid rgba(78, 231, 243, 0.4);
}

@keyframes satTopFloat {
    0% {
        transform: translateX(50%) translateY(0);
    }

    100% {
        transform: translateX(50%) translateY(-6px);
    }
}

@keyframes satBottomFloat {
    0% {
        transform: translateX(-50%) translateY(0);
    }

    100% {
        transform: translateX(-50%) translateY(-6px);
    }
}

@keyframes satRightFloat {
    0% {
        transform: translateY(-50%) translateX(0);
    }

    100% {
        transform: translateY(-50%) translateX(-4px);
    }
}

@keyframes satLeftFloat {
    0% {
        transform: translateY(-50%) translateX(0);
    }

    100% {
        transform: translateY(-50%) translateX(4px);
    }
}

/* ==========================================================================
   SCHOOLS 3D COVERFLOW SHOWCASE
   ========================================================================== */
.lms-schools-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #112228 0%, #0d1a1f 100%);
    color: #ffffff;
    overflow: hidden;
}

.lms-schools-section .lms-section-title {
    color: #ffffff;
}

.lms-schools-section .lms-section-desc {
    color: #94a3b8;
}

.lms-coverflow-wrapper {
    position: relative;
    max-width: 1200px;
    height: 420px;
    margin: 40px auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
}

.lms-coverflow-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lms-school-slide {
    position: absolute;
    width: 360px;
    height: 270px;
    border-radius: var(--lms-radius-xl);
    overflow: hidden;
    background: #1e2e36;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    user-select: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.lms-school-slide img {
    width: 101%;
    height: 115%;
    object-fit: cover;
}

.lms-school-slide-overlay {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    padding: 30px 20px 18px;
    background: linear-gradient(to top, rgba(9, 20, 24, 0.95) 0%, rgba(9, 20, 24, 0.4) 65%, transparent 100%);
    text-align: center;
}

.lms-school-slide-overlay h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Coverflow 3D Positions */
.lms-school-slide.pos-center {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0) translateZ(80px) scale(1.15);
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px var(--lms-primary-glow);
    border: 2px solid var(--lms-primary);
}

.lms-school-slide.pos-left-1 {
    opacity: 0.85;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(210px) translateZ(-40px) rotateY(-24deg) scale(0.92);
    z-index: 5;
}

.lms-school-slide.pos-right-1 {
    opacity: 0.85;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-210px) translateZ(-40px) rotateY(24deg) scale(0.92);
    z-index: 5;
}

.lms-school-slide.pos-left-2 {
    opacity: 0.5;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(360px) translateZ(-110px) rotateY(-38deg) scale(0.78);
    z-index: 2;
}

.lms-school-slide.pos-right-2 {
    opacity: 0.5;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-360px) translateZ(-110px) rotateY(38deg) scale(0.78);
    z-index: 2;
}

.lms-cf-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    backdrop-filter: blur(8px);
    transition: all var(--lms-transition-fast);
}

.lms-cf-nav:hover {
    background: var(--lms-primary);
    border-color: var(--lms-primary);
    transform: translateY(-50%) scale(1.1);
}

.lms-cf-nav.prev {
    right: 20px;
}

.lms-cf-nav.next {
    left: 20px;
}

.lms-cf-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
    max-width: 600px;
    margin-inline: auto;
}

.lms-cf-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    cursor: pointer;
    transition: all var(--lms-transition-fast);
}

.lms-cf-dot.active {
    background: var(--lms-primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--lms-primary);
}

/* ==========================================================================
   PUBLICATIONS & DIGITAL CURRICULUM LIBRARY (PREMIUM 3D SHOWCASE)
   ========================================================================== */
.lms-publications-section {
    padding: 95px 0;
    background: #ffffff;
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
    position: relative;
    overflow: hidden;
}

.lms-publications-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* Filter Tabs */
.lms-pub-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

.lms-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--lms-radius-full);
    background: #ffffff;
    color: var(--lms-text-muted);
    font-size: 0.95rem;
    font-weight: 700;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all var(--lms-transition-normal);
}

.lms-filter-btn:hover {
    color: var(--lms-primary);
    border-color: rgba(14, 168, 182, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 168, 182, 0.15);
}

.lms-filter-btn.active {
    background: linear-gradient(135deg, var(--lms-primary) 0%, var(--lms-primary-dark) 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 20px var(--lms-primary-glow);
    transform: translateY(-2px);
}

.lms-filter-btn i {
    font-size: 1.15rem;
}

/* Publications Grid */
.lms-publications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.lms-pub-card {
    height: 380px;
    perspective: 1200px;
    cursor: pointer;
}

.lms-pub-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--lms-radius-xl);
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(13, 30, 36, 0.06);
}

.lms-pub-card:hover .lms-pub-card-inner {
    transform: rotateY(180deg);
}

.lms-pub-card-front,
.lms-pub-card-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--lms-radius-xl);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow: hidden;
}

/* Card Front Face */
.lms-pub-card-front {
    background: #ffffff;
    border: 1px solid rgba(14, 168, 182, 0.14);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color var(--lms-transition-normal), box-shadow var(--lms-transition-normal);
}

.lms-pub-card:hover .lms-pub-card-front {
    border-color: var(--lms-primary);
}

.lms-pub-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lms-pub-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--lms-primary-dark);
    background: var(--lms-primary-light);
    padding: 5px 12px;
    border-radius: var(--lms-radius-full);
    border: 1px solid rgba(14, 168, 182, 0.2);
}

.lms-pub-hint {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f1f5f9;
    color: var(--lms-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--lms-transition-fast);
}

.lms-pub-card:hover .lms-pub-hint {
    background: var(--lms-primary);
    color: #ffffff;
    transform: rotate(180deg);
}

.lms-pub-img-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    position: relative;
}

.lms-pub-img-wrap::before {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(14, 168, 182, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    transition: transform var(--lms-transition-normal);
}

.lms-pub-card:hover .lms-pub-img-wrap::before {
    transform: scale(1.2);
}

.lms-pub-img-wrap img {
    position: relative;
    z-index: 2;
    max-height: 175px;
    max-width: 90%;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.12));
    transition: transform var(--lms-transition-normal), filter var(--lms-transition-normal);
}

.lms-pub-card:hover .lms-pub-img-wrap img {
    transform: scale(1.08) translateY(-4px);
    filter: drop-shadow(0 16px 26px rgba(14, 168, 182, 0.25));
}

.lms-pub-info {
    text-align: center;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.lms-pub-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--lms-dark);
    margin-bottom: 4px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lms-pub-subtitle {
    font-size: 0.88rem;
    color: var(--lms-text-muted);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Back Face */
.lms-pub-card-back {
    background: linear-gradient(145deg, #0e8a93 0%, #064e54 100%);
    color: #ffffff;
    transform: rotateY(180deg);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #0c737b;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.lms-pub-back-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffd05b;
    margin-bottom: 18px;
    box-shadow: 0 0 20px rgba(255, 208, 91, 0.3);
}

.lms-pub-back-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffd05b;
    margin-bottom: 10px;
    line-height: 1.4;
}

.lms-pub-back-series {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin-bottom: 20px;
}

.lms-pub-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    border-radius: var(--lms-radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    transition: all var(--lms-transition-fast);
}

.lms-pub-back-btn:hover {
    background: #ffffff;
    color: #064e54;
}

/* ==========================================================================
   MOBILE APP SHOWCASE SECTION
   ========================================================================== */
.lms-app-section {
    padding: 80px 0;
    background: #f8fafc;
}

.lms-app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.lms-app-card {
    background: linear-gradient(135deg, #0d262e 0%, #133945 100%);
    border-radius: var(--lms-radius-xl);
    padding: 50px 60px;
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 40px;
    align-items: center;
    color: #ffffff;
    box-shadow: var(--lms-shadow-xl);
    position: relative;
    overflow: hidden;
}

.lms-app-logo-wrap {
    width: 130px;
    height: 130px;
    background: #ffffff;
    border-radius: var(--lms-radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lms-app-text h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.lms-app-text p {
    font-size: 1.05rem;
    color: #cbd5e1;
    line-height: 1.8;
}

.lms-app-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-store-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-radius: var(--lms-radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
    transition: all var(--lms-transition-fast);
}

.btn-store-download:hover {
    background: var(--lms-primary);
    border-color: var(--lms-primary);
    transform: translateY(-3px);
}

.btn-store-download i {
    font-size: 1.6rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.lms-footer {
    background: #091a20;
    color: #94a3b8;
    padding: 70px 0 30px;
    border-top: 4px solid var(--lms-primary);
}

.lms-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.lms-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lms-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lms-footer-logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lms-footer-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.lms-footer-brand p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #cbd5e1;
}

.lms-footer-col h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.lms-footer-col h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--lms-primary);
}

.lms-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lms-footer-links a {
    font-size: 0.92rem;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--lms-transition-fast);
}

.lms-footer-links a:hover {
    color: var(--lms-primary);
    transform: translateX(-4px);
}

.lms-newsletter-box {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.lms-newsletter-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: var(--lms-radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-family: var(--lms-font-ar);
    font-size: 0.9rem;
    outline: none;
}

.lms-newsletter-input:focus {
    border-color: var(--lms-primary);
}

.btn-newsletter-submit {
    padding: 10px 18px;
    background: var(--lms-primary);
    border: none;
    border-radius: var(--lms-radius-md);
    color: #ffffff;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background var(--lms-transition-fast);
}

.btn-newsletter-submit:hover {
    background: var(--lms-primary-dark);
}

.lms-footer-bottom {
    padding-top: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    flex-wrap: wrap;
    gap: 14px;
}

.lms-social-links {
    display: flex;
    gap: 10px;
}

.lms-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    transition: all var(--lms-transition-fast);
}

.lms-social-icon:hover {
    background: var(--lms-primary);
    transform: translateY(-2px);
}

/* Floating Back To Top Button */
.lms-back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--lms-primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 18px var(--lms-primary-glow);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--lms-transition-normal);
    cursor: pointer;
    border: none;
}

.lms-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lms-back-to-top:hover {
    background: var(--lms-primary-dark);
    transform: translateY(-4px);
}

/* ==========================================================================
   RESPONSIVE DESIGN (BREAKPOINTS)
   ========================================================================== */
@media (max-width: 1200px) {
    .lms-publications-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .lms-nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 20px;
        right: 20px;
        background: var(--brand-bar-panel);
        border: 1px solid var(--brand-bar-panel-line);
        border-radius: var(--lms-radius-lg);
        padding: 18px;
        flex-direction: column;
        gap: 10px;
        box-shadow: var(--brand-bar-shadow-raised);
    }

    .lms-nav-menu.active-mobile {
        display: flex;
    }

    .lms-nav-menu .lms-nav-link {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .lms-mobile-toggle {
        display: block;
    }

    .lms-stats-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lms-stat-item:nth-child(2) {
        border-inline-end: none;
    }

    .lms-portals-grid,
    .lms-features-grid {
        grid-template-columns: 1fr;
    }

    .lms-flip-card {
        height: 320px;
    }

    .lms-about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .lms-about-content h2::after {
        right: 50%;
        transform: translateX(50%);
    }

    .lms-about-highlights {
        text-align: right;
    }

    .lms-publications-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lms-app-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 30px;
    }

    .lms-app-logo-wrap {
        margin: 0 auto;
    }

    .lms-app-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .lms-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    /* The bar on a phone: the brand, the one action and the burger on a single row. */
    .lms-nav-container {
        padding: 0 14px;
        gap: 10px;
    }

    .lms-brand {
        min-width: 0;
        gap: 8px;
    }

    .lms-brand-logo-wrap {
        flex: 0 0 auto;
        width: 40px;
        height: 40px;
    }

    .lms-brand-logo {
        width: 30px;
        height: 30px;
    }

    .lms-brand-title {
        font-size: 1rem;
    }

    .lms-brand-subtitle {
        font-size: 0.68rem;
        letter-spacing: 0;
    }

    .btn-lms-login {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .lms-hero {
        min-height: 520px;
    }

    .lms-hero-slider-container {
        height: 480px;
    }

    .lms-stats-card-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .lms-stat-item {
        border-inline-end: none;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 14px;
    }

    .lms-stat-item:last-child {
        border-bottom: none;
    }

    .lms-publications-grid {
        grid-template-columns: 1fr;
    }

    .lms-footer-grid {
        grid-template-columns: 1fr;
    }

    .lms-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}