/* Karim Academy V20: parent tracking is on the PUBLIC HOME PAGE only. */
.learner-app .kf-parent-entry-sidebar,
#kf-parent-public-shortcut {display:none !important;}

.kf-parent-entry-icon {
  display:grid;
  flex:0 0 38px;
  width:38px;
  height:38px;
  place-items:center;
  border-radius:12px;
  background:#eae5ff;
  color:#5a42c9;
}
.kf-parent-entry-icon svg {width:21px;height:21px;}
.kf-parent-entry-copy {display:flex;flex:1;min-width:0;flex-direction:column;gap:2px;text-align:right;}
.kf-parent-entry-copy strong {font-size:13px;font-weight:800;line-height:1.5;color:inherit;}
.kf-parent-entry-copy small {font-size:11px;line-height:1.5;color:#746d94;}
.kf-parent-entry-arrow {display:grid;place-items:center;flex:0 0 17px;width:17px;height:17px;transform:rotate(180deg);}
.kf-parent-entry-arrow svg {width:100%;height:100%;}

/* Desktop homepage header: next to sign in / register */
.site-header .nav-actions > .kf-parent-header-link {
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  gap:9px;
  padding:8px 12px;
  min-height:47px;
  border:1px solid #d3caf7;
  border-radius:15px;
  background:linear-gradient(135deg,#f9f7ff,#eee9ff);
  box-shadow:0 3px 10px rgba(71,50,163,.06);
  color:#4f39b8;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
  transition:background .2s,transform .2s;
}
.site-header .nav-actions > .kf-parent-header-link:hover {
  background:#e7e0ff;
  transform:translateY(-1px);
}
.site-header .nav-actions > .kf-parent-header-link .kf-parent-entry-icon {
  flex-basis:29px;
  width:29px;
  height:29px;
  background:#e1d9fc;
  border-radius:9px;
}
.site-header .nav-actions > .kf-parent-header-link .kf-parent-entry-icon svg {width:17px;height:17px;}
.site-header .nav-actions > .kf-parent-header-link .kf-parent-entry-arrow {display:none;}
.site-header .nav-actions > .kf-parent-header-link .kf-parent-entry-copy strong {font-size:12px;}

/* Hero CTA ensures parents can find it on phones even when top nav is collapsed. */
.hero-buttons > .kf-parent-hero-link {
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:57px;
  max-width:100%;
  padding:8px 12px;
  border:1.5px solid rgba(255,255,255,.48);
  border-radius:17px;
  background:rgba(255,255,255,.96);
  color:#3e2e90;
  box-shadow:0 8px 26px rgba(24,17,86,.14);
  text-decoration:none;
  transition:transform .2s,box-shadow .2s;
}
.hero-buttons > .kf-parent-hero-link:hover {transform:translateY(-2px);box-shadow:0 12px 30px rgba(24,17,86,.2);}
.hero-buttons > .kf-parent-hero-link .kf-parent-entry-copy {flex:0 1 auto;}
.hero-buttons > .kf-parent-hero-link .kf-parent-entry-copy strong {font-size:13px;}
.hero-buttons > .kf-parent-hero-link .kf-parent-entry-copy small {color:#6e648f;}
.hero-buttons > .kf-parent-hero-link .kf-parent-entry-arrow {color:#6b57d7;}

@media(max-width:850px){
  .site-header .nav-actions > .kf-parent-header-link {min-height:43px;padding:6px 10px;}
  .hero-buttons {flex-wrap:wrap;}
}
@media(max-width:650px){
  .hero-buttons > .kf-parent-hero-link {width:100%;min-height:61px;justify-content:flex-start;}
  .hero-buttons > .kf-parent-hero-link .kf-parent-entry-arrow {margin-inline-start:auto;}
}
@media(prefers-reduced-motion:reduce){
  .site-header .nav-actions > .kf-parent-header-link,.hero-buttons > .kf-parent-hero-link {transition:none;}
}

/* V21: custom (reference-design) homepage uses .d-header and .d-actions. */
.public-design .d-header .d-nav-actions > .kf-parent-header-link,
.reference-design .d-header .d-nav-actions > .kf-parent-header-link {
  display:inline-flex !important;
  align-items:center !important;
  flex:0 0 auto !important;
  gap:8px !important;
  min-height:42px;
  padding:6px 13px !important;
  border:1px solid #d3caf7 !important;
  border-radius:999px !important;
  background:linear-gradient(135deg,#f9f7ff,#eee9ff) !important;
  -webkit-background-clip:border-box !important;
  background-clip:border-box !important;
  color:#4f39b8 !important;
  -webkit-text-fill-color:#4f39b8 !important;
  font-size:13px !important;
  font-weight:800 !important;
  text-decoration:none !important;
  box-shadow:0 3px 10px rgba(71,50,163,.06);
  white-space:nowrap;
}
.public-design .d-header .d-nav-actions > .kf-parent-header-link .kf-parent-entry-icon {
  flex:0 0 28px;
  width:28px;
  height:28px;
  border-radius:50%;
  background:#e8e1ff;
}
.public-design .d-header .d-nav-actions > .kf-parent-header-link .kf-parent-entry-icon svg {width:17px;height:17px;}
.public-design .d-header .d-nav-actions > .kf-parent-header-link .kf-parent-entry-arrow{display:none;}

/* Place an easy-to-find parent entry near the homepage's two main actions. */
.public-design .d-home .d-actions > .kf-parent-hero-link {
  display:inline-flex !important;
  align-items:center;
  gap:10px;
  min-height:56px;
  padding:9px 16px;
  border:1.5px solid rgba(255,255,255,.55);
  border-radius:18px;
  background:#fff;
  color:#34277b;
  text-decoration:none;
  box-shadow:0 8px 24px rgba(20,18,80,.12);
  max-width:100%;
}
.public-design .d-home .d-actions > .kf-parent-hero-link .kf-parent-entry-copy strong {font-size:14px;}
.public-design .d-home .d-actions > .kf-parent-hero-link .kf-parent-entry-copy small {color:#6e648f;font-size:10px;}
.public-design .d-home .d-actions > .kf-parent-hero-link .kf-parent-entry-arrow {color:#6953d8;}
.public-design .d-home .d-actions {flex-wrap:wrap;}
@media(max-width:1050px){
  .public-design .d-header .d-nav-actions > .kf-parent-header-link {font-size:12px !important;padding:5px 9px !important;}
}
@media(max-width:650px){
  .public-design .d-home .d-actions > .kf-parent-hero-link {width:100%;justify-content:flex-start;}
  .public-design .d-home .d-actions > .kf-parent-hero-link .kf-parent-entry-arrow {margin-inline-start:auto;}
}
