:root {
    /* ── Brand Colors ── */
    --font-sans: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --primary-blue: #3E74D2;
    --secondary-blue: #2d5a8c;
    --accent-blue: #4a7ba7;
    --success-green: #10B981;
    --light-gray: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6B7280;
    --dark-navy: #192D50;
    --dark-navy-mid: #243a63;
    --border-color: #E5E7EB;
    --bg-gray: #F6F6F6;
    /* ── Extended Palette (used by inner pages) ── */
    --teal-accent: #0d9488;
    --accent-soft-bg: #EFF6FF;
    --accent-soft-border: #BFDBFE;
    --accent-soft-border-hover: #93C5FD;
    --badge-bg: #EFF6FF;
    --badge-color: #1E40AF;
    /* ── Shadows ── */
    --card-shadow: 0 0.0625rem 0.25rem 0 rgba(12, 12, 13, 0.1), 0 0.0625rem 0.25rem 0 rgba(12, 12, 13, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 16px 40px rgba(62, 116, 210, 0.12), 0 6px 16px rgba(0, 0, 0, 0.08);
    /* ── Border Radius ── */
    --radius-xs: 0.25rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.625rem;
    --radius-lg: 0.875rem;
    --radius-xl: 1.25rem;
    --radius-full: 60px;
    /* ── Transitions ── */
    --transition-fast: all 0.15s ease;
    --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    /* ── Typography - PRIMARY naming (--text-*) ── */
    --text-2xs: clamp(0.625rem, 0.7vw, 0.6875rem);
    --text-xs: clamp(0.6875rem, 0.85vw, 0.75rem);
    --text-sm: clamp(0.8125rem, 0.95vw, 0.875rem);
    --text-base: clamp(0.9375rem, 1.1vw, 1rem);
    --text-lg: clamp(1rem, 1.25vw, 1.125rem);
    --text-xl: clamp(1.0625rem, 1.4vw, 1.1875rem);
    --text-2xl: clamp(1.1875rem, 1.7vw, 1.40625rem);
    --text-3xl: clamp(1.375rem, 2.2vw, 1.8125rem);
    --text-4xl: clamp(1.6875rem, 2.9vw, 2.5rem);
    --text-section: clamp(1.375rem, 2vw, 1.625rem);
    /* ── Typography - ALIAS naming (--font-*) for Master internal use ── */
    --font-2xs: var(--text-2xs);
    --font-xs: var(--text-xs);
    --font-sm: var(--text-sm);
    --font-base: var(--text-base);
    --font-lg: var(--text-lg);
    --font-xl: var(--text-xl);
    --font-2xl: var(--text-2xl);
    --font-3xl: var(--text-3xl);
    --font-4xl: var(--text-4xl);
    --weight-hero: 500;
    --weight-heading: 600;
    --weight-title: 500;
    --weight-subtitle: 400;
    --weight-section: 700;
    /* ── Spacing ── */
    --spacing-xs: clamp(0.25rem, 0.5vw, 0.3rem);
    --spacing-sm: clamp(0.375rem, 0.75vw, 0.5rem);
    --spacing-md: clamp(0.5rem, 1vw, 0.625rem);
    --spacing-lg: clamp(0.625rem, 1.25vw, 0.875rem);
    --spacing-xl: clamp(0.875rem, 1.75vw, 1.125rem);
    --spacing-2xl: clamp(1.25rem, 2.5vw, 1.625rem);
    --spacing-3xl: clamp(1.75rem, 3.5vw, 2.25rem);
    /* ── Section & Card Padding ── */
    --section-padding: clamp(2.5rem, 5vw, 3.5rem);
    --card-padding: clamp(1.5rem, 3vw, 2rem);
    --card-padding-sm: clamp(0.875rem, 1.75vw, 1.125rem);
    --card-padding-md: clamp(1.125rem, 2.25vw, 1.5rem);
    --card-padding-lg: clamp(1.5rem, 3vw, 2rem);
    /* ── Button Padding ── */
    --btn-padding-sm: clamp(0.5rem, 1vw, 0.625rem) clamp(1rem, 2vw, 1.25rem);
    --btn-padding-md: clamp(0.625rem, 1.25vw, 0.75rem) clamp(1.25rem, 2.5vw, 1.5rem);
    --btn-padding-lg: clamp(0.75rem, 1.5vw, 0.875rem) clamp(1.5rem, 3vw, 1.875rem);
    /* ── Gaps ── */
    --gap-sm: clamp(0.5rem, 1vw, 0.75rem);
    --gap-md: clamp(0.75rem, 1.5vw, 1rem);
    --gap-lg: clamp(1rem, 2vw, 1.5rem);
    --gap-cards: clamp(1rem, 0.9vw, 1.5rem);
}

* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('../../assets/fonts/inter/inter-var-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('../../assets/fonts/inter/inter-var-latinext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

body {
    font-family: var(--font-sans) !important;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    font-size: var(--text-base);
}

.data-grid,
.data-grid td,
.data-grid th,
.data-grid [class*="dxgv"],
.nc-table,
.nc-table td,
.nc-table th {
    font-family: var(--font-sans) !important;
}

/* Banner subtitles are italic across all pages */
.banner-subtitle,
.gd-banner-subtitle,
.page-banner-subtitle,
.hero-subtitle {
    font-style: italic;
}

/* Top Utility Bar */
.top-utility-bar {
    background-color: var(--dark-navy);
    padding: clamp(0.4rem, 0.8vw, 0.5rem) 0;
}

.utility-items {
    padding-right: clamp(1rem, 3vw, 2.5rem);
}

.utility-link {
    color: white;
    text-decoration: none;
    font-size: var(--font-sm);
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

    .utility-link:hover {
        opacity: 0.8;
        color: white;
    }

    .utility-link img {
        width: clamp(1rem, 1.5vw, 1.125rem);
        height: clamp(1rem, 1.5vw, 1.125rem);
        object-fit: contain;
    }

.search-box {
    margin-left: var(--spacing-sm);
}

    .search-box .form-control {
        background-color: white;
        border: 1px solid #d8d8d8;
        border-radius: 43px;
        padding: clamp(0.3rem, 0.6vw, 0.4rem) clamp(0.75rem, 1.5vw, 1rem);
        font-size: var(--font-sm);
        width: clamp(10rem, 18vw, 15.5rem);
        height: auto;
        min-height: 1.8rem;
    }

        .search-box .form-control::placeholder {
            color: rgba(0, 0, 0, 0.3);
        }

/* Utility Profile Dropdown Styles */
.utility-profile-dropdown {
    position: relative;
}

.dropdown-toggle-utility {
    cursor: pointer;
    position: relative;
}

    .dropdown-toggle-utility::after {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        margin-left: var(--spacing-xs);
        font-size: clamp(0.5rem, 0.9vw, 0.625rem);
        transition: transform 0.3s;
    }

.utility-profile-dropdown.show .dropdown-toggle-utility::after {
    transform: rotate(180deg);
}

.utility-dropdown-menu {
    position: absolute;
    top: calc(100% + var(--spacing-sm));
    right: 0;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.12), 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
    min-width: clamp(14rem, 24vw, 18rem);
    z-index: 1000;
    display: none;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

    .utility-dropdown-menu.show {
        display: block;
        animation: slideDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-0.5rem) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.utility-user-info {
    padding: clamp(1rem, 2vw, 1.5rem);
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2d5a8c 50%, var(--secondary-blue) 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    position: relative;
    overflow: hidden;
}

    .utility-user-info::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
        pointer-events: none;
    }

.utility-user-badge {
    width: clamp(2.5rem, 4vw, 3.25rem);
    height: clamp(2.5rem, 4vw, 3.25rem);
    background-color: white;
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.utility-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.utility-user-name {
    font-size: clamp(0.875rem, 1.4vw, 1rem);
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.utility-user-email {
    font-size: clamp(0.75rem, 1.2vw, 0.875rem);
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.utility-nav {
    list-style: none;
    padding: clamp(0.5rem, 1vw, 0.75rem) 0;
    margin: 0;
}

    .utility-nav li {
        border-bottom: 1px solid #f5f5f5;
        transition: background-color 0.2s;
    }

        .utility-nav li:last-child {
            border-bottom: none;
        }

        .utility-nav li:hover {
            background-color: #fafbfc;
        }

.utility-nav-link {
    display: flex;
    align-items: center;
    padding: clamp(0.75rem, 1.4vw, 0.9375rem) clamp(1rem, 2vw, 1.5rem);
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: var(--font-sm);
    font-weight: 500;
    position: relative;
}

    .utility-nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--primary-blue);
        transform: scaleY(0);
        transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .utility-nav-link:hover {
        background-color: #f0f7ff;
        color: var(--primary-blue);
        padding-left: calc(1rem + 0.5rem);
    }

        .utility-nav-link:hover::before {
            transform: scaleY(1);
        }

    .utility-nav-link i,
    .utility-nav-link .fa,
    .utility-nav-link .fas {
        font-size: clamp(1rem, 1.6vw, 1.125rem);
        margin-right: clamp(0.75rem, 1.2vw, 1rem);
        width: 1.25rem;
        text-align: center;
        color: #6c757d;
        transition: color 0.2s, transform 0.2s;
        display: inline-block;
        line-height: 1;
    }

    .utility-nav-link:hover i {
        color: var(--primary-blue);
        transform: scale(1.1);
    }

.utility-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e8ecef, transparent);
    margin: clamp(0.5rem, 1vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
}

.utility-language-section {
    padding: clamp(0.75rem, 1.4vw, 1rem) clamp(1rem, 2vw, 1.5rem);
    background-color: #fafbfc;
}

.utility-section-title {
    display: block;
    font-size: var(--text-sm);
    color: #6c757d;
    margin-bottom: clamp(0.625rem, 1vw, 0.75rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.utility-language-buttons {
    display: flex;
    gap: clamp(0.5rem, 1vw, 0.75rem);
}

.utility-lang-btn {
    flex: 1;
    padding: clamp(0.5rem, 1vw, 0.625rem) clamp(0.75rem, 1.5vw, 1rem);
    border: 1.5px solid #dee2e6;
    border-radius: 0.5rem;
    text-align: center;
    text-decoration: none;
    color: #495057;
    font-size: var(--font-sm);
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    background-color: white;
    position: relative;
    overflow: hidden;
}

    .utility-lang-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s;
    }

    .utility-lang-btn:hover {
        background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
        color: white;
        border-color: var(--primary-blue);
        transform: translateY(-1px);
        box-shadow: 0 0.25rem 0.75rem rgba(62, 116, 210, 0.3);
    }

        .utility-lang-btn:hover::before {
            left: 100%;
        }

    .utility-lang-btn:active {
        transform: translateY(0);
        box-shadow: 0 0.125rem 0.375rem rgba(62, 116, 210, 0.2);
    }

    .utility-lang-btn.active {
        background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
        color: white;
        border-color: var(--primary-blue);
        box-shadow: 0 0.125rem 0.5rem rgba(62, 116, 210, 0.25);
    }

        .utility-lang-btn.active:hover {
            background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
            box-shadow: 0 0.25rem 0.75rem rgba(62, 116, 210, 0.35);
        }

.utility-logout {
    color: #dc3545 !important;
}

    .utility-logout i {
        color: #dc3545 !important;
    }

    .utility-logout:hover {
        background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%) !important;
        color: #c82333 !important;
        padding-left: calc(1rem + 0.5rem) !important;
    }

        .utility-logout:hover i {
            color: #c82333 !important;
            transform: scale(1.1);
        }

    .utility-logout::before {
        background: #dc3545 !important;
    }

/* Main Header */
.main-header {
    background-color: white;
    padding: 0;
    margin: 0;
    margin-bottom: 0;
    border: none;
    border-bottom: none;
    box-shadow: none;
    overflow: hidden;
}

    .main-header .container-fluid {
        padding-right: 0;
        padding-left: 0;
        margin: 0;
    }

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: clamp(3rem, 5.5vw, 4rem);
    padding: 0 0 0 clamp(1.5rem, 3.5vw, 3rem);
    margin: 0;
}

.logo-container {
    flex-shrink: 0;
    padding: clamp(0.2rem, 0.4vw, 0.3rem) 0;
    cursor: pointer;
}

    .logo-container .logo-image {
        height: clamp(2rem, 4.5vw, 3.5rem);
        width: auto;
    }

/* Navigation */
.main-nav {
    /*flex: 1;*/
    padding: 0;
    padding-left: 15px;
    /*max-width: 56.25rem;*/
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xs);
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block !important;
    color: var(--text-dark) !important;
    text-decoration: none !important;
    font-size: var(--font-base) !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    transition: all 0.3s !important;
    border-radius: 0.8rem !important;
    padding: 0.5rem 1rem !important;
}

    .nav-link:hover {
        background-color: #e8f2ff !important;
        color: var(--secondary-blue) !important;
    }

    .nav-link.active {
        background-color: #d4e7f8 !important;
        color: var(--primary-blue) !important;
    }

/* Desktop Dropdown Styles */
.nav-item.has-dropdown {
    position: relative;
}

    .nav-item.has-dropdown > .nav-link::after {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        margin-left: 5px;
        font-size: 12px;
        transition: transform 0.3s;
    }

.dropdown-menu-custom {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.15);
    border-radius: 0.25rem;
    min-width: 13.75rem;
    padding: var(--spacing-sm) 0;
    z-index: 1000;
    margin-top: var(--spacing-xs);
}

    .dropdown-menu-custom .dropdown-item {
        padding: var(--spacing-sm) var(--spacing-lg);
        color: var(--text-dark);
        text-decoration: none;
        display: block;
        transition: background 0.3s;
        font-size: var(--font-sm);
        white-space: nowrap;
    }

        .dropdown-menu-custom .dropdown-item:hover {
            background-color: #e8f2ff;
            color: var(--secondary-blue);
        }

        .dropdown-menu-custom .dropdown-item i {
            margin-right: var(--spacing-sm);
            width: 1rem;
            text-align: center;
        }

