.tad-devices-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.tad-devices-header {
  text-align: center;
  margin-bottom: 40px;
}

.tad-devices-header h1 {
  font-size: 2.5em;
  color: #333;
  margin: 0;
}

.tad-devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.tad-device-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.tad-device-card:hover {
  transform: translateY(-5px);
}

.tad-device-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.tad-device-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tad-device-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  align-items: center;
  text-align: center;
}

.tad-device-title {
  margin: 0 0 15px;
  font-size: 1.5em;
}

.tad-device-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.tad-device-title a:hover {
  color: #007bff;
}

.tad-device-description {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.tad-device-meta {
  color: #888;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.tad-device-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  margin-top: auto;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.tad-device-link:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.tad-device-link:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.tad-device-link:hover:before {
  transform: translateX(100%);
}

.tad-no-devices {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  background: #f8f9fa;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .tad-devices-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

  .tad-devices-header h1 {
    font-size: 2em;
  }
}
