.iot-devices {
  width: 100%;
  margin-bottom: 2rem;
}

.iot-device-wrapper {
  width: 90%;
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 1rem 0;
}

.iot-title {
  font-size: 1.2rem;
  font-weight: 300;
  color: #1c4386;
  margin: 3rem 0 1rem;
  text-align: center;
}

.iot-main-title {
  font-size: 1.2rem;
  font-weight: 300;
  color: #1c4386;
  margin: 2rem 0;
  text-align: center;
}

.iot-cards-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 0;
}

.iot-device-card-new {
  margin: 0 20px;
  width: 100%;
  max-width: 500px;
  display: flex;
  border: 2px solid #1c4386;
  border-radius: 15px;
  box-shadow: 1px 3px 5px 1px rgba(211, 211, 211, 0.5);
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.iot-device-card-new:hover {
  transform: scale(1.03);
  background: #1c4386;
  color: white;
  cursor: pointer;
  box-shadow: 2px 5px 15px 2px rgba(211, 211, 211, 0.7);
}

.iot-device-card-new:hover a {
  color: white !important;
}

.iot-left-card {
  width: 50%;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.iot-left-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.iot-right-card {
  width: 50%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.iot-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.iot-name h2 {
  font-size: 1.2rem;
  font-weight: 500;
  margin: 0;
}

.iot-download i {
  font-size: 1.3rem;
  transition: transform 0.2s ease;
}

.iot-download:hover i {
  transform: scale(1.1);
}

.iot-description {
  font-size: 0.9rem;
  line-height: 1.4;
}

.iot-specs {
  font-size: 0.8rem;
  line-height: 1.5;
}

.iot-specs pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
}

.iot-filter {
  display: flex;
  justify-content: flex-end;
  padding: 0 2rem;
}

.iot-filter select {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 0.5rem 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.iot-filter select:hover {
  border-color: #1c4386;
}

.iot-filter option {
  padding: 0.5rem;
}

@media (max-width: 980px) {
  .iot-device-card-new {
    flex-direction: column;
    max-width: 400px;
    margin: 1rem 0;
  }

  .iot-left-card,
  .iot-right-card {
    width: 100%;
    padding: 1.5rem;
    box-sizing: border-box;
  }

  .iot-title {
    margin: 2rem 0;
  }

  .iot-filter {
    justify-content: center;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .iot-device-card-new {
    max-width: 100%;
  }

  .iot-right-card {
    padding: 1rem;
  }

  .iot-name h2 {
    font-size: 1.1rem;
  }
}
