/* Admission Guide site footer (prefix agx-ftr-): compact; follows the theme
   (light: soft mint surface with dark text; dark: deep green-black with light text). */
.agx-ftr {
  --agx-ftr-h: var(--ag-ink, #0D0F10);         /* headings, strong text */
  --agx-ftr-t: var(--ag-text, #44544F);        /* body text and links */
  --agx-ftr-mint: var(--ag-brand, #05664F);    /* link hover, focus */
  --agx-ftr-icon: var(--ag-brand, #05664F);
  --agx-ftr-line: var(--ag-line, #DCEFE6);
  --agx-ftr-soc-bg: var(--ag-surface, #fff);
  --agx-ftr-soc-bd: var(--ag-line, #DCEFE6);
  --agx-ftr-glow: .18;
  position: relative;
  isolation: isolate;
  overflow: clip;
  margin-top: 0;
  padding: clamp(36px, 4vw, 52px) 0 0;
  background: linear-gradient(180deg, #F4FBF8 0%, #EAF6F0 100%);
  color: var(--agx-ftr-t);
  font-family: var(--ag-font, 'Poppins', system-ui, sans-serif);
  font-size: .875rem;
  line-height: 1.6;
}
html[data-theme="dark"] .agx-ftr {
  --agx-ftr-h: #ECF7F2;
  --agx-ftr-t: #A9C2B8;
  --agx-ftr-mint: #6EE7B7;
  --agx-ftr-icon: #34D399;
  --agx-ftr-line: rgba(169, 194, 184, .14);
  --agx-ftr-soc-bg: rgba(255, 255, 255, .06);
  --agx-ftr-soc-bd: rgba(255, 255, 255, .10);
  --agx-ftr-glow: .35;
  background: linear-gradient(180deg, #04130F 0%, #062A21 100%);
}
/* logo for the current theme */
.agx-ftr .agx-ftr-logo.agx-ftr-logo--dark { display: none; }
html[data-theme="dark"] .agx-ftr .agx-ftr-logo.agx-ftr-logo--light { display: none; }
html[data-theme="dark"] .agx-ftr .agx-ftr-logo.agx-ftr-logo--dark { display: block; }

/* decoration: two soft glows only (no lines over the text) */
.agx-ftr-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: clip; }
.agx-ftr-glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: var(--agx-ftr-glow); }
.agx-ftr-glow-a {
  width: 420px; height: 420px; top: -240px; left: -120px;
  background: radial-gradient(circle, rgba(18, 163, 122, .5), transparent 65%);
}
.agx-ftr-glow-b {
  width: 360px; height: 360px; bottom: -220px; right: -100px;
  background: radial-gradient(circle, rgba(52, 211, 153, .3), transparent 65%);
}

/* thin brand-gradient line at the top */
.agx-ftr-hairline {
  position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, #12A37A 20%, #6EE7B7 50%, #12A37A 80%, transparent);
  opacity: .8;
}

.agx-ftr-inner { position: relative; }
.agx-ftr .agx-ftr-cols { --bs-gutter-y: 1.75rem; }

/* brand column */
.agx-ftr-brand { display: inline-flex; align-items: center; text-decoration: none; border-radius: 8px; margin-bottom: 12px; }
.agx-ftr .agx-ftr-logo { display: block; height: 34px; width: auto; max-width: 100%; }
.agx-ftr-blurb { color: var(--agx-ftr-t); max-width: 320px; margin: 0 0 14px; font-size: .85rem; line-height: 1.65; }
.agx-ftr-social { display: flex; flex-wrap: wrap; gap: 8px; }
.agx-ftr .agx-ftr-soc {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  color: var(--agx-ftr-h); font-size: .95rem; text-decoration: none;
  background: var(--agx-ftr-soc-bg);
  border: 1px solid var(--agx-ftr-soc-bd);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.agx-ftr .agx-ftr-soc:hover, .agx-ftr .agx-ftr-soc:focus-visible { color: #fff; border-color: transparent; }
.agx-ftr .agx-ftr-soc-ig:hover, .agx-ftr .agx-ftr-soc-ig:focus-visible { background: linear-gradient(135deg, #F58529, #DD2A7B 50%, #8134AF); }
.agx-ftr .agx-ftr-soc-in:hover, .agx-ftr .agx-ftr-soc-in:focus-visible { background: #0A66C2; }

/* column labels + link lists */
.agx-ftr .agx-ftr-heading {
  color: var(--agx-ftr-h); font-family: inherit;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.3;
  margin: 4px 0 14px;
}
.agx-ftr-links, .agx-ftr-contact { list-style: none; padding: 0; margin: 0; }
.agx-ftr-links li + li { margin-top: 8px; }
.agx-ftr .agx-ftr-links a {
  color: var(--agx-ftr-t); text-decoration: none; font-size: .875rem; white-space: nowrap;
  transition: color .25s ease;
}
.agx-ftr .agx-ftr-links a:hover, .agx-ftr .agx-ftr-links a:focus-visible { color: var(--agx-ftr-mint); }

/* contact: small inline icons */
.agx-ftr-contact li + li { margin-top: 10px; }
.agx-ftr .agx-ftr-contact a,
.agx-ftr .agx-ftr-contact-row {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--agx-ftr-t); text-decoration: none; font-size: .875rem; line-height: 1.55;
  transition: color .25s ease;
}
.agx-ftr .agx-ftr-contact a > span:last-child { word-break: break-word; }
.agx-ftr .agx-ftr-contact-row > span:last-child { max-width: 360px; font-size: .82rem; }
.agx-ftr-ico { flex: 0 0 auto; color: var(--agx-ftr-icon); font-size: .9rem; line-height: 1.55; }
.agx-ftr .agx-ftr-contact a:hover, .agx-ftr .agx-ftr-contact a:focus-visible { color: var(--agx-ftr-mint); }

/* bottom bar */
.agx-ftr-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 6px 20px;
  margin-top: clamp(28px, 3.5vw, 40px);
  padding: 14px 0 16px;
  border-top: 1px solid var(--agx-ftr-line);
  font-size: .8rem;
}
.agx-ftr-copy { margin: 0; color: var(--agx-ftr-t); }
.agx-ftr-trust { display: inline-flex; align-items: center; gap: 6px; color: var(--agx-ftr-h); }
.agx-ftr-trust i { color: var(--agx-ftr-icon); }
.agx-ftr-legal { display: inline-flex; align-items: center; gap: 10px; }
.agx-ftr .agx-ftr-legal a { color: var(--agx-ftr-t); text-decoration: none; transition: color .25s ease; }
.agx-ftr .agx-ftr-legal a:hover, .agx-ftr .agx-ftr-legal a:focus-visible { color: var(--agx-ftr-mint); }
.agx-ftr-sep { flex: 0 0 auto; width: 1px; height: 12px; background: var(--agx-ftr-line); }

/* focus */
.agx-ftr a:focus-visible, .agx-ftr-top:focus-visible { outline: 2px solid var(--ag-brand-mid, #12A37A); outline-offset: 3px; border-radius: 6px; }

/* back to top: small, and the bottom bar keeps clear of it */
.agx-ftr-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 1030;
  width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 1rem; cursor: pointer;
  background: linear-gradient(135deg, #022C22 0%, #05664F 55%, #12A37A 100%);
  box-shadow: 0 8px 20px rgba(2, 44, 34, .3), inset 0 1px 0 rgba(255, 255, 255, .15);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s var(--ag-ease, ease), visibility 0s linear .3s;
}
.agx-ftr-top.is-on { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .3s ease, transform .3s var(--ag-ease, ease), visibility 0s; }
.agx-ftr-top i { position: relative; z-index: 1; line-height: 1; }
.agx-ftr-top-ring { position: absolute; inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); transform: rotate(-90deg); }
.agx-ftr-top-ring circle { fill: none; stroke-width: 2.5; }
.agx-ftr-top-track { stroke: rgba(255, 255, 255, .16); }
.agx-ftr-top-prog { stroke: #6EE7B7; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
html[data-theme="dark"] .agx-ftr-top { box-shadow: 0 8px 20px rgba(0, 0, 0, .45), 0 0 0 1px rgba(110, 231, 183, .25); }
@media (min-width: 768px) { .agx-ftr-bottom { padding-right: 56px; } }

/* responsive */
@media (max-width: 767.98px) {
  .agx-ftr-bottom { flex-direction: column; align-items: flex-start; padding-bottom: 72px; }
  .agx-ftr-top { right: 14px; bottom: 14px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .agx-ftr .agx-ftr-soc, .agx-ftr-top { transition: none !important; }
}