/* Mobile Submenu Styles */
.mobile-submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: var(--spacing-lg);
    background-color: #f8f9fa;
}

    .mobile-submenu li {
        border-bottom: 1px solid #e0e0e0;
    }

        .mobile-submenu li:last-child {
            border-bottom: none;
        }

    .mobile-submenu .submenu-link {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-sm);
        color: #666;
    }

.mobile-menu .nav-item.has-dropdown > .nav-link::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: var(--spacing-sm);
    font-size: var(--font-xs);
    transition: transform 0.3s;
    float: right;
}

.mobile-menu .nav-item.submenu-open > .nav-link::after {
    transform: rotate(180deg);
}

/* Loading State */
.menu-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: var(--font-sm);
}

    .menu-loading i {
        margin-right: var(--spacing-sm);
    }

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex-shrink: 0;
    padding-right: 0;
    margin-right: 0;
}

.right-logo-container {
    flex-shrink: 0;
    margin-left: var(--spacing-lg);
    margin-right: 0;
    line-height: 0;
}

.right-logo-container .right-logo {
    height: clamp(3rem, 5.5vw, 4.1rem);
    width: auto;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: bottom;
}

/* Burger Menu Button */
.navbar-toggler {
    border: none;
    padding: var(--spacing-sm);
    background: transparent;
    display: none;
}

    .navbar-toggler:focus {
        outline: none;
        box-shadow: none;
    }

