/* Text content removed for this template — keep element heights so the
       layout reads identically to the live site. */
.commonHeading .main-head:empty,
.sectionHead:empty,
.heading:empty,
.footer__head:empty {
    min-height: 1.2em;
    min-width: 8rem;
    display: inline-block;
}

.caption:empty,
.desc:empty,
.info:empty {
    min-height: 1em;
    display: block;
}

.article__view-heading .title:empty {
    min-height: 2.2rem;
    display: block;
}

.article__view-heading .sub-title:empty {
    min-height: 1.2rem;
    display: block;
}

/* The real menu is data-driven (each top item reserves a 350px mega-menu
       column). With placeholder items that overflows, so constrain top-level
       items to fit the row and let the logo keep its width. */
.main-nav__navigation .global-navs__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: auto;
    max-width: 100%;
    gap: 0;
}

.main-nav__navigation .global-navs__grid>.global-navs__list {
    width: auto;
}

.main-nav__navigation .global-navs__grid>.global-navs__list>.global-navs__items {
    width: auto !important;
    padding: 0 16px;
}

.main-nav__navigation .global-navs__grid>.global-navs__list>.global-navs__items .global-navs__items-label {
    min-width: 46px;
    display: inline-block;
}

/* Keep the logo at full size regardless of flex pressure; enlarge it
       and vertically centre it so there is no awkward gap underneath. */
.main-nav__logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.main-nav__logo .img-fluid {
    height: 120px !important;
    /* Increase or decrease this value to scale the logo */
    width: auto !important;
    max-width: 100% !important;
}

.main-nav__container {
    align-items: center;
}

/* Home icon must match the other top-action icons (search etc. ≈18px) */
.top-action__list .top-action__item .top-action__link img[alt="Home icon"] {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain;
}

/* HeaderLogo partner emblems — uniform height, single row, right-aligned */
.main-nav__menu {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    align-self: flex-start;
    margin-top: 12px;
}

.top-action.logoView {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    justify-content: flex-end;
}

.top-action.logoView .skip-link {
    font-size: 12px;
    color: #0d6efd;
    white-space: nowrap;
}

.headerLogos {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0;
    flex: 0 0 auto;
}

.headerLogos .top-action__link {
    display: flex;
    align-items: center;
    padding: 0;
}

.headerLogos .top-action__link img {
    height: 40px;
    width: auto;
    max-width: none;
    object-fit: contain;
}

.headerLogos .top-action__link img.emblem-dhr {
    height: 40px;
}

/* wide DHR wordmark — enlarged for parity with other emblems */
/* even spacing for the action icons (search/accessibility/font/dark/menu) */
.top-action.logoView {
    gap: 10px;
}

.top-action.logoView>ul.top-action__list:last-child {
    display: flex;
    align-items: center;
    gap: 14px;
}

.top-action.logoView>ul.top-action__list:last-child .top-action__item {
    margin: 0;
}

/* trim logo + skip-link slightly to make room for the four emblems on one row */
.top-action.logoView .skip-link {
    font-size: 11px;
}

.top-action.logoView>ul.top-action__list:last-child {
    flex: 0 0 auto;
}

/* ICMR–CHAMP horizontal logo: size by height so it matches every page */
/* Visible "Skip to main content" link at the start of the emblem row (left of DHR) */
.top-action.logoView .skip-link {
    position: static !important;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0 16px 0 0;
    overflow: visible;
    clip: auto;
    border: 0;
    color: #0d6efd;
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
    flex: 0 0 auto;
}

.top-action.logoView .skip-link:hover,
.top-action.logoView .skip-link:focus {
    text-decoration: underline;
}

/* Item 9: show exactly ONE nav logo per mode (prevents the dark-mode double logo) */
body:not([data-theme="dark"]) .main-nav__logo .v-darkMode {
    display: none !important;
}

body:not([data-theme="dark"]) .main-nav__logo .h-darkMode {
    display: block !important;
}

body[data-theme="dark"] .main-nav__logo .h-darkMode {
    display: none !important;
}

body[data-theme="dark"] .main-nav__logo .v-darkMode {
    display: block !important;
}

/* Announcement marquee placeholder bars (text removed) */
.announcment__item .ann-bar {
    display: inline-block;
    width: 520px;
    height: 10px;
    margin: 0 70px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .45);
    vertical-align: middle;
}

