/*
 * ---------------------------------------------------------------
 *  Stacking cards — companion CSS for fh-stack.js
 *
 *  Markup:
 *
 *    <div class="fh-stack">
 *      <div class="fh-card">
 *        <div class="fh-card-inner"> … </div>
 *      </div>
 *      <div class="fh-card"> … </div>
 *    </div>
 *
 *  No heights are set anywhere: the stack, the cards and the inner
 *  wrappers all follow their content. The script handles pinning,
 *  so this file only covers spacing and how a card looks.
 *
 *  Change the settings below on .fh-stack, or on one stack only,
 *  e.g. #oppdretter .fh-stack { --fh-offset: 56px; }
 * ---------------------------------------------------------------
 */
.bde-accordion__button{
  padding: 30px 0!important;
  border-bottom: 1px solid #282a222b!important;
   transition: all 0.5s ease-in-out; 
}
.bde-accordion__button:hover{
    border-bottom: 1px solid #a0b970!important;
}
.breakdance .bde-accordion-item--open .bde-accordion-item__content {
  overflow: visible;
}
.accordion-content{
  padding: 0 0 2rem 0;
}
.fh-accordion-content {
    position: relative;
    z-index: 1;
    isolation: isolate;
    width: 100%;
}
.fh-stack {

    /* Read by the script */
    --fh-offset: 70px;              /* step between stacked cards       */
    --fh-top-offset: 80px;           /* height of a sticky site header   */
    --fh-scroll-offset: 85px;        /* where an opened item lands —
                                       usually the same as the above    */
    --fh-mobile-breakpoint: 767px;  /* plain list at this width and
                                       below; keep in sync with the
                                       media query at the bottom        */

    /* Look of the cards */
    --fh-gap: 32px;                 /* space between cards in the flow  */
    --fh-card-bg: #e7e6e6;          /* must be opaque, or the cards
                                       behind show through              */
    --fh-card-radius: 0px;
    --fh-card-shadow: 0 -6px 24px rgba(0, 20, 40, 0.08);
    --fh-card-padding: 3rem;         /* raise this if the inner content
                                       has no padding of its own        */

    position: relative;
    display: block;
    height: auto;
}


/*
 * Each card covers the one before it, so it needs a solid
 * background. The shadow is cast upwards, onto the card behind,
 * which is what makes the layers readable.
 */
.fh-stack .fh-card {
    position: relative;
    box-sizing: border-box;
    height: auto;
    background: var(--fh-card-bg);
    border-radius: var(--fh-card-radius);
    /*box-shadow: var(--fh-card-shadow);*/

    /*
     * Keeps images inside the rounded corners. overflow on the card
     * itself does not stop it from sticking — only overflow on
     * something around the stack does.
     */
    overflow: hidden;
}

/*
 * Spacing between cards. When this is set, the script leaves it
 * alone; without it, the script falls back to a gap of 12% of the
 * first card's height.
 */
.fh-stack .fh-card:not(:last-child) {
    margin-bottom: var(--fh-gap);
}


.fh-stack .fh-card-inner {
    box-sizing: border-box;
    height: auto;
    min-height: 0;
    padding-bottom: var(--fh-card-padding);
    padding-top: 0.5rem;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    background: #e7e6e6;
    border-radius: 0px;
    border-top: 1px solid #282a222b !important;
}
.fh-content.full .fh-text-body, .fh-content.full .fh-text-body p {
  width: 100%;
  align-content: center;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}
.fh-stack .fh-card-inner video {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
.fh-content.full .fh-text-body {
  width: 100%;
  align-content: center;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
}
.fh-content.full .fh-text-body video {
  width: 60%;
  height: auto;
}

.fh-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 2rem 2rem 0rem;
  box-sizing: border-box;
  width: 60%;
  align-content: start;
  align-items: start;
  justify-content: start;
  display: flex;
  flex-direction: column;
  grid-column: div 7/-1;
  position: relative;
}
.fh-content p {
  line-height: 1.6;
  margin: 0 0 0.8rem 0; 
}
.fh-content p strong{
  font-weight: 500!important;
}
.fh-content .wysiwyg h3 {
  font-size: 22px;
  line-height: 32px;
  margin-bottom: 22px;
  margin-top: 24px;
}
.fh-content .wysiwyg h3 strong{
  font-weight: 400!important;
}
.fh-content .wysiwyg ul {
  margin-bottom: 1rem; 
}
.fh-content .wysiwyg ul li {
  list-style: none;
  -webkit-border-before: 1px solid #8fa563;
  border-block-start: 1px solid #8fa563;
  padding-block: 0.4625rem;
  color: #8fa563;
}

.fh-content.full {
  width: 100%;
  align-content: center;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 0 10%;
  min-height: 300px;
} 

.wysiwyg ul li {
  list-style: none;
  -webkit-border-before: 1px solid var(--black-30);
  border-block-start: 1px solid var(--black-30);
  padding-block: 1.5625rem;
}
.fh-image {
  width: 575px;
  /*height: auto;*/
  overflow: hidden;
  padding-top: 1rem;
}

.fh-content h3.fh-text-title {
  margin: 0 0 25px;
  font-size: 30px;
  line-height: 1.02;
  font-weight: 300;
}
.fh-stack .fh-card-inner img {
  width: 100%;
  height: 400px;
  display: block;
  object-fit: cover;
}

/*
 * Links to an id inside a stack (#oppdretter) land below a sticky
 * header even before the script has run.
 */
.fh-stack [id],
.fh-stack[id] {
    scroll-margin-top: var(--fh-scroll-offset);
}


/*
 * Mobile: the script turns the stacking off at --fh-mobile-breakpoint,
 * so the cards are a plain list. A tighter gap and smaller corners
 * suit that better.
 */
@media (max-width: 767px) {

    .fh-stack {
        --fh-gap: 16px;
        --fh-card-radius: 12px;
        --fh-card-shadow: none;
    }
}


/*
 * Print the cards as an ordinary list.
 */
@media print {

    .fh-stack .fh-card {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        break-inside: avoid;
    }
}



/* MOBILE */
@media (max-width: 767px) {

    .fh-stack {
        --fh-card-height: 78vh;
        --fh-offset: 40px;
    }

    .fh-card-inner{
      display: flex;
      flex-direction: column;
    }
    .fh-card-inner .fh-content {
      width: 100%;
    }
    .fh-card-inner .fh-image{
      width: 100%;
    }
    .fh-content {
        padding: 28px 0px;
    }

    .fh-number {
        margin-bottom: 12px;
        font-size: 14px;
    }

    .fh-content h3 {
        margin-bottom: 12px;
        font-size: 30px;
    }

    .fh-content p {
        font-size: 15px;
        line-height: 1.45;
    }
}