:root {
  --jl-blue: #8fcde8;
  --jl-gold: #d4af37;
  --jl-purple: #6a0dad;
  --jl-cream: #fffdf8;
  --jl-text: #443c46;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Raleway", sans-serif;
  color: var(--jl-text);

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(143, 205, 232, .22),
      transparent 35%
    ),
    linear-gradient(
      180deg,
      #fffdf8,
      #f8f4fb
    );
}

.jl-library {
  min-height: 100vh;
  padding: 70px 22px;
}

.jl-library__hero {
  max-width: 850px;
  margin: 0 auto 55px;
  text-align: center;
}

.jl-library__moon {
  font-family: "Cormorant Garamond", serif;
  font-size: 74px;
  line-height: 1;
  color: var(--jl-gold);

  text-shadow:
    0 0 14px rgba(212, 175, 55, .35);
}

.jl-library__eyebrow {
  margin: 18px 0 5px;
  color: var(--jl-purple);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
}

.jl-library h1 {
  margin: 5px 0 14px;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;

  color: var(--jl-purple);
}

.jl-library__subtitle {
  max-width: 650px;
  margin: auto;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.6;

  color: #62566b;
}

.jl-library__categories {
  width: min(1050px, 100%);
  margin: auto;

  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 22px;
}

.jl-library-card {
  min-height: 240px;
  padding: 30px 25px;

  text-align: center;

  background:
    rgba(255, 255, 255, .74);

  border:
    1px solid rgba(212, 175, 55, .52);

  border-radius: 22px;

  box-shadow:
    0 12px 35px rgba(72, 48, 85, .08);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;
}

.jl-library-card:hover {
  transform: translateY(-5px);

  border-color:
    rgba(212, 175, 55, .9);

  box-shadow:
    0 18px 42px rgba(72, 48, 85, .13),
    0 0 24px rgba(212, 175, 55, .10);
}

.jl-library-card__icon {
  font-size: 34px;
  margin-bottom: 14px;
}

.jl-library-card h2 {
  margin: 0 0 12px;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  color: var(--jl-purple);

  font-size: 1.65rem;
}

.jl-library-card p {
  margin: 0;

  font-size: .96rem;
  line-height: 1.7;

  color: #625b65;
}

.jl-library__back {
  position: fixed;
  top: 24px;
  left: 28px;

  z-index: 20;

  color: var(--jl-gold);
  text-decoration: none;

  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .04em;

  transition:
    transform .25s ease,
    color .25s ease;
}

.jl-library__back:hover {
  transform: translateX(-3px);
  color: var(--jl-purple);
}

.jl-library__logo-link {
  display: inline-block;
  text-decoration: none;
}

.jl-library__logo {
  width: 92px;
  height: 92px;

  object-fit: contain;

  filter:
    drop-shadow(0 0 14px rgba(212,175,55,.18));
}

.jl-library__invitation {
  margin: 22px auto 0;
  max-width: 620px;

  color: var(--jl-gold);

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 1.08rem;
  font-style: italic;
  letter-spacing: .025em;
}

.jl-library-card {
  position: relative;
  cursor: pointer;
}

.jl-library-card__explore {
  display: inline-block;

  margin-top: 18px;

  color: var(--jl-gold);

  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;

  opacity: .55;

  transform: translateY(3px);

  transition:
    opacity .3s ease,
    transform .3s ease,
    color .3s ease;
}

.jl-library-card:hover .jl-library-card__explore {
  opacity: 1;
  transform: translateY(0);
  color: var(--jl-purple);
}

@media (max-width: 580px) {
  .jl-library__back {
    position: static;
    display: inline-block;
    margin-bottom: 28px;
  }

  .jl-library__logo {
    width: 78px;
    height: 78px;
  }
}

