/* ==========================================================================
   Footer polish — same icons & skyline, cleaner premium layout
   ========================================================================== */

.site-footer {
  --footer-bg: #1A0000;
  --footer-bg-2: #0b1830;
  --footer-blue: #E50000;
  --footer-blue-soft: #FF1A1A;
  --footer-text: rgba(255, 255, 255, 0.82);
  --footer-muted: rgba(255, 255, 255, 0.58);
  --footer-line: rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: none !important;
  margin-top: 3.5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 88% 28%, rgba(43, 124, 255, 0.1), transparent 62%),
    radial-gradient(ellipse 40% 35% at 8% 70%, rgba(47, 107, 79, 0.08), transparent 55%),
    linear-gradient(180deg, var(--footer-bg-2) 0%, var(--footer-bg) 100%);
  color: var(--footer-text);
  font-family: Mukta, "Noto Sans Devanagari", sans-serif;
}

.site-footer a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.site-footer a:hover { color: #fff; }

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

.footer-main__grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) repeat(2, minmax(150px, 0.95fr)) minmax(240px, 1.25fr);
  gap: 2rem 1.75rem;
  align-items: start;
}

/* Brand */
.footer-col {
  min-width: 0;
}
.footer-col--brand { padding-right: 0.25rem; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  color: #fff !important;
}
.footer-logo:hover { opacity: 0.95; }
.footer-logo__img {
  display: block;
  height: 58px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  /* logo reads well on dark footer */
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}
.footer-logo__mark,
.footer-logo__text { display: none !important; }

.footer-about {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--footer-muted);
  margin: 0 0 0.95rem;
  max-width: 32ch;
}

.footer-pillars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.25rem;
  font-weight: 600;
}
.footer-pillars > span:not(.footer-pillars__sep) {
  position: relative;
  padding-bottom: 0.2rem;
}
.footer-pillars > span:first-child::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--footer-blue);
  border-radius: 2px;
}
.footer-pillars__sep {
  color: rgba(255, 255, 255, 0.28);
  font-weight: 400;
  padding: 0 0.1rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}
.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--social-bg, var(--footer-blue));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  line-height: 0;
  padding: 0;
}
.footer-social a:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}
.footer-social a img {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  filter: brightness(0) invert(1);
  display: block;
  margin: 0;
  object-fit: contain;
}
.footer-follow {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: var(--footer-muted);
  letter-spacing: 0.02em;
}

/* Headings */
.footer-heading {
  color: #fff !important;
  font-family: Mukta, sans-serif !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  margin: 0 0 1.1rem !important;
  position: relative;
  display: block;
  width: 100%;
  min-height: 1.7rem;
  padding-bottom: 0.55rem;
  letter-spacing: 0.01em;
  box-sizing: border-box;
}
.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.1rem;
  height: 3px;
  background: linear-gradient(90deg, var(--footer-blue), transparent);
  border-radius: 3px;
}

/* Link lists */
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--footer-text);
  line-height: 1.35;
  max-width: 100%;
}
.footer-links a::before {
  content: "›";
  color: var(--footer-blue-soft);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.85;
  flex-shrink: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.footer-links a:hover {
  color: #fff;
  transform: translateX(4px);
}
.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(2px);
}

/* New row — समाचार links in even vertical columns */
.footer-news-row {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--footer-line);
  position: relative;
  z-index: 1;
}
.footer-news-row .footer-heading {
  margin-bottom: 1.1rem !important;
}
.footer-links--row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  column-gap: 1.5rem;
  row-gap: 0.62rem;
  align-items: start;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links--row li {
  margin: 0;
  padding: 0;
  min-width: 0;
}
.footer-links--row a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  white-space: normal;
  line-height: 1.35;
}