/* ---- Reduce the white masthead patch: keep the menu on ONE row ---- */
.main-nav__container {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

/* Desktop: the nav links already carry 12px of vertical padding, so trim the
   container's bottom padding to stop the white band running into the hero. */
@media (min-width: 992px) {
    .main-nav__container {
        padding-bottom: 4px !important;
    }
}

.top-action.logoView {
    margin-bottom: 10px !important;
}

/* Custom menu row (bars stand in for menu labels; theme JS ignores it) */
.main-nav__navigation {
    width: 100%;
}

.mainmenu-ph {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 34px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mainmenu-ph li {
    list-style: none;
}

.mainmenu-ph a {
    display: inline-flex;
    align-items: center;
}

.mainmenu-ph__bar {
    display: inline-block;
    height: 12px;
    border-radius: 6px;
    background: #1f2733;
    opacity: .82;
}

/* ---- Hero: left-side content box (replicating ICMR main site layout) ---- */
.header {
    position: relative !important;
    overflow: hidden !important;
    min-height: clamp(520px, 72vh, 780px) !important;
}

/* Background image */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url('../icmr/dist/images/keylong/hero-1.jpg');
    background-size: cover;
    background-position: 55% center;
    background-repeat: no-repeat;
}

/* Hero slider: slides stack and cross-fade (static/js/index.js rotates them) */
.hero-slide {
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-slide--1 { background-image: url('../icmr/dist/images/keylong/hero-1.jpg'); }
/* Photo slides (2-5): event photos cropped to 2.1:1 (same shape as the
   mountain photo) and filling the banner the same way (cover). They start
   just under the white header strip (about 200-209px tall at every width)
   instead of behind it, so people's heads are never hidden by the header. */
.hero-slide--photo {
    top: 195px;
    background-size: cover;
    background-position: center;
}

.hero-slide--2 { background-image: url('../icmr/dist/images/keylong/hero-slide-2.jpg?v=placeholder1'); }
.hero-slide--3 { background-image: url('../icmr/dist/images/keylong/hero-slide-3.jpg?v=placeholder1'); }
.hero-slide--4 { background-image: url('../icmr/dist/images/keylong/hero-slide-4.jpg?v=placeholder1'); }
.hero-slide--5 { background-image: url('../icmr/dist/images/keylong/hero-slide-5.jpg?v=placeholder1'); }

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    gap: 10px;
}

.hero-dots__btn {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background .3s, transform .3s;
}

.hero-dots__btn.is-active {
    background: #fff;
    transform: scale(1.15);
}

.hero-dots__btn:focus-visible {
    outline: 2px solid #f47920;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; }
}

/* Dark overlay */
.header::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.48);
    pointer-events: none;
    transition: background-color 1.2s ease-in-out;
}

/* Lighter tint while a people photo is showing, so faces aren't murky
   (the hero text box has its own background, so text stays readable). */
.header:has(.hero-slide--photo.is-active)::after {
    background: rgba(0, 0, 0, 0.18);
}

/* Neutralize theme sepia/tint overlay */
.header::before {
    z-index: 1 !important;
    pointer-events: none !important;
    filter: none !important;
    background: transparent !important;
}

/* Hide the theme's injected article__view so it doesn't conflict */
.header .article__view {
    display: none !important;
}

/* Social icons above our custom content */
.header__social {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
}

/* Full-height flex wrapper anchored to the header */
.icmr-hero-inner {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(90px, 14vh, 160px) 16px 0;
}

/* Left-side dark content box */
.icmr-hero-box {
    max-width: 920px;
    width: fit-content;
    padding: 28px 44px 32px;
    background: rgba(126, 191, 226, 0.42);
    border-left: 5px solid #fd7e14;
    align-items: flex-start;
    border-radius: 2px;
    justify-content: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-left: 0;
    /* centred horizontally */
}

.icmr-hero-title {
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: clamp(1.25rem, 2.4vw, 2rem);
    line-height: 1.2;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

/* ---- Manual EN/HI phrase swap (driven by html.site-hi) ---- */
.i18n-hi {
    display: none;
}

html.site-hi .i18n-en {
    display: none;
}

html.site-hi .i18n-hi {
    display: inline;
}

html.site-hi .i18n-hi.i18n-icon {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.icmr-hero-sub {
    color: rgba(255, 255, 255, .88);
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: clamp(.88rem, 1.3vw, 1.05rem);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.6;
}

.icmr-hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.icmr-hero-cta .theme__btn {
    font-family: "Inter", sans-serif;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .icmr-hero-inner {
        align-items: flex-end;
        padding-bottom: 28px;
    }

    .icmr-hero-box {
        max-width: 100%;
        border-left: none;
        border-top: 5px solid #fd7e14;
        padding: 24px 20px;
        margin: 0 auto;
    }
}

/* ---- "At a Glance" placard cards ---- */
.icmr-glance {
    position: relative;
    z-index: 6;
    padding: 56px 0 72px;
    background: #f4f7fb;
    /* clean white section, no photo backdrop */
    overflow: hidden;
}

.icmr-glance__inner {
    position: relative;
    z-index: 1;
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 24px;
}

/* wide dark heading band across the top, orange accent on the left */
.icmr-glance__head {
    display: block;
    width: 100%;
    background: rgba(0, 0, 0, .55);
    border-left: 6px solid #fd7e14;
    padding: 20px 34px;
    margin: 0 0 44px;
}

.icmr-glance__head h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    color: #fff;
    margin: 0;
    letter-spacing: .01em;
    line-height: 1.25;
}

.icmr-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.icmr-card {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    min-height: 360px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    border: none;
    padding: 0;
    width: 100%;
    background: #1a2233;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .35);
    transition: transform .28s ease, box-shadow .28s ease;
}

.icmr-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .5);
}

.icmr-card__img {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    transition: transform .5s ease;
}

.icmr-card:hover .icmr-card__img {
    transform: scale(1.06);
}

.icmr-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(10, 15, 26, .15) 0%, rgba(10, 15, 26, .45) 45%, rgba(8, 12, 22, .94) 100%);
}

.icmr-card__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 24px 24px 26px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.icmr-card__title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.25;
    background: rgba(0, 0, 0, .55);
    padding: 6px 12px 6px 0;
    box-shadow: 14px 0 0 rgba(0, 0, 0, .55), -2px 0 0 rgba(0, 0, 0, .55);
}

.icmr-card__desc {
    font-family: "Inter", sans-serif;
    font-size: .9rem;
    color: rgba(255, 255, 255, .82);
    margin: 0 0 20px;
    line-height: 1.5;
    /* Reserve 3 lines so every title lands on the same baseline across cards */
    min-height: 4.5em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.icmr-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: .9rem;
    color: #fff;
    letter-spacing: .02em;
}

.icmr-card__more::after {
    content: '';
    width: 22px;
    height: 2px;
    background: #fd7e14;
    transition: width .28s ease;
}

