/* ==========================================================================
   Responsive Optimizations: Tablet & Mobile
   ========================================================================== */

/* -----------------------------------------
   TABLET (Screens smaller than 992px)
----------------------------------------- */
@media (max-width: 991px) {
  .feature-overlap-row {
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .feature-card {
    display: flex;
    flex-direction: column;
    align-items: center; /* Fixed typo: 'align-item' to 'align-items' */
    text-align: center;
  }

  .vision-title span {
    display: block;
    opacity: 1 !important;
    transform: translateY(30px); /* Reduced from 50px for tablet screens */
  }

  .btn-main {
    display: block;
    width: 60%; 
    margin: 0 auto;
  }

  .services-scroll-section .btn-main {
    width: 45%;
  }

  .partner-section .btn-main {
    width: 50%;
    margin: 0 auto;
  }

  .logo-item-wrapper {
    width: 50%; /* Assuming a 2-column layout is best for tablet */
    aspect-ratio: auto;
  }

  .map-wrapper {
    color: var(--c5);
  }

  .stat-label-dark {
    letter-spacing: 0.5px;
  }
}

/* -----------------------------------------
   MOBILE (Screens smaller than 768px)
----------------------------------------- */
@media (max-width: 767px) {
  .feature-overlap-row {
    margin-top: 30px;
    margin-bottom: 0;
  }

  .feature-card {
    padding: 15px; /* Ensure content doesn't hit screen edges */
  }

  .vision-title span {
    transform: translateY(15px); /* Further scaled down for mobile */
  }

  /* Universal mobile button scaling for better touch UX */
  .btn-main,
  .services-scroll-section .btn-main,
  .partner-section .btn-main {
    width: 100%;
    max-width: 320px; /* Prevents stretching too far on horizontal phones */
    margin: 15px auto;
  }

  .logo-item-wrapper {
    width: 100%; /* Switch to single column for mobile */
    aspect-ratio: unset;
  }

  .stat-label-dark {
    letter-spacing: 0;
  }
}