/* NHP Bharat live UI fix */

/* Top header should not appear half-styled on first load */
[class*="topBar"],
[class*="TopBar"],
[class*="top-bar"],
[class*="headerTop"],
[class*="HeaderTop"],
[class*="topHeader"],
[class*="TopHeader"] {
  min-height: 64px !important;
  background: #172f55 !important;
  color: #fff !important;
}

/* Logo stable on first paint */
img[alt="web-logo"],
img[alt="logo"] {
  object-fit: contain !important;
  object-position: center center !important;
}

/* News images: show full image, do not crop */
img[src*="/storage/news/"],
img[src*="/storage/app/public/news/"] {
  object-fit: contain !important;
  object-position: center center !important;
  background: #f3f5f8 !important;
  transform: none !important;
}

/* Stop hover zoom from cutting image */
.group:hover img[src*="/storage/news/"],
.group:hover img[src*="/storage/app/public/news/"] {
  transform: none !important;
}

/* Clean frame for home/list news cards */
.group:has(img[src*="/storage/news/"]),
.group:has(img[src*="/storage/app/public/news/"]) {
  background: #f3f5f8 !important;
}

/* Detail page main image */
.news-detail-img,
.news-details-img,
.news-detail-img img,
.news-details-img img,
[class*="NewsDetail"] img[src*="/storage/news/"],
[class*="newsDetail"] img[src*="/storage/news/"] {
  object-fit: contain !important;
  object-position: center center !important;
  background: #f3f5f8 !important;
  max-height: 720px !important;
}

/* Mobile: image full visible and layout clean */
@media (max-width: 768px) {
  img[src*="/storage/news/"],
  img[src*="/storage/app/public/news/"] {
    object-fit: contain !important;
    object-position: center center !important;
    background: #f3f5f8 !important;
  }

  [class*="topBar"],
  [class*="TopBar"],
  [class*="top-bar"],
  [class*="headerTop"],
  [class*="HeaderTop"],
  [class*="topHeader"],
  [class*="TopHeader"] {
    min-height: 56px !important;
  }
}
