/* General */

*{
    margin: 0px;
    padding: 0px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}
/* Controls */
.controls {
  text-align: center;
  margin: 2rem auto;
  max-width: 1000px;
}
.controls input {
  padding: 12px 15px;
  width: 300px;
  max-width: 90%;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.filters {
  margin-top: 0.5rem;
}
.filter-btn {
  padding: 8px 18px;
  margin: 5px;
  border: none;
  background: #f1f1f1;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}
.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
}

/* Card Grid */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.card {
  background: rgba(255, 255, 255, 0.95);
  border: 4px solid rgba(0, 123, 255, 0.1);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-body h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}
.category {
  font-size: 0.85rem;
  font-weight: 500;
  color: #007bff;
  margin: 6px 0 10px;
  display: block;
}
.card-body p {
  flex-grow: 1;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0 0 1rem;
  color: #555;
}
.details {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: #666;
}
.details li {
  margin: 3px 0;
}
.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  }
  
  .btn:hover {
    background: linear-gradient(135deg, #0056b3, #004099);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
  }
  
  .btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  }
  
  .btn:disabled {
    background: #b0c4de;
    cursor: not-allowed;
    box-shadow: none;
  }
  

/* Responsive */
@media (max-width: 768px) {
  .card-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .card-container {
    grid-template-columns: 1fr;
  }
}


/* Popup Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.6);
  }
  
  .modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease-in-out;
  }
  
  @keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
  }
  
  .close {
    color: #333;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close:hover {
    color: #ff0000;
  }
  
  
  .submit-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
  }
  
  .submit-btn:hover {
    background: linear-gradient(135deg, #0056b3, #003d80);
  }
  