/* ===============================
   Makkon Donation — Footer Styles
   =============================== */

.mk-footer {
    background: #fafafa;
    border-top: 0px solid #e6e6e6;
    padding: 50px 20px 20px;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    color: #333;
}

.mk-footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: 0 auto;
    gap: 20px;
}

.mk-footer-column {
    flex: 1;
    min-width: 230px;
}

.mk-footer-column h4 {
    color: #1f7a63;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: right;
}

.mk-footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mk-footer-column ul li {
    font-size: 15px;
    line-height: 2;
    color: #555;
}

.mk-footer-column ul li a {
    color: #1f7a63;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mk-footer-column ul li a:hover {
    color: #239173;
}

.mk-footer-column i {
    color: #1f7a63;
    margin-left: 8px;
}

/* 🟢 Payment Logos */
.mk-payment-logos {
    display: flex;
    align-items: right;
    gap: 10px;
}

.mk-payment-logos img {
    height: 24px;
    width: auto;
    object-fit: contain;
    align-items: right;
}

/* Bottom line */
.mk-footer-bottom {
    border-top: 1px solid #e6e6e6;
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    font-size: 14px;
    color: #777;
}

/* ===============================
   Footer Contact Section (Icons)
=============================== */

.mk-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mk-footer-contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 15px;
    color: #333;
}

.mk-footer-contact a {
    color: #00695c;
    text-decoration: none;
    transition: color 0.3s;
}

.mk-footer-contact a:hover {
    color: #1f7a63;
}

.mk-footer-contact .mk-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.mk-footer-contact .mk-separator {
    height: 16px;
    width: auto;
    margin: 0 6px;
    opacity: 0.7;
}

/* ===============================
   Footer Links (Inline Buttons)
=============================== */

.mk-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-start; /* aligned with title */
    align-items: right;
    gap: 15px;
    flex-wrap: wrap;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

.mk-footer-links li {
    margin: 0;
}

.mk-footer-links a {
    display: inline-block;
    border: 1px solid #6B7280;
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 18px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
}

.mk-footer-links a:hover {
    background-color: #1f7a63;
    color: #fff;
    border-color: #1f7a63;
    box-shadow: 0 2px 5px rgba(31, 122, 99, 0.3);
}
/* ===============================
   Footer – Topbar (social + about)
=============================== */
.mk-footer-topbar {
  background: #fafafa;          /* same as footer bg */
  padding: 18px 0;
  border-bottom: 1px solid #eee;
}

.mk-footer-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: right;
  gap: 24px;
  direction: rtl;               /* Arabic flow */
}

/* Right block: logo + text */
.mk-about {
  display: flex;
  align-items: right;
  gap: 14px;
  text-align: right;
  flex: 1 1 auto;
}

.mk-about-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.mk-about-text {
  margin: 0;
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;               /* ~#6B7280 family */
}

/* Left block: social icons */
.mk-social {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mk-social li { margin: 0; }

.mk-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #1f7a63;
  color: #1f7a63;
  border-radius: 50%;
  text-decoration: none;
  transition: background .25s, color .25s, box-shadow .25s;
}

.mk-social a:hover {
  background: #1f7a63;
  color: #fff;
  box-shadow: 0 2px 6px rgba(31,122,99,.25);
}

/* ===============================
   Mobile – stack & center neatly
=============================== */
@media (max-width: 768px) {
  .mk-footer-topbar-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .mk-about {
    flex-direction: column;
    align-items: right;
    text-align: right;
  }

  .mk-about-logo {
    width: 60px;
    height: 60px;
  }

  .mk-about-text {
    font-size: 13px;
    line-height: 1.9;
  }

  .mk-social {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
}


/* ✅ Responsive: stack neatly on mobile screens */
@media (max-width: 768px) {
  /* Stack columns vertically */
  .mk-footer-container {
    display: flex;
    flex-direction: column !important;
    align-items: right !important;
    justify-content: right;
    gap: 40px;
    padding: 0 20px;
  }

  /* Column titles */
  .mk-footer-column h4 {
    color: #1f7a63;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: right;
    width: 100%;
  }

  /* Contact section */
  .mk-footer-contact {
    display: flex;
    flex-direction: column;
    align-items: right;
    gap: 8px;
  }

  .mk-footer-contact li {
    justify-content: right;
    text-align: right;
  }

  /* Footer links section */
  .mk-footer-links {
    display: flex;
    flex-direction: column;
    align-items: right; /* ✅ Center buttons horizontally */
    gap: 12px;
    width: 100%;
  }

  .mk-footer-links a {
    width: 80%;
    max-width: 240px;
    border: 1px solid #6B7280;
    color: #6B7280;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    text-align: right; /* ✅ Center button text */
    transition: all 0.3s ease;
  }

  .mk-footer-links a:hover {
    background-color: #1f7a63;
    color: #fff;
    border-color: #1f7a63;
  }

  /* Payment section */
  .mk-payment-logos {
    display: flex;
    justify-content: right;
    flex-wrap: wrap;
    gap: 10px;
  }

  .mk-payment-logos img {
    height: 22px;
  }

  /* Footer bottom */
  .mk-footer-bottom {
    text-align: center;
    font-size: 13px;
    margin-top: 20px;
    color: #6B7280;
  }
}

/* ✅ Desktop: logo top + right aligned text */
@media (min-width: 992px) {
    .mk-about {
        display: flex !important;
        flex-direction: column !important; /* logo above text */
        align-items: right;   /* push content to the right */
        text-align: right ;
        gap: 10px !important;
    }

    .mk-about-logo {
        width: 85px !important;
        height: auto !important;
        align-self: right; /* ✅ keep logo on the right */
    }

    .mk-about-text {
        font-size: 15px;
        line-height: 1.9;
        margin: 0;
    }
}
