@media (max-width: 1550px) {
  .masthead-shell {
    gap: 28px;
  }

  .masthead-logo .custom-logo {
    max-width: 250px;
  }

  #masthead .masthead-menu {
    gap: 40px;
  }

  .nav>li>a {
    font-size: 17px;
  }

  .masthead-actions {
    gap: 30px;
    margin-left: 6px;
  }

  .masthead-phone span {
    font-size: 14px;
  }

  .btn-1,
  .btn-2 {
    min-width: 115px !important;
    min-height: 42px !important;
    padding: 0 13px;
  }

  .heading,
  .footer-heading-block h2 {
    font-size: 40px;
    line-height: 48px;
  }

  .sub-heading,
  .footer-heading-block h6 {
    font-size: 20px;
    line-height: 30px;
    max-width: 820px;
  }

  #masthead .masthead-menu>li>.sub-menu {
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
  }

  .masthead-logo-center .custom-logo {
    width: 147px;
  }

  #masthead.scrolled .masthead-logo-center .custom-logo {
    width: 90px;
  }
}

@media (max-width: 1366px) {
  .masthead-shell {
    gap: 20px;
  }

  .masthead-logo .custom-logo {
    max-width: 220px;
  }

  #masthead .masthead-menu {
    gap: 40px;
  }

  .nav>li>a {
    font-size: 17px;
    letter-spacing: 0.6px;
  }

  .masthead-actions {
    gap: 20px;
  }

  .masthead-login-btn {
    padding-left: 16px;
    padding-right: 16px;
  }

  .masthead-phone i {
    font-size: 17px;
  }

  .btn-1,
  .btn-2 {
    min-width: 100px !important;
    min-height: 40px !important;
    padding: 0 12px;
  }
}

@media (max-width: 1200px) {
  .masthead-shell {
    min-height: 90px;
    gap: 14px;
  }

  .masthead-logo .custom-logo {
    max-width: 200px;
  }

  #masthead .masthead-menu {
    gap: 32px;
  }

  .nav>li>a {
    font-size: 15px;
  }

  .masthead-actions {
    gap: 16px;
  }

  .btn-1,
  .btn-2 {
    min-width: 90px !important;
    min-height: 38px !important;
    font-size: 12px !important;
    padding: 0 10px;
  }

  .swiper-slide {
    aspect-ratio: 4 / 2;
  }
  .masthead-logo-center .custom-logo {
    width: 127px;
  }

  #masthead.scrolled .masthead-logo-center .custom-logo {
    width: 70px;
  }

}

@media (max-width: 1024px) {
  .masthead-shell {
    min-height: 80px;
  }

  .masthead-logo .custom-logo {
    max-width: 170px;
  }

  #masthead .masthead-menu {
    gap: 25px;
  }

  .nav>li>a {
    font-size: 13px;
    letter-spacing: 0.4px;
  }

  .masthead-login-btn {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 12px;
  }

  .btn-1,
  .btn-2 {
    min-width: 80px !important;
    min-height: 36px !important;
    font-size: 11px !important;
    padding: 0 8px;
  }

  .submit-btn {
    min-width: 180px !important;
    min-height: 45px !important;
    font-size: 16px !important;
    padding: 0 10px !important;
  }

  .footer-watermark-logo {
    max-width: 70%;
    margin-bottom: -30px;
  }

  .footer-columns {
    grid-template-columns: 1.3fr 1.4fr 1fr 1fr;
    gap: clamp(24px, 3vw, 40px);
  }

  #masthead2 .logo-wrapper .custom-logo {
    width: 120px;
    transition:
    transform 0.6s cubic-bezier(.4, 0, .2, 1),
    filter 0.3s ease,
    all 0.3s ease-in-out;
  }

  #masthead2.scrolled .logo-wrapper .custom-logo {
    width: 80px;
  }


  .footer-brokercheck img {
    max-width: 180px;
  }

  #scrollToTop {
    position: fixed;
    right: 15px;
    bottom: 15px;
    width: 40px;
    height: 40px;
  }

  .slider-nav {
    gap: 6px;
  }

  .nav-line {
    width: 60px;
  }

  .nav-btn {
    padding: 10px 16px;
  }

  .swiper-slide {
    aspect-ratio: 4 / 2.5;
  }

  .slide-bg-zoom.zoom-in {
    animation: slowZoomMobile 4s ease-out forwards;
  }

  @keyframes slowZoomMobile {
    from {
      transform: scale(1.06) translateZ(0);
    }

    to {
      transform: scale(1) translateZ(0);
    }
  }

  .section-padding {
    padding: 50px 0;
  }

  .section-padding-lg {
    padding: 60px 0;
  }

  .dual-image-block__inner {
    gap: 60px;
  }

  .dual-image-block__inner {
    grid-template-columns: 1fr;
  }

  .dual-image-block__left {
    max-width: 570px;
    margin: 0 auto;
  }

  .security-solution {
    padding-bottom: 100px;
  }

  .about-contact__quote-box {
    transform: translateY(-50%);
  }

  .wwd-card {
    height: 410px;
    max-width: 100%;
  }

  .wwd-card-toggle {
    width: 65px;
    height: 62px;
  }
}




