/* Markup: partials/shared/navbar.htm — toggles .header.active-menu via app.js */
.nav-toggle-tablet { display: none; }

/* Header brand/donate in top bar — hidden on desktop (nav has them) */
.header-brand,
.header-donate { display: none !important; }

/* Compact header (≤1281 + JS class for instant resize without refresh) */
@media (max-width: 1281px) {
  html:not(.is-desktop-nav) .header-top,
  .header-top {
    min-height: 56px;
    z-index: 2;
    position: relative;
    background-color: white;
    color: var(--primary-color);
    box-shadow: var(--main-shadow);
  }
  .header-top-links {
    min-height: 56px;
    width: 100%;
    max-width: none;
    margin: 0;
    align-items: center;
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
    padding-inline: 12px !important;
  }
  .header-top-links > * { flex: 0 0 auto !important; }
  .header-top-links .spacer,
  .header-top-links__title,
  .header-top-links .header-actions { display: none !important; }

  /* RTL: logo on the right (start). LTR: logo on the left via dir. */
  .header-brand {
    display: flex !important;
    align-items: center;
    flex-shrink: 0;
    order: 1;
    width: 72px;
    max-width: 72px;
    margin-inline-end: auto;
  }
  .header-brand img {
    width: 100%;
    height: auto;
    max-height: 52px;
    object-fit: contain;
    display: block;
  }
  .header-donate,
  .header-top-links > a.donation-link.header-donate {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    order: 3;
    margin: 0 !important;
    margin-inline-start: auto !important;
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    font-size: 14px;
    padding: 6px 10px !important;
  }
  .nav-toggle-tablet {
    display: inline-flex !important;
    order: 2;
  }
  /* Never show the drawer logo/donate copies in the top bar */
  .header-top-links .nav-list__item.logo,
  .header-top-links > a.donation-link:not(.header-donate) { display: none !important; }

  /* Side social: black icons on light bg for contrast; lift above bottom nav */
  body > .main-social-list {
    display: flex !important;
    bottom: calc(var(--bottom-navigation-height, 60px) + 28px);
    z-index: 5;
  }
  body > .main-social-list .social-item a {
    background-color: #f3f3f3;
    color: #000;
    width: 40px;
    height: 40px;
  }
  body > .main-social-list .social-item a *[class^="icon"] {
    color: #000 !important;
  }
  body > .main-social-list .social-item a:hover {
    background-color: var(--primary-color);
    color: #fff;
  }
  body > .main-social-list .social-item a:hover *[class^="icon"] {
    color: #fff !important;
  }

  .nav-list__item.nav {display: block;}
  .nav-list__item.nav:after {content: unset;}

  .nav-button {order: -1;}
  .nav {position: fixed;right: 0;top: 0;bottom: 0;transform: translateX(100%);transition: .4s;border-inline-end: 1px solid var(--extra-light-gray);}
  .nav-list {flex-direction: column;background: white;min-width: 210px;padding-top: 50px;transition: .4s;gap: 10px;height: 100%;justify-content: unset;}
  .nav-list__item.logo {position: revert !important;aspect-ratio: 1;width: 85px;height: unset;background: white;box-shadow: unset;flex: unset;}
  .nav-list__item.logo + * {margin: unset;}
  .icon-menu {font-size: 3rem;color: white;}

  .nav-wrapper {min-height: unset;}
  /* Drawer logo only (inside .nav), never the sticky top bar */
  .nav .nav-list__item.logo {position: unset !important;aspect-ratio: unset;margin-inline-start: 10px;}
  .nav .nav-list__item.logo img {width: 100%;aspect-ratio: unset;}
  .header.active-menu .nav {transform: translateX(0);}
  .header.active-menu .nav-wrapper {z-index: 2;}
  .nav-list__item {height: unset;overflow: revert;margin-inline: 20px}
  .nav-list__item:not(.logo).active > a, .nav-list__item.dropdown > a.active {
    font-weight: 800;
    color: hsl(144 98% 84% / 1) !important;
  }

  .nav-home:empty {
    display: none;
    }


  .close-nav-button {position: absolute;right: 20px;top: 20px;}
  .donation-link {margin: unset;background-color: hsl(357 71% 57% / 1);color: white;padding: 4px 8px;margin-inline-start: 10px;}






  .donation-link {margin: unset;background-color: hsl(357 71% 57% / 1);color: white;padding: 4px 8px;margin-inline-start: 10px;}
  .nav-list__item.dropdown {flex-direction: column;}
  .drop-down-nav {transform: unset !important;position: unset;opacity: 1;pointer-events: all;min-width: unset;overflow: unset;max-height: 0;background: transparent;transition: .4s;}
  .list-item-nav:not(:last-child) > a {border: unset;}
  .list-item-nav > a {color: black;}
  .nav-list__item.dropdown > a {height: unset;}
  .nav-list__item:not(.logo):after {content: unset;}
  @media (hover: hover) {
    .nav-list__item:hover a {color: unset;cursor: pointer;}
  }








  .footer .footer-list__title:after {content: "\e923";font-family: 'icomoon';font-size: 1.1rem;transition: 0.4s;}
  .footer-list.active .footer-list__title:after {transform: rotate(180deg);}
  .footer .footer-list__title {display: flex;align-items: center;gap: 10px;}
  .footer-list .list {max-height: 0;overflow: hidden;transition: .4s;}

  /*
   * Hero slider on tablet / md: stack image above text.
   * Images must COVER the media box (never height:auto — that leaves empty bands).
   */
  .section.section-hero { padding: 0 !important; margin: 0 !important; }
  .section-hero .swiper-wrapper { height: auto !important; }
  .section-hero .swipe-item .picture,
  .section-hero .swipe-item .picture.full-width,
  .section-hero .picture,
  .section-hero .picture.full-width,
  .section-hero .video-wrapper {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 56vw !important;
    min-height: 220px !important;
    max-height: 360px !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  .section-hero .swipe-item .picture img,
  .section-hero .swipe-item .picture.full-width img,
  .section-hero .picture img,
  .section-hero .picture.full-width img,
  .section-hero .video-wrapper .video,
  .section-hero .video-wrapper video {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    margin: 0 !important;
  }
  .section-hero .swipe-item:after,
  .section-hero .swipe-item:before { content: none !important; display: none !important; }
  .section-hero .swipe-content { padding: 0 16px; height: auto !important; max-width: none !important; }
  .section-hero .swiper-pagination {
    bottom: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
  }
}

@keyframes givepalHeroMediaIn {
  from {
    opacity: 0.35;
    transform: scale(1.04) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes givepalHeroTextIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet: burger drawer — RTL from right, LTR from left */
@media (min-width: 768px) and (max-width: 1280px) {
  .header-top { display: flex; align-items: center; gap: 10px; padding-inline: 16px; flex-wrap: nowrap; }
  .header-top .header-top-links { flex: 1; min-width: 0; }
  .nav-toggle-tablet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--primary-color);
  }
  .nav-toggle-tablet .icon-menu,
  .nav-toggle-tablet .icon-close { font-size: 2rem; color: inherit; }
  .nav-toggle-tablet .icon-close { display: none; }
  .header.active-menu .nav-toggle-tablet .icon-menu { display: none; }
  .header.active-menu .nav-toggle-tablet .icon-close { display: block; }


  @media (max-width: 1280px) {

    /*.bottom-navigation {position: fixed;right: 0;left: 0;bottom: 0;background: color-mix(in srgb, var(--primary-color) 100%, white 20%);z-index: 1;display: flex;align-items: center;justify-content: space-around;padding: 10px 20px;}*/

    .bottom-navigation {
      position: fixed;
      right: 0;
      left: 0;
      bottom: 10px;
      background: color-mix(in srgb, var(--primary-color) 100%, white 20%);
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 20px;
      min-height: 60px;
      border-radius: 8px;
      width: calc(100vw - 40px);
      margin: 0 auto;
    }



    .bottom-navigation > * {background: transparent;color: white;font-size: 1.8rem;display: flex;align-items: center;justify-content: center;position: relative;border: 1px solid white;height: 35px;width: 35px;border-radius: 4px;}
    .bottom-navigation span[class*="icon"] {color: white;font-size: 1.7rem;}
    .localization-nav-btn {line-height: 1;font-family: sans-serif;font-size: 1.4rem}
    .nav-button .icon-menu {font-size: 2.6rem !important;}
    .nav {left: 0;border: unset}
    .nav-list {justify-content: center;padding-top: 0;background: var(--primary-color);color: white;}
    .search-button span {font-size: 2.2rem !important;}
    /*.bottom-navigation > *:not(:last-child):after {content: "";position: absolute;left: 0px;top: 0;bottom: 0;width: 1px;background: white;}*/
    body > .main-social-list {
      display: flex !important;
      bottom: calc(var(--bottom-navigation-height, 60px) + 28px);
    }
    body > .main-social-list .social-item a *[class^="icon"] {color: #000 !important;}
    .close-nav-button {color: white}
    .header .header-actions {display: none;}
    .nav-list__item a {width: 100%;color:white;font-size: 1.8rem;}
    .nav-list__item.logo a {display: block;}
    .list-item-nav > a {font-size: 1.8rem;}

    .header .nav-button {/* display: none; */order: inherit;}

    .header .header-top-links__title {display: none;}

    .header .header-top-links {justify-content: center;padding: 10px 0;}

    .donation-link {margin: 0;background: unset;font-size: 0;width: 100%;height: 100%;display: flex;align-items: center;justify-content: center;}

    .donation-link:after {content: "\e957";font-family: 'icomoon' !important;font-size: 2.3rem;}


    .drop-down-nav {align-self: stretch;}

    .list-item-nav:not(:last-child) > a:after, .nav .nav-list .nav-list__item:not(:nth-last-child(2)):after {content: "" !important;position: absolute;left: 0;right: 0;bottom: -5px !important;top: unset !important;background: linear-gradient(to left, rgba(179, 179, 179, 0) 0%, hsl(144.1deg 98.39% 90%) 50%, rgba(179, 179, 179, 0) 100%) !important;height: 1px;}
    .list-item-nav:not(:last-child) > a:after {bottom: 0 !important;}
    .drop-down-nav {opacity: 1;pointer-events: all;overflow: hidden;}
    /*.drop-down-nav.active {opacity: 1;pointer-events: all;}*/


    .header-top-links a.donation-link.header-donate {color: var(--primary-color);width: fit-content;margin: unset !important;margin-inline-start: auto !important;border: 1px solid var(--primary-color);border-radius: 6px;font-size: 14px;display: inline-flex !important;align-items: center;gap: 8px;}
    .header .header-top-links {justify-content: space-between !important;width: 100%;padding-inline: 12px !important;flex-direction: row;}
    .nav .nav-list__item.logo {margin-inline-start: auto;}
    .header-top-links .spacer {display: none;}
    .list-item-nav > a:hover, .list-item-nav.active > a {background-color: transparent !important;}

    .section-social {padding-top: 40px;padding-bottom: 24px;}
    .section-social .section-social-inner {gap: 12px;}
    .share-social-list .social-item a,
    .share-social-list .social-item .copy-link-button {width: 40px;height: 40px;}

  }

  .header .nav { z-index: 100; }
  html[dir="ltr"] .header .nav { left: 0; right: auto; transform: translateX(-100%); }
  html[dir="ltr"] .header.active-menu .nav { transform: translateX(0); }
  html[dir="ltr"] .close-nav-button { left: 20px; right: auto; }
}



@media (max-width: 767px) {

  .section {

    --padding-section: 15px;
  }


  /*.bottom-navigation {position: fixed;right: 0;left: 0;bottom: 0;background: color-mix(in srgb, var(--primary-color) 100%, white 20%);z-index: 1;display: flex;align-items: center;justify-content: space-around;padding: 10px 20px;}*/

  .bottom-navigation {
    position: fixed;
    right: 0;
    left: 0;
    bottom: 10px;
    background: color-mix(in srgb, var(--primary-color) 100%, white 20%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    min-height: 60px;
    border-radius: 8px;
    width: calc(100vw - 40px);
    margin: 0 auto;
  }



  .bottom-navigation > * {background: transparent;color: white;font-size: 1.8rem;display: flex;align-items: center;justify-content: center;position: relative;border: 1px solid white;height: 35px;width: 35px;border-radius: 4px;}
  .bottom-navigation span[class*="icon"] {color: white;font-size: 1.7rem;}
  .localization-nav-btn {line-height: 1;font-family: sans-serif;font-size: 1.4rem}
  .nav-button .icon-menu {font-size: 2.6rem !important;}
  .nav {left: 0;border: unset}
  .nav-list {justify-content: center;padding-top: 0;background: var(--primary-color);color: white;}
  .search-button span {font-size: 2.2rem !important;}
  /*.bottom-navigation > *:not(:last-child):after {content: "";position: absolute;left: 0px;top: 0;bottom: 0;width: 1px;background: white;}*/
  body > .main-social-list {
    display: flex !important;
    bottom: calc(var(--bottom-navigation-height, 60px) + 28px);
  }
  body > .main-social-list .social-item a {
    width: 38px;
    height: 38px;
    background-color: #f3f3f3;
    color: #000;
  }
  body > .main-social-list .social-item a *[class^="icon"] {color: #000 !important;font-size: 1.35rem;}
  body > .main-social-list .social-item a:hover *[class^="icon"] {color: #fff !important;}
  .close-nav-button {color: white}
  .header .header-actions {display: none;}
  .nav-list__item a {width: 100%;color:white;font-size: 1.8rem;}
  .nav-list__item.logo a {display: block;}
  .list-item-nav > a {font-size: 1.8rem;}

  /* Bottom nav owns the menu on phone — hide header burger/X */
  .header .nav-button,
  .header .nav-toggle-tablet {
    display: none !important;
  }

  .header .header-top-links__title {display: none;}

  .header .header-top-links {justify-content: center;padding: 10px 0;}

  .donation-link {margin: 0;background: unset;font-size: 0;width: 100%;height: 100%;display: flex;align-items: center;justify-content: center;}

  .donation-link:after {content: "\e957";font-family: 'icomoon' !important;font-size: 2.3rem;}


  .drop-down-nav {align-self: stretch;}

  .list-item-nav:not(:last-child) > a:after, .nav .nav-list .nav-list__item:not(:nth-last-child(2)):after {content: "" !important;position: absolute;left: 0;right: 0;bottom: -5px !important;top: unset !important;background: linear-gradient(to left, rgba(179, 179, 179, 0) 0%, hsl(144.1deg 98.39% 90%) 50%, rgba(179, 179, 179, 0) 100%) !important;height: 1px;}
  .list-item-nav:not(:last-child) > a:after {bottom: 0 !important;}
  .drop-down-nav {opacity: 1;pointer-events: all;overflow: hidden;}
  /*.drop-down-nav.active {opacity: 1;pointer-events: all;}*/


  .header-top-links a.donation-link.header-donate {color: var(--primary-color);width: fit-content;margin: unset !important;margin-inline-start: auto !important;border: 1px solid var(--primary-color);border-radius: 6px;font-size: 14px;display: inline-flex !important;align-items: center;gap: 8px;}
  .header .header-top-links {justify-content: space-between !important;width: 100%; padding-inline: 12px !important;flex-direction: row;border-top: 4px solid var(--primary-color);}
  .nav .nav-list__item.logo {margin: unset;}
  .header-top-links .spacer {display: none;}
  .list-item-nav > a:hover, .list-item-nav.active > a {background-color: transparent !important;}

  .section-social {padding-top: 32px;padding-bottom: calc(var(--bottom-navigation-height, 60px) + 28px);}
  .section-social .section-social-inner {flex-direction: column;align-items: flex-start;gap: 12px;}
  .share-social-list {gap: 8px;}
  .share-social-list .social-item a,
  .share-social-list .social-item .copy-link-button {width: 42px;height: 42px;}

  .breadcrumbs .breadcrumb__item {max-width: 210px;flex-shrink: 0;}


  .cards-wrapper {gap: var(--spacer-4);grid-template-columns: 1fr}

  .button-play {width: 50px;height: 50px;}
  .button__shape {width: 8px;height: 25px;}
  .mute-sound {width: 35px;height: 35px;border-width: 3px;}
  .mute-sound .icon-sound-on, .mute-sound .icon-sound-off {font-size: 2rem;}
  .button__shape--one, .button__shape--two {transform: translateX(2px);}
  .section:not(.section-hero) {padding-inline: 20px;}
  .section-services .cards-wrapper {grid-template-columns: 1fr;}


  .section-projects .cards-wrapper {padding-bottom: 30px;}
  :is(.section-stories, .section-projects, .news-section) .swiper-pagination-bullet {width: 14px;height: 14px;}
  :is(.section-stories, .section-projects, .news-section) .swiper-pagination-bullet-active {background: var(--primary-color);}
  :is(.section-stories, .section-projects, .news-section) .swiper-pagination {bottom: 0 !important;display: flex;align-items: center;justify-content: center;}



  .section-stories .section-wrapper {flex-direction: column}
  .section-stories .stories-wrapper {transform: unset !important;position: unset;width: 100%;padding-bottom: 30px;}
  .section-stories .section-stories-inner {position: unset;}
  .section-stories .column-stories {transform: unset !important;}
  .section-stories {min-height: auto;margin-block: var(--padding-section)}

  .section-stats .section-wrapper {flex-direction: column;align-items: stretch;}
  .section-stats .stats-cards {grid-template-columns: 1fr;flex: unset;}
  .section-stats .stats-cards .card {aspect-ratio: unset;padding: var(--padding-card);height: 140px}
  .section-stats .card-number {min-width: 100px}


  .news-section .card-inner {left: 0;right: 0;bottom: 0;width: 100%;box-shadow: unset;}
  .news-section .cards-wrapper {grid-template-columns: 1fr;}



  .news-section .cards-wrapper.swiper {padding-bottom: 30px;}


  .media-cards {grid-template-columns: 1fr;grid-template-rows: unset;}
  .media-cards .featured-tall {grid-row: unset;}
  .media-cards .featured-wide {grid-column: unset;}
  .media-cards .card:nth-child(n + 3) {display: none;}


  .partners-section .partners-swiper .swiper-slide {display: grid;grid-template-columns: 1fr 1fr;gap: 10px;}
  .partners-section .logo-wrapper {max-width: 100%}
  .partners-section .partners-swiper .swiper-slide .logo {flex: 1;padding: 4px;}
  .partners-section .logo img {width: auto;aspect-ratio: 1 / 1;}
  .partners-section .swiper.partners-swiper {padding-bottom: 30px !important;}
  .partners-section .swiper-pagination {display: flex;align-items: center;justify-content: center;}

  .section-bg .section-content {max-width: 90%;margin: 0 auto;}



  .regions-page .regions-section .map-wrapper {flex-direction: column;align-items: center;gap: 40px;}
  .regions-page .regions-section .map-container {flex-direction: column;}


  .members-page .section-members .cards-wrapper {grid-template-columns: 1fr 1fr}

  .service-inner-page .section-lists .cards-wrapper {grid-template-columns: 1fr 1fr;gap: 30px;}

  .story-inner-page .story-details {flex-direction: column;}

  /* Vertical categories layout on mobile */
  .section-categories-vertical .category-item-header {flex-direction: column;text-align: center;}
  .section-categories-vertical .category-item-img {width: 120px;height: 120px;}
  .section-categories-vertical .category-item-info {align-items: center;}
  .section-products .cards-wrapper .card > .card-link {display: flex;flex-direction: column;height: 100%;}
  :is(.service-inner-page, .products-page) .section-products .cards-wrapper {grid-template-columns: repeat(2, 1fr);}
  :is(.service-inner-page, .products-page) .section-products .card-img {
    aspect-ratio: 3 / 4;
    height: auto;
  }
  .service-inner-page .section-lists .card-circle {text-align: center}
  .service-inner-page .section-lists .card-img:after {inset-inline-end: -5px;width:25px}
  .service-inner-page .section-lists .card-circle .card-img:before {inset-inline-end: 14px;width: 15px;bottom: 7px;}
  .service-inner-page .section-lists .card-circle .card-img:after {inset-inline-end: 0px;}
  .service-inner-page .section-lists.grid-4 .card-circle .card-img:after {inset-inline-end: -10px;}
  .service-inner-page .section-lists.grid-4 .card-circle .card-img:before {inset-inline-end: 10px;bottom: 6px;}

  .service-inner-page .media-cards .featured-tall {grid-row: unset !important;}
  .service-inner-page .media-cards .featured-wide {grid-column: unset;}


  .partners-page .section-partners .cards-wrapper {grid-template-columns: 1fr 1fr;}

  .donation-page .form-section .donation-wrapper {flex: unset;width: 100%;}


  .story-page .section-stories .cards-wrapper {grid-template-columns: 1fr;}
  :is(.video-page, .gallery-page) .cards-wrapper {grid-template-columns: 1fr;}
  .plans-page .intro-section .cards-wrapper {grid-template-columns: 1fr;}
  .contactus-container {flex-direction: column;}
  .contactus-container .form-wrapper {flex: unset;width: 100%;}
  .contactus-container .contact-details {padding: 0;border: unset}

  .section-bg {padding-inline: 0}

  .footer .footer-wrapper {flex-wrap: wrap;gap: 20px;justify-content: center;padding-inline: 20px}
  .footer-logo {width: 100%;}
  /*.footer-form {padding: 0 20px;}*/
  .footer .footer-bottom .app-wrapper {flex-direction: column;gap: 15px;}
  .footer .footer-bottom {padding-bottom: calc(var(--bottom-navigation-height, 55px) + 20px);}
  .footer .footer-socials {display: none}
  .footer-list {width: 100%;display: flex;flex-direction: column;align-items: start;justify-content: start;text-align: start;}


  .content-inner-page .preview-image {height: 200px;background: unset;}
  .content-inner-page .preview-image img {max-width: 100%;max-height: 100%;}

  .about-page .story-section .step-item {flex: 1 0 85%;gap: 15px}
  .services-page .section-services .card > a {flex-direction: column;gap: 10px;}
  .section-news-details h2.section-title {display: none;}
  .regions-page .regions-section .map-item:before {display: none}

  .section-projects .card-number {font-size: 3rem}
  .modal-title {padding-inline: 20px}
  .reports-page .reports-section .icon-download1 {font-size: 1.3rem;}
  .reports-page .reports-section .icon-eye {font-size: 1rem;}

  html[dir="ltr"] {
    font-size: 82.5%;
  }



}
