/* Mobile Collaborators Grid - 2 Column Layout */
/* ============================================= */

/* Mobile screens - 2 columns */
@media screen and (max-width: 991px) {
  .collaborators-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    padding: 20px 10px !important;
  }
  
  .collaborator-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 15px !important;
    min-height: 120px !important;
    width: 100%;
    background: rgba(249, 249, 255, 0.5);
    border: 1px solid rgba(94, 92, 127, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
  }

  /* Dark mode collaborator items */
  [data-theme="dark"] .collaborator-item {
    background: rgba(22, 22, 31, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.15);
  }
  
  .collaborator-logo {
    width: 110px !important;
    height: 55px !important;
    object-fit: contain !important;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
  }

  /* Dark mode logo adjustments */
  [data-theme="dark"] .collaborator-logo {
    filter: grayscale(100%) opacity(0.6) brightness(1.5);
  }

  /* Touch feedback */
  .collaborator-item:active {
    transform: scale(0.98);
  }

  /* Hover effect on mobile (for devices that support it) */
  @media (hover: hover) {
    .collaborator-item:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(139, 92, 246, 0.15);
    }

    .collaborator-item:hover .collaborator-logo {
      filter: grayscale(0%) opacity(1);
    }

    [data-theme="dark"] .collaborator-item:hover .collaborator-logo {
      filter: grayscale(0%) opacity(1) brightness(1.2);
    }
  }
}

/* Small mobile screens */
@media screen and (max-width: 576px) {
  .collaborators-grid {
    gap: 15px !important;
    padding: 15px 5px !important;
  }
  
  .collaborator-item {
    padding: 20px 12px !important;
    min-height: 100px !important;
    border-radius: 10px;
  }
  
  .collaborator-logo {
    width: 95px !important;
    height: 45px !important;
  }
}

/* Very small screens (below 400px) */
@media screen and (max-width: 400px) {
  .collaborators-grid {
    gap: 12px !important;
  }
  
  .collaborator-item {
    padding: 18px 10px !important;
    min-height: 90px !important;
  }
  
  .collaborator-logo {
    width: 85px !important;
    height: 40px !important;
  }
}

/* Landscape orientation adjustments */
@media screen and (max-width: 991px) and (orientation: landscape) {
  .collaborators-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
  }
  
  .collaborator-item {
    min-height: 90px !important;
    padding: 15px 10px !important;
  }
  
  .collaborator-logo {
    width: 90px !important;
    height: 40px !important;
  }
}

/* Ensure section has proper spacing */
@media screen and (max-width: 991px) {
  section#collaborators {
    padding: 40px 0 !important;
  }
  
  section#collaborators .section-title {
    font-size: 24px !important;
    margin-bottom: 20px !important;
  }
  
  section#collaborators .spacer[data-height="40"] {
    height: 20px !important;
  }
}