.utility-bar {
    background: #06294f;
    color: #fff;
    font-size: .78rem
}

.utility-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.utility-trust {
    display: flex;
    gap: 20px;
    opacity: .92
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #edf0f5;
    font-family: 'Cairo', sans-serif;
    height: auto;
    flex-shrink: 0;
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 20px
}

.brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto
}

.brand img {
    width: 150px;
    height: auto
}

.header-search {
    flex: 1;
    position: relative
}

.header-search input {
    width: 100%;
    height: 46px;
    background: #f5f7fa;
    border: 1px solid transparent;
    border-radius: 23px;
    padding: 0 20px 0 46px;
    outline: 0;
    font-size: .9rem;
    transition: background 200ms ease, border-color 200ms ease
}

.header-search input:focus {
    background: #fff;
    border-color: #b4cbf0;
    box-shadow: 0 0 0 4px #eef3fc
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    margin-right: auto;
}

.main-nav a {
    transition: color 180ms ease;
    color: var(--navy, #071a3d);
    text-decoration: none;
}

.main-nav a:hover {
    color: var(--red, #ef233c)
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px
}

.icon-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    border-radius: 50%;
    font-size: 1.2rem;
    position: relative;
    color: inherit;
    text-decoration: none;
}

.icon-button:hover {
    background: #f5f7fa
}

.icon-button b {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--red, #ef233c);
    color: #fff;
    font-size: .65rem;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    font-weight: 800;
    border: 2px solid #fff
}

.mobile-menu, .mobile-search-wrap {
    display: none
}

.btn-v2 {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border-radius: 10px;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    text-decoration: none;
}

.btn-v2:hover {
    transform: translateY(-1px);
    color: inherit;
}

.btn-primary-v2 {
    background: linear-gradient(135deg, #ff304f, #ef233c);
    color: #fff;
    box-shadow: 0 6px 18px rgba(239, 35, 60, .22)
}

.btn-primary-v2:hover {
    background: #cc1530;
    color: #fff;
}

.btn-ghost-v2 {
    background: #fff;
    border-color: #ef233c;
    color: #ef233c
}

.btn-ghost-v2:hover {
    background: #f5f7fa;
}

.btn-sm-v2 {
    min-height: 40px;
    padding-inline: 17px
}

@media (max-width: 991px) {

    .header-search {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        position: absolute !important;
        pointer-events: none !important;
    }

    .main-nav {
        position: fixed;
        inset: 62px 0 auto 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        padding: 14px 20px 20px;
        box-shadow: 0 14px 36px rgba(8, 31, 65, .12);
        transform: translateY(-140%);
        opacity: 0;
        pointer-events: none;
        transition: transform 220ms ease, opacity 220ms ease
    }

    .main-nav.is-open {
        transform: none;
        opacity: 1;
        pointer-events: auto
    }

    .main-nav a {
        padding: 13px 0;
        border-bottom: 1px solid #eef1f5
    }

    .mobile-menu {
        display: grid;
        gap: 4px;
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 10px;
        background: #f7f9fc;
        padding: 12px
    }

    .mobile-menu span {
        height: 2px;
        background: #253954;
        border-radius: 9px
    }

    .mobile-search-wrap {
        display: block;
        padding-bottom: 10px
    }

    .mobile-search {
        display: flex;
        border: 1px solid #dce4ee;
        border-radius: 10px;
        overflow: hidden;
        height: 42px
    }

    .mobile-search input {
        flex: 1;
        min-width: 0;
        border: 0;
        padding: 0 12px;
        outline: 0
    }

    .mobile-search button {
        border: 0;
        background: #071a3d;
        color: #fff;
        padding: 0 14px;
        font-weight: 800
    }

    .header-actions .btn-v2,
    .header-actions .btn-ghost-v2,
    .header-actions .btn-primary-v2,
    .header-actions .btn-sm-v2 {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        pointer-events: none !important;
        opacity: 0 !important;
    }

    .header-actions a[href*="login"],
    .header-actions a[href*="register"],
    .header-actions a[href*="dashboard"] {
        display: none !important;
        visibility: hidden !important;
    }

    .header-actions {
        gap: 15px;
    }

    .header-actions .icon-button {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .icon-button b {
        min-width: 16px;
        height: 16px;
        font-size: 0.6rem;
        top: 2px;
        right: 2px;
    }

    .brand {
        margin-right: auto
    }

    .brand img {
        width: 118px
    }

    .header-inner {
        height: 62px
    }

    .utility-bar {
        display: none
    }

    .mobile-auth-buttons {
        display: none !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }

    .footer-brand, .footer-connect {
        grid-column: 1 / -1;
    }
}

/* Custom Header Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 10px 25px rgba(8, 31, 65, 0.12);
    border-radius: 10px;
    padding: 8px 0;
    margin-top: 10px;
    list-style: none;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    border: 1px solid #edf0f5;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.nav-dropdown-menu li {
    margin: 0;
    padding: 0;
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 10px 20px !important;
    color: #071a3d !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom: none !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-menu a:hover {
    background: #f5f7fa;
    color: #ef233c !important;
}

/* Dynamic Active States & Nav Icons */
.active-nav-link {
    color: #ef233c !important;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.active-nav-link i {
    color: #ef233c !important;
    margin-right: 6px;
    font-size: 1.1em;
}

.inactive-nav-link {
    color: #071a3d !important;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.inactive-nav-link i {
    margin-right: 6px;
    font-size: 1.1em;
    opacity: 0.5;
    color: #071a3d;
}

.inactive-nav-link:hover {
    color: #ef233c !important;
}

.inactive-nav-link:hover i {
    color: #ef233c !important;
    opacity: 0.8;
}

/* Redesigned Search Bar matches screenshot */
.header-search {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 550px;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

.header-search input {
    height: 46px;
    background: #f5f7fa;
    border: 1px solid #edf0f5;
    border-radius: 23px 0 0 23px;
    padding: 0 20px;
    outline: 0;
    font-size: .9rem;
    border-right: none;
    transition: background 200ms ease;
}

.header-search input:focus {
    background: #fff;
    box-shadow: 0 0 0 3px #eef3fc;
}

.search-submit-btn {
    background: #071a3d !important;
    color: #fff !important;
    width: 50px;
    height: 46px;
    border-radius: 0 23px 23px 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 200ms ease;
    position: static !important;
    transform: none !important;
}

.search-submit-btn:hover {
    background: #0a2b57 !important;
}

/* Independent Navigation Container */
.nav-container {
    width: min(calc(100% - 32px), 1500px);
    margin-inline: auto;
}

@media (min-width: 1600px) {
    .nav-container {
        width: min(calc(100% - 32px), 1650px);
    }
}

/* Footer V2 Styles for Global Use */
.site-footer {
    background: #052c56;
    color: #fff;
    padding: 40px 0 30px;
    font-family: 'Cairo', sans-serif;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(4, 0.65fr) 1.4fr;
    gap: 26px;
}

.site-footer h3 {
    font-size: 1.1rem;
    margin: 0 0 12px;
    font-weight: 700;
    color: #fff;
}

.site-footer a {
    display: block;
    color: #c9d6e5;
    font-size: 0.95rem;
    margin: 8px 0;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.footer-brand img {
    filter: brightness(0) invert(1);
    width: 150px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: #d4dfec;
    margin-top: 10px;
}

.footer-brand small {
    font-size: 0.75rem;
    color: #9eb2c9;
    display: block;
    margin-top: 15px;
}

.social-row {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.social-row a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: #052c56;
    font-weight: 900;
    text-decoration: none;
    margin: 0;
    font-size: 0.9rem;
}

.social-row a:hover {
    transform: translateY(-2px);
}

.app-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.app-badges span {
    background: #05080d;
    border: 1px solid #5d6d80;
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 0.8rem;
    cursor: pointer;
}

.secure-pay {
    font-size: 0.8rem;
    color: #b6c7da;
    margin-top: 10px;
}

@media (max-width: 575px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .footer-brand,
    .footer-connect {
        grid-column: 1 / -1;
    }
}

/* Force search input placeholders to be straight (normal font-style) */
.header-search input:placeholder-shown {
    font-style: normal !important;
}

.header-search input::-webkit-input-placeholder {
    font-style: normal !important;
}

.header-search input:-moz-placeholder {
    font-style: normal !important;
}

.header-search input::-moz-placeholder {
    font-style: normal !important;
}

.header-search input:-ms-input-placeholder {
    font-style: normal !important;
}

.header-search input::placeholder {
    font-style: normal !important;
}

/* Bulletproof Nav Font Sizes */
.main-nav a.active-nav-link,
.main-nav a.inactive-nav-link {
    font-size: 15px !important;
}

.main-nav a.active-nav-link i,
.main-nav a.inactive-nav-link i {
    font-size: 16px !important;
}

.nav-dropdown-menu a {
    font-size: 14px !important;
}

.utility-bar {
    font-size: 13px !important;
}

@media (max-width: 767px) {
    .mobile-auth-buttons {
        display: flex !important;
        flex-direction: column;
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid #eef1f5;
        gap: 10px;
    }

    .mobile-auth-buttons .btn-v2 {
        min-height: 40px;
        font-size: 0.85rem !important;
        padding: 0 16px !important;
        font-weight: 700 !important;
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .mobile-auth-buttons .btn-ghost-v2 {
        background: #fff;
        border: 1px solid #d5dce5;
        color: var(--navy);
    }

    .mobile-auth-buttons .btn-ghost-v2:hover {
        background: #f5f7fa;
    }

    .mobile-auth-buttons .btn-primary-v2 {
        color: #fff;
    }

    .mobile-auth-buttons .btn-primary-v2:hover {
        background: #cc1530;
    }

    .header-actions .icon-button {
        display: grid;
    }

    .header-search {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        position: absolute !important;
    }

    .mobile-search-wrap {
        display: block !important;
    }
}

/* Force hide login/signup buttons on tablet/desktop menu */
@media (max-width: 1199px) {
    .header-actions .btn-v2 {
        display: none !important;
    }

    .header-actions .btn-primary-v2 {
        display: none !important;
    }

    .header-actions .btn-ghost-v2 {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .mobile-auth-buttons {
        display: none !important;
    }
}

