/* ==========================================================================
   NSSF MOBILE RESPONSIVE STYLESHEET (css/mobile-responsive.css)
   Pixel-perfect mobile application UI & Scroll Animations
   ========================================================================== */

:root {
    --nssf-blue-dark: #0a2e68;
    --nssf-blue-primary: #0e3b82;
    --nssf-blue-medium: #16429b;
    --nssf-blue-accent: #2563eb;
    --nssf-blue-light: #eff6ff;
    --nssf-blue-card-bg: linear-gradient(135deg, #eaf2fd 0%, #d8e8fc 50%, #eff6ff 100%);
    --nssf-text-title: #0e3b82;
    --nssf-text-dark: #1e293b;
    --nssf-text-muted: #64748b;
    --nssf-card-border: rgba(226, 232, 240, 0.85);
    --nssf-card-shadow: 0 4px 18px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
    --nssf-bottom-nav-height: 60px;
}

/* ==========================================================================
   1. Visibility Guards (Desktop vs Mobile)
   ========================================================================== */

/* Desktop screens (768px and above: iPad, Tablet, Laptop, Desktop) */
@media screen and (min-width: 768px) {
    .mobile-only {
        display: none !important;
    }
}

/* Mobile screens (< 768px: Mobile Phones only) */
@media screen and (max-width: 767.98px) {
    .desktop-only {
        display: none !important;
    }

    /* Hide desktop headers & bars on mobile */
    .header-app-bar.head {
        display: none !important;
    }

    .site-sticky-menubar,
    .app-bar {
        display: none !important;
    }

    .app-bar-placeholder {
        display: none !important;
    }

    /* Provide space for fixed bottom navigation */
    body {
        padding-bottom: calc(var(--nssf-bottom-nav-height) + env(safe-area-inset-bottom, 12px)) !important;
        background-color: #f8fafc !important;
        overflow-x: hidden;
    }

    .res-pa {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .cus-pa-res,
    .pa-custom-25 {
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    /* Keep footer clean and modern on mobile */
    .footer {
        /* margin-bottom: calc(var(--nssf-bottom-nav-height) + env(safe-area-inset-bottom, 12px)) !important; */
        padding: 30px 16px 20px !important;
    }
}

/* ==========================================================================
   2. Mobile Header Bar (Deep Royal Blue)
   ========================================================================== */
.mobile-top-header {
    display: none;
}

@media screen and (max-width: 767.98px) {
    .mobile-top-header {
        display: block;
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1100;
        background: linear-gradient(180deg, var(--nssf-blue-dark) 0%, var(--nssf-blue-primary) 100%);
        box-shadow: 0 4px 16px rgba(10, 46, 104, 0.25);
        /* padding-top: max(44px, env(safe-area-inset-top, 44px)) !important; */
    }

    .mobile-header-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px;
        min-height: 64px;
        box-sizing: border-box;
    }

    /* Left: Logo & Titles */
    .mobile-header-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        flex: 1;
        min-width: 0;
    }

    .mobile-logo-link {
        display: inline-flex;
        flex-shrink: 0;
    }

    .mobile-header-logo {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background-color: #ffffff;
        padding: 1.5px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        object-fit: contain;
    }

    .mobile-header-titles {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
    }

    .mobile-header-title-mlvt {
        font-family: 'Kantumruy', sans-serif;
        font-size: 11px;
        font-weight: 500;
        color: #ffffff;
        line-height: 1.5;
        padding-top: 1px;
        padding-bottom: 1px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        opacity: 0.95;
    }

    .mobile-header-title-nssf {
        font-family: 'Khmer OS Muol Light', 'Kantumruy', sans-serif;
        font-size: 13.5px;
        font-weight: 700;
        color: #ffffff;
        line-height: 1.6;
        padding-top: 2px;
        padding-bottom: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        letter-spacing: 0.2px;
    }

    /* Right: Action Buttons (Search & Language) */
    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }

    .mobile-header-icon-btn {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.16);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.24);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
        outline: none;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    }

    .mobile-header-icon-btn:active {
        transform: scale(0.92);
        background: rgba(255, 255, 255, 0.28);
    }

    .mobile-lang-btn .mobile-flag-img {
        width: 22px;
        height: 16px;
        border-radius: 3px;
        object-fit: cover;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    /* Mobile Search Drawer (Expanding input) */
    .mobile-search-expand-bar {
        background: #0a2e68;
        padding: 8px 16px 12px 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        animation: searchBarSlideDown 0.22s ease-out forwards;
    }

    @keyframes searchBarSlideDown {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-search-input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        background: #ffffff;
        border-radius: 50px;
        height: 44px;
        padding: 0 14px 0 16px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
        box-sizing: border-box;
    }

    .mobile-search-input-icon {
        color: var(--nssf-blue-primary);
        margin-right: 8px;
        flex-shrink: 0;
    }

    .mobile-search-input {
        flex: 1;
        border: none;
        outline: none;
        height: 44px;
        font-family: 'Kantumruy', sans-serif;
        font-size: 13.5px;
        color: #1e293b;
        background: transparent;
    }

    .mobile-search-input::placeholder {
        color: #94a3b8;
    }

    .mobile-search-close-btn {
        background: none;
        border: none;
        color: #64748b;
        cursor: pointer;
        padding: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ==========================================================================
   3. Mobile Hero Curved Backdrop & Hero Card
   ========================================================================== */
.mobile-hero-wrapper {
    display: none;
}

@media screen and (max-width: 767.98px) {
    .mobile-hero-wrapper {
        display: block;
        position: relative;
        width: 100%;
        margin-bottom: 12px;
    }

    /* Curved Blue Backdrop extending from header */
    .mobile-hero-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 120px;
        background: linear-gradient(180deg, #09346d 0%, #0d3c7d 100%);
        border-bottom-left-radius: 28px;
        border-bottom-right-radius: 28px;
        z-index: 1;
    }

    /* Mobile Hero Slider Wrapper */
    .mobile-hero-slider {
        position: relative;
        z-index: 2;
        width: 100%;
        padding: 4px 14px 0 14px;
        box-sizing: border-box;
    }

    .mobile-hero-deck {
        position: relative;
        width: 100%;
        min-height: 180px;
        border-radius: 26px;
        overflow: hidden;
    }

    .mobile-hero-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.45s cubic-bezier(0.25, 1, 0.5, 1), transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
        transform: scale(0.98);
    }

    .mobile-hero-slide.active {
        position: relative;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: scale(1) !important;
        z-index: 3;
    }

    /* Inset Hero Promo Card (Exact visual makeup from user screenshot) */
    .mobile-hero-card {
        position: relative;
        width: 100%;
        margin: 0;
        background: linear-gradient(135deg, #edf5ff 0%, #f4f8fe 50%, #ffffff 100%);
        border-radius: 26px;
        box-shadow: 0 10px 28px -4px rgba(10, 45, 95, 0.16), 0 2px 8px rgba(0, 0, 0, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.95);
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 14px 12px 18px;
        min-height: 180px;
        box-sizing: border-box;
    }

    /* Dynamic Banner Slide Card */
    .mobile-hero-banner-card {
        padding: 0 !important;
        background: #ffffff !important;
        min-height: 180px;
        height: 180px;
        display: block !important;
        text-decoration: none !important;
        cursor: pointer;
        border-radius: 26px;
        overflow: hidden;
        box-shadow: 0 10px 28px -4px rgba(10, 45, 95, 0.16), 0 2px 8px rgba(0, 0, 0, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.95);
    }

    .mobile-banner-full-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 26px;
        display: block;
    }

    /* Left Text Column */
    .mobile-hero-text-col {
        flex: 1.15;
        padding-right: 8px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        z-index: 3;
    }

    .mobile-hero-title {
        font-family: 'Kantumruy-Bold', 'Khmer OS Muol Light', 'Kantumruy', sans-serif;
        font-size: 22px;
        font-weight: 800;
        color: #0b326d;
        line-height: 1.3;
        margin-bottom: 6px;
        letter-spacing: -0.2px;
    }

    .mobile-hero-subtitle {
        font-family: 'Kantumruy', sans-serif;
        font-size: 13.5px;
        font-weight: 500;
        color: #506884;
        line-height: 1.45;
        margin-bottom: 14px;
    }

    .mobile-hero-btn {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        align-self: flex-start;
        background: #0e3d84;
        color: #ffffff !important;
        font-family: 'Kantumruy', sans-serif;
        font-size: 12.5px;
        font-weight: 600;
        padding: 7px 18px;
        border-radius: 9999px;
        text-decoration: none;
        box-shadow: 0 4px 14px rgba(14, 61, 132, 0.32);
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        cursor: pointer;
        border: none;
    }

    .mobile-hero-btn:active {
        transform: scale(0.95);
        box-shadow: 0 2px 6px rgba(14, 61, 132, 0.2);
    }

    .mobile-hero-btn svg {
        transition: transform 0.2s ease;
    }

    .mobile-hero-btn:hover svg {
        transform: translateX(3px);
    }

    /* Right Image Column */
    .mobile-hero-img-col {
        flex: 0.95;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        height: 155px;
    }

    .mobile-hero-img {
        max-width: 100%;
        max-height: 155px;
        object-fit: contain;
        filter: drop-shadow(0 6px 12px rgba(10, 45, 95, 0.12));
    }

    /* Floating Navigation Arrows */
    .mobile-hero-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.88);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.95);
        color: #0b326d;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(10, 45, 95, 0.18);
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 0;
    }

    .mobile-hero-arrow:active {
        transform: translateY(-50%) scale(0.92);
        background: #ffffff;
    }

    .mobile-hero-arrow-prev {
        left: 8px;
    }

    .mobile-hero-arrow-next {
        right: 8px;
    }

    /* Hero Carousel Indicator Dots */
    .mobile-hero-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin-top: 10px;
        position: relative;
        z-index: 5;
    }

    .mobile-hero-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #cbd5e1;
        border: none;
        padding: 0;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mobile-hero-dot.active {
        width: 22px;
        border-radius: 4px;
        background: #0b326d;
    }
}

