
   body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 0;
      background: #f5f9fc;
    }

    .departments {
  text-align: center;
  padding: 80px 20px 40px; 
  background: #e6f3fa;
  margin-top: 40px;         
}


    .departments h2 {
      font-size: 22px;
      margin-bottom: 25px;
      color: #222;
    }

    .cards {
      display: flex;
      justify-content: center;
      gap: 20px;
      flex-wrap: wrap;
    }

    .card {
      position: relative;
      width: 280px;
      overflow: hidden;
      border-radius: 8px;
      cursor: pointer;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
      transition: transform 0.3s ease;
    }

    .card img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      display: block;
      transition: transform 0.3s ease, filter 0.3s ease;
    }

    .card:hover img {
      transform: scale(1.1);
      filter: brightness(0.8);
    }

    .card-text {
      position: absolute;
      bottom: 15px;
      left: 15px;
      color: white;
      font-weight: bold;
      font-size: 18px;
      text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    }

    .arrow {
      position: absolute;
      bottom: 15px;
      right: 15px;
      background: white;
      border-radius: 50%;
      width: 35px;
      height: 35px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      color: black;
      transition: background 0.3s ease, color 0.3s ease;
    }

    .card:hover .arrow {
      background: black;
      color: white;
    }


    @media (max-width: 768px) {
      .cards {
        flex-direction: column;
        align-items: center;
      }

      .card {
        width: 90%;
      }
    }