.icmr-card:hover .icmr-card__more::after {
    width: 40px;
}

.icmr-card__more span {
    color: #fd7e14;
}

@media (max-width: 1099px) {
    .icmr-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .icmr-cards {
        grid-template-columns: 1fr;
    }

    .icmr-glance__head {
        margin: 40px 0 28px;
        padding: 14px 22px;
    }

    .icmr-card {
        min-height: 300px;
    }
}

/* ---- Tile modal ---- */
.icmr-tmodal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1800;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
}

.icmr-tmodal-backdrop.is-open {
    display: flex;
}

.icmr-tmodal {
    background: #fff;
    border-radius: 14px;
    width: min(600px, 92vw);
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
    display: flex;
    flex-direction: column;
}

.icmr-tmodal__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid #e8edf5;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.icmr-tmodal__head-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(253, 126, 20, .12);
    border: 2px solid rgba(253, 126, 20, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fd7e14;
}

.icmr-tmodal__head-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icmr-tmodal__title {
    flex: 1;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #16223a;
    margin: 0;
}

.icmr-tmodal__close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #e0e6f0;
    background: #f5f8fc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    line-height: 1;
    color: #5b6577;
}

.icmr-tmodal__close:hover {
    background: #e8edf5;
}

.icmr-tmodal__body {
    padding: 24px;
    font-family: "Inter", sans-serif;
    font-size: .95rem;
    color: #374151;
    line-height: 1.7;
}

.icmr-tmodal__body p {
    margin: 0 0 14px;
}

.icmr-tmodal__body p:last-child {
    margin: 0;
}

/* "Know more" external-link button inside the modal */
.icmr-tmodal__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 11px 22px;
    border-radius: 8px;
    background: #fd7e14;
    color: #fff;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: .9rem;
    transition: background .2s ease, transform .2s ease;
}

.icmr-tmodal__more:hover {
    background: #e86f0a;
    transform: translateY(-1px);
    color: #fff;
}

/* Lift the "Why Keylong" section clear of the activities slider below,
       leaving a white separation strip so the two don't visually overlap. */
.st-section--tint {
    padding-top: 56px;
    padding-bottom: 56px;
    margin-bottom: 80px;
    background: var(--st-bg);
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--st-line);
}

main#main-content .slider.design1 {
    padding-top: 32px;
    position: relative;
    z-index: 2;
}

/* Justify the Why Keylong description for even word spacing */
.st-section--tint .st-lead {
    text-align: justify;
    text-justify: inter-word;
}

/* Enlarge this section's eyebrow label (default is .8rem) */
/* Big section title (no orange dash) — flush-left, parallel with the paragraph
       below, with a little extra breathing room before it. */
.st-section--tint .st-eyebrow {
    font-size: 2.05rem;
    letter-spacing: .1em;
    line-height: 1.2;
    margin-bottom: 22px;
}

.st-section--tint .st-eyebrow::before {
    display: none;
}

/* keep the Why Keylong photo neatly contained */
.st-illus {
    max-height: 420px;
}

.st-illus img {
    max-height: 420px;
}

/* ---- Footer map: whole map clickable, opens Google Maps URL ---- */
.footer__map-wrap {
    position: relative;
    line-height: 0;
    border-radius: 10px;
    overflow: hidden;
}

.footer__map-wrap iframe {
    display: block;
}

/* interactive — zoom / pan / layers work */
.footer__map-largelink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: .85rem;
    color: #fff;
    text-decoration: underline;
}

/* ---- Site search overlay ---- */
.siteSearch {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8vh 16px 16px;
}

.siteSearch[hidden] {
    display: none;
}

.siteSearch__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 24, .55);
    backdrop-filter: blur(4px);
}

.siteSearch__panel {
    position: relative;
    z-index: 1;
    width: min(680px, 96%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    overflow: hidden;
}

.siteSearch__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid #e4e9f2;
}

.siteSearch__bar input {
    flex: 1;
    border: 0;
    outline: none;
    font-size: 1.05rem;
    font-family: "Inter", sans-serif;
    background: transparent;
    color: #16223a;
}

.siteSearch__bar button {
    border: 0;
    background: none;
    font-size: 1.6rem;
    line-height: 1;
    color: #5b6577;
    cursor: pointer;
}

.siteSearch__results {
    max-height: 56vh;
    overflow-y: auto;
    padding: 8px;
}

.siteSearch__hint,
.siteSearch__none {
    color: #5b6577;
    padding: 18px;
    font-size: .92rem;
}

.siteSearch__item {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #16223a;
}

.siteSearch__item:hover,
.siteSearch__item.is-active {
    background: #eef3fb;
}

.siteSearch__item b {
    font-family: "Poppins", sans-serif;
    font-size: .98rem;
    display: block;
}

.siteSearch__item span {
    color: #5b6577;
    font-size: .86rem;
}

.siteSearch__item mark {
    background: #ffe1b3;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}

/* ---- Accessibility panel ---- */
.a11yPanel {
    position: fixed;
    top: 130px;
    right: 18px;
    z-index: 1250;
    width: 260px;
    background: #fff;
    border: 1px solid #e4e9f2;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(11, 20, 55, .18);
    padding: 14px 16px;
}

.a11yPanel[hidden] {
    display: none;
}

.a11yPanel__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-family: "Poppins", sans-serif;
}

.a11yPanel__head button {
    border: 0;
    background: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #5b6577;
    line-height: 1;
}

.a11yPanel__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: .9rem;
}

.a11yPanel__btns {
    display: flex;
    gap: 6px;
}

.a11yPanel__btns button {
    width: 34px;
    height: 30px;
    border: 1px solid #d4dbe8;
    border-radius: 8px;
    background: #f5f8fc;
    cursor: pointer;
    font-weight: 600;
    color: #16223a;
}

