.referansearkiv-template {
  overflow: hidden;
}

.referansearkiv-template__intro-inner {
  max-width: 42rem;
}

.referansearkiv-template__intro-text {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 1.1rem;
  line-height: 1.6;
}

.referansearkiv-template__grid > [class*="col-"] {
  display: flex;
}

.referansearkiv-template__grid > [data-referansearkiv-item][hidden] {
  display: none !important;
}

.referansearkiv-template__card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  padding: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
  text-decoration: none;
  color: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.referansearkiv-template__card:hover,
.referansearkiv-template__card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(243, 82, 89, 0.24);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.referansearkiv-template__media {
  position: relative;
  width: 100%;
  padding-top: 125%;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.referansearkiv-template__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.referansearkiv-template__content {
  padding: 1rem 1rem 1.15rem;
}

.referansearkiv-template__card-title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.25;
  color: var(--color-main-font);
}

.referansearkiv-template__empty {
  padding: 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.referansearkiv-template__empty h2 {
  margin-top: 0;
}

.referansearkiv-template__references {
  background: var(--main-bg-third);
  color: var(--color-main-font);
}

.referansearkiv-template__load-more-wrap {
  display: flex;
  justify-content: center;
}

.referansearkiv-template__load-more {
  appearance: none;
  border: 1px solid rgba(38, 38, 38, 0.18);
  background: var(--color-highlight-white, #ffffff);
  color: var(--color-main-font);
  min-height: 2.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.referansearkiv-template__load-more:hover,
.referansearkiv-template__load-more:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(243, 82, 89, 0.4);
  background: var(--color-highlight-white, #ffffff);
  color: var(--color-highlight-red);
}

.referansearkiv-template .archive-pagination {
  display: flex;
  justify-content: center;
  margin-top: 2.25rem;
}

.referansearkiv-template .archive-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.referansearkiv-template .archive-pagination li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid rgba(38, 38, 38, 0.18);
  background: transparent;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.referansearkiv-template .archive-pagination li:hover {
  transform: translateY(-1px);
  border-color: rgba(243, 82, 89, 0.4);
  background: rgba(243, 82, 89, 0.06);
}

.referansearkiv-template .archive-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  color: var(--color-main-font);
  text-decoration: none;
  font-weight: 700;
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: color 140ms ease, text-decoration-color 140ms ease;
  border-radius: inherit;
}

.referansearkiv-template .archive-pagination .page-numbers:hover,
.referansearkiv-template .archive-pagination .page-numbers:focus-visible {
  color: var(--color-highlight-red);
  text-decoration: none;
}

.referansearkiv-template .archive-pagination .page-numbers.current {
  color: var(--color-highlight-red);
  text-decoration: none;
}

.referansearkiv-template .archive-pagination .page-numbers.dots {
  background: transparent;
  box-shadow: none;
  min-width: auto;
  padding: 0 0.2rem;
  border-color: transparent;
}


@media only screen and (max-width: 767px) {
  .referansearkiv-template__grid {
    row-gap: 2rem;
  }

  .referansearkiv-template__grid > [class*="col-"] {
    justify-content: center;
  }

  .referansearkiv-template__card {
    max-width: 320px;
  }

  .referansearkiv-template__intro-text {
    font-size: 1rem;
  }
}