@media (max-width: 850px) {
  .jl-library__categories {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .jl-library {
    padding:
      48px 16px;
  }

  .jl-library__categories {
    grid-template-columns: 1fr;
  }

  .jl-library-card {
    min-height: 0;
  }
}

/* Logo Biblioteca — formaat en centrering afdwingen */
.jl-library__hero .jl-library__logo-link {
  display: block;
  width: fit-content;
  margin: 0 auto 8px;
}

.jl-library__hero .jl-library__logo {
  display: block !important;

  width: 165px !important;
  height: 165px !important;
  max-width: 165px !important;
  max-height: 165px !important;
  margin: 0 auto !important;

  object-fit: contain;
}

/* =====================================================
   BIBLIOTECA — CATEGORIEPAGINA
   ===================================================== */

.jl-library--category {
  padding-top: 70px;
}

.jl-category-hero {
  max-width: 760px;
  margin: 0 auto 55px;
  text-align: center;
}

.jl-category-hero__icon {
  margin-bottom: 10px;
  font-size: 42px;
}

.jl-category-hero h1 {
  margin: 5px 0 14px;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 600;

  color: var(--jl-purple);
}

.jl-category-hero__subtitle {
  max-width: 650px;
  margin: 0 auto;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.6;

  color: #62566b;
}

.jl-category-hero__line {
  width: 70px;
  height: 1px;

  margin: 25px auto;

  background: var(--jl-gold);
}

.jl-category-hero__intro {
  max-width: 590px;
  margin: auto;

  color: #756c77;

  font-size: .94rem;
  line-height: 1.7;
}


/* Oefeningen */

.jl-practices {
  width: min(1050px, 100%);
  margin: auto;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 22px;
}

.jl-practice-card {
  position: relative;

  min-height: 300px;

  padding: 34px 28px 30px;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;

  background:
    rgba(255,255,255,.76);

  border:
    1px solid rgba(212,175,55,.50);

  border-radius: 22px;

  box-shadow:
    0 12px 35px rgba(72,48,85,.07);

  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;
}

.jl-practice-card:hover {
  transform: translateY(-5px);

  border-color:
    rgba(212,175,55,.9);

  box-shadow:
    0 18px 42px rgba(72,48,85,.12),
    0 0 25px rgba(212,175,55,.09);
}

.jl-practice-card__number {
  position: absolute;

  top: 18px;
  right: 20px;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  color: rgba(212,175,55,.65);

  font-size: .9rem;
}

.jl-practice-card__icon {
  margin: 8px 0 13px;

  font-size: 31px;
}

.jl-practice-card h2 {
  margin: 0 0 12px;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  color: var(--jl-purple);

  font-size: 1.55rem;
}

.jl-practice-card p {
  margin: 0 0 25px;

  color: #686069;

  font-size: .92rem;
  line-height: 1.7;
}

.jl-practice-card__button {
  margin-top: auto;

  padding: 9px 22px;

  font-family: "Raleway", sans-serif;

  color: var(--jl-purple);

  background: transparent;

  border: 1px solid var(--jl-gold);
  border-radius: 30px;

  cursor: pointer;

  transition:
    background .3s ease,
    color .3s ease,
    transform .3s ease,
    box-shadow .3s ease;
}

.jl-practice-card__button:hover {
  color: white;

  background: var(--jl-purple);

  transform: translateY(-2px);

  box-shadow:
    0 7px 18px rgba(106,13,173,.15);
}


/* Footer */

.jl-category-footer {
  margin: 70px auto 10px;

  text-align: center;

  color: #817783;

  font-size: .8rem;
}

.jl-category-footer span {
  color: var(--jl-gold);

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 1.05rem;
}

.jl-category-footer p {
  margin-top: 5px;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-style: italic;
}


/* Tablet */

@media (max-width: 850px) {

  .jl-practices {
    grid-template-columns:
      repeat(2, minmax(0,1fr));
  }
}


/* Mobiel */

@media (max-width: 580px) {

  .jl-library--category {
    padding-top: 45px;
  }

  .jl-practices {
    grid-template-columns: 1fr;
  }

  .jl-practice-card {
    min-height: 0;
  }
}

.jl-library-card--link {
  color: inherit;
  text-decoration: none;
}

/* =====================================================
   GROUNDING — VOLLE BREEDTE OEFENPANEEL
   ===================================================== */

.jl-practice-panel {
  grid-column: 1 / -1;
  width: 100%;
}

.jl-practice-panel[hidden] {
  display: none;
}

.jl-practice-panel__inner {
  max-width: 900px;
  margin: 5px auto 10px;
  padding: 42px 50px;

  text-align: center;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.92),
      rgba(250,246,252,.92)
    );

  border:
    1px solid rgba(212,175,55,.58);

  border-radius: 24px;

  box-shadow:
    0 18px 48px rgba(72,48,85,.10),
    0 0 28px rgba(143,205,232,.10);
}