.navbar-toggler-icon {
    width: 1.5rem;
    height: 0.125rem;
    background-color: var(--text-dark);
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        content: '';
        width: 1.5rem;
        height: 0.125rem;
        background-color: var(--text-dark);
        display: block;
        position: absolute;
        transition: all 0.3s ease;
    }

    .navbar-toggler-icon::before {
        top: -0.5rem;
    }

    .navbar-toggler-icon::after {
        top: 0.5rem;
    }

.navbar-toggler.active .navbar-toggler-icon {
    background-color: transparent;
}

    .navbar-toggler.active .navbar-toggler-icon::before {
        transform: rotate(45deg);
        top: 0;
    }

    .navbar-toggler.active .navbar-toggler-icon::after {
        transform: rotate(-45deg);
        top: 0;
    }

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(2px);
}

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(17.5rem, 85vw);
    max-width: 20rem;
    height: 100%;
    background-color: white;
    z-index: 1000;
    padding: clamp(3rem, 8vw, 5rem) var(--spacing-lg) var(--spacing-lg);
    overflow-y: auto;
    overflow-x: hidden;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -0.125rem 0 0.625rem rgba(0, 0, 0, 0.15), -0.25rem 0 1.25rem rgba(0, 0, 0, 0.1);
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

    .mobile-menu.active {
        right: 0;
    }

    .mobile-menu .nav {
        flex-direction: column;
        align-items: flex-start;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu .nav-link {
        padding: clamp(0.875rem, 1.5vw, 1rem) 0;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        font-size: var(--font-base);
        min-height: 3rem;
        display: flex;
        align-items: center;
        transition: all 0.2s ease;
        color: var(--text-dark);
        text-decoration: none;
    }
    
    .mobile-menu .nav-link:active {
        background-color: #f8f9fa;
        color: var(--primary-blue);
    }
    
    .mobile-menu .nav-link.active {
        color: var(--primary-blue);
        font-weight: 600;
        background-color: #f0f7ff;
    }

.mobile-menu-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    background: transparent;
    border: none;
    font-size: var(--font-2xl);
    cursor: pointer;
    color: var(--text-dark);
    min-width: 2.5rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1001;
}

    .mobile-menu-close:hover,
    .mobile-menu-close:active {
        background-color: #f8f9fa;
        color: var(--primary-blue);
        transform: rotate(90deg);
    }
    
    .mobile-menu-close:active {
        transform: rotate(90deg) scale(0.95);
    }

