/* ==============================
   AGENT LISTING (CARDS)
   ============================== */


   .agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
  }

   .agent-card {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  
  .agent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: var(--accent-orange);
  }
  
  .agent-card img {
    width: 100%;
    aspect-ratio: 3 / 4;   /* 👈 portrait ratio */
    height: auto;
    object-fit: cover;
    object-position: 50% 15%;
    background: #f1f5f9;
  }
  
  
  .agent-card h4 {
    padding: 16px 20px 4px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
  }
  
  .agent-card span {
    display: block;
    padding: 0 20px 18px;
    color: var(--text-light);
    font-size: 14px;
  }
  
  /* ==============================
     AGENT PROFILE (DETAILS PAGE)
     ============================== */
  
  .agent-profile-card {
    display: grid;
    grid-template-columns: 240px 1fr;  /* 👈 SMALLER COLUMN */
    gap: 36px;
    align-items: flex-start;
  }
  
  .agent-profile-card img {
    width: 100%;
    height: 260px;              /* consistent size */
    object-fit: cover;          /* keeps card clean */
    object-position: 50% 20%;   /* 👈 FACE-FRIENDLY */
    border-radius: 18px;
    background: #f8fafc;
  }
  
  .agent-card::after {
    content: "View Profile →";
    display: block;
    padding: 10px 16px;
    font-size: 12px;
    color: var(--accent-orange);
    font-weight: 500;
  }
  
  
  .agent-details .designation {
    color: var(--text-light);
    margin-bottom: 14px;
    font-size: 14px;
  }
  
  /* ACTIONS */
  .agent-actions {
    margin-top: 26px;
    display: flex;
    gap: 14px;
  }
  
  /* ==============================
     RESPONSIVE
     ============================== */
  
  @media (max-width: 768px) {
    .agent-profile-card {
      grid-template-columns: 1fr;
      text-align: center;
    }
  
    .agent-profile-card img {
      max-width: 220px;
      height: 220px;
      margin: 0 auto;
    }
  
    .agent-actions {
      justify-content: center;
    }
  }
  