/* ==========================================================================
   4. Quick Action / E-Services Portal Card & Carousel
   ========================================================================== */
.mobile-qa-carousel-wrap {
    display: none;
}

.mobile-quick-action-card {
    display: none;
}

@media screen and (max-width: 767.98px) {
    .mobile-qa-carousel-wrap {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .mobile-qa-carousel {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        overflow: hidden !important;
        width: 100% !important;
    }

    .mobile-qa-carousel .mud-carousel-item {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .mobile-qa-carousel-wrap .registration-button {
        display: flex !important;
        align-items: center !important;
        background-color: #ffffff !important;
        border-radius: 50px !important;
        padding: 6px 16px 6px 10px !important;
        min-height: 56px !important;
        width: 100% !important;
        cursor: pointer !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04) !important;
        border: 1px solid rgba(226, 232, 240, 0.8) !important;
        box-sizing: border-box !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    }

    .mobile-qa-carousel-wrap .registration-button:active {
        transform: scale(0.98) !important;
    }

    .mobile-qa-carousel-wrap .icon-circle {
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-right: 12px !important;
        flex-shrink: 0 !important;
        overflow: hidden !important;
    }

    .mobile-qa-carousel-wrap .icon-circle img {
        width: 100% !important;
        height: 100% !important;
        border-radius: 50% !important;
        object-fit: contain !important;
    }

    .mobile-qa-carousel-wrap .button-text {
        flex-grow: 1 !important;
        color: #1e293b !important;
        font-family: 'Kantumruy', sans-serif !important;
        font-size: 14px !important;
        font-weight: normal !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        text-align: left !important;
        line-height: 1.8 !important;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }

    .mobile-qa-carousel-wrap .arrow-icon {
        color: #0b326d !important;
        font-size: 17px !important;
        font-weight: 700 !important;
        margin-left: 8px !important;
        flex-shrink: 0 !important;
    }
}

/* ==========================================================================
   5. Section Headers (Star & Megaphone with "View All ->")
   ========================================================================== */
.mobile-section-header {
    display: none;
}

@media screen and (max-width: 767.98px) {
    .mobile-section-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 14px 10px 14px;
        box-sizing: border-box;
    }

    .mobile-section-title-group {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-section-icon {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .mobile-section-title {
        font-family: 'Khmer OS Muol Light', 'Kantumruy', sans-serif;
        font-size: 15.5px;
        /* font-weight: 700; */
        color: var(--nssf-text-title);
        margin: 0;
        line-height: 1.6;
        padding-top: 3px;
        padding-bottom: 3px;
    }

    .mobile-section-view-all {
        font-family: 'Kantumruy', sans-serif;
        font-size: 12.5px;
        font-weight: 600;
        color: var(--nssf-blue-dark);
        text-decoration: none !important;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        line-height: 1.6;
        padding: 2px 0;
        transition: transform 0.2s ease;
    }

    .mobile-section-view-all:active {
        transform: scale(0.96);
    }
}

/* ==========================================================================
   6. Section 1: Recent Events Featured Card & Carousel
   ========================================================================== */
.mobile-event-card-container {
    display: none;
}

@media screen and (max-width: 767.98px) {
    .mobile-event-card-container {
        display: block;
        margin: 0 14px 18px 14px;
        position: relative;
    }

    .mobile-featured-event-card {
        background: #ffffff;
        border-radius: 16px;
        border: 1px solid var(--nssf-card-border);
        box-shadow: var(--nssf-card-shadow);
        overflow: hidden;
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Featured Image with Badges & Nav Arrows */
    .mobile-event-img-box {
        position: relative;
        width: 100%;
        height: 200px;
        background: #e2e8f0;
        overflow: hidden;
        cursor: pointer;
    }

    .mobile-event-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        transition: transform 0.4s ease;
    }

    .mobile-featured-event-card:hover .mobile-event-img {
        transform: scale(1.02);
    }

    /* Time Ago Floating Badge */
    .mobile-event-badge {
        position: absolute;
        top: 12px;
        right: 12px;
        background: #1e40af;
        color: #ffffff;
        font-family: 'Kantumruy', sans-serif;
        font-size: 11px;
        font-weight: 600;
        padding: 4px 12px;
        border-radius: 20px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
        z-index: 5;
        letter-spacing: -0.2px;
    }

    /* Overlay Navigation Arrows (< and >) */
    .mobile-event-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.8);
        color: #1e293b;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 6;
        transition: all 0.2s ease;
        outline: none;
    }

    .mobile-event-arrow:active {
        transform: translateY(-50%) scale(0.9);
        background: #ffffff;
    }

    .mobile-event-arrow-prev {
        left: 10px;
    }

    .mobile-event-arrow-next {
        right: 10px;
    }

    /* Event Content Info */
    .mobile-event-body {
        padding: 14px 16px 12px 16px;
        display: flex;
        flex-direction: column;
    }

    .mobile-event-title {
        font-family: 'Kantumruy', sans-serif;
        font-size: 14px;
        font-weight: 700;
        color: var(--nssf-blue-primary);
        line-height: 1.65;
        padding-top: 2px;
        padding-bottom: 2px;
        margin-bottom: 5px;
        text-decoration: none !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        cursor: pointer;
    }

    .mobile-event-desc {
        font-family: 'Kantumruy', sans-serif;
        font-size: 12px;
        color: var(--nssf-text-muted);
        line-height: 1.6;
        padding-top: 2px;
        padding-bottom: 2px;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Dots Indicators */
    .mobile-event-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding-top: 4px;
        padding-bottom: 2px;
    }

    .mobile-event-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #cbd5e1;
        border: none;
        padding: 0;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mobile-event-dot.active {
        width: 20px;
        border-radius: 4px;
        background: var(--nssf-blue-primary);
    }
}