.a11yPanel__btns button:hover {
    background: #e7eefb;
}

.a11yPanel__toggle {
    border: 1px solid #d4dbe8;
    border-radius: 999px;
    padding: 4px 14px;
    background: #f5f8fc;
    cursor: pointer;
    font-weight: 600;
    color: #5b6577;
    font-size: .82rem;
}

.a11yPanel__toggle[aria-pressed="true"] {
    background: #198754;
    color: #fff;
    border-color: transparent;
}

/* ---- High-contrast mode ---- */
body.hc {
    filter: contrast(1.32) saturate(1.15);
}

[data-theme=dark] .siteSearch__panel,
[data-theme=dark] .a11yPanel {
    background: #1e242f;
    border-color: #2c333f;
    color: #e8ecf3;
}

[data-theme=dark] .siteSearch__item {
    color: #e8ecf3;
}

[data-theme=dark] .siteSearch__item:hover,
[data-theme=dark] .siteSearch__item.is-active {
    background: #2a313d;
}

/* ---- Display-mode chooser popup (glassmorphism) ---- */
.themePop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.themePop[hidden] {
    display: none;
}

/* The theme header has z-index:9999 — lift the header overlays/dropdowns above
       it so search, accessibility, display-mode and the font popup are visible. */
.siteSearch {
    z-index: 10001 !important;
}

.a11yPanel {
    z-index: 10001 !important;
}

.themePop {
    z-index: 10001 !important;
}

.additionalActions .font__actions {
    z-index: 10002;
}

.themePop__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.themePop__panel {
    position: relative;
    z-index: 1;
    width: min(92%, 380px);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .32);
}

.themePop__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    font-weight: 700;
    font-size: 1.05rem;
    color: #1f2733;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.themePop__x {
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #1f2733;
}

.themePop__body {
    display: flex;
    gap: 14px;
    padding: 22px 18px;
}

.themePop__opt {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 10px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .12);
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
    font-weight: 600;
    color: #1f2733;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.themePop__opt:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
    border-color: #0d6efd;
}

.themePop__opt[data-mode="dark"] {
    background: rgba(18, 18, 18, .88);
    color: #eee;
    border-color: rgba(255, 255, 255, .16);
}

.themePop__opt[data-mode="dark"]:hover {
    border-color: #5897fb;
}

.themePop__ico {
    font-size: 1.9rem;
    line-height: 1;
}

.themePop__opt.is-active {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

[data-theme=dark] .themePop__panel {
    background: rgba(28, 28, 28, .88);
    border-color: rgba(255, 255, 255, .14);
}

[data-theme=dark] .themePop__head {
    color: #eee;
    border-color: rgba(255, 255, 255, .12);
}

[data-theme=dark] .themePop__x {
    color: #eee;
}

[data-theme=dark] .themePop__opt[data-mode="light"] {
    background: rgba(245, 245, 245, .92);
    color: #1f2733;
}

/* ---- Recent Publications: placeholder bars (text removed) ---- */
.pubSection {
    padding: 48px 0 20px;
}

.latestPublication .cardView__content .heading {
    min-height: 1.5rem;
    margin-bottom: 12px;
}

.latestPublication .pub-bar {
    display: block;
    height: 11px;
    border-radius: 5px;
    background: rgba(255, 255, 255, .55);
    margin-bottom: 9px;
}

.latestPublication .pub-bar--title {
    height: 16px;
    width: 82%;
    background: rgba(255, 255, 255, .92);
}

.latestPublication .caption {
    margin-bottom: 14px;
}

.latestPublication .pub-bar--sm {
    width: 55%;
}

.latestPublication .pub-bar--link {
    width: 92px;
    height: 10px;
    margin: 0;
    background: rgba(255, 255, 255, .85);
}

/* ---- Photo Gallery: little description text area + placeholder bars ---- */
.galSection {
    padding: 30px 0 40px;
    margin-bottom: 46px;
}

/* white separation strip between the grey gallery backdrop and the footer */
.pubSection {
    margin-bottom: 8px;
}

/* ---- Video Gallery: hover-to-play cards ---- */
.galSection .tabview__container,
.galSection .tab-content,
.galSection .tab-pane,
.galSection .tabview__container-content,
.galSection .tabview__container-main {
    width: 100%;
}

.videoGrid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding: 6px 4px 4px;
}

@media (max-width: 991.98px) {
    .videoGrid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .videoGrid {
        grid-template-columns: 1fr;
    }
}

.videoCard {
    position: relative;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #0b0f1a;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(11, 20, 55, .14);
    transition: transform .3s ease, box-shadow .3s ease;
}

.videoCard:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(11, 20, 55, .24);
}

.videoCard__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.videoCard__badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #12417e;
    font-size: 1.3rem;
    padding-left: 4px;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .6);
    transition: opacity .3s ease, transform .3s ease;
}

.videoCard.is-playing .videoCard__badge {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.6);
}

