body {
    padding-top: 120px; /* adjust if needed */
}


/* =====================================
   HEADER DEFAULT (TOP OF PAGE)
===================================== */
/* =====================================
   HEADER TRANSITIONS
===================================== */
.macha-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: transparent;
    transition: 
        background 0.3s ease,
        transform 0.35s ease,
        box-shadow 0.3s ease;
}

/* Hidden when scrolling up */
.macha-header.hidden {
    transform: translateY(-100%);
}

/* Visible scrolled state */
.macha-header.scrolled {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Text colors */
.macha-header a,
.macha-header .menu-toggle,
.macha-header .search-box input {
    color: #ffffff;
    transition: color 0.3s ease;
}

.macha-header.scrolled a,
.macha-header.scrolled .menu-toggle,
.macha-header.scrolled .search-box input {
    color: #0b3c5d;
}

.macha-header.scrolled .search-box {
    border-color: #ccc;
}


/* =====================================
   HEADER ON SCROLL
===================================== */
.macha-header.scrolled {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.macha-header.scrolled a,
.macha-header.scrolled .menu-toggle,
.macha-header.scrolled .search-box input {
    color: #0b3c5d; /* dark blue / black */
}

.macha-header.scrolled .search-box {
    border-color: #cccccc;
}

.macha-header.scrolled .btn.dark {
    background: #0b3c5d;
    color: #ffffff;
}

.macha-header.scrolled .btn.yellow {
    color: #000;
}




/* ==================================================
   TOP BAR
================================================== */
.macha-topbar {
    width: 100%;
     padding-top: 16px;   /* increase if needed */
}

/* =====================================
   MOBILE MENU – APPLY NOW TEXT WHITE
===================================== */
@media (max-width: 992px) {
    .mobile-cta .cta.apply {
        color: #ffffff !important;
    }
}

/* =====================================
   SEARCH PLACEHOLDER COLOR ON SCROLL
===================================== */
.macha-header.scrolled .search-box input::placeholder {
    color: #0b3c5d;
}
/* =====================================
   APPLY NOW TEXT WHITE ON SCROLL
===================================== */
.macha-header.scrolled .btn.blue {
    color: #ffffff;
}

/* Firefox support */
.macha-header.scrolled .search-box input::-moz-placeholder {
    color: #0b3c5d;
    opacity: 1;
}

/* =====================================
   FOR YOU COLOR ON SCROLL (DESKTOP)
===================================== */
.macha-header.scrolled .for-you.desktop-only {
    color: #0b3c5d;
}


.macha-container {
    max-width: 1420px;
    margin: auto;
    padding: 22px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left,
.top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-logo img {
    max-height: 70px;
}

/* ==================================================
   SEARCH
================================================== */
.search-box {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 20px;
    padding: 5px 12px;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
}

.search-box input::placeholder {
    color: #fff;
}

/* ==================================================
   BUTTONS
================================================== */
.btn {
    padding: 8px 14px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight:700;
}

.btn.dark { background: #0b3c5d; color: #fff; }
.btn.yellow { background: #ffd200; color: #000; }
.btn.blue { background: #1f78c1; color: #fff; }
.btn.light { background: #e6eef2; color: #0b3c5d; }

.desktop-only {
    background: transparent;
    border: none;
    color: #fff;
}

/* ==================================================
   MENU TOGGLE
================================================== */
.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
}

/* ==================================================
   DESKTOP MENU
================================================== */
@media (min-width: 993px) {

    .mobile-menu-head,
    .mobile-cta {
        display: none;
    }

    .mobile-menu-list {
        display: flex;
        justify-content: center;
        gap: 36px;
        list-style: none;
        margin: 0;
        padding: 14px 0;
        font-size: 20px;
        font-weight:700;
    }

    .mobile-menu-list li {
        border: none;
    }

    .mobile-menu-list a {
        color: #ffffff;
        text-decoration: none;
    }
}

/* ==================================================
   MOBILE HEADER LAYOUT
================================================== */
@media (max-width: 992px) {

    .top-left,
    .desktop-only,
    .for-you {
        display: none !important;
    }

    .menu-toggle {
        display: block;
    }

    .macha-topbar .macha-container {
        display: grid;
        grid-template-columns: auto auto;
        grid-template-areas:
            "search menu"
            "logo logo";
        row-gap: 14px;
    }

    .search-box {
        grid-area: search;
        width: 100px;
    }

    .menu-toggle {
        grid-area: menu;
        justify-self: end;
    }

    .top-logo {
        grid-area: logo;
        justify-self: center;
    }

    .top-logo img {
        max-height: 64px;
    }

    .top-right {
        display: contents;
    }
}

/* ==================================================
   MOBILE FULLSCREEN MENU
================================================== */
@media (max-width: 992px) {

    /* CLOSED */
    .mobile-menu-head,
    .mobile-menu-list,
    .mobile-cta {
        display: none;
    }

    /* MENU CONTAINER */
    .macha-nav {
        position: fixed;
        inset: 0;
        background: #003a6d;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        display: flex;
        flex-direction: column;
        z-index: 99999;
    }

    .macha-nav.open {
        transform: translateX(0);
    }

    .macha-nav.open .mobile-menu-head,
    .macha-nav.open .mobile-menu-list,
    .macha-nav.open .mobile-cta {
        display: inline-flex;
    }

    /* TOP BAR */
    .mobile-menu-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 20px;
        font-size: 14px;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #ffffff;
        border-bottom: 1px solid rgba(255,255,255,0.35);
    }

    /* MENU LIST */
    .mobile-menu-list {
        flex: 1;
        display: flex;
        flex-direction: column;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-menu-list li {
        border-bottom: 1px solid rgba(255,255,255,0.35);
    }

    .mobile-menu-list a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 22px 20px;
        font-size: 18px;
        font-weight: 600;
        color: #ffffff;
        text-decoration: none;
    }

    /* CTA BARS */
    .mobile-cta {
        display: flex;
        flex-direction: column;
    }

    .mobile-cta .cta {
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        text-decoration: none;
    }

    .cta.visit   { background: #ffffff; color: #003a6d; }
    .cta.request { background: #ffd200; color: #003a6d; }
    .cta.apply   { background: #1f78c1; color: #ffffff; }
    .cta.give    { background: #e6eef2; color: #003a6d; }
}


/* =====================================
   FORCE MOBILE MENU TEXT WHITE
===================================== */
/* =====================================
   MOBILE MENU LIST ONLY → WHITE
===================================== */
@media (max-width: 992px) {

    /* ONLY menu list links */
    .mobile-menu-list a {
        color: #ffffff !important;
    }

}