/*Bransjesider*/

.bransje_bedrifter_section__link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.bransje_bedrifter_section .bransje_bedrifter_section__link:hover,
.bransje_bedrifter_section .bransje_bedrifter_section__link:focus-visible {
  color: inherit;
}

.bransje_bedrifter_section__card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #fff;
}

.bransje_bedrifter_section__image {
  aspect-ratio: 15 / 10;
  overflow: hidden;
}

.bransje_bedrifter_section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.bransje_bedrifter_section__link:hover .bransje_bedrifter_section__image img,
.bransje_bedrifter_section__link:focus-visible .bransje_bedrifter_section__image img {
  transform: scale(1.02);
}

.bransje_bedrifter_section__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 25px;
}

.bransje_bedrifter_section__title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.bransje_bedrifter_section__link:hover .bransje_bedrifter_section__title,
.bransje_bedrifter_section__link:focus-visible .bransje_bedrifter_section__title,
.bransje_bedrifter_section__link:hover .bransje_bedrifter_section__more,
.bransje_bedrifter_section__link:focus-visible .bransje_bedrifter_section__more {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.bransje_bedrifter_section__link:hover .bransje_bedrifter_section__more,
.bransje_bedrifter_section__link:focus-visible .bransje_bedrifter_section__more {
  color: var(--color-main-font-hover);
}

.bransje_bedrifter_section__excerpt {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.bransje_bedrifter_section__more {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.bransje_bedrifter_section__pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.bransje_bedrifter_section__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  background-color: var(--color-btn-dark);
  color: var(--color-btn-dark-font);
  border: 1px solid var(--color-btn-dark);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.bransje_bedrifter_section__pagination a.page-numbers:hover,
.bransje_bedrifter_section__pagination a.page-numbers:focus-visible {
  background-color: var(--color-btn-dark-hover);
  color: var(--color-btn-dark-font-hover);
}

.bransje_bedrifter_section__pagination .page-numbers.current {
  background-color: var(--color-btn-dark-hover);
  border-color: var(--color-btn-dark);
  color: var(--color-btn-dark-font-hover);
}

.bransje_bedrifter_section__pagination .page-numbers.dots {
  background-color: transparent;
  border-color: transparent;
  color: var(--color-main-font);
}

.bransje_bedrifter_section__pagination a.page-numbers:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.25);
  outline-offset: 2px;
}