/* ==========================================================================
   7. Section 2: Announcements Horizontal Scrollable Cards
   ========================================================================== */
.mobile-announcement-container {
    display: none;
}

@media screen and (max-width: 767.98px) {
    .mobile-announcement-container {
        display: block;
        margin-bottom: 24px;
    }

    .mobile-announcement-scroll {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 4px 14px 18px 14px;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 14px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .mobile-announcement-scroll::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    /* Premium Modern Announcement Card - Fits Top Slide Width & Margin */
    .mobile-ann-card {
        flex: 0 0 calc(100vw - 28px);
        width: calc(100vw - 28px);
        min-width: calc(100vw - 28px);
        max-width: calc(100vw - 28px);
        background: #ffffff;
        border-radius: 16px;
        border: 1px solid var(--nssf-card-border);
        box-shadow: var(--nssf-card-shadow);
        display: flex;
        flex-direction: column;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        overflow: hidden;
        position: relative;
        cursor: pointer;
        box-sizing: border-box;
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-ann-card:active {
        transform: scale(0.985);
        box-shadow: 0 4px 12px rgba(11, 46, 92, 0.06);
    }

    /* Card Top Media / Letter Preview */
    .mobile-ann-media {
        position: relative;
        width: 100%;
        height: 200px;
        background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
        overflow: hidden;
    }

    .mobile-ann-media::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0) 55%, rgba(15, 23, 42, 0.25) 100%);
        pointer-events: none;
    }

    .mobile-ann-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
        display: block;
        transition: transform 0.4s ease;
    }

    .mobile-ann-card:active .mobile-ann-img {
        transform: scale(1.04);
    }

    .mobile-ann-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: radial-gradient(circle at 30% 30%, #eff6ff 0%, #dbeafe 100%);
        color: #3b82f6;
    }

    /* Floating Glassmorphic Pill Tag */
    .mobile-ann-tag {
        position: absolute;
        top: 12px;
        left: 12px;
        z-index: 5;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 3.5px 10px 4px 8px;
        background: rgba(8, 40, 82, 0.88);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 20px;
        color: #ffffff;
        font-family: 'Kantumruy', sans-serif;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.2px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
    }

    .mobile-ann-tag-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #38bdf8;
        box-shadow: 0 0 6px #38bdf8;
        animation: mobilePulseDot 2s infinite ease-in-out;
    }

    @keyframes mobilePulseDot {

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

        50% {
            opacity: 0.55;
            transform: scale(0.85);
        }
    }

    /* Card Content Body */
    .mobile-ann-content {
        padding: 14px 16px 14px 16px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 1;
        background: #ffffff;
        box-sizing: border-box;
    }

    .mobile-ann-title {
        font-family: 'Kantumruy', sans-serif;
        font-size: 14.5px;
        font-weight: 700;
        color: #0d274d;
        line-height: 1.45;
        margin: 0 0 10px 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 42px;
        transition: color 0.2s ease;
    }

    .mobile-ann-card:active .mobile-ann-title {
        color: #2563eb;
    }

    /* Card Footer: Date & Circular Action Arrow */
    .mobile-ann-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid #f1f5f9;
    }

    .mobile-ann-date {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-family: 'Kantumruy', sans-serif;
        font-size: 12px;
        font-weight: 500;
        color: #64748b;
    }

    .mobile-ann-date svg {
        color: #94a3b8;
    }

    .mobile-ann-action {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: #f0f7ff;
        color: #2563eb;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(37, 99, 235, 0.12);
        transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mobile-ann-card:active .mobile-ann-action {
        background: #2563eb;
        color: #ffffff;
        transform: translateX(2px);
    }
}

