/* /css/centrale.css. Opdateret: 25.01.2026, Specifik styling for centraleudgivelser.php */
  .book-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;   /* 1:2:1:1 – hovedværket får dobbelt bredde ift. hver af de andre */
    grid-auto-rows: auto;
    gap: 30px;
    max-width: 1300px;
    margin: 50px auto;
  }

  /* Gør hovedværk-kortet til at spænde over 2 rækker, men bare 1 kolonne */
  .book-card.main {
    grid-column: 1 / 2;
    grid-row: span 2;
  }

  .book-card {
    background: white;  /* 50% uigennemsigtigt hvid */
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .book-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }

  /* Billede i kortet */
  .book-card img {
    width: 120px;            /* ensartet billedstørrelse i alle kort */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  }

  .book-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .book-info h2 {
    font-size: 1.3rem;
    margin: 0 0 10px;
  }
  .book-info p {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 15px;
    color: var(--text-color);
  }

  .cta-button {
    align-self: flex-start;
    padding: 8px 14px;
    background: var(--brand-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: background 0.3s ease;
  }
  .cta-button:hover {
    background: var(--brand-hover);
  }
  .cta-group {
    display: inline-flex;
    gap: 8px;              /* afstand mellem knapperne */
  }

/* Gør knapperne smallere */
   .cta-group .cta-button {
     padding: 6px 12px;     /* mindre lodret og vandret padding */
     font-size: 0.85rem;     /* lidt mindre tekst */
     line-height: 1;         /* stram linjehøjde */
    }
    /* ---------------------------------------------------
           Specifik CSS til “Titel af Forfatter” i bog‐kortene
        --------------------------------------------------- */
        .book-card .book-info h2 {
          font-size: 1.3rem;
          margin: 0 0 10px 0;
          display: flex;
          flex-wrap: wrap;
          align-items: baseline;
          gap: 0.5rem;
        }
        .book-card .book-info h2 .title {
          font-weight: 600;
          color: var(--text-color);
        }
        .book-card .book-info h2 .author {
          font-size: 0.95rem;
          font-style: italic;
          color: #555;
        }

        /* Tving venstrejustering i centraleudgivelser-kort */
        .book-container .book-card,
        .book-container .book-card .book-info,
        .book-container .book-card .book-info h2,
        .book-container .book-card .book-info h2 .author,
        .book-container .book-card .book-info h2 .title,
        .book-container .book-card .book-info .subtitle {
          text-align: left !important;
        }
        .book-container .book-card .book-info h2{
  justify-content: flex-start !important;
  align-items: baseline !important;
}

/* --- FIX: Overskrifter må ikke kunne "shrink-wrap" eller centreres --- */
.book-container .book-card .book-info{
  width: 100% !important;
  align-items: flex-start !important; /* vigtigt hvis en anden css sætter center */
  text-align: left !important;
}

.book-container .book-card .book-info h2{
  width: 100% !important;        /* gør h2 fuld bredde */
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;    /* dræber margin: 0 auto; hvis det findes */
  justify-content: flex-start !important;
  text-align: left !important;
}
.book-container .book-card .book-info h2,
.book-container .book-card .book-info h2 *{
  justify-self: start !important;
  align-self: start !important;
}

/* ===== Centraleudgivelser: tving overskrift venstre (overstyr style.css) ===== */

/* book-info må ikke centrere noget som helst */
.book-container .book-card .book-info{
  text-align: left !important;
  align-items: flex-start !important;
}

/* style.css sætter h2 til flex -> slå det fra her */
.book-container .book-card .book-info h2{
  display: block !important;          /* vigtigste linje */
  width: 100% !important;
  text-align: left !important;
  margin: 0 0 10px 0 !important;
}

/* subtitle på egen linje, venstre */
.book-container .book-card .book-info h2 .subtitle{
  display: block !important;
  text-align: left !important;
}
