/* Jobpost container - indhold og baggrund */
.jobpost_container, .jobpost_container_small{
    text-align: left; /* Venstrejusteret tekst */
    background-color: #ffffff; /* Lysere baggrund */
    padding: 10px;
    padding-left: 30px;
    padding-right: 30px;
    min-width: 80%;
    max-width: 80%;
    margin: 20px auto;
    border: 1px solid #ddd;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    background-size: cover; /* Fuld dækning af baggrunden */
}

.jobpost_container_small{
  width: 95%;
  padding: 15px;
  max-width: none;
  margin: 20px auto;
  align-items: left;
}

.title_container{
    width: 100%;
    text-align: center;
    font-style: italic;
}

/* Outer container: flex + wrap = side om side, men kan gå på linje 2 på små skærme. */
.jobpost_top_container{
    display: flex;
    flex-wrap: wrap;     /* Hvis bokse ikke kan være side om side, lægger de sig automatisk under hinanden */
    width: 100%;         /* Fylder hele bredden */
    box-sizing: border-box; /* For sikkerhed mod boksemodellen */
  }

  /* Begge bokse har standard 100% bredde (stacker på små skærme) */
  .jobpost_title,
  .jobpost_title_single,
  .jobpost_image,
  .jobpost_title_small,
  .jobpost_image_small{
    display: flex;
    width: 100%;
    box-sizing: border-box;
    text-align: left;  /* Centrerer tekst/billede vandret som udgangspunkt */
  }
  .jobpost_title_single{
    height: auto;
  }
  .jobpost_image{
    margin-bottom: 10px;
  }

/* Sub-container til tekstindhold */
.jp_subcontainer {
    position: relative;
    width: 80%;
    height: 100%;
    margin-top: -80px;
}

/* Tekst og overskrifter */
.jobpost_container h1, .ck-editor-container h1, .jobpost_container_small h1{
    color: #2a3d66;
    font-size: 2.0rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 0;
    padding-top: 20px;
}
.jobpost_container_small h1{
    font-size: 1.0rem;
}

.jobpost_container h2, .ck-editor-container h2 {
    color: #3d4c6e;
    font-size: 1.6rem;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    margin-bottom: 15px;
}

.jobpost_container h3, .ck-editor-container h3 {
    color: #4a5c81; /* Vælg gerne en nuance i samme stil */
    font-size: 1.4rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    margin-bottom: 10px;
}

.jobpost_container ul, .ck-editor-container ul {
    list-style-type: square;
    padding-left: 20px;
}

.jobpost_container ul li, .ck-editor-container ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.2;
}

.jp_button {
    background-color: #26ae61;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-align: center;
    margin-top: 20px;
}

.jp_button_interview{
  background-color: #ab500b;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  text-align: center;
  margin-top: 20px;
  margin-left: 10px;
}

/* Kun et eksempel, brug dine egne klasser/farver */
.job_description {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/*
    Vi bruger -webkit-line-clamp til at begrænse linjerne.
    Husk, at dette kræver display: -webkit-box og -webkit-box-orient: vertical.
*/
.job_description.collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5; /* antal linjer */
    overflow: hidden;
}

/* Når “collapsed” fjernes, vil vi vise alt indhold. */
.job_description.expanded {
    display: block; /* Fjerner line-clamp ved at lade det falde tilbage til normal visning */
    /* overflow: scroll; */
    max-height: 9999px; /* I princippet stort nok til alt indhold */
}

.simple-button-link {
    background-color: transparent;
    border: none;
    text-decoration: none;
    padding: 0;
    margin: 0;
    color: #2a3d66;         /* Tekstfarve */
    font-size: 1rem;       /* Justér evt. størrelsen */
    text-decoration: underline;
    cursor: pointer;       /* Viser "hånd"-cursor ved hover */
}

.simple-button-link:hover {
    text-decoration: none; /* Fjerner understregning ved hover */
    color: #8a8a8a;        /* Evt. mørkere nuance ved hover */
    background-color: transparent;
}

.county{
    color: #4c5874;
    font-style: italic;
    font-size: 0.8rem;
    margin-top: 5px;
    margin-bottom: 0px;
}

.industry{
  color: #253a6a;
  font-style: italic;
  font-weight: bold;
  font-size: 0.8rem;
  margin-bottom: 5px;
  margin-top: 5px;
}

.location{
  color: #5b5b5b;
  font-style: italic;
  font-size: 0.8rem;
  margin-bottom: 5px;
  margin-top: 5px;
}

.jobpost_description{
  font-size: 1rem;
  margin-top: 10px;
}
.jobpost_container_small img{
  max-width: 75px;
  height: auto;
  align-items: right;
  border-radius: 10px;
}

