* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  background: #1a1a1a;
  color: #e0e0e0;
  line-height: 1.6;
}


.logo img {
  height: 40px;
  transition: transform 0.3s;
}
.logo img:hover { transform: scale(1.1); }

.nav-section {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#close-banner { display: none; }
#close-banner:checked + .banner-wrapper { display: none; }

.banner-link {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  transition: background 0.3s;
}
.banner-link:hover { background: #889fb4; color: #000; }

.close-btn {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  transition: color 0.3s;
}
.close-btn:hover { color: #fff; }

h1,h2 {
  text-align: center;
  margin: 1.5rem 0;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #889fb4;

}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

.card {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); }

.card img {
  width: 90%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.card h2 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: #889fb4;
}

.badge {
  display: inline-block;
  background: #444;
  color: #e0e0e0;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin: 0.2rem;
}

.info {
  font-size: 0.9rem;
  color: #bbb;
}

.btn {
  display: inline-block;
  background: #889fb4;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s;
}
.btn:hover { background: #ffcc55; }

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;
}
.modal:target { display: flex; }

.modal-content {
  background: #fff;
  color: #111;
  padding: 1rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  max-height: 70%;
  overflow: auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s;
}

.modal-content pre {
  background: #f4f4f4;
  color: #222;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-size: 1.5rem;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}
.modal-close:hover { color: #ff5a5a; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  header { flex-direction: column; gap: 0.5rem; }
  .nav-section { justify-content: center; width: 100%; }
  form.search input { width: 100%; }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .card img { height: 120px; }
}
