/* ==========================================================================
   PARTNERS & RESELLERS
   Partners section and independent resellers
   ========================================================================== */

  /* Partners Section */
  .partner-section {
    background: var(--white);
  }

  .partner-grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
  }

  @media (min-width: 768px) {
    .partner-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 3rem;
    }
  }

  /* Three-column grid for new layout */
  @media (min-width: 1024px) {
    .partner-grid-three {
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
    }
  }

  @media (min-width: 768px) and (max-width: 1023px) {
    .partner-grid-three {
      grid-template-columns: repeat(2, 1fr);
    }

    .partner-grid-three .partner-card:first-child {
      grid-column: 1 / -1;
      max-width: 500px;
      margin: 0 auto;
    }
  }

  /* Featured card styling */
  .partner-card-featured {
    position: relative;
    border: 2px solid #10b981;
  }

  .partner-card-featured::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  }

  .partner-card-featured::after {
    content: '⭐ RECOMMENDED';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    z-index: 10;
  }

  .partner-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }

  .partner-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    transition: top 0.5s ease;
    z-index: 0;
  }

  .partner-card:hover::before {
    top: 0;
  }

  .partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,102,255,.2);
  }

  .partner-card > * {
    position: relative;
    z-index: 1;
    transition: color 0.5s ease;
  }

  .partner-card:hover .partner-name,
  .partner-card:hover .partner-description {
    color: var(--white);
  }

  .partner-icon {
    width: 160px;
    height: 90px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
    transition: all 0.5s ease;
  }

  .partner-card:hover .partner-icon {
    transform: scale(1.05);
  }

  .partner-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
  }

  .partner-logo {
    width: 250px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    padding: 0.75rem;
    transition: all 0.5s ease;
  }

  .partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .partner-card:hover .partner-logo {
    background: rgba(255,255,255,1);
    transform: scale(1.02);
  }

  .partner-description {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .partner-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary);
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0,102,255,.2);
    transition: all 0.5s ease;
  }

  .partner-card:hover .partner-badge {
    background: rgba(255,255,255,.2);
    color: var(--white);
    border-color: rgba(255,255,255,.3);
  }

  .partner-card .btn {
    width: 100%;
  }

  .reseller-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
    font-size: 0.85rem;
  }

  .reseller-features span {
    cursor: help;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    color: var(--dark);
  }

  .reseller-features span:hover {
    opacity: 1;
  }

  .reseller-card-featured .reseller-features span {
    opacity: 1;
    padding: 0.5rem 0;
    border-left: 3px solid var(--primary);
    padding-left: 0.75rem;
  }

  /* Independent Resellers - Simpler layout */
  .resellers-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--light-gray);
  }

  .resellers-header {
    text-align: center;
    margin-bottom: 2rem;
  }

  .resellers-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
  }

  .resellers-header p {
    color: var(--gray);
    font-size: 1rem;
  }

  .reseller-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
  }

  .reseller-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .reseller-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0,102,255,.1);
    transform: translateX(5px);
  }

  /* Featured reseller card styling */
  .reseller-card-featured {
    background: linear-gradient(135deg, #fff 0%, #f0f9ff 100%);
    border: 2px solid var(--primary);
    padding: 2rem 2rem;
    box-shadow: 0 10px 30px rgba(0,102,255,.15);
  }

  .reseller-card-featured:hover {
    box-shadow: 0 15px 40px rgba(0,102,255,.25);
    transform: translateY(-2px);
  }

  .reseller-card-featured .reseller-info {
    width: 100%;
  }

  .reseller-info {
    flex: 1;
    min-width: 200px;
  }

  .reseller-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .reseller-specialty-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, var(--primary) 0%, #0052cc 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0,102,255,.3);
  }

  .reseller-description {
    color: var(--gray);
    line-height: 1.6;
    margin: 1rem 0;
    font-size: 0.95rem;
  }

  .reseller-card-featured .reseller-description {
    margin-bottom: 1.25rem;
  }

  .reseller-contact {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
  }

  .reseller-phone {
    color: var(--gray);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .reseller-phone:hover {
    color: var(--primary);
  }

  .reseller-website {
    color: var(--primary);
    font-size: 0.95rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
  }

  .reseller-website:hover {
    text-decoration: underline;
  }

  @media (max-width: 640px) {
    .reseller-card {
      flex-direction: column;
      align-items: flex-start;
    }

    .reseller-contact {
      flex-direction: column;
      gap: 0.5rem;
      align-items: flex-start;
    }
  }
