/* Praktijkverhalen: de kaarten in het overzicht en de detailpagina.
 *
 * De declaraties komen letterlijk uit het oorspronkelijke Claude-design
 * (de kaarten stonden daar als vaste HTML in de pagina). Ze staan hier onder
 * eigen klassenamen omdat de kaarten nu door een widget uit de database komen
 * en dus niet meer per stuk een gegenereerde Elementor-klasse hebben.
 *
 * Niet aanpassen om de opmaak te veranderen: dat doe je in Elementor of, voor
 * de kleuren, via Site-instellingen -> Variabelen.
 */

/* ===== Overzicht: het raster ===== */

/* Zelfde raster als de vaste kaarten hadden. De widget vervangt de
   Elementor-container, dus de maatvoering staat hier. */
.verhalen-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

/* ===== Overzicht: de kaart ===== */

.verhaal-kaart {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.verhaal-kaart__media {
  position: relative;
}

.verhaal-kaart__foto {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  /* Het ontwerp schaalt de foto op zodat hij de hoeken vult. */
  transform: scale(1.15);
  display: block;
}

/* Geen foto ingesteld: een rustig vlak in plaats van een gebroken afbeelding,
   zodat de kaart zijn verhoudingen houdt. */
.verhaal-kaart__foto--leeg {
  aspect-ratio: 16 / 10;
  background: var(--cream);
  transform: none;
}

.verhaal-kaart__label {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 6px 12px;
  border-radius: 999px;
}

.verhaal-kaart__body {
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
}

.verhaal-kaart__titel {
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  line-height: 1.22;
  margin: 0;
}

.verhaal-kaart__tekst {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  margin: 10px 0 0;
  /* duwt het citaat naar de onderkant, zodat kaarten van ongelijke lengte
     toch op één lijn eindigen */
  flex: 1 1 0%;
}

/* ===== Het citaat met het groene streepje ===== */

.verhaal-citaat {
  border-left: 3px solid var(--green);
  padding-left: 14px;
  margin-top: 18px;
}

.verhaal-citaat__tekst {
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
  color: var(--navy);
  margin: 0;
}

.verhaal-citaat__bron {
  font-size: 13px;
  font-weight: 600;
  color: rgb(128, 145, 160);
  margin-top: 6px;
}

/* ===== Detailpagina ===== */

.verhaal-hero {
  position: relative;
  background: var(--cream);
  padding: clamp(60px, 6vw, 100px) clamp(20px, 5vw, 72px) clamp(40px, 3vw, 60px);
  overflow: hidden;
  border-radius: 0 0 var(--corner) 0;
  z-index: 5;
}

.verhaal-hero__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

.verhaal-hero__tekst {
  position: relative;
  max-width: 760px;
}

.verhaal-hero__label {
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.verhaal-hero__titel {
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 16px 0 0;
}

.verhaal-hero__school {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.64;
  color: var(--body);
  margin: 20px 0 0;
}

/* De fotolijst met het groene vlak erachter, zoals elders op de site. */
.verhaal-foto {
  position: relative;
}

.verhaal-foto__vlak {
  position: absolute;
  inset: -18px -18px 26px 26px;
  background: var(--green);
  border-radius: 26px;
  z-index: 0;
}

.verhaal-foto__kader {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: rgba(35, 45, 63, 0.35) 0 30px 60px -30px;
}

.verhaal-foto__kader img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.verhaal-inhoud {
  padding: clamp(60px, 6vw, 104px) clamp(20px, 5vw, 72px) clamp(88px, 9vw, 140px);
}

.verhaal-inhoud__inner {
  max-width: 760px;
  margin: 0 auto;
}

.verhaal-inhoud__inner p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--body);
  margin: 22px 0 0;
}

.verhaal-inhoud__inner p:first-child {
  margin-top: 0;
}

.verhaal-inhoud__inner h2,
.verhaal-inhoud__inner h3 {
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin: 36px 0 0;
}

.verhaal-inhoud__inner h2 { font-size: clamp(24px, 2.4vw, 30px); }
.verhaal-inhoud__inner h3 { font-size: 20px; }

.verhaal-inhoud__inner ul,
.verhaal-inhoud__inner ol {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--body);
  margin: 18px 0 0;
  padding-left: 22px;
}

.verhaal-inhoud__inner img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  margin: 28px 0 0;
}

/* Het citaat krijgt op de detailpagina wat meer lucht dan op de kaart. */
.verhaal-inhoud .verhaal-citaat {
  margin-top: 32px;
  padding-left: 20px;
}

.verhaal-inhoud .verhaal-citaat__tekst {
  font-size: 19px;
  line-height: 1.55;
}

.verhaal-inhoud .verhaal-citaat__bron {
  margin-top: 8px;
}

/* Terug naar het overzicht: dezelfde knopvorm als elders op de site. */
.verhaal-terug {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 17px 28px;
  border-radius: 999px;
  margin-top: 40px;
  transition: transform 0.15s;
}

.verhaal-terug:hover {
  transform: translateY(-2px);
}

/* ===== Responsive ===== */

@media (max-width: 860px) {
  .verhaal-hero__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .verhaal-foto__vlak {
    inset: -8px -8px 12px 12px;
    border-radius: 16px;
  }
  .verhaal-foto__kader {
    border-radius: 16px;
    box-shadow: 0 16px 32px -18px rgba(35, 45, 63, 0.3);
  }
}
