/* Banahatti Abhivruddhi — responsive polish, 14 Aug 2026 */
.today-update-card img,
.today-saradi-card img { background: #f6f1f2; }

.today-update-card:focus-visible {
  outline: 3px solid rgba(150,31,51,.28);
  outline-offset: 3px;
}

/* Featured Independence Day / Praja Soudha event */
.featured-event {
  padding: 22px 0 26px;
  background: linear-gradient(135deg, #fff8e8 0%, #fffdf8 48%, #fff 100%);
  border-bottom: 1px solid rgba(150,31,51,.12);
}
.featured-event-pending { visibility: hidden; height: 0; padding: 0; overflow: hidden; }
.featured-event-ready { visibility: visible; height: auto; }
.featured-event .container {
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(28px, 5vw, 64px);
  row-gap: 16px;
  align-items: center;
}
.featured-event-head {
  grid-column: 2;
  grid-row: 1;
  display: block;
  margin: 0;
  align-self: end;
}
.featured-event-head h1 {
  margin: 14px 0 8px;
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  line-height: 1.23;
  color: #741627;
  text-wrap: balance;
}
.featured-event-head p {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: #4b3a32;
}
.featured-event-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 13px;
  background: #961f33;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}
.featured-event-poster {
  grid-column: 1;
  grid-row: 1 / 3;
  display: block;
  width: 100%;
  max-width: 430px;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 42px rgba(61,35,27,.16);
  border: 1px solid rgba(150,31,51,.14);
  cursor: zoom-in;
}
.featured-event-poster img {
  display: block;
  width: 100%;
  height: auto;
}
.featured-event-footer {
  grid-column: 2;
  grid-row: 2;
  width: auto;
  margin: 0;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-align: left;
  color: #513f36;
  line-height: 1.6;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(150,31,51,.10);
  box-shadow: 0 10px 30px rgba(61,35,27,.06);
  align-self: start;
}
.featured-event-footer strong {
  color: #7b1729;
  font-size: 1.02rem;
}
.featured-event-footer span { font-size: .94rem; }

/* Unified site image viewer — deliberately simple and robust. */
.site-image-lightbox {
  width: min(94vw, 1240px);
  max-width: 1240px;
  height: min(92vh, 940px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #151113;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0,0,0,.5);
}
.site-image-lightbox::backdrop {
  background: rgba(17,10,12,.86);
  backdrop-filter: blur(4px);
}
.site-lightbox-shell {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 320px;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
}
.site-lightbox-figure {
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 72px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}
.site-lightbox-stage {
  width: 100% !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px 0 8px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
.site-lightbox-image {
  display: block !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  max-height: calc(92vh - 108px) !important;
  object-fit: contain !important;
  margin: auto !important;
  border-radius: 7px;
  box-shadow: 0 10px 34px rgba(0,0,0,.34);
}
.site-lightbox-caption {
  flex: 0 0 auto;
  max-width: 900px;
  padding: 7px 18px 3px;
  text-align: center;
  font: 650 .88rem/1.5 "Noto Sans Kannada", Inter, sans-serif;
  color: rgba(255,255,255,.92);
}
.site-lightbox-counter {
  flex: 0 0 auto;
  padding: 2px 18px 13px;
  text-align: center;
  font: 600 .72rem/1.4 Inter,sans-serif;
  color: rgba(255,255,255,.62);
}
.site-lightbox-close,
.site-lightbox-nav {
  border: 0;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.site-lightbox-close {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  font-size: 1.85rem;
  line-height: 1;
}
.site-lightbox-close:hover { background: rgba(255,255,255,.24); }
.site-lightbox-nav {
  position: absolute !important;
  z-index: 8;
  top: 50% !important;
  transform: translateY(-50%);
  width: 46px;
  height: 62px;
  border-radius: 13px;
  background: rgba(255,255,255,.11);
  font-size: 2.6rem;
  line-height: 1;
}
.site-lightbox-prev { left: 14px !important; }
.site-lightbox-next { right: 14px !important; }
.site-lightbox-nav:hover { background: rgba(255,255,255,.20); }
.site-lightbox-close:focus-visible,
.site-lightbox-nav:focus-visible {
  outline: 3px solid rgba(255,255,255,.8);
  outline-offset: 2px;
}

/* Existing Updates/news slideshow should stay in-app rather than opening raw files. */
.modal-slide-open { display: none !important; }

.movement-launch-photo a,
.decision-photo a,
.latest-photo-item img,
.event-banner-card img,
.first-view-satyagraha-image img {
  cursor: zoom-in;
}

@media (max-width: 700px) {
  .featured-event { padding: 12px 0 18px; }
  .featured-event .container {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .featured-event-head {
    order: 1;
    width: 100%;
  }
  .featured-event-badge {
    margin-bottom: 8px;
    font-size: .72rem;
  }
  .featured-event-head h1 {
    margin: 0 0 3px;
    font-size: 1.16rem;
  }
  .featured-event-head p { font-size: .84rem; }
  .featured-event-poster {
    order: 2;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    border-radius: 14px;
  }
  .featured-event-footer {
    order: 3;
    width: 100%;
    margin: 0;
    padding: 11px 13px;
    gap: 4px;
    border-radius: 13px;
    text-align: left;
    font-size: .84rem;
  }
  .featured-event-footer strong { font-size: .9rem; }
  .featured-event-footer span { font-size: .8rem; }

  .site-image-lightbox {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .site-lightbox-figure {
    padding: 0 42px !important;
  }
  .site-lightbox-stage {
    padding: 54px 0 8px !important;
  }
  .site-lightbox-image {
    max-height: calc(100dvh - 135px) !important;
    border-radius: 4px;
  }
  .site-lightbox-nav {
    width: 34px;
    height: 54px;
    border-radius: 10px;
    font-size: 2.15rem;
  }
  .site-lightbox-prev { left: 4px !important; }
  .site-lightbox-next { right: 4px !important; }
  .site-lightbox-close {
    top: 10px !important;
    right: 10px !important;
    width: 40px;
    height: 40px;
  }
  .site-lightbox-caption {
    padding: 6px 6px 2px;
    font-size: .76rem;
    line-height: 1.4;
  }
  .site-lightbox-counter { padding-bottom: 9px; }

  .today-updates { padding: 10px 0 16px; }
  .today-updates-grid { grid-template-columns: 1fr; gap: 10px; }

  .today-update-card {
    min-height: 118px;
    flex-direction: row;
  }
  .today-update-card img {
    width: 42%;
    height: 118px;
    object-fit: cover;
  }
  .today-update-card > span:not(.today-video-icon) {
    padding: 10px 12px;
    font-size: .82rem;
    line-height: 1.45;
  }
  .today-video-card {
    min-height: 92px;
    flex-direction: row;
    gap: 10px;
    padding: 12px;
  }
  .today-video-icon {
    margin: 0;
    flex: 0 0 38px;
  }

  .today-saradi-card {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .today-saradi-card img {
    height: auto;
    max-height: 380px;
    object-fit: cover;
  }
  .today-saradi-copy { padding: 12px 14px 14px; }
  .today-saradi-copy h2 {
    margin: 7px 0 5px;
    font-size: 1.05rem;
    line-height: 1.4;
  }
  .today-saradi-copy p {
    font-size: .84rem;
    line-height: 1.55;
  }

  .post-card { border-radius: 16px; }
  .post-body { padding: 15px; }
}

@media (min-width: 701px) and (max-width: 980px) {
  .featured-event .container {
    grid-template-columns: minmax(260px, 360px) minmax(0,1fr);
    column-gap: 28px;
  }
  .featured-event-head h1 { font-size: 1.55rem; }
  .featured-event-footer { padding: 16px 17px; }

  .today-saradi-card {
    grid-template-columns: minmax(230px,.9fr) minmax(0,1.1fr);
  }
}

/* =========================================================
   PROFESSIONAL UI POLISH — 20 Aug 2026
   Keeps the existing identity while improving hierarchy,
   spacing, cards and the post viewer.
   ========================================================= */

body {
  background: #fcfaf9;
  color: #28171b;
}

.site-header {
  border-bottom: 1px solid rgba(75,13,24,.08);
  box-shadow: 0 8px 30px rgba(75,13,24,.055);
}

.main-nav a:not(.nav-cta) {
  position: relative;
  padding: 10px 0;
}
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: #961f33;
  transition: right .2s ease;
}
.main-nav a:not(.nav-cta):hover::after { right: 0; }

.latest-highlight-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f8e9ec;
  color: #83182a;
  border: 1px solid rgba(150,31,51,.12);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
}

/* Recent dated updates: stronger editorial hierarchy and cleaner cards. */
.today-updates {
  padding: 12px 0;
  background: transparent;
}
.today-updates > .container {
  padding: 22px;
  border: 1px solid #eadfe1;
  border-radius: 22px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 34px rgba(65,37,43,.055);
}
#featured-news-20 > .container {
  border-color: rgba(150,31,51,.20);
  box-shadow: 0 14px 40px rgba(111,20,36,.09);
  background: linear-gradient(180deg,#fff 0%,#fffafb 100%);
}
.today-updates-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 16px;
}
.today-updates-head h2 {
  margin: 0;
  color: #5f1422;
  font: 800 clamp(1.15rem,2vw,1.48rem)/1.35 "Noto Sans Kannada",Inter,sans-serif;
  letter-spacing: -.018em;
}
.today-updates-head p {
  flex-basis: 100%;
  margin: 0;
  color: #7d6d71;
  font-size: .84rem;
  line-height: 1.55;
}
.today-updates-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr)) !important;
  gap: 14px !important;
}
.today-update-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #e8dfe1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(52,31,35,.045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.today-update-card:hover {
  transform: translateY(-3px);
  border-color: rgba(150,31,51,.28);
  box-shadow: 0 12px 28px rgba(75,13,24,.10);
}
.today-update-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 7px;
  background: #f7f4f3;
  border-bottom: 1px solid #eee5e7;
}
.today-update-card > span:not(.today-video-icon) {
  padding: 12px 14px 14px;
  color: #38282c;
  font: 700 .84rem/1.5 "Noto Sans Kannada",Inter,sans-serif;
}
.today-video-card {
  justify-content: center;
  align-items: center;
  min-height: 180px;
}