/* ==========================================================================
   8. Fixed Bottom Navigation Bar (5 Items)
   ========================================================================== */
.mobile-bottom-navbar {
    display: none;
}

@media screen and (max-width: 767.98px) {
    .mobile-bottom-navbar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: var(--nssf-bottom-nav-height);
        background: #ffffff;
        border-top: 1px solid rgba(226, 232, 240, 0.95);
        box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
        z-index: 1300;
        align-items: center;
        justify-content: space-around;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        box-sizing: content-box;
    }

    .mobile-nav-link {
        flex: 1;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none !important;
        background: transparent;
        border: none;
        padding: 4px 2px;
        cursor: pointer;
        position: relative;
        color: #64748b;
        transition: all 0.2s ease;
        outline: none;
    }

    .mobile-nav-link:active {
        transform: scale(0.94);
    }

    .mobile-nav-icon {
        width: 22px;
        height: 22px;
        fill: currentColor;
        margin-bottom: 3px;
        transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
    }

    .mobile-nav-label {
        font-family: 'Kantumruy', sans-serif;
        font-size: 10.5px;
        font-weight: 500;
        color: currentColor;
        line-height: 1.9;
        letter-spacing: -0.2px;
        white-space: nowrap;
        text-overflow: ellipsis;
        max-width: 100%;
        overflow: hidden;
        text-align: center;
    }

    /* Active Nav Tab Item */
    .mobile-nav-link.active {
        color: var(--nssf-blue-primary) !important;
    }

    .mobile-nav-link.active .mobile-nav-icon {
        transform: translateY(-1.5px);
        color: var(--nssf-blue-primary);
    }

    .mobile-nav-link.active .mobile-nav-label {
        font-weight: 700;
        color: var(--nssf-blue-primary);
    }

    /* Active Top Indicator Bar */
    .mobile-nav-link.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 25%;
        right: 25%;
        height: 3px;
        background: var(--nssf-blue-primary);
        border-bottom-left-radius: 3px;
        border-bottom-right-radius: 3px;
    }
}

/* ==========================================================================
   9. Scroll Animation System (Fluid, Hardware-Accelerated)
   ========================================================================== */
.scroll-animate,
.mobile-scroll-animate {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-animate.visible,
.scroll-animate.is-visible,
.mobile-scroll-animate.visible,
.mobile-scroll-animate.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Staggered animation delays for lists and grids */
.stagger-1 {
    transition-delay: 0.06s;
}

.stagger-2 {
    transition-delay: 0.12s;
}

.stagger-3 {
    transition-delay: 0.18s;
}

.stagger-4 {
    transition-delay: 0.24s;
}

.stagger-5 {
    transition-delay: 0.30s;
}

/* Gentle hover interaction for touch/pointer */
@media (hover: hover) {
    .mobile-quick-action-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    }

    .mobile-featured-event-card:hover {
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
    }
}

