/* GENERAL */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

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

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

.logo {
  font-size: 2rem;
}

.logo:hover {
  cursor: default;
}

a {
  color: black;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: grey;
  text-decoration: underline;
  /* text-underline-offset: 1rem; */
  text-decoration-color: rgb(181, 181, 181);
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3 ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

body {
  font-family: "Poppins", sans-serif;
  color: rgb(53, 53, 53);
  background-color: rgb(250, 250, 250);
}

header,
footer {
  color: black;
  padding: 1.5rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
}

/* GRID LAYOUT */
.container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;

  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* CARD STYLE */
.card {
  display: flex;
  flex-direction: column;

  text-decoration: none;
  color: inherit;

  background: #fff;
  border: 1px solid #e5e5e5;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}


.card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* IMAGE */
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* CONTENT */
.card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* KICKER */
.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
}

/* HEADLINE */
.headline {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0;
}

/* DEK */
.dek {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

.meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  color: #777;
  gap: 0.15rem;
}

/* Accessibility */
.card:focus {
  outline: 3px solid #000;
  outline-offset: 3px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .container {
    grid-template-columns: 1fr;
  }
}

/* FILTER CONTAINER */
.filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

/* FILTER BUTTON BASE */
.filter-btn {
  font-size: 0.95rem;              /* matches .dek */
  font-family: inherit;
  color: #444;
  line-height: 1.5;

  padding: 0.5rem 1.25rem;         /* makes buttons bigger */
  border-radius: 999px;            /* pill / circle shape */

  background: #fff;
  border: 1px solid #e0e0e0;

  cursor: pointer;
  transition: all 0.2s ease;
}

/* HOVER STATE */
.filter-btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

/* ACTIVE STATE */
.filter-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* ACCESSIBILITY */
.filter-btn:focus {
  outline: 3px solid #000;
  outline-offset: 2px;
}
