/* =========================================================
   umuri-header.css  (v4)  - Kick4Life layout, Umuri colours
   Works on your existing topnavigation.php. Nothing in that file changes.
   Desktop only (1025px and up). Phone/tablet menu is untouched.
   Colours: --primary-color #581b18 (brown), --accent-color #D2691E (orange)
   ========================================================= */

@media (min-width: 1025px) {

    /* ---------- Boxed panel over the hero photo ---------- */
    html body header {
        position: absolute !important;
        top: 0 !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: min(1140px, 100%) !important;
        min-height: 168px;
        display: grid !important;
        grid-template-columns: 300px 1fr auto auto auto;
        grid-template-rows: 85px 1fr;
        background: var(--primary-color, #581b18) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
        font-family: 'Montserrat', sans-serif;
    }

    /* The two old rows stop being boxes, so their contents can be re-placed */
    html body header .top-bar,
    html body header .top-bar .container,
    html body header .main-nav,
    html body header .main-nav .container {
        display: contents !important;
    }

    /* Thin divider between the top row and the menu row */
    html body header::after {
        content: "";
        grid-column: 2 / -1;
        grid-row: 1;
        align-self: end;
        height: 1px;
        background: rgba(255, 255, 255, 0.25);
        pointer-events: none;
    }

    /* ---------- Logo: big, round, spans both rows ---------- */
    html body header .logo {
        grid-column: 1;
        grid-row: 1 / 3;
        align-self: start;
        padding: 6px 0 0 18px;
        display: flex !important;
    }
    html body header .logo img {
        width: 138px !important;
        height: 138px !important;
        max-width: none !important;
        max-height: none !important;
        border-radius: 50% !important;
        border: 3px solid #ffffff;
        background: #ffffff;
        object-fit: contain;
        filter: none !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    }

    /* ---------- Top row: links, "Connect with us", social icons ---------- */
    html body header .secondary-nav {
        grid-column: 3;
        grid-row: 1;
        align-self: center;
        display: flex;
        margin-right: 26px;
    }
    html body header .secondary-nav a {
        color: #ffffff;
        font-size: 12px;
        margin-left: 18px;
    }
    html body header .secondary-nav a:hover { color: #f0b98a; }

    html body header #social-media-icons {
        grid-column: 4;
        grid-row: 1;
        align-self: center;
        display: flex;
        align-items: center;
        margin-right: 22px;
    }
    html body header #social-media-icons::before {
        content: "Connect with us";
        color: #e5c9c5;
        font-size: 13px;
        font-weight: 700;
        margin-right: 16px;
        white-space: nowrap;
    }
    html body header #social-media-icons a {
        display: grid;
        place-items: center;
        width: 32px;
        height: 32px;
        margin: 0 0 0 6px;
        background: #e5d3d1;
        color: var(--primary-color, #581b18);
        font-size: 15px;
    }
    html body header #social-media-icons a:hover {
        background: #ffffff;
        color: var(--accent-color, #D2691E);
    }

    /* Optional Donate block (only appears if you add the one extra line) */
    html body header a.top-donate {
        grid-column: 5;
        grid-row: 1;
        align-self: stretch;
        display: grid;
        place-items: center;
        width: 110px;
        background: var(--accent-color, #D2691E);
        color: #ffffff;
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
    }
    html body header a.top-donate:hover { background: #b85a18; }

    /* ---------- Menu row ---------- */
    html body header .nav-links {
        grid-column: 2 / -1;
        grid-row: 2;
        align-self: center;
        justify-content: flex-end;
        padding-right: 18px;
    }
    html body header .nav-links > li { margin-left: 22px; }
    html body header .nav-links > li > a,
    html body header .nav-links .search-icon {
        color: #ffffff !important;
        font-size: 14px;
        font-weight: 700;
    }
    html body header .nav-links > li > a::after {
        background-color: var(--accent-color, #D2691E);
    }

    /* ---------- Dropdowns: white panel under each item ---------- */
    html body header .dropdown-content {
        left: 0;
        transform: none;
        margin-top: 0;
        padding: 8px 0;
        min-width: 230px;
        background: #ffffff;
        border-top: 3px solid var(--accent-color, #D2691E);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    }
    html body header .dropdown:hover .dropdown-content {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }
    html body header .dropdown-content a {
        display: block;
        padding: 10px 20px;
        font-size: 14px;
        font-weight: 600;
        color: var(--primary-color, #581b18) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    html body header .dropdown-content a:last-child { border-bottom: 0; }
    html body header .dropdown-content a::after { display: none; }
    html body header .dropdown-content a:hover {
        background: #f5f5f5;
        color: var(--accent-color, #D2691E) !important;
    }
    /* last dropdown opens leftwards so it never leaves the screen */
    html body header .dropdown:nth-last-child(2) .dropdown-content { left: auto; right: 0; }

    /* ---------- Page spacing: the header now overlays the hero photo ---------- */
    html body { padding-top: 170px !important; }
    html body:has(.hero) { padding-top: 0 !important; }
}

/* Narrower desktops: hide the "Connect with us" words so everything fits */
@media (min-width: 1025px) and (max-width: 1180px) {
    html body header #social-media-icons::before { display: none; }
}


/* =========================================================
   Hero slideshow arrows (left / right), Kick4Life style
   ========================================================= */
.hero .hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 7;
    width: 43px;
    height: 60px;
    padding: 0;
    border: 0;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.65);
    color: var(--accent-color, #D2691E);
    font-size: 26px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.hero .hero-prev { left: 0; }
.hero .hero-next { right: 0; }
.hero .hero-arrow:hover { background: rgba(0, 0, 0, 0.85); color: #ffffff; }
.hero .hero-arrow:focus-visible { outline: 2px solid #ffffff; outline-offset: -4px; }

@media (max-width: 576px) {
    .hero .hero-arrow { width: 34px; height: 48px; font-size: 20px; }
}

/* TEST LINE: uncomment to confirm this file is loading, then comment it out again.
html body header { border-bottom: 6px solid lime !important; }
*/