/* ============================================================
   NDRF website - new HTML header (replaces the old header image)
   ============================================================ */

/* Top strip: Government of India / MHA block removed, so keep the
   accessibility tools on the right */
#block-cmf-content-header-region-block .common-wrapper,
#block-cmf-content-header-region-block .common-container { min-height: 40px; height: auto; }
#block-cmf-content-header-region-block .common-container::after { content: ""; display: block; clear: both; }
#block-cmf-content-header-region-block .common-right,
#block-cmf-content-header-region-block #header-nav { height: auto; }
#block-cmf-content-header-region-block #header-nav::after { content: ""; display: block; clear: both; }

/* Header box */
section.wrapper.header-wrapper.ndrf-header-wrapper { padding: 0 1%; clear: both; }
.container.header-container.ndrf-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 10px 20px;
  background: #fff;
  border: 3px solid #f6b48a;
  border-radius: 4px;
}

.ndrf-header a { text-decoration: none; }
.ndrf-header a:hover .nh-en,
.ndrf-header a:focus-visible .nh-en,
.ndrf-header .nh-ministry:hover,
.ndrf-header .nh-ministry:focus-visible { text-decoration: underline; }
.ndrf-header img { display: block; height: auto; }

/* Left: emblem + name */
.nh-left { display: flex; align-items: center; gap: 10px; }
.nh-emblem img { width: auto; height: 72px; }
.nh-title { display: flex; flex-direction: column; text-align: center; line-height: 1.25; }
.nh-name { color: #0b4ea2; }
.nh-name .nh-hi { display: block; font-size: 20px; font-weight: bold; }
.nh-name .nh-en { display: block; font-size: 22px; font-weight: bold; }
.nh-ministry { margin-top: 2px; font-size: 12px; font-weight: bold; color: #0b4ea2; }

/* Centre: NDRF logo + motto */
.nh-logo img { height: 72px; width: auto; }
.nh-motto { text-align: center; color: #0b4ea2; font-weight: bold; line-height: 1.5; }
.nh-motto p { margin: 0; font-size: 17px; }

/* Right: partner logos */
.nh-partners { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; flex-wrap: nowrap; }
.nh-partners img { height: 54px; width: auto; max-width: 70px; object-fit: contain; }
.nh-partners li.nh-nidm img { height: 32px; max-width: 80px; }
.nh-partners a { display: block; border-radius: 50%; }
.ndrf-header a:focus-visible { outline: 3px solid #ff9900; outline-offset: 3px; }

/* Mobile menu button stays at the top-right of the header */
.ndrf-header .toggle-nav-bar { position: absolute; right: 10px; top: 10px; }

/* ---- Medium screens: partner logos move to their own row ---- */
@media (max-width: 1350px) {
  .container.header-container.ndrf-header { justify-content: center; }
  .nh-partners { width: 100%; justify-content: center; }
}

/* ---- Phones ---- */
@media (max-width: 767px) {
  .container.header-container.ndrf-header { padding: 48px 10px 10px; }
  .nh-emblem img { height: 60px; }
  .nh-name .nh-hi { font-size: 18px; }
  .nh-name .nh-en { font-size: 18px; }
  .nh-ministry { font-size: 11px; }
  .nh-logo img { height: 64px; }
  .nh-motto p { font-size: 15px; }
  .nh-partners { flex-wrap: wrap; gap: 10px; }
  .nh-partners img { height: 46px; }
  .nh-partners li.nh-nidm img { height: 28px; }
}

/* High contrast mode keeps logos visible */
html.high-contrast .ndrf-header img { background: #fff !important; }