/* Mobile Submenu Enhancements */
.mobile-submenu {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu .nav-item.submenu-open .mobile-submenu {
    max-height: 500px; /* Adjust based on content */
}

.mobile-submenu .submenu-link {
    padding: clamp(0.75rem, 1.2vw, 0.875rem) 0 clamp(0.75rem, 1.2vw, 0.875rem) clamp(1.5rem, 2.5vw, 2rem);
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    color: #666;
    font-size: var(--font-sm);
    transition: all 0.2s ease;
}

    .mobile-submenu .submenu-link:active {
        background-color: #f8f9fa;
        color: var(--primary-blue);
        padding-left: clamp(1.75rem, 3vw, 2.25rem);
    }

.btn-register {
    background-color: var(--primary-blue);
    border: none;
    color: white;
    padding: clamp(0.5rem, 1vw, 0.625rem) clamp(1.25rem, 2.5vw, 1.5rem);
    border-radius: 60px;
    font-weight: 600;
    transition: all 0.3s;
    font-size: var(--font-base);
    white-space: nowrap;
}

    .btn-register:hover {
        background-color: var(--secondary-blue);
        color: white;
        transform: translateY(-0.0625rem);
    }

/* Footer */
.main-footer {
    background-color: #192D50;
    color: white;
    padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
    margin-top: 0;
}

.footer-logo {
    max-height: clamp(5rem, 9vw, 7rem);
    width: auto;
    margin-bottom: 0;
}

.footer-heading {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    text-transform: capitalize;
    line-height: 1.5;
}

.footer-text {
    font-size: var(--font-sm);
    line-height: 1.35;
    color: white;
    margin-bottom: 0;
}

.footer-label {
    font-weight: 700;
}

.footer-menu-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0 clamp(1.5rem, 3vw, 2.5rem);
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-link {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: var(--spacing-md);
    transition: color 0.3s;
    font-size: var(--font-sm);
    line-height: 1.35;
}

    .footer-link:last-child {
        margin-bottom: 0;
    }

    .footer-link:hover {
        opacity: 0.8;
        color: white;
    }

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: clamp(1.75rem, 3.5vw, 2.5rem) 0 clamp(1.25rem, 2.5vw, 1.875rem);
}