.jl-practice-panel__eyebrow {
  margin: 0 0 12px;

  color: var(--jl-gold);

  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
}

.jl-practice-panel__icon {
  margin-bottom: 8px;
  font-size: 34px;
}

.jl-practice-panel h2 {
  margin: 0 0 14px;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;

  color: var(--jl-purple);
}

.jl-practice-panel__intro {
  margin: 0 auto 28px;
  max-width: 620px;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;

  color: #756979;
}

.jl-practice-panel__steps {
  max-width: 690px;
  margin: 0 auto;
  padding-left: 24px;

  text-align: left;

  color: #625a64;

  font-size: .96rem;
  line-height: 1.8;
}

.jl-practice-panel__steps li {
  margin-bottom: 15px;
  padding-left: 7px;
}

.jl-practice-panel__steps strong {
  color: var(--jl-purple);
}

.jl-practice-panel__closing {
  max-width: 650px;
  margin: 30px auto 22px;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size: 1.08rem;
  line-height: 1.65;

  color: #716773;
}

.jl-practice-panel__close {
  padding: 10px 24px;

  font-family: "Raleway", sans-serif;

  color: var(--jl-purple);
  background: transparent;

  border: 1px solid var(--jl-gold);
  border-radius: 30px;

  cursor: pointer;

  transition:
    background .3s ease,
    color .3s ease,
    transform .3s ease;
}

.jl-practice-panel__close:hover {
  color: white;
  background: var(--jl-purple);
  transform: translateY(-2px);
}

@media (max-width: 580px) {
  .jl-practice-panel__inner {
    padding: 32px 22px;
  }
}

/* Caminhos & Conhecimento — langere leesteksten */
.jl-knowledge-text {
  max-width: 720px;
  margin: 0 auto;

  text-align: left;

  color: #625a64;

  font-size: .96rem;
  line-height: 1.8;
}

.jl-knowledge-text p {
  margin: 0 0 16px;
}

.jl-knowledge-text p:last-child {
  margin-bottom: 0;
}

/* ==================================================
   TEST — KLEURRIJKE HEADER BIBLIOTECA
   ================================================== */

.jl-library__hero {
    max-width: 100%;
    margin: 0 auto 55px;
    padding: 48px 24px 52px;

    text-align: center;

    background: linear-gradient(
        120deg,
        #6a0dad 0%,
        #2f4fc8 24%,
        #00a3d7 48%,
        #58b7a0 72%,
        #d4af37 100%
    );

    border-radius: 0 0 34px 34px;

    box-shadow: 0 18px 45px rgba(72, 48, 85, 0.10);
}


/* Teksten geschikt maken voor gekleurde achtergrond */

.jl-library__hero .jl-library__eyebrow {
    color: rgba(255,255,255,.88);
}

.jl-library__hero h1 {
    color: #fffdf8;

    text-shadow:
        0 2px 12px rgba(40,20,60,.20);
}

.jl-library__hero .jl-library__subtitle {
    color: rgba(255,255,255,.92);
}

.jl-library__hero .jl-library__invitation {
    color: #fff3c7;
}


/* Subtiele gloed rond het logo */

.jl-library__hero .jl-library__logo {
    filter:
        drop-shadow(0 0 16px rgba(255,255,255,.20))
        drop-shadow(0 0 22px rgba(212,175,55,.18));
}

/* ==================================================
   HOOFDKAARTEN — gelijke hoogte + Explorar onderaan
   ================================================== */

.jl-library-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jl-library-card p {
  flex-grow: 1;
}

.jl-library-card__explore {
  margin-top: auto;
  padding-top: 18px;
}

/* 2. Portal-gradient op Explorar */
.jl-library-card__explore {
  display: inline-block;

  background: linear-gradient(
    90deg,
    #6a0dad,
    #2f6fd0,
    #00a8c8,
    #d4af37
  );

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  font-weight: 600;

  transition:
    transform .25s ease,
    filter .25s ease;
}

