/* Donate call-to-action (all pages): header button + floating button on small screens.
   Roll back: remove the site_cta.css <link> from template.php, the .donate-cta <li> from header.php
   and the .donate-fab <a> from template.php. */

/* header button (desktop navigation) */
.navbar-nav > li.donate-cta{ position:relative; margin-inline-start:14px; }
.navbar-nav > li.donate-cta > a{
  margin-top:19px; padding:8px 14px !important; border-radius:999px; background:#fff; color:#561d5a !important;
  font-weight:700; border-bottom:none !important; box-shadow:0 2px 10px rgba(0,0,0,.18); white-space:nowrap;
}
.navbar-nav > li.donate-cta > a .fa{ color:#e0457b; margin-inline-end:4px; }
.navbar-nav > li.donate-cta > a:hover, .navbar-nav > li.donate-cta.active-item > a{ background:#e0457b; color:#fff !important; }
.navbar-nav > li.donate-cta > a:hover .fa, .navbar-nav > li.donate-cta.active-item > a .fa{ color:#fff; }

/* floating donate button */
.donate-fab{
  position:fixed; z-index:9990; left:16px; bottom:18px; display:none; align-items:center; gap:8px;
  background:#e0457b; color:#fff !important; font-weight:700; font-size:16px; line-height:1;
  padding:13px 20px; border-radius:999px; box-shadow:0 8px 22px rgba(224,69,123,.45); text-decoration:none !important;
  font-family:'Tajawal','DroidKufi',sans-serif;
}
.donate-fab .fa{ font-size:18px; animation:donate-beat 1.8s ease-in-out infinite; }
.donate-fab:hover, .donate-fab:focus{ background:#c93468; color:#fff; }
@keyframes donate-beat{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.22); } }
@media (max-width:991px){ .donate-fab{ display:inline-flex; } }
@media (prefers-reduced-motion:reduce){ .donate-fab .fa{ animation:none; } }

/* The header row is already full at 1170px, so the extra header button only shows on wide screens (>=1400px,
   with slightly tighter menu spacing); below that the floating button is used instead. */
.navbar-nav > li.donate-cta{ display:none; }
@media (min-width:1400px){
  .navbar-nav > li.donate-cta{ display:block; }
  .navbar-default .navbar-nav > li > a{ padding-left:4px; padding-right:4px; }
  .navbar-default .navbar-nav > li.donate-cta > a{ padding:8px 14px !important; }
}
@media (min-width:992px) and (max-width:1399px){ .donate-fab{ display:inline-flex; } }
@media (min-width:1400px){ .donate-fab{ display:none !important; } }

/* English menu is wider: it always uses the floating button instead of the header one */
body.lang-en .navbar-nav > li.donate-cta{ display:none !important; }
@media (min-width:992px){ body.lang-en .donate-fab{ display:inline-flex !important; } }
@media (min-width:1400px){ body.lang-en .navbar-default .navbar-nav > li > a{ padding-left:7px; padding-right:7px; } }

/* News cards (department pages, news list, related news): category shown as small pills over the photo
   instead of one wide purple bar that covered the top of the image */
.blog-content .news-cats-over, .re-blog-item .news-cats-over{
  top:12px !important; right:12px !important; left:auto !important; width:auto; max-width:calc(100% - 24px);
  background:none !important; font-size:0; line-height:0; z-index:3;
}
body.lang-en .blog-content .news-cats-over, body.lang-en .re-blog-item .news-cats-over{ right:auto !important; left:12px !important; }
.blog-content .news-cats-over a, .re-blog-item .news-cats-over a{
  display:inline-block; width:auto; background:rgba(86,29,90,.92); color:#fff !important; padding:4px 12px; border-radius:999px;
  font-size:13px; line-height:1.5; margin:0 0 4px 4px; font-weight:500;
}
.blog-content .news-cats-over a:hover, .re-blog-item .news-cats-over a:hover{ background:#5daf98; }

/* phones/tablets: the floating donate button is an icon-only circle so it does not cover the page text.
   The text label stays in the markup for screen readers (visually hidden). */
@media (max-width:991px){
  .donate-fab{ width:52px; height:52px; padding:0; justify-content:center; gap:0; bottom:16px; left:14px; box-shadow:0 6px 18px rgba(224,69,123,.5); }
  .donate-fab .fa{ font-size:20px; }
  .donate-fab span{ position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
}

/* "back to top" button: sits above the chat bubble (bottom-right) instead of under it */
.back-to-top{ bottom:92px !important; right:18px !important; }
.back-to-top i{ width:44px; height:44px; line-height:44px; border-radius:50% !important; background-color:#561d5a !important; box-shadow:0 6px 16px rgba(48,16,52,.3); }
.back-to-top i:hover{ background-color:#5daf98 !important; }

/* article share links (replaces the discontinued AddThis toolbar) */
.share-links{ display:flex; align-items:center; gap:10px; margin:22px 0 8px; flex-wrap:wrap; }
.share-links span{ font-weight:600; color:#561d5a; }
.share-links a{ width:40px; height:40px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; color:#fff; font-size:18px; transition:transform .2s ease, opacity .2s ease; }
.share-links a:hover{ transform:translateY(-2px); opacity:.9; color:#fff; }
.share-links .share-fb{ background:#1877f2; }
.share-links .share-wa{ background:#25d366; }
.share-links .share-x{ background:#111; }

/* careers application form */
.career-apply .career-intro{ font-size:15px; line-height:1.9; color:#555; margin:6px 0 18px; }
.career-apply label{ display:block; font-weight:600; color:#3d1440; margin-bottom:6px; font-size:14px; }
.career-apply .form-group{ margin-bottom:18px; }
.career-apply .career-cv input[type=file]{ height:auto; padding:10px; background:#faf7fb; border-style:dashed; }
