:root {
  --brown: #eeece4;
  --light-gray: #eeece4;
  --shadow: rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background-color: #eeece4;
  margin: 10;
  color: #222;
}


/* Category header */
.category-header {
  text-align: center;
  margin: 30px 0;
}

/* Navigation bar */
.navbar {
  width: 100%;
  padding: 20px 0px;
  display: flex;
  justify-content: flex-end; /* right-align links */
  background-color: transparent; /* keep white background */
  position: fixed; /* stays at top */
  top: 0;
  left: -10px;
  z-index: 100;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 5px;
  display: flex;
  gap: 30px;
}

.nav-links li a {
  text-decoration: none;
  color: #7c7c7c;
  font-size: 18px;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #000000;
}

/* Dropdown menu styling */
.dropdown {
  position: relative;
}

.dropdown-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  margin: 0;
  min-width: 150px;
  display: none;
  z-index: 101;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #7c7c7c;
  font-size: 16px;
  transition: background-color 0.2s, color 0.2s;
}

.dropdown-menu li a:hover {
  background-color: #f0f0f0;
  color: #000000;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--brown);
  color: black;
  padding: 1rem 2rem;
}

.back-link {
  color: black;
  text-decoration: none;
  font-weight: 600;
}

/* Move the main Resources H1 50px to the right */
.page-header h1,
h1 {
  position: relative;
  left: 50px;
}

.controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1rem;
  background: var(--light-gray);
  border-bottom: 1px solid #dddddc;
}

.control label {
  margin-right: 0.5rem;
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px var(--shadow);
  text-align: center;
  padding: 2.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  /* Add these ↓ */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.card h3 {
  margin: 0.5rem 0;
  color: var(--brown);
  color: black;
}

.card p {
  font-size: 0.9rem;
  color: #555;
  min-height: 48px;
}

.card a {
  display: inline-block;
  margin-top: 0.75rem;
  background: #4a90c8;
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px var(--shadow);
}

footer {
  background: var(--light-gray);
  padding: 1rem;
  text-align: center;
  color: #777;
  font-size: 0.85rem;
}

