:root {
  --navy: #0a2540;
  --navy-deep: #06182b;
  --saffron: #ff671f;
  --india-green: #046a38;
  --brand: #0a2540;
  --brand-accent: #ff671f;
}

body { background-color: #f7f9fc; }

.brand-tricolor {
  height: 3px;
  background: linear-gradient(90deg, #ff671f 0 33.33%, #ffffff 33.33% 66.66%, #046a38 66.66% 100%);
}

.live-dot {
  width: 8px; height: 8px; border-radius: 999px; background: #fde047;
  box-shadow: 0 0 0 0 rgba(253, 224, 71, 0.7);
  animation: pulseDot 1.4s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(253, 224, 71, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(253, 224, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(253, 224, 71, 0); }
}

.ticker-wrap { mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent); }
.ticker-track { animation: ticker 45s linear infinite; width: max-content; }
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section-title {
  font-family: "Tiro Devanagari Hindi", "Noto Sans Devanagari", serif;
  font-size: 1.65rem;
  line-height: 1.2;
  color: var(--navy);
}
.section-bar {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 3px solid var(--saffron); padding-bottom: 0.4rem; margin-bottom: 1rem;
}

.story-img { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.group:hover .story-img { transform: scale(1.04); }

.prose-hi p { margin-bottom: 1.15rem; line-height: 1.85; font-size: 1.125rem; color: #1e293b; }
.prose-hi h2 { font-family: "Tiro Devanagari Hindi", serif; font-size: 1.5rem; margin: 1.5rem 0 0.75rem; }
.prose-hi a { color: #0a2540; text-decoration: underline; text-underline-offset: 3px; }

.webstory-card {
  aspect-ratio: 9/16;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  background: #0a2540;
}
.webstory-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(transparent 40%, rgba(6, 24, 43, .88));
}

.brand-banner {
  position: relative;
  overflow: hidden;
  background: #0a2540;
}
.brand-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  min-height: 140px;
  max-height: 220px;
}

.scrollbar-none::-webkit-scrollbar { display: none; }
.scrollbar-none { -ms-overflow-style: none; scrollbar-width: none; }

/* Compact language switcher — top right */
.lang-switch {
  position: relative;
  z-index: 60;
}
.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 28px;
  padding: 0 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 103, 31, 0.65);
  background: rgba(255, 103, 31, 0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.lang-switch__btn svg {
  width: 13px;
  height: 13px;
  color: #ff671f;
  flex: 0 0 auto;
}
.lang-switch__btn svg:last-child {
  width: 8px;
  height: 5px;
  color: rgba(255, 255, 255, 0.85);
}
.lang-switch__btn:hover,
.lang-switch.is-open .lang-switch__btn {
  background: #ff671f;
  border-color: #ff671f;
  box-shadow: 0 4px 14px rgba(255, 103, 31, 0.35);
}
.lang-switch__btn:hover svg,
.lang-switch.is-open .lang-switch__btn svg {
  color: #fff;
}
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  min-width: 168px;
  max-height: 280px;
  overflow: auto;
  border-radius: 12px;
  background: #0a2540;
  border: 1px solid rgba(255, 103, 31, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.lang-switch__menu button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
}
.lang-switch__menu button:hover,
.lang-switch__menu button.is-active {
  background: rgba(255, 103, 31, 0.2);
  color: #fff;
}

/* Kill Google Translate default UI completely */
#google_translate_element,
.goog-te-banner-frame,
.goog-te-balloon-frame,
.goog-te-menu-frame,
#goog-gt-tt,
.goog-tooltip,
iframe.goog-te-banner-frame,
.goog-te-gadget {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body > .skiptranslate:not(#langMenu) {
  display: none !important;
}
body { top: 0 !important; }
.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* Language menu (fixed portal — also inlined in header) */
#langMenu.lang-switch__menu {
  display: none;
  position: fixed;
  z-index: 99999;
}
#langMenu.lang-switch__menu.is-open {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .live-dot, .story-img { animation: none !important; transition: none !important; }
}

/* Share bar */
.share-bar {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #eef4fb 100%);
  border: 1px solid rgba(10, 37, 64, 0.08);
}
.share-bar--compact {
  margin: 0 0 1.25rem;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.share-bar__head { margin-bottom: 0.75rem; }
.share-bar__title {
  font-weight: 800;
  color: #0a2540;
  font-size: 0.95rem;
  margin: 0;
}
.share-bar__sub {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
}
.share-bar__label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #0a2540;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.share-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.15rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  border: 0;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(10, 37, 64, 0.18);
  opacity: 0.95;
}
.share-btn svg { flex: 0 0 auto; }
.share-btn--native { background: #0a2540; }
.share-btn--wa { background: #25d366; }
.share-btn--fb { background: #1877f2; }
.share-btn--x { background: #111111; }
.share-btn--tg { background: #229ed9; }
.share-btn--copy { background: #ff671f; }
.share-btn--copy.is-copied { background: #046a38; }
.share-bar--compact .share-btn span { display: none; }
.share-bar--compact .share-btn { width: 2.15rem; padding: 0; justify-content: center; }
.share-bar--compact .share-btn--native span { display: none; }

@media (max-width: 640px) {
  .share-bar:not(.share-bar--compact) .share-btn span { display: none; }
  .share-bar:not(.share-bar--compact) .share-btn {
    width: 2.35rem;
    padding: 0;
    justify-content: center;
  }
}
