/* admin/custom.css — Admin panel styles (eye-catching login + dashboard) */
.admin-body{ background:#f1f4f9; font-family: 'Segoe UI', Arial, sans-serif; }
.admin-sidebar{ width:260px; min-height:100vh; background:linear-gradient(180deg,#0A2540 0%,#0d2f52 100%); color:#fff; position:fixed; top:0; left:0; padding:20px 0; box-shadow:4px 0 20px rgba(0,0,0,.15); z-index:100; }
.admin-sidebar h4{ color:#fff; padding:0 20px; margin-bottom:24px; font-weight:700; font-size:1.25rem; }
.admin-sidebar a{ display:block; color:rgba(255,255,255,.75); padding:14px 20px; text-decoration:none; font-weight:500; border-left:3px solid transparent; transition:all .2s; }
.admin-sidebar a:hover, .admin-sidebar a.active{ background:rgba(27,111,242,.15); color:#fff; border-left-color:#1B6FF2; }
.admin-content{ margin-left:260px; padding:24px; }
.admin-topbar{ background:#fff; padding:14px 24px; margin-left:260px; box-shadow:0 2px 8px rgba(0,0,0,.05); display:flex; justify-content:space-between; align-items:center; position:sticky; top:0; z-index:99; }
.admin-card{ background:#fff; border-radius:12px; padding:24px; box-shadow:0 4px 16px rgba(0,0,0,.06); margin-bottom:24px; }
.admin-card h5{ margin-bottom:18px; color:#0A2540; font-weight:700; }
.table-actions a{ margin-right:10px; text-decoration:none; }
.table-actions a.text-danger{ color:#dc3545; }

/* =========== EYE-CATCHING LOGIN PANEL =========== */
.admin-login-wrap{ min-height:100vh; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,#0A2540 0%,#1B6FF2 100%); position:relative; overflow:hidden; }
.admin-login-wrap::before{ content:""; position:absolute; width:600px; height:600px; background:radial-gradient(circle,rgba(255,255,255,.08),transparent 70%); border-radius:50%; top:-200px; right:-200px; }
.admin-login-wrap::after{ content:""; position:absolute; width:500px; height:500px; background:radial-gradient(circle,rgba(27,111,242,.15),transparent 70%); border-radius:50%; bottom:-150px; left:-150px; }
.admin-login-box{ background:#fff; padding:48px; border-radius:18px; width:420px; box-shadow:0 20px 60px rgba(0,0,0,.3); position:relative; z-index:2; }
.admin-login-box h3{ color:#0A2540; font-weight:800; font-size:1.8rem; margin-bottom:6px; }
.admin-login-box .text-muted{ color:#6c757d; font-size:.95rem; }
.admin-login-box .form-control{ border-radius:10px; border:1px solid #dee2e6; padding:12px 14px; font-size:1rem; }
.admin-login-box .form-control:focus{ border-color:#1B6FF2; box-shadow:0 0 0 3px rgba(27,111,242,.15); }
.admin-login-box .btn-primary{ background:linear-gradient(135deg,#1B6FF2,#0A2540); border:none; padding:12px; font-size:1.05rem; font-weight:600; border-radius:10px; margin-top:8px; transition:transform .2s; }
.admin-login-box .btn-primary:hover{ transform:translateY(-2px); box-shadow:0 8px 20px rgba(27,111,242,.35); }
.admin-login-box .alert{ border-radius:10px; font-size:.95rem; }

/* =========== DASHBOARD CARDS =========== */
.stat-card{ background:#fff; border-radius:12px; padding:24px; text-align:center; box-shadow:0 4px 16px rgba(0,0,0,.06); transition:transform .2s; }
.stat-card:hover{ transform:translateY(-4px); }
.stat-card h1{ color:#1B6FF2; font-weight:800; margin-bottom:4px; }
.stat-card p{ color:#6c757d; font-weight:500; margin:0; }

/* =========== FORMS =========== */
.form-label{ font-weight:600; color:#0A2540; margin-bottom:6px; }
.form-control, .form-select{ border-radius:8px; border:1px solid #dee2e6; padding:10px 12px; }
.form-control:focus, .form-select:focus{ border-color:#1B6FF2; box-shadow:0 0 0 3px rgba(27,111,242,.15); }
.btn-primary{ background:#1B6FF2; border-color:#1B6FF2; }
.btn-primary:hover{ background:#0A2540; border-color:#0A2540; }
.btn-outline-primary{ color:#1B6FF2; border-color:#1B6FF2; }
.btn-outline-primary:hover{ background:#1B6FF2; color:#fff; }

/* =========== SLIDER PREVIEWS =========== */
.slider-thumb{ width:100%; max-width:280px; border-radius:8px; box-shadow:0 2px 8px rgba(0,0,0,.1); }

.top-strip { position: relative; z-index: 5; }

/* Call button */
.btn-call {
    background: #ffffff;
    color: #0d6efd;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    padding: 6px 16px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.btn-call:hover {
    color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* WhatsApp button */
.btn-whatsapp {
    background: #25D366;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    padding: 6px 16px;
    transition: transform .2s ease, box-shadow .2s ease;
    animation: pulse-wa 2s infinite;
}
.btn-whatsapp:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    animation: none;
}
@keyframes pulse-wa {
    0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Icons next to phone numbers on the right */
.top-link i { font-size: 1rem; }
.top-link:hover { text-decoration: underline; opacity: 0.9; }

.floating-contact-btns {
    position: fixed;
    right: 20px;
    bottom: 90px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fab-btn {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.28);
    transition: transform .2s ease, box-shadow .2s ease;
}
.fab-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
    color: #fff;
}

.fab-icon {
    width: 26px;
    height: 26px;
    position: relative;
    z-index: 2;
}

.fab-call {
    background: linear-gradient(145deg, #2196f3, #0d6efd);
}

.fab-whatsapp {
    background: linear-gradient(145deg, #25D366, #128C7E);
}

/* Pulsing ring animation — the "eye catching" glow */
.fab-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: 1;
    animation: fab-pulse 2.2s infinite;
}
.fab-call .fab-ring { background: rgba(33, 150, 243, 0.55); }
.fab-whatsapp .fab-ring { background: rgba(37, 211, 102, 0.55); animation-delay: .3s; }

@keyframes fab-pulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    70%  { transform: scale(1.8); opacity: 0; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Mobile: slightly smaller + closer to edge */
@media (max-width: 576px) {
    .floating-contact-btns { right: 14px; bottom: 70px; gap: 10px; }
    .fab-btn { width: 50px; height: 50px; }
    .fab-icon { width: 22px; height: 22px; }
}

/* ==========================================================
   NAVBAR + MEGA DROPDOWN — FINAL v2
   theme.min.css already ships its own hover-driven mega-menu engine
   (.navbar .dropdown:hover .dropdown-menu {opacity:1 ...} above 1200px).
   Instead of fighting it with Bootstrap's JS .show class + Popper,
   this version WORKS WITH that hover engine — our own :hover/:focus-
   within/.show rules take over from 992px (matching navbar-expand-lg)
   so desktop, tablet-landscape, keyboard nav, and touch/tap (via the
   .show class Bootstrap JS still adds on click) are all covered.
   ========================================================== */

/* ---------- ROW 1: Logo + Apply Now ---------- */
.brand-row {
    background: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid #eef1f6;
    position: relative;
    z-index: 30;
}
.brand-row .container { max-width: 1320px; }
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    line-height: 0;
}
.navbar-brand img {
    height: 60px;
    width: auto;
    max-width: none;
    object-fit: contain;
    display: block;
}
.brand-row-apply {
    padding: 11px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
}
@media (max-width: 991px) {
    .navbar-brand img { height: 42px; }
    .brand-row { padding: 8px 0; }
}

/* ---------- ROW 2: Main nav bar ---------- */
.navbar-default {
    padding-top: 4px;
    padding-bottom: 4px;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(10,37,64,.06);
    position: relative;
    z-index: 1040; /* above any in-page sticky/fixed content (Bootstrap's own sticky-top uses 1020) */
}
.navbar-default .container { max-width: 1320px; }

.navbar-default .navbar-nav {
    align-items: center;
    flex-wrap: nowrap;
    gap: 2px;
}
.navbar-default .navbar-nav .nav-link {
    color: #0A2540 !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 12px 12px !important;
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.navbar-default .navbar-nav .nav-link:hover { color: #1B6FF2 !important; }

@media (min-width: 992px) {
    .navbar-default .navbar-collapse {
        display: flex !important;
        justify-content: center;
    }
}

/* Chevron */
.navbar-default .dropdown-toggle::after {
    display: inline-block;
    content: "";
    border: none;
    width: 7px;
    height: 7px;
    margin-left: 6px;
    margin-top: -2px;
    vertical-align: middle;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.65;
    transition: transform 0.2s ease;
}
.navbar-default .nav-item.dropdown:hover .dropdown-toggle::after,
.navbar-default .nav-item.dropdown.show .dropdown-toggle::after,
.navbar-default .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(225deg);
    margin-top: 2px;
}

/* ==========================================================
   MEGA DROPDOWN — desktop/tablet (>=992px): hover + click + keyboard
   ========================================================== */
@media (min-width: 992px) {
    .navbar-default .nav-item.dropdown {
        position: relative;
    }

    .navbar-default .dropdown-mega {
        display: block !important;      /* always in the DOM/layout, like the theme expects */
        position: absolute !important;
        inset: auto !important;
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        margin: 8px 0 0 !important;
        transform: translateY(10px) !important;

        background-color: #ffffff !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        border: none;
        border-top: 3px solid #1B6FF2;
        border-radius: 10px;
        box-shadow: 0 16px 38px rgba(10, 37, 64, 0.18);
        padding: 22px 26px;
        width: 920px;
        max-width: min(920px, 92vw);

        transition: opacity .18s ease, transform .18s ease, visibility .18s;
        z-index: 1050; /* above navbar, above any page sticky-top content */
    }

    .navbar-default .dropdown-mega.dropdown-mega-end {
        left: auto !important;
        right: 0 !important;
    }

    /* Reveal on hover (mouse), on Bootstrap's .show class (tap/click via JS),
       or on keyboard focus-within (accessibility) — covers every input type */
    .navbar-default .nav-item.dropdown:hover .dropdown-mega,
    .navbar-default .nav-item.dropdown:focus-within .dropdown-mega,
    .navbar-default .dropdown-mega.show {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }
}

.dropdown-mega-row { display: flex; flex-wrap: nowrap; gap: 32px; }
.dropdown-mega-col { flex: 1 1 0; display: flex; flex-direction: column; min-width: 220px; }
.dropdown-mega-col:not(:last-child) { border-right: 1px solid #edf1f7; padding-right: 24px; }
.dropdown-mega-title {
    color: #0A2540;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1B6FF2;
}
.dropdown-mega .dropdown-item {
    font-size: 0.88rem;
    font-weight: 500;
    color: #0A2540;
    padding: 7px 4px;
    white-space: normal;
    background-color: transparent;
}
.dropdown-mega .dropdown-item:hover { background: transparent; color: #1B6FF2; padding-left: 8px; }
.dropdown-mega-apply { margin-top: 14px; padding: 9px 18px; border-radius: 8px; font-weight: 700; text-align: center; }

/* ==========================================================
   MOBILE / TABLET-PORTRAIT (<992px) — plain stacked accordion list.
   This overrides the theme's own display:block/hover rules entirely
   below 992px so the collapsed hamburger menu shows every item full
   width, in normal document flow — no absolute positioning, no
   hover tricks, no clipped columns.
   ========================================================== */
@media (max-width: 991px) {
    .brand-row-apply { display: none !important; }

    .navbar-default .navbar-collapse {
        width: 100%;
        margin-top: 10px;
        max-height: 80vh;
        overflow-y: auto;
    }
    .navbar-default .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
    }
    .navbar-default .nav-item {
        width: 100%;
        border-bottom: 1px solid #edf1f7;
    }
    .navbar-default .nav-item:last-child { border-bottom: none; }
    .navbar-default .navbar-nav .nav-link {
        justify-content: space-between;
        padding: 14px 4px !important;
        font-size: 1rem;
        width: 100%;
    }
    .navbar-default .dropdown-toggle::after { margin-left: auto; }

    /* Force the mega menu back into normal flow — visible only when
       Bootstrap JS adds .show (tap), never via hover on touch devices */
    .navbar-default .dropdown-mega {
        display: none;
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid #1B6FF2;
        border-radius: 0;
        margin: 0 0 8px !important;
        padding: 10px 0 10px 14px;
        background-color: #f8fafd !important;
    }
    .navbar-default .dropdown-mega.show {
        display: block !important;
    }

    .dropdown-mega-row { flex-direction: column; gap: 4px; }
    .dropdown-mega-col:not(:last-child) {
        border-right: none; padding-right: 0;
        border-bottom: 1px solid #e4ebf5; padding-bottom: 10px; margin-bottom: 10px;
    }
    .dropdown-mega-col { min-width: 0; }
}

@media (min-width: 992px) and (max-width: 1280px) {
    .navbar-default .navbar-nav .nav-link { font-size: 0.82rem; padding: 12px 7px !important; }
    .navbar-brand img { height: 50px; }
    .navbar-default .dropdown-mega { width: 820px; }
}

/* ==========================================================
   APPEND THIS TO THE END OF assets/css/custom.css
   (on top of custom-FINAL-v2.css from the previous step)

   FIX: the hamburger toggler was invisible on mobile/tablet because
   theme.min.css only styles ".navbar .navbar-toggler .icon-bar" —
   i.e. it requires the toggler to be a descendant of an element with
   class "navbar". Our toggler lives in .brand-row (a plain div), so
   it inherited none of that styling and rendered as an empty box.
   This gives the toggler its own complete, self-contained styling
   and guarantees its show/hide behavior with an explicit media
   query instead of depending on a possibly-missing "d-lg-none"
   utility class.
   ========================================================== */

.brand-row .navbar-toggler {
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 38px;
    padding: 0;
    background-color: #ffffff;
    border: 1px solid #1B6FF2;
    border-radius: 8px;
    cursor: pointer;
    transition: box-shadow .2s ease;
}
.brand-row .navbar-toggler:focus {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(27,111,242,.2);
}
.brand-row .navbar-toggler:hover {
    box-shadow: 0 4px 10px rgba(10,37,64,.12);
}

/* The three bars — explicit size/color/position, independent of theme.min.css */
.brand-row .navbar-toggler .icon-bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #1B6FF2;
    border-radius: 2px;
    margin: 3px auto;
    transition: transform .25s ease, opacity .25s ease;
}

/* Animate into an "X" when the menu is open (Bootstrap removes
   .collapsed from the toggler automatically when expanded) */
.brand-row .navbar-toggler:not(.collapsed) .top-bar {
    transform: translateY(5px) rotate(45deg);
}
.brand-row .navbar-toggler:not(.collapsed) .middle-bar {
    opacity: 0;
}
.brand-row .navbar-toggler:not(.collapsed) .bottom-bar {
    transform: translateY(-5px) rotate(-45deg);
}

/* Explicit, guaranteed show/hide — doesn't rely on a "d-lg-none"
   utility class existing in the compiled theme.min.css */
@media (min-width: 992px) {
    .brand-row .navbar-toggler { display: none !important; }
}
@media (max-width: 991px) {
    .brand-row .navbar-toggler { display: inline-flex !important; }
}

/* ==========================================================
   APPEND THIS to the end of assets/css/custom.css
   (after custom-FINAL-v2.css and navbar-toggler-fix.css)

   Sizes the mega-menu panel to match its actual column count.
   header.php now auto-adds .dropdown-mega-cols-1 / -2 / -3 based on
   how many of col2/col3 are filled for that menu, so each dropdown
   is only as wide as it needs to be — no oversized empty box for
   Professional Loan / Machinery Loan (1 col), and a medium box for
   Working Capital / Used Car Loan / Education Loan / Credit Card
   (2 col), while Personal Loan / Business Loan / Home Loan / LAP
   keep the full 3-column width as before.
   ========================================================== */

@media (min-width: 992px) {
    /* 3 columns — unchanged from before */
    .navbar-default .dropdown-mega.dropdown-mega-cols-3 {
        width: 920px;
        max-width: min(920px, 92vw);
    }

    /* 2 columns — Working Capital, Used Car Loan, Education Loan, Credit Card */
    .navbar-default .dropdown-mega.dropdown-mega-cols-2 {
        width: 560px;
        max-width: min(560px, 92vw);
    }

    /* 1 column — Professional Loan, Machinery Loan (Overview only) */
    .navbar-default .dropdown-mega.dropdown-mega-cols-1 {
        width: 300px;
        max-width: min(300px, 92vw);
    }
}

/* Single-column menus don't need the vertical divider line or the
   flex-1 stretch meant for multi-column layouts */
.dropdown-mega-cols-1 .dropdown-mega-col--overview {
    border-right: none !important;
    padding-right: 0 !important;
}

/* Keep the 1200-1280px squeeze rule consistent for the new sizes too */
@media (min-width: 992px) and (max-width: 1280px) {
    .navbar-default .dropdown-mega.dropdown-mega-cols-3 { width: 820px; }
    .navbar-default .dropdown-mega.dropdown-mega-cols-2 { width: 520px; }
    .navbar-default .dropdown-mega.dropdown-mega-cols-1 { width: 280px; }
}
/* ==========================================================
   TOP BAR SVG ICON FIX
   Append this block at the very end of assets/css/custom.css.
   Use together with the replacement top-bar block from
   header-topbar-icons.php.

   Inline SVG is used by the PHP block, so this does not depend on
   Bootstrap Icons, Font Awesome, CDN files, or icon font loading.
   ========================================================== */

.top-strip {
    position: relative !important;
    z-index: 2000 !important;
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
    background: #0A2540 !important;
}

.top-strip .top-contact-actions {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Compact elegant pill buttons containing real inline SVG icons */
.top-strip .top-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    min-height: 36px;
    padding: 7px 15px !important;
    border: 0 !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease;
}
.top-strip .top-action:hover {
    transform: translateY(-2px);
}
.top-strip .top-action-call {
    background: #ffffff !important;
    color: #1B6FF2 !important;
}
.top-strip .top-action-call:hover {
    color: #0A2540 !important;
    box-shadow: 0 5px 14px rgba(255,255,255,.2);
}
.top-strip .top-action-whatsapp {
    background: #25D366 !important;
    color: #ffffff !important;
}
.top-strip .top-action-whatsapp:hover {
    color: #ffffff !important;
    box-shadow: 0 5px 14px rgba(37,211,102,.35);
}

/* SVG icons — explicit fill ensures theme.min.css cannot hide them */
.top-strip .top-action-icon {
    display: block !important;
    width: 17px !important;
    height: 17px !important;
    flex: 0 0 17px;
    fill: currentColor !important;
    stroke: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.top-strip .top-whatsapp-icon {
    width: 18px !important;
    height: 18px !important;
}

/* Right-side contact details also use inline SVG */
.top-strip .top-contact-details {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 18px;
    color: #ffffff;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}
.top-strip .top-link {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    color: #ffffff !important;
    text-decoration: none !important;
}
.top-strip .top-link:hover { text-decoration: underline !important; opacity: .9; }
.top-strip .top-detail-icon {
    display: block !important;
    width: 13px !important;
    height: 13px !important;
    flex: 0 0 13px;
    fill: currentColor !important;
    stroke: none !important;
}
.top-strip .top-detail-whatsapp {
    width: 14px !important;
    height: 14px !important;
}
.top-strip .top-detail-gap { display: inline-flex !important; }

@media (max-width: 767.98px) {
    .top-strip { padding-top: 8px !important; padding-bottom: 8px !important; }
    .top-strip .top-contact-actions { justify-content: flex-start; }
    .top-strip .top-action { min-height: 34px; padding: 7px 12px !important; font-size: .82rem; }
    .top-strip .top-contact-details {
        justify-content: flex-start;
        gap: 8px 14px;
        margin-top: 4px;
        font-size: .68rem;
        white-space: normal;
    }
}

/* =========================================================
   Responsive front-end header and mega-menu fix
   ========================================================= */

/* Prevent every page element from creating viewport overflow */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Keep Bootstrap containers inside the viewport */
.container,
.container-fluid {
    max-width: 100%;
}

/* ---------------------------------------------------------
   Brand row
   --------------------------------------------------------- */

.brand-row {
    width: 100%;
    overflow: visible;
}

.brand-row > .container {
    min-width: 0;
}

.navbar-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    max-width: 70%;
    text-decoration: none;
    line-height: 1;
}

.navbar-brand img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 42px;
    object-fit: contain;
}

.brand-tagline {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 3px;
    line-height: 1.15;
}

.brand-site-name {
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #2167d5;
    white-space: nowrap;
}

.brand-slogan {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #6c757d;
    white-space: nowrap;
}

.brand-row-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
}

.brand-row-actions .btn {
    white-space: nowrap;
}

/* ---------------------------------------------------------
   Main navbar
   --------------------------------------------------------- */

.navbar-default {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.navbar-default > .container {
    min-width: 0;
}

.navbar-default .navbar-collapse {
    min-width: 0;
}

.navbar-default .navbar-nav {
    min-width: 0;
}

.navbar-default .nav-item {
    min-width: 0;
}

.navbar-default .nav-link {
    white-space: nowrap;
}

/* Prevent mega menus from causing page-level overflow */
.dropdown-mega {
    max-width: calc(100vw - 24px);
}

.dropdown-mega-row {
    max-width: 100%;
}

.dropdown-mega-col {
    min-width: 0;
}

.dropdown-mega-col .dropdown-item {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* ---------------------------------------------------------
   Desktop mega-menu sizing
   --------------------------------------------------------- */

@media (min-width: 992px) {
    .dropdown-mega-cols-1 {
        width: 250px;
    }

    .dropdown-mega-cols-2 {
        width: 520px;
    }

    .dropdown-mega-cols-3 {
        width: 780px;
    }

    .dropdown-mega-row {
        display: grid;
        grid-template-columns: repeat(var(--mega-columns, 1), minmax(0, 1fr));
    }

    .dropdown-mega-cols-1 .dropdown-mega-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .dropdown-mega-cols-2 .dropdown-mega-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .dropdown-mega-cols-3 .dropdown-mega-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dropdown-mega-col {
        min-width: 0;
    }
}

/* ---------------------------------------------------------
   Tablet and mobile layout
   --------------------------------------------------------- */

@media (max-width: 991.98px) {
    html,
    body {
        overflow-x: hidden;
    }

    .top-strip {
        width: 100%;
        overflow: hidden;
    }

    .top-contact-details {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px 14px;
        text-align: left !important;
    }

    .top-detail-gap {
        margin-left: 0 !important;
    }

    .brand-row {
        padding: 10px 15px;
    }

    .brand-row > .container {
        width: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .navbar-brand {
        max-width: calc(100% - 58px);
    }

    .navbar-brand img {
        max-height: 38px;
    }

    .brand-site-name {
        font-size: 13px;
    }

    .brand-slogan {
        font-size: 10px;
    }

    .navbar-toggler {
        flex: 0 0 auto;
        width: 46px;
        height: 46px;
        padding: 8px;
        margin-left: 12px;
    }

    .navbar-default {
        padding: 0 !important;
    }

    .navbar-default > .container {
        width: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .navbar-default .navbar-collapse {
        width: 100%;
        max-height: calc(100vh - 150px);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 8px 15px 18px;
        -webkit-overflow-scrolling: touch;
    }

    .navbar-default .navbar-nav {
        width: 100%;
        margin: 0 !important;
    }

    .navbar-default .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(15, 45, 75, 0.1);
    }

    .navbar-default .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        padding: 12px 4px;
        white-space: normal;
    }

    /* Bootstrap dropdowns become inline accordion-style panels */
    .navbar-default .dropdown-menu,
    .navbar-default .dropdown-mega,
    .navbar-default .dropdown-mega.dropdown-menu {
        position: static !important;
        float: none !important;
        display: none;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 8px 0 12px 12px !important;
        transform: none !important;
        border: 0 !important;
        border-left: 2px solid rgba(33, 103, 213, 0.2) !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .navbar-default .dropdown.show > .dropdown-menu,
    .navbar-default .dropdown-menu.show,
    .navbar-default .dropdown-mega.show {
        display: block;
    }

    .dropdown-mega-row {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        gap: 0;
    }

    .dropdown-mega-col {
        width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
    }

    .dropdown-mega-col--overview {
        padding-bottom: 8px !important;
    }

    .dropdown-mega-title {
        margin: 5px 0 7px;
        font-size: 13px;
    }

    .dropdown-mega .dropdown-item {
        display: block;
        width: 100%;
        min-height: 42px;
        padding: 10px 8px !important;
        white-space: normal;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .dropdown-mega-apply {
        display: block;
        width: 100%;
        margin-top: 8px;
    }

    .mt-3.d-grid.d-lg-none {
        width: 100%;
        margin-top: 12px !important;
    }

    /* The last-menu desktop positioning must not affect mobile */
    .dropdown-mega-end {
        right: auto !important;
        left: auto !important;
    }

    /* Mobile action buttons */
    .brand-row-actions {
        display: none !important;
    }

    .floating-contact-btns {
        right: 12px;
        bottom: 16px;
    }
}

/* ---------------------------------------------------------
   Small phones
   --------------------------------------------------------- */

@media (max-width: 575.98px) {
    .top-strip {
        padding-left: 10px;
        padding-right: 10px;
    }

    .top-contact-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
    }

    .top-action {
        min-height: 38px;
        padding: 8px 13px;
        font-size: 12px;
    }

    .top-contact-details {
        font-size: 11px;
        line-height: 1.4;
    }

    .brand-row {
        padding: 8px 12px;
    }

    .navbar-brand {
        max-width: calc(100% - 55px);
    }

    .navbar-brand img {
        max-height: 34px;
    }

    .brand-tagline {
        margin-top: 5px;
        gap: 2px;
    }

    .brand-site-name {
        font-size: 12px;
    }

    .brand-slogan {
        font-size: 9px;
    }

    .navbar-default .navbar-collapse {
        max-height: calc(100vh - 125px);
        padding-left: 12px;
        padding-right: 12px;
    }

    .navbar-default .nav-link {
        font-size: 14px;
    }

    .dropdown-mega .dropdown-item {
        font-size: 13px;
    }
}

/* ---------------------------------------------------------
   Accessibility and touch behavior
   --------------------------------------------------------- */

.navbar-default .nav-link,
.dropdown-mega .dropdown-item,
.brand-row-actions .btn,
.navbar-toggler {
    -webkit-tap-highlight-color: transparent;
}

.navbar-default .nav-link:focus-visible,
.dropdown-mega .dropdown-item:focus-visible,
.navbar-toggler:focus-visible {
    outline: 2px solid #2167d5;
    outline-offset: 2px;
}