/* ══════════════════════════════════════════════
   MRHRU — DESIGN TOKENS
   Deep navy + a single warm gold accent, generous
   whitespace, and a calm, premium type scale.
   ══════════════════════════════════════════════ */
.mrhru-section {
    --primary: #0b3d78;
    --primary-dark: #062648;
    --primary-mid: #1c5c9c;
    --primary-100: #eef3fb;
    --primary-200: #d9e5f5;
    --accent: #c8952f;
    --accent-dark: #a5761d;

    --success-bg: #e3f5e9; --success-text: #1e7d43;
    --danger-bg:  #fbe7e8; --danger-text:  #a3313a;
    --warning-bg: #fdf3dd; --warning-text: #8a5c10;

    --text-heading: #16233b;
    --text-body: #37455c;
    --text-muted: #74809a;
    --border: #e6eaf1;
    --surface: #ffffff;
    --surface-alt: #f7f9fc;
    --bg-page: #eef1f6;

    --radius-card: 14px;
    --radius-sm: 10px;
    --radius-lg: 18px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(11,29,61,0.05);
    --shadow: 0 2px 8px rgba(11,29,61,0.05), 0 10px 30px rgba(11,29,61,0.06);
    --shadow-hover: 0 14px 36px rgba(11,61,120,0.14);
    --ease: all 0.28s cubic-bezier(.4,0,.2,1);

    --font-heading: 'Plus Jakarta Sans', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;

    padding: 25px;
    background: var(--bg-page);
    color: var(--text-body);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}
.mrhru-section .container { max-width: 1280px; }
.mrhru-section h2, .mrhru-section h3, .mrhru-section h4 { font-family: var(--font-heading); }
.mrhru-section img { max-width: 100%; height: auto; }
.mrhru-section *, .mrhru-section *::before, .mrhru-section *::after { box-sizing: border-box; }

/* Language visibility */
html[data-lang="en"] .lang-hi,
html[data-lang="hi"] .lang-en { display: none !important; }
.lang-hi,
html[data-lang="hi"] .unified-table td::before,
html[data-lang="hi"] .lightbox figcaption {
    font-family: 'Noto Sans Devanagari', 'Nirmala UI', Arial, sans-serif;
}
.lang-hi { line-height: 1.75; }
.muted-dash { color: var(--text-muted); }

