@media (max-width: 950px) {
  html {
    overflow-x: hidden;
  }
  .stat-box {
    width: 90%;
    margin-left: 5%;
  }
  .stat-item {
    flex-direction: column;
    text-align: center;
  }
  .stat-text {
    font-size: 14px;
  }
  #home {
    padding-top: 60px;
  }

  #home .row {
    flex-direction: column !important;
  }

  #home .col-5,
  #home .col-7 {
    width: 100% !important;
    max-width: 100%;
    padding: 1rem;
  }

  #home .col-7 {
    display: flex !important;
    justify-content: center;
    align-items: center;
  }

  #home .image-wrapper {
    width: 100%;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    height: 500px;
  }

  .image-wrapper .bag,
  .sanady-pay {
    width: 80% !important;
    height: auto !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .sanady-pay {
    position: relative;
    left: 0%;
    top: 0px;
    max-height: 400px !important;
    width: 200px !important;
  }

  .bag {
    min-width: 450px !important;
  }

  .carousel-rectangle {
    width: 1200px;
  }

  /* to remove animation from moving up and down carousel and adding small animation*/
  .stat-box {
    animation: bobUpDown 3s ease-in-out infinite;
  }

  @keyframes bobUpDown {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-15px); /* gentle upward move */
    }
  }

  /*removing blocks in small screens */
  .block-2,
  .block-4,
  .block-5 {
    display: none !important;
  }

  .stat-box {
    flex-direction: column;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .stat-item {
    margin: 0 auto 0.5rem;
  }

  .stat-text {
    font-size: 16px;
  }

  .row > .col-4 {
    width: 100% !important;
    max-width: 100%;
  }

  .row img.img-fluid {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* Borrower Benefits section mobile styles */
  .borrower-img {
    max-width: 180px;
    width: 100%;
    margin: 0 auto 1.5rem auto;
    display: block;
  }
  .features-container {
    margin-top: 2rem;
  }
  .feature-card {
    margin-bottom: 1.5rem;
    text-align: center;
  }
  .feature-card .card-number {
    text-align: center !important;
    margin: 0 auto;
  }

  /* Shopkeepers Benefits section mobile styles */
  .shopkeeper-img {
    max-width: 180px;
    width: 100%;
    margin: 0 auto 1.5rem auto;
    display: block;
  }
}

/*  CSS FARHAAN END */

@media (max-width: 480px) {
  .get-cash-now-btn {
    padding: 14px 40px !important;
  }
  .trust-desc {
    padding: 0 1rem !important;
    font-size: 1rem;
    text-align: justify !important;
    line-height: 1.6;
    word-break: normal;
  }

  /*  CSS FARHAAN START */
  /* Footer mobile styles */
  .footer {
    padding: 2rem 0 1rem 0 !important;
    text-align: center;
  }
  .footer .social-icons {
    justify-content: center !important;
    gap: 1.5rem !important;
    margin-bottom: 1rem;
  }
  .footer .social-icons a {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #d4f95a;
    color: #222;
    margin: 0 0.25rem;
    transition: background 0.2s;
  }
  .footer .social-icons a:hover {
    background: #b6e53a;
    color: #111;
  }
  .footer ul.list-unstyled {
    padding-left: 0;
    margin-bottom: 1.5rem;
  }
  .footer ul.list-unstyled li {
    margin-bottom: 0.5rem;
  }
  .footer-links {
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-word;
  }
  .footer img.img-fluid {
    max-width: 120px;
    margin-bottom: 1rem;
  }
  .footer p {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
}

@media (min-width: 426px) and (max-width: 950px) {
  .trust-security-box {
    flex-direction: row !important;
    text-align: left !important;
    padding-bottom: 3rem !important;
  }

  .trust-security-box h2,
  .trust-security-box p {
    text-align: left !important;
  }

  .trust-app-img,
  .trust-main-img {
    max-width: 100% !important;
    margin-bottom: 0 !important;
  }

  .trust-main-img {
    margin-left: auto;
    margin-right: 0;
    display: block;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .remove-offset-on-tab {
    margin-left: 0 !important;
  }

  .footer-row {
    flex-direction: row;
  }
}

@media (max-width: 375px) {
  .navbar .custom-toggler {
    padding: 4px 8px;
  }

  .navbar .d-flex.gap-2 {
    gap: 6px;
  }

  .navbar .navbar-brand img {
    max-width: 80px;
  }
}