.videoCard__cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 16px 14px;
    color: #fff;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.35;
    background: rgba(10, 16, 30, .55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.mediaCard__item-content .gal-desc {
    margin: 6px 0 10px;
    display: block;
    font-size: .86rem;
    line-height: 1.45;
    color: #5b6472;
}

[data-theme=dark] .mediaCard__item-content .gal-desc {
    color: #bbb;
}

/* ---- Item 6: identical photo-gallery boxes (fixed sizes + clamped text) ---- */
.galSection .owl-stage {
    display: flex;
    align-items: stretch;
}

/* equal-height items */
.galSection .owl-item {
    display: flex;
}

.galSection .mediaCard__item {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border: 1px solid #e4e9f2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(11, 20, 55, .08);
}

.galSection .mediaCard__item-media {
    height: 218px;
    flex: 0 0 218px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.galSection .mediaCard__item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.galSection .mediaCard__item-content {
    flex: 1 1 auto;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    overflow: hidden;
}

.galSection .mediaCard__item-content .title {
    font-size: 1rem;
    line-height: 1.25;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.galSection .mediaCard__item-content .gal-desc {
    margin: 4px 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.galSection .mediaCard__item-content .info {
    display: none;
}

/* short captions — no View More */
/* News tab: whole card is a link that opens the PDF */
.galSection a.mediaCard__item {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.galSection a.mediaCard__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(11, 20, 55, .16);
}

.galSection .newsSlide .mediaCard__item-content .gal-desc {
    color: #0d6efd;
    font-weight: 600;
}

/* ---- Item 7: brighten the Keylong activity slider images ---- */
.icmrGlance .cardView.design1 {
    filter: brightness(1.12) saturate(1.06);
}

.icmrGlance .cardView.design1::before,
.icmrGlance .cardView.design1::after,
.icmrGlance .cardView.design1 .cardView__content::before,
.icmrGlance .cardView.design1 .cardView__content::after {
    background: none !important;
    opacity: 0 !important;
}

/* ---- ICMR Live video heading: push it down from the section above so it
       sits just on top of the video ---- */
.event {
    padding-top: 80px;
}

.event .commonHeading {
    margin-top: 0px;
    margin-bottom: 18px !important;
}

.event .commonHeading .main-head {
    line-height: 1.3;
}

/* ---- Item 8: enlarge the ICMR Live video to fill its box ---- */
.event__container-media {
    height: auto !important;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(11, 20, 55, .16);
}

.event__container-media iframe,
.event__container-media video {
    width: 100%;
    height: 100%;
    min-height: 440px;
    display: block;
    border: 0;
    object-fit: cover;
    background: #000;
}

/* Contact block links should not show the arrow bullet used by link lists */
.footer__content p .footer__link::before {
    content: none !important;
    display: none !important;
}

/* Keep the two phone numbers inline on one line (theme makes links block) */
.footer__content p .footer__link {
    display: inline !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mediaCard__item-content .gal-bar {
    display: block;
    height: 10px;
    border-radius: 5px;
    background: rgba(31, 39, 51, .22);
}

.mediaCard__item-content .gal-bar--title {
    height: 15px;
    width: 70%;
    background: rgba(31, 39, 51, .40);
}

.mediaCard__item-content .gal-bar--sm {
    width: 55%;
}

/* ---- Glassmorphism polish ---- */
.galSection .mediaCard__item-content {
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 0 0 12px 12px;
    padding: 8px 12px;
}

.galSection .nav-tabs .nav-link.active {
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
}

.impWebsite .cardView__content {
    background: rgba(255, 255, 255, .55) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 12px;
}

/* DHR logo has a transparent PNG background — give it a solid white card like the header version */
.impWebsite .cardView__content.logo-dhr {
    background: #fff !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Back-to-top floating button: swap the plain blue pill for a white circle + up arrow, matching the down-arrow scroll button on the left.
       The arrow lives on ::before (not the button itself) because #backToTopBtn has an infinite bounce animation that
       continuously overrides any `transform` set directly on it. */
#backToTopBtn {
    background-color: #fff !important;
    background-image: none !important;
    width: 45px !important;
    height: 45px !important;
    min-width: 45px !important;
    padding: 0 !important;
    border-radius: 75px !important;
}

#backToTopBtn::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../icmr/dist/images/svg/down-arrow.svg');
    background-size: 25px;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(180deg);
}

/* Footer link lists are also data-driven (fixed 350px columns) — fit them */
.footer__top-list {
    flex-wrap: wrap;
}

.footer__top-list .footer__top-item,
.footer__top-list .footer__top-link {
    width: auto !important;
}

.footer__bottom-list .footer__bottom-link {
    width: auto !important;
}

.footer__menu .footer__item,
.footer__menu .footer__link {
    width: auto !important;
}

/* Homepage-only horizontal-overflow guard (its header is position:fixed, so
       this can't affect sticky). Kept off the inner pages so their sticky
       header works. */
html {
    overflow-x: clip;
}

body {
    overflow-x: hidden;
}

.latestPublication .cardView.design2 {
    position: relative;
    height: 460px;
    overflow: hidden;
    border-radius: 18px;
    background-color: #0c1830;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    transition: .4s ease;
    cursor: pointer;
}

.latestPublication .cardView.design2::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, .55) 0%,
            rgba(0, 0, 0, .24) 20%,
            rgba(0, 0, 0, .07) 30%,
            rgba(0, 0, 0, 0) 39%);
    transition: .35s;
}

.latestPublication .cardView.design2:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .28);
}

.latestPublication .cardView.design2:hover::before {
    background: linear-gradient(to top,
            rgba(0, 0, 0, .65) 0%,
            rgba(0, 0, 0, .30) 20%,
            rgba(0, 0, 0, .09) 30%,
            rgba(0, 0, 0, 0) 39%);
}

.latestPublication .cardView__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 5px 10px;
    color: #fff;
    z-index: 2;
    backdrop-filter: blur(3px) saturate(130%);
    -webkit-backdrop-filter: blur(3px) saturate(130%);
    background: rgba(5, 18, 45, .22);
}

.pub-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 4px;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pub-authors {
    font-size: .8rem;
    color: rgba(255, 255, 255, .90);
    line-height: 1.3;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pub-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    padding: 30px;
}

