/* General reset and layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f9f9fb;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

/* Header styling */
header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  font-size: 2rem;
  color: #8a2be2;
  margin-bottom: 10px;
}

header p {
  color: #555;
  font-size: 1.1rem;
}

/* Container layout */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* Form section */
.filter-section {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.filter-section label {
  display: block;
  margin: 10px 0 5px;
  font-weight: 600;
}

.filter-section select,
.filter-section input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.filter-section button {
  width: 100%;
  background-color: #8a2be2;
  color: white;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.filter-section button:hover {
  background-color: #7027c4;
}

/* Results section */
.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* Card styling */
.card {
  background-color: #ffffff;
  border-left: 6px solid #8a2be2;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  margin-bottom: 10px;
  color: #444;
  font-size: 1.2rem;
}

.card p {
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #555;
}

.card a {
  text-decoration: none;
  color: #8a2be2;
  font-weight: bold;
}

.card img {
  margin-top: 10px;
  max-width: 100%;
  border-radius: 5px;
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .filter-section {
    padding: 15px;
  }

  .filter-section button {
    font-size: 0.95rem;
  }
}