/* Visible keyboard focus */
.mrhru-section a:focus-visible,
.mrhru-section button:focus-visible {
    outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.mrhru-hero {
    position: relative;
    background: linear-gradient(135deg, #0a2a5e 0%, #103a7a 50%, #1a4a94 100%);
    overflow: hidden;
    height: auto;
}
.mrhru-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}
.mrhru-hero::after {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 60%;
    height: 180%;
    background: radial-gradient(circle, rgba(255, 200, 87, 0.12) 0%, transparent 70%);
    pointer-events: none;
}
.mrhru-hero .container { position: relative; z-index: 1; }

.hero-cap {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 760px;
    margin: 0 auto;
    padding: 20px 15px;
    animation: heroFadeIn 0.9s ease-out both;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-identity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: left;
}
.hero-logo {
    display: inline-block;
    flex: none;
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
}
.hero-logo img {
    display: block;
    width: 68px;
    height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.hero-identity-text { flex: none; }

.hero-govt {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #ffd35c;
    margin: 0 0 4px;
}
.hero-dept {
    font-size: 13.5px;
    font-weight: 400;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
}
.hero-divider {
    width: 70px;
    height: 3px;
    margin: 0 auto 22px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, #ffd35c, transparent);
}
.hero-cap h2 {
    font-size: clamp(26px, 5vw, 46px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
    color: #ffffff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}
.hero-cap .hero-sub {
    font-size: clamp(13.5px, 1.8vw, 17px);
    font-weight: 400;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
}

/* ── Language switcher ────────────────── */
.lang-switcher-row { display: flex; justify-content: flex-end; margin-bottom: 22px; }
.lang-switcher {
    display: inline-flex; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius-pill);
    padding: 3px; box-shadow: var(--shadow-sm);
}
.lang-switcher .lang-btn {
    border: 0; background: transparent; color: var(--text-muted);
    padding: 8px 22px; font-size: 14px; font-weight: 600;
    border-radius: var(--radius-pill); cursor: pointer; transition: var(--ease);
    min-height: 40px; font-family: 'Noto Sans Devanagari', var(--font-body);
}
.lang-switcher .lang-btn.active { background: var(--primary); color: #fff; }
.lang-switcher .lang-btn:not(.active):hover { color: var(--primary); background: var(--primary-100); }

/* ══════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════ */
.mrhru-card {
    background: var(--surface); border-radius: var(--radius-card);
    box-shadow: var(--shadow); border: 1px solid var(--border);
    margin-bottom: 24px; overflow: hidden; scroll-margin-top: 90px;
    transition: box-shadow 0.3s ease;
}
.section-heading {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 18px clamp(18px, 3vw, 28px);
    background: var(--surface); border-bottom: 1px solid var(--border);
}
.section-heading > i {
    flex: none; width: 38px; height: 38px; border-radius: var(--radius-sm);
    background: var(--primary-100); color: var(--primary);
    font-size: 16px; display: grid; place-items: center;
}
.section-heading h3 {
    margin: 0; font-size: clamp(16.5px, 2vw, 19px); font-weight: 700;
    color: var(--text-heading); line-height: 1.35; letter-spacing: -0.01em;
}
.section-heading .badge-count {
    margin-left: auto; background: var(--primary-100); color: var(--primary);
    padding: 4px 14px; border-radius: var(--radius-pill);
    font-size: 13px; font-weight: 700; min-width: 34px; text-align: center;
}
.card-body-pad { padding: 25px;     padding-top: 10px;}
.card-body-pad.is-flush { padding: 0; }

/* ── At a glance (stats) ──────────────── */
.stats-block { margin-bottom: 26px; }
.stats-title { font-family: var(--font-heading); font-size: clamp(16px, 2vw, 18px); font-weight: 700; color: var(--text-heading); margin: 0 0 12px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat-card {
    display: flex; align-items: center; gap: 12px; padding: 16px 18px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-card); text-decoration: none; color: inherit; transition: var(--ease);
    box-shadow: var(--shadow-sm);
}
.stat-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); text-decoration: none; transform: translateY(-3px); }
.stat-icon {
    flex: none; width: 44px; height: 44px; border-radius: var(--radius-sm);
    background: var(--primary-100); color: var(--primary); display: grid; place-items: center; font-size: 17px;
}
.stat-num { display: block; font-family: var(--font-heading); font-size: 25px; font-weight: 800; color: var(--primary-dark); line-height: 1; }
.stat-label { display: block; font-size: 13px; color: var(--text-muted); font-weight: 600; margin-top: 4px; line-height: 1.3; }

/* ── Introduction (static, premium) ────── */
.intro-static {
    color: var(--text-body);
    line-height: 1.85;
    font-size: clamp(15px, 1.5vw, 16.5px);
    max-width: 100%;
    width: 100%;
}
.intro-static .intro-lead {
    font-size: clamp(16px, 1.7vw, 18.5px);
    line-height: 1.8;
    color: var(--text-heading);
    font-weight: 500;
    margin-bottom: 30px;
    padding: 22px 26px;
    background: var(--primary-100);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
}
.intro-static .intro-section { margin-bottom: 30px; }
.intro-static .intro-section:last-child { margin-bottom: 0; }
.intro-static .intro-section-title {
    font-family: var(--font-heading);
    font-size: clamp(16px, 1.8vw, 19px);
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-200);
    display: inline-block;
}
.intro-static p { margin-bottom: 14px; }
.intro-static p:last-child { margin-bottom: 0; }
.intro-static ul { list-style: none; padding-left: 0; margin: 0 0 16px; }
.intro-static ul li {
    position: relative; padding-left: 30px; margin-bottom: 13px; line-height: 1.75;
}
.intro-static ul li:last-child { margin-bottom: 0; }
.intro-static ul li::before {
    content: "\f0da"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 4px; top: 2px; color: var(--accent); font-size: 13px;
}
.intro-static .partner-list {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px; margin: 18px 0 6px;
}
.intro-static .partner-card {
    background: var(--surface-alt); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 18px 20px;
    display: flex; align-items: flex-start; gap: 12px; transition: var(--ease);
}
.intro-static .partner-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.intro-static .partner-icon {
    flex: none; width: 40px; height: 40px; border-radius: 50%;
    background: var(--primary-100); color: var(--primary);
    display: grid; place-items: center; font-size: 15px;
}
.intro-static .partner-text { font-weight: 600; color: var(--text-heading); font-size: 14.5px; line-height: 1.5; }
.intro-static .highlight-box {
    background: linear-gradient(135deg, var(--primary-100) 0%, #f2f7ff 100%);
    border-radius: var(--radius-sm); padding: 22px 26px; margin: 24px 0 8px;
    border-left: 4px solid var(--accent);
    overflow: hidden; /* clearfix for the floated image */
}
.intro-static .highlight-box p { font-weight: 500; color: var(--primary-dark); }
.intro-static .highlight-box .fa-award { color: var(--accent); margin-right: 8px; }
.intro-static .highlight-box .legacy-img {
    float: right;
    max-width: 40%;
    height: auto;
    margin: 2px 0 14px 22px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    display: block;
}
.intro-static .stat-highlight {
    display: inline-block; background: var(--primary); color: #fff;
    padding: 2px 13px; border-radius: var(--radius-pill); font-weight: 700; font-size: 14px; margin: 0 2px;
}
.intro-static .institute-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--surface-alt); border: 1px solid var(--border);
    border-radius: var(--radius-pill); padding: 7px 15px; margin: 3px 4px 3px 0;
    font-size: 13.5px; font-weight: 600; color: var(--text-heading);
}
.intro-static .institute-tag i { color: var(--accent); font-size: 12px; }

