/* ==========================================================================
   Footer — light mockup layout (white + red accents)
   ========================================================================== */

.site-footer {
  --ft-red: #E50000;
  --ft-text: #222222;
  --ft-muted: #555555;
  --ft-line: #E5E7EB;
  --ft-soft: #F8F8F8;
  width: 100%;
  max-width: none !important;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
  background: #ffffff !important;
  color: var(--ft-text) !important;
  font-family: Mukta, "Noto Sans Devanagari", sans-serif;
  border-top: 1px solid var(--ft-line);
  padding: 0 !important;
}

.site-footer a {
  color: var(--ft-text);
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}
.site-footer a:hover { color: var(--ft-red); }

.footer-main {
  padding: 2.75rem 0 1.75rem;
  position: relative;
  z-index: 1;
}

.footer-main__grid {
  display: grid;
  grid-template-columns:
    minmax(200px, 1.15fr)
    minmax(130px, 0.8fr)
    minmax(130px, 0.8fr)
    minmax(260px, 1.55fr)
    minmax(210px, 1.15fr);
  gap: 0;
  align-items: start;
}

.footer-col {
  min-width: 0;
  padding: 0 1.15rem;
  position: relative;
}
.footer-col:first-child { padding-left: 0; }
.footer-col:last-child { padding-right: 0; }
.footer-col:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  bottom: 0.15rem;
  right: 0;
  width: 1px;
  background: var(--ft-line);
}

/* Brand */
.footer-logo {
  display: inline-flex;
  margin-bottom: 0.85rem;
}
.footer-logo__img {
  display: block;
  height: 78px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}
.footer-logo__mark,
.footer-logo__text { display: none !important; }

.footer-about {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ft-muted);
  margin: 0 0 1.1rem;
  max-width: 28ch;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--social-bg, var(--ft-red));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  line-height: 0;
}
.footer-social a:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}
.footer-social a img {
  width: 16px !important;
  height: 16px !important;
  filter: brightness(0) invert(1);
  display: block;
  object-fit: contain;
}

.footer-pillars,
.footer-follow,
.footer-quote { display: none !important; }

/* Headings */
.footer-heading {
  color: var(--ft-text) !important;
  font-family: Mukta, sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  margin: 0 0 1rem !important;
  position: relative;
  display: block;
  width: 100%;
  padding-bottom: 0.55rem;
  letter-spacing: 0.01em;
}
.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2rem;
  height: 3px;
  background: var(--ft-red);
  border-radius: 2px;
}

/* Links */
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-links a {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--ft-text);
  line-height: 1.4;
  font-weight: 500;
}
.footer-links a::before {
  content: "›";
  color: var(--ft-red);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  flex-shrink: 0;
}
.footer-links a:hover {
  color: var(--ft-red);
  transform: translateX(2px);
}

.footer-col--news .footer-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

/* Contact */
.footer-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ft-text);
}
.footer-contact-list li span:last-child,
.footer-contact-list li a {
  flex: 1;
  min-width: 0;
  padding-top: 0.3rem;
  word-break: break-word;
}
.footer-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ft-red);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(229, 0, 0, 0.28);
}
.footer-contact-icon svg { display: block; }
.footer-contact-list a { color: var(--ft-text); }
.footer-contact-list a:hover { color: var(--ft-red); }
.footer-contact-list strong { font-weight: 700; }

/* Bottom */
.footer-bottom {
  position: relative;
  background: var(--ft-soft);
  border-top: 1px solid var(--ft-line);
  z-index: 1;
}
.footer-bottom__skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 42px;
  opacity: 0.18;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 80' preserveAspectRatio='none'%3E%3Cpath fill='%23E50000' d='M0 80V48l28-18 22 12 36-26 30 20 40-30 26 18 34-22 28 16 42-28 24 14 36-20 30 18 40-26 22 12 34-18 28 16V80z'/%3E%3C/svg%3E")
    center bottom / 100% 100% no-repeat;
}
.footer-bottom__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0 1.15rem;
  font-size: 0.88rem;
  color: #666;
}
.footer-bottom__inner p { margin: 0; }
.footer-bottom__nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
}
.footer-bottom__nav a {
  color: #555;
  font-weight: 500;
}
.footer-bottom__nav a:hover { color: var(--ft-red); }
.footer-bottom__nav span { color: #C4C4C4; }
.footer-bottom__bar {
  height: 10px;
  background: var(--ft-red);
  width: 100%;
}

/* Hide unused old newsletter styles if present */
.footer-newsletter,
.footer-news-row { display: none !important; }

/* Responsive */
@media (max-width: 1100px) {
  .footer-main__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 0;
  }
  .footer-col {
    padding: 0 1rem;
  }
  .footer-col:nth-child(odd) { padding-left: 0; }
  .footer-col:nth-child(even) { padding-right: 0; }
  .footer-col:not(:last-child)::after { display: none; }
  .footer-col--news { grid-column: 1 / -1; }
  .footer-col--contact { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .footer-main { padding: 2rem 0 1.25rem; }
  .footer-main__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .footer-col {
    padding: 0;
    border-bottom: 1px solid var(--ft-line);
    padding-bottom: 1.25rem;
  }
  .footer-col:last-child { border-bottom: 0; padding-bottom: 0; }
  .footer-col--news .footer-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-logo__img { height: 70px; }
  .footer-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }
}

/* Dark mode — keep readable light footer accents */
html.theme-dark .site-footer {
  background: #141414;
  color: #f3f3f3;
  border-top-color: #2a2a2a;
}
html.theme-dark .site-footer a { color: #f0f0f0; }
html.theme-dark .site-footer a:hover { color: #ff6b6b; }
html.theme-dark .footer-about,
html.theme-dark .footer-bottom__inner { color: #bdbdbd; }
html.theme-dark .footer-heading { color: #fff !important; }
html.theme-dark .footer-links a,
html.theme-dark .footer-contact-list li,
html.theme-dark .footer-contact-list a { color: #ececec; }
html.theme-dark .footer-col:not(:last-child)::after,
html.theme-dark .footer-col,
html.theme-dark .site-footer,
html.theme-dark .footer-bottom { border-color: #2f2f2f; }
html.theme-dark .footer-bottom { background: #1a1a1a; }
html.theme-dark .footer-bottom__nav a { color: #cfcfcf; }
html.theme-dark .footer-bottom__skyline { opacity: 0.28; }
