.download-materials-widget {
  margin: 20px 0;
}

.download-materials-title {
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 600;
  color: #333;
  text-align: center;
}

.download-materials-list {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.download-material-item {
  display: flex;
  align-items: center;
  padding: 20px;
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.download-material-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-color: #006478;
}

.material-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #006478;
  color: white;
  border-radius: 50%;
  margin-right: 20px;
  font-size: 20px;
}

.material-content {
  flex: 1;
  min-width: 0;
}

.material-title {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}

.material-description {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.material-download {
  flex-shrink: 0;
  margin-left: 20px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #006478;
  color: white;
  text-decoration: none;

  font-weight: 500;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.download-btn:hover {
  background: #004a57;
  color: white;
  text-decoration: none;
}

.download-btn i {
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .download-material-item {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .material-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .material-download {
    margin-left: 0;
    margin-top: 15px;
  }

  .download-materials-title {
    font-size: 24px;
  }
}

@media (min-width: 769px) {
  .download-materials-list {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  }
}

/* Loading state */
.download-materials-widget.loading {
  opacity: 0.6;
  pointer-events: none;
}

.download-materials-widget.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #006478;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Empty state */
.download-materials-widget .no-materials {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-style: italic;
}
