a {
  text-decoration: none;
  color: var(--snow);
}

/* Filter knapper */
.filter-section {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 1.5rem auto 2rem auto;
  padding: 0 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  color: var(--snow);
  padding: 0.7rem 1.5rem;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  border-radius: 0;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition:
    border-bottom 0.3s ease,
    color 0.3s ease;
  box-shadow: none;
}

.filter-btn.active {
  border-bottom-color: var(--accent);
  color: var(--glacier);
}




/* Kategori-badges */
.category-badge {
  display: inline-block;
  width: fit-content;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-family: var(--font-primary);
}
.category-badge.forsker {
  background-color: var(--glacier);
  color: var(--night);
}
.category-badge.tekno {
  background-color: var(--accent);
  color: var(--night);
}
.category-badge.forskertekno {
  background-color: var(--forskertekno);
  color: var(--night);
}
.category-badge.tur {
  background-color: var(--trip);
  color: var(--night);
}

/* Prosjekt / Tur - kort og containere (sammenslått) */
.projects-container,
.trips-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.project-card,
.trip-card {
  background: var(--fjord);
  color: var(--snow);
  padding: 0;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card:hover,
.trip-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.project-card-image,
.trip-card-image {
  width: 100%;
  height: auto;
  background: radial-gradient(circle at top, var(--fjord) 0%, var(--night) 60%);
  object-fit: contain;
  display: block;
  min-height: 350px;
  max-height: 350px;
}

.project-card-content,
.trip-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top, var(--fjord) 0%, var(--night) 60%);
}

.project-card h2,
.trip-card h2 {
  font-family: var(--font-secondary);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.project-card p,
.trip-card p {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.4;
  text-align: center;
}
.project-card.hidden {
  display: none;
}

/* Prosjekt / Tur detaljer (sammenslått) */
.project-details,
.trip-details {
  display: none;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--fjord) 0%, var(--night) 100%);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-top: 3px solid var(--accent);
}
.project-details.active,
.trip-details.active {
  display: block;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.project-details h2,
.trip-details h2 {
  font-family: var(--font-secondary);
  color: var(--glacier);
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.5rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.project-details p,
.trip-details p {
  font-family: var(--font-primary);
  line-height: 1.8;
  color: var(--ice);
}

/* Seksjoner intro / overskrifter */
.projects-section,
.trips-section {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1rem 1rem 1rem;
}
.projects-section h2,
.trips-section h2 {
  font-family: var(--font-secondary);
  color: var(--glacier);
  margin-bottom: 0.5rem;
  text-align: center;
}
.projects-intro,
.trips-intro {
  text-align: center;
  color: var(--snow);
  margin-bottom: 1rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
}
.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}
.modal-content {
  position: relative;
  z-index: 1001;
  background: var(--fjord);
  border-radius: 10px;
  padding: 2rem;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border-top: 3px solid var(--accent);
  color: var(--snow);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--snow);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}
.modal-close:hover {
  color: var(--accent);
}
.modal-body h2 {
  font-family: var(--font-secondary);
  color: var(--glacier);
  margin-bottom: 1rem;
}
.modal-body p {
  font-family: var(--font-primary);
  line-height: 1.8;
  color: var(--ice);
  margin-bottom: 1.5rem;
}
.modal-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.modal-images img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  height: auto;
  max-height: 300px;
}

/* Trip-kort som button */
.trip-card {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  /* hide desktop nav and show burger */
  .menu-toggle {
    display: inline-flex;
  }
  .menu-nav {
    display: none;
  }
  header {
    align-items: center;
  }
}