.pub-popup.active {
    display: flex;
}

.pub-popup-box {
    width: min(960px, 95%);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 18px;
    position: relative;
    animation: popupShow .35s ease;
}

@keyframes popupShow {
    from {
        opacity: 0;
        transform: translateY(40px) scale(.96);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.pub-popup-image {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.pub-popup-content {
    padding: 35px;
}

.pub-popup-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.pub-popup-content p {
    line-height: 1.8;
    color: #444;
    font-size: 1rem;
}

.pub-popup-doi {
    display: inline-block;
    margin-top: 20px;
    background: #0d6efd;
    color: #fff;
    padding: 12px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}

.pub-popup-doi:hover {
    background: #0047b6;
    color: #fff;
}

.pub-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: #fff;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
    transition: .3s;
}

.pub-close:hover {
    transform: rotate(90deg);
    background: #0d6efd;
    color: #fff;
}

@media(max-width:768px) {}

/* ---- Institute News (below Photo/Video Gallery) — premium redesign ---- */
.newsSection {
    position: relative;
    overflow: hidden;
    padding: 64px 0 70px;
    background: linear-gradient(180deg, #f4f8ff 0%, #eef4ff 55%, #f8fafd 100%);
}

.news-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(13, 110, 253, .10) 1.6px, transparent 1.6px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .15) 70%, transparent 100%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .15) 70%, transparent 100%);
}

.newsSection .container {
    position: relative;
    z-index: 1;
}

/* Toolbar: search + filter chips */
.news-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 30px 0 34px;
}

.news-search {
    flex: 0 1 340px;
    position: relative;
    display: flex;
    align-items: center;
}

.news-search svg,
.news-search i {
    position: absolute;
    left: 16px;
    width: 17px;
    height: 17px;
    color: #7a8aa3;
    pointer-events: none;
}

.news-search input {
    width: 100%;
    padding: 11px 16px 11px 42px;
    border-radius: 30px;
    border: 1px solid rgba(18, 65, 126, .16);
    background: #fff;
    font-size: .9rem;
    color: #1f2733;
    transition: border-color .2s, box-shadow .2s;
}

.news-search input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, .12);
}

.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.news-filter-chip {
    border: 1px solid rgba(18, 65, 126, .18);
    background: #fff;
    color: #3a4a63;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}

.news-filter-chip:hover {
    border-color: #0d6efd;
    color: #0d6efd;
}

.news-filter-chip.is-active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    box-shadow: 0 6px 16px rgba(13, 110, 253, .3);
}

/* Category badges */
.news-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    background: rgba(13, 110, 253, .12);
    color: #0d6efd;
}

.news-badge--featured {
    background: linear-gradient(120deg, #fd7e14, #f59e0b);
    color: #fff;
}

/* Featured card */
.news-featured {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 16px 44px rgba(11, 20, 55, .12);
    border: 1px solid rgba(18, 65, 126, .07);
    margin-bottom: 30px;
    transition: transform .3s ease, box-shadow .3s ease;
}

.news-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 60px rgba(11, 20, 55, .18);
    color: inherit;
}

.news-featured__media {
    position: relative;
    overflow: hidden;
    min-height: 260px;
}

.news-featured__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.news-featured:hover .news-featured__media img {
    transform: scale(1.07);
}

.news-featured__media .news-badge--featured {
    position: absolute;
    top: 16px;
    left: 16px;
}

.news-featured__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(5, 18, 45, .35));
}

.news-featured__body {
    padding: 32px 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .8rem;
    color: #6c7a90;
    font-weight: 600;
}

.news-featured__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    color: #102a52;
    font-family: "Poppins", sans-serif;
}

.news-featured__summary {
    margin: 0;
    color: #51607a;
    line-height: 1.6;
    font-size: .96rem;
}

.news-featured__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.news-source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 700;
    color: #1f2733;
}

.news-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: 30px;
    background: #0d6efd;
    color: #fff;
    font-weight: 700;
    font-size: .88rem;
    transition: background .25s ease, transform .25s ease;
}

.news-featured:hover .news-cta {
    background: #0056d2;
    transform: translateX(2px);
}

/* Card grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(11, 20, 55, .08);
    border: 1px solid rgba(18, 65, 126, .06);
    transition: transform .3s ease, box-shadow .3s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(11, 20, 55, .16);
}

.news-card__media {
    position: relative;
    height: 168px;
    overflow: hidden;
}

.news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.news-card:hover .news-card__media img {
    transform: scale(1.08);
}

.news-card__media .news-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(4px);
}

.news-card__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
}

.news-card__title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: #16223c;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__summary {
    margin: 0;
    font-size: .85rem;
    color: #647189;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    font-size: .78rem;
    color: #8a96aa;
}

.news-card__meta .news-source {
    font-size: .78rem;
    color: #45506b;
}

.news-card__cta {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 0;
    border-radius: 30px;
    background: rgba(13, 110, 253, .1);
    color: #0d6efd;
    font-weight: 700;
    font-size: .83rem;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.news-card__cta:hover {
    background: #0d6efd;
    color: #fff;
}

/* ---- MoU tab: news-style boxes with a PDF first-page preview ---- */
.mou-grid {
    grid-template-columns: repeat(2, minmax(0, 340px));
    justify-content: flex-start;
    gap: 28px;
}

.mou-card .news-card__media {
    height: 230px;
    background: #eef2f8;
}

.mou-card .news-card__media img {
    object-fit: cover;
    object-position: top center;
}

.mou-card .news-card__title {
    -webkit-line-clamp: 3;
}

@media (max-width: 575.98px) {
    .mou-grid {
        grid-template-columns: minmax(0, 360px);
    }
}

