/* =========================
   RESET
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================
   BODY + ACADEMIC BACKGROUND
========================= */
body {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: #f4f4f4;
  line-height: 1.6;
  min-height: 100vh;

  /* Base dark */
  background-color: #0b0b0b;

  /* Warm academic gold-brown depth */
  background-image:
    radial-gradient(circle at 10% 10%, rgba(255, 174, 94, 0.08), transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(180, 120, 60, 0.06), transparent 45%),
    radial-gradient(circle at 20% 90%, rgba(255, 140, 0, 0.05), transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(120, 80, 40, 0.06), transparent 50%),
    linear-gradient(180deg, #0f0f0f, #0a0a0a);
}

/* Subtle academic frame / leaf-vein texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;

  background-image:
    linear-gradient(to right, rgba(255, 170, 90, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 170, 90, 0.06) 1px, transparent 1px);

  background-size: 140px 140px;
  opacity: 0.15;
}

/* Corner warmth glow */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;

  background:
    radial-gradient(circle at top left, rgba(255, 140, 0, 0.12), transparent 35%),
    radial-gradient(circle at top right, rgba(180, 120, 60, 0.1), transparent 40%),
    radial-gradient(circle at bottom left, rgba(160, 110, 60, 0.1), transparent 45%),
    radial-gradient(circle at bottom right, rgba(255, 140, 0, 0.12), transparent 35%);
}

/* =========================
   HEADER
========================= */
header {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(90deg, #1a1a1a, #111111);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.2);
}

header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #ff6e00;
  text-shadow: 0 0 10px #ff6e00, 0 0 20px #ff8f1a;
}

header p {
  margin-top: 8px;
  color: #d1d5db;
  font-size: 1rem;
}

/* =========================
   CONTROLS (SEARCH + FILTERS)
========================= */
.controls {
  max-width: 1200px;
  margin: 30px auto 0;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.controls input {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #2c2c2c;
  background: #121212;
  color: #f4f4f4;
  outline: none;
}

.controls input::placeholder {
  color: #9ca3af;
}

.controls input:focus {
  border-color: #ff6e00;
  box-shadow: 0 0 8px rgba(255, 110, 0, 0.6);
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #2c2c2c;
  background: #161616;
  color: #d1d5db;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #ff6e00;
  color: #0f0f0f;
  box-shadow: 0 0 10px rgba(255, 110, 0, 0.6);
}

/* =========================
   MAIN GRID
========================= */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

/* =========================
   CARD
========================= */
.card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px #ff6e00, 0 0 40px #ff8f1a;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ff9e42;
  text-shadow: 0 0 6px #ff6e00;
}

.card p {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 15px;
}

/* =========================
   LINK BUTTON
========================= */
.card a {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0f0f0f;
  background: #ff6e00;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.card a:hover {
  background: #ff8f1a;
  transform: translateY(-2px);
}

/* =========================
   FOOTER
========================= */
footer {
  text-align: center;
  padding: 25px 15px;
  font-size: 0.85rem;
  color: #9ca3af;
  border-top: 1px solid #2c2c2c;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }
}