.footer-bottom {
    text-align: center;
    font-size: var(--font-base);
    font-weight: 200;
    color: white;
    line-height: 1.35;
}

    .footer-bottom p {
        margin: 0;
    }

/* ==================== RESPONSIVE DESIGN ENHANCEMENTS ==================== */

/* Below 1080px: Apply smaller font */
@media (max-width: 1079px) {
    html {
        font-size: 15.5px;
    }
}

/* 1080px and above: Scale up as if browser zoom is 110% */
/*@media (min-width: 1080px) {
    html {
        font-size: 110%;
    }
}
*/
/* Tablet Landscape */
@media (max-width: 991px) {
    .header-content {
        padding: 0 0 0 15px;
        min-height: 70px;
    }

    .utility-items {
        padding-right: 15px;
    }

    .navbar-toggler {
        display: block;
        min-width: 2.5rem;
        min-height: 2.5rem;
    }

    .main-nav {
        display: none !important;
    }

    .logo-container .logo-image {
        height: 50px;
    }

    .top-utility-bar {
        padding: 8px 0;
    }

    .utility-link {
        font-size: 13px;
    }

        .utility-link i {
            font-size: 14px;
        }

    .search-box .form-control {
        width: 150px;
        font-size: 12px;
        padding: 5px 12px;
    }

    .btn-register {
        padding: 7px 16px;
        font-size: 13px;
    }

    .header-right {
        gap: 12px;
        padding-right: 15px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 0 0 10px;
        min-height: 65px;
    }

    .logo-container .logo-image {
        height: 45px;
    }

    .footer-heading {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .footer-logo {
        max-height: 90px;
    }

    .footer-text {
        font-size: 13px;
    }

    .footer-link {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .footer-divider {
        margin: 30px 0 20px;
    }

    .footer-bottom {
        font-size: 14px;
    }

    .utility-items {
        gap: 10px !important;
        padding-right: 10px;
    }

    .utility-link span {
        display: none;
    }

    .header-right {
        padding-right: 10px;
    }

    .utility-dropdown-menu {
        min-width: 220px;
    }
}

@media (max-width: 576px) {
    .utility-items {
        padding-right: 10px;
        gap: 8px !important;
    }

    .search-box .form-control {
        width: 120px;
        padding: 5px 10px;
    }

    .btn-register {
        padding: 6px 14px;
        font-size: 12px;
    }

    .logo-container .logo-image {
        height: 40px;
    }

    .header-right {
        padding-right: 10px;
    }

    .footer-heading {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .footer-logo {
        max-height: 70px;
    }

    .footer-text {
        font-size: 12px;
    }

    .footer-link {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .footer-bottom {
        font-size: 12px;
    }

    .main-footer {
        padding: 50px 0 35px;
    }

    .footer-menu-columns {
        grid-template-columns: 1fr 1fr;
        gap: 0 clamp(1rem, 2vw, 1.5rem);
    }
}

/* ==================== NOTIFICATION DROPDOWN ==================== */
.utility-notification-dropdown {
    position: relative;
}

.notification-toggle {
    position: relative;
    cursor: pointer;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #dc3545;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.utility-notification-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    width: 420px;
    max-width: 90vw;
    z-index: 1000;
    display: none;
    max-height: 500px;
    overflow: hidden;
}

    .utility-notification-menu.show {
        display: flex;
        flex-direction: column;
        animation: slideDown 0.3s ease;
    }

.notification-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    flex-shrink: 0;
}

.notification-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: white;
}

.btn-mark-all-read {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

    .btn-mark-all-read:hover {
        background: rgba(255, 255, 255, 0.3);
    }

.notification-list {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 400px;
    min-height: 100px;
    flex: 1;
}

    .notification-list::-webkit-scrollbar {
        width: 6px;
    }

    .notification-list::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .notification-list::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }

        .notification-list::-webkit-scrollbar-thumb:hover {
            background: #a1a1a1;
        }

.notification-item {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
    display: flex;
    gap: 12px;
    align-items: start;
    cursor: pointer;
}

    .notification-item.unread {
        background: #f0f7ff;
        cursor: pointer;
    }

        .notification-item.unread:hover {
            background: #e8f2ff;
        }

    .notification-item:not(.unread) {
        cursor: default;
    }


.notification-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .notification-icon i {
        color: var(--primary-blue);
        font-size: 18px;
    }

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-message {
    font-size: 14px;
    color: #212529;
    margin: 0 0 4px 0;
    line-height: 1.4;
    font-weight: 500;
    word-wrap: break-word;
}

.notification-time {
    font-size: 12px;
    color: #6B7280;
    margin: 0;
}

.notification-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}


.btn-notification-action {
    background: transparent;
    border: 1px solid #e0e0e0;
    color: #6B7280;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-notification-action:hover {
        background: var(--primary-blue);
        color: white;
        border-color: var(--primary-blue);
    }

    .btn-notification-action.read {
        color: var(--success-green);
        border-color: var(--success-green);
    }

        .btn-notification-action.read:hover {
            background: var(--success-green);
            color: white;
        }

.notification-loading,
.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #6B7280;
}

    .notification-loading i {
        font-size: 24px;
        margin-bottom: 10px;
        color: var(--primary-blue);
    }

    .notification-loading p,
    .notification-empty p {
        margin: 0;
        font-size: 14px;
    }

    .notification-empty i {
        font-size: 48px;
        color: #d0d0d0;
        margin-bottom: 10px;
    }

