/* Shared LearnTurki footer — same band on every public page. */
.site-footer-directory{font-size:13px;font-weight:400;color:#17628f;text-decoration:none;line-height:1.6;padding-block:10px}
.site-footer-directory:hover,.site-footer-directory:focus-visible{text-decoration:underline}
html body .footer.site-footer,
html body .footer.site-chrome-footer.site-footer{
  display:block;
  width:100%;
  max-width:none;
  margin:28px 0 0;
  padding:0 0 28px;
  background:transparent;
  color:#5c6881;
  border:0;
  font-family:Tajawal,Tahoma,sans-serif;
  box-sizing:border-box;
}
html body .site-footer-rail{
  width:min(100% - 40px, 1440px);
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:14px;
  box-sizing:border-box;
}
html body .site-footer-tools{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 18px;
  padding:0 4px;
  border-top:1px solid #e1e6f0;
  padding-top:16px;
}
html body .site-footer-about,
html body .site-footer-top{
  appearance:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0;
  padding:6px 2px;
  border:0;
  background:none;
  color:#152349;
  font:700 14px/1.5 Tajawal,Tahoma,sans-serif;
  cursor:pointer;
  text-align:start;
}
html body .site-footer-about:hover,
html body .site-footer-top:hover{color:#123acf}
html body .site-footer-about-chevron,
html body .site-footer-top-icon{
  display:inline-block;
  width:0;
  height:0;
  border-style:solid;
  flex-shrink:0;
}
html body .site-footer-about-chevron{
  border-width:5px 7px 5px 0;
  border-color:transparent currentColor transparent transparent;
}
html body .site-footer-top-icon{
  border-width:0 6px 8px 6px;
  border-color:transparent transparent currentColor transparent;
}
html body .site-footer-panel{
  background:#fff;
  border:1px solid #e8edf5;
  border-radius:18px;
  padding:26px 28px 18px;
  box-sizing:border-box;
  box-shadow:0 10px 28px #15234908;
}
html body .footer.site-footer .site-chrome-footer-grid,
html body .footer.site-chrome-footer.site-footer .site-chrome-footer-grid{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:16px;
  align-items:flex-start;
  justify-items:start;
  text-align:start;
  grid-template-columns:none;
}
html body .footer.site-footer .site-chrome-column,
html body .footer.site-chrome-footer.site-footer .site-chrome-column{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:14px;
}
html body .footer.site-footer .site-chrome-footer-text,
html body .footer.site-chrome-footer.site-footer .site-chrome-footer-text{
  margin:0;
  color:#6a7388;
  font:500 14px/1.7 Tajawal,Tahoma,sans-serif;
}
html body .footer.site-footer .site-chrome-links,
html body .footer.site-chrome-footer.site-footer .site-chrome-links{
  display:block;
  width:100%;
}
html body .footer.site-footer .site-chrome-links > strong{display:none}
html body .footer.site-footer .footer-links,
html body .footer.site-chrome-footer.site-footer .footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px 22px;
  align-items:center;
  margin:0;
}
html body .footer.site-footer .footer-links a,
html body .footer.site-chrome-footer.site-footer .footer-links a{
  color:#152349;
  font:800 15px/1.4 Tajawal,Tahoma,sans-serif;
  text-decoration:none;
  margin:0;
}
html body .footer.site-footer .footer-links a:hover,
html body .footer.site-chrome-footer.site-footer .footer-links a:hover{
  color:#123acf;
}
html body .footer.site-footer .site-chrome-logo,
html body .footer.site-chrome-footer.site-footer .site-chrome-logo{
  margin-top:4px;
  max-width:min(280px, 100%);
}
html body .footer.site-footer .brand-mark--wide,
html body .footer.site-footer .brand-mark-img,
html body .footer.site-chrome-footer.site-footer .brand-mark--wide,
html body .footer.site-chrome-footer.site-footer .brand-mark-img{
  width:auto;
  max-width:100%;
  height:var(--brand-mark-size, 64px);
}
html body .footer.site-footer .site-chrome-footer-bar,
html body .footer.site-chrome-footer.site-footer .site-chrome-footer-bar{
  width:100%;
  max-width:none;
  margin:10px 0 0;
  padding:8px 0 0;
  justify-content:flex-start;
  background:transparent;
  border-top:0;
}
html body .footer.site-footer .site-chrome-copy,
html body .footer.site-chrome-footer.site-footer .site-chrome-copy{
  color:#9aa3b5;
  font:500 12px/1.5 Tajawal,Tahoma,sans-serif;
}

/* Static fallback markup (unpublished chrome) mirrors the published shell. */
html body .footer.site-footer .site-footer-tagline{
  margin:0;
  color:#6a7388;
  font:500 14px/1.7 Tajawal,Tahoma,sans-serif;
}
html body .footer.site-footer .site-footer-brand{
  display:inline-flex;
  max-width:min(280px, 100%);
}
html body .footer.site-footer .site-footer-brand img{
  display:block;
  width:auto;
  max-width:100%;
  height:64px;
}
html body .footer.site-footer .site-footer-copy{
  color:#9aa3b5;
  font:500 12px/1.5 Tajawal,Tahoma,sans-serif;
}

html body .site-footer-about-balloon{
  position:fixed;
  inset:0;
  z-index:90;
  display:grid;
  place-items:center;
  padding:20px;
  background:#15234955;
  backdrop-filter:blur(3px);
  box-sizing:border-box;
}
html body .site-footer-about-balloon[hidden]{display:none !important}
html body .site-footer-about-card{
  width:min(560px, 100%);
  max-height:min(78vh, 640px);
  overflow:auto;
  background:#fff;
  border:1px solid #e1e6f0;
  border-radius:18px;
  box-shadow:0 22px 60px #15234933;
  padding:18px 20px 20px;
  box-sizing:border-box;
}
html body .site-footer-about-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
html body .site-footer-about-head strong{
  color:#152349;
  font:800 18px/1.3 Tajawal,Tahoma,sans-serif;
}
html body .site-footer-about-close{
  appearance:none;
  border:0;
  background:#eef2fc;
  color:#152349;
  width:36px;
  height:36px;
  border-radius:10px;
  font:700 22px/1 Arial,sans-serif;
  cursor:pointer;
}
html body .site-footer-about-body{
  color:#5c6881;
  font:500 14px/1.8 Tajawal,Tahoma,sans-serif;
}
html body .site-footer-about-body p{margin:0 0 12px}
html body .site-footer-about-body p:last-child{margin-bottom:0}
html body .site-footer-about-note{
  margin-top:14px !important;
  padding-top:12px;
  border-top:1px solid #e8edf5;
  color:#8a93a8;
  font-size:12px !important;
}

/* Hide the legacy inline about accordion once the footer balloon owns it. */
html body details#about-content{display:none !important}

@media (max-width:760px){
  html body .site-footer-rail{width:min(100% - 24px, 1440px)}
  html body .site-footer-panel{padding:20px 18px 14px; border-radius:14px}
  html body .site-footer-tools{flex-direction:column; align-items:flex-start}
  html body .footer.site-footer .footer-links,
  html body .footer.site-chrome-footer.site-footer .footer-links{gap:8px 16px}
  html body .footer.site-footer .footer-links a,
  html body .footer.site-chrome-footer.site-footer .footer-links a{font-size:14px}
  html body .footer.site-footer .brand-mark-img,
  html body .footer.site-chrome-footer.site-footer .brand-mark-img,
  html body .footer.site-footer .site-footer-brand img{height:52px}
  /* Keep footer links above the listening dock when it is open. */
  html body:has(#player:not([hidden])) .footer.site-footer,
  html body:has(#player:not([hidden])) .footer.site-chrome-footer{
    padding-bottom:calc(24px + var(--player-dock-h, 168px));
  }
}

/* A single full-width footer for the site and the learner dashboard. */
html body .footer.site-footer,
html body .footer.site-chrome-footer.site-footer{
  position:relative;
  margin:48px 0 0;
  padding:0 0 22px;
  overflow:hidden;
  background:#fff;
  color:#173b63;
  border-top:1px solid #d8e4ef;
}
html body .footer.site-footer::before{
  content:"";
  display:block;
  height:5px;
  background:linear-gradient(90deg,#10365c 0%,#367fbc 54%,#e9a51d 82%,#f5c45c 100%);
}
html body .site-footer-rail{
  width:min(100% - 48px, 1520px);
  gap:0;
}
html body .site-footer-panel{
  order:1;
  padding:42px 0 0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
}
html body .footer.site-footer .site-chrome-footer-grid,
html body .footer.site-chrome-footer.site-footer .site-chrome-footer-grid{
  display:block;
  width:100%;
}
html body .footer.site-footer .site-chrome-column,
html body .footer.site-chrome-footer.site-footer .site-chrome-column{
  display:grid;
  width:100%;
  grid-template-columns:minmax(230px,.85fr) minmax(0,1.55fr);
  grid-template-areas:"brand links" "mission links";
  align-items:start;
  gap:12px clamp(24px,5vw,90px);
}
html body .footer.site-footer .site-chrome-logo,
html body .footer.site-chrome-footer.site-footer .site-chrome-logo{
  grid-area:brand;
  margin:0;
  justify-self:start;
  max-width:min(290px,100%);
}
html body .footer.site-footer .brand-mark--wide,
html body .footer.site-footer .brand-mark-img,
html body .footer.site-chrome-footer.site-footer .brand-mark--wide,
html body .footer.site-chrome-footer.site-footer .brand-mark-img{
  height:66px;
  max-width:100%;
  object-fit:contain;
}
html body .footer.site-footer .site-chrome-footer-text,
html body .footer.site-chrome-footer.site-footer .site-chrome-footer-text{
  grid-area:mission;
  max-width:37ch;
  margin:19px 0 0;
  color:#586b7c;
  font:400 13px/1.85 Tajawal,Tahoma,sans-serif;
}
html body .footer.site-footer .site-chrome-links,
html body .footer.site-chrome-footer.site-footer .site-chrome-links{
  grid-area:links;
  align-self:center;
}
html body .footer.site-footer .footer-links,
html body .footer.site-chrome-footer.site-footer .footer-links{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
}
html body .footer.site-footer .footer-links a,
html body .footer.site-chrome-footer.site-footer .footer-links a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:8px 13px;
  border-radius:11px;
  border:1px solid #dbe6f0;
  border-inline-start:3px solid #e5a829;
  background:#f8fbfd;
  color:#183e69;
  font:500 13px/1.4 Tajawal,Tahoma,sans-serif;
  transition:background .16s,border-color .16s,transform .16s;
}
html body .footer.site-footer .footer-links a:hover,
html body .footer.site-chrome-footer.site-footer .footer-links a:hover{
  background:#fff;
  border-color:#9fc0df;
  transform:translateY(-2px);
  color:#176caa;
}
html body .footer.site-footer .site-chrome-footer-bar,
html body .footer.site-chrome-footer.site-footer .site-chrome-footer-bar{
  order:3;
  display:flex;
  width:100%;
  max-width:none;
  margin:20px 0 0;
  padding:17px 0 0;
  justify-content:center;
  text-align:center;
  background:transparent;
  border-top:1px solid #cfdeec;
}
html body .footer.site-footer .site-chrome-copy,
html body .footer.site-chrome-footer.site-footer .site-chrome-copy{
  color:#5b7083;
  font:400 10px/1.6 Tajawal,Tahoma,sans-serif;
  text-align:center;
}
html body .site-footer-tools{
  order:2;
  justify-content:space-between;
  padding:13px 0 0;
  border:0;
}
html body .site-footer-about,
html body .site-footer-top{
  min-height:44px;
  padding:9px 13px;
  border-radius:11px;
  font-size:13px;
  font-weight:500;
}
html body .site-footer-about{color:#49647f}
html body .site-footer-top{
  background:#174f83;
  color:#fff;
  box-shadow:0 7px 18px #184d8224;
}
html body .site-footer-top:hover{background:#103b66;color:#fff}
html body .site-footer-top-icon{border-bottom-color:#f5bd44}
html body .footer.site-footer .site-footer-tools button > span:last-child{display:inline}
html body .footer.site-footer :is(a,button):focus-visible{outline:3px solid #d69b22;outline-offset:3px}

@media (max-width:850px){
  html body .footer.site-footer .site-chrome-column,
  html body .footer.site-chrome-footer.site-footer .site-chrome-column{
    grid-template-columns:1fr;
    grid-template-areas:"brand" "mission" "links";
    gap:10px;
  }
  html body .footer.site-footer .site-chrome-links,
  html body .footer.site-chrome-footer.site-footer .site-chrome-links{margin-top:12px}
}
@media (max-width:760px){
  html body .site-footer-rail{width:calc(100% - 28px)}
  html body .site-footer-panel{padding-top:25px}
  html body .footer.site-footer .brand-mark--wide,
  html body .footer.site-footer .brand-mark-img,
  html body .footer.site-chrome-footer.site-footer .brand-mark--wide,
  html body .footer.site-chrome-footer.site-footer .brand-mark-img{height:52px}
  html body .footer.site-footer .site-chrome-footer-text,
  html body .footer.site-chrome-footer.site-footer .site-chrome-footer-text{font-size:12px;margin-top:17px}
  html body .footer.site-footer .footer-links,
  html body .footer.site-chrome-footer.site-footer .footer-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  html body .footer.site-footer .footer-links a,
  html body .footer.site-chrome-footer.site-footer .footer-links a{font-size:12px;padding:7px 9px}
  html body .site-footer-tools{flex-direction:row;align-items:center;gap:6px}
  html body .site-footer-about,
  html body .site-footer-top{font-size:11px;padding:8px}
}
@media (max-width:360px){
  html body .footer.site-footer .footer-links,
  html body .footer.site-chrome-footer.site-footer .footer-links{grid-template-columns:1fr 1fr}
  html body .site-footer-tools{align-items:stretch}
  html body .site-footer-about{max-width:65%;line-height:1.4}
}
@media (prefers-reduced-motion:reduce){
  html body .footer.site-footer .footer-links a{transition:none}
  html body .footer.site-footer .footer-links a:hover{transform:none}
}
