/* ==========================================================
   REDKNOT GLOBAL HEADER — SHARED ACROSS ALL WEBSITE PAGES
   Reference: Poland Work Visa page header
   ========================================================== */

:root {
    --redknot-red: #ed0010;
    --redknot-blue: #073f91;
    --redknot-nav-blue: #083b91;
}

/* Top information bar */
body > .top-bar {
    width: 100% !important;
    height: 74px !important;
    min-height: 74px !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    background: var(--redknot-blue) !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 17px !important;
    line-height: 1.3 !important;
}

body > .top-bar .top-left {
    flex: 0 0 56.3% !important;
    width: 56.3% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    padding: 0 32px !important;
    box-sizing: border-box !important;
    background: var(--redknot-red) !important;
}

body > .top-bar .top-left span {
    flex: 0 1 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    white-space: nowrap !important;
}

body > .top-bar .top-left span:nth-child(2) {
    justify-content: center !important;
}

body > .top-bar .top-left span:nth-child(3) {
    justify-content: flex-end !important;
}

body > .top-bar .top-left i {
    flex: 0 0 auto !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

body > .top-bar .top-right {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 0 14px 0 22px !important;
    box-sizing: border-box !important;
    background: var(--redknot-blue) !important;
}

body > .top-bar .social-icons {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 17px !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}

body > .top-bar .social-icons a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 19px !important;
    line-height: 1 !important;
}

body > .top-bar .search-box {
    flex: 0 1 308px !important;
    width: 308px !important;
    min-width: 150px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 4px 8px 4px 18px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border-radius: 30px !important;
}

body > .top-bar .search-box input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #333 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 15px !important;
}

body > .top-bar .search-box button {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #fff !important;
    color: var(--redknot-blue) !important;
    font-size: 17px !important;
    cursor: pointer !important;
}

body > .top-bar .appointment-btn {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 24px !important;
    border: 0 !important;
    border-radius: 30px !important;
    background: #ef1b23 !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

/* Main navigation row */
body > header {
    position: relative !important;
    z-index: 1000 !important;
    width: 100% !important;
    height: 107px !important;
    min-height: 107px !important;
    margin: 0 !important;
    padding: 0 3.5% !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.08) !important;
}

body > header .logo-box {
    flex: 0 0 300px !important;
    width: 300px !important;
    min-width: 0 !important;
    max-width: 300px !important;
    height: 92px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

body > header .logo-box img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: 86px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
}

body > header .navbar {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
}

body > header .navbar > ul,
body > header .navbar ul.nav-links {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: clamp(10px, 1.05vw, 20px) !important;
    list-style: none !important;
}

body > header .navbar ul.nav-links > li {
    position: relative !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

body > header .navbar ul.nav-links > li > a {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 12px 0 !important;
    color: var(--redknot-nav-blue) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: color .2s ease !important;
}

body > header .navbar ul.nav-links > li > a:hover,
body > header .navbar ul.nav-links > li > a.active {
    color: var(--redknot-red) !important;
}

body > header .navbar ul.nav-links > li > a.active::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    bottom: -7px !important;
    width: 100% !important;
    height: 4px !important;
    border-radius: 8px !important;
    background: var(--redknot-red) !important;
}

body > header .navbar ul.nav-links > li > a > i {
    margin-left: 2px !important;
    font-size: 12px !important;
    line-height: 1 !important;
}

body > header .navbar .dropdown-menu,
body > header .navbar .work-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 1100 !important;
    min-width: 250px !important;
    margin: 0 !important;
    padding: 9px 0 !important;
    display: none !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 14px 32px rgba(0,0,0,.14) !important;
    list-style: none !important;
}

body > header .navbar .dropdown:hover > .dropdown-menu,
body > header .navbar .dropdown:focus-within > .dropdown-menu,
body > header .navbar .work-dropdown:hover > .work-menu,
body > header .navbar .work-dropdown:focus-within > .work-menu {
    display: block !important;
}

