.mtd-wrap{max-width:100%;}


/* ── Quiz Star Progress Bar ── */
.mtd-stars{
  display:flex;
  width:100%;
  align-items:center;
  justify-content:space-between;
  margin-bottom:20px;
  padding:10px 16px;
  background:#ffffff;
  border:1.5px solid #e0eaf4;
  border-radius:12px;
  box-shadow:0 4px 18px rgba(93,163,218,.08);
  box-sizing:border-box;
}

/* Connector line between nodes */
.mtd-connector{
  flex:0.6;
  max-width:80px;
  height:2.5px;
  background:#dde8f5;
  border-radius:3px;
  margin:0 6px;
  display:block;
  position:relative;
  overflow:hidden;
}
.mtd-connector::after{
  content:'';
  position:absolute;
  inset:0;
  background:#59b89a;
  border-radius:3px;
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform 1.2s cubic-bezier(0.4,0,0.2,1);
}
.mtd-star.is-achieved + .mtd-connector::after{transform:scaleX(1);}

/* Node (button) */
.mtd-stars .mtd-star{
  flex:none;
  appearance:none;
  border:0;
  background:transparent;
  cursor:pointer;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  transition:transform .15s ease;
  z-index:1;
}
.mtd-stars .mtd-star:hover:not(.is-locked){transform:translateY(-2px);}
.mtd-stars .mtd-star:active:not(.is-locked){transform:translateY(0);}
.mtd-stars .mtd-star:focus-visible{outline:2px solid #59b89a;outline-offset:4px;border-radius:50%;}

/* Inner circle */
.mtd-star-circle{
  width:40px;height:40px;
  border-radius:50%;
  border:2.5px solid #ddd;
  background:#f5f5f5;
  display:flex;align-items:center;justify-content:center;
  transition:all .3s ease;
  position:relative;
}
.mtd-star-circle svg{width:18px;height:18px;}
.mtd-star-path{fill:#ccc;transition:fill .3s;}

/* Checkmark badge (shown when achieved) */
.mtd-star-badge{
  display:none;
  position:absolute;top:-6px;right:-6px;
  width:18px;height:18px;
  background:#59b89a;
  border-radius:50%;
  border:2px solid white;
  align-items:center;justify-content:center;
  font-size:9px;color:white;font-weight:900;
  box-shadow:0 2px 5px rgba(89,184,154,.45);
  line-height:1;
}
.mtd-star.is-achieved .mtd-star-badge{display:flex;}

/* Lock icon — hidden by default, shown on locked stars */
.mtd-lock-icon{display:none;fill:#aaa;}
.mtd-star.is-locked .mtd-star-icon-svg{display:none;}
.mtd-star.is-locked .mtd-lock-icon{display:block;}

/* LOCKED */
.mtd-stars .mtd-star.is-locked{cursor:default;opacity:.5;}
.mtd-stars .mtd-star.is-locked:hover,
.mtd-stars .mtd-star.is-locked:active{transform:none;}

/* ACTIVE (not yet achieved) — green pulsing */
.mtd-stars .mtd-star.is-active:not(.is-achieved) .mtd-star-circle{
  border-color:#59b89a;
  background:linear-gradient(135deg,#e8f7f2,#d0ede6);
  box-shadow:0 0 0 4px rgba(89,184,154,.22), 0 4px 14px rgba(89,184,154,.30);
  animation:mtdSpPulse 2.2s ease-in-out infinite;
}
.mtd-stars .mtd-star.is-active:not(.is-achieved) .mtd-star-path{fill:#3a9a7c;}

@keyframes mtdSpPulse{
  0%,100%{box-shadow:0 0 0 2px rgba(89,184,154,.20),0 4px 10px rgba(89,184,154,.22);}
  50%    {box-shadow:0 0 0 5px rgba(89,184,154,.10),0 4px 14px rgba(89,184,154,.30);}
}

/* ACHIEVED — gold */
.mtd-stars .mtd-star.is-achieved .mtd-star-circle{
  border-color:#FFD43B;
  background:linear-gradient(135deg,#FFF3BF 0%,#FFE066 100%);
  box-shadow:0 0 0 3px rgba(255,224,102,.30),0 5px 16px rgba(255,212,59,.25);
}
.mtd-stars .mtd-star.is-achieved .mtd-star-path{fill:#1a1a2e;}

/* ACHIEVED + ACTIVE — gold pulsing */
.mtd-stars .mtd-star.is-achieved.is-active .mtd-star-circle{
  animation:mtdSpPulseGold 2.2s ease-in-out infinite;
}
@keyframes mtdSpPulseGold{
  0%,100%{box-shadow:0 0 0 2px rgba(255,217,61,.28),0 5px 10px rgba(255,140,0,.30);}
  50%    {box-shadow:0 0 0 5px rgba(255,217,61,.14),0 5px 14px rgba(255,140,0,.40);}
}

/* AVAILABLE (clickable, not active, not achieved) */
.mtd-stars .mtd-star.is-available:not(.is-active) .mtd-star-circle{border-color:#bbb;background:#f0f0f0;}
.mtd-stars .mtd-star.is-available:not(.is-active) .mtd-star-path{fill:#999;}

/* ── Overview star icon (mtd-star-static) — behoud originele stijl ── */
.mtd-star-icon{display:inline-block;width:clamp(22px,3vw,28px);height:clamp(22px,3vw,28px);background-color:transparent;position:relative;}
.mtd-star-icon:before{
  content:””;display:block;width:100%;height:100%;
  background-color:currentColor;
  -webkit-mask:url('data:image/svg+xml;utf8,<svg xmlns=”http://www.w3.org/2000/svg” viewBox=”0 0 24 24”><path d=”M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z”/></svg>') center/contain no-repeat;
  mask:url('data:image/svg+xml;utf8,<svg xmlns=”http://www.w3.org/2000/svg” viewBox=”0 0 24 24”><path d=”M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z”/></svg>') center/contain no-repeat;
  opacity:.22;transition:opacity .12s ease;
}
.mtd-star-static.is-achieved{color:#e8a615;}
.mtd-star-static.is-achieved .mtd-star-icon:before{opacity:1;}
.mtd-star-static.is-achieved[data-star=”5”]{color:#111;}
.mtd-star-static[data-star=”5”] .mtd-star-icon:before{-webkit-mask:url(“beker.png”) center/contain no-repeat;mask:url(“beker.png”) center/contain no-repeat;opacity:1;}
.mtd-star-static.is-achieved[data-star=”5”] .mtd-star-icon:after{content:””;position:absolute;inset:0;background:url(“beker.png”) center/contain no-repeat;display:block;}
.mtd-star-static.is-achieved[data-star=”5”] .mtd-star-icon:before{display:none;}

.mtd-wrap.is-loading .mtd-quiz{opacity:0.6;pointer-events:none;}

.mtd-notice{padding:12px 14px;border:1px solid rgba(0,0,0,.15);border-radius:8px;}

/* Overview */
.mtd-overview{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.mtd-overview-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:7px 10px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:12px;
}

.mtd-overview-title{
  font-weight:700;
  font-size:0.95em;
}

.mtd-overview-stars{
  display:flex;
  gap:4px;
}

.mtd-star.mtd-star-static{
  flex:0 0 auto;
  padding:0;
  cursor:default;
}

.mtd-star.mtd-star-static .mtd-star-icon{
  width:clamp(20px,3.0vw,32px);
  height:clamp(20px,3.0vw,32px);
}


/* ═══════════════════════════════════════════════════════════════
   Homepage grid — pixel-perfect identiek aan Home.html
   Gescoped binnen .mtd-home-grid zodat Divi niet interfereert
   ═══════════════════════════════════════════════════════════════ */

/* Box-sizing reset */
.mtd-home-grid,.mtd-home-grid *,.mtd-home-grid *::before,.mtd-home-grid *::after{
  box-sizing:border-box;
}

/* Margin/padding/font reset — Divi overschrijft h1-h6 aggressief met !important */
.mtd-home-grid h1,.mtd-home-grid h2,.mtd-home-grid h3,
.mtd-home-grid h4,.mtd-home-grid h5,.mtd-home-grid h6,
.mtd-home-grid p,.mtd-home-grid ul,.mtd-home-grid ol,.mtd-home-grid li{
  margin:0 !important;
  padding:0 !important;
  font-size:inherit !important;
  font-weight:inherit !important;
  line-height:inherit !important;
  color:inherit !important;
}

/* CSS variabelen — identiek aan Home.html :root */
.mtd-home-grid{
  --blue:#dde8f5;
  --blue-dark:#59b89a;
  --blue-deep:#3a9a7c;
  --yellow:#F5C200;
  --text:#1a2c40;
  --muted:#7a99b8;
  --radius:18px;
  --shadow:0 4px 20px rgba(50,100,160,.10);
  --shadow-lg:0 14px 40px rgba(50,100,160,.18);
  width:100%;
  font-family:'Nunito',sans-serif;
  color:var(--text);
  /* Reset Divi's verhoogde line-height naar browser/Home.html default */
  line-height:1.2;
}
/* Alle directe kinderen ook resetten zodat Divi-cascade niet doorlekt */
.mtd-home-grid *{
  line-height:inherit;
}

/* ── Welcome balk (.top-bar) ── */
.mtd-home-grid .top-bar{
  width:100%;
  margin:16px 0 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.mtd-home-grid .top-bar-welcome{
  display:flex;
  align-items:center;
  flex-shrink:0;
  height:90px;
}
.mtd-home-grid .welcome-text{
  display:flex;
  flex-direction:column;
  justify-content:center;
  height:90px;
}
.mtd-home-grid .welcome-heading{
  font-family:'Nunito',sans-serif !important;
  font-weight:700 !important;
  font-size:1.15rem !important;
  color:#000 !important;
  line-height:1.2 !important;
  margin:0 !important;
}
.mtd-home-grid .welcome-subtitle{
  font-family:'Nunito',sans-serif !important;
  font-size:1rem !important;
  color:#7a99b8 !important;
  font-weight:600 !important;
  margin:0 !important;
  margin-top:2px !important;
  line-height:1.3 !important;
}

/* Advertentieblok */
.mtd-home-grid .ad-block{
  width:728px;height:90px;
  flex-shrink:0;
  background:#f4f8fd;
  border:1px solid #dde8f5;
  border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  position:relative;
  overflow:hidden;
}
.mtd-home-grid .ad-label{
  font-size:.62rem;font-weight:700;
  color:#b0c4d8;
  text-transform:uppercase;letter-spacing:1px;
  position:absolute;top:5px;left:10px;
}

/* Inline voortgangsbalk */
.mtd-home-grid .prog-inline{display:flex !important;align-items:center !important;gap:6px !important;margin-top:4px !important;}
.mtd-home-grid .prog-inline-track{width:94px !important;height:4px !important;background:#dce8f2 !important;border-radius:8px !important;overflow:hidden !important;flex-shrink:0 !important;}
.mtd-home-grid .prog-inline-fill{height:100%;background:linear-gradient(90deg,#7ab8d4,#a8d4e6);border-radius:8px;transition:width .7s ease;}
.mtd-home-grid .prog-inline-label{font-size:.65rem;font-weight:600;color:#a8bfcf;white-space:nowrap;}

/* ── 2-koloms hoofdlayout (.main-grid-wrap) ── */
.mtd-home-grid .main-grid-wrap{
  width:100%;
  display:grid;
  grid-template-columns:1fr 300px;
  gap:0 24px;
  padding:0;
  align-items:stretch;
}

/* ── Diploma kolom (.dip-col) ── */
.mtd-home-grid .dip-col{
  display:flex;
  flex-direction:column;
  gap:10px;
  border-left:1px solid #dde8f5;
  padding-left:24px;
}

/* ── Tafelkaarten grid (.grid) ── */
.mtd-home-grid .grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:10px;
  align-content:stretch;
}

/* Kaart-in animatie */
@keyframes mtdCardIn{
  from{opacity:0;transform:translateY(14px);}
  to{opacity:1;transform:translateY(0);}
}

/* stagger (12 kaarten) */
.mtd-home-grid .grid .card:nth-child(1){animation-delay:.03s}
.mtd-home-grid .grid .card:nth-child(2){animation-delay:.06s}
.mtd-home-grid .grid .card:nth-child(3){animation-delay:.09s}
.mtd-home-grid .grid .card:nth-child(4){animation-delay:.12s}
.mtd-home-grid .grid .card:nth-child(5){animation-delay:.15s}
.mtd-home-grid .grid .card:nth-child(6){animation-delay:.18s}
.mtd-home-grid .grid .card:nth-child(7){animation-delay:.21s}
.mtd-home-grid .grid .card:nth-child(8){animation-delay:.24s}
.mtd-home-grid .grid .card:nth-child(9){animation-delay:.27s}
.mtd-home-grid .grid .card:nth-child(10){animation-delay:.30s}
.mtd-home-grid .grid .card:nth-child(11){animation-delay:.33s}
.mtd-home-grid .grid .card:nth-child(12){animation-delay:.36s}

/* ── Tafelkaart (.card) ── */
.mtd-home-grid .card{
  background:#fff;
  border-radius:var(--radius);
  padding:12px 8px 10px;
  text-align:center;
  box-shadow:var(--shadow);
  transition:transform .2s, box-shadow .2s, border-color .2s;
  position:relative;
  overflow:hidden;
  text-decoration:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border:2px solid transparent;
  animation:mtdCardIn .4s ease both;
}
.mtd-home-grid .card::before{
  content:'';position:absolute;top:0;left:0;right:0;
  height:5px;
  background:var(--blue);
  transition:background .2s;
}
.mtd-home-grid .card:hover{transform:translateY(-7px);box-shadow:var(--shadow-lg);border-color:var(--blue);}
.mtd-home-grid .card:hover::before{background:var(--blue-dark);}
.mtd-home-grid .card.diploma::before{background:var(--yellow);}
.mtd-home-grid .card.diploma:hover::before{background:#F5B800;}
.mtd-home-grid .card.is-disabled{opacity:.72;cursor:default;pointer-events:none;}

/* .card-num */
.mtd-home-grid .card-num{
  font-family:'Fredoka One',cursive;
  font-size:1.9rem;
  line-height:1;
  color:var(--blue-dark);
  margin-bottom:2px;
  transition:color .15s;
}

/* .card-label */
.mtd-home-grid .card-label{
  font-size:.58rem !important;
  font-weight:700 !important;
  color:var(--muted) !important;
  text-transform:uppercase !important;
  letter-spacing:.8px !important;
  margin-bottom:7px !important;
}

/* Sterren */
.mtd-home-grid .stars{display:flex;gap:2px;justify-content:center;align-items:center;margin-bottom:7px;flex-wrap:nowrap;}
.mtd-home-grid .star{font-size:clamp(.55rem,1.8vw,.9rem) !important;line-height:1 !important;transition:transform .12s;}
.mtd-home-grid .star.on{color:var(--yellow) !important;filter:drop-shadow(0 1px 3px rgba(245,184,0,.5));}
.mtd-home-grid .star.off{color:#c8d9e8 !important;}
.mtd-home-grid .card:hover .star.on{transform:scale(1.10);}

/* Badge (.badge) */
.mtd-home-grid .badge{
  display:inline-flex !important;align-items:center !important;gap:3px !important;
  font-size:.65rem !important;font-weight:700 !important;
  padding:3px 10px !important;border-radius:20px !important;white-space:nowrap !important;
}
.mtd-home-grid .badge-diploma{background:#e2f5ef !important;color:#000 !important;}
.mtd-home-grid .badge-bezig{background:var(--blue) !important;color:#000 !important;}
.mtd-home-grid .badge-start{background:var(--blue) !important;color:#000 !important;}

/* ── Diploma kaarten (.dip-card) ── */
.mtd-home-grid .dip-card{
  border-radius:14px;
  padding:14px 18px;
  position:relative;overflow:hidden;
  box-shadow:0 2px 12px rgba(50,100,160,.07);
  transition:transform .2s, box-shadow .2s;
  border:1.5px solid #e8eef5;
  display:flex;flex-direction:row;align-items:center;
  gap:16px;
  text-decoration:none;
  cursor:pointer;
  background:#fff;
  flex:1;
}
.mtd-home-grid .dip-card:hover{transform:translateY(-4px);box-shadow:0 8px 28px rgba(50,100,160,.13);}
.mtd-home-grid .dip-card::before{
  content:'';position:absolute;top:0;left:0;bottom:0;width:4px;
}

/* Brons */
.mtd-home-grid .dip-brons{border-color:#ede2d4;}
.mtd-home-grid .dip-brons::before{background:#cd7f32;}
.mtd-home-grid .dip-brons:hover{border-color:#d4a96a;}

/* Zilver */
.mtd-home-grid .dip-zilver{border-color:#dce3ea;}
.mtd-home-grid .dip-zilver::before{background:#a0b0c0;}
.mtd-home-grid .dip-zilver:hover{border-color:#a0b0c0;}

/* Goud */
.mtd-home-grid .dip-goud{border-color:#f0dfa0;}
.mtd-home-grid .dip-goud::before{background:#F5C200;}
.mtd-home-grid .dip-goud:hover{border-color:#F5C200;box-shadow:0 8px 28px rgba(245,194,0,.15);}
.mtd-home-grid .dip-goud.behaald::after{
  content:'';position:absolute;top:0;left:-100%;width:60%;height:100%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);
  animation:mtdShimmer 2.5s infinite;
}
@keyframes mtdShimmer{to{left:160%;}}

/* Medal */
.mtd-home-grid .dip-medal-wrap{
  width:52px;height:52px;
  background:#f0f5fb;border-radius:50%;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.mtd-home-grid .dip-medal-emoji{
  font-size:1.7rem;line-height:1;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.12));
  transition:transform .2s;
}
.mtd-home-grid .dip-card:hover .dip-medal-emoji{transform:scale(1.06);}

/* Info kolom binnen diploma kaart */
.mtd-home-grid .dip-info{
  display:flex;flex-direction:column;
  align-items:flex-start;justify-content:center;
  text-align:left;flex:1;min-width:0;gap:3px;
}
.mtd-home-grid .dip-title{
  font-family:'Nunito',sans-serif !important;
  font-weight:700 !important;font-size:.92rem !important;line-height:1.2 !important;color:#000 !important;
  margin:0 !important;padding:0 !important;
}
.mtd-home-grid .dip-tafels{
  font-size:.72rem !important;font-weight:600 !important;color:var(--muted) !important;
  white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;width:100% !important;
  margin:0 !important;
}
.mtd-home-grid .dip-badge{
  display:inline-flex !important;align-items:center !important;gap:4px !important;
  font-size:.65rem !important;font-weight:700 !important;
  padding:3px 10px !important;border-radius:20px !important;white-space:nowrap !important;
  margin-top:2px !important;
}
.mtd-home-grid .dip-badge-locked{background:#dde8f5 !important;color:#000 !important;}
.mtd-home-grid .dip-badge-start{background:#dde8f5 !important;color:#000 !important;}
.mtd-home-grid .dip-badge-bezig{background:#e2f5ef;color:#2a7a5f;}
.mtd-home-grid .dip-badge-behaald{background:#e2f5ef;color:#000;}

/* ── Responsive ── */
@media (max-width:1100px){
  .mtd-home-grid .grid{grid-template-columns:repeat(4,1fr);}
  .mtd-home-grid .ad-block{display:none;}
}
@media (max-width:900px){
  .mtd-home-grid .grid{grid-template-columns:repeat(3,1fr);}
}
@media (max-width:800px){
  .mtd-home-grid .main-grid-wrap{
    grid-template-columns:1fr;
  }
  .mtd-home-grid .dip-col{
    border-left:none;padding-left:0;
    border-top:1px solid #dde8f5;padding-top:16px;
  }
  .mtd-home-grid .grid{grid-template-columns:repeat(3,1fr);}
  .mtd-home-grid .card{padding:10px 4px 8px;}
  .mtd-home-grid .stars{gap:1px;}
}
@media (max-width:480px){
  .mtd-home-grid .grid{gap:6px;}
  .mtd-home-grid .card{padding:8px 4px 7px;}
  .mtd-home-grid .stars{gap:0px;}
}
@media (max-width:380px){
  .mtd-home-grid .grid{grid-template-columns:repeat(2,1fr);}
}