.notification-loading-more {
    padding: 12px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    flex-shrink: 0;
}

    .notification-loading-more i {
        color: var(--primary-blue);
        font-size: 16px;
    }

/* "View All" footer link inside the dropdown */
.notification-footer {
    border-top: 1px solid #e9ecef;
    padding: 10px 16px;
    text-align: center;
}

.notification-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s;
}

    .notification-view-all:hover {
        color: var(--secondary-blue);
        text-decoration: underline;
    }

    .notification-view-all i {
        font-size: 12px;
    }

.notification-tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

    .notification-tooltip.show {
        opacity: 1;
    }

    .notification-tooltip::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-top-color: #333;
    }

/* Responsive */
@media (max-width: 768px) {
    .utility-notification-menu {
        width: 350px;
        max-height: 400px;
    }

    .notification-list {
        max-height: 300px;
    }

    .notification-item {
        padding: 12px;
    }

    .notification-icon {
        width: 36px;
        height: 36px;
    }

        .notification-icon i {
            font-size: 16px;
        }

    .notification-message {
        font-size: 13px;
    }

    .notification-time {
        font-size: 11px;
    }
}

@media (max-width: 576px) {
    .utility-notification-menu {
        width: calc(100vw - 20px);
        right: -10px;
        max-height: 350px;
    }

    .notification-list {
        max-height: 250px;
    }

    .notification-header {
        padding: 12px 16px;
    }

    .notification-title {
        font-size: 15px;
    }

    .notification-item {
        padding: 10px 12px;
        gap: 10px;
    }

    .notification-icon {
        width: 32px;
        height: 32px;
    }

        .notification-icon i {
            font-size: 14px;
        }
}