/* ==========================================================================
   10. Modal Overlay & Bottom Sheet Layering Fix
   ========================================================================== */
.mud-overlay {
    z-index: 1400 !important;
}

.bottom-sheet {
    z-index: 1401 !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    max-height: 80vh !important;
    border-radius: 20px 20px 0 0 !important;
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.3) !important;
    padding-bottom: max(32px, env(safe-area-inset-bottom, 32px)) !important;
}

.sheet-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 18px !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #09346d 0%, #0d3c7d 100%) !important;
    font-size: 16px !important;
    color: #ffffff !important;
    border-radius: 20px 20px 0 0 !important;
}

.sheet-close-btn {
    background: rgba(255, 255, 255, 0.18) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 30px !important;
    height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: background 0.2s ease !important;
}

.sheet-close-btn:active {
    background: rgba(255, 255, 255, 0.35) !important;
}

/* ==========================================================================
   9. Mobile Home Skeleton Loading View
   ========================================================================== */
.mobile-home-skeleton-wrapper {
    animation: mobileSkeletonFadeIn 0.2s ease-out;
    padding-bottom: 8px;
}

@keyframes mobileSkeletonFadeIn {
    from {
        opacity: 0.7;
    }

    to {
        opacity: 1;
    }
}

.mobile-skeleton-hero {
    position: relative;
    width: 100%;
    height: 175px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 50%, #e2e8f0 100%);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(11, 46, 92, 0.08);
}

.mobile-skeleton-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.55) 50%,
            rgba(255, 255, 255, 0) 100%);
    animation: mobileShimmerWave 1.6s infinite ease-in-out;
    pointer-events: none;
    z-index: 2;
}

@keyframes mobileShimmerWave {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.mobile-skeleton-qa-card {
    position: relative;
    height: 52px;
    margin: 4px 14px 10px 14px;
    width: calc(100% - 28px);
    background: #ffffff;
    border-radius: 50px;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 14px 0 8px;
    box-sizing: border-box;
}

.mobile-skeleton-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
    margin-right: 12px;
}

.mobile-skeleton-text-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.mobile-skeleton-section-title {
    position: relative;
    width: 140px;
    height: 20px;
    border-radius: 6px;
    background: #e2e8f0;
    overflow: hidden;
}

.mobile-skeleton-view-all {
    position: relative;
    width: 70px;
    height: 16px;
    border-radius: 6px;
    background: #e2e8f0;
    overflow: hidden;
}

.mobile-skeleton-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--nssf-card-border);
    box-shadow: var(--nssf-card-shadow);
    overflow: hidden;
}

.mobile-skeleton-img-box {
    position: relative;
    width: 100%;
    height: 200px;
    background: #e2e8f0;
    overflow: hidden;
}

.mobile-skeleton-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 65px;
    height: 22px;
    border-radius: 20px;
    background: rgba(148, 163, 184, 0.45);
    z-index: 3;
}

.mobile-skeleton-tag-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 90px;
    height: 22px;
    border-radius: 20px;
    background: rgba(148, 163, 184, 0.45);
    z-index: 3;
}

.mobile-skeleton-line {
    height: 14px;
    border-radius: 4px;
    background: #e2e8f0;
    margin-bottom: 8px;
}

.mobile-skeleton-line.short {
    width: 45%;
}

.mobile-skeleton-line.long {
    width: 75%;
    height: 12px;
}

.mobile-skeleton-line.full {
    width: 92%;
    height: 16px;
}

.mobile-skeleton-line.medium {
    width: 68%;
    height: 16px;
}

.mobile-skeleton-line.desc {
    width: 85%;
    height: 12px;
    margin-top: 2px;
    margin-bottom: 12px;
}

.mobile-skeleton-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-top: 6px;
}

.mobile-skeleton-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
}

.mobile-skeleton-dot.active {
    width: 20px;
    border-radius: 4px;
    background: #94a3b8;
}

/* ==========================================================================
   10. Mobile Content Listing Alignment & Responsive Card Styles
   ========================================================================== */
