:root {
  --footer-ink: #1c1024;
  --footer-paper: #070913;
  --footer-white: #ffffff;
  --footer-orange: #9bd8b5;
  --footer-pink: #d94d9d;
  --footer-turquoise: #5cc8dc;
  --footer-yellow: #dbe57f;
  --footer-line: rgba(255, 255, 255, 0.18);
  --footer-muted: rgba(255, 255, 255, 0.72);
  --font-sans: "Poppins", Arial, Helvetica, sans-serif;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

body {
  font-family: var(--font-sans);
}

:where(p, a, li, span, small, em, strong, b, label, input, textarea, select, button, blockquote, figcaption),
:where(.card-quote, .card-activity, .course-copy, .course-small-copy, .teachers-grid, .footer-brand, .footer-inner, .footer-bottom) {
  font-family: var(--font-sans) !important;
}

:where(h1, h2, h3, h4, h5, h6, p, a, li, span, small, em, strong, b, label, input, textarea, select, button, blockquote, figcaption, div) {
  font-weight: 400 !important;
}

.course-cta strong {
  font-family: "JuniorDisplay", var(--font-sans) !important;
}

.promise-title,
.promise-title span {
  font-family: "JuniorDisplay", var(--font-sans) !important;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(9, 13, 30, 0) 0, rgba(9, 13, 30, 0.74) 34px),
    radial-gradient(circle at 12% 0%, rgba(217, 77, 157, 0.24), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(92, 200, 220, 0.18), transparent 32%),
    linear-gradient(145deg, #070913 0%, #120d24 48%, #210b20 100%);
  color: var(--footer-white);
  padding: 64px 56px 28px;
  border-top: 4px solid rgba(219, 229, 127, 0.72);
  box-shadow: inset 0 24px 70px rgba(0, 0, 0, 0.42);
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 92px);
  opacity: 0.32;
  pointer-events: none;
}

.site-footer a {
  color: inherit;
}

.footer-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(170px, 0.7fr) minmax(220px, 0.9fr) minmax(190px, 0.8fr);
  gap: 16px;
}

.footer-brand,
.footer-inner > nav,
.footer-support {
  min-height: 100%;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.055));
  border: 1px solid var(--footer-line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.footer-brand {
  display: grid;
  gap: 14px;
  align-content: start;
  border-left: 6px solid var(--footer-yellow);
}

.footer-inner > nav:nth-of-type(1) {
  border-left: 6px solid var(--footer-turquoise);
}

.footer-inner > nav:nth-of-type(2) {
  border-left: 6px solid var(--footer-pink);
}

.footer-support {
  border-left: 6px solid var(--footer-orange);
}

.footer-logo {
  width: min(100%, 260px);
  height: auto;
  display: block;
  object-fit: contain;
}

.footer-brand p,
.footer-bottom p {
  margin: 0;
  color: var(--footer-muted);
  font-size: 15px;
  line-height: 1.55;
}

.footer-back-top {
  width: fit-content;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(219, 229, 127, 0.48);
  background: rgba(219, 229, 127, 0.10);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-white);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.footer-back-top:hover {
  background: var(--footer-yellow);
  color: var(--footer-ink);
  transform: translateY(-2px);
}

.footer-title {
  margin: 0 0 16px;
  color: var(--footer-orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-links,
.footer-social {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer-links a,
.footer-social a {
  color: var(--footer-white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.footer-links a {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.045);
  display: flex;
  align-items: center;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.footer-links a:hover,
.footer-social a:hover {
  color: var(--footer-white);
}

.footer-links a:hover {
  border-color: rgba(92, 200, 220, 0.54);
  background: rgba(92, 200, 220, 0.13);
  transform: translateX(4px);
}

.footer-social {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.footer-social a {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(217, 77, 157, 0.12), rgba(92, 200, 220, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.footer-social a:hover {
  border-color: var(--footer-pink);
  background:
    linear-gradient(135deg, rgba(217, 77, 157, 0.26), rgba(239, 128, 84, 0.18));
  transform: translateY(-2px);
}

.footer-support {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  text-align: center;
}

.footer-support span {
  color: var(--footer-muted);
  font-size: 13px;
  font-weight: 800 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-support strong {
  color: var(--footer-white);
  font-size: 18px;
  font-weight: 900 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 8px;
}

.footer-support a {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease;
}

.footer-support a:hover {
  transform: translateY(-2px);
}

.footer-support img {
  width: auto;
  max-width: 88px;
  max-height: 88px;
  display: block;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px;
}

.footer-bottom {
  width: min(100%, 1180px);
  margin: 14px auto 0;
  padding: 16px 22px;
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid var(--footer-line);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom a {
  color: var(--footer-white);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-bottom a:hover {
  color: var(--footer-orange);
}

.site-footer p {
  text-align: justify;
  text-align-last: left;
}

@media (max-width: 850px) {
  .site-footer {
    padding: 56px 24px 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-brand,
  .footer-inner > nav {
    padding: 24px;
  }

  .footer-social {
    grid-template-columns: 1fr;
  }

  .footer-support {
    align-items: center;
    flex-direction: column;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Text-only yellow harmonization */
.footer-title,
.footer-back-top {
  color: #DBE57F !important;
}

.footer-support .footer-support-iwz{margin-top:-8px;}
.footer-support .footer-support-iwz img{width:auto;max-width:88px;max-height:88px;object-fit:contain;background:rgba(255,255,255,.92);padding:10px;box-sizing:content-box;}