/* ==================== LOADING INDICATOR ==================== */
body.loading::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.loading::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10000;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ==================== LANGUAGE DROPDOWN ==================== */
.utility-language-dropdown {
    position: relative;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
}

    .language-toggle i {
        font-size: 16px;
    }

.current-language {
    font-size: 14px;
    font-weight: 500;
}

.language-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 4px;
    font-size: 10px;
    transition: transform 0.3s;
}

.utility-language-dropdown.show .language-toggle::after {
    transform: rotate(180deg);
}

.utility-language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

    .utility-language-menu.show {
        display: block;
        animation: slideDown 0.3s ease;
    }

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

    .language-option:last-child {
        border-bottom: none;
    }

    .language-option i {
        font-size: 14px;
        color: var(--primary-blue);
        opacity: 0;
        transition: opacity 0.3s;
    }

    .language-option.active i {
        opacity: 1;
    }

    .language-option:hover {
        background-color: #f8f9fa;
        color: var(--primary-blue);
        padding-left: 20px;
    }

    .language-option.active {
        background-color: #f0f7ff;
        color: var(--primary-blue);
        font-weight: 600;
    }

/* Mobile Language Buttons */
.btn-outline-light.active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    background-color: var(--accent-soft-border);
}

    .btn-outline-light:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.5);
        color: white;
    }

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: min(25rem, 90vw);
}

