/* ================================================================
   FOOTER  —  footer.css   |   Kanya Mandir Secondary School
   Deep forest-green dark bg + warm saffron/gold accent touches
   Fonts: Raleway · Poppins · Roboto
================================================================ */

/* ── Root ── */
.kf-footer {
  --kf-green-1:   #052e16;   /* deepest */
  --kf-green-2:   #0a4223;   /* surface */
  --kf-green-3:   #0f5a30;   /* card bg  */
  --kf-accent:    #08915e;   /* brand green */
  --kf-accent-lt: #22c97e;   /* lighter green */
  --kf-gold:      #f5a623;   /* warm saffron – Nepal/school warmth */
  --kf-gold-pale: rgba(245,166,35,.1);
  --kf-white:     #ffffff;
  --kf-text:      rgba(255,255,255,.52);
  --kf-text-md:   rgba(255,255,255,.72);
  --kf-text-lt:   rgba(255,255,255,.9);
  --kf-border:    rgba(255,255,255,.07);
  --kf-border-g:  rgba(8,145,94,.25);

  position: relative;
  background: var(--kf-green-1);
  color: var(--kf-text);
  font-family: 'Roboto', sans-serif;
  overflow: hidden;
}

/* ════════════════════════════════════
   LAYERED BACKGROUND
════════════════════════════════════ */

/* Radial light glow from top-right */
.kf-footer::before {
  content: '';
  position: absolute;
  top: -160px; right: -120px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(8,145,94,.18) 0%,
    rgba(8,145,94,.06) 40%,
    transparent 70%
  );
  pointer-events: none;
}

/* Second glow bottom-left */
.kf-footer::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(245,166,35,.07) 0%,
    transparent 65%
  );
  pointer-events: none;
}

/* Fine diagonal line texture */
.kf-texture {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,.012) 0px,
    rgba(255,255,255,.012) 1px,
    transparent 1px,
    transparent 9px
  );
}

/* Horizontal scan lines (subtle depth) */
.kf-scanlines {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,.06) 3px,
    rgba(0,0,0,.06) 4px
  );
  opacity: .4;
}

/* Top accent bar — Nepal-flag-inspired tri-stripe */
.kf-topbar {
  position: relative; z-index: 2;
  height: 5px;
  background: linear-gradient(to right,
    #c8001e 0%, #c8001e 33%,   /* Nepal crimson */
    #08915e 33%, #08915e 66%,  /* school green  */
    #f5a623 66%, #f5a623 100%  /* warm saffron  */
  );
}

/* ════════════════════════════════════
   WAVE DIVIDER  (SVG inline)
════════════════════════════════════ */
.kf-wave {
  position: relative; z-index: 1;
  line-height: 0;
}
.kf-wave svg { display: block; width: 100%; }

/* ════════════════════════════════════
   MAIN BODY
════════════════════════════════════ */
.kf-body {
  position: relative; z-index: 2;
  padding: 60px 0 52px;
}

