:root {
  --saffron: #ff9933;
  --saffron-deep: #f47216;
  --green: #138808;
  --green-deep: #0e6606;
  --ink: #23180c;
  --paper: #fff8f0;
  --white: #ffffff;
  --muted: #6b5d4f;
  --line: rgba(244, 114, 22, 0.18);
  --max-width: 1100px;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans Devanagari", "Poppins", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--saffron-deep); text-decoration: none; }
a:hover { color: var(--green); }

/* Tricolor strip */
.tricolor-strip {
  height: 6px;
  background: linear-gradient(to right,
    var(--saffron) 0%, var(--saffron) 33%,
    #ffffff 33%, #ffffff 66%,
    var(--green) 66%, var(--green) 100%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(244, 114, 22, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo .lotus-logo { width: 36px; height: 36px; display: block; }
.logo-text { font-weight: 800; font-size: 1.2rem; }
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 0.98rem; }
.nav-links a:hover { color: var(--saffron-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--saffron-deep); border-radius: 3px; }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 153, 51, 0.25), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(19, 136, 8, 0.12), transparent 45%),
    var(--paper);
  padding: 70px 0 80px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--saffron-deep);
  line-height: 1.1;
}
.hero-role {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green);
  margin-top: 10px;
}
.slogan {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--muted);
  margin: 18px 0;
}
.chips { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  background: #fff;
  border: 1.5px solid var(--saffron);
  color: var(--saffron-deep);
  padding: 6px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s;
}
.btn-primary { background: var(--saffron-deep); color: #fff; }
.btn-primary:hover { background: var(--green); color: #fff; }
.btn-ghost { border: 2px solid var(--green); color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }

/* Hero photo */
.hero-photo { display: flex; justify-content: center; }
.photo-frame {
  padding: 8px;
  background: linear-gradient(135deg, var(--saffron), var(--green));
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(244, 114, 22, 0.25);
}
.photo-placeholder {
  width: 300px;
  max-width: 70vw;
  aspect-ratio: 4 / 5;
  background: #fff;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}
.photo-placeholder small { color: var(--saffron-deep); }
.lotus-big { width: 64px; height: 64px; display: block; }
.hero-img {
  width: 300px;
  max-width: 70vw;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

/* Patriotic banner */
.banner {
  position: relative;
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  border-top: 5px solid var(--saffron);
  border-bottom: 5px solid var(--green);
}
.banner[hidden] { display: none; }
.banner-overlay {
  width: 100%;
  background: linear-gradient(to top, rgba(35, 24, 12, 0.75), transparent);
  padding: 40px 24px 30px;
}
.banner-caption {
  max-width: var(--max-width);
  margin: 0 auto;
  color: #fff;
  font-size: clamp(1.3rem, 3.5vw, 2.2rem);
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  text-align: center;
}

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: #fff; }
.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  text-align: center;
  color: var(--ink);
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--saffron), var(--green));
}
.section-sub { text-align: center; color: var(--muted); margin-top: 12px; }

/* About */
.about-box {
  max-width: 800px;
  margin: 36px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--saffron);
  border-radius: var(--radius);
  padding: 32px;
}
.about-box p { margin-bottom: 16px; }
.about-box p:last-child { margin-bottom: 0; }

/* Timeline */
.timeline {
  max-width: 760px;
  margin: 44px auto 0;
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: linear-gradient(to bottom, var(--saffron), var(--green));
}
.tl-item { position: relative; padding: 0 0 34px 24px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -42px;
  top: -2px;
  width: 24px;
  height: 24px;
  background: var(--paper) url("images/bjp-lotus.svg") center / 78% no-repeat;
  border-radius: 50%;
}
.section-alt .tl-item::before { background-color: #fff; }
.tl-year {
  display: inline-block;
  background: var(--saffron);
  color: #fff;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.tl-content h3 { font-size: 1.2rem; color: var(--green-deep); }
.tl-content p { color: var(--muted); }
.tl-current .tl-year { background: var(--green); }

/* Positions */
.positions-list {
  max-width: 760px;
  margin: 40px auto 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.positions-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--saffron);
  padding: 16px 22px;
  border-radius: 12px;
  font-weight: 500;
}
.positions-list .current-role {
  border-left-color: var(--green);
  background: rgba(19, 136, 8, 0.06);
  font-weight: 700;
  color: var(--green-deep);
}

/* Contact */
.contact-list {
  list-style: none;
  max-width: 520px;
  margin: 36px auto 0;
  display: grid;
  gap: 14px;
}
.contact-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 16px 22px;
  border-radius: 12px;
}