/* Contact */
.footer-col--contact {
  position: relative;
  padding: 0.25rem 0.15rem 0.25rem 0.35rem;
}
.footer-col--contact::before {
  content: "";
  position: absolute;
  inset: -0.65rem -0.85rem;
  border-radius: 14px;
  background:
    radial-gradient(circle at 72% 35%, rgba(43, 124, 255, 0.14), transparent 58%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 240'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.05' stroke-width='1'%3E%3Cpath d='M20 120c40-40 80-40 120 0s80 40 120 0 80-40 120 0'/%3E%3Ccircle cx='200' cy='110' r='55'/%3E%3Ccircle cx='120' cy='150' r='35'/%3E%3Ccircle cx='300' cy='70' r='28'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat;
  pointer-events: none;
  z-index: 0;
}
.footer-col--contact > * { position: relative; z-index: 1; }

.footer-contact-list {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.4;
}
.footer-contact-list li span:last-child,
.footer-contact-list li a {
  flex: 1;
  min-width: 0;
  padding-top: 0.35rem;
}
.footer-contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--footer-blue);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(229, 0, 0, 0.35);
  margin-top: 0;
}
.footer-contact-icon svg { display: block; }
.footer-contact-list a { color: var(--footer-text); word-break: break-word; }
.footer-contact-list a:hover { color: #fff; }

.footer-quote {
  margin: 0;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.95rem 0 0;
  border-top: 1px solid var(--footer-line);
}
.footer-quote__mark {
  color: var(--footer-blue-soft);
  font-size: 1.55rem;
  line-height: 1;
  margin-top: 0.1rem;
}
.footer-quote p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

/* Newsletter */
.footer-newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(10, 22, 42, 0.95), rgba(8, 18, 36, 0.92));
  border: 1px solid rgba(75, 147, 255, 0.35);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  margin: 0.75rem 0 1.85rem;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 1px rgba(43, 124, 255, 0.08),
    0 12px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.footer-newsletter__copy {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: min(100%, 280px);
  flex: 1.2;
}
.footer-newsletter__icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  min-height: 54px;
  border-radius: 50%;
  background: var(--footer-blue);
  color: #fff;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  box-shadow: 0 8px 22px rgba(43, 124, 255, 0.4);
}
.footer-newsletter__icon svg {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0;
  flex-shrink: 0;
  transform: translateX(1px); /* optical center for send icon */
}
.footer-newsletter__copy strong {
  display: block;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  line-height: 1.35;
}
.footer-newsletter__copy span {
  display: block;
  font-size: 0.84rem;
  color: var(--footer-muted);
  line-height: 1.45;
}
.footer-newsletter__form {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-end;
  min-width: min(100%, 300px);
}
.footer-newsletter__field {
  position: relative;
  flex: 1;
  min-width: 210px;
  max-width: 340px;
}
.footer-newsletter__mail-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.42);
  display: grid;
  pointer-events: none;
}
.footer-newsletter__field input {
  width: 100%;
  background: rgba(4, 10, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff;
  padding: 0.85rem 1rem 0.85rem 2.7rem;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.footer-newsletter__field input::placeholder { color: rgba(255, 255, 255, 0.38); }
.footer-newsletter__field input:focus {
  border-color: var(--footer-blue);
  box-shadow: 0 0 0 3px rgba(43, 124, 255, 0.22);
}
.footer-newsletter__btn {
  background: var(--footer-blue);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 0.85rem 1.35rem;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 18px rgba(43, 124, 255, 0.3);
}
.footer-newsletter__btn:hover {
  background: var(--footer-blue-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(43, 124, 255, 0.38);
}

/* Bottom */
.footer-bottom {
  position: relative;
  border-top: 1px solid var(--footer-line);
  padding: 1.2rem 0 1.45rem;
  z-index: 1;
  min-height: 72px;
}
.footer-bottom__skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 78px;
  background: url("../images/footer-skyline.svg") center bottom / 100% 78px no-repeat;
  opacity: 0.5;
  pointer-events: none;
}
.footer-bottom__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--footer-muted);
}
.footer-bottom__inner p { margin: 0; }
.footer-bottom__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 1.05rem;
}
.footer-bottom__nav a {
  color: var(--footer-muted);
  font-size: 0.86rem;
}
.footer-bottom__nav a:hover { color: #fff; }
.footer-made-in {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  padding-left: 0.35rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  margin-left: 0.15rem;
}
.footer-made-in img {
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

@media (max-width: 1180px) {
  .footer-main__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem 1.4rem;
  }
  .footer-col--contact { grid-column: 1 / -1; }
  .footer-links--row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(5, auto);
  }
}
@media (max-width: 800px) {
  .footer-main { padding: 2.5rem 0 1rem; }
  .footer-main__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.85rem 1.25rem;
  }
  .footer-col--brand { grid-column: 1 / -1; }
  .footer-news-row { margin-top: 1.35rem; padding-top: 1.25rem; }
  .footer-links--row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(7, auto);
    column-gap: 1rem;
  }
  .footer-newsletter {
    flex-direction: column;
    align-items: stretch;
    padding: 1.15rem;
  }
  .footer-newsletter__form { justify-content: stretch; }
  .footer-newsletter__field { max-width: none; }
  .footer-newsletter__btn { width: 100%; }
  .footer-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-made-in {
    border-left: 0;
    padding-left: 0;
    margin-left: 0;
  }
}
@media (max-width: 540px) {
  .footer-main__grid { grid-template-columns: 1fr; }
  .footer-about { max-width: none; }
  .footer-links--row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(10, auto);
  }
}