/* Updates feed */
.updates-filter { gap: 8px; }
.filter-btn {
  border-color: #e4d5d8;
  box-shadow: 0 2px 8px rgba(55,33,38,.035);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.filter-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(150,31,51,.34);
  background: #fff8f9;
}
.updates-feed { gap: 18px; }
.post-card {
  border-color: #e7dcdf;
  border-radius: 18px;
  box-shadow: 0 7px 24px rgba(55,33,38,.055);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(150,31,51,.22);
  box-shadow: 0 16px 38px rgba(75,13,24,.11);
}
.post-media { background: #f6f2f1; }
.post-media > img { transition: transform .25s ease; }
.post-card:hover .post-media > img { transform: scale(1.012); }
.post-body { padding: 18px 18px 20px; }
.post-meta { padding-bottom: 9px; border-bottom: 1px solid #f0e7e9; }
.post-meta span { background: #f9ecef; }
.post-title-kn { margin-top: 10px; }
.read-more { display: inline-flex; align-items: center; gap: 5px; }

/* Post modal: keep the close control fully visible and make the viewer feel deliberate. */
.post-modal {
  width: min(1040px, calc(100vw - 32px)) !important;
  max-height: 92dvh !important;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.7) !important;
  border-radius: 24px !important;
  background: #fff !important;
  overflow: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  box-shadow: 0 32px 100px rgba(27,10,15,.36) !important;
}
.post-modal::backdrop {
  background: rgba(31,13,18,.76) !important;
  backdrop-filter: blur(8px) saturate(.9) !important;
}
.post-modal[open] { animation: postModalIn .18s ease-out; }
@keyframes postModalIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: sticky !important;
  top: 12px !important;
  right: auto !important;
  left: auto !important;
  z-index: 50 !important;
  display: grid !important;
  place-items: center;
  width: 44px !important;
  height: 44px !important;
  margin: 12px 12px -56px auto !important;
  padding: 0 !important;
  border: 1px solid rgba(75,13,24,.12) !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,.96) !important;
  color: #741627 !important;
  font: 500 1.7rem/1 Inter,sans-serif !important;
  box-shadow: 0 8px 26px rgba(31,13,18,.20) !important;
  backdrop-filter: blur(10px);
  transition: transform .16s ease, background .16s ease, color .16s ease;
}
.modal-close:hover {
  transform: scale(1.06);
  background: #961f33 !important;
  color: #fff !important;
}
.modal-close:focus-visible {
  outline: 3px solid rgba(216,154,53,.72);
  outline-offset: 3px;
}
.modal-media {
  max-height: none !important;
  overflow: hidden !important;
  border-radius: 24px 24px 0 0 !important;
  background: radial-gradient(circle at 50% 12%,#302328 0%,#181113 72%) !important;
}
.modal-media img,
.modal-media video {
  max-height: 68dvh !important;
  object-fit: contain !important;
}
.modal-slideshow-stage {
  background: transparent !important;
}
.modal-slide-nav {
  border: 1px solid rgba(255,255,255,.10) !important;
  background: rgba(255,255,255,.12) !important;
  backdrop-filter: blur(8px);
}
.modal-slide-nav:hover { background: rgba(255,255,255,.22) !important; }
.modal-copy {
  padding: 26px 30px 30px !important;
  background: #fff;
}
.modal-copy .post-meta {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee5e7;
}
.modal-copy .post-title-kn {
  font-size: clamp(1.24rem,2.2vw,1.65rem);
  line-height: 1.45;
  margin-bottom: 7px;
}
.modal-copy .post-text-kn { font-size: .98rem; }
.modal-copy > h3:not(.post-title-kn),
.modal-copy > p:not(.post-text-kn) { max-width: 850px; }

/* Footer gets a cleaner separation from page content. */
.site-footer { box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }

@media (max-width: 700px) {
  .today-updates { padding: 7px 0; }
  .today-updates > .container {
    width: min(calc(100% - 20px), var(--container));
    padding: 14px;
    border-radius: 17px;
  }
  .today-updates-head { display: block; margin-bottom: 11px; }
  .today-updates-head h2 { margin-top: 7px; font-size: 1.03rem; }
  .today-updates-head p { margin-top: 5px; font-size: .76rem; }
  .today-updates-grid { grid-template-columns: 1fr !important; gap: 9px !important; }
  .today-update-card {
    min-height: 0;
    display: grid;
    grid-template-columns: 112px minmax(0,1fr);
    align-items: stretch;
    border-radius: 13px;
  }
  .today-update-card img {
    width: 112px;
    height: 112px;
    aspect-ratio: 1;
    padding: 4px;
    border-bottom: 0;
    border-right: 1px solid #eee5e7;
  }
  .today-update-card > span:not(.today-video-icon) {
    display: flex;
    align-items: center;
    padding: 10px 11px;
    font-size: .78rem;
    line-height: 1.45;
  }
  .today-video-card {
    display: flex;
    min-height: 86px;
  }

  .updates-feed { gap: 13px; }
  .post-card { border-radius: 15px; }
  .post-body { padding: 14px 14px 16px; }

  .post-modal {
    width: calc(100vw - 10px) !important;
    max-height: 97dvh !important;
    border-radius: 18px !important;
  }
  .modal-close {
    top: 8px !important;
    width: 42px !important;
    height: 42px !important;
    margin: 8px 8px -50px auto !important;
    font-size: 1.55rem !important;
  }
  .modal-media { border-radius: 18px 18px 0 0 !important; }
  .modal-slideshow-stage {
    height: min(58dvh,560px) !important;
    min-height: 280px !important;
  }
  .modal-copy { padding: 20px 17px 22px !important; }
  .modal-copy .post-title-kn { font-size: 1.15rem; }
}

/* Simple post modal close icon — 20 Aug 2026 */
.modal-close {
  position: sticky !important;
  top: 8px !important;
  z-index: 80 !important;
  display: block !important;
  width: 34px !important;
  height: 34px !important;
  margin: 8px 10px -42px auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  color: #fff !important;
  font: 300 2rem/34px Inter, Arial, sans-serif !important;
  text-align: center !important;
  text-shadow: 0 1px 5px rgba(0,0,0,.65);
  transform: none !important;
}
.modal-close:hover,
.modal-close:active {
  background: transparent !important;
  color: #fff !important;
  transform: scale(1.08) !important;
}
.modal-close:focus-visible {
  outline: 2px solid rgba(255,255,255,.9) !important;
  outline-offset: 2px !important;
}
@media (max-width: 700px) {
  .modal-close {
    top: 6px !important;
    width: 32px !important;
    height: 32px !important;
    margin: 6px 8px -38px auto !important;
    font-size: 1.9rem !important;
    line-height: 32px !important;
  }
}

/* Newspaper safety: preserve the full clipping on every screen. */
.post-media img,
.today-update-card img,
.modal-media img {
  object-fit: contain !important;
  object-position: center center !important;
  height: auto !important;
  max-height: none !important;
}
.post-media { background: #f7f4ed; }
