/* Dawah public navigation and filters V22B */

/* Desktop Services navigation */

.top-services-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #dce6dc;
  border-radius: 9px;
  background: #f5f8f2;
  color: #295b46;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
}

.top-services-link:hover {
  border-color: #b7cbb9;
  background: #ecf3e7;
}

.top-services-link span {
  font-size: 15px;
  line-height: 1;
}

/* Resources and Downloads */

body[data-public-shell] .filter-bar {
  display: grid !important;
  grid-template-columns:
    repeat(auto-fit, minmax(170px, 1fr))
    auto !important;
  align-items: end !important;
  gap: 10px !important;
  margin: 18px 0 26px !important;
  padding: 10px !important;
  border: 1px solid #dfe7df !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 9px 28px rgba(18, 61, 50, 0.055) !important;
}

body[data-public-shell] .filter-bar > label,
body[data-public-shell] .filter-bar > div {
  display: grid !important;
  min-width: 0 !important;
  gap: 5px !important;
  margin: 0 !important;
  color: #708178 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
}

body[data-public-shell] .filter-bar input,
body[data-public-shell] .filter-bar select {
  width: 100% !important;
  height: 45px !important;
  min-height: 45px !important;
  margin: 0 !important;
  padding: 0 13px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  outline: 0 !important;
  background: #f3f7f2 !important;
  color: #214638 !important;
  box-shadow:
    inset 0 0 0 1px rgba(36, 83, 63, 0.04) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

body[data-public-shell] .filter-bar input:focus,
body[data-public-shell] .filter-bar select:focus {
  border-color: #8caf9d !important;
  background: #fff !important;
  box-shadow:
    0 0 0 3px rgba(34, 105, 76, 0.1) !important;
}

body[data-public-shell] .filter-bar .button,
body[data-public-shell] .filter-bar button {
  align-self: end !important;
  min-width: 115px !important;
  height: 45px !important;
  min-height: 45px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background:
    linear-gradient(145deg, #126047, #094737) !important;
  color: #fff !important;
  box-shadow:
    0 7px 16px rgba(10, 73, 56, 0.17) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

/* Bayan filters */

body[data-public-shell] .m18-filters {
  display: grid !important;
  grid-template-columns:
    minmax(230px, 1.6fr)
    repeat(3, minmax(135px, 0.7fr)) !important;
  align-items: stretch !important;
  gap: 9px !important;
  margin: 16px 0 23px !important;
  padding: 10px !important;
  border: 1px solid #dfe7df !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow:
    0 9px 28px rgba(18, 61, 50, 0.055) !important;
}

body[data-public-shell] .m18-search,
body[data-public-shell] .m18-filter {
  min-width: 0 !important;
  min-height: 52px !important;
  margin: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  background: #f3f7f2 !important;
  box-shadow:
    inset 0 0 0 1px rgba(36, 83, 63, 0.04) !important;
}

body[data-public-shell] .m18-search:focus-within,
body[data-public-shell] .m18-filter:focus-within {
  border-color: #8caf9d !important;
  background: #fff !important;
  box-shadow:
    0 0 0 3px rgba(34, 105, 76, 0.1) !important;
}

body[data-public-shell] .m18-search input,
body[data-public-shell] .m18-filter select,
body[data-public-shell] .m18-filter input {
  min-width: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body[data-public-shell] .m18-live-status {
  grid-column: 1 / -1 !important;
  min-height: 24px !important;
  padding: 1px 4px 0 !important;
  color: #75867c !important;
  font-size: 10px !important;
}

/* Phone Services navigation */

.mobile-services-glyph {
  display: inline-grid !important;
  place-items: center;
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
  font-size: 17px !important;
  line-height: 1 !important;
}

/* Tablet */

@media (max-width: 1050px) {
  body[data-public-shell] .m18-filters {
    grid-template-columns:
      minmax(220px, 1.4fr)
      repeat(2, minmax(135px, 0.75fr)) !important;
  }
}

/* Phone */

@media (max-width: 720px) {
  .top-services-link {
    display: none;
  }

  body[data-public-shell] .filter-bar {
    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 14px 0 20px !important;
    padding: 8px !important;
    border-radius: 13px !important;
  }

  body[data-public-shell] .filter-bar input,
  body[data-public-shell] .filter-bar select {
    height: 47px !important;
    min-height: 47px !important;
    padding: 0 11px !important;
    font-size: 16px !important;
  }

  body[data-public-shell] .filter-bar .button,
  body[data-public-shell] .filter-bar button {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    height: 46px !important;
  }

  body[data-public-shell] .m18-filters {
    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 13px 0 19px !important;
    padding: 8px !important;
    border-radius: 13px !important;
  }

  body[data-public-shell] .m18-search {
    grid-column: 1 / -1 !important;
  }

  body[data-public-shell] .m18-search,
  body[data-public-shell] .m18-filter {
    min-height: 49px !important;
    border-radius: 9px !important;
  }

  body[data-public-shell] .m18-search input,
  body[data-public-shell] .m18-filter select,
  body[data-public-shell] .m18-filter input {
    font-size: 16px !important;
  }

  body[data-public-shell] .m18-live-status {
    text-align: center !important;
  }

  body[data-public-shell] .mobile-nav {
    justify-content: space-evenly !important;
  }

  body[data-public-shell] .mobile-nav a {
    min-width: 47px !important;
  }
}

/* Very small phones */

@media (max-width: 390px) {
  body[data-public-shell] .filter-bar,
  body[data-public-shell] .m18-filters {
    grid-template-columns: 1fr !important;
  }

  body[data-public-shell] .filter-bar > *,
  body[data-public-shell] .m18-filters > * {
    grid-column: 1 !important;
  }
}