/* Footer */
.site-footer { background: var(--ink); color: #fff; }
.site-footer .container { padding-top: 28px; padding-bottom: 28px; text-align: center; }
.footer-slogan {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--saffron);
  margin-bottom: 8px;
}
.footer-copy { color: #cbb9a6; font-size: 0.9rem; }
.social-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 16px 0 18px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.social-links a:hover { transform: translateY(-3px); background: var(--saffron); color: #fff; }
.social-links a[hidden] { display: none; }

/* Responsive */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 70px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-150%);
    transition: transform 0.3s;
  }
  .nav-links.open { transform: translateY(0); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .chips, .hero-actions { justify-content: center; }
  .hero-photo { order: -1; }
}

/* ===== Daily Feed ===== */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.feed-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.feed-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(244, 114, 22, 0.15); }
.feed-img { aspect-ratio: 16 / 10; overflow: hidden; }
.feed-img img { width: 100%; height: 100%; object-fit: cover; }
.feed-body { padding: 22px; }
.feed-date {
  display: inline-block;
  background: var(--saffron);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.feed-body h3 { color: var(--green-deep); font-size: 1.2rem; margin-bottom: 8px; }
.feed-body p { color: var(--muted); }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  border: 3px solid transparent;
  transition: border-color 0.25s;
}
.gallery-item:hover { border-color: var(--saffron); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(35,24,12,0.85), transparent);
  color: #fff;
  padding: 26px 14px 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.empty-note { text-align: center; color: var(--muted); margin-top: 30px; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(35, 24, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 100;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 10px; border: 4px solid #fff; }
.lightbox p { color: #fff; margin-top: 16px; font-weight: 600; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}

/* ===== Accessibility: skip link & focus ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--saffron-deep);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}
a:focus-visible,
button:focus-visible,
.gallery-item:focus-visible {
  outline: 3px solid var(--saffron-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== About: official website note ===== */
.official-note {
  margin-top: 18px;
  padding: 12px 16px;
  background: rgba(19, 136, 8, 0.06);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--ink);
}

/* ===== Footer enhancements ===== */
.footer-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--saffron);
}
.footer-role {
  color: #e7d6c4;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.footer-nav,
.footer-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 16px 0;
}
.footer-nav a,
.footer-legal a {
  color: #e7d6c4;
  font-size: 0.92rem;
}
.footer-nav a:hover,
.footer-legal a:hover { color: var(--saffron); }
.footer-legal {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

/* ===== 404 page ===== */
.notfound {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 60px 0;
}
.notfound h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--saffron-deep);
  margin: 16px 0 10px;
}
.notfound p { color: var(--muted); margin-bottom: 26px; }
.notfound .footer-nav a { color: var(--green-deep); font-weight: 600; }
.notfound .footer-nav a:hover { color: var(--saffron-deep); }

/* ===== Legal pages & breadcrumb ===== */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--saffron-deep); font-weight: 600; }
.breadcrumb span { margin: 0 4px; }
.legal-page { max-width: 860px; margin: 0 auto; }
.legal-page h2 {
  font-size: 1.25rem;
  color: var(--green-deep);
  margin: 26px 0 8px;
}
.legal-page p { color: var(--ink); margin-bottom: 12px; }
.legal-updated { color: var(--muted); font-size: 0.88rem; margin-bottom: 20px; }

/* ===== Feed cards as links + Read More ===== */
a.feed-card { color: inherit; text-decoration: none; }
a.feed-card:hover { color: inherit; }
.feed-meta {
  display: block;
  color: var(--saffron-deep);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.read-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--saffron-deep);
  font-weight: 700;
  font-size: 0.92rem;
}
a.feed-card:hover .read-more { color: var(--green); }
.feed-more { text-align: center; margin-top: 34px; }

