/* =====================================================================
   LMGI PREMIUM DESIGN LAYER  —  "Saffron & Royal Ivory"
   ---------------------------------------------------------------------
   A pure visual layer loaded AFTER every existing stylesheet.
   • Changes NO content, NO images, NO DOM order — only appearance.
   • Primary theme  : Light  (warm ivory, royal navy ink, saffron accents)
   • Secondary theme: Dark   (midnight navy, same accents)
   • Remove the <link> to this file to instantly restore the old look.
   ===================================================================== */

/* ---------------------------------------------------------------------
   0. DESIGN TOKENS
   --------------------------------------------------------------------- */
:root,
html[data-theme="light"],
body.light-theme {
    --lx-font-display: "Fraunces", "Times New Roman", serif;
    --lx-font-body: "Plus Jakarta Sans", "DM Sans", system-ui, -apple-system, sans-serif;

    /* surfaces */
    --lx-bg: #FBF8F3;
    --lx-bg-2: #F4EEE4;
    --lx-surface: #FFFFFF;
    --lx-surface-2: #FDFBF7;
    --lx-surface-glass: rgba(255, 255, 255, 0.72);
    --lx-hairline: rgba(10, 22, 51, 0.08);
    --lx-hairline-2: rgba(10, 22, 51, 0.14);

    /* ink */
    --lx-ink: #0A1633;
    --lx-ink-2: #2A3654;
    --lx-muted: #5E6984;
    --lx-faint: #8D96AB;

    /* brand */
    --lx-saffron: #F26A1B;
    --lx-saffron-2: #FF8A2A;
    --lx-amber: #FFB547;
    --lx-royal: #1C3A8C;
    --lx-royal-2: #3558D4;
    --lx-navy: #0A1633;
    --lx-gold: #D9A441;

    --lx-grad-brand: linear-gradient(135deg, #FF9A3C 0%, #F26A1B 48%, #E04E12 100%);
    --lx-grad-brand-text: linear-gradient(100deg, #F26A1B 0%, #FF8A2A 45%, #E9A13B 100%);
    --lx-grad-royal: linear-gradient(135deg, #2A4FC4 0%, #1C3A8C 50%, #0A1633 100%);
    --lx-grad-royal-text: linear-gradient(100deg, #1C3A8C 0%, #3558D4 60%, #F26A1B 120%);
    --lx-grad-sheen: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 60%);

    /* depth — layered, warm-tinted shadows for a tactile 3D feel */
    --lx-shadow-xs: 0 1px 2px rgba(10, 22, 51, 0.06);
    --lx-shadow-sm: 0 1px 2px rgba(10, 22, 51, 0.05), 0 4px 12px -2px rgba(10, 22, 51, 0.07);
    --lx-shadow-md: 0 1px 2px rgba(10, 22, 51, 0.04), 0 8px 20px -6px rgba(10, 22, 51, 0.10), 0 24px 48px -16px rgba(10, 22, 51, 0.12);
    --lx-shadow-lg: 0 2px 4px rgba(10, 22, 51, 0.04), 0 18px 36px -12px rgba(10, 22, 51, 0.16), 0 40px 80px -24px rgba(28, 58, 140, 0.20);
    --lx-shadow-brand: 0 1px 0 rgba(255,255,255,0.35) inset, 0 -2px 0 rgba(0,0,0,0.12) inset, 0 10px 24px -8px rgba(242, 106, 27, 0.55), 0 4px 8px -2px rgba(242, 106, 27, 0.25);
    --lx-shadow-royal: 0 1px 0 rgba(255,255,255,0.2) inset, 0 10px 24px -8px rgba(28, 58, 140, 0.55);

    /* shape */
    --lx-r-sm: 12px;
    --lx-r-md: 18px;
    --lx-r-lg: 26px;
    --lx-r-xl: 34px;

    /* motion — springy, bouncy easing curves */
    --lx-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --lx-spring-soft: cubic-bezier(0.22, 1.25, 0.36, 1);
    --lx-ease-out: cubic-bezier(0.16, 1, 0.3, 1);

    --font-primary: var(--lx-font-body);
}

/* re-map the existing template variables onto the new palette (light theme only —
   the template's own :root values remain the dark theme's source of truth) */
html[data-theme="light"],
html.light-theme,
body.light-theme {
    --color-body: #3A4560;
    --color-primary-100: #F26A1B;
    --color-primary-200: #F47A2E;
    --color-primary-300: #E05A10;
    --color-primary-700: #FF8A2A;
    --color-secondary-100: #0A1633;
    --color-secondary-200: #1C3A8C;
    --color-secondary-300: #2A4FC4;
    --color-secondary-700: #4F5A75;
    --color-secondary-800: #6B7590;
    --color-dark-100: #FBF8F3;
    --color-dark-200: #FFFFFF;
    --color-dark-300: #F4EEE4;
    --color-dark-400: #E8E0D2;
    --color-gradient-100: linear-gradient(114deg, #0A1633 0%, #1C3A8C 46%, #F26A1B 100%);
    --color-gradient-200: linear-gradient(90deg, #F26A1B 0%, #FF8A2A 50%, #FFB547 100%);
    --primary-border: rgba(10, 22, 51, 0.08);
    --primary-border-2: rgba(10, 22, 51, 0.14);
}

/* Hero banner keeps the ORIGINAL palette & font exactly */
html[data-theme="light"] #campus-kml-tour,
body.light-theme #campus-kml-tour {
    --color-body: #334155;
    --color-primary-100: #FF7A00;
    --color-primary-200: #F97316;
    --color-primary-300: #EA580C;
    --color-primary-700: #FF9500;
    --color-secondary-100: #0B2545;
    --color-secondary-200: #133E87;
    --color-secondary-300: #1E40AF;
    --color-secondary-700: #475569;
    --color-secondary-800: #64748B;
    --color-dark-100: #F8FAFC;
    --color-dark-200: #FFFFFF;
    --color-dark-300: #F1F5F9;
    --color-dark-400: #E2E8F0;
    --color-gradient-100: linear-gradient(114deg, #0B2545 0%, #133E87 46.5%, #FF7A00 100%);
    --color-gradient-200: linear-gradient(90deg, #FF7A00 0%, #FF9500 50%, #FFB020 100%);
    --primary-border: #E2E8F0;
    --primary-border-2: #CBD5E1;
}
#campus-kml-tour { --font-primary: "DM Sans", sans-serif; }

/* Secondary theme — Midnight */
html[data-theme="dark"],
html:not([data-theme="light"]):not(.light-theme) {
    --lx-bg: #060A18;
    --lx-bg-2: #0A1024;
    --lx-surface: #0E1530;
    --lx-surface-2: #111A38;
    --lx-surface-glass: rgba(14, 21, 48, 0.72);
    --lx-hairline: rgba(255, 255, 255, 0.08);
    --lx-hairline-2: rgba(255, 255, 255, 0.14);
    --lx-ink: #F5F1EA;
    --lx-ink-2: #D5D9E6;
    --lx-muted: #9AA3BD;
    --lx-faint: #6C7592;
    --lx-grad-royal-text: linear-gradient(100deg, #9DB4FF 0%, #C9D5FF 50%, #FFB547 110%);
    --lx-grad-sheen: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 50%);
    --lx-shadow-sm: 0 1px 0 rgba(255,255,255,0.04) inset, 0 6px 16px -4px rgba(0, 0, 0, 0.5);
    --lx-shadow-md: 0 1px 0 rgba(255,255,255,0.05) inset, 0 12px 28px -8px rgba(0, 0, 0, 0.55), 0 24px 48px -20px rgba(0, 0, 0, 0.5);
    --lx-shadow-lg: 0 1px 0 rgba(255,255,255,0.06) inset, 0 24px 48px -16px rgba(0, 0, 0, 0.65), 0 40px 90px -30px rgba(53, 88, 212, 0.35);
    --font-primary: var(--lx-font-body);
}

/* ---------------------------------------------------------------------
   1. BASE
   --------------------------------------------------------------------- */
html { scroll-behavior: smooth; }

html,
html[data-theme="light"],
html[data-theme="dark"] {
    background: var(--lx-bg) !important;
}

html body,
html[data-theme="light"] body,
body.light-theme {
    font-family: var(--lx-font-body) !important;
    background: transparent !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
html[data-theme="light"] body,
body.light-theme { color: var(--color-body) !important; }

::selection { background: rgba(242, 106, 27, 0.22); color: inherit; }

/* refined scrollbar */
html::-webkit-scrollbar { width: 11px; }
html::-webkit-scrollbar-track { background: var(--lx-bg); }
html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FF9A3C, #F26A1B 50%, #1C3A8C);
    border: 3px solid var(--lx-bg);
    border-radius: 99px;
}

:focus-visible {
    outline: 2px solid var(--lx-saffron) !important;
    outline-offset: 3px !important;
    border-radius: 8px;
}

/* ---------------------------------------------------------------------
   2. AMBIENT 3D BACKDROP (injected by lmgi-premium.js)
   --------------------------------------------------------------------- */
.lx-ambient {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    contain: strict;
}
.lx-ambient::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(10, 22, 51, 0.07) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 85%);
}
html[data-theme="dark"] .lx-ambient::before { background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px); }

.lx-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    will-change: transform;
}
.lx-orb--1 { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: radial-gradient(circle at 35% 35%, rgba(255, 154, 60, 0.55), rgba(242, 106, 27, 0) 65%); animation: lxDrift1 26s ease-in-out infinite alternate; }
.lx-orb--2 { width: 40vw; height: 40vw; right: -10vw; top: 30vh; background: radial-gradient(circle at 60% 40%, rgba(53, 88, 212, 0.38), rgba(28, 58, 140, 0) 65%); animation: lxDrift2 30s ease-in-out infinite alternate; }
.lx-orb--3 { width: 34vw; height: 34vw; left: 30vw; bottom: -18vw; background: radial-gradient(circle, rgba(255, 181, 71, 0.35), rgba(255, 181, 71, 0) 65%); animation: lxDrift3 34s ease-in-out infinite alternate; }
html[data-theme="dark"] .lx-orb { opacity: 0.35; }

@keyframes lxDrift1 { to { transform: translate3d(8vw, 10vh, 0) scale(1.15); } }
@keyframes lxDrift2 { to { transform: translate3d(-10vw, -8vh, 0) scale(0.9); } }
@keyframes lxDrift3 { to { transform: translate3d(-6vw, -12vh, 0) scale(1.2); } }

/* scroll progress */
.lx-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 100000;
    transform-origin: 0 50%;
    transform: scaleX(var(--lx-progress, 0));
    background: linear-gradient(90deg, #1C3A8C, #3558D4 35%, #F26A1B 75%, #FFB547);
    box-shadow: 0 0 12px rgba(242, 106, 27, 0.6);
    pointer-events: none;
}

/* ---------------------------------------------------------------------
   3. TYPOGRAPHY
   --------------------------------------------------------------------- */
html body h1:not(#lx),
html body h2:not(#lx),
html body .h1:not(#lx),
html body .h2:not(#lx),
html body .display--1:not(#lx),
html body .display--2:not(#lx),
html body .display--3:not(#lx),
html body .lmgi-counselor-title:not(#lx) {
    font-family: var(--lx-font-display) !important;
    font-optical-sizing: auto;
    font-variation-settings: "SOFT" 50, "WONK" 0;
    font-weight: 600 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.08 !important;
}
html body :is(h3, h4, h5, h6, .h3, .h4, .h5, .h6):not(#campus-kml-tour *) {
    font-family: var(--lx-font-body) !important;
    letter-spacing: -0.015em;
}
html[data-theme="light"] body h1,
html[data-theme="light"] body h2,
html[data-theme="light"] body h3:not(#campus-kml-tour *),
html[data-theme="light"] body h4:not(#campus-kml-tour *),
html[data-theme="light"] body .title.color-secondary-100 { color: var(--lx-ink); }

/* the legacy layout forces DM Sans on every span/a/p/li with !important — re-map to the new body face */
html body p:not(#campus-kml-tour *),
html body li:not(#campus-kml-tour *),
html body a:not(#campus-kml-tour *),
html body button:not(#campus-kml-tour *),
html body label,
html body input,
html body textarea,
html body select,
html body span:not([class*="fa-"]):not([class*="feather"]):not(#campus-kml-tour *) { font-family: var(--lx-font-body) !important; }

/* every child inside a display heading inherits the serif (incl. GSAP split-text chars) */
html body h1:not(#lx) :not(i):not([class*="fa-"]),
html body h2:not(#lx) :not(i):not([class*="fa-"]),
html body .display--2:not(#lx) :not(i):not([class*="fa-"]),
html body .lmgi-counselor-title:not(#lx) :not(i):not([class*="fa-"]) { font-family: inherit !important; }

/* Heading accent words — italic serif in saffron ink */
html body h1:not(#lx) .lrn-gradient-100,
html body h2:not(#lx) .lrn-gradient-100,
html body h1:not(#lx) .lrn-gradient-splite,
html body h2:not(#lx) .lrn-gradient-splite,
html body h1:not(#lx) .title-orange,
html body h2:not(#lx) .title-orange,
html body h1:not(#lx) .color-primary-100,
html body h2:not(#lx) .color-primary-100,
html body .lmgi-counselor-title:not(#lx) .title-orange {
    font-family: var(--lx-font-display) !important;
    font-style: italic !important;
    font-weight: 500 !important;
    font-variation-settings: "SOFT" 100, "WONK" 1;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    color: var(--lx-accent-ink, #E35A12) !important;
    -webkit-text-fill-color: var(--lx-accent-ink, #E35A12) !important;
    padding-right: 0.06em;
}
/* split-text characters (GSAP) inherit the accent ink */
html body h1 .lrn-gradient-100 *,
html body h2 .lrn-gradient-100 *,
html body h1 .lrn-gradient-splite *,
html body h2 .lrn-gradient-splite *,
html body h2 .title-orange *,
html body h2 .color-primary-100 * {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    background: none !important;
}
html[data-theme="dark"] body { --lx-accent-ink: #FF9A4D; }

/* Section eyebrow / pill badges */
html body .lrn-badge-gradient-1,
html body .lrn-badge-solid,
html body .dept-badge-pill,
html body .lmgi-counselor-badge {
    font-family: var(--lx-font-body) !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 7px 16px 7px 14px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #FFFFFF, #FFF6EE) !important;
    border: 1px solid rgba(242, 106, 27, 0.22) !important;
    box-shadow: 0 1px 0 #fff inset, 0 6px 16px -8px rgba(242, 106, 27, 0.45) !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    line-height: 1.2 !important;
}
html body .lrn-badge-gradient-1::before,
html body .lmgi-counselor-badge::after { display: none !important; }
html body .lrn-badge-gradient-1 .lrn-badge-gradient-text,
html body .lrn-badge-gradient-1 .lrn-gradient-100 {
    background: var(--lx-grad-brand-text) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-style: normal !important;
}
html body .lrn-badge-gradient-1:not(:has(i, img, svg))::before {
    content: "" !important;
    display: inline-block !important;
    position: static !important;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--lx-saffron);
    box-shadow: 0 0 0 4px rgba(242, 106, 27, 0.15);
    animation: lxPulseDot 2.2s ease-in-out infinite;
    inset: auto !important;
    opacity: 1 !important;
}
@keyframes lxPulseDot { 50% { box-shadow: 0 0 0 7px rgba(242, 106, 27, 0); } }

html[data-theme="dark"] body .lrn-badge-gradient-1,
html[data-theme="dark"] body .lrn-badge-solid,
html[data-theme="dark"] body .dept-badge-pill,
html[data-theme="dark"] body .lmgi-counselor-badge {
    background: linear-gradient(180deg, rgba(242,106,27,0.14), rgba(242,106,27,0.06)) !important;
    border-color: rgba(242, 106, 27, 0.35) !important;
    box-shadow: 0 8px 20px -10px rgba(242, 106, 27, 0.5) !important;
}

/* ---------------------------------------------------------------------
   4. TOP ANNOUNCEMENT BAR
   --------------------------------------------------------------------- */
html body .topbar {
    background:
        linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0) 70%) 0 0 / 250% 100%,
        linear-gradient(90deg, #0A1633 0%, #1C3A8C 55%, #0A1633 100%) !important;
    animation: lxSheen 7s linear infinite;
    border-bottom: 0 !important;
}
@keyframes lxSheen { from { background-position: 150% 0, 0 0; } to { background-position: -100% 0, 0 0; } }
html body .topbar,
html body .topbar p,
html body .topbar .topbar-text,
html body .topbar span,
html body .topbar a { color: #fff !important; letter-spacing: 0.01em; }
html body .topbar .topbar-text { font-weight: 600 !important; font-size: 14.5px !important; }
html body .topbar .offer {
    background: var(--lx-grad-brand) !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 3px 12px !important;
    box-shadow: 0 4px 14px -4px rgba(242, 106, 27, 0.8) !important;
    transition: transform 0.4s var(--lx-spring);
}
html body .topbar .offer:hover { transform: translateY(-1px) scale(1.06); }
html body .topbar .offer span { color: #fff !important; font-weight: 700; }

/* ---------------------------------------------------------------------
   5. HEADER & NAVIGATION — floating glass bar
   --------------------------------------------------------------------- */
html body .lrn-header,
html body .lrn-header.bg-color-dark-100,
html[data-theme="light"] .lrn-header.bg-color-dark-100,
body.light-theme .lrn-header.bg-color-dark-100 {
    background: rgba(255, 255, 255, 0.78) !important;
    backdrop-filter: saturate(180%) blur(22px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(22px) !important;
    border-bottom: 1px solid rgba(10, 22, 51, 0.06) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 10px 30px -18px rgba(10, 22, 51, 0.25) !important;
    transition: box-shadow 0.4s ease, background 0.4s ease;
}
html[data-theme="dark"] body .lrn-header,
html[data-theme="dark"] body .lrn-header.bg-color-dark-100 {
    background: rgba(8, 12, 28, 0.72) !important;
    border-bottom-color: rgba(255,255,255,0.06) !important;
    box-shadow: 0 10px 30px -18px rgba(0,0,0,0.8) !important;
}
html body .lrn-header.header-sticky.sticky {
    box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 18px 40px -20px rgba(10, 22, 51, 0.35) !important;
}

html body .lrn-header .lrn-menu-item > li > .lrn-menu-link {
    position: relative;
    font-family: var(--lx-font-body) !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    letter-spacing: -0.005em;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    transition: color 0.3s ease, background 0.35s ease, transform 0.45s var(--lx-spring) !important;
}
html[data-theme="light"] .lrn-header .lrn-menu-item > li > .lrn-menu-link,
body.light-theme .lrn-header .lrn-menu-item > li > .lrn-menu-link { color: var(--lx-ink-2) !important; }

html body .lrn-header .lrn-menu-item > li > .lrn-menu-link:hover {
    transform: translateY(-2px);
    background: rgba(242, 106, 27, 0.07) !important;
    color: var(--lx-saffron) !important;
}
html body .lrn-header .lrn-menu-item > li > .lrn-menu-link.active,
html body .lrn-header .has-dropdown.active > .lrn-menu-link {
    background: linear-gradient(180deg, #FFF3E8, #FFE6D2) !important;
    color: #D4520B !important;
    border-color: rgba(242, 106, 27, 0.25) !important;
    box-shadow: 0 1px 0 #fff inset, 0 6px 16px -8px rgba(242, 106, 27, 0.55) !important;
}
html[data-theme="dark"] body .lrn-header .lrn-menu-item > li > .lrn-menu-link.active {
    background: rgba(242, 106, 27, 0.14) !important;
    color: #FFB27A !important;
}
html body .lrn-header .lrn-menu-link i.fa-chevron-down {
    transition: transform 0.45s var(--lx-spring) !important;
    font-size: 10px !important;
}
html body .lrn-header .has-dropdown:hover > .lrn-menu-link i.fa-chevron-down { transform: rotate(180deg); }

html body .lrn-header .submenu {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(10, 22, 51, 0.07) !important;
    border-radius: 20px !important;
    padding: 10px !important;
    box-shadow: 0 1px 0 #fff inset, 0 30px 60px -20px rgba(10, 22, 51, 0.35), 0 12px 24px -12px rgba(10, 22, 51, 0.15) !important;
    transform-origin: 20% 0;
}
html body .lrn-header .has-dropdown:hover > .submenu {
    animation: lxDropIn 0.5s var(--lx-spring) both;
}
@keyframes lxDropIn {
    0% { opacity: 0; transform: translateY(14px) rotateX(-14deg) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) rotateX(0) scale(1); }
}
html body .lrn-header .submenu li a {
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 14.5px !important;
    transition: background 0.25s ease, color 0.25s ease, padding 0.35s var(--lx-spring) !important;
}
html[data-theme="light"] .lrn-header .submenu li a,
body.light-theme .lrn-header .submenu li a { color: var(--lx-ink-2) !important; }
html body .lrn-header .submenu li a:hover {
    background: linear-gradient(90deg, rgba(242, 106, 27, 0.10), rgba(242, 106, 27, 0.02)) !important;
    color: var(--lx-saffron) !important;
    padding-left: 22px !important;
}
html body .lrn-header .submenu li a.active {
    background: var(--lx-grad-brand) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px -8px rgba(242, 106, 27, 0.7) !important;
}
html[data-theme="dark"] body .lrn-header .submenu {
    background: rgba(12, 18, 40, 0.96) !important;
    border-color: rgba(255,255,255,0.08) !important;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8) !important;
}
html[data-theme="dark"] body .lrn-header .submenu li a { color: #D5D9E6 !important; }

/* Header fit on laptop widths — logos keep their exact sizes; the menu tightens,
   and below 1320px the existing hamburger menu takes over so "Contact Us" never
   falls off-screen (it was clipped at 1200–1440px in the original layout). */
@media (min-width: 1200px) and (max-width: 1599.98px) {
    html body .lrn-header .lrn-menu-item { gap: 0 !important; }
    html body .lrn-header .lrn-menu-item > li > .lrn-menu-link { padding: 8px 8px !important; font-size: 14.5px !important; gap: 4px !important; }
    html body .lrn-header .lrn-header-right .lrn-btn-primary.btn-md { padding: 12px 18px !important; font-size: 15px !important; }
    html body .lrn-header .lrn-header-wrapper { gap: 10px; }
}
@media (min-width: 1200px) and (max-width: 1319.98px) {
    html body .lrn-header .lrn-header-menu-area { display: none !important; }
    html body .lrn-header .lrn-header-info.hamberger { display: block !important; }
    html body .lrn-header .lrn-header-right { margin-left: auto; }
}

/* ---------------------------------------------------------------------
   6. BUTTONS — glossy 3D, springy press
   --------------------------------------------------------------------- */
html body .lrn-btn-primary,
html body .btn-primary,
html body .lmgi-btn-call,
html body .lmgi-action-btn,
html body a.lrn-btn-primary,
html body button.lrn-btn-primary {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--lx-grad-brand) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-family: var(--lx-font-body) !important;
    font-weight: 700 !important;
    letter-spacing: 0.005em !important;
    box-shadow: var(--lx-shadow-brand) !important;
    transition: transform 0.5s var(--lx-spring), box-shadow 0.4s ease, filter 0.3s ease !important;
    will-change: transform;
}
html body .lrn-btn-primary::after,
html body .btn-primary::after,
html body .lmgi-btn-call::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.45) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.9s var(--lx-ease-out);
    pointer-events: none;
}
html body .lrn-btn-primary:hover::after,
html body .btn-primary:hover::after,
html body .lmgi-btn-call:hover::after { transform: translateX(120%); }

html body .lrn-btn-primary:hover,
html body .btn-primary:hover,
html body .lmgi-btn-call:hover,
html body .lmgi-action-btn:hover {
    transform: translateY(-3px) scale(1.035);
    box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 -2px 0 rgba(0,0,0,0.12) inset, 0 18px 34px -10px rgba(242, 106, 27, 0.7), 0 6px 12px -4px rgba(242, 106, 27, 0.3) !important;
    color: #fff !important;
}
html body .lrn-btn-primary:active,
html body .btn-primary:active,
html body .lmgi-btn-call:active,
html body .lmgi-action-btn:active {
    transform: translateY(1px) scale(0.97);
    transition-duration: 0.12s !important;
}
html body .lrn-btn-primary .btn-text,
html body .lrn-btn-primary span { color: #fff !important; }

html body .lrn-btn-outline,
html body .btn-outline-primary,
html body .btn-light,
html body .lmgi-btn-portal,
html body #institutions-showcase .inst-view-details-btn {
    border-radius: 999px !important;
    font-weight: 700 !important;
    transition: transform 0.5s var(--lx-spring), background 0.3s ease, color 0.3s ease, box-shadow 0.35s ease, border-color 0.3s ease !important;
}
html[data-theme="light"] .lrn-btn-outline,
html[data-theme="light"] .btn-outline-primary,
html[data-theme="light"] .btn-light,
html[data-theme="light"] .lmgi-btn-portal,
body.light-theme .lrn-btn-outline,
body.light-theme .btn-outline-primary,
body.light-theme .btn-light {
    background: linear-gradient(180deg, #FFFFFF, #FAF6F0) !important;
    color: var(--lx-ink) !important;
    border: 1px solid var(--lx-hairline-2) !important;
    box-shadow: 0 1px 0 #fff inset, 0 -2px 0 rgba(10,22,51,0.04) inset, var(--lx-shadow-sm) !important;
}
html body .lrn-btn-outline:hover,
html body .btn-outline-primary:hover,
html body .btn-light:hover,
html body .lmgi-btn-portal:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: rgba(242, 106, 27, 0.45) !important;
    color: var(--lx-saffron) !important;
    box-shadow: 0 1px 0 #fff inset, 0 14px 28px -12px rgba(242, 106, 27, 0.45) !important;
}

html body .lmgi-btn-whatsapp {
    border-radius: 999px !important;
    background: linear-gradient(135deg, #3BE07C, #1DB954 55%, #128C4A) !important;
    box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 -2px 0 rgba(0,0,0,0.12) inset, 0 10px 24px -8px rgba(29, 185, 84, 0.6) !important;
    transition: transform 0.5s var(--lx-spring), box-shadow 0.35s ease !important;
}
html body .lmgi-btn-whatsapp:hover { transform: translateY(-3px) scale(1.035); }

html body #institutions-showcase .inst-view-details-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 16px !important;
    background: linear-gradient(180deg, #FFF6EE, #FFE9D8) !important;
    color: #C9500C !important;
    border: 1px solid rgba(242, 106, 27, 0.25) !important;
    box-shadow: 0 1px 0 #fff inset, 0 4px 12px -6px rgba(242, 106, 27, 0.5) !important;
    font-size: 13px !important;
}
html body #institutions-showcase .inst-view-details-btn .icon-arrow { transition: transform 0.45s var(--lx-spring); }
html body #institutions-showcase .inst-view-details-btn:hover {
    background: var(--lx-grad-brand) !important;
    color: #fff !important;
    border-color: transparent !important;
    transform: translateY(-2px) scale(1.04);
    box-shadow: var(--lx-shadow-brand) !important;
}
html body #institutions-showcase .inst-view-details-btn:hover .icon-arrow { transform: translateX(5px); }
html[data-theme="dark"] body #institutions-showcase .inst-view-details-btn {
    background: rgba(242, 106, 27, 0.12) !important;
    color: #FFB27A !important;
    border-color: rgba(242, 106, 27, 0.35) !important;
    box-shadow: none !important;
}

/* ---------------------------------------------------------------------
   7. CARDS — layered depth, glossy sheen, 3D tilt + cursor spotlight
   --------------------------------------------------------------------- */
html body .lrn-card-border,
html body #institutions-showcase .institution-modern-card,
html body .dept-card-box,
html body .dept-feature-card,
html body .dept-syllabus-card,
html body .dept-table-box,
html body .lmasc-card,
html body .facilities-card-box,
html body .contact-wrapper,
html body .announcement-board-box,
html body .accordion-item,
html body .lmgi-counselor-card,
html body .card:not(.swiper-slide) {
    border-radius: var(--lx-r-lg) !important;
}

html[data-theme="light"] .lrn-card-border,
html[data-theme="light"] #institutions-showcase .institution-modern-card,
html[data-theme="light"] .dept-card-box,
html[data-theme="light"] .dept-feature-card,
html[data-theme="light"] .dept-syllabus-card,
html[data-theme="light"] .dept-table-box,
html[data-theme="light"] .lmasc-card,
html[data-theme="light"] .facilities-card-box,
html[data-theme="light"] .contact-wrapper,
html[data-theme="light"] .card:not(.swiper-slide),
body.light-theme .lrn-card-border,
body.light-theme #institutions-showcase .institution-modern-card,
body.light-theme .dept-card-box,
body.light-theme .card:not(.swiper-slide) {
    background-color: var(--lx-surface) !important;
    background-image: var(--lx-grad-sheen) !important;
    border: 1px solid var(--lx-hairline) !important;
    box-shadow: var(--lx-shadow-md) !important;
}

html body .lx-tilt {
    transform-style: preserve-3d;
    transition: transform 0.6s var(--lx-spring-soft), box-shadow 0.5s ease, border-color 0.4s ease !important;
    will-change: transform;
}
html body .lx-tilt.lx-tilting {
    transition: transform 0.12s linear, box-shadow 0.5s ease, border-color 0.4s ease !important;
}
html body .lx-tilt:hover {
    box-shadow: var(--lx-shadow-lg) !important;
    border-color: rgba(242, 106, 27, 0.28) !important;
}
html body .lx-spot { position: relative; }
html body .lx-spot > .lx-spot-layer {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(420px circle at var(--lx-mx, 50%) var(--lx-my, 50%), rgba(255, 154, 60, 0.16), transparent 45%);
}
html body .lx-spot:hover > .lx-spot-layer { opacity: 1; }
html[data-theme="dark"] body .lx-spot > .lx-spot-layer {
    background: radial-gradient(420px circle at var(--lx-mx, 50%) var(--lx-my, 50%), rgba(255, 154, 60, 0.12), transparent 45%);
}
html body .lx-tilt .inst-square-thumb,
html body .lx-tilt .card-img-top,
html body .lx-tilt .dept-photo-box { transform: translateZ(28px); transition: transform 0.6s var(--lx-spring-soft); }
html body .lx-tilt h3,
html body .lx-tilt h4,
html body .lx-tilt .inst-card-title { transform: translateZ(18px); }

/* ---------------------------------------------------------------------
   8. IMAGES & MEDIA
   --------------------------------------------------------------------- */
html body .lmgi-campus-square-thumb,
html body .lmgi-pure-img-card,
html body .academics-img-card,
html body .facilities-img-card,
html body .dept-photo-box,
html body .lmgi-center-video-box {
    border-radius: var(--lx-r-lg) !important;
    overflow: hidden !important;
    box-shadow: var(--lx-shadow-lg) !important;
    transition: transform 0.7s var(--lx-spring-soft), box-shadow 0.5s ease !important;
}
html body .lmgi-campus-square-thumb img,
html body .lmgi-pure-img-card img,
html body .academics-img-card img,
html body .facilities-img-card img,
html body .dept-photo-box img {
    transition: transform 1.2s var(--lx-ease-out), filter 0.6s ease !important;
}
html body .lmgi-campus-square-thumb:hover img,
html body .lmgi-pure-img-card:hover img,
html body .academics-img-card:hover img,
html body .facilities-img-card:hover img,
html body .dept-photo-box:hover img {
    transform: scale(1.07);
    filter: saturate(1.12) contrast(1.03);
}

/* ---------------------------------------------------------------------
   9. FORMS
   --------------------------------------------------------------------- */
html[data-theme="light"] input.form-control,
html[data-theme="light"] textarea.form-control,
html[data-theme="light"] select.form-control,
html[data-theme="light"] .form-select,
html[data-theme="light"] .form-inp input,
html[data-theme="light"] .form-inp textarea,
html[data-theme="light"] .nice-select,
body.light-theme input.form-control,
body.light-theme textarea.form-control,
body.light-theme .nice-select {
    background: #FFFFFF !important;
    border: 1px solid var(--lx-hairline-2) !important;
    border-radius: 14px !important;
    color: var(--lx-ink) !important;
    box-shadow: 0 1px 2px rgba(10, 22, 51, 0.04) inset, 0 1px 0 #fff !important;
    transition: border-color 0.25s ease, box-shadow 0.35s ease, transform 0.4s var(--lx-spring) !important;
}
html body input.form-control:focus,
html body textarea.form-control:focus,
html body .form-select:focus,
html body .form-inp input:focus,
html body .form-inp textarea:focus {
    border-color: var(--lx-saffron) !important;
    box-shadow: 0 0 0 4px rgba(242, 106, 27, 0.14), 0 8px 20px -10px rgba(242, 106, 27, 0.4) !important;
    outline: none !important;
}
html body label { font-weight: 600; letter-spacing: -0.005em; }

/* ---------------------------------------------------------------------
   10. ACCORDION / FAQ & TABLES
   --------------------------------------------------------------------- */
html[data-theme="light"] .accordion-item,
body.light-theme .accordion-item {
    background: var(--lx-surface) !important;
    border: 1px solid var(--lx-hairline) !important;
    box-shadow: var(--lx-shadow-sm) !important;
    overflow: hidden;
    transition: box-shadow 0.4s ease, transform 0.5s var(--lx-spring) !important;
}
html body .accordion-item:hover { transform: translateY(-2px); box-shadow: var(--lx-shadow-md) !important; }
html body .accordion-item:has(.accordion-collapse.show) {
    border-color: rgba(242, 106, 27, 0.3) !important;
    box-shadow: 0 0 0 4px rgba(242, 106, 27, 0.06), var(--lx-shadow-md) !important;
}
html body .accordion-button { font-weight: 700 !important; background: transparent !important; box-shadow: none !important; }
html body .accordion-btn-number {
    background: var(--lx-grad-royal) !important;
    color: #fff !important;
    box-shadow: var(--lx-shadow-royal) !important;
    border: 0 !important;
}
html body .accordion-button:not(.collapsed) .accordion-btn-number { background: var(--lx-grad-brand) !important; box-shadow: var(--lx-shadow-brand) !important; }
html body .accordion-collapse.show .accordion-body { animation: lxFadeUp 0.5s var(--lx-spring) both; }

html body .table-responsive {
    border-radius: var(--lx-r-md);
    box-shadow: var(--lx-shadow-sm);
}
html[data-theme="light"] .table thead th,
body.light-theme .table thead th {
    background: var(--lx-grad-royal) !important;
    color: #fff !important;
    border: 0 !important;
    font-weight: 700;
    letter-spacing: 0.01em;
}
html[data-theme="light"] .table tbody tr:nth-child(even) td { background: #FBF8F3; }
html[data-theme="light"] .table tbody tr { transition: background 0.2s ease; }
html[data-theme="light"] .table tbody tr:hover td { background: #FFF4EA !important; }

/* ---------------------------------------------------------------------
   11. HOME — HERO 3D CAMPUS STAGE
   --------------------------------------------------------------------- */
/* Hero banner (#campus-kml-tour) keeps its ORIGINAL design — only bouncy
   entrance animations are added (see lmgi-premium-home.css). */

html body #institutions-showcase .institution-modern-card .inst-square-thumb {
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 1px 0 #fff inset, 0 10px 24px -10px rgba(10, 22, 51, 0.35), 0 0 0 1px rgba(10,22,51,0.05) !important;
}
html body #institutions-showcase .institution-modern-card .inst-corner-badge {
    background: var(--lx-grad-royal) !important;
    color: #fff !important;
    border-radius: 999px !important;
    box-shadow: 0 6px 14px -6px rgba(28, 58, 140, 0.7) !important;
    letter-spacing: 0.04em;
}
html body #institutions-showcase .institution-modern-card .inst-card-title {
    font-family: var(--lx-font-body) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}
html[data-theme="light"] #institutions-showcase .institution-modern-card .inst-card-tagline,
body.light-theme #institutions-showcase .institution-modern-card .inst-card-tagline { color: var(--lx-muted) !important; }
html body #institutions-showcase .institution-modern-card .lmgi-shortname {
    background: var(--lx-grad-brand-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .announcement-board-box,
body.light-theme .announcement-board-box {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 0 0 1px rgba(10,22,51,0.05), var(--lx-shadow-lg) !important;
}
html body .announcement-board-box .badge.bg-danger {
    background: linear-gradient(135deg, #FF5A5F, #E11D48) !important;
    box-shadow: 0 8px 18px -8px rgba(225, 29, 72, 0.8) !important;
}

html[data-theme="light"] .lrn-cate-wrapper,
body.light-theme .lrn-cate-wrapper {
    background:
        radial-gradient(900px 300px at 50% 0%, rgba(255, 154, 60, 0.10), transparent 70%),
        linear-gradient(180deg, #FFFFFF 0%, #FDFAF5 100%) !important;
    border: 1px solid rgba(255,255,255,0.9) !important;
    border-radius: 40px !important;
    box-shadow: 0 0 0 1px rgba(10,22,51,0.05), 0 40px 100px -40px rgba(10, 22, 51, 0.25) !important;
}
html body .lrn-cate-wrapper .left-dot,
html body .lrn-cate-wrapper .right-dot { opacity: 0.45; }

html body .lmgi-chairman-portrait-wrap { perspective: 1200px; }
html body .lmgi-chairman-portrait {
    transition: transform 0.8s var(--lx-spring-soft) !important;
    filter: drop-shadow(0 30px 40px rgba(10, 22, 51, 0.28));
}
html body .academic-since {
    background: var(--lx-grad-royal) !important;
    border-radius: 22px !important;
    box-shadow: var(--lx-shadow-royal), 0 24px 48px -16px rgba(28, 58, 140, 0.55) !important;
    animation: lxFloat 5s ease-in-out infinite;
}
html body .academic-since * { color: #fff !important; -webkit-text-fill-color: #fff !important; background: none !important; }
html body .academic-since .number { font-family: var(--lx-font-display) !important; font-weight: 700 !important; }
html[data-theme="light"] .overview-right .title,
html[data-theme="light"] .chairman-overview-section .overview-right p {
    font-family: var(--lx-font-display) !important;
    font-style: italic;
    color: var(--lx-ink-2) !important;
}

html body .lmgi-hero-slider-wrapper .lmgi-hero-slider-swiper {
    border-radius: var(--lx-r-xl) !important;
    box-shadow: 0 2px 4px rgba(10,22,51,0.06), 0 40px 80px -30px rgba(10, 22, 51, 0.45) !important;
}
html body .lmgi-slider-bottom-bar {
    background: rgba(10, 22, 51, 0.55) !important;
    backdrop-filter: blur(14px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}
html body .lmgi-slider-arrow {
    transition: transform 0.45s var(--lx-spring), background 0.3s ease !important;
}
html body .lmgi-slider-arrow:hover { transform: scale(1.15); background: var(--lx-saffron) !important; }

html body .lrn-teacher-card {
    border-radius: 28px !important;
    overflow: hidden;
    transition: transform 0.7s var(--lx-spring-soft), box-shadow 0.5s ease !important;
}
html[data-theme="light"] .lrn-teacher-card,
body.light-theme .lrn-teacher-card {
    background: linear-gradient(180deg, #F3EEE6 0%, #FFFFFF 70%) !important;
    box-shadow: 0 0 0 1px rgba(10,22,51,0.05), var(--lx-shadow-md) !important;
}
html body .lrn-teacher-card:hover { box-shadow: 0 0 0 1px rgba(242,106,27,0.2), var(--lx-shadow-lg) !important; }
html body .lrn-teacher-card .designation {
    max-width: calc(100% - 20px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    white-space: normal !important;
    line-height: 1.35 !important;
}
html body .lrn-teacher-card img { transition: transform 1s var(--lx-ease-out) !important; }
html body .lrn-teacher-card:hover img { transform: scale(1.05) translateY(-4px); }

html body .lmgi-c-vid-btn {
    border-radius: 999px !important;
    transition: transform 0.45s var(--lx-spring), background 0.3s ease !important;
}
html body .lmgi-c-vid-btn.active { background: var(--lx-grad-brand) !important; box-shadow: var(--lx-shadow-brand) !important; }
html body .lmgi-c-vid-btn:hover { transform: scale(1.06); }
html body .lmgi-center-play-pulse {
    background: rgba(255,255,255,0.22) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.45) !important;
}

/* testimonials — the slider itself becomes one elevated card */
html[data-theme="light"] .lrn-testimonial-slider,
body.light-theme .lrn-testimonial-slider {
    background:
        radial-gradient(500px 220px at 100% 0%, rgba(255, 154, 60, 0.12), transparent 70%),
        #FFFFFF !important;
    border: 1px solid var(--lx-hairline) !important;
    border-radius: var(--lx-r-xl) !important;
    box-shadow: var(--lx-shadow-lg) !important;
}
html[data-theme="light"] .lrn-testimonial-right,
body.light-theme .lrn-testimonial-right { background: transparent !important; }
html[data-theme="light"] .lrn-testimonial-card,
body.light-theme .lrn-testimonial-card {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
html body .lrn-testimonial-card .auth img {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(242, 106, 27, 0.35), 0 10px 20px -8px rgba(10,22,51,0.4) !important;
}

/* giant outline marquee text */
html[data-theme="light"] .lrn-marquee-text {
    -webkit-text-stroke-color: rgba(10, 22, 51, 0.18) !important;
}

html[data-theme="light"] .lrn-rolling-showcase-section,
body.light-theme .lrn-rolling-showcase-section {
    --showcase-bg: #F4EEE4;
    --showcase-fade-start: #F4EEE4;
    --showcase-fade-mid: rgba(244, 238, 228, 0.88);
}
html body .lrn-marquee-square {
    border-radius: 24px !important;
    box-shadow: 0 2px 4px rgba(10,22,51,0.06), 0 24px 40px -18px rgba(10, 22, 51, 0.45) !important;
    transition: transform 0.6s var(--lx-spring) !important;
}
html body .lrn-marquee-item:hover .lrn-marquee-square,
html body .lrn-marquee-square:hover { transform: translateY(-8px) rotate(-1.2deg) scale(1.03); }

/* ---------------------------------------------------------------------
   12. INNER PAGES
   --------------------------------------------------------------------- */
html[data-theme="light"] .lrn-breadcrumb-default,
body.light-theme .lrn-breadcrumb-default {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(600px 260px at 85% 20%, rgba(242, 106, 27, 0.35), transparent 70%),
        radial-gradient(700px 300px at 10% 90%, rgba(53, 88, 212, 0.45), transparent 70%),
        linear-gradient(135deg, #0A1633 0%, #13286B 55%, #0A1633 100%) !important;
    border-bottom: 0 !important;
}
html body .lrn-breadcrumb-default::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
html body .lrn-breadcrumb-default > * { position: relative; z-index: 1; }

html body .dept-section-title { font-family: var(--lx-font-display) !important; font-weight: 600 !important; letter-spacing: -0.02em !important; }
html body .sc-list-icon,
html body .sc-icon-wrapper {
    border-radius: 14px !important;
    transition: transform 0.5s var(--lx-spring) !important;
}
html body *:hover > .sc-icon-wrapper,
html body *:hover > .sc-list-icon { transform: rotate(-8deg) scale(1.1); }

html body .badge.rounded-pill { letter-spacing: 0.02em; }

/* ---------------------------------------------------------------------
   13. COUNSELOR CTA & FOOTER — deep royal night in both themes
   --------------------------------------------------------------------- */
html[data-theme] body .lmgi-counselor-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(500px 240px at 15% 0%, rgba(242, 106, 27, 0.35), transparent 70%),
        radial-gradient(600px 300px at 100% 100%, rgba(53, 88, 212, 0.45), transparent 70%),
        linear-gradient(135deg, #0A1633 0%, #13286B 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 36px !important;
    box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 50px 100px -40px rgba(10, 22, 51, 0.7) !important;
}
html[data-theme] body .lmgi-counselor-card .lmgi-counselor-title,
html[data-theme] body .lmgi-counselor-card .lmgi-counselor-title .title-dark,
html[data-theme] body .lmgi-counselor-card .lmgi-counselor-title .title-dark * { color: #fff !important; -webkit-text-fill-color: #fff !important; }
html[data-theme] body .lmgi-counselor-card .lmgi-counselor-title .title-orange,
html[data-theme] body .lmgi-counselor-card .lmgi-counselor-title .title-orange * { --lx-accent-ink: #FFA25C; color: #FFA25C !important; -webkit-text-fill-color: #FFA25C !important; }
html[data-theme] body .lmgi-counselor-card .lmgi-counselor-desc { color: rgba(255,255,255,0.78) !important; -webkit-text-fill-color: rgba(255,255,255,0.78) !important; }
html[data-theme] body .lmgi-counselor-card .lmgi-counselor-badge {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.18) !important;
    color: #FFC48E !important;
    box-shadow: none !important;
}
html[data-theme] body .lmgi-counselor-card .lmgi-counselor-badge *,
html[data-theme] body .lmgi-counselor-card .lmgi-counselor-badge i { color: #FFC48E !important; }
html[data-theme] body .lmgi-counselor-card .lmgi-counselor-pill {
    background: rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    color: rgba(255,255,255,0.9) !important;
    border-radius: 999px !important;
    backdrop-filter: blur(6px);
}
html[data-theme] body .lmgi-counselor-card .lmgi-counselor-pill:not(#lx),
html[data-theme] body .lmgi-counselor-card .lmgi-counselor-pill:not(#lx) *:not(i) { color: rgba(255,255,255,0.9) !important; -webkit-text-fill-color: rgba(255,255,255,0.9) !important; }
html[data-theme] body .lmgi-counselor-card .lmgi-counselor-pill i { color: #FFB547 !important; }
html[data-theme] body .lmgi-counselor-card .lmgi-btn-portal {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.28) !important;
    box-shadow: none !important;
}
html[data-theme] body .lmgi-counselor-card .lmgi-btn-portal:hover { background: #fff !important; color: var(--lx-ink) !important; }

html body .lrn-footer,
html body .lrn-footer.bg-color-dark-100 {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(800px 360px at 0% 0%, rgba(53, 88, 212, 0.30), transparent 70%),
        radial-gradient(700px 320px at 100% 100%, rgba(242, 106, 27, 0.20), transparent 70%),
        linear-gradient(180deg, #0B1838 0%, #060C20 100%) !important;
    border-top: 0 !important;
    border-radius: 44px 44px 0 0;
    margin-top: 40px;
}
html body .lrn-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(180deg, #000, transparent 80%);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
}
html body .lrn-footer > * { position: relative; z-index: 1; }
html body .lrn-footer,
html body .lrn-footer p,
html body .lrn-footer li,
html body .lrn-footer span,
html body .lrn-footer .color-secondary-700,
html[data-theme="light"] .lrn-footer .color-secondary-700,
body.light-theme .lrn-footer .color-secondary-700 { color: rgba(226, 232, 245, 0.72) !important; }
html body .lrn-footer .color-secondary-100,
html body .lrn-footer .h5,
html body .lrn-footer h5,
html[data-theme="light"] .lrn-footer .color-secondary-100,
body.light-theme .lrn-footer .color-secondary-100 { color: #FFFFFF !important; }
html body .lrn-footer .footer-widget .h5,
html body .lrn-footer .footer-widget .title {
    font-family: var(--lx-font-display) !important;
    font-weight: 600 !important;
    font-size: 21px !important;
    letter-spacing: -0.01em;
}
html body .lrn-footer a { transition: color 0.25s ease, transform 0.4s var(--lx-spring), padding 0.35s var(--lx-spring) !important; }
html body .lrn-footer .lrn-footer-item a,
html body .lrn-footer ul li a { color: rgba(226, 232, 245, 0.72) !important; }
html body .lrn-footer .lrn-footer-item a:hover,
html body .lrn-footer ul li a:hover { color: #FFB27A !important; padding-left: 6px; }
html body .lrn-footer .lrn-social-link a {
    width: 42px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 14px !important;
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: #fff !important;
}
html body .lrn-footer .lrn-social-link a i { color: #fff !important; }
html body .lrn-footer .lrn-social-link a:hover {
    background: var(--lx-grad-brand) !important;
    border-color: transparent !important;
    transform: translateY(-4px) rotate(-6deg) scale(1.08);
    box-shadow: var(--lx-shadow-brand) !important;
}
html body .lrn-footer .copyright-area { border-top: 1px solid rgba(255,255,255,0.08) !important; }
html body .lrn-footer .copyright-area,
html body .lrn-footer .copyright-area * { color: rgba(226, 232, 245, 0.6) !important; }

/* ---------------------------------------------------------------------
   14. FLOATING WIDGETS
   --------------------------------------------------------------------- */
html body .lmgi-floating-enquiry-btn {
    background: var(--lx-grad-brand) !important;
    border-radius: 18px 0 0 18px !important;
    box-shadow: -10px 14px 30px -10px rgba(242, 106, 27, 0.7) !important;
    transition: transform 0.5s var(--lx-spring), padding 0.4s var(--lx-spring) !important;
}
html body .lmgi-floating-enquiry-btn:hover { transform: translateX(-4px) scale(1.04); }

html body .theme-switch-widget .theme-toggle-btn,
html body .theme-toggle-btn {
    transition: transform 0.5s var(--lx-spring) !important;
}
html body .theme-switch-widget .theme-toggle-btn:hover { transform: scale(1.08); }
html[data-theme="light"] .theme-switch-widget .theme-toggle-btn {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(12px);
    box-shadow: var(--lx-shadow-md) !important;
    border: 1px solid rgba(255,255,255,0.9) !important;
}

html body .rbt-progress-parent,
html body .rbt-back-circle { transition: transform 0.5s var(--lx-spring) !important; }

html[data-theme="light"] .lrn-preloader,
body.light-theme .lrn-preloader {
    background: radial-gradient(circle at 50% 45%, #FFFFFF 0%, #FBF8F3 55%, #F4EEE4 100%) !important;
}

/* ---------------------------------------------------------------------
   15. MOTION — bouncy reveals (re-tunes the existing reveal system)
   --------------------------------------------------------------------- */
html body .sc-reveal,
html body .reveal-up,
html body .reveal-on-scroll {
    transform: translateY(48px) scale(0.96);
    transition: opacity 0.7s var(--lx-ease-out), transform 1s var(--lx-spring-soft) !important;
}
html body .reveal-left { transform: translateX(-46px) rotateY(8deg) scale(0.96); transition: opacity 0.7s var(--lx-ease-out), transform 1s var(--lx-spring-soft) !important; }
html body .reveal-right { transform: translateX(46px) rotateY(-8deg) scale(0.96); transition: opacity 0.7s var(--lx-ease-out), transform 1s var(--lx-spring-soft) !important; }
html body .reveal-scale { transform: scale(0.86) translateY(20px); transition: opacity 0.7s var(--lx-ease-out), transform 1s var(--lx-spring) !important; }

html body .lx-rise { opacity: 0; transform: translateY(34px) scale(0.98); filter: blur(6px); }
html body .lx-rise.lx-in {
    opacity: 1;
    transform: none;
    filter: none;
    transition: opacity 0.8s var(--lx-ease-out), transform 1.1s var(--lx-spring), filter 0.8s ease;
}
html body .lx-pop { opacity: 0; transform: scale(0.6); }
html body .lx-pop.lx-in { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.9s var(--lx-spring); }

@keyframes lxFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes lxFadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------
   16. ACCESSIBILITY — respect reduced motion
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lx-orb, html body .topbar, html body .academic-since { animation: none !important; }
    html body .lx-rise, html body .lx-pop { opacity: 1 !important; transform: none !important; filter: none !important; }
    html body .lx-tilt { transform: none !important; }
}

/* =====================================================================
   17. LIGHT / DARK THEME PARITY — readability fixes found in the site audit
   (text that was too faint or invisible in one of the two themes).
   The hero banner (#campus-kml-tour) is intentionally left untouched.
   ===================================================================== */

/* Bootstrap has no .bg-opacity-20 — those badges rendered as solid blocks hiding their text (both themes) */
.bg-opacity-20 { --bs-bg-opacity: 0.2 !important; }

/* ---------- LIGHT THEME ---------- */
html[data-theme="light"] body .text-success:not(#lx):not(#campus-kml-tour *) { color: #15803D !important; }
html[data-theme="light"] body .text-info:not(#lx):not(#campus-kml-tour *) { color: #0E7490 !important; }
html[data-theme="light"] body .text-warning:not(#lx):not(#campus-kml-tour *) { color: #B45309 !important; }
html[data-theme="light"] body .badge.text-white:not(#lx).bg-danger { color: #FFFFFF !important; }

/* brand-orange text on light surfaces → deeper orange that stays readable */
html[data-theme="light"] body :is(.color-primary-100, .phone-link-btn, .fees-accordion-num, .designation-badge, .cert-badge-lmec, th):not(#lx):not(#campus-kml-tour *):not(.lrn-footer *):not(.lmgi-counselor-card *):not(.lrn-breadcrumb-default *) { color: #C2410C !important; }
html[data-theme="light"] body .table thead th:not(#lx) { color: #FFFFFF !important; }
html[data-theme="light"] body .lrn-header .lrn-menu-item > li > .lrn-menu-link.active:not(#lx),
html[data-theme="light"] body .lrn-header .has-dropdown.active > .lrn-menu-link:not(#lx) { color: #C2410C !important; }
html[data-theme="light"] body .accordion-btn-number:not(#lx) { background: var(--lx-grad-royal) !important; color: #FFFFFF !important; }

/* tinted badges: text must be darker than its own tint */
html[data-theme="light"] body .dept-badge:not(#lx) { color: #047857 !important; }
html[data-theme="light"] body .badge.bg-success.bg-opacity-25:not(#lx) { color: #166534 !important; }
html[data-theme="light"] body .badge.bg-primary.bg-opacity-25:not(#lx) { color: #1E3A8A !important; }
html[data-theme="light"] body .badge.bg-secondary.bg-opacity-25:not(#lx) { color: #334155 !important; }
html[data-theme="light"] body .badge.bg-warning.bg-opacity-25:not(#lx) { color: #92400E !important; }
html[data-theme="light"] body .badge.bg-info.bg-opacity-25:not(#lx) { color: #155E75 !important; }
html[data-theme="light"] body .bg-warning-subtle.text-warning:not(#lx) { color: #92400E !important; }
html[data-theme="light"] body .bg-primary-subtle.text-primary:not(#lx) { color: #1E40AF !important; }
html[data-theme="light"] body .tour-badge:not(#lx) { color: #1D4ED8 !important; }
html[data-theme="light"] body .cert-badge-lmpc:not(#lx) { color: #047857 !important; }
html[data-theme="light"] body .cert-badge-lmasc:not(#lx) { color: #0369A1 !important; }
html[data-theme="light"] body :is(.intake-seat-badge, .admission-year-badge, .admission-vm-badge.mission-badge):not(#lx) { color: #9A3412 !important; }
html[data-theme="light"] body :is(.admission-inst-pill, .admission-vm-badge.vision-badge):not(#lx) { color: #075985 !important; }
html[data-theme="light"] body .qp-status-badge:not(#lx) { color: #065F46 !important; }

/* leftovers from the dark design that turned invisible on light cards */
html[data-theme="light"] body .dept-feature-card .text-white:not(#lx) { color: var(--lx-ink) !important; }
html[data-theme="light"] body .lrn-campus-2-card .title a:not(#lx) { color: var(--lx-ink) !important; }
html[data-theme="light"] body .lrn-campus-2-card .title a:not(#lx):hover { color: #C2410C !important; }

/* ---------- DARK THEME ---------- */
html[data-theme="dark"] body .badge.text-dark:not(#lx),
html[data-theme="dark"] body .bg-warning.text-dark:not(#lx),
html[data-theme="dark"] body .bg-info.text-dark:not(#lx) { color: #0B1220 !important; }
html[data-theme="dark"] body .badge.bg-light:not(#lx) { color: #334155 !important; }
html[data-theme="dark"] body .bg-primary-subtle:not(#lx) { background: rgba(59, 130, 246, 0.18) !important; color: #93C5FD !important; }
html[data-theme="dark"] body .bg-warning-subtle:not(#lx) { background: rgba(245, 158, 11, 0.18) !important; color: #FCD34D !important; }
html[data-theme="dark"] body .bg-danger-subtle:not(#lx) { background: rgba(239, 68, 68, 0.18) !important; color: #FCA5A5 !important; }
html[data-theme="dark"] body .bg-success-subtle:not(#lx) { background: rgba(34, 197, 94, 0.18) !important; color: #86EFAC !important; }
html[data-theme="dark"] body .badge.bg-success.bg-opacity-25:not(#lx) { color: #86EFAC !important; }
html[data-theme="dark"] body .badge.bg-primary.bg-opacity-25:not(#lx) { color: #93C5FD !important; }

/* ---------- BOTH THEMES: buttons with weak contrast ---------- */
html body .btn-teal:not(#lx) { background-color: #0F766E !important; border-color: #0F766E !important; color: #fff !important; }
html body a.btn[href*="wa.me"]:not(#lx), html body a.btn[href*="whatsapp"]:not(#lx) { background-color: #128C4A !important; border-color: #128C4A !important; color: #fff !important; }

/* theme-aware values for colours that pages set inline */
:root, html[data-theme="dark"] { --lm-orange-text: #FF7A00; --lm-green-text: #4ade80; }
html[data-theme="light"] { --lm-orange-text: #C2410C; --lm-green-text: #15803D; }

/* course pages: card titles hard-coded white (dark-design leftover) on light cards */
html[data-theme="light"] body :is(.dept-card-box, .dept-feature-card, .dept-syllabus-card) .text-white:not(#lx) { color: var(--lx-ink) !important; }

/* dark theme: header Contact button orange was too light for its white label */
html[data-theme="dark"] body .lrn-header .lrn-btn-primary:not(#lx),
html[data-theme="dark"] body .lrn-header .lrn-btn-primary:not(#lx) .btn-text { background-color: #E35A00 !important; }

/* 18. MOBILE — institution title badge (inline min-width 480px overflowed phones) */
@media (max-width: 575.98px) {
    html body .academics-school-badge:not(#lx) {
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 12px 18px !important;
        font-size: 1rem !important;
        gap: 10px !important;
        letter-spacing: .04em !important;
    }
}