@media screen and (max-width: 767.98px) {

    /* Normalize wrappers around content and search to guarantee exact 16px screen margins */
    .cus-pa-res,
    .pa-custom-25 {
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-top: 10px !important;
        padding-bottom: 24px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .cus-pa-res .mud-grid,
    .pa-custom-25 .mud-grid {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .cus-pa-res .mud-grid>.mud-grid-item,
    .pa-custom-25 .mud-grid>.mud-grid-item {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 4px !important;
        padding-bottom: 6px !important;
        box-sizing: border-box !important;
    }

    /* Registration Button Card (e.g. on /public-service) */
    .registration-button {
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        padding: 10px 14px !important;
        border-radius: 50px !important;
        background-color: #ffffff !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
        border: 1px solid #eef2f6 !important;
        margin-bottom: 6px !important;
    }

    /* Mobile Breadcrumbs: Clean 16px alignment & modern typography */
    .breadcrumb {
        padding: 10px 0 !important;
        margin: 0 !important;
        font-family: 'Kantumruy', sans-serif !important;
        font-size: 13px !important;
        color: #64748b !important;
        display: flex !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
        line-height: 1.5 !important;
    }

    .breadcrumb a {
        color: #64748b !important;
        text-decoration: none !important;
    }

    .breadcrumb a:active {
        color: #284297 !important;
    }

    .breadcrumb .active,
    .breadcrumb span:last-child {
        color: #1e293b !important;
        font-weight: 500 !important;
    }

    /* Breadcrumb outer container padding */
    div[style*="border-bottom:1px solid #e9ecef"] .mud-container,
    div[style*="border-bottom: 1px solid #e9ecef"] .mud-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Search & Filter Header Alignment - Unified 16px mobile margins */
    .b-filter-small {
        display: block !important;
        padding: 10px 0 8px 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    .b-filter-small>div {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .b-filter-small .mud-input-control {
        margin: 0 !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
    }

    /* Pure white pill search input matching user design */
    .b-filter-small .mud-input-outlined {
        background: #ffffff !important;
        background-color: #ffffff !important;
        border-radius: 50px !important;
        height: 44px !important;
        min-height: 44px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
        padding: 0 14px 0 18px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    }

    .b-filter-small .mud-input-outlined:focus-within {
        border-color: #284297 !important;
        box-shadow: 0 0 0 3px rgba(40, 66, 151, 0.12) !important;
    }

    .b-filter-small .mud-input-outlined fieldset {
        border: none !important;
        display: none !important;
    }

    .b-filter-small input.mud-input-slot {
        height: 44px !important;
        min-height: 44px !important;
        font-size: 13.5px !important;
        font-family: 'Kantumruy', sans-serif !important;
        color: #1e293b !important;
        padding: 0 !important;
        line-height: 44px !important;
        background: transparent !important;
    }

    .b-filter-small input.mud-input-slot::placeholder {
        color: #94a3b8 !important;
        opacity: 1 !important;
        font-family: 'Kantumruy', sans-serif !important;
        font-size: 13.5px !important;
    }

    .b-filter-small .mud-input-adornment-end {
        color: #284297 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .b-filter-small .mud-input-adornment-end svg {
        width: 22px !important;
        height: 22px !important;
        fill: #284297 !important;
        color: #284297 !important;
    }

    .b-filter-small .mud-input-clear-button {
        margin-right: 4px !important;
        color: #94a3b8 !important;
    }

    /* Filter button - Perfect 44px Dark Blue Circle matching user design */
    .b-filter-small .mud-button-filled {
        margin: 0 !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        border-radius: 50% !important;
        background: #284297 !important;
        background-color: #284297 !important;
        color: #ffffff !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 8px rgba(40, 66, 151, 0.35) !important;
        transition: transform 0.15s ease, background-color 0.2s ease !important;
    }

    .b-filter-small .mud-button-filled:active {
        transform: scale(0.92) !important;
        background-color: #1c337a !important;
    }

    .b-filter-small .mud-button-filled .mud-button-label {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .b-filter-small .mud-button-filled .mud-button-icon-start {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .b-filter-small .mud-button-filled svg {
        width: 22px !important;
        height: 22px !important;
        fill: #ffffff !important;
        color: #ffffff !important;
    }

    /* Grid Container Mobile Spacing (fits exactly 16px margin on both sides via container) */
    .mud-grid.mud-grid-cus {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .mud-grid.mud-grid-cus>.mud-grid-item {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        box-sizing: border-box !important;
    }

    /* SecondSubMenu and Article list margins */
    .pa-custom-25 .app-card,
    .pa-custom-25 .file-list-box {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .pa-custom-25 .p-sub-14 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Responsive Mobile Card (.btn-ann) */
    .btn-ann {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        background: #ffffff !important;
        border-radius: 6px !important;
        border: 1px solid var(--nssf-card-border) !important;
        box-shadow: var(--nssf-card-shadow) !important;
        overflow: hidden !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .btn-ann .content-box {
        width: 100% !important;
        border-radius: 0 !important;
        overflow: hidden !important;
    }

    .btn-ann .content-box>img {
        width: 100% !important;
        height: 195px !important;
        object-fit: cover !important;
        display: block !important;
        border-top-left-radius: 6px !important;
        border-top-right-radius: 6px !important;
    }

    .btn-ann .d-flex.flex-column {
        padding: 12px 14px 14px 14px !important;
        box-sizing: border-box !important;
    }

    /* Horizontal Card (.btn-ann1) on Mobile */
    .btn-ann1 {
        width: 100% !important;
        border-radius: 12px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
        padding: 10px 12px !important;
        background: #ffffff !important;
        box-sizing: border-box !important;
        display: block !important;
        text-align: left !important;
        text-transform: none !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    }

    .btn-ann1:active {
        transform: scale(0.98) !important;
        background-color: #f8fafc !important;
    }

    .btn-ann1 .mud-button-label {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .btn-ann1 .mud-grid {
        margin: 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .btn-ann1 .mud-grid>.mud-grid-item:first-child {
        flex: 0 0 84px !important;
        max-width: 84px !important;
        width: 84px !important;
        padding: 0 !important;
        align-self: flex-start !important;
    }

    .btn-ann1 .mud-grid>.mud-grid-item:last-child {
        flex: 1 1 auto !important;
        max-width: calc(100% - 96px) !important;
        width: calc(100% - 96px) !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        min-width: 0 !important;
    }

    .btn-ann1 .news-card {
        width: 84px !important;
        height: 84px !important;
        min-width: 84px !important;
        max-width: 84px !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        background: #f1f5f9 !important;
        border: 1px solid #e2e8f0 !important;
        box-sizing: border-box !important;
        display: block !important;
        flex-shrink: 0 !important;
    }

    .btn-ann1 .news-card img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        object-position: top center !important;
        display: block !important;
    }

    .btn-ann1 b.font-size-14 {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-family: 'Kantumruy', sans-serif !important;
        font-size: 13.5px !important;
        font-weight: 600 !important;
        line-height: 1.5 !important;
        color: #1e293b !important;
        margin: 0 0 4px 0 !important;
        text-align: left !important;
    }

    .btn-ann1 div[style*="border-bottom:1px dotted"] {
        border-bottom: 1px solid #f1f5f9 !important;
        margin: 2px 0 6px 0 !important;
        width: 100% !important;
    }

    .btn-ann1 .d-flex.flex-grow-1.pt-1 {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-top: 0 !important;
        width: 100% !important;
        color: #64748b !important;
    }

    .btn-ann1 .d-flex.flex-grow-1.pt-1 small {
        font-family: 'Kantumruy', sans-serif !important;
        font-size: 11.5px !important;
        color: #64748b !important;
        line-height: 1.4 !important;
    }

    /* Media and Video Cards (.app-card) on Mobile */
    .app-card {
        width: 100% !important;
        border-radius: 12px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
        padding: 10px 12px !important;
        background: #ffffff !important;
        box-sizing: border-box !important;
        margin-bottom: 10px !important;
    }

    .app-card .mud-grid {
        margin: 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .app-card .mud-grid>.mud-grid-item:first-child {
        flex: 0 0 84px !important;
        max-width: 84px !important;
        width: 84px !important;
        padding: 0 !important;
    }

    .app-card .mud-grid>.mud-grid-item:last-child {
        flex: 1 1 auto !important;
        max-width: calc(100% - 96px) !important;
        width: calc(100% - 96px) !important;
        padding: 0 !important;
        min-width: 0 !important;
    }

    .app-card .card-thumbnail {
        width: 84px !important;
        height: 120px !important;
        min-width: 84px !important;
        max-width: 84px !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        /* background: #0f172a !important; */
    }

    .app-card .card-thumbnail img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        display: block !important;
    }

    /* Document and PDF Reference Lists */
    .file-list-box {
        border-radius: 10px !important;
        padding: 10px 14px !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        margin-top: 6px !important;
        margin-bottom: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
    }
}

/* ==========================================================================
   11. Floating Action Buttons (Messenger & Scroll-to-Top)
   ========================================================================== */
.floating-action-buttons {
    position: fixed;
    bottom: 24px;
    right: 28px;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-action-buttons.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.floating-messenger-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.25);
}

.floating-messenger-link:hover {
    transform: translateY(-2px) scale(1.06);
}

.floating-scroll-top-btn {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.18) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.floating-scroll-top-btn:hover {
    transform: translateY(-2px) scale(1.06) !important;
}

@media screen and (max-width: 767.98px) {
    .floating-action-buttons {
        bottom: calc(var(--nssf-bottom-nav-height, 65px) + env(safe-area-inset-bottom, 0px) + 14px) !important;
        right: 14px !important;
        z-index: 1250 !important;
        gap: 8px !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) scale(1) !important;
    }

    .floating-messenger-link img {
        width: 36px !important;
        height: 36px !important;
    }

    .floating-scroll-top-btn {
        width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
    }
}

/* ==========================================================================
   11. Device Visibility Utilities (Tablet/Laptop/Desktop vs Mobile Phones)
   ========================================================================== */
.mobile-phone-only {
    display: none !important;
}

.desktop-tablet-only {
    display: block !important;
}

@media screen and (max-width: 767.98px) {
    .mobile-phone-only {
        display: block !important;
    }

    .desktop-tablet-only {
        display: none !important;
    }

    /* Q&A Mobile View */
    .qa-mobile-search-wrap {
        padding: 10px 0 10px 0 !important;
        box-sizing: border-box !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .qa-mobile-search-wrap .mud-input-control {
        margin: 0 !important;
        width: 100% !important;
    }

    .qa-mobile-search-input {
        background: #ffffff !important;
        background-color: #ffffff !important;
        border-radius: 50px !important;
        height: 44px !important;
        min-height: 44px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05) !important;
        padding: 0 14px 0 18px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    }

    .qa-mobile-search-input:focus-within {
        border-color: #284297 !important;
        box-shadow: 0 0 0 3px rgba(40, 66, 151, 0.12) !important;
    }

    .qa-mobile-search-input fieldset {
        border: none !important;
        display: none !important;
    }

    .qa-mobile-search-input input.mud-input-slot {
        height: 44px !important;
        min-height: 44px !important;
        font-size: 13.5px !important;
        font-family: 'Kantumruy', sans-serif !important;
        color: #1e293b !important;
        padding: 0 !important;
        line-height: 44px !important;
        background: transparent !important;
    }

    .qa-mobile-search-input input.mud-input-slot::placeholder {
        color: #94a3b8 !important;
        opacity: 1 !important;
        font-family: 'Kantumruy', sans-serif !important;
        font-size: 13.5px !important;
    }

    .qa-mobile-search-input .mud-input-adornment-end {
        color: #284297 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .qa-mobile-search-input .mud-input-adornment-end svg {
        width: 22px !important;
        height: 22px !important;
        fill: #284297 !important;
        color: #284297 !important;
    }

    .qa-mobile-card {
        margin: 0 0 24px 0 !important;
        background: #ffffff;
        border-radius: 14px;
        border: 1px solid #e0e0e0;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    }

    .qa-mobile-card .mud-expansion-panels {
        background: transparent !important;
    }

    .qa-mobile-card .mud-expand-panel {
        background: #ffffff !important;
        border: none !important;
        border-bottom: 1px solid #e5e7eb !important;
        border-radius: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
    }

    .qa-mobile-card .mud-expand-panel:last-child {
        border-bottom: none !important;
    }

    .qa-mobile-card .mud-expand-panel-header {
        padding: 13px 14px !important;
        min-height: 52px !important;
        align-items: center !important;
        background: transparent !important;
    }

    .qa-mobile-card .mud-expand-panel-text {
        padding-right: 10px !important;
    }

    .qa-mobile-card .qa-mobile-question-title {
        font-family: 'Kantumruy', sans-serif !important;
        font-size: 14.5px !important;
        font-weight: 400 !important;
        color: #1e293b !important;
        line-height: 1.55 !important;
        letter-spacing: -0.2px;
    }

    .qa-mobile-card .qa-mobile-question-title p,
    .qa-mobile-card .qa-mobile-question-title span,
    .qa-mobile-card .qa-mobile-question-title strong,
    .qa-mobile-card .qa-mobile-question-title b,
    .qa-mobile-card .mud-expand-panel-header p,
    .qa-mobile-card .mud-expand-panel-header strong,
    .qa-mobile-card .mud-expand-panel-header b {
        margin: 0 !important;
        padding: 0 !important;
        display: inline !important;
        font-weight: 400 !important;
    }

    .qa-mobile-card .mud-expand-panel-icon {
        color: #64748b !important;
        min-width: 24px !important;
    }

    .qa-mobile-card .mud-expand-panel-content {
        padding: 2px 14px 18px 14px !important;
        font-family: 'Kantumruy', sans-serif !important;
        font-size: 13.5px !important;
        color: #334155 !important;
        line-height: 1.65 !important;
    }

    .qa-mobile-card .mud-expand-panel-content p {
        margin-bottom: 8px !important;
        line-height: 1.65 !important;
    }

    /* Holiday Calendar Mobile View */
    .calendar-mobile-pill-wrap {
        display: flex;
        padding: 14px 14px 0 14px;
        width: 100%;
        box-sizing: border-box;
    }

    .calendar-pill-btn {
        width: 100%;
        height: 44px;
        background-color: #2b3990;
        color: #ffffff;
        border-radius: 25px;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-family: 'Kantumruy', sans-serif;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 2px 6px rgba(43, 57, 144, 0.2);
        transition: all 0.2s ease;
        outline: none;
        -webkit-tap-highlight-color: transparent;
    }

    .calendar-pill-btn:active {
        transform: scale(0.98);
        background-color: #1e2b70;
    }

    .calendar-mobile-header-bar {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #2b3990;
        color: #ffffff;
        height: 44px;
        margin: 12px 14px 14px 14px;
        border-radius: 4px;
        font-family: 'Kantumruy', sans-serif;
        font-size: 15.5px;
        font-weight: 700;
        box-shadow: 0 2px 6px rgba(43, 57, 144, 0.18);
    }

    .calendar-table-card {
        margin: 0 14px 24px 14px;
        background: #ffffff;
        border-radius: 12px;
        border: 1px solid #e0e0e0;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    }

    .calendar-custom-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }

    .calendar-custom-table tr td {
        border-bottom: 1px solid #e0e0e0;
    }

    .calendar-custom-table tr:last-child td {
        border-bottom: none;
    }

    .calendar-custom-table td.calendar-date-cell {
        width: 32%;
        padding: 14px 12px;
        border-right: 1px solid #e0e0e0;
        font-family: 'Kantumruy', sans-serif;
        font-size: 14px;
        font-weight: 700;
        color: #1e293b;
        vertical-align: middle;
        line-height: 1.5;
    }

    .calendar-custom-table td.calendar-desc-cell {
        width: 68%;
        padding: 14px 14px;
        font-family: 'Kantumruy', sans-serif;
        font-size: 13.5px;
        color: #334155;
        vertical-align: middle;
        line-height: 1.6;
    }
}

/* ==========================================================================
   13. Fullscreen Action Buttons (Mobile Header, Floating FAB, Desktop, Drawer)
   ========================================================================== */
.mobile-fullscreen-btn {
    color: #ffffff !important;
}

.mobile-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.28) !important;
}

.desktop-fullscreen-btn {
    height: 36.8px;
    width: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    color: #0e3b82;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-top: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.desktop-fullscreen-btn:hover {
    background: #f8fafc;
    color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.desktop-fullscreen-btn:active {
    transform: scale(0.95);
}

.floating-fullscreen-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0e3b82 0%, #1e40af 100%);
    border: none;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(14, 59, 130, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.floating-fullscreen-btn:hover {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 6px 18px rgba(14, 59, 130, 0.45);
}

.floating-fullscreen-btn:active {
    transform: scale(0.92);
}

.mobile-drawer-fullscreen-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #0e3b82;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Kantumruy', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.mobile-drawer-fullscreen-btn:hover {
    background: #e2e8f0;
    color: #1e3a8a;
}

.mobile-drawer-fullscreen-btn:active {
    transform: scale(0.98);
}

@media screen and (max-width: 767.98px) {
    .floating-fullscreen-btn {
        width: 36px !important;
        height: 36px !important;
    }
}

/* ==========================================================================
   14. Fullscreen Visibility (Hide on iOS - Fullscreen API unsupported)
   ========================================================================== */
@supports (-webkit-touch-callout: none) {

    .desktop-fullscreen-btn,
    .mobile-fullscreen-btn,
    .floating-fullscreen-btn,
    .mobile-drawer-fullscreen-btn {
        display: none !important;
    }
}