/* ===== Article page ===== */
.article { max-width: 820px; margin: 0 auto; }
.article h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--saffron-deep);
  line-height: 1.25;
  margin-bottom: 12px;
}
.article-meta { color: var(--muted); font-weight: 600; margin-bottom: 20px; font-size: 0.95rem; }
.article-hero {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 24px;
}
.article-body { font-size: 1.05rem; }
.article-body p { margin-bottom: 16px; color: var(--ink); }
.article-gallery { margin-top: 28px; }
.article-back { margin-top: 30px; font-weight: 600; }
.related { max-width: 1080px; margin: 60px auto 0; }
.archive-year {
  font-size: 1.4rem;
  color: var(--green-deep);
  margin: 30px 0 16px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--line);
}

/* ============================================================
   Interactive enhancements (2026 refresh) — subtle & accessible
   ============================================================ */

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(to right, var(--saffron), var(--green));
  z-index: 60;
  transition: width 0.1s linear;
}

/* Nav active state */
.nav-links a.active { color: var(--saffron-deep); }
.nav-links a.active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--saffron-deep);
  border-radius: 2px;
  margin-top: 2px;
}

/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { opacity: 0; animation: heroUp 0.6s ease forwards; }
  .hero-text > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-text > *:nth-child(2) { animation-delay: 0.12s; }
  .hero-text > *:nth-child(3) { animation-delay: 0.19s; }
  .hero-text > *:nth-child(4) { animation-delay: 0.26s; }
  .hero-text > *:nth-child(5) { animation-delay: 0.33s; }
  .hero-text > *:nth-child(6) { animation-delay: 0.40s; }
  .hero-photo { opacity: 0; animation: heroFade 0.8s ease 0.2s forwards; }
  @keyframes heroUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes heroFade { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Latest activity strip */
.latest-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: var(--max-width);
  margin: -28px auto 0;
  transform: translateY(-50%);
  width: calc(100% - 48px);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 999px;
  padding: 12px 22px;
  box-shadow: 0 10px 30px rgba(244, 114, 22, 0.12);
  color: var(--ink);
  font-size: 0.95rem;
}
.latest-strip:hover { color: var(--ink); box-shadow: 0 14px 36px rgba(244, 114, 22, 0.2); }
.latest-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); flex: 0 0 auto;
}
@media (prefers-reduced-motion: no-preference) {
  .latest-dot { animation: pulse 1.8s ease-in-out infinite; }
  @keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(19,136,8,0.5); } 50% { box-shadow: 0 0 0 6px rgba(19,136,8,0); } }
}
.latest-label {
  font-weight: 700; color: var(--green-deep); flex: 0 0 auto;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.latest-text { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.latest-arrow { flex: 0 0 auto; color: var(--saffron-deep); font-weight: 700; }

/* Back to top */
.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--saffron-deep);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 55;
  box-shadow: 0 6px 18px rgba(244, 114, 22, 0.4);
  transition: transform 0.2s, background 0.2s;
}
.to-top:hover { transform: translateY(-3px); background: var(--green); }

/* vCard button */
.vcard-actions { text-align: center; margin-top: 26px; }

/* Reduced motion: disable transitions/animations globally */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== News controls: search + filters ===== */
.news-controls { margin: 20px 0 30px; }
.news-search {
  width: 100%;
  max-width: 460px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  margin-bottom: 16px;
}
.news-search:focus-visible { outline: 3px solid var(--saffron-deep); outline-offset: 2px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip-btn {
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 6px 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip-btn:hover { border-color: var(--saffron); }
.chip-btn.active { background: var(--saffron-deep); color: #fff; border-color: var(--saffron-deep); }

/* ===== Share bar ===== */
.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.share-label { font-weight: 600; color: var(--muted); font-size: 0.9rem; }
.share-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 7px 16px;
  border-radius: 8px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s, color 0.2s;
}
.share-btn:hover { transform: translateY(-2px); }
.share-btn.wa:hover { background: #25d366; color: #fff; border-color: #25d366; }
.share-btn.fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-btn.xx:hover { background: #111; color: #fff; border-color: #111; }
.share-btn.copy.copied { background: var(--green); color: #fff; border-color: var(--green); }

/* ===== Photo-story lightbox controls ===== */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 2.4rem;
  width: 54px; height: 54px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s;
}
.lightbox-nav:hover { background: var(--saffron-deep); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
}
@media (max-width: 520px) {
  .lightbox-nav { width: 44px; height: 44px; font-size: 2rem; }
}