.jl-library-card:hover .jl-library-card__explore {
  transform: translateX(4px);
  filter: brightness(1.08);
}

/* ==================================================
   GEKLEURDE HEADER — ALLE CATEGORIEPAGINA'S
   ================================================== */

.jl-category-hero {
    max-width: 100%;
    margin: 0 auto 55px;
    padding: 45px 30px 48px;

    text-align: center;

    background: linear-gradient(
        120deg,
        #6a0dad 0%,
        #2f4fc8 24%,
        #00a3d7 48%,
        #58b7a0 72%,
        #d4af37 100%
    );

    border-radius: 0 0 34px 34px;

    box-shadow:
        0 18px 45px rgba(72, 48, 85, .10);
}


/* Icoon bovenaan */

.jl-category-hero__icon {
    color: #ffffff;
}


/* BIBLIOTECA TERAPÊUTICA */

.jl-category-hero .jl-library__eyebrow {
    color: rgba(255, 255, 255, .88);
}


/* Grote titel */

.jl-category-hero h1 {
    color: #fffdf8;

    text-shadow:
        0 2px 12px rgba(40, 20, 60, .20);
}


/* Ondertitel */

.jl-category-hero__subtitle {
    color: rgba(255, 255, 255, .94);
}


/* Introductietekst */

.jl-category-hero__intro {
    color: rgba(255, 255, 255, .90);
}


/* Het kleine gouden lijntje */

.jl-category-hero__line {
    background: #f4d77b;
}

/* ==================================================
   GOUDEN SLEUTEL — ONTGRENDEL ANIMATIE
   ================================================== */

.jl-key-unlock {
  position: absolute;

  z-index: 999999;

  font-size: 30px;
  line-height: 1;

  pointer-events: none;

  opacity: 0;

  transform:
    translate(-90px, -50%)
    scale(.45)
    rotate(-35deg);

  filter:
    drop-shadow(0 0 7px rgba(255,235,150,.85))
    drop-shadow(0 0 18px rgba(212,175,55,.65));

  animation:
    jlKeyUnlock 1.1s ease-in-out forwards;
}


@keyframes jlKeyUnlock {

  0% {
    opacity: 0;

    transform:
      translate(-95px, -50%)
      scale(.4)
      rotate(-35deg);
  }

  20% {
    opacity: 1;

    transform:
      translate(-70px, -50%)
      scale(.85)
      rotate(-20deg);
  }

  55% {
    opacity: 1;

    transform:
      translate(-25px, -50%)
      scale(1)
      rotate(0deg);
  }

  72% {
    opacity: 1;

    transform:
      translate(-10px, -50%)
      scale(1.08)
      rotate(85deg);
  }

  86% {
    opacity: 1;

    transform:
      translate(-10px, -50%)
      scale(1.12)
      rotate(95deg);

    filter:
      drop-shadow(0 0 12px rgba(255,245,180,1))
      drop-shadow(0 0 28px rgba(212,175,55,.95));
  }

  100% {
    opacity: 0;

    transform:
      translate(-10px, -65%)
      scale(.65)
      rotate(110deg);
  }
}

/* ==================================================
   BIBLIOTECA — GOUDEN SLEUTEL
   ================================================== */

.jl-library-key {
    position: fixed;

    z-index: 9999999;

    font-size: 30px;
    line-height: 1;

    pointer-events: none;

    opacity: 0;

    filter:
        drop-shadow(0 0 7px rgba(255, 238, 160, .9))
        drop-shadow(0 0 18px rgba(212, 175, 55, .75));

    transform:
        translate(-85px, -50%)
        scale(.45)
        rotate(-30deg);

    animation:
        jlLibraryUnlock .8s ease-in-out forwards;
}