.news-empty {
    text-align: center;
    color: #7a8aa3;
    padding: 40px 0;
    font-size: .95rem;
}

@media (max-width: 991.98px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-featured {
        grid-template-columns: 1fr;
    }

    .news-featured__media {
        min-height: 220px;
    }
}

@media (max-width: 575.98px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .news-search {
        flex-basis: auto;
    }

    .news-featured__body {
        padding: 24px 22px;
    }

    .news-featured__title {
        font-size: 1.25rem;
    }
}

/* ============================================================
       RESPONSIVE HARDENING (no visual redesign — small-screen only)
       Fixes real horizontal overflow found below ~480px without
       altering the desktop/tablet layout, spacing, or branding.
       ============================================================ */
/* Media never overflows its container */
.header img,
.header svg,
main img,
main svg,
footer img,
footer svg {
    max-width: 100%;
}

@media (max-width: 480px) {

    /* Partner-emblem row (DHR / BBBP / Swachh Bharat / G20) was a fixed
         ~438px-wide non-wrapping row → overflowed narrow phones. Allow it to
         wrap and shrink so it always fits, keeping every emblem visible. */
    .top-action.logoView {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .headerLogos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 14px;
    }

    .headerLogos .top-action__link img {
        height: 28px;
    }

    .headerLogos .top-action__link img.emblem-dhr {
        height: 28px;
    }
}

/* ---- Minimized / mobile header: collapse the nav behind the hamburger
       (matches the ICMR mobile header layout). Desktop (>=992px) unchanged. ---- */
@media (max-width: 991.98px) {

    /* Force a clean vertical stack so the logo and the action-icon row can
         never overlap: logo (own row, fixed height) → emblems + icons row.
         flex-direction:column is used instead of wrap to guarantee order. */
    .main-nav__container {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
    }

    .main-nav__logo {
        width: 100%;
        justify-content: center;
        margin: 0;
    }

    /* 3-class selector + !important beats the theme's breakpoint sizing that
         was blowing the logo up to ~120px. */
    .main-nav .main-nav__logo .img-fluid {
        height: 54px !important;
        width: auto !important;
        max-width: 88vw !important;
    }

    .main-nav__menu {
        width: 100%;
        margin-top: 12px;
        align-self: stretch;
    }

    .top-action.logoView {
        position: relative;
        justify-content: space-between;
        flex-wrap: wrap;
        row-gap: 8px;
        align-items: center;
        width: 100%;
    }

    .headerLogos {
        flex: 0 1 auto;
        position: static !important;
    }

    /* Theme absolutely-positions this icon row (top:20px) on mobile, which
         made it overlay the logo. Return it to normal flow so it sits in the
         emblems/icons row instead. */
    .top-action.logoView>ul.top-action__list:last-child {
        position: static !important;
        top: auto !important;
        right: auto !important;
        flex: 0 0 auto;
        margin-left: auto;
    }

    /* The horizontal nav becomes a dropdown panel toggled by the hamburger. */
    .main-nav__container {
        position: relative;
    }

    .main-nav__navigation {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        z-index: 200;
        background: #fff;
        border-top: 1px solid #e4e9f2;
        box-shadow: 0 20px 44px rgba(11, 20, 55, .18);
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height .3s ease, visibility .3s ease;
    }

    body[data-theme="dark"] .main-nav__navigation {
        background: #1e242f;
        border-top-color: #2c333f;
    }

    .main-nav__navigation.is-open {
        max-height: 80vh;
        overflow-y: auto;
        visibility: visible;
    }

    /* Vertical menu items */
    .station-nav {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 2px;
        padding: 8px 16px;
    }

    .station-nav>li {
        width: 100%;
    }

    .station-nav a {
        justify-content: flex-start;
    }

    /* About Us submenu expands inline within the panel (not as an overlay) */
    .station-nav .has-dropdown .station-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0 0 4px 18px;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .25s ease;
    }

    .station-nav .has-dropdown.is-open .station-dropdown {
        max-height: 220px;
    }
}

/* ---- Mobile / tablet header layout (matches the ICMR main-site mobile header):
       row 1: logo (left) + "Skip to main content" (right)
       divider (existing theme line)
       row 2: DHR / BBBP / Swachh emblems + search / a11y / font / theme / menu
       All in CSS (no inline styles) so the strict CSP never blocks it. The
       selectors are deliberately specific / !important to beat the theme. ---- */