.toast-notification {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 0.25rem solid var(--primary-blue);
    min-width: min(18.75rem, 85vw);
    animation: slideIn 0.3s ease-out;
}

    .toast-notification.toast-error {
        border-left-color: #DC2626;
    }

    .toast-notification.toast-success {
        border-left-color: #16a34a;
    }

    .toast-notification.toast-warning {
        border-left-color: #F59E0B;
    }

    .toast-notification.toast-info {
        border-left-color: #3B82F6;
    }

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-error .toast-icon {
    color: #DC2626;
}

.toast-success .toast-icon {
    color: #16a34a;
}

.toast-warning .toast-icon {
    color: #F59E0B;
}

.toast-info .toast-icon {
    color: #3B82F6;
}

.toast-content {
    flex: 1;
}

.toast-message {
    font-size: 0.9rem;
    color: #111827;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #9CA3AF;
    cursor: pointer;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

    .toast-close:hover {
        background-color: #F3F4F6;
        color: #111827;
    }

@keyframes slideIn {
    from {
        transform: translateX(25rem);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .toast-container {
        left: 0.5rem;
        right: 0.5rem;
        top: 0.5rem;
        max-width: none;
    }

    .toast-notification {
        min-width: auto;
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .current-language {
        display: none;
    }

    .language-toggle::after {
        display: none;
    }

    .utility-language-menu {
        min-width: 130px;
    }
}

@media (max-width: 576px) {
    .utility-language-dropdown {
        order: -1;
    }
}

/* ==================== VIDEO SLIDER MODAL ==================== */
.video-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

    .video-modal-overlay.active {
        display: flex;
    }

.video-modal-content {
    position: relative;
    width: 90vw;
    max-width: 900px;
}

.video-modal-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    padding: 0;
}

    .video-modal-close:hover {
        color: #ccc;
    }

.video-slides-wrapper .video-slide video {
    width: 100%;
    max-height: 70vh;
    display: block;
    border-radius: 0.5rem;
    background: #000;
}

.video-modal-caption {
    text-align: center;
    color: #ddd;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.video-modal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.video-modal-prev,
.video-modal-next {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    border-radius: 50%;
    width: 2.25rem;
    height: 2.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

    .video-modal-prev:hover,
    .video-modal-next:hover {
        background: rgba(255, 255, 255, 0.15);
    }

.video-modal-counter {
    color: #ddd;
    font-size: 0.9rem;
}

.uwy.userway_p3 .userway_buttons_wrapper{
    bottom: 5rem !important;
}