@media (max-width: 767px) {
  #masthead2 .logo-wrapper .custom-logo {
    width: 100px;
  }
  #masthead2.scrolled .logo-wrapper .custom-logo {
    width: 80px;
  }

  .slide-bg-zoom {
    transform: none;
    animation: none !important;
  }

  .swiper-slide {
    aspect-ratio: 4 / 3;
  }

  .shutter-panels .panel:nth-child(n+5) {
    display: none;
    /* fewer panels on small screens */
  }

  /* Same desktop layout — vertical, edge-anchored — just smaller */
  .slider-nav {
    gap: 4px;
  }

  .nav-line {
    width: 36px;
  }

  .nav-btn {
    font-size: 13px;
    padding: 8px 6px;
    min-width: 44px;
    min-height: 44px;
  }

  .slider-nav-prev {
    left: 4px;
  }

  .slider-nav-next {
    right: 4px;
  }

  /* Keep dots clear of the nav buttons */
  .home-swiper .swiper-pagination {
    bottom: 10px;
  }

  .home-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 5px !important;
  }

  .security-solution {
    padding-bottom: 100px;
  }

  .about-contact__quote-box {
    transform: translateY(-26%);
  }

  .submit-btn {
    min-width: 120px !important;
    min-height: 40px !important;
    font-size: 15px !important;
    padding: 0 10px !important;
  }

  .wwd-card {
    height: 370px;
    max-width: 100%;
  }

  .wwd-card-toggle {
    width: 55px;
    height: 52px;
  }
}

@media (max-width: 600px) {
  .dual-image-block__left {
    flex-direction: column;
    max-width: 100%;
  }

  .dual-image-block__left-col1,
  .dual-image-block__left2 {
    width: 100%;
    flex: 1 1 auto;
  }

  .dual-image-block__points.is-two-col {
    grid-template-columns: 1fr;
  }

  .section-padding-lg {
    padding: 50px 0;
  }

  .security-solution__content .flex-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 512px) {
  .footer-divider {
    display: none;
  }
}

@media (max-width: 520px) {
  .swiper-slide {
    aspect-ratio: 4 / 3.5;
  }

  .slide-heading {
    font-size: 23px;
    width: 80%;
  }

  .slide-content {
    padding-bottom: 20px;
    gap: 14px;
  }

  .nav-line {
    width: 26px;
  }

  .nav-btn {
    font-size: 11px;
    padding: 6px 4px;
    min-width: 40px;
    min-height: 40px;
  }

  .slider-nav-prev {
    left: 2px;
  }

  .slider-nav-next {
    right: 2px;
  }

  .mes-contact-form textarea {
    resize: none;
    max-height: 100px;
  }

  .wwd-card {
    height: 410px;
    max-width: 100%;
  }

  .wwd-card-toggle {
    width: 65px;
    height: 62px;
  }
}