.navbar {
    position: sticky;
    top: 0;
    z-index: 1050;
    min-height: 76px;
    padding: 8px clamp(12px, 2.5vw, 30px);
    border-bottom: 2px solid #d8b45a;
    background: linear-gradient(112deg, #17392d 0%, #20513b 58%, #173d42 100%) !important;
    box-shadow: 0 8px 24px rgba(15, 43, 32, .2);
}

.navbar .mhdr-desktop-layout {
    gap: 0px;
}

.navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    min-height: 54px;
    margin: 0;
    padding: 3px 0;
}

.navbar .malawi-img {
    width: 142px;
    height: auto;
    max-height: 54px;
    object-fit: contain;
}

.navbar .nav-link {
    position: relative;
    margin: 0 2px;
    padding: 10px 11px !important;
    border-radius: 8px;
    /* box-shadow: inset 0 -2px rgba(228, 195, 110, .55); */
    color: rgba(255, 255, 255, .9) !important;
    font-weight: 500;
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible {
    background: rgba(255, 255, 255, .12);
    box-shadow: inset 0 -2px #e4c36e;
    color: #f7dda0 !important;
    transform: translateY(-1px);
}

.navbar .custom-apply-btn,
.navbar .custom-btn-apply,
.navbar .responsive-apply-btn {
    min-height: 44px;
    padding: 10px !important;
    border: 1px solid #f1d88e;
    border-radius: 999px;
    background: linear-gradient(135deg, #f5d77e, #e8b94f);
    color: #183a2d !important;
    font-size: .95rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 5px 14px rgba(9, 28, 19, .2);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.navbar .custom-apply-btn:hover,
.navbar .custom-btn-apply:hover,
.navbar .responsive-apply-btn:hover {
    border-color: #f8e6b5;
    background: linear-gradient(135deg, #ffe9a6, #f3c95e);
    box-shadow: 0 8px 18px rgba(9, 28, 19, .28);
    color: #102d23 !important;
    transform: translateY(-2px);
}

.navbar .custom-apply-btn:focus-visible,
.navbar .custom-btn-apply:focus-visible,
.navbar .responsive-apply-btn:focus-visible {
    outline: 3px solid rgba(245, 215, 126, .75) !important;
    outline-offset: 3px !important;
}

.navbar .dropdown-menu {
    min-width: 220px;
    padding: 8px;
    border: 1px solid #e4ebe5;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(18, 41, 25, .18);
}

.navbar .dropdown-item {
    padding: 9px 11px;
    border-radius: 7px;
    color: #263a34;
    font-size: .94rem;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: #edf4ed;
    color: #294d31;
}

.navbar .navbar-toggler {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 10px;
    background: rgba(255, 255, 255, .12);
    transition: background-color .2s ease, border-color .2s ease;
}

.navbar .navbar-toggler:hover {
    border-color: rgba(245, 215, 126, .65);
    background: rgba(255, 255, 255, .18);
}

.navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .24);
}

.breadcrumb-nav {
    padding: 9px clamp(12px, 3vw, 32px);
    border-bottom: 1px solid #e4ebe5;
    background: #f5f8f4;
}

.breadcrumb-nav > div {
    width: 100%;
}

.breadcrumb-nav .breadcrumb {
    margin: 0;
    font-size: .91rem;
}

.breadcrumb-nav .breadcrumb-item,
.breadcrumb-nav .breadcrumb-item.active {
    color: #62716b;
}

.breadcrumb-nav a {
    color: #315c39;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.mobile-overlay {
    z-index: 1040;
    background: rgba(16, 31, 20, .56);
    backdrop-filter: blur(2px);
}

.footer {
    position: relative;
    margin-top: 32px;
    padding: clamp(20px, 6vw, 25px) 0 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #10281f 0%, #17392d 45%, #14303a 100%) !important;
    color: #f4f7f2;
}

.footer::before {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(420px, 70%);
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, transparent, #e4c36e 30%, #f3dfa5 50%, #e4c36e 70%, transparent);
    content: "";
}

.footer::after {
    position: absolute;
    top: -140px;
    right: -100px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228, 195, 110, .12), transparent 65%);
    content: "";
    pointer-events: none;
}

.footer > .container-fluid {
    position: relative;
    padding-right: clamp(14px, 3vw, 36px);
    padding-left: clamp(14px, 3vw, 36px);
}

.footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 11px;
}

.footer .footer-about-container {
    grid-column: span 3;
}

.footer .footer-link-col {
    grid-column: span 2;
}

.footer .footer-grid > div {
    padding: 24px 22px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
    backdrop-filter: blur(6px);
    transition: transform .28s ease, border-color .28s ease, background-color .28s ease, box-shadow .28s ease;
}

.footer .footer-grid > div:hover {
    transform: translateY(-4px);
    border-color: rgba(228, 195, 110, .35);
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 16px 34px rgba(0, 0, 0, .28);
}

.footer h3 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    padding-bottom: 11px;
    color: #fff !important;
    font-size: 1.08rem;
    letter-spacing: .01em;
}

.footer h3::after,
.footer .footer-heading::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 34px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #e4c36e, rgba(228, 195, 110, 0));
    content: "";
    transition: width .3s ease;
}

.footer .footer-grid > div:hover h3::after,
.footer .footer-grid > div:hover .footer-heading::after {
    width: 58px;
}