.jobpost_description a{
  color: #253a6a;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  margin-top: 10px;
}
.jobpost_description a:hover{
  color: #253a6a;
  font-weight: bold;
  text-decoration: underline;
}

.status_draft, .status_approval, .status_published, .status_rejected, .status_banned
{
  font-weight: bold;
  font-display: italic;
}
.status_published{
  color: #28a745;
}
.status_draft{
  color: #ffc107;
}
.status_approval{
  color: #da7c09;
}
.status_rejected, .status_banned{
  color: #dc3545;
}

.pagination{
    display:flex; align-items:center; justify-content:center; gap:.5rem;
    margin:1.25rem 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  }
  .pagination .btn{
    display:inline-flex; align-items:center; justify-content:center;
    min-width:2.5rem; height:2.5rem;
    border:1px solid #e5e7eb; border-radius:999px;
    text-decoration:none; color:#111827; background:#fff;
    box-shadow:0 1px 2px rgba(0,0,0,.04);
    transition:transform .05s ease, background .15s ease, border-color .15s ease;
    user-select:none;
  }
  .pagination .btn:hover{ background:#f9fafb; border-color:#d1d5db; transform:translateY(-1px); }
  .pagination .btn:active{ transform:translateY(0); }
  .pagination .btn.disabled{
    opacity:.45; cursor:not-allowed; pointer-events:none;
    background:#f3f4f6;
  }
  .pagination .status{
    padding:.5rem .9rem;
    border:1px solid #e5e7eb; border-radius:999px;
    background:#f9fafb; color:#374151;
    white-space:nowrap;
  }

  /* ---------- Store skærme (over 600px) ---------- */
  @media (min-width: 750px) {
    /* Ydre container: fast højde */
    .jobpost_top_container {
      height: 200px;
    }
    .jobpost_top_container_small {
      height: 10px;
    }

    /* Titel-boks på venstre side (50% bredde),
       placer tekst i bunden => align-items: flex-end */
    .jobpost_title {
      min-width: 30%;
      max-width: 60%;
      align-items: flex-end; /* Titel "i bund" af boksen */
      justify-content: left;
      margin-right: 5px;
    }

    /* Billede-boks på højre side (50% bredde),
       billedet i toppen => align-items: flex-start,
       og højrejusteret => justify-content: flex-end */
    .jobpost_image {
      width: 39%;
      align-items: flex-end;
      justify-content: flex-end;
    }

    /* Billedets max-højde = 120px */
    .jobpost_image img {
      max-height: 100%;
      max-width: 200px;
      width: auto;
      height: auto;
    }
  }

  .readmoreJobbyen{
    padding: 10px;
  }

  /* ---------- Små skærme (under 600px) ---------- */
  @media (max-width: 749px) {
    .jobpost_container, .jobpost_container_small {
        text-align: left; /* Venstrejusteret tekst */
        background-color: #ffffff; /* Lysere baggrund */
        padding: 15px;
        padding-left: 20px;
        padding-right: 20px;
        min-width: 100%;
        max-width: 100%;
        margin: 10px auto;
        border: 1px solid #ddd;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        background-size: cover; /* Fuld dækning af baggrunden */

    }
    .jobpost_top_container {
      display: flex;       /* flex for en smule kontrol (kunne også være block) */
      flex-direction: column;
      height: auto;
      padding-bottom: 10px;
    }
    /* Bokse stakker => fuld bredde */
    .jobpost_image {
      width: 100%;
    }

    /* Titel i bunden giver ikke helt mening her,
       men du kan centrere eller lade den stå som normal */
    .jobpost_title {
      align-items: center;
      justify-content: left;
      max-width: none;
      order: 1;
      margin-bottom: 10px;
    }

    /* Billede-boks stadig højrejusteret */
    .jobpost_image {
      width: 100%;
      max-height: none;
      align-items: center;
      justify-content: right;
      order: 0;
    }

    /* På små skærme kan du fjerne max-height eller justere det */
    .jobpost_image img {
      max-height: 120px; /* Eller behold 120px, alt efter smag */
      max-width: 100%;
      height: auto;
    }

    /* Tekst og overskrifter */
    .jobpost_container h1, .ck-editor-container h1 {
        color: #2a3d66;
        font-size: 1.5rem;
        letter-spacing: 1px;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
        margin-top: 0;
        padding-top: 10px;
    }

    .jobpost_container h2, .ck-editor-container h2 {
        font-size: 1.3rem;
        font-weight: bold;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .jobpost_container h3, .ck-editor-container h3 {
        font-size: 1.1rem;
    }
    .jp_button_interview{
      margin-left: 0px;
    }
  }
