/* --- Global Institutional Design Tokens --- */
:root {
    --brand-purple: #2E2463;
    /* Core Corporate Identity */
    --brand-red: #E31D2B;
    /* Editorial & Highlight Accent */
    --royal-gold: #C5A059;
    /* Premium Status Accent */
    --slate-dark: #151518;
    /* High-contrast Structural Typography */
    --slate-muted: #5A6065;
    /* Secondary Meta Information */
    --surface-light: #F8F9FA;
    /* Smooth Background Tones */
}

/* --- Global Typographic System --- */
body {
    font-family: 'Montserrat', sans-serif;
    color: var(--slate-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Elegant Editorial Serif for Institutional Headings */
h1,
h2,
h3,
h4,
.institutional-title {
    font-family: 'Playfair Display', serif;
    color: var(--brand-purple);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Clean, Readable Sans-Serif for Functional UI Components */
.nav-link,
.btn,
.meta-text,
.dropdown-item {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.03em;
}

:root {
    --brand-purple: #2E2463;
    --brand-red: #E31D2B;
    --text-dark: #1E1E24;
    --text-muted: #5F6368;
    --bg-light: #F8F9FA;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
}

/* --- Elite Accreditation Header Top Bar --- */
.header-top {
    background-color: #ffffff;
    padding: 12px 0;
    border-bottom: 1px solid #EAEAEA;
}

.accreditation-text {
    font-size: 12px;
    font-weight: 500;
    color: #4A607A;
    line-height: 1.5;
    text-align: right;
    margin: 0;
}

.accreditation-text span {
    color: var(--brand-red);
    margin: 0 6px;
    font-weight: 700;
}

/* --- Modern Premium Navigation Bar --- */
.navbar-main-strip {
    background-color: #ffffff !important;
    border-bottom: 3px solid var(--brand-purple);
    padding: 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* Enforce complete layout synchronization */
.navbar-nav {
    width: 100%;
    align-items: center;
}

.navbar-nav .nav-item {
    position: static !important;
    /* CRITICAL FIX: Stops dropdowns from breaking box alignment */
}

.navbar-nav .nav-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-purple) !important;
    padding: 22px 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s ease-in-out;
    position: relative;
}

/* Smooth premium bottom accent line on hover */
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 3px;
    background-color: var(--brand-red);
    transform: scaleX(0);
    transition: transform 0.25s ease-in-out;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .dropdown:hover .nav-link::after {
    transform: scaleX(1);
}

.navbar-nav .nav-link:hover {
    color: var(--brand-red) !important;
}

/* --- Absolute Alignment Mega Menu Container Fix --- */
.navbar-nav .dropdown-mega .dropdown-menu {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    margin-top: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    border-top: 4px solid var(--brand-red) !important;
    background-color: #ffffff !important;
    box-shadow: 0 15px 35px rgba(46, 36, 99, 0.12) !important;
    padding: 35px 0 !important;
}

/* Desktop Smooth Hover Logic instead of basic click triggers */
@media (min-width: 992px) {
    .dropdown-mega:hover .dropdown-menu {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Menu Card Content Typography */
.mega-col-title {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-purple);
    border-bottom: 2px solid #EAEAEA;
    padding-bottom: 6px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mega-col-link {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 0;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mega-col-link:hover {
    color: var(--brand-red);
    transform: translateX(4px);
}

/* --- Premium Integrated Action Menu Trigger Button --- */
.btn-sidebar-trigger {
    background-color: var(--brand-purple);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 22px 24px !important;
    border-radius: 0;
    border: none;
    text-transform: uppercase;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    height: 100%;
}

.btn-sidebar-trigger:hover {
    background-color: var(--brand-red);
}

/* --- Offcanvas Navigation Sidebar Architecture --- */
.offcanvas {
    width: 380px !important;
    background-color: #ffffff;
    border-left: 4px solid var(--brand-red);
}

.offcanvas-header {
    background-color: var(--brand-purple);
    color: #ffffff;
    padding: 20px;
}

.drawer-tree-link {
    display: block;
    padding: 14px 20px;
    color: var(--brand-purple);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #F0F0F2;
    font-size: 13px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.drawer-tree-link:hover {
    background-color: var(--bg-light);
    color: var(--brand-red);
    padding-left: 25px;
}

.accordion-button {
    font-weight: 600;
    color: var(--brand-purple) !important;
    font-size: 13px;
    background-color: #ffffff !important;
    box-shadow: none !important;
    border-bottom: 1px solid #F0F0F2 !important;
    border-radius: 0 !important;
    padding: 14px 20px;
    text-transform: uppercase;
}

.accordion-button:not(.collapsed) {
    color: var(--brand-red) !important;
    background-color: var(--bg-light) !important;
}

.accordion-body {
    padding: 10px 0 15px 25px;
    background-color: #FAFAFB;
}

.sub-tree-link {
    display: block;
    padding: 7px 20px;
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.sub-tree-link:hover {
    color: var(--brand-red);
    transform: translateX(4px);
}

/* Mobile Layout Configuration Override */
@media (max-width: 991.98px) {
    .navbar-nav {
        align-items: stretch;
        padding: 15px 0;
    }

    .navbar-nav .nav-link {
        padding: 12px 20px !important;
        color: var(--brand-purple) !important;
    }

    .navbar-nav .dropdown-mega .dropdown-menu {
        position: relative !important;
        width: 100% !important;
        padding: 15px !important;
    }

    .btn-sidebar-trigger {
        width: 100%;
        justify-content: center;
        padding: 14px !important;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }
}

/* Ensure container handles flex layout properly */
.navbar>.container {
    display: flex !important;
    flex-wrap: inherit;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Clear vertical list default rendering leakage */
@media (max-width: 991.98px) {
    .navbar-collapse {
        display: none !important;
        /* Block standard unaligned stacking lists entirely */
    }

    .navbar-brand img {
        height: 48px !important;
        /* Scale logo appropriately for smaller viewports */
    }
}

/* --- Intelligent Container Constraints --- */

/* Fix: If a dropdown has 2 columns (e.g., Facilities, Programmes) */
.navbar-nav .dropdown-mega-medium .dropdown-menu {
    width: 650px !important;
    left: auto !important;
    right: 0 !important;
    /* Aligns neatly to the right edge of the tab zone */
    border-top: 4px solid #E31D2B !important;
    border-radius: 0;
    padding: 25px !important;
    box-shadow: 0 15px 35px rgba(46, 36, 99, 0.12) !important;
}

/* Fix: If a dropdown has only 1 column (e.g., standard fallback dropdown) */
.navbar-nav .dropdown-mega-small .dropdown-menu {
    width: 320px !important;
    left: auto !important;
    right: 0 !important;
    border-top: 4px solid #E31D2B !important;
    border-radius: 0;
    padding: 20px !important;
}

/* Keep only complex matrices like COMMITTEES full width */
.navbar-nav .dropdown-mega-full .dropdown-menu {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
}

/* --- Global Hover Display Engine for Desktop Views (min-width: 992px) --- */
@media (min-width: 992px) {

    /* Triggers the menu container display state smoothly when any mega class variant is hovered */
    .dropdown-mega:hover .dropdown-menu,
    .dropdown-mega-full:hover .dropdown-menu,
    .dropdown-mega-medium:hover .dropdown-menu,
    .dropdown-mega-small:hover .dropdown-menu {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* --- Master-Level Edge-to-Edge Hover Engine --- */
@media (min-width: 992px) {

    /* 1. Reset item container limits to absolute page constraints */
    .navbar-main-strip .dropdown {
        position: static !important;
    }

    /* 2. Extend dropdown surface edge-to-edge seamlessly */
    .navbar-main-strip .dropdown-menu {
        width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        top: 100% !important;
        margin-top: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        border-top: 4px solid #E31D2B !important;
        /* Premium Red Border Line Accent */
        background-color: #ffffff !important;
        box-shadow: 0 25px 50px rgba(46, 36, 99, 0.1) !important;
        padding: 45px 0 !important;
        /* Elegant vertical breathing space */

        /* Layout Initialization Hidden Default States */
        display: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
        transform: translateY(8px);
    }

    /* 3. Pure Hover Activation Matrix */
    .navbar-main-strip .dropdown:hover .dropdown-menu {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Premium Typography Link Style Enhancements */
.nav-link-premium {
    font-size: 13px;
    font-weight: 700;
    color: #2E2463;
    letter-spacing: 0.3px;
    transition: color 0.2s ease-in-out;
}

.nav-link-premium:hover {
    color: #E31D2B !important;
}

/* --- Master Premium Footer Layer Configuration --- */


/* CRITICAL FIX: Premium Dark Radial/Linear Combo Mask overlay.
  This darkens the background photo smoothly just enough so that white text shines with 100% readability.
*/
.footer-overlay {
    background: linear-gradient(180deg, rgba(15, 15, 22, 0.94) 0%, rgba(10, 10, 14, 0.98) 100%);
    padding: 80px 0 0 0;
    width: 100%;
}

/* --- Typography Readability Overrides --- */
.site-footer h6.footer-heading {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF !important;
    /* Force heading white */
    position: relative;
    padding-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-footer h6.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background-color: #E31D2B;
    /* Brand red underline accent line */
}

/* Force links text to contrast highly against dark overlay screen */
.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list li a {
    font-size: 13.5px;
    color: #C5C7D0 !important;
    /* Premium light silver-grey color for rich reading */
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: all 0.25s ease-in-out;
}

.footer-links-list li a:hover {
    color: #FFFFFF !important;
    /* Pure white text glow on hover */
    transform: translateX(6px);
}

.footer-links-list li a i {
    font-size: 10px;
    color: #E31D2B !important;
    /* Vibrant Red arrow indicator pointer icon */
    margin-right: 8px;
}

/* Contact Info Copy Settings */
.contact-meta-zone p,
.contact-meta-zone span {
    font-size: 13.5px;
    color: #C5C7D0 !important;
    line-height: 1.6;
}

.contact-meta-zone strong {
    color: #FFFFFF !important;
    font-size: 14px;
}

/* High-End Map Container Wrapper Styling Frame */
.footer-map-container {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    margin-top: 15px;
    background: #1A1A24;
}

/* Premium Responsive Media Adjustments for Mobile / Tablets Viewports */
@media (max-width: 991px) {
    .parallax-footer-bg {
        background-attachment: scroll !important;
        /* Fixes choppy scrolling lag on iOS and Android devices */
    }

    .footer-overlay {
        padding: 60px 0 0 0;
    }

    .site-footer .col-md-6 {
        margin-bottom: 20px;
        /* Gives beautiful breathing vertical gaps as columns fold stack natively on mobile phones */
    }
}




/* --- High-End Aspect Ratio Slider Engine --- */
.hero-slider-section {
    width: 100%;
    background-color: #ffffff;
    /* Removed full black background */
    overflow: hidden;
}

.institutional-hero-swiper {
    width: 100%;
    /* Computes the exact height system proportionally based on your 1409x290 layout dimensions */
    max-width: 1409px;
    height: auto;
    margin: 0 auto;
}

.hero-slide-item {
    width: 100%;
    height: auto;
}

/* Force crisp, un-stretched rendering of your asset graphics */
.banner-render-engine {
    width: 100%;
    height: auto;
    max-height: 590px;
    object-fit: contain;
    display: block;
}

/* Premium Minimalist Swiper Navigation UI Tweaks */
.custom-swiper-nav {
    color: #2E2463 !important;
    /* Brand purple arrow indicators */
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(46, 36, 99, 0.2);
    border-radius: 50%;
    transition: all 0.2s ease-in-out;
}

.custom-swiper-nav::after {
    font-size: 16px;
    font-weight: 700;
}

.custom-swiper-nav:hover {
    background: #E31D2B;
    color: #ffffff !important;
    border-color: #E31D2B;
}

.custom-swiper-pagination {
    bottom: 15px !important;
}

.custom-swiper-pagination .swiper-pagination-bullet {
    background: #2E2463 !important;
    opacity: 0.4;
}

.custom-swiper-pagination .swiper-pagination-bullet-active {
    background: #E31D2B !important;
    opacity: 1;
    width: 20px;
    border-radius: 4px;
    transition: width 0.2s ease;
}

/* Mobile Layout Configuration Scaling Override */
@media (max-width: 991.98px) {
    .institutional-hero-swiper {
        padding: 0;
    }

    .custom-swiper-nav {
        display: none !important;
        /* Hides bulky arrows on mobile screens for a cleaner viewport */
    }
}

/* --- High-End Edge-to-Edge Banner Configuration --- */
.hero-slider-section {
    width: 100% !important;
    background-color: #ffffff;
    padding: 0 !important;
    margin: 0 !important;
}

.institutional-hero-swiper {
    width: 100% !important;
    height: auto !important;
}

.hero-slide-item {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Senior Dev Fix: Using object-fit: cover and explicitly calculating the exact 
   aspect ratio aspect framework based on your 1409x290 image dimensions.
*/
.banner-render-engine {
    width: 100% !important;
    height: auto !important;
    /* Sets precise proportional bounding constraints */
    min-height: 250px;
    max-height: 590px;
    object-fit: cover;
    display: block;
}

/* Custom Minimalist Navigation UI Controls */
.custom-swiper-nav {
    color: #2E2463 !important;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(46, 36, 99, 0.15);
    border-radius: 50%;
    transition: all 0.2s ease-in-out;
}

.custom-swiper-nav::after {
    font-size: 14px !important;
    font-weight: 700;
}

.custom-swiper-nav:hover {
    background: #E31D2B;
    color: #ffffff !important;
    border-color: #E31D2B;
}

.custom-swiper-pagination {
    bottom: 12px !important;
}

.custom-swiper-pagination .swiper-pagination-bullet {
    background: #2E2463 !important;
    opacity: 0.3;
}

.custom-swiper-pagination .swiper-pagination-bullet-active {
    background: #E31D2B !important;
    opacity: 1;
    width: 18px;
    border-radius: 4px;
    transition: width 0.2s ease;
}

/* Mobile Responsiveness Configuration Overrides */
@media (max-width: 991.98px) {
    .banner-render-engine {
        min-height: 180px;
        /* Keeps the banner readable on small device screen heights without flattening it */
        object-fit: fill;
        /* Ensures content details aren't clipped out on mobile edges */
    }

    .custom-swiper-nav {
        display: none !important;
        /* Cleaner touch screen viewport profile */
    }
}

/* --- High-End Institutional Pillars Framework --- */
.pillar-card {
    background: #ffffff;
    border: 1px solid #EAECEF;
    border-radius: 0px;
    /* Sharp corners for professional law theme */
    padding: 40px 30px;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* Subtle top line indicator that activates on hover */
.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #E31D2B;
    /* Brand Red */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(46, 36, 99, 0.08);
    border-color: transparent;
}

.pillar-card:hover::before {
    transform: scaleX(1);
}

/* Elegant typography for icons */
.pillar-icon-box {
    width: 50px;
    height: 50px;
    background-color: #FAFAFC;
    color: #2E2463;
    /* Brand Purple */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.pillar-card:hover .pillar-icon-box {
    background-color: #2E2463;
    color: #ffffff;
}

.pillar-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #2E2463;
}

/* --- High-End Legacy & Milestone Section --- */
.legacy-section {
    background-color: #F8F9FA;
    position: relative;
}

/* Image framing for the founder card */
.founder-card-wrapper {
    position: relative;
    background: #2E2463;
    /* Brand Purple Container */
    padding: 20px;
    box-shadow: 0 20px 40px rgba(46, 36, 99, 0.08);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.founder-card-wrapper:hover {
    transform: translateY(-5px);
}

.founder-img-container {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.founder-img-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.founder-card-wrapper:hover .founder-img-container img {
    transform: scale(1.03);
}

/* Elegant geometric overlapping background layout accent block */
.gold-accent-geometry {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 120px;
    height: 120px;
    border-bottom: 4px solid #C5A059;
    /* Royal Gold */
    border-right: 4px solid #C5A059;
    z-index: 1;
    pointer-events: none;
}

/* Milestone text highlight badge */
.status-badge-premium {
    background: #E31D2B;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 16px;
    display: inline-block;
    margin-bottom: 20px;
}

/* Micro-stats cards on the right */
.mini-metric-box {
    border-left: 3px solid #E31D2B;
    padding-left: 15px;
    margin-bottom: 20px;
}

.mini-metric-number {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: #2E2463;
    line-height: 1.2;
}

.mini-metric-label {
    font-size: 12px;
    font-weight: 600;
    color: #5F6368;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- High-End Institutional About Section --- */
.about-portal-section {
    background-color: #F8F9FA;
    position: relative;
    overflow: hidden;
}

/* Premium Profile Picture Framing System */
.heritage-frame-box {
    position: relative;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #EAEAEA;
    box-shadow: 0 20px 45px rgba(46, 36, 99, 0.05);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.heritage-frame-box:hover {
    transform: translateY(-6px);
}

.profile-avatar-container {
    position: relative;
    background: linear-gradient(135deg, #FDFBF7 0%, #F5F1E6 100%);
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.profile-avatar-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.heritage-frame-box:hover .profile-avatar-container img {
    transform: scale(1.02);
}

/* Floating Benchmark Crest Badge */
.establishment-badge-tag {
    position: absolute;
    top: -10px;
    left: -10px;
    background-color: #2E2463;
    /* Brand Purple */
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 8px 16px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(46, 36, 99, 0.2);
    z-index: 10;
}

/* Decorative structural background lines */
.geometric-bg-accent {
    position: absolute;
    top: 20%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(46, 36, 99, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

/* High-End Micro-Interactions for Action Controls */
.btn-premium-action {
    background-color: #E31D2B;
    /* Brand Red */
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 14px 35px;
    border-radius: 0;
    border: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(227, 29, 43, 0.15);
}

.btn-premium-action:hover {
    background-color: #2E2463;
    /* Transitions smoothly to brand purple */
    box-shadow: 0 6px 20px rgba(46, 36, 99, 0.2);
    transform: translateY(-2px);
}

/* Forces consistent alignment inside institutional feature cards */
.pillar-card {
    text-align: left !important;
}

.pillar-icon-box {
    margin-right: auto;
    /* Aligns icon container to the left */
    margin-left: 0;
}

/* --- High-End News & Announcements Framework --- */
.board-card-premium {
    background: #FAFAFB;
    border: 1px solid #EAECEF;
    padding: 30px;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.board-card-premium:hover {
    box-shadow: 0 15px 35px rgba(46, 36, 99, 0.06);
}

/* Elite Board Header Layout */
.board-header-strip {
    border-bottom: 2px solid #2E2463;
    /* Brand Purple */
    padding-bottom: 12px;
}

/* Minimalist New Pill Badge */
.badge-new-premium {
    background-color: #E31D2B;
    /* Brand Red */
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 2px;
    display: inline-block;
}

/* Feed row list configuration */
.feed-row-item {
    padding: 16px 0;
    border-bottom: 1px solid #F0F2F5;
    transition: all 0.2s ease;
}

.feed-row-item:last-child {
    border-bottom: none;
}

.feed-link-title {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.5;
}

.feed-row-item:hover .feed-link-title {
    color: #E31D2B;
}

/* Custom minimal footer links */
.btn-board-viewall {
    font-size: 12px;
    font-weight: 700;
    color: #2E2463;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.btn-board-viewall:hover {
    color: #E31D2B;
}

@media (max-width: 991.98px) {

    /* Resets tracking points dynamically for mobile screen sizes */
    .gold-accent-geometry {
        right: calc(50% - 150px) !important;
        bottom: -8px !important;
    }
}

/* --- Academic Programmes Premium Engine --- */
.msrcl-program-focus {
    background-color: #ffffff;
}

/* Master Asymmetric Split Panel Box */
.program-split-panel {
    border-radius: 0px !important;
    /* Sharp institutional geometric borders */
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #EAEAEA;
    box-shadow: 0 20px 50px rgba(46, 36, 99, 0.05) !important;
}

/* Elite Program Highlight Interactive Cards */
.program-interactive-card {
    background: #ffffff;
    padding: 40px 24px;
    border: 1px solid #EAECEF;
    text-align: center;
    height: 100%;
    position: relative;
    text-decoration: none !important;
    /* Removes default styling link underscores */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Subtle underlying colored strip accent that rises on hover */
.program-interactive-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #E31D2B;
    /* Brand Accent Red */
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease-in-out;
}

.program-interactive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(46, 36, 99, 0.08);
    border-color: transparent;
}

.program-interactive-card:hover::after {
    transform: scaleX(1);
}

/* Premium Icon Box Transformations */
.program-icon-box {
    width: 60px;
    height: 60px;
    background-color: #FAFAFC;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.program-interactive-card:hover .program-icon-box {
    background-color: #2E2463;
    /* Brand Purple */
    transform: rotateY(180deg);
    /* High-end continuous axis flip animation */
}

.program-interactive-card:hover .program-icon-box img {
    filter: brightness(0) invert(1);
    /* Smoothly transitions icon artwork to white on hover */
}

.program-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #2E2463;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Base button modifications */
.btn-institutional-primary {
    background: #2E2463;
    color: #ffffff !important;
    padding: 16px 35px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    transition: all 0.2s ease;
}

.btn-institutional-primary:hover {
    background: #E31D2B;
    transform: translateY(-2px);
}

.btn-institutional-accent {
    background: #E31D2B;
    color: #ffffff !important;
    padding: 16px 35px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    transition: all 0.2s ease;
}

.btn-institutional-accent:hover {
    background: #2E2463;
    transform: translateY(-2px);
}

/* Mobile Media Viewport Configurations */
@media (max-width: 991.98px) {
    .hide-on-mobile {
        display: none !important;
    }

    .mobile-padding-fix {
        padding: 45px 20px !important;
    }
}

/* --- High-End Sticky Layout Engine --- */
@media (min-width: 992px) {

    /* 1. Ensure the parent flex wrapper spans cleanly to allow independent inner scrolling mechanics */
    .program-split-panel {
        display: flex !important;
        align-items: stretch !important;
    }

    /* 2. Lock the right image container to the top window viewport boundaries when scrolling */
    .sticky-image-column {
        position: sticky !important;
        top: 100px;
        /* Adjust this value to match your sticky main navbar height */
        height: calc(100vh - 140px) !important;
        align-self: start;
    }
}

/* Premium Card Micro-Interactions */
.program-interactive-card {
    background: #ffffff;
    padding: 40px 24px;
    border: 1px solid #EAECEF;
    text-align: center;
    height: 100%;
    position: relative;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.program-interactive-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #E31D2B;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease-in-out;
}

.program-interactive-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(46, 36, 99, 0.08);
    border-color: transparent;
}

.program-interactive-card:hover::after {
    transform: scaleX(1);
}

.program-icon-box {
    width: 60px;
    height: 60px;
    background-color: #FAFAFC;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.program-interactive-card:hover .program-icon-box {
    background-color: #2E2463;
    transform: rotateY(180deg);
}

.program-interactive-card:hover .program-icon-box img {
    filter: brightness(0) invert(1);
}

/* --- High-Performance Cinematic Programs Engine --- */
.msrcl-cinematic-programs {
    background-color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
}

/* --- Left Column Progress Line Settings --- */
.scroll-narrative-container {
    padding-top: 5vh;
    padding-bottom: 20vh;
    z-index: 2;
}

.program-scrolling-card {
    background: #ffffff;
    border: 1px solid #ECEEF2;
    padding: 40px;
    margin-bottom: 50px;
    border-radius: 0px;
    position: relative;
    opacity: 0.3;
    /* Base muted state */
    transform: scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Simple background glow ring on the active card */
.program-scrolling-card.is-active {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(46, 36, 99, 0.15);
    box-shadow: 0 20px 40px rgba(46, 36, 99, 0.05);
}

.progress-track-line {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #ECEEF2;
}

.progress-fill-indicator {
    position: absolute;
    left: 0;
    top: 0;
    height: 0%;
    width: 4px;
    background: #E31D2B;
}

.card-icon-frame {
    width: 55px;
    height: 55px;
    background-color: #FAFAFC;
    color: #2E2463;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.program-scrolling-card.is-active .card-icon-frame {
    background-color: #2E2463;
    color: #ffffff;
}

/* --- Right Column Sticky Frame Setup --- */
.sticky-visual-viewport {
    position: sticky !important;
    top: 120px;
    /* Lock position layout beneath your navbar */
    height: calc(100vh - 180px);
    width: 100%;
    overflow: hidden;
    background-color: #FAFAFC;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
    z-index: 5;
}

.image-matrix-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Senior Dev Fix: Let GSAP override the default opacity stack properties dynamically */
.matrix-image-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.visual-vignette-plate {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(46, 36, 99, 0.02) 0%, rgba(21, 21, 28, 0.1) 100%);
    pointer-events: none;
    z-index: 10;
}

/* Mobile Devices Fallback Engine */
@media (max-width: 991.98px) {
    .sticky-visual-viewport {
        position: relative !important;
        top: 0 !important;
        height: 320px !important;
        margin-bottom: 30px;
    }

    .program-scrolling-card {
        opacity: 1 !important;
        transform: scale(1) !important;
        margin-bottom: 25px;
    }

    .progress-track-line {
        display: none !important;
    }
}

/* --- Master High-End Institutional Resource Hub Engine --- */
.msrcl-hub-slate-premium {
    /* Rich, semi-transparent gradient mask over your verified asset photo */
    background: radial-gradient(circle, rgba(16, 24, 48, 0.90) 0%, rgba(10, 10, 16, 0.96) 100%),
        url('assets/images/law.jpg') !important;
    /* VERIFY IMAGE PATH */
    background-size: cover !important;
    background-position: center center !important;
    border-radius: 0px !important;
    /* Sharp institutional geometric boundaries */
    padding: 70px 50px !important;
    /* Spacious, breathable vertical pads */
    position: relative !important;
    overflow: hidden;

    /* Clean modern edge definitions */
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Subtle underlying colored strip accent that rises on hover */
.hub-column {
    position: relative !important;
    z-index: 2 !important;
    padding: 20px 30px !important;
    transition: transform 0.3s ease !important;
}

@media (min-width: 992px) {

    /* Premium modern vertical boundary track separators */
    .hub-column {
        border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .hub-column:last-child {
        border-right: none !important;
    }

    .hub-column:hover {
        transform: translateY(-4px) !important;
        /* Tactical upward shift interaction */
    }
}

.hub-header {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 30px !important;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.hub-icon {
    background: rgba(255, 255, 255, 0.03) !important;
    padding: 12px !important;
    border-radius: 0px !important;
    /* Continuous sharp styling geometric maps */
    margin-right: 15px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.hub-header:hover .hub-icon {
    background: rgba(227, 29, 43, 0.1) !important;
    /* Subtle Red highlight marker bar */
}

/* Base link matrix rows with clean CSS micro-animations */
.hub-link {
    display: flex !important;
    align-items: center !important;
    color: rgba(255, 255, 255, 0.7) !important;
    /* Premium light silver-grey color for rich reading */
    text-decoration: none !important;
    font-size: 13.5px !important;
    font-weight: 500;
    padding: 12px 14px !important;
    margin-bottom: 6px;
    border-radius: 0px;
    border-left: 2px solid transparent;
    background: rgba(255, 255, 255, 0.005);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.hub-link:hover {
    color: #ffffff !important;
    /* High-end glow text glow on hover */
    background: rgba(255, 255, 255, 0.04) !important;
    border-left-color: #E31D2B !important;
    /* Brand red accent marker bar pointer icon */
    transform: translateX(6px) !important;
}

/* Premium Minimalist Circular Bullet Indicator System */
.hub-dot {
    width: 6px !important;
    height: 6px !important;
    background: #E31D2B !important;
    /* Vibrant Red arrow indicator pointer icon */
    border-radius: 50% !important;
    margin-right: 14px !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hub-link:hover .hub-dot {
    transform: scale(1.3);
    background: #ffffff !important;
    /* Smoothly transitions icon artwork to white on hover */
}

/* --- Cinematic Multi-Tabbed Document Slate Engine --- */
.msrcl-premium-hub-canvas {
    background: radial-gradient(circle at 0% 0%, rgba(46, 36, 99, 0.95) 0%, rgba(14, 11, 31, 0.98) 100%),
        url('assets/images/law.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    padding: 80px 60px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    position: relative;
    overflow: hidden;
}

/* Glassmorphism Navigation Sidebar Triggers */
.hub-navigation-rail .nav-link {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    padding: 18px 24px !important;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.hub-navigation-rail .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border-left: 4px solid #E31D2B !important;
    /* Brand Red Line */
    border-color: rgba(255, 255, 255, 0.1) rgba(255, 255, 255, 0.1) rgba(255, 255, 255, 0.1) #E31D2B !important;
    transform: translateX(8px);
}

.hub-navigation-rail .nav-link:hover:not(.active) {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.04) !important;
    transform: translateX(4px);
}

.nav-icon-wrapper {
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.hub-navigation-rail .nav-link.active .nav-icon-wrapper {
    transform: scale(1.1);
}

/* Floating Glass Presentation Content Deck */
.hub-presentation-deck {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    padding: 50px !important;
    height: 100%;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.deck-title-accent {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 15px;
}

.deck-title-accent::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #C5A059;
    /* Royal Gold Line Underline */
}

/* Premium Link Grid Matrix Inside Panel */
.hub-document-row {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    margin-bottom: 12px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hub-document-row:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.hub-document-chevron {
    margin-left: auto;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease, color 0.2s ease;
}

.hub-document-row:hover .hub-document-chevron {
    color: #E31D2B;
    transform: translateX(4px);
}

/* Mobile Layout Overrides */
@media (max-width: 991.98px) {
    .msrcl-premium-hub-canvas {
        padding: 40px 20px !important;
    }

    .hub-navigation-rail {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 15px !important;
        margin-bottom: 25px !important;
        scrollbar-width: none;
    }

    .hub-navigation-rail::-webkit-scrollbar {
        display: none;
    }

    .hub-navigation-rail .nav-link {
        margin-bottom: 0 !important;
        margin-right: 10px !important;
        white-space: nowrap !important;
        padding: 12px 20px !important;
    }

    .hub-navigation-rail .nav-link.active {
        transform: none !important;
        border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-bottom: 3px solid #E31D2B !important;
    }

    .hub-presentation-deck {
        padding: 30px 20px !important;
        min-height: auto;
    }
}

/* --- High-End Dashboard Portal Interface --- */
.msrcl-dashboard-slate {
    background: #ffffff !important;
    border-radius: 0px !important;
    /* Sharp institutional profile */
    position: relative !important;
    border: 1px solid #EAECEF !important;
    box-shadow: 0 15px 45px rgba(46, 36, 99, 0.03) !important;
}

/* --- Left Column Sidebar Matrix --- */
.hub-navigation-rail {
    background-color: #FAFAFC;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px 20px !important;
    border-end: 1px solid #EAECEF;
}

@media (min-width: 992px) {
    .hub-navigation-rail {
        border-right: 1px solid #EAECEF !important;
        border-end: none;
        min-height: 480px;
        /* Locks execution heights together */
    }
}

.hub-navigation-rail .nav-link {
    display: flex;
    align-items: center;
    color: #5F6368 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    padding: 16px 20px !important;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0px !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Active Highlight Mechanics */
.hub-navigation-rail .nav-link.active {
    color: #2E2463 !important;
    /* Brand Purple */
    background: #ffffff !important;
    border: 1px solid #EAECEF !important;
    border-left: 4px solid #E31D2B !important;
    /* Brand Red Left Highlight */
    box-shadow: 0 10px 25px rgba(46, 36, 99, 0.04);
}

.nav-icon-wrapper {
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7A7E85;
    transition: color 0.3s ease;
}

.hub-navigation-rail .nav-link.active .nav-icon-wrapper {
    color: #E31D2B;
    /* Icon switches color on active state selection */
}

/* --- Right Column Presentation Area --- */
.hub-presentation-deck {
    padding: 45px !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.deck-title-accent {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #2E2463;
    margin-bottom: 30px;
}

/* Premium Row Link Bars */
.hub-document-row {
    display: flex !important;
    align-items: center !important;
    color: #4A4E5A !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    padding: 14px 20px;
    background: #ffffff;
    border: 1px solid #EAECEF;
    margin-bottom: 12px;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hub-document-row:hover {
    color: #E31D2B !important;
    background: #FAFAFC;
    border-color: rgba(46, 36, 99, 0.15) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 36, 99, 0.04);
}

.hub-document-chevron {
    margin-left: auto;
    font-size: 11px;
    color: #BEC2C8;
    transition: transform 0.2s ease, color 0.2s ease;
}

.hub-document-row:hover .hub-document-chevron {
    color: #E31D2B;
    transform: translateX(4px);
}

/* Mobile Media Fluid Configuration */
@media (max-width: 991.98px) {
    .hub-navigation-rail {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 15px !important;
        scrollbar-width: none;
    }

    .hub-navigation-rail::-webkit-scrollbar {
        display: none;
    }

    .hub-navigation-rail .nav-link {
        margin-bottom: 0 !important;
        margin-right: 10px !important;
        padding: 12px 20px !important;
    }

    .hub-navigation-rail .nav-link.active {
        border-left: 1px solid #EAECEF !important;
        border-bottom: 3px solid #E31D2B !important;
    }

    .hub-presentation-deck {
        padding: 30px 20px !important;
    }
}

/* --- High-End Balanced Minimalist Portal --- */
.msrcl-dashboard-slate {
    background: #ffffff !important;
    border-radius: 0px !important;
    position: relative !important;
    border: 1px solid #EAECEF !important;
    box-shadow: 0 20px 50px rgba(46, 36, 99, 0.04) !important;
    overflow: hidden;
}

/* --- Left Column Sidebar Matrix --- */
.hub-navigation-rail {
    background-color: #FAFAFC;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 40px 24px !important;
}

@media (min-width: 992px) {
    .hub-navigation-rail {
        border-right: 1px solid #EAECEF !important;
        min-height: 520px;
        /* Perfectly aligns height bounds with the right visual engine */
    }
}

.hub-navigation-rail .nav-link {
    display: flex;
    align-items: center;
    color: #5F6368 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    padding: 16px 20px !important;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0px !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.hub-navigation-rail .nav-link.active {
    color: #2E2463 !important;
    background: #ffffff !important;
    border: 1px solid #EAECEF !important;
    border-left: 4px solid #E31D2B !important;
    box-shadow: 0 10px 25px rgba(46, 36, 99, 0.04);
}

.nav-icon-wrapper {
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7A7E85;
}

.hub-navigation-rail .nav-link.active .nav-icon-wrapper {
    color: #E31D2B;
}

/* --- Right Column Presentation Area --- */
.hub-presentation-deck {
    padding: 50px !important;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.deck-title-accent {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #2E2463;
    margin-bottom: 6px;
}

/* --- Dynamic Right Visual Anchor (Replaced the transparent gap) --- */
.hub-media-anchor-panel {
    position: relative;
    height: 100%;
    min-height: 100%;
    background-color: #161026;
    /* Dark base coat matching your image tone */
    overflow: hidden;
}

.hub-media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    mix-blend-mode: luminosity;
    /* Blends the image elegantly with the background */
    opacity: 0.45;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.hub-media-anchor-panel:hover .hub-media-image {
    transform: scale(1.04);
}

/* Vignette overlay shading for crisp visual depth */
.hub-media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 36, 99, 0.4) 0%, rgba(223, 29, 43, 0.15) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Premium Document Row Bars */
.hub-document-row {
    display: flex !important;
    align-items: center !important;
    color: #4A4E5A !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #EAECEF;
    margin-bottom: 12px;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hub-document-row:hover {
    color: #E31D2B !important;
    background: #FAFAFC;
    border-color: rgba(46, 36, 99, 0.18) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 36, 99, 0.05);
}

.hub-document-chevron {
    margin-left: auto;
    font-size: 11px;
    color: #BEC2C8;
    transition: transform 0.2s ease, color 0.2s ease;
}

.hub-document-row:hover .hub-document-chevron {
    color: #E31D2B;
    transform: translateX(4px);
}

/* Responsive Structural Scales */
@media (max-width: 991.98px) {
    .hub-navigation-rail {
        flex-direction: row !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 15px !important;
    }

    .hub-navigation-rail .nav-link {
        margin-bottom: 0 !important;
        margin-right: 10px !important;
        padding: 12px 20px !important;
    }

    .hub-navigation-rail .nav-link.active {
        border-left: 1px solid #EAECEF !important;
        border-bottom: 3px solid #E31D2B !important;
    }

    .hub-media-anchor-panel {
        height: 250px !important;
    }

    .hub-presentation-deck {
        padding: 35px 20px !important;
    }
}

/* --- High-End Testimonial Matrix Framework --- */
.msrcl-testimonial-section {
    background-color: #FAFAFC;
    position: relative;
    overflow: hidden;
}

/* Structural Background Quote Watermark Markings */
.msrcl-testimonial-section::before {
    content: "\201C";
    position: absolute;
    top: -50px;
    left: 20px;
    font-size: 280px;
    color: rgba(46, 36, 99, 0.03);
    /* Brand Purple Glow Tint */
    font-family: 'Playfair Display', serif;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}

/* Master Presenter Panel Card Layout */
.showcase-display-card {
    background: #ffffff;
    border: 1px solid #ECEEF2;
    padding: 50px !important;
    border-radius: 0px !important;
    /* Premium sharp institutional geometry lines */
    box-shadow: 0 20px 50px rgba(46, 36, 99, 0.04) !important;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-speech-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 15.5px !important;
    line-height: 1.85 !important;
    color: #4A4E5A !important;
    font-weight: 500;
    font-style: italic;
}

/* --- Directory Grid Trigger Nodes (Right Side Layout) --- */
.directory-grid-trigger {
    background: #ffffff !important;
    border: 1px solid #EAECEF !important;
    padding: 16px 20px !important;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    border-radius: 0px !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    margin-bottom: 12px;
}

.directory-grid-trigger:last-child {
    margin-bottom: 0;
}

/* Avatar Border Scaling Enhancements */
.trigger-avatar-frame {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 16px;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}

.trigger-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trigger-name-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #2E2463;
    /* Brand Purple text baseline */
    margin: 0;
    transition: color 0.2s ease;
}

.trigger-role-lbl {
    font-size: 11px;
    font-weight: 600;
    color: #7A7E85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    margin-top: 2px;
}

/* Interactive Feedback State Toggle Matrix mapping styles */
.directory-grid-trigger.active {
    background: #ffffff !important;
    border-color: rgba(46, 36, 99, 0.15) !important;
    border-left: 4px solid #E31D2B !important;
    /* Premium Red Border Line Accent */
    box-shadow: 0 12px 30px rgba(46, 36, 99, 0.05);
    transform: translateX(6px);
}

.directory-grid-trigger.active .trigger-avatar-frame {
    border-color: #E31D2B;
}

.directory-grid-trigger:hover:not(.active) {
    border-color: rgba(46, 36, 99, 0.1) !important;
    transform: translateX(3px);
}

/* Mobile Responsiveness Fluid Overrides */
@media (max-width: 991.98px) {
    .showcase-display-card {
        padding: 35px 25px !important;
    }

    .directory-grid-trigger {
        padding: 12px 15px !important;
    }
}

/* --- Premium Auto-Cycling Testimonials Framework --- */
.msrcl-testimonial-section {
    background-color: #FAFAFC;
    position: relative;
    overflow: hidden;
}

/* Background Quote Watermark Markings */
.msrcl-testimonial-section::before {
    content: "\201C";
    position: absolute;
    top: -50px;
    left: 20px;
    font-size: 280px;
    color: rgba(46, 36, 99, 0.03);
    font-family: 'Playfair Display', serif;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}

/* Master Presenter Panel Card Layout */
.showcase-display-card {
    background: #ffffff;
    border: 1px solid #ECEEF2;
    padding: 50px !important;
    border-radius: 0px !important;
    /* Sharp institutional look */
    box-shadow: 0 20px 50px rgba(46, 36, 99, 0.04) !important;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-speech-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 15.5px !important;
    line-height: 1.85 !important;
    color: #4A4E5A !important;
    font-weight: 500;
    font-style: italic;
}

/* --- Directory Ticker Rows (Right Side Layout) --- */
.directory-ticker-row {
    background: #ffffff !important;
    border: 1px solid #EAECEF !important;
    padding: 16px 20px !important;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    border-radius: 0px !important;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    margin-bottom: 12px;
}

.directory-ticker-row:last-child {
    margin-bottom: 0;
}

.trigger-avatar-frame {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 16px;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}

.trigger-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trigger-name-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #2E2463;
    margin: 0;
}

.trigger-role-lbl {
    font-size: 11px;
    font-weight: 600;
    color: #7A7E85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    margin-top: 2px;
}

/* Subtle underlying progress bar showing when the next slide will trigger */
.ticker-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background-color: #E31D2B;
    /* Brand Red */
    transition: width 5s linear;
    /* Matches loop interval speed */
}

/* --- Active & Live State Matrix Mappings --- */
.directory-ticker-row.is-active {
    background: #ffffff !important;
    border-color: rgba(46, 36, 99, 0.15) !important;
    border-left: 4px solid #E31D2B !important;
    box-shadow: 0 12px 30px rgba(46, 36, 99, 0.05);
    transform: translateX(6px);
}

.directory-ticker-row.is-active .trigger-avatar-frame {
    border-color: #E31D2B;
}

.directory-ticker-row.is-active .ticker-progress-bar {
    width: 100%;
}

/* Mobile Media Adaptations */
@media (max-width: 991.98px) {
    .showcase-display-card {
        padding: 35px 25px !important;
    }

    .directory-ticker-row {
        padding: 12px 15px !important;
    }
}

/* --- Master High-Performance Infinite Loop Track Engine --- */
.msrcl-discovery-hub {
    background-color: #ffffff;
    padding: 60px 0 !important;
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Master track holding rail flex arrays */
.marquee-viewport-rail {
    display: flex;
    width: max-content;
    position: relative;
    user-select: none;
}

.msrcl-marquee-track {
    display: flex;
    align-items: center;
    /* Clean continuous infinite animation parameters */
    animation: continuous-loop-roll 45s linear infinite;
    will-change: transform;
}

/* Stop scrolling when visitors lock onto architectural visuals */
.marquee-viewport-rail:hover .msrcl-marquee-track {
    animation-play-state: paused;
}

/* --- High-End Graphic Visual Tiles --- */
.msrcl-photo-tile {
    width: 340px !important;
    height: 230px !important;
    margin: 0 15px !important;
    flex-shrink: 0 !important;
    position: relative !important;
    border-radius: 0px !important;
    /* Sharp institutional geometric profile */
    overflow: hidden !important;
    box-shadow: 0 15px 35px rgba(46, 36, 99, 0.05) !important;
    background-color: #FAFAFC;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease !important;
}

.msrcl-photo-tile img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Hardware accelerated scaling removes viewport layout stutter bugs */
.msrcl-photo-tile:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 25px 50px rgba(46, 36, 99, 0.12) !important;
    z-index: 5;
}

.msrcl-photo-tile:hover img {
    transform: scale(1.06) !important;
}

/* Elegant Text Shading Covers */
.tile-caption {
    position: absolute !important;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(46, 36, 99, 0) 0%, rgba(20, 15, 45, 0.9) 100%) !important;
    padding: 25px 20px 20px 20px !important;
    color: #ffffff !important;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    z-index: 3;
}

.msrcl-photo-tile:hover .tile-caption {
    opacity: 1 !important;
    transform: translateY(0);
}

.caption-indicator-line {
    width: 25px;
    height: 2px;
    background-color: #E31D2B;
    /* Brand Red Accent */
    margin-top: 6px;
}

/* Infinite Loop Mathematical Vector Math Map */
@keyframes continuous-loop-roll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }

    /* Shifts by exactly half to loop seamlessly */
}

/* Mobile Devices Optimization Framework */
@media (max-width: 991.98px) {
    .msrcl-photo-tile {
        width: 260px !important;
        height: 180px !important;
        margin: 0 10px !important;
    }

    .msrcl-marquee-track {
        animation-duration: 25s;
        /* Speeds loop on small viewports */
    }
}

/* --- High-Performance Infinite Loop Track Engine --- */
.msrcl-discovery-hub {
    background-color: #ffffff;
    padding: 60px 0 !important;
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Hard clips structural leakage on mobile browsers */
}

/* Master track holding rail flex arrays */
.marquee-viewport-rail {
    display: flex !important;
    /* CRITICAL MOBILE FIX: Forces continuous horizontal layout alignment */
    flex-direction: row !important;
    width: max-content;
    position: relative;
    user-select: none;
    overflow: hidden;
}

.msrcl-marquee-track {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    flex-wrap: nowrap !important;
    /* CRITICAL MOBILE FIX: Stops tiles from wrapping downward */
    /* Clean continuous infinite animation parameters */
    animation: continuous-loop-roll 45s linear infinite;
    will-change: transform;
}

/* Stops scrolling track when visitors interact with infrastructure media elements */
.marquee-viewport-rail:hover .msrcl-marquee-track {
    animation-play-state: paused;
}

/* --- High-End Graphic Visual Tiles --- */
.msrcl-photo-tile {
    width: 340px !important;
    height: 230px !important;
    margin: 0 15px !important;
    flex-shrink: 0 !important;
    /* CRITICAL MOBILE FIX: Prevents cards from crushing on small layouts */
    position: relative !important;
    border-radius: 0px !important;
    /* Sharp institutional geometric profile */
    overflow: hidden !important;
    box-shadow: 0 15px 35px rgba(46, 36, 99, 0.05) !important;
    background-color: #FAFAFC;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease !important;
}

.msrcl-photo-tile img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* Hardware accelerated scaling prevents template layout stutter bugs */
.msrcl-photo-tile:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 25px 50px rgba(46, 36, 99, 0.12) !important;
    z-index: 5;
}

.msrcl-photo-tile:hover img {
    transform: scale(1.06) !important;
}

/* Elegant Text Shading Covers */
.tile-caption {
    position: absolute !important;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(46, 36, 99, 0) 0%, rgba(20, 15, 45, 0.9) 100%) !important;
    padding: 25px 20px 20px 20px !important;
    color: #ffffff !important;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease !important;
    z-index: 3;
}

.msrcl-photo-tile:hover .tile-caption {
    opacity: 1 !important;
    transform: translateY(0);
}

.caption-indicator-line {
    width: 25px;
    height: 2px;
    background-color: #E31D2B;
    /* Brand Red Accent */
    margin-top: 6px;
}

/* Infinite Loop Keyframe Coordinates */
@keyframes continuous-loop-roll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }

    /* Shifts track seamlessly by half its length */
}

/* Mobile Devices Optimization Framework */
@media (max-width: 991.98px) {
    .msrcl-discovery-hub {
        padding: 40px 0 !important;
    }

    .msrcl-photo-tile {
        width: 260px !important;
        /* Optimized card widths for responsive scaling profiles */
        height: 180px !important;
        margin: 0 10px !important;
    }

    .msrcl-marquee-track {
        animation-duration: 25s;
        /* Speeds up translation loop for mobile display balance */
    }

    .tile-caption {
        opacity: 1 !important;
        /* Forces persistent subtitle text visibility on touchscreen layouts */
        transform: translateY(0) !important;
        padding: 20px 15px 15px 15px !important;
    }
}

/* --- High-Performance Infrastructure CTA Layout --- */
.msrcl-cta-container {
    text-align: center;
    margin-top: 50px;
    padding: 0 15px;
    /* Safely walls off screen edges on mobile displays */
    width: 100%;
}

.btn-infrastructure-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #2E2463;
    /* Premium Brand Purple */
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none !important;
    border-radius: 0px !important;
    /* Sharp premium profile geometry */
    padding: 18px 40px;
    box-shadow: 0 10px 25px rgba(46, 36, 99, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.infrastructure-btn-icon {
    font-size: 12px;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

/* Hover Interactions (Desktop viewports only) */
@media (min-width: 992px) {
    .btn-infrastructure-link:hover {
        background-color: #E31D2B !important;
        /* Smooth color-shift transition to brand red */
        box-shadow: 0 15px 30px rgba(227, 29, 43, 0.2);
        transform: translateY(-2px);
    }

    .btn-infrastructure-link:hover .infrastructure-btn-icon {
        transform: translateX(4px);
        /* Interactive pointer acceleration tracking */
    }
}

/* CRITICAL MOBILE SPECIFIC ADJUSTMENTS */
@media (max-width: 575.98px) {
    .btn-infrastructure-link {
        display: flex !important;
        /* Spans the button width safely to maintain vertical alignment balance */
        width: 100%;
        max-width: 340px;
        /* Locks max proportions so it doesn't look bulky */
        margin: 0 auto;
        font-size: 11px;
        /* Slightly compact typography to guarantee clean single-line reading */
        padding: 16px 20px;
        /* Tighter padding margins prevents inner overflow */
        letter-spacing: 0.5px;
    }

    .infrastructure-btn-icon {
        margin-left: auto;
        /* Clean right-hand screen anchoring for mobile displays */
    }
}


/* --- Master High-Performance Portal Layout Core Styles --- */
.msrcl-dashboard-slate {
    background: #ffffff !important;
    border-radius: 0px !important;
    position: relative !important;
    border: 1px solid #EAECEF !important;
    box-shadow: 0 15px 45px rgba(46, 36, 99, 0.03) !important;
}

/* --- Left Sidebar Rails Layout --- */
.hub-navigation-rail {
    background-color: #FAFAFC;
    padding: 40px 24px !important;
}

.hub-navigation-rail .nav-link {
    display: flex;
    align-items: center;
    color: #5F6368 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    padding: 16px 20px !important;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0px !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.hub-navigation-rail .nav-link.active {
    color: #2E2463 !important;
    /* Premium Brand Purple */
    background: #ffffff !important;
    border: 1px solid #EAECEF !important;
    border-left: 4px solid #E31D2B !important;
    /* Premium Brand Red Line */
    box-shadow: 0 10px 25px rgba(46, 36, 99, 0.04);
}

.nav-icon-wrapper {
    margin-right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7A7E85;
}

.hub-navigation-rail .nav-link.active .nav-icon-wrapper {
    color: #E31D2B;
}

/* --- Right Viewport Link Grid Core Layout --- */
.hub-presentation-deck {
    padding: 40px 45px !important;
    background: #ffffff;
}

.deck-title-accent {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #2E2463;
    margin: 0 0 8px 0;
}

.hub-document-row {
    display: flex !important;
    align-items: center !important;
    color: #4A4E5A !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #EAECEF;
    margin-bottom: 12px;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hub-document-row:hover {
    color: #E31D2B !important;
    background: #FAFAFC;
    border-color: rgba(46, 36, 99, 0.18) !important;
}

.hub-document-chevron {
    margin-left: auto;
    font-size: 11px;
    color: #BEC2C8;
}

/* --- CRITICAL RESPONSIVE MOBILE VIEWPORT ALIGNMENT MECHANICS --- */
@media (max-width: 991.98px) {
    .msrcl-dashboard-slate {
        border: none !important;
        /* Drops duplicate boundaries to maximize space */
        box-shadow: none !important;
    }

    /* Converts vertical rail into a clean horizontal scroll track on mobile screens */
    .hub-navigation-rail {
        flex-direction: row !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 15px 10px !important;
        background-color: #FAFAFC;
        border-bottom: 1px solid #EAECEF !important;
        scrollbar-width: none;
        /* Modern hide scrollbar engine link */
    }

    .hub-navigation-rail::-webkit-scrollbar {
        display: none;
        /* Webkit hide scrollbar fallback code */
    }

    .hub-navigation-rail .nav-link {
        margin-bottom: 0 !important;
        margin-right: 8px !important;
        padding: 10px 18px !important;
        font-size: 11px !important;
        letter-spacing: 0.3px;
        display: inline-flex !important;
    }

    .hub-navigation-rail .nav-link.active {
        border-left: 1px solid #EAECEF !important;
        border-bottom: 3px solid #E31D2B !important;
        /* Moves indicator strip to bottom on mobile views */
    }

    .nav-icon-wrapper {
        margin-right: 8px;
    }

    /* Resolves alignment bugs by flattening padding parameters */
    .hub-presentation-deck {
        padding: 30px 10px !important;
        /* Fluid container spacing balances document grid columns */
        width: 100% !important;
    }

    .deck-title-accent {
        font-size: 18px !important;
        /* Compact scaling prevents layout lines from breaking headers */
        line-height: 1.4;
    }

    .hub-document-row {
        padding: 14px 16px;
        font-size: 13px;
        /* Cleaner scanning on mobile screen panels */
    }
}

/* --- Master High-Performance Portal Layout Core Styles --- */
.msrcl-dashboard-slate {
    background: #ffffff !important;
    border-radius: 0px !important;
    position: relative !important;
    border: 1px solid #EAECEF !important;
    box-shadow: 0 15px 45px rgba(46, 36, 99, 0.03) !important;
}

/* --- Left Sidebar Rails Layout --- */
.hub-navigation-rail {
    background-color: #FAFAFC;
    padding: 40px 24px !important;
}

.hub-navigation-rail .nav-link {
    display: flex;
    align-items: center;
    color: #5F6368 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    padding: 16px 20px !important;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0px !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.hub-navigation-rail .nav-link.active {
    color: #2E2463 !important;
    /* Premium Brand Purple */
    background: #ffffff !important;
    border: 1px solid #EAECEF !important;
    border-left: 4px solid #E31D2B !important;
    /* Premium Brand Red Line */
    box-shadow: 0 10px 25px rgba(46, 36, 99, 0.04);
}

.nav-icon-wrapper {
    margin-right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7A7E85;
}

.hub-navigation-rail .nav-link.active .nav-icon-wrapper {
    color: #E31D2B;
}

/* --- Right Viewport Link Grid Core Layout --- */
.hub-presentation-deck {
    padding: 40px 45px !important;
    background: #ffffff;
}

.deck-title-accent {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #2E2463;
    margin: 0 0 8px 0;
}

.hub-document-row {
    display: flex !important;
    align-items: center !important;
    color: #4A4E5A !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #EAECEF;
    margin-bottom: 12px;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hub-document-row:hover {
    color: #E31D2B !important;
    background: #FAFAFC;
    border-color: rgba(46, 36, 99, 0.18) !important;
}

.hub-document-chevron {
    margin-left: auto;
    font-size: 11px;
    color: #BEC2C8;
}

/* --- CRITICAL RESPONSIVE MOBILE VIEWPORT ALIGNMENT MECHANICS --- */
@media (max-width: 991.98px) {
    .msrcl-dashboard-slate {
        border: none !important;
        box-shadow: none !important;
    }

    /* Converts vertical rail into a clean horizontal scroll track on mobile screens */
    .hub-navigation-rail {
        flex-direction: row !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 15px 10px !important;
        background-color: #FAFAFC;
        border-bottom: 1px solid #EAECEF !important;
        scroll-behavior: smooth;
        /* Smooth mechanical scroll handling */
        scrollbar-width: none;
    }

    .hub-navigation-rail::-webkit-scrollbar {
        display: none;
    }

    .hub-navigation-rail .nav-link {
        margin-bottom: 0 !important;
        margin-right: 8px !important;
        padding: 12px 20px !important;
        font-size: 11px !important;
        letter-spacing: 0.3px;
        display: inline-flex !important;
    }

    .hub-navigation-rail .nav-link.active {
        border-left: 1px solid #EAECEF !important;
        border-bottom: 3px solid #E31D2B !important;
        /* Pushes active line to the bottom indicator frame on mobile */
    }

    .nav-icon-wrapper {
        margin-right: 8px;
    }

    .hub-presentation-deck {
        padding: 30px 10px !important;
        width: 100% !important;
    }

    .deck-title-accent {
        font-size: 18px !important;
        line-height: 1.4;
    }

    .hub-document-row {
        padding: 14px 16px;
        font-size: 13px;
    }
}


/* --- Premium Balanced Dashboard Component --- */
.msrcl-dashboard-slate {
    background: #ffffff !important;
    border-radius: 0px !important;
    position: relative !important;
    border: 1px solid #EAECEF !important;
    box-shadow: 0 15px 45px rgba(46, 36, 99, 0.03) !important;
    overflow: hidden;
}

/* --- Left Column Sidebar Matrix (Desktop Viewport Base) --- */
.hub-navigation-rail {
    background-color: #FAFAFC;
    padding: 30px 20px !important;
    height: 100%;
}

.hub-navigation-rail .nav-link {
    display: flex;
    align-items: center;
    color: #5F6368 !important;
    /* Stable neutral slate grey */
    background: transparent !important;
    border: 1px solid transparent !important;
    padding: 16px 20px !important;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0px !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Tab Hover (Ensures text stays dark and legible) */
.hub-navigation-rail .nav-link:hover:not(.active) {
    color: #2E2463 !important;
    /* Shifts to rich brand purple on hover instead of fading to white */
    background: rgba(46, 36, 99, 0.02) !important;
}

/* Tab Active State */
.hub-navigation-rail .nav-link.active {
    color: #2E2463 !important;
    background: #ffffff !important;
    border: 1px solid #EAECEF !important;
    border-left: 4px solid #E31D2B !important;
    /* Premium brand red highlight marker */
    box-shadow: 0 10px 25px rgba(46, 36, 99, 0.04);
}

.nav-icon-wrapper {
    margin-right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7A7E85;
    transition: color 0.3s ease;
}

.hub-navigation-rail .nav-link.active .nav-icon-wrapper {
    color: #E31D2B;
    /* Icon becomes active crimson */
}

/* --- Right Viewport Content Presentation Deck --- */
.hub-presentation-deck {
    padding: 45px 50px !important;
    /* Generous, perfectly mirrored alignment gutters */
    background: #ffffff;
    height: 100%;
}

.deck-title-accent {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #2E2463;
    margin: 0 0 8px 0;
}

.hub-document-row {
    display: flex !important;
    align-items: center !important;
    color: #4A4E5A !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #EAECEF;
    margin-bottom: 12px;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hub-document-row:hover {
    color: #E31D2B !important;
    background: #FAFAFC;
    border-color: rgba(46, 36, 99, 0.18) !important;
}

.hub-document-chevron {
    margin-left: auto;
    font-size: 11px;
    color: #BEC2C8;
}

/* --- CRITICAL RESPONSIVE MOBILE VIEWPORT OVERRIDES --- */
@media (max-width: 991.98px) {
    .msrcl-dashboard-slate {
        border: none !important;
        box-shadow: none !important;
    }

    /* Converts vertical rail into a clean horizontal scroll track on mobile screens */
    .hub-navigation-rail {
        flex-direction: row !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 15px 10px !important;
        background-color: #FAFAFC;
        border-bottom: 1px solid #EAECEF !important;
        scroll-behavior: smooth;
        scrollbar-width: none;
    }

    .hub-navigation-rail::-webkit-scrollbar {
        display: none;
    }

    .hub-navigation-rail .nav-link {
        margin-bottom: 0 !important;
        margin-right: 8px !important;
        padding: 12px 20px !important;
        font-size: 11px !important;
        letter-spacing: 0.3px;
        display: inline-flex !important;
    }

    .hub-navigation-rail .nav-link.active {
        border-left: 1px solid #EAECEF !important;
        border-bottom: 3px solid #E31D2B !important;
    }

    .nav-icon-wrapper {
        margin-right: 8px;
    }

    .hub-presentation-deck {
        padding: 30px 10px !important;
        width: 100% !important;
    }

    .deck-title-accent {
        font-size: 18px !important;
        line-height: 1.4;
    }

    .hub-document-row {
        padding: 14px 16px;
        font-size: 13px;
    }
}

/* --- Premium Balanced Dashboard Component --- */
.msrcl-dashboard-slate {
    background: #ffffff !important;
    border-radius: 0px !important;
    position: relative !important;
    border: 1px solid #EAECEF !important;
    box-shadow: 0 15px 45px rgba(46, 36, 99, 0.03) !important;
    overflow: hidden;
}

/* --- Left Column Sidebar Matrix (Desktop Viewport Base) --- */
.hub-navigation-rail {
    background-color: #FAFAFC;
    padding: 30px 20px !important;
    height: 100%;
}

.hub-navigation-rail .nav-link {
    display: flex;
    align-items: center;
    color: #5F6368 !important;
    /* Stable neutral slate grey */
    background: transparent !important;
    border: 1px solid transparent !important;
    padding: 16px 20px !important;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0px !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Tab Hover (Ensures text stays dark and legible) */
.hub-navigation-rail .nav-link:hover:not(.active) {
    color: #2E2463 !important;
    /* Shifts to rich brand purple on hover instead of fading to white */
    background: rgba(46, 36, 99, 0.02) !important;
}

/* Tab Active State */
.hub-navigation-rail .nav-link.active {
    color: #2E2463 !important;
    background: #ffffff !important;
    border: 1px solid #EAECEF !important;
    border-left: 4px solid #E31D2B !important;
    /* Premium brand red highlight marker */
    box-shadow: 0 10px 25px rgba(46, 36, 99, 0.04);
}

.nav-icon-wrapper {
    margin-right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7A7E85;
    transition: color 0.3s ease;
}

.hub-navigation-rail .nav-link.active .nav-icon-wrapper {
    color: #E31D2B;
    /* Icon becomes active crimson */
}

/* --- Right Viewport Content Presentation Deck --- */
.hub-presentation-deck {
    padding: 45px 50px !important;
    /* Generous, perfectly mirrored alignment gutters */
    background: #ffffff;
    height: 100%;
}

.deck-title-accent {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    color: #2E2463;
    margin: 0 0 8px 0;
}

.hub-document-row {
    display: flex !important;
    align-items: center !important;
    color: #4A4E5A !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #EAECEF;
    margin-bottom: 12px;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hub-document-row:hover {
    color: #E31D2B !important;
    background: #FAFAFC;
    border-color: rgba(46, 36, 99, 0.18) !important;
}

.hub-document-chevron {
    margin-left: auto;
    font-size: 11px;
    color: #BEC2C8;
}

/* --- CRITICAL RESPONSIVE MOBILE VIEWPORT OVERRIDES --- */
@media (max-width: 991.98px) {
    .msrcl-dashboard-slate {
        border: none !important;
        box-shadow: none !important;
    }

    /* Converts vertical rail into a clean horizontal scroll track on mobile screens */
    .hub-navigation-rail {
        flex-direction: row !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 15px 10px !important;
        background-color: #FAFAFC;
        border-bottom: 1px solid #EAECEF !important;
        scroll-behavior: smooth;
        scrollbar-width: none;
    }

    .hub-navigation-rail::-webkit-scrollbar {
        display: none;
    }

    .hub-navigation-rail .nav-link {
        margin-bottom: 0 !important;
        margin-right: 8px !important;
        padding: 12px 20px !important;
        font-size: 11px !important;
        letter-spacing: 0.3px;
        display: inline-flex !important;
    }

    .hub-navigation-rail .nav-link.active {
        border-left: 1px solid #EAECEF !important;
        border-bottom: 3px solid #E31D2B !important;
    }

    .nav-icon-wrapper {
        margin-right: 8px;
    }

    .hub-presentation-deck {
        padding: 30px 10px !important;
        width: 100% !important;
    }

    .deck-title-accent {
        font-size: 18px !important;
        line-height: 1.4;
    }

    .hub-document-row {
        padding: 14px 16px;
        font-size: 13px;
    }
}

/* --- Master High-Performance Portal Layout Core Styles --- */
.msrcl-dashboard-slate {
    background: #ffffff !important;
    border-radius: 0px !important;
    position: relative !important;
    border: 1px solid #EAECEF !important;
    box-shadow: 0 15px 45px rgba(46, 36, 99, 0.03) !important;
    overflow: hidden;
}

/* --- Left Sidebar Rails Layout --- */
.hub-navigation-rail {
    background-color: #FAFAFC;
    padding: 40px 24px !important;
}

.hub-navigation-rail .nav-link {
    display: flex;
    align-items: center;
    color: #5F6368 !important;
    /* Stable slate grey text fallback */
    background: transparent !important;
    border: 1px solid transparent !important;
    padding: 16px 20px !important;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0px !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* FIXED: Hover State ensures text remains dark and legible on desktop */
.hub-navigation-rail .nav-link:hover:not(.active) {
    color: #2E2463 !important;
    /* Shifts text color to rich purple instead of bleeding white */
    background: rgba(46, 36, 99, 0.03) !important;
}

.hub-navigation-rail .nav-link.active {
    color: #2E2463 !important;
    /* Premium Brand Purple */
    background: #ffffff !important;
    border: 1px solid #EAECEF !important;
    border-left: 4px solid #E31D2B !important;
    /* Premium Brand Red Line */
    box-shadow: 0 10px 25px rgba(46, 36, 99, 0.04);
}

.nav-icon-wrapper {
    margin-right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7A7E85;
}

.hub-navigation-rail .nav-link.active .nav-icon-wrapper {
    color: #E31D2B;
}

/* --- Right Viewport Link Grid Core Layout --- */
.hub-presentation-deck {
    padding: 40px 45px !important;
    background: #ffffff;
}

.deck-title-accent {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: #2E2463;
    margin: 0 0 8px 0;
}

.hub-document-row {
    display: flex !important;
    align-items: center !important;
    color: #4A4E5A !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #EAECEF;
    margin-bottom: 12px;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hub-document-row:hover {
    color: #E31D2B !important;
    background: #FAFAFC;
    border-color: rgba(46, 36, 99, 0.18) !important;
}

.hub-document-chevron {
    margin-left: auto;
    font-size: 11px;
    color: #BEC2C8;
}

/* --- CRITICAL RESPONSIVE MOBILE VIEWPORT ALIGNMENT MECHANICS --- */
@media (max-width: 991.98px) {
    .msrcl-dashboard-slate {
        border: none !important;
        box-shadow: none !important;
    }

    /* Converts vertical rail into a clean horizontal scroll track on mobile screens */
    .hub-navigation-rail {
        flex-direction: row !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 15px 10px !important;
        background-color: #FAFAFC;
        border-bottom: 1px solid #EAECEF !important;
        scroll-behavior: smooth;
        /* Smooth hardware scroll layout engine activation */
        scrollbar-width: none;
    }

    .hub-navigation-rail::-webkit-scrollbar {
        display: none;
    }

    .hub-navigation-rail .nav-link {
        margin-bottom: 0 !important;
        margin-right: 8px !important;
        padding: 12px 20px !important;
        font-size: 11px !important;
        letter-spacing: 0.3px;
        display: inline-flex !important;
    }

    .hub-navigation-rail .nav-link.active {
        border-left: 1px solid #EAECEF !important;
        border-bottom: 3px solid #E31D2B !important;
        /* Forces layout highlight bar underneath tab on mobile views */
    }

    .nav-icon-wrapper {
        margin-right: 8px;
    }

    .hub-presentation-deck {
        padding: 30px 10px !important;
        width: 100% !important;
    }

    .deck-title-accent {
        font-size: 18px !important;
        line-height: 1.4;
    }

    .hub-document-row {
        padding: 14px 16px;
        font-size: 13px;
    }
}


/* --- Academic Programmes Grid Baseline Engine --- */
.msrcl-program-focus {
    background: #ffffff !important;
}

.program-split-panel {
    background: #ffffff;
}

/* Base Interactive Cards Rules for Desktop viewports */
.program-interactive-card {
    background: #ffffff;
    padding: 35px 20px;
    border: 1px solid #ECEEF2;
    text-align: center;
    height: 100%;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.program-interactive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(46, 36, 99, 0.06);
    border-color: rgba(46, 36, 99, 0.15);
}

.program-icon-box {
    width: 55px;
    height: 55px;
    background-color: #FAFAFC;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.program-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #2E2463;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Desktop Primary Buttons Setup */
.btn-institutional-primary {
    background: #2E2463;
    color: #ffffff !important;
    padding: 14px 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    border: none;
    transition: background 0.2s ease;
}

.btn-institutional-primary:hover {
    background: #E31D2B;
}

.btn-institutional-accent {
    background: #E31D2B;
    color: #ffffff !important;
    padding: 14px 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    border: none;
    transition: background 0.2s ease;
}

.btn-institutional-accent:hover {
    background: #2E2463;
}

/* --- CRITICAL RESPONSIVE MOBILE OPTIMIZATION ENGINE --- */
@media (max-width: 991.98px) {
    .mobile-padding-fix {
        padding: 35px 15px !important;
        /* FIXED: Drops extreme desktop blank padding gaps */
    }

    .msrcl-program-focus .text-center p.text-muted {
        font-size: 13.5px !important;
        margin-top: 15px !important;
        margin-bottom: 25px !important;
    }

    /* Converts vertical layout grid block into an elegant horizontal swipe track */
    .mobile-swipe-rail {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding: 10px 5px 25px 5px !important;
        margin: 0 -15px !important;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Modern browser scrollbar hiding */
    }

    .mobile-swipe-rail::-webkit-scrollbar {
        display: none;
        /* Webkit scrollbar hiding fallback */
    }

    /* Scales cards perfectly to fit touch devices cleanly side-by-side */
    .mobile-swipe-rail .col-md-4 {
        width: 78% !important;
        /* Exposes part of the next card so users instantly know they can swipe */
        flex-shrink: 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .mobile-swipe-rail .col-md-4:first-child {
        padding-left: 20px !important;
    }

    .program-interactive-card {
        padding: 30px 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    }

    .msrcl-program-focus .mt-5 {
        margin-top: 20px !important;
        /* Pulls up button positioning gaps */
    }

    .btn-institutional-primary,
    .btn-institutional-accent {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 11px;
    }
}

/* --- Desktop Base Layout Rules --- */
.program-interactive-card {
    background: #ffffff;
    padding: 35px 20px;
    border: 1px solid #ECEEF2;
    text-align: center;
    height: 100%;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.program-interactive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(46, 36, 99, 0.06);
    border-color: rgba(46, 36, 99, 0.15);
}

.program-icon-box {
    width: 55px;
    height: 55px;
    background-color: #FAFAFC;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.program-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #2E2463;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-institutional-primary {
    background: #2E2463;
    color: #ffffff !important;
    padding: 14px 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    border: none;
    transition: background 0.2s ease;
}

.btn-institutional-primary:hover {
    background: #E31D2B;
}

.btn-institutional-accent {
    background: #E31D2B;
    color: #ffffff !important;
    padding: 14px 30px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    border: none;
    transition: background 0.2s ease;
}

.btn-institutional-accent:hover {
    background: #2E2463;
}

/* --- CRITICAL MOBILE SCROLL MECHANICS (DESKTOP REMAINS UNTOUCHED) --- */
@media (max-width: 991.98px) {
    .mobile-padding-fix {
        padding: 40px 15px !important;
        /* Tightens massive desktop paddings */
    }

    /* Converts vertical card grid stack into a horizontal scrolling track */
    .mobile-swipe-rail {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        /* Prevents cards from jumping down */
        overflow-x: auto !important;
        /* Enables fluid touch scrolling swipe */
        padding: 10px 5px 20px 5px !important;
        margin-left: -15px !important;
        margin-right: -15px !important;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        /* Kinetic scrolling physics for iOS web viewports */
        scrollbar-width: none;
        /* Hides default scroll tracks */
    }

    .mobile-swipe-rail::-webkit-scrollbar {
        display: none;
        /* Webkit scrollbar hiding fallback style rule */
    }

    /* Sets specific widths for mobile cards so they float nicely side-by-side */
    .mobile-swipe-rail .col-md-4 {
        width: 80% !important;
        /* Exposes the edge of the next card to invite swipes */
        flex-shrink: 0 !important;
        /* Crucial fix: stops cards from crushing or flattening */
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .mobile-swipe-rail .col-md-4:first-child {
        padding-left: 20px !important;
    }
}

/* --- High-Performance Mobile Layout Fixes --- */

/* 1. Master Section Anchor Component */
.msrcl-program-focus {
    background: #ffffff !important;
    width: 100% !important;
    /* Force-clips any unexpected rendering leakage to stop the screen from shaking */
    overflow-hidden: hidden !important;
}

/* 2. Parent Row Configuration */
.program-split-panel {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

/* --- ISOLATED MOBILE VIEWPORT ENGINE --- */
@media (max-width: 991.98px) {

    /* 3. Outer Padding Stabilization */
    .mobile-padding-fix {
        padding: 40px 16px !important;
        /* Retains breathable space without layout breaking */
        width: 100% !important;
        overflow: hidden !important;
    }

    /* 4. The Horizontal Swipe Track Rail */
    .mobile-swipe-rail {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        /* Locks columns onto a single horizontal line */

        /* Enables natural touch-swipe mechanics */
        overflow-x: auto !important;
        overflow-y: hidden !important;

        /* Native momentum scrolling on iOS touch devices */
        -webkit-overflow-scrolling: touch !important;

        /* Cleans out default desktop scrollbars */
        scrollbar-width: none !important;

        /* Hardware Acceleration prevents micro-stuttering or rendering delay jank */
        will-change: transform;
        transform: translateZ(0);

        padding: 15px 5px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    /* Webkit Engine Scrollbar Removal Fallback */
    .mobile-swipe-rail::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    /* 5. Fluid Grid Column Alignment Scaling */
    .mobile-swipe-rail .col-md-4,
    .mobile-swipe-rail .col-sm-6,
    .mobile-swipe-rail .col-sm-12 {
        width: 82% !important;
        /* Standard premium ratio reveals the edge of the next card */
        flex-shrink: 0 !important;
        /* CRITICAL FIX: Stops the browser from flattening or shrinking cards */
        padding-left: 8px !important;
        padding-right: 8px !important;
        margin-bottom: 0 !important;
    }

    /* 6. Clean Card Internal Alignment */
    .program-interactive-card {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        box-shadow: 0 8px 20px rgba(46, 36, 99, 0.03) !important;
        border: 1px solid #EAECEF !important;
    }
}

/* --- High-End Institutional Footer Styles --- */
.site-footer {
    background-color: #0E0B1F !important;
    /* Deep Premium Midnight Base */
    position: relative;
    color: #C5C7D0;
}

.footer-heading {
    font-family: 'Playfair Display', serif;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: #C5C7D0 !important;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links-list a i {
    font-size: 10px;
    margin-right: 10px;
    color: #E31D2B;
    /* Brand Red Bullet */
    transition: transform 0.2s ease;
}

.footer-links-list a:hover {
    color: #ffffff !important;
    transform: translateX(4px);
}

/* --- MOBILE SPECIFIC SIDE-BY-SIDE OPTIMIZATIONS --- */
@media (max-width: 767.98px) {
    .footer-heading {
        font-size: 14px !important;
        /* Slightly smaller typography to prevent title wrapping */
        margin-bottom: 15px;
    }

    .footer-links-list a {
        font-size: 12.5px !important;
        /* Optimized text footprint for 2-column mobile structure */
        line-height: 1.4;
    }

    .footer-links-list a i {
        margin-right: 6px;
        /* Tightens icon margins to give text maximum breathing room */
        font-size: 8px;
    }

    /* Safely separate the grid columns on tiny displays */
    .mobile-split-links {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

@media (max-width: 991.98px) {

    /* 1. Main body matthu html-ge lock haaku */
    html,
    body {
        overflow-x: hidden !important;
        width: 100% !important;
        position: relative !important;
    }

    /* 2. Ellaa layout blocks-annu screen width-ge lock maadi */
    * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 3. Shaking-ige main reason: hidden overflow in container */
    .msrcl-dashboard-slate,
    .container,
    .container-fluid,
    .row {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }

    /* 4. Marquee (Explore Infrastructure) track-annu stop maadu */
    .msrcl-discovery-hub {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        overflow: hidden !important;
    }

    /* 5. Mobile view-alli sidebar width-annu full screen maadu */
    .col-xl-3,
    .col-lg-4,
    .col-xl-6,
    .col-lg-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 991.98px) {

    html,
    body {
        overflow-x: clip !important;
        width: 100%;
        position: relative;
        touch-action: pan-y;
    }

    body {
        margin: 0;
        padding: 0;
    }

    /* Bootstrap row fix */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Prevent all sections from exceeding screen */
    section,
    div,
    img,
    video,
    iframe {
        max-width: 100%;
    }

    img,
    video {
        height: auto;
        display: block;
    }

    /* BIGGEST FIX */
    .container,
    .container-fluid {
        overflow: hidden;
    }

    /* Slider / marquee fix */
    .msrcl-discovery-hub,
    .marquee,
    .slider,
    .swiper,
    .carousel {
        overflow: hidden !important;
    }

    /* Prevent transform overflow */
    [style*="translate"],
    [class*="translate"] {
        max-width: 100%;
    }

    /* Bootstrap columns */
    .col-xl-3,
    .col-lg-4,
    .col-xl-6,
    .col-lg-8 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
}

body {
    overscroll-behavior-x: none;
}





/* --- Institutional Matrix Layout Framework --- */
.pillar-card {
    background: #ffffff;
    padding: 40px 30px;
    border: 1px solid #ECEEF2;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    /* Ensures all 4 boxes are identical height */
    display: flex;
    flex-direction: column;
}

.pillar-card:hover {
    box-shadow: 0 20px 40px rgba(46, 36, 99, 0.08);
    border-color: rgba(46, 36, 99, 0.15);
    transform: translateY(-5px);
}

.pillar-icon-box {
    width: 50px;
    height: 50px;
    background: #FAFAFC;
    color: #2E2463;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
}

.pillar-title {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    color: #2E2463;
}

/* --- MOBILE GRID FIX --- */
@media (max-width: 767.98px) {
    .pillar-card {
        padding: 25px 15px !important;
        /* Reduces whitespace */
    }

    .pillar-icon-box {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 15px;
    }

    .pillar-title {
        font-size: 15px !important;
    }

    .text-muted {
        font-size: 12px !important;
    }
}


/* --- High-End Bento Grid Layout --- */
.program-split-panel {
    display: flex;
    flex-wrap: wrap;
}

/* Grid layout for the 4 Program Boxes */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2x2 grid for mobile */
    gap: 15px;
    margin-top: 30px;
}

.program-interactive-card {
    background: #ffffff;
    padding: 25px 15px;
    border: 1px solid #ECEEF2;
    text-align: center;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

/* Icons */
.program-icon-box {
    width: 45px;
    height: 45px;
    background: #FFFFFF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.program-card-title {
    font-size: 13px !important;
    font-weight: 700;
    color: #2E2463;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* CTA Buttons Bar */
.mobile-cta-bar {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
}

.btn-institutional {
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0;
    flex: 1;
}

@media (min-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        /* Switches to 4x1 on desktop */
    }
}

/* --- High-End Responsive Grid Patch --- */

/* Desktop: Force 4 equal columns */
@media (min-width: 992px) {
    .program-card-col {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}

/* Mobile: Force 2 columns (2x2 grid) */
@media (max-width: 991.98px) {
    .mobile-swipe-rail {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        overflow-x: hidden !important;
        /* Removes swipe, uses grid */
    }

    .program-card-col {
        width: 100% !important;
    }
}

.program-interactive-card {
    height: 100% !important;
    /* Locks all cards to equal height */
}

/* --- High-Performance Ticker Bar --- */
.msrcl-ticker-wrap {
    background: #002147;
    /* Deep Navy */
    display: flex;
    align-items: center;
    height: 50px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-bottom: 3px solid #E31D2B;
    /* Brand Red accent */
}

/* Red Badge (Fixed) */
.ticker-badge {
    background: #E31D2B;
    color: #ffffff;
    padding: 0 25px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    flex-shrink: 0;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
    z-index: 2;
}

/* Scrolling Track (Smooth & Shake-free) */
.msrcl-ticker-marquee {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-track {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-scroll 35s linear infinite;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    margin-right: 60px;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.marquee-item a {
    color: #FFD700 !important;
    text-decoration: underline !important;
}

/* Smooth Hardware-Accelerated Scroll */
@keyframes marquee-scroll {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

/* MOBILE FIX: Responsiveness */
@media (max-width: 767px) {
    .msrcl-ticker-wrap {
        height: 40px;
    }

    .ticker-badge {
        padding: 0 15px;
        font-size: 9px;
    }

    .marquee-item {
        font-size: 11px;
        margin-right: 30px;
    }
}

/* --- Premium Medium Mega Dropdown Framework --- */
.nav-item.dropdown-mega-medium {
    position: relative !important;
    /* Contextually isolates the dropdown module width */
}

/* Fixes block clipping and sets precise luxury dimensions */
.dropdown-mega-medium .dropdown-menu {
    width: 520px !important;
    min-width: 520px !important;
    background: #ffffff !important;
    border-top: 4px solid #E31D2B !important;
    /* Premium Brand Crimson Top Accent Line */
    border-radius: 0px !important;
    padding: 30px 25px !important;
    margin: 0 !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px);
    /* Centered alignment matrix anchor */
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease, visibility 0.3s ease !important;
    display: block !important;
    /* Overrides default display logic for crisp animations */
}

/* Elegant dropdown activation triggers */
.nav-item.dropdown-mega-medium:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0);
}

/* Premium Link Visual Profiling */
.mega-premium-link {
    font-size: 13px !important;
    color: #5F6368 !important;
    font-weight: 500;
    padding: 6px 0 !important;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.mega-premium-link:hover {
    color: #E31D2B !important;
    /* Smooth color-shift to crimson brand pointer */
    padding-left: 4px !important;
}

/* Special Layout Rule for Disabled & PWD Categories link element profiles */
.pdw-premium-callout {
    border-top: 1px dashed #EAECEF !important;
    margin-top: 12px !important;
    padding-top: 10px !important;
}

.pdw-premium-callout a {
    color: #2E2463 !important;
    /* Brand Purple */
    font-weight: 700 !important;
    font-size: 12px !important;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.pdw-premium-callout a:hover {
    color: #E31D2B !important;
}

/* --- MOBILE COMPATIBILITY BREAKDOWN --- */
@media (max-width: 991.98px) {
    .dropdown-mega-medium .dropdown-menu {
        width: 100% !important;
        min-width: 100% !important;
        transform: none !important;
        position: static !important;
        padding: 20px !important;
        box-shadow: none !important;
        border-top: none !important;
        border-left: 2px solid #E31D2B !important;
        /* Elegant vertical side bar on mobile screens */
        display: none !important;
    }

    .nav-item.dropdown-mega-medium.show .dropdown-menu {
        display: block !important;
    }

    .pdw-premium-callout {
        margin-top: 8px !important;
        padding-top: 6px !important;
    }
}
/* --- Fix 1: Force Menu Button to the Absolute Right Edge --- */
.style-main-navbar .container {
    max-width: 100% !important;
    /* Spans full horizontal limits */
    padding-right: 0px !important;
    /* Eliminates the red-marked empty gap completely */
}

/* --- Fix 2: Perfect Facilities Dropdown Alignment --- */
.nav-item.dropdown-mega-medium {
    position: relative !important;
    /* This creates the anchor point for the dropdown */
}

/* Re-adjust position parameters to drop right below the item */
.dropdown-mega-medium .dropdown-menu {
    width: 540px !important;
    min-width: 540px !important;
    background: #ffffff !important;
    border-top: 4px solid #E31D2B !important;
    border-radius: 0px !important;
    padding: 30px 25px !important;
    margin: 0 !important;

    /* Anchors dropdown relative to where the 'FACILITIES' text sits */
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    /* Aligns left edge exactly with the 'F' in Facilities */
    transform: translateY(10px);

    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease, visibility 0.3s ease !important;
    display: block !important;
    z-index: 999;
}

/* Triggers smooth elegant transition on hover */
.nav-item.dropdown-mega-medium:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0);
}

.mega-premium-link {
    font-size: 13px !important;
    color: #5F6368 !important;
    font-weight: 500;
    padding: 6px 0 !important;
    transition: all 0.2s ease !important;
}

.mega-premium-link:hover {
    color: #E31D2B !important;
    padding-left: 4px !important;
}

.pdw-premium-callout {
    border-top: 1px dashed #EAECEF !important;
    margin-top: 12px !important;
    padding-top: 10px !important;
}

/* --- Mobile Compatibility Overrides --- */
@media (max-width: 991.98px) {
    .style-main-navbar .container {
        padding-right: 15px !important;
        /* Re-instates safe padding limits for touch screens */
    }

    .dropdown-mega-medium .dropdown-menu {
        width: 100% !important;
        min-width: 100% !important;
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border-top: none !important;
        border-left: 2px solid #E31D2B !important;
        display: none !important;
    }

    .nav-item.dropdown-mega-medium.show .dropdown-menu {
        display: block !important;
    }
}

/* --- High-End Balanced Medium Mega Menu Engine --- */
.nav-item.dropdown-mega-medium {
    position: relative !important;
    /* CRITICAL FIX: Creates a stable structural base coordinate */
}

.dropdown-mega-medium .dropdown-menu {
    width: 480px !important;
    /* Premium optimized bento box footprint layout */
    min-width: 480px !important;
    background: #ffffff !important;
    border-top: 4px solid #E31D2B !important;
    /* Signature Crimson Accent Line */
    border-radius: 0px !important;
    padding: 30px 25px !important;
    margin: 0 !important;
    box-shadow: 0 15px 35px rgba(46, 36, 99, 0.08) !important;

    /* CRITICAL FIX: Centers the menu card precisely relative to the parent link element */
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px);
    /* Keeps it centered so it won't leak off-screen */

    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease, visibility 0.3s ease !important;
    display: block !important;
    z-index: 1050;
}

/* Hover Interactive Automation Trigger */
.nav-item.dropdown-mega-medium:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0);
    /* Clean float transition up into focus */
}

/* Premium Navigation Links Typography */
.mega-premium-link {
    font-size: 13px !important;
    color: #5F6368 !important;
    font-weight: 500;
    padding: 6px 0 !important;
    transition: all 0.2s ease !important;
}

.mega-premium-link:hover {
    color: #E31D2B !important;
    padding-left: 4px !important;
}

/* --- MOBILE COMPATIBILITY CONSTRAINTS --- */
@media (max-width: 991.98px) {
    .dropdown-mega-medium .dropdown-menu {
        width: 100% !important;
        min-width: 100% !important;
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border-top: none !important;
        border-left: 2px solid #E31D2B !important;
        /* Elegant crimson edge line for vertical mobile trees */
        display: none !important;
        padding: 20px !important;
    }

    .nav-item.dropdown-mega-medium.show .dropdown-menu {
        display: block !important;
    }
}

/* --- Balanced Left-Aligned Medium Mega Dropdown --- */
.nav-item.dropdown-mega-medium {
    position: relative !important;
    /* Contextual coordinate anchor point */
}

.dropdown-mega-medium .dropdown-menu {
    width: 460px !important;
    /* Optimized tight box footprint layout width */
    min-width: 460px !important;
    background: #ffffff !important;
    border-top: 4px solid #E31D2B !important;
    /* Brand Crimson Divider Track */
    border-radius: 0px !important;
    padding: 25px 20px !important;
    margin: 0 !important;
    box-shadow: 0 15px 35px rgba(46, 36, 99, 0.08) !important;

    /* CRITICAL FIX: Flush alignment right below the link text edge layout */
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    /* Left edge-ge exact aagi align maadutthe */
    right: auto !important;
    transform: translateY(5px) !important;
    /* Removes the problematic horizontal center shift */

    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.25s ease, visibility 0.25s ease !important;
    display: block !important;
    z-index: 1060;
}

/* Hover Interactive Automation Trigger */
.nav-item.dropdown-mega-medium:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Links Polish */
.mega-premium-link {
    font-size: 13px !important;
    color: #5F6368 !important;
    font-weight: 500;
    padding: 6px 0 !important;
    transition: all 0.2s ease !important;
}

.mega-premium-link:hover {
    color: #E31D2B !important;
    padding-left: 4px !important;
}

/* Mobile Compatibility */
@media (max-width: 991.98px) {
    .dropdown-mega-medium .dropdown-menu {
        width: 100% !important;
        min-width: 100% !important;
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border-top: none !important;
        border-left: 2px solid #E31D2B !important;
        display: none !important;
    }

    .nav-item.dropdown-mega-medium.show .dropdown-menu {
        display: block !important;
    }
}
/* --- Balanced Left-Aligned Medium Mega Dropdown --- */
.nav-item.dropdown-mega-medium {
    position: relative !important;
    /* Contextual coordinate anchor point */
}

.dropdown-mega-medium .dropdown-menu {
    width: 460px !important;
    /* Optimized tight box footprint layout width */
    min-width: 460px !important;
    background: #ffffff !important;
    border-top: 4px solid #E31D2B !important;
    /* Brand Crimson Divider Track */
    border-radius: 0px !important;
    padding: 25px 20px !important;
    margin: 0 !important;
    box-shadow: 0 15px 35px rgba(46, 36, 99, 0.08) !important;

    /* CRITICAL FIX: Flush alignment right below the link text edge layout */
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    /* Left edge-ge exact aagi align maadutthe */
    right: auto !important;
    transform: translateY(5px) !important;
    /* Removes the problematic horizontal center shift */

    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.25s ease, visibility 0.25s ease !important;
    display: block !important;
    z-index: 1060;
}

/* Hover Interactive Automation Trigger */
.nav-item.dropdown-mega-medium:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Links Polish */
.mega-premium-link {
    font-size: 13px !important;
    color: #5F6368 !important;
    font-weight: 500;
    padding: 6px 0 !important;
    transition: all 0.2s ease !important;
}

.mega-premium-link:hover {
    color: #E31D2B !important;
    padding-left: 4px !important;
}

/* Mobile Compatibility */
@media (max-width: 991.98px) {
    .dropdown-mega-medium .dropdown-menu {
        width: 100% !important;
        min-width: 100% !important;
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border-top: none !important;
        border-left: 2px solid #E31D2B !important;
        display: none !important;
    }

    .nav-item.dropdown-mega-medium.show .dropdown-menu {
        display: block !important;
    }
}

/* --- Master Media Query Layout Rules Panel --- */

/* ==========================================================================
   1. DESKTOP LAYOUT CONFIGURATIONS
   ========================================================================== */
@media (min-width: 768px) {

    /* Main Chat Frame Placement */
    .msrcl-chat-responsive-frame {
        width: 380px !important;
        height: 540px !important;
        position: absolute !important;
        bottom: 75px !important;
        right: 0 !important;
    }

    /* Welcome Toast Message Box */
    .msrcl-chat-welcome-toast {
        display: none;
        opacity: 0;
        position: absolute !important;
        bottom: 75px !important;
        right: 5px !important;
        width: 260px !important;
        background: #ffffff;
        border-left: 4px solid #E31D2B;
        box-shadow: 0 10px 30px rgba(46, 36, 99, 0.15);
        padding: 14px 16px;
        border-radius: 4px;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        pointer-events: auto;
        z-index: 10;
    }
}

/* ==========================================================================
   2. MOBILE LAYOUT CONFIGURATIONS (PREVENTS SQUISHING AND LEAKAGE)
   ========================================================================== */
@media (max-width: 767.98px) {

    /* Main Chat Frame - Positioned inside viewport bounds */
    .msrcl-chat-responsive-frame {
        width: 320px !important;
        height: 480px !important;
        position: fixed !important;
        bottom: 100px !important;
        right: 20px !important;
    }

    /* Welcome Toast Message Box - Converted to an absolute-centered safe banner */
    .msrcl-chat-welcome-toast {
        display: none;
        opacity: 0;
        position: fixed !important;
        bottom: 100px !important;
        /* Drops right above the floating circular trigger icon */
        right: 20px !important;
        /* Matches side offsets perfectly */
        width: calc(100vw - 40px) !important;
        /* Dynamically sizes to match screen margins */
        max-width: 320px !important;
        /* Caps width to match the main open chat frame width */
        background: #ffffff;
        border-left: 4px solid #E31D2B;
        box-shadow: 0 10px 30px rgba(46, 36, 99, 0.15);
        padding: 14px 16px;
        border-radius: 4px;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        pointer-events: auto;
        z-index: 10;
    }
}

   /* --- Optional but Recommended Performance Boost Rules --- */
   html.lenis {
       height: auto;
   }

   .lenis.lenis-smooth {
       scroll-behavior: auto !important;
       /* Disables browser defaults to let Lenis handle curves perfectly */
   }

   .lenis.lenis-smooth [data-lenis-prevent] {
       scroll-behavior: contain;
       /* Keeps inner chat logs or code drawers scrolling normally */
   }



   /* --- High-End Section Reveal Animations System --- */

   /* The starting state for any section you want to animate */
   .msrcl-reveal-section {
       opacity: 0 !important;
       transform: translateY(40px) scale(0.98);
       /* Subtle drop down and slight shrink */
       transition: opacity 1.2s cubic-bezier(0.215, 0.610, 0.355, 1),
           transform 1.2s cubic-bezier(0.215, 0.610, 0.355, 1) !important;
       will-change: opacity, transform;
       /* Hints the browser GPU for smooth rendering */
   }

   /* Alternate reveal: Slide in elegantly from the left */
   .msrcl-reveal-left {
       opacity: 0 !important;
       transform: translateX(-50px);
       transition: opacity 1.2s cubic-bezier(0.215, 0.610, 0.355, 1),
           transform 1.2s cubic-bezier(0.215, 0.610, 0.355, 1) !important;
       will-change: opacity, transform;
   }

   /* Alternate reveal: Slide in elegantly from the right */
   .msrcl-reveal-right {
       opacity: 0 !important;
       transform: translateX(50px);
       transition: opacity 1.2s cubic-bezier(0.215, 0.610, 0.355, 1),
           transform 1.2s cubic-bezier(0.215, 0.610, 0.355, 1) !important;
       will-change: opacity, transform;
   }

   /* The Active visible state triggered dynamically by Javascript */
   .msrcl-reveal-section.is-visible,
   .msrcl-reveal-left.is-visible,
   .msrcl-reveal-right.is-visible {
       opacity: 1 !important;
       transform: translate(0, 0) scale(1) !important;
       /* Glides perfectly back to natural position */
   }

   /* Accessibility: Instantly disable animations if the user prefers reduced motion */
   @media (prefers-reduced-motion: reduce) {

       .msrcl-reveal-section,
       .msrcl-reveal-left,
       .msrcl-reveal-right {
           opacity: 1 !important;
           transform: none !important;
           transition: none !important;
       }
   }

   /* --- Ultra-Premium Cinematic Motion Additions --- */

   /* 1. Zoom Out Fade: Background handles depth scaling smoothly */
   .msrcl-reveal-zoom-out {
       opacity: 0 !important;
       transform: scale(1.1) translateY(20px);
       transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
           transform 1.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
       will-change: opacity, transform;
   }

   /* 2. Cinematic 3D Reveal: Simulates high-end editorial book shifts */
   .msrcl-reveal-3d {
       opacity: 0 !important;
       transform: perspective(1200px) rotateX(12deg) translateY(50px);
       transform-origin: top center;
       transition: opacity 1.3s cubic-bezier(0.19, 1, 0.22, 1),
           transform 1.3s cubic-bezier(0.19, 1, 0.22, 1) !important;
       will-change: opacity, transform;
   }

   /* 3. Staggered Stencil Typo: Forces characters to track smoothly outward */
   .msrcl-reveal-typo h2 {
       letter-spacing: -3px;
       opacity: 0;
       transition: letter-spacing 1.5s cubic-bezier(0.16, 1, 0.3, 1),
           opacity 1.2s ease !important;
   }

   /* --- ACTIVE TRIGGER INJECTIONS --- */
   .msrcl-reveal-zoom-out.is-visible,
   .msrcl-reveal-3d.is-visible {
       opacity: 1 !important;
       transform: scale(1) translateY(0) rotateX(0deg) !important;
   }

   .msrcl-reveal-typo.is-visible h2 {
       opacity: 1;
       letter-spacing: 0.5px !important;
       /* Premium structural typography snap back */
   }

  
   .msrcl-reveal-3d,
   .msrcl-reveal-right,
   .msrcl-reveal-zoom-out {
       will-change: opacity, transform;
   }

  
   .msrcl-reveal-3d.is-visible,
   .msrcl-reveal-right.is-visible,
   .msrcl-reveal-zoom-out.is-visible,
   .msrcl-reveal-section.is-visible {
       opacity: 1 !important;
       transform: translate(0, 0) scale(1) rotateX(0deg) !important;
   }


        /* ==========================================================================
       GLOBAL CHATBOT BASE ARCHITECTURE (With Smart Transitions)
       ========================================================================== */
        .msrcl-chatbot-global-wrapper {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 1030;
            /* CRITICAL: Lowered to sit below Bootstrap's Offcanvas Drawer (1045+) */
            font-family: 'Montserrat', sans-serif;
            transition: opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.3s ease;
            will-change: opacity, transform;
        }
    
        .msrcl-chat-trigger-button {
            width: 60px;
            height: 60px;
            background: #2E2463;
            border: none;
            border-radius: 50%;
            color: #ffffff;
            font-size: 24px;
            box-shadow: 0 8px 24px rgba(46, 36, 99, 0.25);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
            outline: none;
        }
    
        /* Hidden state applied dynamically when mobile drawer is active */
        .msrcl-chatbot-global-wrapper.sidebar-active {
            opacity: 0 !important;
            transform: scale(0.8) translateY(10px) !important;
            pointer-events: none !important;
        }
    
        /* ==========================================================================
       DESKTOP MEDIA RESPONSIVE LAYER
       ========================================================================== */
        @media (min-width: 768px) {
            .msrcl-chat-responsive-frame {
                width: 380px !important;
                height: 540px !important;
                position: absolute !important;
                bottom: 75px !important;
                right: 0 !important;
            }
    
            .msrcl-chat-welcome-toast {
                display: none;
                opacity: 0;
                position: absolute !important;
                bottom: 75px !important;
                right: 5px !important;
                width: 260px !important;
                background: #ffffff;
                border-left: 4px solid #E31D2B;
                box-shadow: 0 10px 30px rgba(46, 36, 99, 0.15);
                padding: 14px 16px;
                border-radius: 4px;
                transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
                z-index: 10;
            }
        }
    
        /* ==========================================================================
       MOBILE MEDIA RESPONSIVE LAYER (Prevents Viewport Clashing)
       ========================================================================== */
        @media (max-width: 767.98px) {
            .msrcl-chatbot-global-wrapper {
                bottom: 20px !important;
                right: 20px !important;
            }
    
            .msrcl-chat-responsive-frame {
                width: 320px !important;
                height: 440px !important;
                position: fixed !important;
                bottom: 95px !important;
                right: 20px !important;
            }
    
            .msrcl-chat-welcome-toast {
                display: none;
                opacity: 0;
                position: fixed !important;
                bottom: 95px !important;
                right: 20px !important;
                width: calc(100vw - 40px) !important;
                max-width: 320px !important;
                background: #ffffff;
                border-left: 4px solid #E31D2B;
                box-shadow: 0 10px 30px rgba(46, 36, 99, 0.15);
                padding: 14px 16px;
                border-radius: 4px;
                transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
                z-index: 10;
            }
        }






               
                /* ==========================================================================
           ADVANCED MOTION DESIGN STYLES PANEL
           ========================================================================== */
        
                /* Core Typography & Layout Guards */
                .msrcl-premium-nav-link {
                    font-family: 'Montserrat', sans-serif;
                    font-size: 12px;
                    font-weight: 700;
                    color: #2E2463 !important;
                    letter-spacing: 0.8px;
                    padding: 0 4px;
                    position: relative;
                    text-decoration: none;
                    transition: color 0.3s ease;
                }
        
                /* Luxury Bottom Sliding Track Indicator Link Effect */
                .msrcl-premium-nav-link::after {
                    content: '';
                    position: absolute;
                    bottom: -8px;
                    left: 0;
                    width: 100%;
                    height: 3px;
                    background: #E31D2B;
                    transform: scaleX(0);
                    transform-origin: right center;
                    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
                }
        
                .msrcl-premium-nav-link:hover::after,
                .nav-item.show .msrcl-premium-nav-link::after {
                    transform: scaleX(1);
                    transform-origin: left center;
                }
        
                /* Mega Dropdown Clean Panels Layout Frame */
                .msrcl-mega-dropdown-canvas {
                    border-top: 4px solid #E31D2B !important;
                    border-radius: 0 !important;
                    padding: 35px 0 !important;
                    background: #ffffff !important;
                    box-shadow: 0 25px 60px rgba(46, 36, 99, 0.1) !important;
                    transform: translateY(15px);
                    opacity: 0;
                    visibility: hidden;
                    display: block !important;
                    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease, visibility 0.3s;
                }
        
                .dropdown-mega:hover .msrcl-mega-dropdown-canvas {
                    transform: translateY(0);
                    opacity: 1;
                    visibility: visible;
                }
        
                .mega-col-heading {
                    font-family: 'Playfair Display', serif;
                    font-size: 15px;
                    font-weight: 700;
                    color: #2E2463;
                    border-bottom: 2px solid #FAFAFC;
                    padding-bottom: 8px;
                    margin-bottom: 14px;
                    text-transform: uppercase;
                    letter-spacing: 0.3px;
                }
        
                .mega-premium-link {
                    display: block;
                    font-size: 13.5px;
                    color: #5F6368;
                    font-weight: 500;
                    padding: 5px 0;
                    text-decoration: none;
                    transition: all 0.25s ease;
                }
        
                .mega-premium-link:hover {
                    color: #E31D2B !important;
                    transform: translateX(4px);
                }
        
                /* Minimalist Corporate Burger Button Asset Trigger */
                .msrcl-minimal-burger-btn {
                    background: #2E2463;
                    border: none;
                    height: 90px;
                    padding: 0 30px;
                    display: inline-flex;
                    align-items: center;
                    gap: 12px;
                    cursor: pointer;
                    transition: background 0.3s ease;
                }
        
                .msrcl-minimal-burger-btn:hover {
                    background: #1d1542;
                }
        
                .burger-text-label {
                    color: #ffffff;
                    font-size: 12px;
                    font-weight: 700;
                    letter-spacing: 1.5px;
                }
        
                .burger-icon-vector {
                    display: flex;
                    flex-direction: column;
                    gap: 5px;
                    width: 18px;
                }
        
                .line-bar-track {
                    width: 100%;
                    height: 2px;
                    background: #ffffff;
                    display: block;
                    transition: all 0.3s ease;
                }
        
                .msrcl-minimal-burger-btn:hover .line-bar-track:nth-child(1) {
                    transform: translateX(2px);
                }
        
                .msrcl-minimal-burger-btn:hover .line-bar-track:nth-child(2) {
                    transform: translateX(-2px);
                }
        
                /* Luxury Offcanvas Deep Velvet Renders Dashboard */
                .msrcl-premium-drawer {
                    background-color: #120A21 !important;
                    /* Premium High-contrast Navy Dark */
                    color: #ffffff !important;
                }
        
                .msrcl-drawer-close-trigger {
                    background: none;
                    border: none;
                    color: rgba(255, 255, 255, 0.4);
                    font-size: 20px;
                    cursor: pointer;
                    transition: color 0.25s ease;
                }
        
                .msrcl-drawer-close-trigger:hover {
                    color: #E31D2B;
                }
        
                .drawer-minimal-anchor {
                    display: block;
                    padding: 16px 24px;
                    color: rgba(255, 255, 255, 0.85);
                    font-weight: 700;
                    font-size: 12.5px;
                    letter-spacing: 1px;
                    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
                    text-decoration: none;
                    transition: all 0.25s ease;
                }
        
                .drawer-minimal-anchor:hover {
                    background: rgba(255, 255, 255, 0.02);
                    color: #C5A059;
                    padding-left: 30px;
                }
        
                .msrcl-premium-drawer .accordion-button {
                    background: transparent !important;
                    color: rgba(255, 255, 255, 0.85) !important;
                    font-weight: 700;
                    font-size: 12.5px;
                    letter-spacing: 1px;
                    padding: 16px 24px;
                    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
                    box-shadow: none !important;
                }
        
                .msrcl-premium-drawer .accordion-button:not(.collapsed) {
                    color: #C5A059 !important;
                }
        
                .msrcl-premium-drawer .accordion-button::after {
                    filter: invert(1);
                }
        
                .msrcl-premium-drawer .accordion-body {
                    background: rgba(0, 0, 0, 0.15) !important;
                    padding: 10px 0 20px 0 !important;
                }
        
                .drawer-sub-link {
                    display: block;
                    padding: 8px 36px;
                    color: rgba(255, 255, 255, 0.55);
                    font-size: 13px;
                    font-weight: 500;
                    text-decoration: none;
                    transition: all 0.25s ease;
                }
        
                .drawer-sub-link:hover {
                    color: #ffffff !important;
                    padding-left: 42px;
                }
        
                .drawer-group-lbl {
                    font-size: 10px;
                    font-weight: 800;
                    color: #E31D2B;
                    letter-spacing: 1.5px;
                    text-transform: uppercase;
                    padding: 12px 36px 4px 36px;
                }
        
               


   /* ==========================================================================
   ADVANCED MOTION & ARCHITECTURAL GRID CORE SYSTEM
   ========================================================================== */
   .msrcl-premium-nav-link {
      font-family: 'Montserrat', sans-serif;
      font-size: 12px;
      font-weight: 700;
      color: #2E2463 !important;
      letter-spacing: 0.6px;
      padding: 38px 12px !important;
      position: relative;
      text-decoration: none;
      display: inline-block;
      transition: color 0.3s ease;
   }

   .msrcl-premium-nav-link::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 4px;
      background: #E31D2B;
      transform: scaleX(0);
      transform-origin: right center;
      transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
   }

   .msrcl-premium-nav-link:hover::after,
   .nav-item.show .msrcl-premium-nav-link::after {
      transform: scaleX(1);
      transform-origin: left center;
   }

   .msrcl-mega-dropdown-canvas {
      border-top: 4px solid #E31D2B !important;
      border-radius: 0 !important;
      padding: 35px 0 !important;
      background: #ffffff !important;
      box-shadow: 0 25px 60px rgba(46, 36, 99, 0.12) !important;
      transform: translateY(15px);
      opacity: 0;
      visibility: hidden;
      display: block !important;
      transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease, visibility 0.3s;
   }

   .dropdown-mega:hover .msrcl-mega-dropdown-canvas {
      transform: translateY(0);
      opacity: 1;
      visibility: visible;
   }

   .mega-col-heading {
      font-family: 'Playfair Display', serif;
      font-size: 14px;
      font-weight: 700;
      color: #2E2463;
      border-bottom: 2px solid #FAFAFC;
      padding-bottom: 8px;
      margin-bottom: 14px;
      text-transform: uppercase;
   }

   .mega-premium-link {
      display: block;
      font-size: 13px;
      color: #5F6368;
      font-weight: 500;
      padding: 6px 0;
      text-decoration: none;
      transition: all 0.25s ease;
   }

   .mega-premium-link:hover {
      color: #E31D2B !important;
      transform: translateX(4px);
   }

   /* HIGH-END UNIFIED BURGER COMPONENT (Fires flawlessly on all device layers) */
   .msrcl-minimal-burger-btn {
      background: #2E2463;
      border: none;
      height: 100%;
      padding: 0 35px;
      display: inline-flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
      transition: background 0.3s ease;
   }

   .msrcl-minimal-burger-btn:hover {
      background: #1d1542;
   }

   .burger-text-label {
      color: #ffffff;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 1.5px;
   }

   .burger-icon-vector {
      display: flex;
      flex-direction: column;
      gap: 5px;
      width: 18px;
   }

   .line-bar-track {
      width: 100%;
      height: 2px;
      background: #ffffff;
      display: block;
      transition: all 0.3s ease;
   }

   .msrcl-minimal-burger-btn:hover .line-bar-track:nth-child(1) {
      transform: translateX(2px);
   }

   .msrcl-minimal-burger-btn:hover .line-bar-track:nth-child(2) {
      transform: translateX(-2px);
   }

   /* Royal Dark Side Sheet Menu Styles */
   .msrcl-premium-drawer {
      background-color: #120A21 !important;
      color: #ffffff !important;
      width: 380px;
   }

   .msrcl-drawer-close-trigger {
      background: none;
      border: none;
      color: rgba(255, 255, 255, 0.4);
      font-size: 20px;
      cursor: pointer;
      transition: color 0.25s ease;
   }

   .msrcl-drawer-close-trigger:hover {
      color: #E31D2B;
   }

   .drawer-minimal-anchor {
      display: block;
      padding: 16px 24px;
      color: rgba(255, 255, 255, 0.85);
      font-weight: 700;
      font-size: 12.5px;
      letter-spacing: 1px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.03);
      text-decoration: none;
      transition: all 0.25s ease;
   }

   .drawer-minimal-anchor:hover {
      background: rgba(255, 255, 255, 0.02);
      color: #C5A059;
      padding-left: 30px;
   }

   .msrcl-premium-drawer .accordion-button {
      background: transparent !important;
      color: rgba(255, 255, 255, 0.85) !important;
      font-weight: 700;
      font-size: 12.5px;
      letter-spacing: 1px;
      padding: 16px 24px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
      box-shadow: none !important;
   }

   .msrcl-premium-drawer .accordion-button:not(.collapsed) {
      color: #C5A059 !important;
   }

   .msrcl-premium-drawer .accordion-button::after {
      filter: invert(1);
   }

   .msrcl-premium-drawer .accordion-body {
      background: rgba(0, 0, 0, 0.15) !important;
      padding: 10px 0 20px 0 !important;
   }

   .drawer-sub-link {
      display: block;
      padding: 8px 36px;
      color: rgba(255, 255, 255, 0.55);
      font-size: 13px;
      font-weight: 500;
      text-decoration: none;
      transition: all 0.25s ease;
   }

   .drawer-sub-link:hover {
      color: #ffffff !important;
      padding-left: 42px;
   }

   .drawer-group-lbl {
      font-size: 10px;
      font-weight: 800;
      color: #E31D2B;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      padding: 12px 36px 4px 36px;
   }

   /* Fixed Fluid Responsive Mobile Boundaries */
   @media (max-width: 991.98px) {
      .msrcl-premium-navigation {
         background: #ffffff !important;
      }

      .msrcl-premium-navigation div[style*="min-height: 95px"] {
         min-height: 80px !important;
      }

      .msrcl-minimal-burger-btn {
         height: 80px !important;
         padding: 0 25px !important;
      }
   }


   /* --- MOBILE VIEWPORT FIX (PERFECT FLUID SIZING) --- */
   @media (max-width: 991.98px) {
       .msrcl-chatbot-global-wrapper {
           bottom: 20px !important;
           right: 20px !important;
       }

       .msrcl-chat-responsive-frame {
           /* FIXED: Fluid width strictly prevents screen clipping on narrow phones */
           width: calc(100vw - 40px) !important;
           max-width: 350px !important;
           height: 480px !important;
           max-height: calc(100vh - 120px) !important;
           position: fixed !important;
           bottom: 95px !important;
           right: 20px !important;
           z-index: 999999 !important;
       }

       .msrcl-chat-welcome-toast {
           display: none;
           opacity: 0;
           position: fixed !important;
           bottom: 95px !important;
           right: 20px !important;
           /* Matches the fluid frame size */
           width: calc(100vw - 40px) !important;
           max-width: 350px !important;
           background: #ffffff;
           border-left: 4px solid #E31D2B;
           box-shadow: 0 10px 30px rgba(46, 36, 99, 0.15);
           padding: 14px 16px;
           border-radius: 4px;
           transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
           z-index: 999999 !important;
       }
   }




  

  /* ==========================================================================
      MASTER CHATBOT COHESIVE PHYSICS CONFIGURATIONS (FINAL FIX)
      ========================================================================== */
  .msrcl-chatbot-global-wrapper {
      position: fixed;
      bottom: 30px;
      right: 30px;
      z-index: 999999 !important;
      /* CRITICAL FIX: Forces chatbot over EVERYTHING including the navbar */
      font-family: 'Montserrat', sans-serif;
      transition: opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.3s ease;
  }

  .msrcl-chat-trigger-button {
      width: 60px;
      height: 60px;
      background: #2E2463;
      border: none;
      border-radius: 50%;
      color: #ffffff;
      font-size: 24px;
      box-shadow: 0 10px 30px rgba(46, 36, 99, 0.25);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
      outline: none;
      position: relative;
      z-index: 999999 !important;
  }

  .msrcl-chat-trigger-button:hover {
      transform: scale(1.05);
      box-shadow: 0 12px 35px rgba(46, 36, 99, 0.35);
  }

  .msrcl-chatbot-global-wrapper.sidebar-active {
      opacity: 0 !important;
      transform: scale(0.8) translateY(15px) !important;
      pointer-events: none !important;
  }

  /* --- DESKTOP VIEWPORT FIX --- */
  @media (min-width: 992px) {
      .msrcl-chat-responsive-frame {
          width: 360px !important;
          height: 520px !important;
          /* FIXED HEIGHT: Stops it from crashing into the top navbar */
          max-height: calc(100vh - 120px) !important;
          position: fixed !important;
          bottom: 105px !important;
          right: 30px !important;
          z-index: 999999 !important;
          /* Overrides the 1040 navbar */
      }

      .msrcl-chat-welcome-toast {
          display: none;
          opacity: 0;
          position: fixed !important;
          bottom: 105px !important;
          right: 35px !important;
          width: 260px !important;
          background: #ffffff;
          border-left: 4px solid #E31D2B;
          box-shadow: 0 10px 30px rgba(46, 36, 99, 0.15);
          padding: 14px 16px;
          border-radius: 4px;
          transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
          z-index: 999999 !important;
      }
  }

  /* --- MOBILE VIEWPORT FIX --- */
  @media (max-width: 991.98px) {
      .msrcl-chatbot-global-wrapper {
          bottom: 20px !important;
          right: 20px !important;
      }

      .msrcl-chat-responsive-frame {
          width: 335px !important;
          height: 480px !important;
          max-height: calc(100vh - 120px) !important;
          position: fixed !important;
          bottom: 95px !important;
          right: 20px !important;
          z-index: 999999 !important;
      }

      .msrcl-chat-welcome-toast {
          display: none;
          opacity: 0;
          position: fixed !important;
          bottom: 95px !important;
          right: 20px !important;
          width: calc(100vw - 40px) !important;
          max-width: 335px !important;
          background: #ffffff;
          border-left: 4px solid #E31D2B;
          box-shadow: 0 10px 30px rgba(46, 36, 99, 0.15);
          padding: 14px 16px;
          border-radius: 4px;
          transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
          z-index: 999999 !important;
      }
  }

  

  /* ==========================================================================
   GLOBAL CHATBOT MONITOR ENGINE CONFIGURATIONS
   ========================================================================== */
  .msrcl-chatbot-global-wrapper {
      position: fixed;
      bottom: 30px;
      right: 30px;
      z-index: 1030;
      /* Drops cleanly underneath open mobile offcanvas side menu bars */
      font-family: 'Montserrat', sans-serif;
  }

  /* Master Round Toggle Action Button Icon Asset */
  .msrcl-chat-trigger-button {
      width: 60px;
      height: 60px;
      background: #2E2463;
      border: none;
      border-radius: 50%;
      color: #ffffff;
      font-size: 24px;
      box-shadow: 0 10px 30px rgba(46, 36, 99, 0.25);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
      outline: none;
      position: relative;
      z-index: 1060;
  }

  .msrcl-chat-trigger-button:hover {
      transform: scale(1.05);
      box-shadow: 0 12px 35px rgba(46, 36, 99, 0.35);
  }

  /* Hides widget workspace smoothly when offcanvas drawer slides out */
  .msrcl-chatbot-global-wrapper.sidebar-active {
      opacity: 0 !important;
      transform: scale(0.8) translateY(15px) !important;
      pointer-events: none !important;
  }

  /* ==========================================================================
   1. DESKTOP MEDIA WORKSPACE POSITIONING TRACK PANEL
   ========================================================================== */
  @media (min-width: 992px) {
      .msrcl-chat-responsive-frame {
          width: 380px !important;
          /* FIXED: Set to absolute viewport safety bounds to clear the top bar menu completely */
          height: calc(100vh - 180px) !important;
          max-height: 580px !important;
          min-height: 480px !important;
          position: fixed !important;
          /* Changed from absolute to screen fixed perspective */
          bottom: 60px !important;
          /* Sits perfectly above the action bubble button track */
          right: 30px !important;
          /* Lines up with your outer structural container grid rail */
      }

      .msrcl-chat-welcome-toast {
          display: none;
          opacity: 0;
          position: fixed !important;
          bottom: 105px !important;
          right: 35px !important;
          width: 260px !important;
          background: #ffffff;
          border-left: 4px solid #E31D2B;
          box-shadow: 0 10px 30px rgba(46, 36, 99, 0.15);
          padding: 14px 16px;
          border-radius: 4px;
          transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
          z-index: 1050;
      }
  }

  /* ==========================================================================
   2. MOBILE VIEWPORT MEDIA POSITIONING TRACK PANEL
   ========================================================================== */
  @media (max-width: 991.98px) {
      .msrcl-chatbot-global-wrapper {
          bottom: 20px !important;
          right: 20px !important;
      }

      .msrcl-chat-responsive-frame {
          width: 335px !important;
          height: 470px !important;
          max-height: calc(100vh - 130px) !important;
          position: fixed !important;
          bottom: 95px !important;
          right: 20px !important;
      }

      .msrcl-chat-welcome-toast {
          display: none;
          opacity: 0;
          position: fixed !important;
          bottom: 95px !important;
          right: 20px !important;
          width: calc(100vw - 40px) !important;
          max-width: 335px !important;
          background: #ffffff;
          border-left: 4px solid #E31D2B;
          box-shadow: 0 10px 30px rgba(46, 36, 99, 0.15);
          padding: 14px 16px;
          border-radius: 4px;
          transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
          z-index: 1050;
      }
  }

  
  /* ==========================================================================
   GLOBAL STICKY NAVBAR OVERRIDE (Fixes Desktop & Mobile)
   ========================================================================== */

  /* 1. The Engine Fix: 'overflow: hidden' breaks sticky positioning. 
      'clip' stops horizontal scroll bugs but allows sticky to work perfectly! */
  html,
  body {
      overflow-x: clip !important;
  }

  /* 2. Force the sticky physics on the navbar for ALL screen sizes natively */
  .msrcl-premium-navigation {
      position: -webkit-sticky !important;
      position: sticky !important;
      top: 0 !important;
      z-index: 1045 !important;

      /* Flexbox Failsafe: Ensures it sticks if placed inside a flex wrapper */
      align-self: flex-start !important;
  }

  /* Failsafe to guarantee Mobile Sticky Navigation */
  @media (max-width: 991.98px) {
      .msrcl-premium-navigation {
          position: -webkit-sticky !important;
          position: sticky !important;
          top: 0 !important;
          z-index: 1045 !important;
      }

      /* CRITICAL: If your body has a hidden overflow, this restores the sticky physics */
      body,
      html {
          overflow-x: clip !important;
      }
  }

  
