/* Site footer (public_news/partials/site-footer.blade.php) — shared by every public page, homepage included.
   Own class prefix (sf-) so the older .news-footer rules in style.css never apply. Always dark, in both themes. */

/* footer.sf (not .sf): style.css still has generic `footer { … }` rules and a phone rule that hides every footer. */
footer.sf {
  display: block;
  padding: 0;
  font-family: "Noto Sans Devanagari", "Nirmala UI", system-ui, sans-serif; /* same stack as the homepage / md-ui pages */
  --sf-bg: #06192a;
  --sf-bg-2: #0a2338;
  --sf-ink: #e8eef3;
  --sf-text: #b7c5d0;
  --sf-muted: #8ea2b2;
  --sf-line: rgba(255, 255, 255, .1);
  --sf-accent: var(--red, #d52a31);
  position: relative;
  margin-top: 32px;
  border-top: 3px solid var(--sf-accent);
  background: radial-gradient(1200px 300px at 100% 0%, rgba(213, 42, 49, .12), transparent 60%), var(--sf-bg);
  color: var(--sf-text);
  font-size: 14px;
  line-height: 1.6;
}
.sf a { color: inherit; text-decoration: none; }
.sf a:hover { color: #fff; }
.sf a:focus-visible, .sf summary:focus-visible, .sf button:focus-visible, .sf input:focus-visible { outline: 2px solid #fbbf24; outline-offset: 3px; border-radius: 4px; }
.sf h2 { margin: 0; color: var(--sf-ink); font-size: 15px; font-weight: 800; line-height: 1.3; letter-spacing: .01em; }
.sf-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Newsletter + follow band */
.sf-band { border-bottom: 1px solid var(--sf-line); background: var(--sf-bg-2); }
.sf-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; padding-block: 22px; }
.sf-news { display: flex; flex: 1 1 auto; align-items: center; gap: 16px; min-width: 0; }
.sf-news-icon { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(213, 42, 49, .16); color: #ff6b73; font-size: 22px; }
.sf-news-text { min-width: 0; }
.sf-news-text p { margin: 2px 0 0; color: var(--sf-muted); font-size: 13px; }
.sf-news-form { display: grid; grid-template-columns: minmax(180px, 300px) auto; margin: 0 0 0 auto; }
.sf-news-form input[type="email"], .sf-news-form button { font-family: inherit !important; }
.sf-news-form input[type="email"] {
  height: 44px; min-width: 0; padding: 0 14px; border: 1px solid transparent; border-radius: 8px 0 0 8px; background: #fff; color: #111827; font: inherit; font-size: 14px;
}
.sf-news-form button {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 0; border-radius: 0 8px 8px 0; background: var(--sf-accent); color: #fff;
  font: inherit; font-size: 14px; font-weight: 800; white-space: nowrap; cursor: pointer; transition: filter .15s;
}
.sf-news-form button:hover { filter: brightness(1.1); }
.sf-news-form .newsletter-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sf-news-form .newsletter-status { grid-column: 1 / -1; margin: 6px 0 0; color: var(--sf-ink); font-size: 12.5px; }
.sf-news-form .newsletter-status:empty { display: none; }
.sf-follow { flex: none; }
.sf-follow h2 { margin-bottom: 8px; font-size: 13px; color: var(--sf-muted); text-transform: uppercase; letter-spacing: .06em; }
.sf-social { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: var(--sf-ink); font-size: 16px; transition: background .15s, transform .15s; }
.sf-social a:hover { transform: translateY(-2px); color: #fff; }
.sf-social a.is-facebook:hover { background: #1877f2; }
.sf-social a.is-x:hover { background: #000; }
.sf-social a.is-instagram:hover { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.sf-social a.is-youtube:hover { background: #ff0000; }
.sf-social a.is-linkedin:hover { background: #0a66c2; }
.sf-social a.is-whatsapp:hover { background: #25d366; }
.sf-social a.is-telegram:hover { background: #229ed9; }

/* Main grid: brand · sections (2 link columns) · explore · about · policies */
.sf-main { display: grid; grid-template-columns: minmax(200px, 1.25fr) minmax(220px, 1.5fr) repeat(3, minmax(130px, 1fr)); gap: 32px; padding-block: 34px 28px; }
.sf-logo { display: inline-block; padding: 8px 10px; border-radius: 10px; background: #fff; }
.sf-logo img { display: block; width: 130px; height: auto; }
.sf-brand p { margin: 14px 0 16px; color: var(--sf-text); font-size: 13.5px; line-height: 1.7; }
.sf-contact { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.sf-contact li { display: flex; align-items: flex-start; gap: 10px; }
.sf-contact i { flex: none; margin-top: 2px; color: #ff6b73; }
.sf-contact span, .sf-contact a { min-width: 0; overflow-wrap: anywhere; }
.sf-contact a:hover { text-decoration: underline; text-underline-offset: 3px; }

.sf-group { min-width: 0; }
.sf-group summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; list-style: none; cursor: default; }
.sf-group summary::-webkit-details-marker { display: none; }
.sf-group summary h2 { position: relative; padding-bottom: 8px; }
.sf-group summary h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; border-radius: 2px; background: var(--sf-accent); }
.sf-group summary i { display: none; color: var(--sf-muted); transition: transform .2s; }
.sf-group ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.sf-group.is-wide ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
.sf-group a { display: inline-block; color: var(--sf-text); font-size: 13.5px; line-height: 1.5; transition: color .15s, transform .15s; }
.sf-group a:hover { color: #fff; transform: translateX(3px); }

/* Bottom bar */
.sf-bottom { border-top: 1px solid var(--sf-line); background: rgba(0, 0, 0, .18); }
.sf-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-block: 14px; font-size: 12.5px; color: var(--sf-muted); }
.sf-bottom-inner p { margin: 0; }
/* reCAPTCHA v3: Google's floating badge covered page content (and sat above the phone tab bar), so it is hidden and
   the footer carries the notice Google requires in its place (site-footer.blade.php, .sf-recaptcha). */
.grecaptcha-badge { visibility: hidden !important; }
.sf-recaptcha { flex-basis: 100%; order: 9; font-size: 11.5px; line-height: 1.5; opacity: .85; }
.sf-recaptcha a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.sf-recaptcha a:hover { color: #fff; }
.sf-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
/* min-height 24px: WCAG 2.2 target size (minimum). These footer links are standalone controls in a nav or list,
   not links inside a sentence, so they get no inline exemption; at 20-22px they were awkward to tap. */
.sf-legal a, .sf-contact a { display: inline-flex; align-items: center; min-height: 24px; }
.sf-legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sf-top { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 6px 12px; border: 1px solid var(--sf-line); border-radius: 999px; color: var(--sf-ink) !important; font-weight: 700; }
.sf-top:hover { border-color: rgba(255, 255, 255, .35); }

/* Tablet: brand as a strip across the top, the four link columns in one row below */
@media (max-width: 1100px) {
  .sf-main { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 26px 22px; }
  .sf-brand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-bottom: 22px; border-bottom: 1px solid var(--sf-line); }
  .sf-brand p { flex: 1 1 260px; margin: 0; }
  .sf-brand .sf-contact { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
}
@media (max-width: 860px) {
  .sf-band-inner { flex-direction: column; align-items: stretch; gap: 18px; }
  .sf-news { flex-wrap: wrap; }
  .sf-news-form { width: 100%; margin: 0; grid-template-columns: minmax(0, 1fr) auto; }
  .sf-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones: link columns become an accordion (site-footer.js closes them on load); room for the bottom app bar */
@media (max-width: 640px) {
  footer.sf { display: block; margin-top: 24px; padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .sf-band-inner { padding-block: 18px; }
  .sf-news-icon { width: 40px; height: 40px; font-size: 18px; }
  .sf-main { display: block; padding-block: 22px 8px; }
  .sf-brand { display: block; margin-bottom: 14px; }
  .sf-logo img { width: 104px; }
  .sf-brand p { margin: 10px 0 12px; }
  .sf-group { border-top: 1px solid var(--sf-line); }
  .sf-group summary { margin: 0; padding: 14px 0; cursor: pointer; }
  .sf-group summary h2 { padding: 0; }
  .sf-group summary h2::after { display: none; }
  .sf-group summary i { display: inline-block; }
  .sf-group[open] summary i { transform: rotate(180deg); }
  .sf-group ul { padding-bottom: 14px; gap: 2px; }
  .sf-group.is-wide ul { column-gap: 12px; }
  .sf-group a { padding: 6px 0; font-size: 14px; }
  .sf-bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sf-top { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .sf * { transition: none !important; } }

/* Text name instead of the logo image. */
.sf-logo.sf-wordmark { padding: 0; border-radius: 0; background: none; color: #fff; font-size: 22px; font-weight: 800; line-height: 1.3; letter-spacing: .2px; text-decoration: none; }
.sf-logo.sf-wordmark:hover { color: #fff; opacity: .9; }
.sf-logo.sf-wordmark::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--brand-red, #d52a31); }
@media (max-width: 640px) { .sf-logo.sf-wordmark { font-size: 20px; } }