.footer .footer-heading {
    position: relative;
    margin-bottom: 16px;
    padding-bottom: 10px;
    color: #fff !important;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .01em;
}

.footer h3 .fa {
    color: #e4c36e;
    font-size: 1rem;
}

.footer p,
.footer li {
    color: rgba(244, 247, 242, .78);
}

.footer ul {
    display: grid;
    gap: 8px;
}

.footer li {
    line-height: 1.45;
}

.footer a {
    color: rgba(255, 255, 255, .83) !important;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.footer a:hover,
.footer a:focus-visible {
    color: #f2d785 !important;
    text-decoration: none;
}

.footer li a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 2px 0;
}

.footer li a::before {
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: #e4c36e;
    content: "";
    transition: width .25s ease;
}

.footer li a:hover,
.footer li a:focus-visible {
    transform: translateX(4px);
}

.footer li a:hover::before,
.footer li a:focus-visible::before {
    width: 14px;
}

.footer .social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer .social-links a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    transition: background .22s ease, border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.footer .social-links a:hover,
.footer .social-links a:focus-visible {
    border-color: #e8b94f;
    background: linear-gradient(135deg, #f5d77e, #e8b94f);
    box-shadow: 0 8px 18px rgba(232, 185, 79, .35);
    transform: translateY(-3px);
}

.footer .social-links a:hover .fa,
.footer .social-links a:focus-visible .fa {
    color: #183a2d !important;
}

.footer .footer-bottom {
    position: relative;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(244, 247, 242, .68);
    text-align: left;
}

.footer .footer-bottom::before {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: min(320px, 60%);
    height: 2px;
    background: linear-gradient(90deg, transparent, #e4c36e, transparent);
    content: "";
}

.footer .footer-bottom p {
    margin-bottom: 0;
}

.footer .footer-bottom .text-md-end {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

.footer .footer-legal-link {
    position: relative;
    padding-bottom: 2px;
}

.footer .footer-legal-link::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: #e4c36e;
    content: "";
    transition: width .25s ease;
}

.footer .footer-legal-link:hover::after,
.footer .footer-legal-link:focus-visible::after {
    width: 100%;
}

.footer .apply-btn {
    width: auto !important;
    padding: 10px 18px;
    border: 1px solid #f1d88e;
    border-radius: 999px;
    background: linear-gradient(135deg, #f5d77e, #e8b94f);
    color: #183a2d !important;
    font-weight: 700;
    box-shadow: 0 5px 14px rgba(9, 28, 19, .2);
}

.footer .apply-btn:hover,
.footer .apply-btn:focus-visible {
    background: linear-gradient(135deg, #ffe9a6, #f3c95e);
    color: #102d23 !important;
    transform: translateY(-2px);
}

#back-to-top {
    z-index: 1030 !important;
    border: 0 !important;
    background: #20513b;
    box-shadow: 0 8px 22px rgba(20, 45, 27, .23);
}

@media (max-width: 1150px) and (min-width: 776px) {
    .navbar .nav-link {
        padding-right: 7px !important;
        padding-left: 7px !important;

    }
}

@media (max-width: 775.98px) {
    .navbar {
        min-height: 66px;
        padding: 0;
    }

    .navbar .malawi-img {
        width: 122px;
        max-height: 48px;
    }

    .navbar .sidebar {
        z-index: 1051;
        width: min(88vw, 280px);
        padding: 15px 10px;
        border-right: 1px solid rgba(245, 215, 126, .25);
        background: linear-gradient(165deg, #17392d 0%, #20513b 58%, #173d42 100%) !important;
        box-shadow: 12px 0 34px rgba(0, 0, 0, .2);
    }

    .navbar .sidebar .nav-link,
    .navbar .sidebar .dropdown-item {
        min-height: 42px;
        padding: 10px 12px !important;
        border-radius: 8px;
        box-shadow: inset 0 -2px rgba(228, 195, 110, .55);
        color: rgba(255, 255, 255, .92) !important;
    }

    .navbar .sidebar .dropdown-item:hover,
    .navbar .sidebar .nav-link:hover,
    .navbar .sidebar .nav-link:focus-visible {
        background: rgba(255, 255, 255, .12);
        box-shadow: inset 0 -2px #e4c36e;
        color: #f7dda0 !important;
    }

    .navbar .sidebar .custom-apply-btn {
        margin-top: 10px;
        color: #183a2d !important;
    }

    .breadcrumb-nav {
        padding: 8px 14px;
    }

    .footer {
        margin-top: 20px;
        padding-top: 34px;
        text-align: left;
    }

    .footer .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer .footer-about-container,
    .footer .footer-link-col {
        grid-column: span 1;
    }

    .footer .footer-grid > div {
        padding: 20px 16px;
    }

    .footer h3 {
        justify-content: flex-start;
    }

    .footer .footer-bottom .text-md-end {
        justify-content: flex-start;
        flex-wrap: wrap;
        margin-top: 10px;
    }

    .footer .social-links {
        justify-content: flex-start;
    }
}

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

    .footer .footer-about-container,
    .footer .footer-link-col {
        grid-column: auto;
    }
}

@media (max-width: 420px) {
    .footer .footer-bottom .text-md-end {
        gap: 8px 12px;
    }

    .footer .footer-bottom .text-md-end a {
        font-size: .88rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .navbar *,
    .footer * {
        transition-duration: .01ms !important;
    }
}
