/* ==========================================================================
   Template: website_v3/templates/website_v3/includes/header.html
   URL:      every website page (included by website_v3/base.html)
   Moved from the inline <style> block of this template on 2026-11-19.
   ========================================================================== */

   .top-bar > .container-fluid > .d-flex {
      align-items: center;
   }

   .top-bar .info-right {
      align-items: center;
   }

   @media (min-width: 992px) {
      .top-bar > .container-fluid > .d-flex {
         flex-wrap: nowrap;
         gap: 1rem;
      }

      .top-bar .quick-connect > span {
         white-space: nowrap;
      }

      .top-bar .info-right {
         flex: 1 1 auto;
         min-width: 0;
      }

      .top-bar .header-address {
         min-width: 0;
         overflow: hidden;
         text-overflow: ellipsis;
      }

      .top-bar .social-share-alt {
         flex: 0 0 auto;
         white-space: nowrap;
      }
   }



  /* ---------- Top bar (below 1200px) ----------------------------------------
     A slim green strip above the logo bar: menu button and Quick Connect pill on
     the left, round social buttons on the right. Desktop keeps the full bar. */
  @media (max-width: 1199.98px) {
    .header .top-bar {
      padding-top: 7px !important;
      padding-bottom: 7px !important;
      background: linear-gradient(90deg, #178a43, #178a43 55%, #178a43) !important;
    }
    .top-bar > .container-fluid > .d-flex {
      gap: 10px;
    }
    .topbar-menu {
      justify-content: center;
      width: 34px;
      height: 34px;
      margin-right: 8px;
      border-radius: 11px;
      background: rgba(255, 255, 255, 0.16);
      font-size: 1.15rem;
    }
    .topbar-menu:active {
      transform: scale(0.92);
    }
    .top-bar .topbar-text > a.dropdown-toggle {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      height: 34px;
      padding: 0 14px;
      border-radius: 50rem;
      background: rgba(255, 255, 255, 0.16);
      color: #fff !important;
      font-size: 14px;
      white-space: nowrap;
    }
    .top-bar .topbar-text > a.dropdown-toggle::after {
      margin-left: 2px;
      transition: transform 0.2s ease;
    }
    .top-bar .topbar-text > a.dropdown-toggle.show::after {
      transform: rotate(180deg);
    }
    /* round social buttons, without the theme's dividers */
    .top-bar .social-share-alt {
      gap: 6px;
    }
    .top-bar .social-share-alt > span:not(:has(a)) {
      display: none !important;
    }
    .top-bar .social-share-alt a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      margin: 0;
      padding: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.16);
      color: #fff;
      font-size: 15px;
      transition: background-color 0.2s ease, transform 0.15s ease;
    }
    .top-bar .social-share-alt a::before {
      display: none;
    }
    .top-bar .social-share-alt a i {
      margin: 0 !important;
    }
    .top-bar .social-share-alt a:hover {
      background: #fff;
      color: #178a43;
    }
    .top-bar .social-share-alt a:active {
      transform: scale(0.9);
    }
    .top-bar .info-right > span:not(.social-share-alt) {
      font-size: 13px;
    }
  }

  @media (max-width: 359.98px) {
    .top-bar .topbar-text > a.dropdown-toggle {
      padding: 0 10px;
      font-size: 13px;
    }
    .top-bar .social-share-alt a {
      width: 29px;
      height: 29px;
      font-size: 13px;
    }
  }

  /* Quick Connect dropdown: a white card with a call row and an email row */
  .top-bar .qc-menu {
    min-width: 270px;
    margin-top: 8px !important;
    padding: 8px !important;
    background: #fff !important;
    border-radius: 18px;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.35) !important;
  }
  .top-bar .qc-menu li {
    margin: 0;
  }
  .top-bar .qc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 12px;
    color: #2b2b2b !important;
    text-decoration: none;
  }
  .top-bar .qc-item:hover {
    background: #fff4e6;
  }
  .top-bar .qc-item__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #fff1df;
    color: #e2700a !important;
    font-size: 15px;
  }
  .top-bar .qc-item--wa .qc-item__icon {
    background: #e9f8ee;
    color: #178a43 !important;
    font-size: 18px;
  }
  .top-bar .qc-item__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .top-bar .qc-item__text small {
    color: #8a7a6a !important;
    font-size: 11px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .top-bar .qc-item__text span {
    overflow: hidden;
    text-overflow: ellipsis;
    color: #2b2b2b !important;
    font-size: 14px !important;
    font-weight: 600;
    white-space: nowrap;
  }

  /* Below 1200px: the logo in the centre of a slim light green strip (Diwali
     lamps either side of it, see diwali_header.css). The strip matches the
     Diwali section's top (#f4fcf3 in diwali_home.css) so the two join. The
     bar's own menu button and Donate Now are hidden: the top bar and the
     bottom tab bar (.app-tabbar, below) carry the menu. */
  @media (max-width: 1199.98px) {
    .header .header-nav-wrapper.header-nav-wrapper,
    header .header-nav-wrapper.header-sticky.scroll-on {
      background: linear-gradient(180deg, #fbfefa 0%, #f4fcf3 100%);
      border: 0;
      border-radius: 0;
      box-shadow: none;
    }
    header .header-nav-wrapper.header-sticky.scroll-on {
      background: rgba(244, 252, 243, 0.94);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }
    .navbar-line {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .navbar .navbar-toggler.offcanvas-nav-btn,
    .navbar .header-actions {
      display: none !important;
    }
    /* beats style.css's zero / 2.5rem (!important) right margin on the logo */
    .header.header-1 .navbar .navbar-line .navbar-brand {
      margin: 0 auto !important;
      padding: 0;
    }
    /* a slim bar: the logo and lamps keep their size, only the space
       above and below the logo goes */
    .header.header-1 .navbar {
      padding-top: 4px;
      padding-bottom: 4px;
    }
    .navbar-brand img {
      display: block;
    }
  }

  /* ---------- Bottom tab bar (below 1200px) ---------------------------------- */
  .app-tabbar {
    display: none;
  }

  @media (max-width: 1199.98px) {
    /* clean floating bar: white card, one saffron accent. A soft saffron pill
       glides to the active tab's icon, and Donate is a raised saffron button set into a notch in the bar */
    .app-tabbar {
      --tab-ease: cubic-bezier(0.22, 1, 0.36, 1);
      --tab-accent: #e8780f;
      --tab-accent-soft: #fff1e2;
      --tab-muted: #7b7f86;
      --tab-ink: #1f2328;
      position: fixed;
      left: 12px;
      right: 12px;
      bottom: calc(4px + env(safe-area-inset-bottom, 0px));
      z-index: 1030;
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      max-width: 480px;
      height: 66px;
      margin: 0 auto;
      padding: 0 0px;
      isolation: isolate;
      /* the shadow follows the notched card below */
      filter: drop-shadow(0 8px 18px rgba(16, 24, 40, 0.12)) drop-shadow(0 1px 2px rgba(16, 24, 40, 0.08));
      transition: transform 0.4s var(--tab-ease), opacity 0.3s ease;
      animation: tabbar-rise 0.6s var(--tab-ease) backwards;
    }
    /* the white card, with a notch round the Donate button; on its own layer so
       the mask doesn't cut off the raised button */
    .app-tabbar::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      border-radius: 20px;
      background: #fff;
      -webkit-mask: radial-gradient(circle 34px at 50% -2px, transparent 97%, #000 100%);
      mask: radial-gradient(circle 34px at 50% -2px, transparent 97%, #000 100%);
    }
    .app-tabbar.is-hidden {
      transform: translateY(calc(100% + 24px));
      opacity: 0;
    }

    /* the pill behind the active icon */
    .app-tabbar__track {
      position: absolute;
      inset: 0 4px;
      pointer-events: none;
    }
    .app-tabbar__pill {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      width: 20%;
      transform: translateX(calc(var(--i, 0) * 100%));
      transition: transform 0.5s var(--tab-ease), opacity 0.25s ease;
    }
    .app-tabbar__pill::before {
      content: "";
      position: absolute;
      top: 10px;
      left: 50%;
      width: 52px;
      height: 30px;
      margin-left: -26px;
      border-radius: 15px;
      background: var(--tab-accent-soft);
    }
    .app-tabbar[data-active="none"] .app-tabbar__pill,
    .app-tabbar[data-active="2"] .app-tabbar__pill {
      opacity: 0;
    }

    .app-tab {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      gap: 7px;
      padding: 16px 0 0;
      border: 0;
      background: none;
      color: var(--tab-muted);
      font-family: inherit;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 0.01em;
      line-height: 1;
      text-decoration: none;
      -webkit-tap-highlight-color: transparent;
      transition: color 0.25s ease;
    }
    .app-tab i {
      font-size: 1.08rem;
      line-height: 1;
      transition: transform 0.35s var(--tab-ease);
    }
    .app-tab:hover,
    .app-tab:focus-visible {
      color: var(--tab-ink);
    }
    .app-tab:focus-visible {
      outline: none;
    }
    .app-tab:focus-visible i {
      outline: 2px solid var(--tab-accent);
      outline-offset: 6px;
      border-radius: 4px;
    }
    .app-tab.active {
      color: var(--tab-accent);
    }
    .app-tab.active i {
      animation: tab-settle 0.45s var(--tab-ease);
    }
    .app-tab:active i {
      transform: scale(0.88);
    }

    /* Donate: raised saffron button sitting in the notch */
    .app-tab--donate {
      padding-top: 40px;
      color: var(--tab-ink);
    }
    .app-tab__fab {
      position: absolute;
      top: -24px;
      left: 50%;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 54px;
      height: 54px;
      margin-left: -27px;
      border-radius: 50%;
      background: linear-gradient(145deg, #f8993a, #e0600f);
      color: #fff;
      box-shadow: 0 8px 16px -6px rgba(224, 96, 15, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35);
      transition: transform 0.35s var(--tab-ease), box-shadow 0.35s var(--tab-ease);
    }
    /* soft ring that expands out every few seconds */
    .app-tab__halo {
      position: absolute;
      inset: 0;
      border-radius: 50%;
      border: 2px solid rgba(232, 120, 15, 0.45);
      animation: fab-ring 2.8s var(--tab-ease) infinite;
    }
    .app-tab__fab i {
      position: relative;
      font-size: 1.2rem;
    }
    .app-tab--donate:hover .app-tab__fab {
      transform: translateY(-2px);
      box-shadow: 0 12px 20px -6px rgba(224, 96, 15, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }
    .app-tab--donate:active .app-tab__fab {
      transform: scale(0.93);
    }
    .app-tab--donate.active {
      color: var(--tab-accent);
    }

    @keyframes tabbar-rise {
      from { transform: translateY(110%); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }
    @keyframes tab-settle {
      0% { transform: translateY(3px) scale(0.9); }
      60% { transform: translateY(-2px) scale(1.06); }
      100% { transform: translateY(0) scale(1); }
    }
    @keyframes fab-ring {
      0% { transform: scale(1); opacity: 0.9; }
      70%, 100% { transform: scale(1.45); opacity: 0; }
    }

    @media (prefers-reduced-motion: reduce) {
      .app-tabbar,
      .app-tabbar__pill,
      .app-tab i,
      .app-tab__fab {
        animation: none;
        transition: none;
      }
      .app-tab__halo {
        display: none;
      }
    }

    /* room under the page for the tab bar; lift the chat bubble and
       scroll-to-top button above it (only on pages that have the bar) */
    body:has(.app-tabbar) {
      padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }
    body:has(.app-tabbar) #at-chat-bubble,
    body:has(.app-tabbar) .scroll-top {
      bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
    }
    body:has(.app-tabbar) #at-preview-strip {
      bottom: calc(125px + env(safe-area-inset-bottom, 0px)) !important;
    }
    /* the phone menu and pop-ups cover the tab bar */
    body:has(.offcanvas.show) .app-tabbar,
    body:has(.donate-modal-overlay.open) .app-tabbar,
    body:has(.donate-modal-overlay.active) .app-tabbar {
      display: none;
    }
  }

  @keyframes hdr-heartbeat {
    0%, 60%, 100% { transform: scale(1); }
    30% { transform: scale(1.2); }
  }

  .topbar-menu {
    display: inline-flex;
    align-items: center;
    margin-right: 12px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
  }


  @media screen and (max-width: 1000px) {
    .mobile_nav_active {
        transform: translateX(0);
        transition: ease-out .4s;
    }
}
@media screen and (max-width: 1000px) {
    .mobile_nav {
        position: absolute;
        top: 0;
        left: 0;
        background-color: #fff;
        width: 100vw;
        height: 100vh;
        z-index: 9999;
        padding: 40px 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        transform: translateX(-100%);
        transition: transform ease-in .4s;
        overflow-y: scroll;
    }
}

.navbar-brand img {
    width: 150px;
    height: auto;
}

/* ---------- Nav bar ---------------------------------------------------------
   A floating white pill card, nearly full width, on a cream band with a
   saffron-gold-green line along the top: diya + logo in a cream pill on the
   left, the links in a soft saffron pill (white pill = current page), and
   Donate Now + diya in a matching cream pill on the right. */
.header-nav-wrapper {
    background: linear-gradient(180deg, #fff9f0 0%, #fff2e0 100%);
}

/* nav icons, shown in the phone menu only */
.header .navbar .navbar-nav .nav-link i {
    margin-right: 8px;
    font-size: 0.9em;
    color: #f08a1c;
}

/* the diyas and dividers only show on the desktop card */
.hdr-diya,
.hdr-brand-sep {
    display: none;
}

@media (min-width: 1200px) {
    /* white fading to the light green the Diwali section (diwali_home.css)
       starts with, so the header and the section read as one backdrop */
    .header-nav-wrapper,
    header .header-nav-wrapper.header-sticky.scroll-on {
        background:
            linear-gradient(90deg, #f57c00, #ffc233 50%, #178a43) top / 100% 3px no-repeat,
            radial-gradient(40% 120% at 50% 0%, rgba(255, 240, 180, 0.35), transparent 70%),
            linear-gradient(180deg, #fbfefa 0%, #f4fcf3 100%);
    }

    header .header-nav-wrapper.header-sticky.scroll-on {
        box-shadow: 0 8px 24px -16px rgba(18, 136, 7, 0.35);
    }

    .header.header-1 .navbar {
        padding: 12px 0 0px;
    }

    /* the card hugs its three pills (logo, links, donate), centred, with an
       even 18px between them */
    .header.header-1 .navbar .navbar-line.container {
        position: relative;
        display: flex;
        align-items: center;
        gap: 50px;
        width: fit-content;
        max-width: calc(100% - 40px);
        margin: 0 auto;
        padding: 10px 8px 10px;
        background: #fff;
        border: 1px solid #cfe9ca;
        border-radius: 50rem;
        box-shadow:
            0 10px 30px -14px rgba(18, 136, 7, 0.28),
            0 4px 14px -8px rgba(196, 98, 10, 0.2);
    }

    /* ----- logo pill (left) and donate pill (right) ----- */
    .header.header-1 .navbar .navbar-brand,
    .hdr-donate-pill {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        background: linear-gradient(90deg, #fff3e2, #fffaf3 55%, #fff);
        border: 1px solid #f6d7ac;
        border-radius: 50rem;
    }

    .header.header-1 .navbar .navbar-brand {
        margin-right: 0;
        padding: 4px 20px 4px 30px;
    }

    /* Bootstrap stretches the menu to fill the bar; keep it to its links */
    .header.header-1 .navbar .offcanvas-nav,
    .header.header-1 .navbar .offcanvas-nav .offcanvas-body {
        flex: 0 0 auto;
        padding: 0;
    }

    .header.header-1 .navbar .offcanvas-nav .navbar-nav {
        margin: 0 !important;
    }

    .hdr-donate-pill {
        padding: 5px 5px 5px 7px;
        background: linear-gradient(270deg, #fff3e2, #fffaf3 55%, #fff);
    }

    .header.header-1 .navbar .navbar-brand img {
        width: 118px;
    }

    .hdr-diya {
        position: relative;
        z-index: 1;
        display: inline-flex;
        flex: 0 0 auto;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: 2px solid #f6c98c;
        background: radial-gradient(circle at 50% 45%, #ffe9b8, #fbc26b 70%, #f4a640);
        box-shadow: 0 0 0 3px #fff7ea, 0 6px 14px -6px rgba(240, 130, 20, 0.6);
    }

    .hdr-diya svg {
        width: 100%;
        height: 100%;
    }

    .hdr-diya__flame {
        transform-box: fill-box;
        transform-origin: 50% 100%;
        animation: hdr-flame 1.6s ease-in-out infinite;
    }

    @keyframes hdr-flame {
        0%, 100% { transform: scale(1, 1) skewX(0); }
        30% { transform: scale(0.94, 1.08) skewX(3deg); }
        60% { transform: scale(1.04, 0.95) skewX(-2deg); }
    }

    /* the warm light round the flame breathes */
    .hdr-diya__glow {
        transform-box: fill-box;
        transform-origin: 50% 50%;
        animation: hdr-glow 2.4s ease-in-out infinite;
    }

    @keyframes hdr-glow {
        0%, 100% { opacity: 0.7; transform: scale(0.92); }
        50% { opacity: 1; transform: scale(1.06); }
    }

    .hdr-brand-sep {
        position: relative;
        z-index: 1;
        display: block;
        width: 2px;
        height: 42px;
        border-radius: 2px;
        background: linear-gradient(180deg, transparent, #f2b46b, transparent);
    }

    /* ----- links pill ----- */
    .header.header-1 .navbar .navbar-nav {
        gap: 4px;
        padding: 5px;
        background: linear-gradient(135deg, #e6f6e3, #d6f0d1);
        border: 1px solid #b9e2b2;
        border-radius: 50rem;
        box-shadow: 0 4px 12px -8px rgba(18, 136, 7, 0.45);
    }

    .header.header-1 .navbar .navbar-nav > li > a.nav-link,
    .header.header-1 .navbar.scroll-on .navbar-nav > li > a.nav-link {
        display: inline-flex;
        align-items: center;
        padding: 0.75rem 1.1rem;
        border-radius: 50rem;
        white-space: nowrap;
        color: #1e4d2b;
        font-size: 1.05rem;
        font-weight: 500;
        line-height: 1;
        transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    }

    .header.header-1 .navbar .navbar-nav > li > a.nav-link i {
        display: none;
    }

    .header.header-1 .navbar .navbar-nav > li:hover > a.nav-link {
        color: #128807;
        background: #c4e8bd;
    }

    /* the theme's hover/focus colours would otherwise win on the current page */
    .header.header-1 .navbar .navbar-nav > li > a.nav-link.active,
    .header.header-1 .navbar .navbar-nav > li:hover > a.nav-link.active,
    .header.header-1 .navbar .navbar-nav > li > a.nav-link.active:focus {
        color: #128807 !important;
        opacity: 1;
        background: #fff;
        box-shadow: 0 2px 10px -3px rgba(18, 136, 7, 0.35), 0 0 0 1px #b9e2b2;
    }

    /* ----- Donate Now ----- */
    .header.header-1 .navbar .header-actions {
        flex: 0 0 auto;
        margin-left: 0;
    }

    .hdr-donate {
        display: inline-flex;
    }

    .header.header-1 .navbar .header-actions .hdr-donate .btn {
        align-items: center;
        gap: 10px;
        padding: 0.95rem 1.7rem;
        border-radius: 50rem;
        background: linear-gradient(135deg, #ffa53a, #f07800);
        color: #fff;
        font-size: 15px;
        font-weight: 700;
        white-space: nowrap;
        box-shadow: 0 10px 22px -10px rgba(240, 120, 0, 0.85) !important;
        transition: transform 0.25s ease;
        width: 160px;
        height: 50px;
    }

    .header.header-1 .navbar .header-actions .hdr-donate .btn:hover {
        transform: translateY(-2px);
    }

    .hdr-donate .btn i {
        font-size: 1.2em;
        animation: hdr-heartbeat 1.6s ease-in-out infinite;
    }

    /* the sticky bar keeps the card, just tighter */
    header .header-nav-wrapper.header-sticky.scroll-on .navbar {
        padding: 6px 0;
    }

    header .header-nav-wrapper.header-sticky.scroll-on .navbar .navbar-line {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    header .header-nav-wrapper.header-sticky.scroll-on .navbar-brand img {
        width: 100px;
    }

    header .header-nav-wrapper.header-sticky.scroll-on .hdr-diya {
        width: 46px;
        height: 46px;
    }

    header .header-nav-wrapper.header-sticky.scroll-on .navbar .navbar-nav > li > a.nav-link {
        padding: 0.65rem 1rem;
        font-size: 1rem;
    }

    header .header-nav-wrapper.header-sticky.scroll-on .navbar .header-actions .hdr-donate .btn {
        padding: 0.8rem 1.4rem;
        font-size: 1rem;
    }
}

/* below 1200px the sticky bar just gets a slightly smaller logo */
@media (max-width: 1199.98px) {
    header .header-nav-wrapper.header-sticky.scroll-on .navbar-brand img {
        width: 125px;
    }
}

@media (max-width: 768px) {
    header .header-nav-wrapper.header-sticky.scroll-on .navbar-brand img {
        width: 96px;
    }
}

/* 1200-1399px: less room, so tighter links */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    /* style.css pulls the logo 50px left here, which would push it out of the card */
    .header.header-1 .navbar .navbar-brand {
        left: 0;
    }

    .header.header-1 .navbar .navbar-nav > li > a.nav-link,
    .header.header-1 .navbar.scroll-on .navbar-nav > li > a.nav-link {
        padding: 0.7rem 0.9rem;
        font-size: 1rem;
    }

    .header.header-1 .navbar .header-actions .hdr-donate .btn {
        padding: 0.85rem 1.3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hdr-donate .btn i,
    .hdr-diya__flame,
    .hdr-diya__glow {
        animation: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .navbar-brand img {
        width: 112px;
    }
}