/* ── Photo carousel — large, premium ─────── */
.photo-carousel-wrapper {
    position: relative;
    padding: 20px clamp(14px, 3vw, 30px) 4px;
}
.photo-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 4px 2px 18px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-200) transparent;
}
.photo-carousel::-webkit-scrollbar { height: 6px; }
.photo-carousel::-webkit-scrollbar-track { background: transparent; }
.photo-carousel::-webkit-scrollbar-thumb { background: var(--primary-200); border-radius: 3px; }

.photo-carousel .photo-item {
    flex: 0 0 auto;
    width: clamp(300px, 42vw, 620px);
    scroll-snap-align: start;
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #dde4ef;
    aspect-ratio: 16 / 10;
    box-shadow: var(--shadow);
    transition: var(--ease);
}
.photo-carousel .photo-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.photo-carousel .photo-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.6s cubic-bezier(.25,.8,.25,1);
}
.photo-carousel .photo-item:hover img { transform: scale(1.045); }
.photo-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 46px 20px 16px; color: #fff; font-size: 14.5px; font-weight: 600; line-height: 1.45;
    background: linear-gradient(to top, rgba(3,15,35,0.82), rgba(3,15,35,0));
    font-family: var(--font-heading);
}
.carousel-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 48px; height: 48px; border-radius: 50%; border: 0;
    background: var(--surface); color: var(--primary);
    font-size: 17px; cursor: pointer; display: grid; place-items: center;
    transition: var(--ease); box-shadow: var(--shadow-hover);
}
.carousel-nav:hover { background: var(--primary); color: #fff; }
.carousel-nav:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: var(--shadow-sm); }
.carousel-prev { left: 4px; }
.carousel-next { right: 4px; }

