@charset "UTF-8";
/* --- GLOBAL OPSÆTNING --- */
.custom-blog-wrapper,
.custom-blog-wrapper h3,
.custom-blog-wrapper p,
.custom-blog-wrapper span,
.custom-blog-wrapper button {
  font-family: inherit !important;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

/* --- BLOG KORT DESIGN --- */
.blog-card {
  background: #f3f3f3;
  border-radius: 12px;
  border: 1px solid #f3f3f3 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease !important;
}

.blog-card[data-status=visible] {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--delay) !important;
}

.no-results {
  text-align: center;
  grid-column: 1/-1;
  padding: 40px;
  color: #666;
}

.card-link {
  text-decoration: none !important;
  color: inherit !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

.card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h3 {
  margin: 0 0 8px 0 !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  color: #222 !important;
}

.card-date {
  font-size: 12px;
  color: #383838;
  margin-bottom: 15px;
  display: block;
}

.card-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

.read-more {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: auto;
}

/* --- SØGEFELT --- */
.blog-search-container {
  margin-bottom: 20px;
  text-align: center;
}

#blog-search-input {
  border: 1px solid #eaeaea !important;
  border-radius: 10px !important;
  max-width: 100% !important;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 16px !important;
}

#blog-search-input:focus {
  outline: none;
  border-color: #a8a8a8 !important;
}

/* --- FILTER CONTAINER & PILE --- */
.filter-nav-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  width: 100%;
}

.scroll-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background: #fff;
  border: none;
  z-index: 10;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #333;
  transition: all 0.2s ease;
  padding: 0 !important;
  line-height: 0 !important;
}

.scroll-arrow.visible {
  display: flex;
}

.scroll-arrow.left {
  left: -50px;
}

.scroll-arrow.right {
  right: -50px;
}

/* --- HORISONTAL SCROLL MENU --- */
.blog-filter-menu {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 10px 0 20px 0 !important;
  width: 100% !important;
  scrollbar-width: none;
}

.blog-filter-menu::-webkit-scrollbar {
  display: none !important;
}

.filter-btn {
  background: #fff;
  border: 1px solid #ddd;
  padding: 7px 15px !important;
  border-radius: 25px;
  margin: 0 5px !important;
  cursor: pointer;
  font-size: 16px !important;
  color: #666;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease;
}

.filter-btn.active {
  background: #333 !important;
  color: #fff !important;
  border-color: #333 !important;
}

/* --- GRID SYSTEM --- */
.blog-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 25px !important;
  min-height: 400px;
}

@media (max-width: 989px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 767px) {
  .blog-grid {
    grid-template-columns: 1fr !important;
  }
  .card-image img {
    height: 200px !important;
  }
  .scroll-arrow.left,
  .scroll-arrow.right {
    display: none !important;
  }
}