/* Employee section header */
.employee-section-header {
  margin-bottom: 40px;

  @media (max-width: 768px) {
    margin-bottom: 32px;
  }

  .employee-section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 16px 0;
    line-height: 1.2;

    @media (max-width: 1024px) {
      font-size: 1.8rem;
      margin-bottom: 14px;
    }

    @media (max-width: 768px) {
      font-size: 1.6rem;
      margin-bottom: 12px;
      text-align: center;
    }

    @media (max-width: 480px) {
      font-size: 1.4rem;
      margin-bottom: 10px;
    }
  }

  .employee-section-divider {
    width: 100%;
    height: 1px;
    border-bottom: 1px solid #e0e0e0;
    margin-top: 8px;

    @media (max-width: 768px) {
      margin-top: 6px;
    }

    @media (max-width: 480px) {
      margin-top: 4px;
    }
  }
}

.smort-employee-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin: 40px 0;

  /* Tablet responsiv - 3 kolumner */
  @media (max-width: 1024px) {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 32px 0;
  }

  /* Mobil responsiv - 2 kolumner */
  @media (max-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
  }

  /* Små mobiler - 1 kolumn */
  @media (max-width: 480px) {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0;
  }

  .employee-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;

    &:hover {
      transform: translateY(-4px);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }

    .employee-image {
      width: 100%;
      height: 280px;
      overflow: hidden;
      background: #f5f5f5;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        transition: transform 0.3s ease;
      }

      /* Mobil responsiv */
      @media (max-width: 768px) {
        height: 250px;
      }

      @media (max-width: 480px) {
        height: 220px;
      }
    }

    .employee-info {
      padding: 20px 16px;

      @media (max-width: 768px) {
        padding: 16px 12px;
      }

      .employee-name {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--dark);
        margin: 0 0 8px 0;
        line-height: 1.3;

        @media (max-width: 768px) {
          font-size: 1rem;
          margin-bottom: 6px;
        }
      }

      .employee-title {
        font-size: 0.9rem;
        color: var(--gray);
        margin: 0 0 12px 0;
        line-height: 1.4;

        @media (max-width: 768px) {
          font-size: 0.85rem;
          margin-bottom: 10px;
        }
      }

      .employee-contact {
        display: flex;
        flex-direction: column;
        gap: 4px;

        a {
          font-size: 0.8rem;
          color: var(--accentColor);
          text-decoration: none;
          transition: color 0.2s ease;

          &:hover {
            color: var(--dark);
            text-decoration: underline;
          }

          @media (max-width: 768px) {
            font-size: 0.75rem;
          }
        }

        .employee-email {
          font-weight: 500;
        }

        .employee-phone {
          font-weight: 400;
        }
      }
    }

    /* Hover effekt på bild */
    &:hover .employee-image img {
      transform: scale(1.05);
    }
  }
}

/* Fallback för när inga bilder laddas */
.employee-card .employee-image img[src*="employee-placeholder"] {
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  
  &::before {
    content: "👤";
    font-size: 3rem;
    color: #ccc;
  }
}