.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.carousel-dot {
    width: 8px; height: 8px; border-radius: 50%; border: 0;
    background: var(--primary-200); cursor: pointer; transition: var(--ease); padding: 0;
}
.carousel-dot.active { background: var(--primary); width: 22px; border-radius: var(--radius-pill); }

/* ── Nodal institutes ─────────────────── */
.institute-block { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 16px; overflow: hidden; }
.institute-block:last-child { margin-bottom: 0; }
.committee-date { color: var(--text-muted); font-weight: 500; font-size: 0.9em; }
.committee-date-line { color: var(--text-muted); font-size: 13.5px; font-weight: 600; margin: 2px 0 14px; }

/* ── Tabs (Projects / Approved committees) ─── */
.tab-group { padding: 0px; }
.tabs-bar {
    display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding: 14px 2px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px;
}
.tabs-bar::-webkit-scrollbar { display: none; }
.tab-btn {
    flex: none; display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--border); background: var(--surface-alt);
    color: var(--text-body); font-weight: 600; font-size: 13.5px;
    padding: 10px 18px; border-radius: var(--radius-pill);
    cursor: pointer; transition: var(--ease); white-space: nowrap; min-height: 40px;
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.tab-btn .tab-count {
    background: rgba(255,255,255,0.25); color: inherit;
    padding: 1px 9px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 700;
}
.tab-btn:not(.active) .tab-count { background: var(--primary-100); color: var(--primary); }
.tab-panels { padding-top: 6px; }
.tab-panel { display: none; animation: tabFadeIn 0.25s ease; }
.tab-panel.active { display: block; }
@keyframes tabFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Tables ───────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.unified-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.unified-table thead th {
    background: var(--surface-alt); color: var(--text-heading);
    font-weight: 700; padding: 13px 20px; text-align: left;
    border-bottom: 2px solid var(--border); font-size: 12.5px; letter-spacing: 0.02em; text-transform: uppercase;
}
.unified-table tbody td {
    padding: 14px 20px; border-bottom: 1px solid var(--border);
    vertical-align: middle; color: var(--text-body); line-height: 1.55;
}
.unified-table tbody tr:last-child td { border-bottom: 0; }
.unified-table tbody tr { transition: background-color 0.15s ease; }
.unified-table tbody tr:hover { background: var(--primary-100); }
.unified-table .sno-col { font-weight: 600; color: var(--text-muted); width: 72px; }
.unified-table .title-col { min-width: 260px; }