@media (max-width: 991.98px) {
    .main-nav .main-nav__container {
        align-items: stretch;
    }

    .main-nav .main-nav__logo {
        justify-content: flex-start;
        align-items: center;
        min-height: 54px;
    }

    /* Containing block for the skip link is .main-nav__container. */
    .main-nav .top-action.logoView {
        position: static;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .main-nav .top-action.logoView .skip-link {
        position: absolute !important;
        top: 16px;
        right: 0;
        height: 54px;
        margin: 0 !important;
        display: flex;
        align-items: flex-end;
        font-size: 14px;
    }

    /* One compact row: emblems on the left, action icons on the right. */
    .main-nav .top-action.logoView > ul.top-action__list {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        flex: 0 1 auto;
        gap: 8px;
        margin: 0 !important;
    }

    .main-nav .top-action.logoView > ul.top-action__list > .top-action__item {
        margin: 0 !important;
    }

    .main-nav .top-action.logoView > ul.top-action__list:last-child .top-action__link {
        padding: 2px 3px;
    }

    .main-nav .headerLogos .top-action__link img,
    .main-nav .headerLogos .top-action__link img.emblem-dhr {
        height: 24px;
        width: auto;
    }

    /* The (hidden) EN/हिं toggle's list item shouldn't take a slot. */
    .main-nav .top-action__item:has(> .st-lang[hidden]) {
        display: none;
    }

    /* Keep the theme toggle and menu icon from touching. */
    .main-nav .top-action.logoView .top-action__item.menuIcon {
        margin-left: 6px !important;
    }

    /* Hero content sits in normal flow below the (taller-than-desktop) mobile
       header, so the banner grows with its text instead of sliding under it. */
    .icmr-hero-inner {
        position: relative;
        inset: auto;
        min-height: clamp(520px, 72vh, 780px);
        padding-top: 225px;
    }
}

/* Small phones: shrink the logo row so logo and skip link never collide. */
@media (max-width: 399.98px) {
    .main-nav .main-nav__logo .img-fluid {
        height: 48px !important;
    }

    .main-nav .main-nav__logo,
    .main-nav .top-action.logoView .skip-link {
        min-height: 48px;
        height: 48px;
    }

    .main-nav .top-action.logoView .skip-link {
        font-size: 12px;
    }

    .main-nav .top-action.logoView > ul.top-action__list {
        gap: 6px;
    }

    .main-nav .top-action.logoView > ul.top-action__list:last-child {
        gap: 10px;
    }

    .main-nav .headerLogos .top-action__link img,
    .main-nav .headerLogos .top-action__link img.emblem-dhr {
        height: 20px;
    }

    .icmr-hero-inner {
        padding-top: 217px;
    }
}

/* ---- Desktop (>=992px): nav sits at the bottom-right, below the emblem /
       action-icon row, with clear vertical space between them (matches the
       ICMR desktop header reference). ---- */
@media (min-width: 992px) {
    .main-nav__navigation {
        margin-top: 22px;
    }

    .main-nav__navigation .station-nav {
        justify-content: flex-end;
    }
}
/* ============================================================
   CSP-safe classes replacing former inline style="" attributes
   in index.html (background images, sizing, and helpers).
   ============================================================ */

/* Overview placard card background images. */
.icmr-card__img--afms      { background-image: url('../icmr/dist/images/keylong/AFMS.jpeg'); }
.icmr-card__img--research  { background-image: url('../icmr/dist/images/sliders/research.png'); }
.icmr-card__img--institute { background-image: url('../icmr/dist/images/inner-banners/common.jpg'); }
.icmr-card__img--career    { background-image: url('../icmr/dist/images/sliders/career.png'); }
.icmr-card__img--grants    { background-image: url('../icmr/dist/images/sliders/bg-1.png'); }

/* "ICMR at a Glance" design1 slides (image + cover/center, as inline). */
.icmrGlance .cardView.design1.cardView--hepatitis { background-image: url('../icmr/dist/images/keylong/slide-hepatitis.jpg'); background-size: cover; background-position: center; }
.icmrGlance .cardView.design1.cardView--awareness { background-image: url('../icmr/dist/images/keylong/slide-awareness.jpg'); background-size: cover; background-position: center; }
.icmrGlance .cardView.design1.cardView--outreach  { background-image: url('../icmr/dist/images/keylong/slide-outreach.jpg'); background-size: cover; background-position: center; }

/* Recent Publications design2 cards (base rule supplies size/position). */
.latestPublication .cardView.design2.pubcard--seroprevalence { background-image: url('../icmr/dist/images/keylong/publications/Seroprevalence and risk factors.png'); }
.latestPublication .cardView.design2.pubcard--sickle         { background-image: url('../icmr/dist/images/keylong/publications/Sickle cell anemia and G6PD deficiency in Lahaul and Spiti.png'); }
.latestPublication .cardView.design2.pubcard--rti            { background-image: url('../icmr/dist/images/keylong/publications/Reproductive tract infection among the women altitude areas of Lahaul andSpiti District of Himachal Pradesh.png'); }
.latestPublication .cardView.design2.pubcard--hbv-genotypes  { background-image: url('../icmr/dist/images/keylong/publications/Identification of hepatitis B virus genotypes detected in Lahaul & Spiti district of Himachal Pradesh.png'); }
.latestPublication .cardView.design2.pubcard--public-health  { background-image: url('../icmr/dist/images/keylong/publications/Recent public health concerns of the high-altitude tribal population of Lahaul and Spiti.jpg'); }

/* "St illustration" home image (was inline width/height/object-fit/display). */
.st-illus__media { width: 100%; height: 100%; object-fit: cover; display: block; }

/* St lead paragraph spacing + flush checklist (were inline). */
.st-lead.st-lead--mb20 { margin-bottom: 20px; }
.st-checklist.st-checklist--flush { padding: 0; margin: 0; }

/* Announcement popup narrow box (was inline max-width). */
.pub-popup-box.pub-popup-box--narrow { max-width: 560px; }

/* "What's New" vertical marquee height (was inline). */
.info-marquee { height: 400px; }

/* Footer map embed borderless (was inline border:0). */
.footer__map-frame { border: 0; }

/* Loader hide + modal scroll-lock (were set via element.style). */
body.icmr-modal-open { overflow: hidden; }

/* "What's New" floating panel: the theme gives it a fixed ~466px width
   anchored 30px from the right, which pushed it off the left edge of phones.
   On small screens, stretch it between 12px and 30px margins instead. */
@media (max-width: 575.98px) {
    .info__section.active {
        left: 12px;
        width: auto;
        max-width: none;
    }

    .info__section.active .info__section-content {
        width: auto;
        max-width: 100%;
    }

    .info__section .info-head .heading {
        white-space: nowrap;
    }

    .info-marquee {
        height: min(400px, 45vh);
    }
}
