/* ============================================
   🕌 Makkon Donation — Perfected Header
   ============================================ */
.mk-donation-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e6e6e6;
    position: sticky;
    top: 0;
    z-index: 999;
    direction: rtl;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center; /* 🟢 center header content block */
}
/* ---------- Inner structure ---------- */
.mk-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 🟢 space between left/middle/right */
    width: 100%;
    max-width: 1280px;
    padding: 10px 10px;
    box-sizing: border-box;
}

/* ---------- Logo ---------- */
.mk-header-logo {
    flex: 0 0 auto;
}

.mk-header-logo img {
    height: 68px; /* slightly larger for balance */
    width: auto;
    object-fit: contain;
}

/* ---------- Navigation ---------- */
.mk-header-nav {
    flex: 1;
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 45px;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.mk-header-nav a {
    color: #333;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.mk-header-nav a:hover,
.mk-header-nav a.active {
    color: #1f7a63;
}

.mk-header-nav a.active::after {
    content: "";
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 100%;
    height: 2px;
    background-color: #1f7a63;
    border-radius: 3px;
}

/* ---------- Account Button ---------- */
.mk-btn-account {
    background: #1f7a63;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.mk-btn-account:hover {
    background: #239173;
}

/* ---------- Mobile Icons ---------- */
.mk-menu-toggle,
.mk-btn-account-icon {
    display: none;
    font-size: 22px;
    color: #1f7a63;
    background: none;
    border: none;
    cursor: pointer;
}

/* ============================================
   📱 Responsive (Mobile / Tablet)
   ============================================ */
@media (max-width: 991px) {
    .mk-header-inner {
        justify-content: center;
        position: relative;
        padding: 15px 30px;
    }

    /* hide desktop items */
    .mk-header-nav,
    .mk-btn-account {
        display: none;
    }

    /* show mobile icons */
    .mk-menu-toggle,
    .mk-btn-account-icon {
        display: block;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .mk-menu-toggle {
        left: 30px;
    }

    .mk-btn-account-icon {
        right: 30px;
    }

    /* center logo */
    .mk-header-logo {
        justify-content: center;
    }

    .mk-header-logo img {
        height: 55px;
    }

    /* dropdown nav */
    .mk-header-nav {
        display: none;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #eee;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        z-index: 998;
    }

    .mk-header-nav.open {
        display: flex;
        animation: slideDown 0.3s ease-in-out;
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}
