/* =========================================================
   FOOTER — values taken from Figma (frame 1920 × 647)
   ========================================================= */
.gs-footer {
  --gs-red: #d71111;
  --gs-red-dark: #b90e0e;
  --gs-muted: #6d7076;
  --gs-line: #373745;
  --gs-bottom-h: 80px;

  position: relative;
  overflow: hidden;
  min-height: 647px;
  color: #fff;
  font-family: "Manrope", sans-serif;

  /* CHANGE FOOTER BACKGROUND IMAGE HERE
     Full image always visible: scaled to 100% width, height auto
     (keeps the 1920:647 ratio, no stretching, nothing cropped).
     #171721 = Figma gradient colour at the image's bottom edge,
     so the area under the image continues seamlessly. */
  background-color: #171721;
  background-image: url("../images/Footer.webp");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
}

/* Hides the divider line baked into Footer.webp
   (Figma: line at x 375–1545, y 180 of the 1920×647 frame).
   The HTML divider below is used instead so it always lines up with the content.
   Remove this block if you re-export Footer.webp without the line. */
.gs-footer::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 19.5%;                      /* 375 / 1920 */
  width: 61%;                       /* 1170 / 1920 */
  top: calc(9.375vw - 2px);         /* 180 / 1920 = 9.375% of width */
  height: 4px;
  background: #111117;
  pointer-events: none;
}

.gs-footer *, .gs-footer *::before, .gs-footer *::after { box-sizing: border-box; }

.gs-visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Container ---------- */
.gs-footer__container {
  position: relative;
  z-index: 2;
  max-width: 1170px;
  margin: 0 auto;
  /* 70 top + 42 top-row + 68 = line at 180px (Figma) */
  padding: 70px 0 calc(var(--gs-bottom-h) + 102px);
}

/* ---------- Top ---------- */
.gs-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
}

.gs-footer__logo { display: inline-flex; }
.gs-footer__logo img { display: block; width: 161px; height: 42px; object-fit: contain; }

.gs-footer__socials {
  display: flex;
  justify-content: space-between;
  width: 200px;
}

.gs-footer__social {
  width: 35.71px;
  height: 35.71px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(157,157,157,.14);
  color: #fff;
  transition: background .25s ease, transform .25s ease;
}
.gs-footer__social svg { fill: currentColor; display: block; }
.gs-footer__social .ic-fb { width: 9.62px;  height: 17.83px; }
.gs-footer__social .ic-in { width: 15.5px;  height: 15.5px; }
.gs-footer__social .ic-tw { width: 16.5px;  height: 13.7px; }
.gs-footer__social .ic-yt { width: 19.2px;  height: 13.7px; }

.gs-footer__social:hover,
.gs-footer__social:focus-visible { background: var(--gs-red); transform: translateY(-2px); }

/* ---------- Divider ---------- */
.gs-footer__line {
  height: 1px;
  margin-top: 68px;
  background: var(--gs-line);
}

/* ---------- Content: 400 | 107 | 144 | 107 | 410 = 1168 ---------- */
.gs-footer__content {
  display: grid;
  grid-template-columns: 400px 144px 410px;
  column-gap: 107px;
  margin-top: 59px;           /* content starts at 239.85px */
  height: 225px;
}

/* Courses — 29px line, ~49px pitch per bullet */
.gs-footer__courses ul { margin: -9px 0 0; padding: 0; list-style: none; }
.gs-footer__courses li {
  position: relative;
  margin-bottom: 20px;
  padding-left: 18px;
  color: var(--gs-muted);
  font-size: 16px;
  line-height: 29px;
}
.gs-footer__courses li:last-child { margin-bottom: 0; }
.gs-footer__courses li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gs-red);
}