@keyframes jlLibraryUnlock {

    0% {
        opacity: 0;

        transform:
            translate(-85px, -50%)
            scale(.45)
            rotate(-30deg);
    }

    20% {
        opacity: 1;

        transform:
            translate(-65px, -50%)
            scale(.85)
            rotate(-15deg);
    }

    55% {
        opacity: 1;

        transform:
            translate(-18px, -50%)
            scale(1)
            rotate(0deg);
    }

    75% {
        opacity: 1;

        transform:
            translate(-5px, -50%)
            scale(1.1)
            rotate(90deg);
    }

    88% {
        opacity: 1;

        transform:
            translate(-5px, -50%)
            scale(1.15)
            rotate(95deg);

        filter:
            drop-shadow(0 0 12px rgba(255, 245, 180, 1))
            drop-shadow(0 0 30px rgba(212, 175, 55, .95));
    }

    100% {
        opacity: 0;

        transform:
            translate(-5px, -65%)
            scale(.7)
            rotate(110deg);
    }
}


/* Kaart krijgt kort een zachte gouden gloed */

.jl-library-card--link {
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.jl-library-card--link.jl-card-unlocking {
    border-color: rgba(212, 175, 55, .85);

    box-shadow:
        0 12px 35px rgba(106, 13, 173, .10),
        0 0 24px rgba(212, 175, 55, .28);

    transform: translateY(-3px);
}

/* =====================================================
   BIBLIOTECA — ZACHTE KLEUREN PER HOOFDKAART
   ===================================================== */

.jl-library__categories .jl-library-card:nth-child(1) {
  background:
    linear-gradient(
      145deg,
      rgba(106,13,173,.10),
      rgba(106,13,173,.045)
    );
}

.jl-library__categories .jl-library-card:nth-child(2) {
  background:
    linear-gradient(
      145deg,
      rgba(39,82,190,.10),
      rgba(39,82,190,.045)
    );
}

.jl-library__categories .jl-library-card:nth-child(3) {
  background:
    linear-gradient(
      145deg,
      rgba(0,163,215,.10),
      rgba(0,163,215,.045)
    );
}

.jl-library__categories .jl-library-card:nth-child(4) {
  background:
    linear-gradient(
      145deg,
      rgba(72,181,169,.11),
      rgba(72,181,169,.045)
    );
}

.jl-library__categories .jl-library-card:nth-child(5) {
  background:
    linear-gradient(
      145deg,
      rgba(139,176,116,.12),
      rgba(139,176,116,.05)
    );
}

.jl-library__categories .jl-library-card:nth-child(6) {
  background:
    linear-gradient(
      145deg,
      rgba(212,175,55,.13),
      rgba(212,175,55,.05)
    );
}

/* =====================================================
   BIBLIOTECA — AUTOMATISCHE KLEUREN SUBTEGELS
   ===================================================== */

/* 01 — zacht paars */
.jl-practice-card[data-jl-tone="1"] {
  background: linear-gradient(
    145deg,
    rgba(106, 13, 173, .11),
    rgba(106, 13, 173, .035)
  ) !important;
}

/* 02 — zacht blauw */
.jl-practice-card[data-jl-tone="2"] {
  background: linear-gradient(
    145deg,
    rgba(39, 82, 190, .11),
    rgba(39, 82, 190, .035)
  ) !important;
}

/* 03 — zacht cyaan */
.jl-practice-card[data-jl-tone="3"] {
  background: linear-gradient(
    145deg,
    rgba(0, 163, 215, .11),
    rgba(0, 163, 215, .035)
  ) !important;
}

/* 04 — zacht turquoise */
.jl-practice-card[data-jl-tone="4"] {
  background: linear-gradient(
    145deg,
    rgba(72, 181, 169, .12),
    rgba(72, 181, 169, .04)
  ) !important;
}

/* 05 — zacht groen */
.jl-practice-card[data-jl-tone="5"] {
  background: linear-gradient(
    145deg,
    rgba(139, 176, 116, .13),
    rgba(139, 176, 116, .04)
  ) !important;
}

/* 06 — zacht goud */
.jl-practice-card[data-jl-tone="6"] {
  background: linear-gradient(
    145deg,
    rgba(212, 175, 55, .14),
    rgba(212, 175, 55, .04)
  ) !important;
}

/* =========================================
   GOOGLE TRANSLATE
   Houd terugknop zichtbaar onder vertaalbalk
   ========================================= */

html.translated-ltr .jl-library__back,
html.translated-rtl .jl-library__back {
    transform: translateY(45px);
}