/* Pagination */
.pagination-wrapper { display: flex; justify-content: center; padding: 16px clamp(18px, 3vw, 28px) 8px; border-top: 1px solid var(--border); margin-top: 4px; }
.pagination-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.page-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px;
    border-radius: var(--radius-pill); border: 1px solid var(--primary);
    background: var(--surface); color: var(--primary); font-weight: 600; font-size: 13px;
    cursor: pointer; transition: var(--ease); min-height: 40px;
}
.page-btn:hover:not(:disabled) { background: var(--primary); color: #fff; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-info { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.page-info .current-page { font-weight: 700; color: var(--primary-dark); }
.paginated-hidden { display: none; }

.badge-custom {
    display: inline-flex; align-items: center; gap: 5px; padding: 4px 13px;
    border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge-success-custom { background: var(--success-bg); color: var(--success-text); }
.badge-warning-custom { background: var(--warning-bg); color: var(--warning-text); }

.doc-link {
    display: inline-flex; align-items: center; gap: 6px; color: var(--primary);
    text-decoration: none; font-weight: 600; font-size: 13px;
}
.doc-link:hover { color: var(--primary-dark); text-decoration: underline; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state i { font-size: 44px; color: var(--primary-200); margin-bottom: 10px; display: block; }
.empty-state h4 { color: var(--text-body); margin-bottom: 6px; font-size: 18px; }
.empty-state p { margin: 0; font-size: 14px; }
.institute-block .empty-state { padding: 18px; }

/* ── Contact & map ────────────────────── */
.contact-grid { display: grid; grid-template-columns: 7fr 5fr; }
.contact-map { min-height: 400px; background: #e6ebf3; }
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 400px; border: 0; filter: saturate(0.92); }
.contact-info {
    padding: clamp(22px, 4vw, 40px); background: var(--surface-alt);
    display: flex; flex-direction: column; justify-content: center;
}
.contact-info h4 { font-family: var(--font-heading); font-size: clamp(18px, 2vw, 21px); font-weight: 700; color: var(--text-heading); margin: 0 0 22px; }
.contact-list { list-style: none; margin: 0 0 24px; padding: 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-list li:last-child { margin-bottom: 0; }
.contact-list .c-icon {
    flex: none; width: 44px; height: 44px; border-radius: var(--radius-sm);
    background: var(--primary-100); color: var(--primary); display: grid; place-items: center; font-size: 16px;
}
.contact-list .c-label { display: block; font-size: 13px; color: var(--text-muted); font-weight: 600; }
.contact-list a, .contact-list .c-value {
    color: var(--text-heading); font-weight: 600; font-size: 15px; text-decoration: none; overflow-wrap: anywhere;
}
.contact-list a:hover { color: var(--primary); text-decoration: underline; }
.btn-maps {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
    background: var(--primary); color: #fff; border-radius: var(--radius-pill);
    padding: 13px 28px; font-weight: 600; font-size: 14px; text-decoration: none;
    transition: var(--ease); min-height: 46px;
}
.btn-maps:hover { background: var(--primary-dark); color: #fff; text-decoration: none; box-shadow: var(--shadow-hover); }

/* ── Lightbox ─────────────────────────── */
.lightbox {
    position: fixed; inset: 0; z-index: 99999; background: rgba(3,10,25,0.95);
    display: flex; align-items: center; justify-content: center; padding: 56px 64px;
}
.lightbox[hidden] { display: none; }
body.lb-open { overflow: hidden; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img {
    max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain;
    border-radius: 6px; background: #000;
}
.lightbox figcaption { color: #e8eef7; margin-top: 14px; font-size: 15px; line-height: 1.5; min-height: 1.5em; }
.lb-count { position: absolute; left: 20px; top: 20px; color: #b9c6da; font-size: 14px; }
.lb-btn {
    position: absolute; border: 0; background: rgba(255,255,255,0.12); color: #fff;
    width: 46px; height: 46px; border-radius: 50%; font-size: 18px; cursor: pointer;
    display: grid; place-items: center; transition: var(--ease);
}
.lb-btn:hover { background: rgba(255,255,255,0.28); }
.lb-close { top: 14px; right: 16px; }
.lb-prev  { left: 14px;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 14px; top: 50%; transform: translateY(-50%); }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 991px) {
    .mrhru-hero { padding: 55px 0; }
    .hero-logo img { width: 60px; height: 60px; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info { order: -1; }
    .contact-map, .contact-map iframe { min-height: 320px; }
    .lightbox { padding: 56px 20px 64px; }
    .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
    .lb-prev { left: calc(50% - 56px); }
    .lb-next { right: calc(50% - 56px); }
    .photo-carousel .photo-item { width: clamp(280px, 62vw, 520px); }
}

@media (max-width: 767px) {
    .mrhru-section { padding: 16px; }
    .mrhru-hero { padding: 50px 0; }
    .hero-cap { padding: 15px 10px; }
    .hero-govt { letter-spacing: 1px; }
    .hero-identity { gap: 12px; margin-bottom: 14px; }
    .hero-logo { padding: 8px; }
    .hero-logo img { width: 54px; height: 54px; }
    .hero-divider { width: 60px; margin-bottom: 18px; }
    .lang-switcher-row { justify-content: center; }
    .section-heading { padding: 15px 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-card { padding: 13px; gap: 10px; }
    .stat-icon { width: 38px; height: 38px; font-size: 15px; }
    .stat-num { font-size: 21px; }
    .photo-carousel { gap: 14px; }
    .photo-carousel .photo-item { width: clamp(250px, 82vw, 440px); }
    .carousel-nav { width: 40px; height: 40px; font-size: 15px; }
    .tab-group { padding: 4px 12px 12px; }
    .tab-btn { padding: 9px 15px; font-size: 13px; }
}

/* Phones: every table row becomes a labelled card */
@media (max-width: 640px) {
    .card-body-pad { padding: 14px; }
    .card-body-pad.is-flush { padding: 0; }
    .institute-block .table-wrap { padding: 10px; }
    .table-wrap { overflow-x: visible; }

    .unified-table, .unified-table tbody, .unified-table tr, .unified-table td { display: block; width: 100%; }
    .unified-table thead {
        position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
    }
    .unified-table tbody tr {
        background: var(--surface); border: 1px solid var(--border);
        border-radius: var(--radius-sm); margin-bottom: 10px; padding: 4px 14px;
    }
    .unified-table tbody tr:last-child { margin-bottom: 0; }
    .unified-table tbody td {
        display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
        padding: 9px 0; border-bottom: 1px dashed var(--border); text-align: right;
    }
    .unified-table tbody tr td:last-child { border-bottom: 0; }
    .unified-table td::before {
        content: attr(data-label-en); flex: 0 0 38%; max-width: 38%; text-align: left;
        font-weight: 700; font-size: 12px; color: var(--text-muted);
    }
    html[data-lang="hi"] .unified-table td::before { content: attr(data-label-hi); }
    .unified-table .sno-col { width: 100%; }
    .unified-table .title-col { min-width: 0; }
    .unified-table td > strong, .unified-table td > span { min-width: 0; overflow-wrap: anywhere; }
    .pagination-controls { gap: 10px; }
    .page-btn { padding: 8px 14px; font-size: 12px; }
    .pagination-wrapper { padding-left: 14px; padding-right: 14px; }
}

@media (max-width: 575px) {
    .mrhru-hero { padding: 45px 0; }
    .hero-identity { flex-direction: column; text-align: center; gap: 10px; }
    .photo-carousel .photo-item { width: clamp(220px, 88vw, 380px); }
    .photo-caption { font-size: 12.5px; padding: 34px 14px 12px; }
    .contact-map, .contact-map iframe { min-height: 280px; }
    .btn-maps { align-self: stretch; justify-content: center; }
    .lb-count { left: 14px; top: 26px; }
    .tabs-bar { gap: 6px; }
    .tab-btn { padding: 8px 13px; font-size: 12.5px; }
    .tab-btn .tab-count { padding: 1px 7px; font-size: 11px; }
    .intro-static .intro-lead { padding: 18px; font-size: 15px; }
    .intro-static .partner-list { grid-template-columns: 1fr; }
    .intro-static .highlight-box { padding: 16px 18px; }
    .intro-static .highlight-box .legacy-img { width: 180px; max-width: 45%; margin: 2px 0 12px 16px; }
}

@media (max-width: 480px) {
    .intro-static .highlight-box .legacy-img {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 14px;
    }
}

@media (max-width: 380px) {
    .mrhru-hero { padding: 40px 0; }
    .hero-logo img { width: 42px; height: 42px; }
    .stats-grid { grid-template-columns: 1fr; }
}

@media (min-width: 1400px) {
    .hero-logo img { width: 80px; height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
    .mrhru-section { scroll-behavior: auto; }
    .mrhru-section * { transition: none !important; animation: none !important; }
    .photo-carousel { scroll-behavior: auto; }
}

@media print {
    .lang-switcher-row, .lightbox, .pagination-wrapper, .carousel-nav { display: none !important; }
    .mrhru-card { box-shadow: none; break-inside: avoid; }
    .photo-carousel { flex-wrap: wrap; overflow: visible; }
    .photo-carousel .photo-item { width: calc(33.33% - 10px); aspect-ratio: 4/3; }
    .paginated-hidden { display: block !important; }
    .tabs-bar { display: none !important; }
    .tab-panel { display: block !important; margin-bottom: 22px; }
}