/* Nav — 12px cap-trimmed lines, 24px gap = 36px pitch */
.gs-footer__nav { display: flex; flex-direction: column; gap: 24px; }
.gs-footer__nav a {
  width: fit-content;
  color: var(--gs-muted);
  font-size: 16px;
  line-height: 12px;
  text-decoration: none;
  transition: color .2s ease;
}
.gs-footer__nav a:hover, .gs-footer__nav a:focus-visible { color: #fff; }

/* Contact — 16px rows, 16px gap, icon gap 15.68px */
.gs-footer__contact { display: flex; flex-direction: column; gap: 16px; }
.gs-footer__contact-item {
  display: flex;
  align-items: center;
  gap: 15.68px;
  height: 16px;
  color: var(--gs-muted);
  font-size: 16px;
  line-height: 16px;
}
.gs-footer__contact-item svg { flex: 0 0 16px; width: 16px; height: 16px; fill: var(--gs-red); }
.gs-footer__contact-item span,
.gs-footer__contact-item a {
  color: var(--gs-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}
.gs-footer__contact-item a:hover { color: #fff; }

/* Newsletter — form at 112px from column top */
.gs-footer__newsletter { margin-top: 32px; }
.gs-footer__form { display: flex; width: 410px; max-width: 100%; height: 60px; }
.gs-footer__form input {
  flex: 0 1 286px;
  min-width: 0;
  height: 100%;
  padding: 0 30px;
  border: 0; border-radius: 0; outline: none;
  background: #fff;
  color: #222;
  font: 600 14px/1 "Manrope", sans-serif;
}
.gs-footer__form input::placeholder { color: var(--gs-muted); opacity: 1; }
.gs-footer__form input:focus-visible { box-shadow: inset 0 0 0 2px var(--gs-red); }
.gs-footer__form button {
  flex: 0 0 124px;
  height: 100%;
  border: 1px solid var(--gs-red);
  border-radius: 0;
  background: var(--gs-red);
  color: #fff;
  font: 700 16px/1 "Manrope", sans-serif;
  cursor: pointer;
  transition: background .2s ease;
}
.gs-footer__form button:hover, .gs-footer__form button:focus-visible { background: var(--gs-red-dark); }

.gs-footer__newsletter p {
  margin: 18px 0 0;           /* 26px cap-to-cap per Figma */
  color: #fff;
  font: 700 18px/29px "Urbanist", sans-serif;
}

/* ---------- Bottom bar ---------- */
.gs-footer__bottom {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 3;
  width: 100%;
  height: var(--gs-bottom-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: #0a0a0d;
  text-align: center;
}
.gs-footer__bottom p { margin: 0; color: #a4a7ad; font-size: 16px; line-height: 1.3; }
.gs-footer__bottom a { color: inherit; text-decoration: none; transition: color .2s ease; }
.gs-footer__bottom a:hover { color: #fff; }

/* =========================================================
   TABLET — layout reflows, so the fixed texture would no longer
   line up; fall back to the Figma gradient only.
   ========================================================= */
@media (max-width: 1199.98px) {
  .gs-footer { min-height: 0; }
  .gs-footer__container { padding: 60px 24px calc(var(--gs-bottom-h) + 60px); }
  .gs-footer__content {
    grid-template-columns: 1.4fr 1fr;
    gap: 50px;
    height: auto;
  }
  .gs-footer__right {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
  .gs-footer__newsletter { margin-top: 0; }
  .gs-footer__form { width: 100%; }
  .gs-footer__form input { flex: 1 1 auto; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767.98px) {
  .gs-footer { --gs-bottom-h: 70px; }
  .gs-footer__container { padding: 45px 24px calc(var(--gs-bottom-h) + 45px); }
  .gs-footer__top { height: auto; flex-direction: column; align-items: flex-start; gap: 25px; }
  .gs-footer__logo img { width: 145px; height: auto; }
  .gs-footer__socials { width: auto; gap: 12px; }
  .gs-footer__line { margin-top: 35px; }
  .gs-footer__content { display: flex; flex-direction: column; gap: 40px; margin-top: 40px; }
  .gs-footer__courses ul { margin-top: 0; }
  .gs-footer__courses li { font-size: 15px; line-height: 26px; margin-bottom: 12px; }
  .gs-footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 25px; }
  .gs-footer__right { display: flex; flex-direction: column; gap: 35px; }
  .gs-footer__contact-item { height: auto; align-items: flex-start; line-height: 20px; }
  .gs-footer__contact-item svg { margin-top: 2px; }
  .gs-footer__contact-item span,
  .gs-footer__contact-item a { white-space: normal; word-break: break-word; }
  .gs-footer__form input { padding: 0 18px; }
  .gs-footer__form button { flex-basis: 110px; }
  .gs-footer__newsletter p { font-size: 16px; line-height: 25px; }
  .gs-footer__bottom p { font-size: 13px; }
}

@media (max-width: 480px) {
  .gs-footer__container { padding-left: 18px; padding-right: 18px; }
  .gs-footer__nav { grid-template-columns: 1fr; }
  .gs-footer__form { height: 55px; }
  .gs-footer__form input { font-size: 13px; }
  .gs-footer__form button { flex-basis: 105px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .gs-footer * { transition: none !important; }
  .gs-footer__social:hover { transform: none; }
}

/* social icon with no link set (editable in admin: Settings > Website Info) */
.gs-footer__social.gs-soc-off { opacity: .35; cursor: default; pointer-events: none; }

/* ---------- Subscribe answer ---------- */
.gs-footer__newsletter .gs-footer__subscribe-msg {
  margin: 12px 0 0;
  padding: 10px 14px;
  font: 600 15px/1.4 "Manrope", sans-serif;
  background: rgba(255, 255, 255, .1);
  border-left: 3px solid #fff;
}
.gs-footer__newsletter .gs-footer__subscribe-msg[hidden] { display: none; }
.gs-footer__newsletter .gs-footer__subscribe-msg.is-ok { border-left-color: #4ade80; }
.gs-footer__newsletter .gs-footer__subscribe-msg.is-err { border-left-color: #fca5a5; color: #fecaca; }
.gs-footer__form button:disabled { opacity: .7; cursor: wait; }

/* ---------- Go to top (bottom-left corner, outside the footer so it floats over every page) ---------- */
.gs-totop {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d71111;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.gs-totop[hidden] { display: none; }
.gs-totop.is-on { opacity: 1; transform: none; }
.gs-totop:hover, .gs-totop:focus-visible { background: #b90e0e; }
.gs-totop:focus-visible { outline: 3px solid #2a2a30; outline-offset: 3px; }
.gs-totop svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 767.98px) { .gs-totop { left: 14px; bottom: 14px; width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .gs-totop { transition: none; } }

/* ---------- reCAPTCHA box on the Contact Us / Registration forms ---------- */
.gs-captcha { margin: 0 0 22px; max-width: 100%; overflow-x: auto; }
.gs-captcha__err { margin: 8px 0 0; color: #d71111; font: 600 14px/1.4 "Manrope", sans-serif; }

/* ---------- Address suggestions (Registration / Contact Us) ---------- */
.gs-addr-field { position: relative; }
.gs-addr__list {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
  background: #fff; border: 1px solid #e1e3e8; box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
  max-height: 280px; overflow-y: auto;
}
.gs-addr__list[hidden] { display: none; }
.gs-addr__item { padding: 11px 16px; color: #2a2a30; font: 500 14px/1.4 "Manrope", sans-serif; cursor: pointer; border-bottom: 1px solid #f1f2f4; }
.gs-addr__item:last-child { border-bottom: 0; }
.gs-addr__item:hover, .gs-addr__item.is-active { background: #fdecec; }
.gs-addr__map { margin-top: 8px; height: 190px; border: 1px solid #e1e3e8; background: #f5f5f5; }
.gs-addr__map[hidden] { display: none; }
.gs-addr__map iframe { display: block; width: 100%; height: 100%; border: 0; }