body > header .navbar .dropdown-menu li,
body > header .navbar .work-menu li {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body > header .navbar .dropdown-menu li a,
body > header .navbar .work-menu li a {
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 12px 20px !important;
    color: var(--redknot-nav-blue) !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    white-space: normal !important;
}

body > header .navbar .dropdown-menu li a:hover,
body > header .navbar .work-menu li a:hover {
    padding-left: 25px !important;
    background: #f8fbff !important;
    color: var(--redknot-red) !important;
}

body > header .phone-btn {
    flex: 0 0 auto !important;
    min-height: 53px !important;
    margin: 0 !important;
    padding: 0 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    border: 0 !important;
    border-radius: 40px !important;
    background: #ef1b23 !important;
    color: #fff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

body > header .phone-btn i {
    font-size: 17px !important;
    line-height: 1 !important;
}

body > header .mobile-menu-toggle {
    display: none !important;
}

/* Medium desktop widths: retain the same look without squeezing */
@media (max-width: 1600px) and (min-width: 1101px) {
    body > header {
        padding-left: 28px !important;
        padding-right: 28px !important;
        gap: 16px !important;
    }

    body > header .logo-box {
        flex-basis: 250px !important;
        width: 250px !important;
        max-width: 250px !important;
    }

    body > header .navbar ul.nav-links {
        gap: clamp(7px, .7vw, 12px) !important;
    }

    body > header .navbar ul.nav-links > li > a {
        font-size: 15px !important;
    }

    body > header .phone-btn {
        min-height: 48px !important;
        padding: 0 18px !important;
        font-size: 15px !important;
    }

    body > .top-bar .top-left {
        padding-left: 22px !important;
        padding-right: 22px !important;
        gap: 12px !important;
    }

    body > .top-bar .top-left span {
        font-size: 15px !important;
    }

    body > .top-bar .top-right {
        gap: 10px !important;
        padding-left: 14px !important;
        padding-right: 12px !important;
    }

    body > .top-bar .search-box {
        flex-basis: 220px !important;
        width: 220px !important;
    }

    body > .top-bar .appointment-btn {
        padding: 0 16px !important;
        font-size: 13px !important;
    }
}

/* Tablet and mobile: keep a consistent stacked header across all pages */
@media (max-width: 1100px) {
    body > .top-bar {
        height: auto !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    body > .top-bar .top-left,
    body > .top-bar .top-right {
        width: 100% !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 12px 20px !important;
        padding: 12px 18px !important;
    }

    body > .top-bar .top-left span {
        flex: 0 1 auto !important;
        justify-content: center !important;
        font-size: 14px !important;
        white-space: normal !important;
    }

    body > .top-bar .top-left span:nth-child(2),
    body > .top-bar .top-left span:nth-child(3) {
        justify-content: center !important;
    }

    body > .top-bar .top-right {
        display: flex !important;
    }

    body > .top-bar .search-box {
        flex: 0 1 240px !important;
        width: 240px !important;
        min-width: 150px !important;
    }

    body > header {
        height: auto !important;
        min-height: 90px !important;
        padding: 12px 22px !important;
        flex-wrap: wrap !important;
        gap: 10px 18px !important;
    }

    body > header .logo-box {
        flex: 0 1 220px !important;
        width: 220px !important;
        max-width: 220px !important;
        height: 68px !important;
    }

    body > header .logo-box img {
        max-height: 66px !important;
    }

    body > header .mobile-menu-toggle {
        display: none !important;
    }

    body > header .navbar {
        order: 3 !important;
        flex: 1 1 100% !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        padding: 5px 0 !important;
    }

    body > header .navbar ul.nav-links {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 7px 20px !important;
    }

    body > header .navbar ul.nav-links > li > a {
        padding: 8px 0 !important;
        font-size: 14px !important;
    }

    body > header .phone-btn {
        margin-left: auto !important;
        min-height: 44px !important;
        padding: 0 17px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 600px) {
    body > .top-bar .top-left {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 12px 16px !important;
    }

    body > .top-bar .top-left span {
        justify-content: flex-start !important;
        font-size: 13px !important;
    }

    body > .top-bar .top-left span:nth-child(2),
    body > .top-bar .top-left span:nth-child(3) {
        justify-content: flex-start !important;
    }

    body > .top-bar .top-right {
        justify-content: center !important;
        gap: 12px !important;
        padding: 10px 14px !important;
    }

    body > .top-bar .search-box {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body > .top-bar .appointment-btn {
        min-height: 42px !important;
        padding: 0 16px !important;
        font-size: 13px !important;
    }

    body > header {
        padding: 10px 15px !important;
        gap: 8px 12px !important;
    }

    body > header .logo-box {
        flex-basis: 165px !important;
        width: 165px !important;
        max-width: 165px !important;
        height: 58px !important;
    }

    body > header .logo-box img {
        max-height: 56px !important;
    }

    body > header .phone-btn {
        min-height: 40px !important;
        padding: 0 12px !important;
        gap: 6px !important;
        font-size: 12px !important;
    }

    body > header .phone-btn i {
        font-size: 13px !important;
    }

    body > header .navbar ul.nav-links {
        gap: 6px 14px !important;
    }

    body > header .navbar ul.nav-links > li > a {
        font-size: 13px !important;
    }
}


/* ==========================================================
   MOBILE HEADER: logo + hamburger + circular call action
   Shared by every page through header-common.css
   ========================================================== */
@media (max-width: 767px) {
  body > header {
    position: relative !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    height: 82px !important;
    min-height: 82px !important;
    padding: 9px 16px !important;
    background: #fff !important;
  }

  body > header .logo-box {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: 205px !important;
    min-width: 0 !important;
    height: 62px !important;
    margin: 0 auto 0 0 !important;
  }
  body > header .logo-box img {
    display: block !important;
    width: 100% !important;
    max-width: 205px !important;
    max-height: 60px !important;
    object-fit: contain !important;
  }

  body > header .mobile-menu-toggle {
    order: 2 !important;
    flex: 0 0 50px !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 4px 0 auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: #ed0010 !important;
    color: #fff !important;
    font-size: 22px !important;
    line-height: 1 !important;
    cursor: pointer !important;
  }
  body > header .mobile-menu-toggle i { color: #fff !important; }

  body > header .phone-btn {
    order: 3 !important;
    flex: 0 0 50px !important;
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
    min-height: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: #ed0010 !important;
    color: #fff !important;
    font-size: 0 !important;
    line-height: 1 !important;
  }
  body > header .phone-btn i {
    display: inline-block !important;
    margin: 0 !important;
    color: #fff !important;
    font-size: 19px !important;
  }

  body > header .navbar {
    order: 4 !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1100 !important;
    display: none !important;
    width: 100% !important;
    max-height: calc(100vh - 90px) !important;
    overflow-y: auto !important;
    padding: 12px 18px 18px !important;
    background: #fff !important;
    box-shadow: 0 12px 24px rgba(0,0,0,.14) !important;
  }
  body > header.menu-open .navbar,
  body > header .navbar.mobile-open,
  body > header .navbar.is-open { display: block !important; }
  body > header .navbar ul.nav-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    width: 100% !important;
  }
  body > header .navbar ul.nav-links > li {
    width: 100% !important;
    border-bottom: 1px solid #edf0f5 !important;
  }
  body > header .navbar ul.nav-links > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 13px 4px !important;
    font-size: 15px !important;
  }
  body > header .navbar .dropdown-menu,
  body > header .navbar .work-menu {
    position: static !important;
    display: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 0 8px 12px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #f8fbff !important;
  }
  body > header .navbar .dropdown:hover > .dropdown-menu,
  body > header .navbar .dropdown:focus-within > .dropdown-menu,
  body > header .navbar .work-dropdown:hover > .work-menu {
    display: block !important;
  }
  body > header .navbar .dropdown-menu li a,
  body > header .navbar .work-menu li a {
    padding: 10px 14px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 767px) {
  body > header .mobile-menu-toggle { display: inline-flex !important; visibility: visible !important; opacity: 1 !important; }
  body > header .navbar.mobile-open,
  body > header .navbar.is-open,
  body > header.menu-open .navbar { display: block !important; }
}

@media (min-width: 768px) {
  body > header .mobile-menu-toggle { display: none !important; }
}


/* ===== REDKNOT FINAL SHARED MOBILE NAVIGATION OVERRIDES ===== */
@media (max-width: 767px) {
  body > header {
    position: relative !important;
    z-index: 5000 !important;
    overflow: visible !important;
  }
  body > header .mobile-menu-toggle {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 0 0 46px !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    align-items: center !important;
    justify-content: center !important;
    order: 2 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #ed0010 !important;
    color: #fff !important;
    cursor: pointer !important;
  }
  body > header .phone-btn {
    order: 3 !important;
  }
  body > header #redknot-navigation {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 6000 !important;
    width: 100% !important;
    max-height: calc(100dvh - 110px) !important;
    overflow-y: auto !important;
    padding: 8px 16px 18px !important;
    background: #fff !important;
    box-shadow: 0 12px 24px rgba(0,0,0,.16) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  body > header.menu-open #redknot-navigation,
  body > header #redknot-navigation.mobile-open,
  body > header #redknot-navigation.is-open {
    display: block !important;
  }
  body > header #redknot-navigation .nav-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body > header #redknot-navigation .nav-links > li {
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid #edf0f5 !important;
  }
  body > header #redknot-navigation .nav-links > li > a {
    display: flex !important;
    width: 100% !important;
    min-height: 44px !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 4px !important;
    color: #083b91 !important;
    font-size: 14px !important;
    text-decoration: none !important;
  }
  body > header #redknot-navigation .nav-links > li > a::after {
    display: none !important;
    content: none !important;
  }
  body > header #redknot-navigation .dropdown-menu,
  body > header #redknot-navigation .work-menu {
    display: none !important;
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 4px 0 8px 12px !important;
    background: #f8fbff !important;
    box-shadow: none !important;
  }
  body > header #redknot-navigation li.mobile-dropdown-open > .dropdown-menu,
  body > header #redknot-navigation li.mobile-dropdown-open > .work-menu {
    display: block !important;
  }
  body > header #redknot-navigation .dropdown-menu li,
  body > header #redknot-navigation .work-menu li {
    display: block !important;
    width: 100% !important;
  }
  body > header #redknot-navigation .dropdown-menu li a,
  body > header #redknot-navigation .work-menu li a {
    display: block !important;
    padding: 10px 12px !important;
    color: #083b91 !important;
    font-size: 13px !important;
  }
}
@media (min-width: 768px) {
  body > header .mobile-menu-toggle { display: none !important; }
  body > header #redknot-navigation { display: flex !important; }
}


