/* RESET FOR DENNE SEKTION */
.coc-page,
.coc-page * {
  box-sizing: border-box;
}

/* SIDE */
.coc-page {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
}

/* FULLSCREEN OVERRIDE */
.coc-page.coc-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999;
}

/* BAGGRUND */
.coc-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  transition: filter 0.6s ease, transform 0.6s ease;
}

.coc-fullscreen .coc-bg {
  position: fixed;
}

.coc-bg-video {
  object-fit: cover;
}

.coc-bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.coc-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.22);
  pointer-events: none;
}

.coc-fullscreen .coc-bg-overlay {
  position: fixed;
}

/* CAROUSEL ACTIVE - BACKGROUND EFFECTS */
.coc-page.carousel-active .coc-bg {
  filter: blur(10px);
  transform: scale(1.03);
}

/* HEADER */
.coc-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  padding: 26px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.coc-fullscreen .coc-header {
  position: fixed;
}

.coc-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.coc-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: opacity 0.4s ease, color 0.4s ease;
}

.coc-nav a:hover {
  opacity: 0.7;
}

/* SØGNING */
.coc-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coc-search input {
  width: 150px;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.8);
  background: transparent;
  color: #fff;
  outline: none;
  font-size: 13px;
  transition: all 0.3s ease;
}

.coc-search input::placeholder {
  color: rgba(255,255,255,0.75);
}

.coc-search button {
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: color 0.3s ease;
}

/* CAROUSEL PLACERING */
.coc-carousel-section {
  position: absolute;
  top: 66%;
  transform: translateY(-50%);
  z-index: 10;
  width: 100%;
  padding-left: 34px;
  padding-right: 34px;
}

/* CAROUSEL */
.coc-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.coc-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 0;
  width: 100%;
  scrollbar-width: none;
}

.coc-carousel::-webkit-scrollbar {
  display: none;
}

/* POST CARD */
.coc-card {
  position: relative;
  flex: 0 0 300px;
  height: 210px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: transparent;
  border: none;
  transition:
    transform 0.6s ease,
    filter 0.6s ease,
    opacity 0.6s ease;
}

.coc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.coc-card-content {
  position: absolute;
  inset: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.8),
    rgba(0,0,0,0) 60%
  );
}

.coc-card-content h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.1;
  transform: translateY(10px);
  transition: transform 0.6s ease;
}

.coc-card-content p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  max-width: 90%;
  opacity: 0.85;
  transform: translateY(10px);
  transition: transform 0.6s ease;
}

/* HOVER EFFECTS FOR CAROUSEL CARDS */
.coc-carousel .coc-card:hover {
  transform: scale(1.15);
  z-index: 5;
}

.coc-card:hover img {
  transform: scale(1.05);
}

.coc-card:hover .coc-card-content {
  opacity: 1;
}

.coc-card:hover .coc-card-content h3,
.coc-card:hover .coc-card-content p {
  transform: translateY(0);
}

/* OTHER CARDS WHEN ONE IS HOVERED */
.coc-card-blur {
  filter: blur(5px) brightness(0.6);
}

/* PILE */
.coc-arrow {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.18);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.4s ease, opacity 0.4s ease, color 0.4s ease, border-color 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coc-arrow svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  transition: fill 0.4s ease;
}

.coc-arrow:hover {
  background: rgba(255,255,255,0.4);
}

.coc-prev {
  margin-right: 12px;
}

.coc-next {
  margin-left: 12px;
}

/* FOOTER */
.coc-footer {
  position: absolute;
  bottom: 0;
  z-index: 10;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  padding: 60px 34px 34px;
  color: #fff;
}

.coc-fullscreen .coc-footer {
  position: fixed;
}

.coc-footer h4 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.coc-footer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  max-width: 360px;
  opacity: 0.75;
}

/* MOBIL */
@media (max-width: 768px) {
  .coc-header {
    padding: 20px;
    align-items: flex-start;
    gap: 18px;
  }

  .coc-nav {
    flex-wrap: wrap;
    gap: 16px;
  }

  .coc-search input {
    width: 95px;
  }

  .coc-carousel-section {
    top: auto;
    bottom: 20%;
    transform: none;
    padding-left: 20px;
    padding-right: 20px;
  }

  .coc-card {
    flex: 0 0 235px;
    height: 170px;
  }

  .coc-carousel .coc-card:hover {
    transform: scale(1.06);
  }

  .coc-arrow {
    display: none;
  }

  .coc-footer {
    grid-template-columns: 1fr;
    padding: 48px 20px 28px;
  }
}
