@media (max-width:1100px) {
  .countries {
    grid-template-columns: 1fr;
  }

  .countries-intro p {
    max-width: none
  }

  .main-grid {
    grid-template-columns: 1fr
  }

  .boards-row {
    grid-template-columns: 1fr
  }

  .board-list {
    grid-template-columns: repeat(2, 1fr)
  }

  .cta {
    padding: 22px 30px 22px 100px
  }

  .cta-call {
    padding-left: 30px
  }

}

@media (max-width:860px) {
  .header-inner {
    display: flex;
    gap: 12px
  }

  .header-left,
  .header-right .social,
  .logo-desktop {
    display: none
  }

  .logo-mobile {
    display: block
  }

  .header-right {
    margin-left: auto;
    gap: 18px
  }

  .bell {
    display: inline-flex
  }

  /* smaller logo on mobile */
  .logo img {
    height: 38px
  }

  .countries {
    grid-template-columns: 1fr
  }

  .country-list {
    grid-template-columns: repeat(2, 1fr)
  }

  .region-select {
    height: auto;
    flex-direction: row;
    padding: 14px;
    justify-content: center
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px
  }

  .cta-title {
    margin-left: 0
  }

  .cta-call {
    margin-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .35);
    padding: 18px 0 0;
    width: 100%;
    max-width: none
  }

}

@media (max-width:600px) {
  .container {
    padding: 0 16px
  }

  .header-right {
    gap: 14px
  }

  .hero {
    min-height: 0
  }

  .hero {
    background-position: 78% center
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(8, 52, 96, .72), rgba(8, 52, 96, .5))
  }

  .hero-inner {
    padding-top: 36px;
    padding-bottom: 36px
  }

  .hero h1 {
    font-size: 24px
  }

  .search {
    flex-wrap: nowrap
  }

  .search .btn {
    padding: 12px 18px
  }

  /* more breathing room between the hero image and the country section */
  .countries {
    padding-top: 44px;
    padding-bottom: 36px;
    gap: 20px
  }

  .board-list {
    grid-template-columns: 1fr
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px
  }

  .cta h3 {
    font-size: 17px
  }

  .cta-title .mosque {
    width: 44px;
    height: 44px
  }

  /* footer: centred and stacked */
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 22px;
    padding-top: 26px;
    padding-bottom: 20px
  }

  .footer-about p {
    margin: 0 auto
  }

  .footer-brand {
    order: -1
  }

  .footer-logo {
    height: 100px
  }

  .footer-follow {
    justify-self: center
  }

  .footer-follow div {
    justify-content: center
  }

  .footer-bottom {
    padding: 14px 0 22px
  }

  .footer-bottom small {
    display: block;
    line-height: 1.6
  }
}

/* mobile: no decorative patterns */
@media (max-width:860px) {
  .footer::before,
  .footer::after {
    display: none
  }

  .cta {
    background: linear-gradient(95deg, #0b3d6e, #124f86 60%, #0b3d6e)
  }
}

@media (max-width:420px) {
  .logo img {
    height: 32px
  }
}

/* ---- header navigation: collapse into the menu button on tablets / phones ---- */
@media (max-width:1200px) {
  .main-nav {
    display: none
  }

  .menu-toggle {
    display: inline-flex
  }

  .header-right {
    gap: 12px
  }
}

@media (max-width:860px) {
  /* search icon removed on mobile */
  .search-toggle-m,
  .js-search-toggle {
    display: none !important
  }

  .header-search {
    padding: 14px 0 16px
  }

  .hs-form {
    padding-left: 12px
  }
}

@media (max-width:600px) {
  .hs-form .btn {
    display: none
  }

  .hs-form input {
    font-size: 16px
  }
}
/* ---- CTA phone number: stop it overflowing the card on mobile ---- */
@media (max-width:860px) {
  .cta-call {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0
  }

  .cta-call .ico {
    flex: 0 0 auto
  }

  .cta-call > div {
    min-width: 0;
    flex: 1 1 auto
  }

  /* label on one line, number on the next */
  .cta-call strong a {
    display: block;
    white-space: nowrap;
    font-size: clamp(20px, 6vw, 28px);
    line-height: 1.2;
    margin-top: 2px
  }

  .cta-call p {
    overflow-wrap: break-word
  }
}

@media (max-width:360px) {
  .cta-call .ico {
    width: 36px;
    height: 36px
  }
}

/* ---- desktop only: hide the "Select Your Country / Region" section ----
   (the menu above already links to every country; tablets / phones keep the section).
   1201px matches the point where the header menu turns into the menu button. */
@media (min-width:1201px) {
  #countries.countries {
    display: none
  }
}