/* FINAL MOBILE NAVIGATION PATCH - all destination pages */
@media (max-width: 767px) {
  body > header { position: relative !important; z-index: 5000 !important; overflow: visible !important; }
  body > header .mobile-menu-toggle {
    display: inline-flex !important; visibility: visible !important; opacity: 1 !important;
    align-items: center !important; justify-content: center !important;
    flex: 0 0 46px !important; width: 46px !important; height: 46px !important;
    min-width: 46px !important; order: 2 !important; margin-left: auto !important;
    border: 0 !important; border-radius: 10px !important;
    background: #ed0010 !important; color: #fff !important; cursor: pointer !important;
  }
  body > header .phone-btn { order: 3 !important; }
  body > header #redknot-navigation {
    display: none !important; position: absolute !important; top: 100% !important;
    left: 0 !important; right: 0 !important; z-index: 6000 !important;
    width: 100% !important; max-height: calc(100vh - 100px) !important;
    overflow-x: hidden !important; overflow-y: auto !important;
    padding: 8px 16px 18px !important; margin: 0 !important;
    background: #fff !important; box-shadow: 0 12px 24px rgba(0,0,0,.16) !important;
    visibility: visible !important; opacity: 1 !important; pointer-events: auto !important;
  }
  body > header.menu-open #redknot-navigation,
  body > header #redknot-navigation.mobile-open,
  body > header #redknot-navigation.is-open { display: block !important; }
  body > header #redknot-navigation .nav-links {
    display: flex !important; flex-direction: column !important;
    align-items: stretch !important; justify-content: flex-start !important;
    flex-wrap: nowrap !important; gap: 0 !important; width: 100% !important;
    margin: 0 !important; padding: 0 !important; list-style: none !important;
  }
  body > header #redknot-navigation .nav-links > li {
    display: block !important; width: 100% !important; margin: 0 !important;
    border-bottom: 1px solid #edf0f5 !important;
  }
  body > header #redknot-navigation .nav-links > li > a {
    display: flex !important; align-items: center !important;
    justify-content: space-between !important; width: 100% !important;
    min-height: 44px !important; padding: 12px 4px !important;
    color: #083b91 !important; background: transparent !important;
    font-size: 14px !important; text-decoration: none !important;
  }
  body > header #redknot-navigation .nav-links > li > a::after,
  body > header #redknot-navigation .nav-links > li:hover > a::after,
  body > header #redknot-navigation .nav-links > li.active > a::after {
    content: none !important; display: none !important; width: 0 !important;
    height: 0 !important; background: transparent !important;
  }
  body > header #redknot-navigation .dropdown-menu,
  body > header #redknot-navigation .work-menu {
    display: none !important; position: static !important; inset: auto !important;
    width: 100% !important; min-width: 0 !important; margin: 0 !important;
    padding: 4px 0 8px 12px !important; border: 0 !important;
    border-radius: 0 !important; background: #f8fbff !important;
    box-shadow: none !important; transform: none !important;
  }
  body > header #redknot-navigation li.mobile-dropdown-open > .dropdown-menu,
  body > header #redknot-navigation li.mobile-dropdown-open > .work-menu {
    display: block !important; visibility: visible !important; opacity: 1 !important;
  }
  body > header #redknot-navigation .dropdown-menu li,
  body > header #redknot-navigation .work-menu li { display: block !important; width: 100% !important; }
  body > header #redknot-navigation .dropdown-menu li a,
  body > header #redknot-navigation .work-menu li a {
    display: block !important; width: 100% !important; padding: 10px 12px !important;
    color: #083b91 !important; font-size: 13px !important; white-space: normal !important;
  }
}
@media (min-width: 768px) {
  body > header .mobile-menu-toggle { display: none !important; }
  body > header #redknot-navigation { display: flex !important; }
}