/* ── Logo ── */
.kf-logo {
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none; margin-bottom: 22px;
}
.kf-logo__emblem {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--kf-accent) 0%, var(--kf-accent-lt) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(8,145,94,.5), 0 8px 24px rgba(8,145,94,.35);
  flex-shrink: 0; position: relative; overflow: hidden;
}
.kf-logo__emblem::after {
  content: '';
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
}
.kf-logo__emblem i { font-size: 1.4rem; color: #fff; position: relative; z-index: 1; }
.kf-logo__text    { display: flex; flex-direction: column; }
.kf-logo__name {
  font-family: 'Raleway', sans-serif;
  font-size: 1.15rem; font-weight: 900; color: var(--kf-white); line-height: 1.1;
}
.kf-logo__sub {
  font-family: 'Poppins', sans-serif;
  font-size: .58rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2.2px;
  color: var(--kf-accent-lt); margin-top: 3px;
}

/* Tagline */
.kf-brand__tagline {
  font-family: 'Poppins', sans-serif;
  font-size: .72rem; font-weight: 600; font-style: italic;
  color: var(--kf-gold); letter-spacing: .5px;
  margin-bottom: 14px;
}
.kf-brand__tagline i { margin-right: 6px; }

.kf-brand__desc {
  font-size: .85rem; line-height: 1.72;
  color: var(--kf-text); margin-bottom: 26px; max-width: 330px;
}

/* Contact list */
.kf-contacts { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 12px; }
.kf-contacts li { display: flex; align-items: flex-start; gap: 11px; font-size: .82rem; color: var(--kf-text-md); }
.kf-ci {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: rgba(8,145,94,.15);
  border: 1px solid var(--kf-border-g);
  display: flex; align-items: center; justify-content: center;
  color: var(--kf-accent-lt); font-size: .78rem;
  margin-top: 1px;
}
.kf-contacts a { color: var(--kf-text-md); text-decoration: none; transition: color .2s; }
.kf-contacts a:hover { color: var(--kf-accent-lt); }

/* Socials */
.kf-socials { display: flex; gap: 9px; flex-wrap: wrap; }
.kf-soc {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--kf-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--kf-text-md); font-size: 1rem; text-decoration: none;
  transition: all .25s; position: relative; overflow: hidden;
}
.kf-soc::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--kf-accent);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .25s;
}
.kf-soc i { position: relative; z-index: 1; transition: color .25s; }
.kf-soc:hover::before    { transform: scaleY(1); }
.kf-soc:hover            { border-color: var(--kf-accent); color: #fff; transform: translateY(-3px); }
.kf-soc:hover i          { color: #fff; }

/* ── Column headings ── */
.kf-col-title {
  font-family: 'Raleway', sans-serif;
  font-size: .78rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--kf-white); margin-bottom: 22px;
  position: relative; padding-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.kf-col-title::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  height: 2px; width: 32px;
  background: linear-gradient(to right, var(--kf-gold), var(--kf-accent-lt));
  border-radius: 2px;
}
.kf-col-title i { color: var(--kf-gold); font-size: .85rem; }

/* ── Link lists ── */
.kf-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.kf-list a {
  display: flex; align-items: center; gap: 0;
  font-size: .83rem; color: var(--kf-text);
  text-decoration: none; transition: color .2s, gap .22s, padding-left .22s;
}
.kf-list a::before {
  content: '\F285'; /* bi-chevron-right */
  font-family: 'bootstrap-icons';
  font-size: .62rem;
  color: var(--kf-accent);
  opacity: 0; margin-right: 0;
  transition: opacity .2s, margin-right .22s;
}
.kf-list a:hover { color: var(--kf-accent-lt); padding-left: 4px; }
.kf-list a:hover::before { opacity: 1; margin-right: 6px; }

/* ── Divider between columns ── */
.kf-col-divider {
  display: none;
  height: 1px; background: var(--kf-border); margin: 8px 0;
}
@media (max-width: 768px) { .kf-col-divider { display: block; } }

/* ── Newsletter ── */
.kf-nl-desc {
  font-size: .83rem; line-height: 1.68; color: var(--kf-text); margin-bottom: 18px;
}
.kf-nl-form { margin-bottom: 28px; }
.kf-nl-field {
  display: flex; align-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--kf-border-g);
  border-radius: 12px; overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.kf-nl-field:focus-within {
  border-color: var(--kf-accent);
  box-shadow: 0 0 0 3px rgba(8,145,94,.14), 0 4px 20px rgba(8,145,94,.1);
}
.kf-nl-field > i { padding: 0 12px; color: var(--kf-accent-lt); font-size: .85rem; flex-shrink: 0; }
.kf-nl-field input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: 'Roboto', sans-serif; font-size: .83rem;
  color: var(--kf-white); padding: 13px 0;
}
.kf-nl-field input::placeholder { color: var(--kf-text); }
.kf-nl-field button {
  background: linear-gradient(135deg, var(--kf-accent), var(--kf-accent-lt));
  border: none; outline: none;
  padding: 13px 18px; color: #fff; font-size: .88rem;
  cursor: pointer; transition: opacity .2s;
  display: flex; align-items: center; gap: 6px;
  font-family: 'Poppins', sans-serif; font-size: .72rem; font-weight: 700;
  letter-spacing: .5px;
}
.kf-nl-field button:hover { opacity: .85; }

/* Stat strip */
.kf-stats {
  display: flex; align-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--kf-border);
  border-radius: 14px; padding: 18px 20px; gap: 0;
}
.kf-s { flex: 1; text-align: center; }
.kf-s__num {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-size: 1.3rem; font-weight: 900;
  background: linear-gradient(135deg, var(--kf-gold), var(--kf-accent-lt));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
}
.kf-s__lbl {
  display: block; margin-top: 4px;
  font-family: 'Poppins', sans-serif;
  font-size: .58rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--kf-text);
}
.kf-s-div { width: 1px; background: var(--kf-border); align-self: stretch; }

/* ── Accreditation badge ── */
.kf-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.kf-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(8,145,94,.1); border: 1px solid var(--kf-border-g);
  border-radius: 6px; padding: 5px 11px;
  font-family: 'Poppins', sans-serif;
  font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--kf-accent-lt);
}
.kf-badge i { color: var(--kf-gold); }

/* ════════════════════════════════════
   BOTTOM BAR
════════════════════════════════════ */
.kf-bottom {
  position: relative; z-index: 2;
  border-top: 1px solid var(--kf-border);
  padding: 18px 0;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(6px);
}
.kf-bottom__inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.kf-bottom__copy { font-size: .76rem; color: var(--kf-text); margin: 0; }
.kf-bottom__copy strong { color: var(--kf-text-lt); }

.kf-bottom__links { display: flex; align-items: center; gap: 12px; }
.kf-bottom__links a { font-size: .74rem; color: var(--kf-text); text-decoration: none; transition: color .2s; }
.kf-bottom__links a:hover { color: var(--kf-gold); }
.kf-bsep { width: 3px; height: 3px; border-radius: 50%; background: var(--kf-border); }

.kf-bottom__credit { font-size: .74rem; color: var(--kf-text); margin: 0; }
.kf-bottom__credit a { color: var(--kf-gold); text-decoration: none; }
.kf-bottom__credit a:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 991px) {
  .kf-body { padding: 48px 0 36px; }
  .kf-brand__desc { max-width: 100%; }
}
@media (max-width: 576px) {
  .kf-bottom__inner { flex-direction: column; text-align: center; }
  .kf-bottom__links { justify-content: center; }
}