/* MOBILE TOP CONTACT BAR: match the clean red-only reference header */
@media (max-width: 767px) {
  body > .top-bar {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 12px 18px !important;
    margin: 0 !important;
    background: #ed0010 !important;
    box-sizing: border-box !important;
  }
  body > .top-bar .top-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 7px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
  }
  body > .top-bar .top-left span,
  body > .top-bar .top-left span:nth-child(2),
  body > .top-bar .top-left span:nth-child(3) {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
  }
  body > .top-bar .top-left span i {
    flex: 0 0 22px !important;
    width: 22px !important;
    margin: 0 10px 0 0 !important;
    color: #fff !important;
    font-size: 19px !important;
    text-align: center !important;
  }
  body > .top-bar .top-right {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}


/* =========================================================
   REDKNOT CONSISTENT MOBILE HERO LAYOUT
   Uses the Australia PR mobile layout as the standard for
   Canada, Germany, Serbia, Poland, Bulgaria, Portugal,
   investment and other visa landing pages.
   Desktop styling is intentionally untouched.
========================================================= */
@media (max-width: 767px) {
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body > section[class$="-hero"]:not(.contact-hero) {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 26px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 36px 18px 38px !important;
    box-sizing: border-box !important;
    text-align: left !important;
    overflow: visible !important;
  }

  body > section[class$="-hero"]:not(.contact-hero) > div[class$="-left"],
  body > section[class$="-hero"]:not(.contact-hero) > .hero-content {
    display: flex !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }

  body > section[class$="-hero"]:not(.contact-hero) .hero-tag {
    display: inline-flex !important;
    align-self: flex-start !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin: 0 0 16px !important;
    padding: 11px 17px !important;
    border-radius: 40px !important;
    background: #ffecee !important;
    color: #d71920 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }

  body > section[class$="-hero"]:not(.contact-hero) h1 {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 16px !important;
    color: #083b91 !important;
    font-size: clamp(28px, 7.6vw, 36px) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.5px !important;
    text-align: left !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    box-sizing: border-box !important;
  }

  body > section[class$="-hero"]:not(.contact-hero) p {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 22px !important;
    color: #444 !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
    text-align: left !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  body > section[class$="-hero"]:not(.contact-hero) .hero-buttons {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  body > section[class$="-hero"]:not(.contact-hero) .hero-buttons a,
  body > section[class$="-hero"]:not(.contact-hero) .hero-buttons .btn-red,
  body > section[class$="-hero"]:not(.contact-hero) .hero-buttons .btn-white {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    border-radius: 28px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    text-align: center !important;
    white-space: normal !important;
    box-sizing: border-box !important;
  }

  body > section[class$="-hero"]:not(.contact-hero) > div[class$="-right"] {
    display: block !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  body > section[class$="-hero"]:not(.contact-hero) > div[class$="-right"] img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    border-radius: 22px !important;
  }

  /* Keep the following section from colliding with the hero image. */
  body > section[class$="-hero"]:not(.contact-hero) + section {
    margin-top: 0 !important;
  }

  /* Prevent wide cards, grids or tables from forcing the page sideways. */
  body > section:not([class$="-hero"]) {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}


/* ===== GLOBAL DESKTOP TOP BAR TYPOGRAPHY: MATCH WORK VISA PAGES ===== */
@media (min-width: 993px) {
  body > .top-bar .top-left span {
    font-family: 'Poppins', sans-serif !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
  }

  body > .top-bar .top-left span i {
    font-size: 22px !important;
  }

  body > .top-bar .top-right .social-icons a,
  body > .top-bar .top-right .social-icons i {
    font-size: 23px !important;
    line-height: 1 !important;
  }

  body > .top-bar .top-right .search-box input {
    font-family: 'Poppins', sans-serif !important;
    font-size: 17px !important;
    font-weight: 400 !important;
  }

  body > .top-bar .top-right .appointment-btn {
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
  }
}


/* ==========================================================
   REDKNOT GLOBAL DESKTOP TOP BAR — FIXED TYPOGRAPHY + GEOMETRY
   Same dimensions and font metrics on every page.
   ========================================================== */
@media (min-width: 1501px) {
  html { scrollbar-gutter: stable; }
  body > .top-bar {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: 92px !important;
    min-height: 92px !important;
    max-height: 92px !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    font-family: 'Poppins', sans-serif !important;
  }
  body > .top-bar > .top-left {
    display: grid !important;
    grid-template-columns: 23% 37% 40% !important;
    align-items: center !important;
    justify-content: stretch !important;
    flex: 0 0 56.2% !important;
    width: 56.2% !important;
    min-width: 0 !important;
    height: 92px !important;
    padding: 0 26px !important;
    margin: 0 !important;
    gap: 0 !important;
    box-sizing: border-box !important;
    background: #ed0010 !important;
  }
  body > .top-bar > .top-left > span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 10px !important;
    white-space: nowrap !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 19px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    color: #fff !important;
    box-sizing: border-box !important;
  }
  body > .top-bar > .top-left > span > i {
    display: inline-block !important;
    flex: 0 0 auto !important;
    width: 24px !important;
    margin: 0 !important;
    font-size: 23px !important;
    line-height: 1 !important;
    text-align: center !important;
  }
  body > .top-bar > .top-right {
    display: grid !important;
    grid-template-columns: 150px 280px 245px !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex: 0 0 43.8% !important;
    width: 43.8% !important;
    min-width: 0 !important;
    height: 92px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    gap: 0 !important;
    box-sizing: border-box !important;
    background: #10458f !important;
  }
  body > .top-bar > .top-right > .social-icons {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 150px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  body > .top-bar > .top-right > .social-icons a,
  body > .top-bar > .top-right > .social-icons a i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 23px !important;
    line-height: 1 !important;
    color: #fff !important;
  }
  body > .top-bar > .top-right > .search-box {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 280px !important;
    min-width: 0 !important;
    max-width: 280px !important;
    height: 56px !important;
    margin: 0 !important;
    padding: 0 18px 0 22px !important;
    border-radius: 32px !important;
    box-sizing: border-box !important;
  }
  body > .top-bar > .top-right > .search-box input {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
  }
  body > .top-bar > .top-right > .appointment-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 245px !important;
    min-width: 245px !important;
    max-width: 245px !important;
    height: 60px !important;
    min-height: 60px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border-radius: 32px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
  }
}

@media (min-width: 993px) and (max-width: 1500px) {
  html { scrollbar-gutter: stable; }
  body > .top-bar {
    display: flex !important;
    flex-flow: row nowrap !important;
    width: 100% !important;
    height: 82px !important;
    min-height: 82px !important;
    max-height: 82px !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    font-family: 'Poppins', sans-serif !important;
  }
  body > .top-bar > .top-left {
    display: grid !important;
    grid-template-columns: 23% 37% 40% !important;
    align-items: center !important;
    flex: 0 0 56.2% !important;
    width: 56.2% !important;
    min-width: 0 !important;
    height: 82px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    gap: 0 !important;
    box-sizing: border-box !important;
    background: #ed0010 !important;
  }
  body > .top-bar > .top-left > span {
    display: inline-flex !important;
    align-items: center !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 7px !important;
    white-space: nowrap !important;
    font: 600 15px/1.25 'Poppins', sans-serif !important;
    letter-spacing: 0 !important;
    color: #fff !important;
  }
  body > .top-bar > .top-left > span > i {
    flex: 0 0 auto !important;
    width: 19px !important;
    margin: 0 !important;
    font-size: 19px !important;
  }
  body > .top-bar > .top-right {
    display: grid !important;
    grid-template-columns: 105px minmax(145px, 1fr) 185px !important;
    align-items: center !important;
    flex: 0 0 43.8% !important;
    width: 43.8% !important;
    min-width: 0 !important;
    height: 82px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    background: #10458f !important;
  }
  body > .top-bar > .top-right > .social-icons {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 105px !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
  }
  body > .top-bar > .top-right > .social-icons a,
  body > .top-bar > .top-right > .social-icons a i {
    font-size: 20px !important;
    color: #fff !important;
  }
  body > .top-bar > .top-right > .search-box {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 12px 0 16px !important;
    border-radius: 26px !important;
    box-sizing: border-box !important;
  }
  body > .top-bar > .top-right > .search-box input {
    font: 400 15px/1 'Poppins', sans-serif !important;
  }
  body > .top-bar > .top-right > .appointment-btn {
    display: inline-flex !important;
    width: 185px !important;
    min-width: 185px !important;
    max-width: 185px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    font: 600 14px/1 'Poppins', sans-serif !important;
    white-space: nowrap !important;
  }
}


/* ===== COMPACT, NON-OVERLAPPING DESKTOP TOP BAR ===== */
@media (min-width: 1501px) {
  body > .top-bar {
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
  }
  body > .top-bar > .top-left {
    height: 72px !important;
    grid-template-columns: 24% 36% 40% !important;
    padding: 0 20px !important;
    column-gap: 8px !important;
  }
  body > .top-bar > .top-left > span {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    gap: 8px !important;
    letter-spacing: 0 !important;
  }
  body > .top-bar > .top-left > span > i {
    width: 20px !important;
    font-size: 19px !important;
  }
  body > .top-bar > .top-right {
    height: 72px !important;
    grid-template-columns: 125px minmax(170px, 1fr) 215px !important;
    padding: 0 14px !important;
    gap: 12px !important;
  }
  body > .top-bar > .top-right > .social-icons {
    width: 125px !important;
  }
  body > .top-bar > .top-right > .social-icons a,
  body > .top-bar > .top-right > .social-icons a i {
    font-size: 21px !important;
  }
  body > .top-bar > .top-right > .search-box {
    width: 100% !important;
    max-width: none !important;
    height: 46px !important;
  }
  body > .top-bar > .top-right > .search-box input {
    font-size: 15px !important;
  }
  body > .top-bar > .top-right > .appointment-btn {
    width: 215px !important;
    min-width: 215px !important;
    max-width: 215px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 12px !important;
    font-size: 15px !important;
  }
}

@media (min-width: 993px) and (max-width: 1500px) {
  body > .top-bar {
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
  }
  body > .top-bar > .top-left {
    height: 68px !important;
    grid-template-columns: 24% 36% 40% !important;
    padding: 0 14px !important;
    column-gap: 6px !important;
  }
  body > .top-bar > .top-left > span {
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    gap: 6px !important;
    letter-spacing: 0 !important;
  }
  body > .top-bar > .top-left > span > i {
    width: 17px !important;
    font-size: 16px !important;
  }
  body > .top-bar > .top-right {
    height: 68px !important;
    grid-template-columns: 95px minmax(125px, 1fr) 165px !important;
    padding: 0 8px !important;
    gap: 8px !important;
  }
  body > .top-bar > .top-right > .social-icons {
    width: 95px !important;
  }
  body > .top-bar > .top-right > .social-icons a,
  body > .top-bar > .top-right > .social-icons a i {
    font-size: 18px !important;
  }
  body > .top-bar > .top-right > .search-box {
    width: 100% !important;
    max-width: none !important;
    height: 42px !important;
  }
  body > .top-bar > .top-right > .search-box input {
    font-size: 13px !important;
  }
  body > .top-bar > .top-right > .appointment-btn {
    width: 165px !important;
    min-width: 165px !important;
    max-width: 165px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }
}


/* ===== FINAL SHARED DESKTOP HEADER DIMENSIONS ===== */
@media (min-width: 1201px) {
  body > .top-bar,
  body > .top-bar > .top-left,
  body > .top-bar > .top-right {
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    box-sizing: border-box !important;
  }

  body > .top-bar {
    overflow: hidden !important;
  }

  body > .top-bar > .top-left {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body > .top-bar > .top-left > span {
    font-size: 13px !important;
    line-height: 1.15 !important;
  }

  body > .top-bar > .top-left > span > i {
    font-size: 17px !important;
  }

  body > .top-bar > .top-right {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body > .top-bar > .top-right > .social-icons a,
  body > .top-bar > .top-right > .social-icons a i {
    font-size: 18px !important;
  }

  body > .top-bar > .top-right > .search-box {
    height: 38px !important;
    min-height: 38px !important;
  }

  body > .top-bar > .top-right > .search-box input {
    font-size: 13px !important;
  }

  body > .top-bar > .top-right > .appointment-btn {
    height: 38px !important;
    min-height: 38px !important;
    font-size: 13px !important;
  }

  /* Same phone button width and height on every desktop page. */
  body > header .phone-btn {
    display: inline-flex !important;
    flex: 0 0 230px !important;
    width: 230px !important;
    min-width: 230px !important;
    max-width: 230px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    gap: 9px !important;
    border-radius: 28px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body > header .phone-btn i {
    flex: 0 0 auto !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }
}

@media (min-width: 993px) and (max-width: 1200px) {
  body > .top-bar,
  body > .top-bar > .top-left,
  body > .top-bar > .top-right {
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    box-sizing: border-box !important;
  }

  body > .top-bar > .top-left > span {
    font-size: 11px !important;
    line-height: 1.1 !important;
  }

  body > .top-bar > .top-left > span > i {
    font-size: 15px !important;
  }

  body > .top-bar > .top-right > .search-box {
    height: 36px !important;
  }

  body > .top-bar > .top-right > .appointment-btn {
    height: 36px !important;
    min-height: 36px !important;
    font-size: 11px !important;
  }

  body > header .phone-btn {
    display: inline-flex !important;
    flex: 0 0 190px !important;
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    gap: 7px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body > header .phone-btn i {
    font-size: 14px !important;
  }
}
