
/*
Theme Name: RIMS Modern Government
Theme URI: https://www.rims.edu.in/secure/
Author: RIMS IT Cell
Description: Responsive PHP 8.2-compatible RIMS institutional theme.
Version: 9.1.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.2
License: GPL-2.0-or-later
Text Domain: rims-modern
*/
:root{--navy:#0a3a61;--navy2:#082f50;--blue:#1469a5;--gold:#c49a3a;--light:#f4f7fa;--text:#263746;--muted:#657789;--border:#d9e3eb;--white:#fff;--max:1240px;--shadow:0 4px 16px rgba(7,48,80,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Arial,"Noto Sans",sans-serif;color:var(--text);background:#fff;line-height:1.55}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%;height:auto}.container{width:min(calc(100% - 30px),var(--max));margin:auto}
.skip-link{position:absolute;left:-9999px;top:10px;background:#000;color:#fff;padding:8px;z-index:9999}.skip-link:focus{left:10px}
.topbar{background:var(--navy2);color:#fff;font-size:12px}.topbar .container{min-height:34px;display:flex;align-items:center;justify-content:space-between}.topbar a{color:#fff}
.site-header{background:#fff;border-bottom:1px solid var(--border)}.brand-row{min-height:104px;display:flex;align-items:center;justify-content:space-between;gap:18px}.site-brand{display:flex;align-items:center;gap:14px;color:var(--navy);text-decoration:none}.site-brand .custom-logo{width:auto;max-height:82px}.brand-text{min-width:0}.site-title{display:block;color:var(--navy);font-size:clamp(18px,2.2vw,28px);font-weight:700;line-height:1.18}.site-tagline{display:block;color:var(--muted);font-size:13px;margin-top:4px}.site-hindi{display:block;color:#333;font-size:14px;line-height:1.25}
.nav-toggle{display:none}.main-nav{background:var(--navy)}.main-nav ul{list-style:none;margin:0;padding:0;display:flex;align-items:stretch}.main-nav li{position:relative}.main-nav a{display:block;color:#fff;padding:10px 12px;font-size:13px;white-space:nowrap}.main-nav a:hover,.main-nav .current-menu-item>a,.main-nav .current_page_item>a{background:var(--blue);text-decoration:none}.main-nav .sub-menu{display:none;position:absolute;left:0;top:100%;min-width:225px;background:var(--navy);z-index:50;box-shadow:var(--shadow)}.main-nav li:hover>.sub-menu,.main-nav li:focus-within>.sub-menu{display:block}.main-nav .sub-menu .sub-menu{left:100%;top:0}
.breadcrumbs{background:#f8fafc;border-bottom:1px solid var(--border);font-size:12px;color:var(--muted);padding:7px 0}
.hero{background:#eef6fb;border-bottom:1px solid var(--border)}.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:22px;padding:24px 0}.hero-main{min-height:250px;background:#dfeef7;border-radius:5px;display:flex;align-items:flex-end;overflow:hidden;position:relative}.hero-main img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.hero-overlay{position:relative;width:100%;padding:20px;background:linear-gradient(transparent,rgba(0,0,0,.72));color:#fff}.hero-overlay h1{margin:0 0 5px;font-size:clamp(24px,3.3vw,39px);line-height:1.1}.hero-overlay p{margin:0}.hero-placeholder{padding:35px;background:linear-gradient(135deg,#dbeef8,#f7fbfd);min-height:250px;display:flex;flex-direction:column;justify-content:center}.hero-placeholder h1{color:var(--navy);margin:0 0 7px;font-size:34px}.director{background:#fff;border:1px solid var(--border);border-radius:5px;box-shadow:var(--shadow);padding:16px}.director h2,.section-title{color:var(--navy);margin:0 0 12px}.director img{width:100%;height:155px;object-fit:cover;border-radius:4px}.director h3{font-size:16px;margin:10px 0 3px}
.section{padding:28px 0}.section.alt{background:var(--light)}.section-title{font-size:20px;border-bottom:3px solid var(--gold);padding-bottom:6px}
.home-columns{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px}.panel{border:1px solid var(--border);background:#fff;border-radius:5px;box-shadow:var(--shadow);padding:15px}.notice-list,.category-list,.link-list{list-style:none;padding:0;margin:0}.notice-list li{padding:9px 0;border-bottom:1px solid var(--border);font-size:14px}.notice-list li:last-child{border-bottom:0}.notice-date{display:block;color:var(--muted);font-size:11px}.category-list li,.link-list li{padding:6px 0;border-bottom:1px solid var(--border);font-size:13px}.category-list li:last-child,.link-list li:last-child{border-bottom:0}
.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.info-card{border:1px solid var(--border);background:#fff;border-radius:5px;padding:17px;box-shadow:var(--shadow)}.info-card h3{margin:0 0 8px;color:var(--navy);font-size:18px}.info-card p{margin:0;color:var(--muted);font-size:14px}
.quick-links{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.quick-links a{display:block;padding:11px 12px;background:#fff;border:1px solid var(--border);border-left:4px solid var(--gold);border-radius:4px;font-size:13px}.quick-links a:hover{background:#f1f7fb;text-decoration:none}
.gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.gallery-grid a{display:block;overflow:hidden;border-radius:5px}.gallery-grid img{width:100%;height:150px;object-fit:cover;transition:transform .2s}.gallery-grid a:hover img{transform:scale(1.03)}
.management{font-size:14px;color:var(--text)}.management p{margin:0 0 10px}
.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px}.entry-title{color:var(--navy);font-size:32px;line-height:1.2}.entry-content h2,.entry-content h3{color:var(--navy)}.entry-content table{width:100%;border-collapse:collapse}.entry-content th,.entry-content td{border:1px solid var(--border);padding:8px}.sidebar .widget{border:1px solid var(--border);background:var(--light);padding:14px;margin-bottom:16px;border-radius:5px}.widget-title{color:var(--navy);font-size:17px;margin:0 0 9px}
.footer{background:#092f4e;color:#d8e6ef;padding:28px 0 13px}.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:25px}.footer h3{color:#fff;margin-top:0}.footer a{color:#d8e6ef}.footer-bottom{border-top:1px solid rgba(255,255,255,.18);margin-top:20px;padding-top:10px;font-size:11px;display:flex;justify-content:space-between}
.pagination{margin-top:22px}.pagination .page-numbers{display:inline-block;border:1px solid var(--border);padding:5px 9px;border-radius:4px;margin:2px}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:950px){.main-nav ul{flex-wrap:wrap}.main-nav a{padding:9px 9px}.hero-grid,.home-columns,.content-grid{grid-template-columns:1fr}.info-grid{grid-template-columns:repeat(2,1fr)}.quick-links{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.brand-row{min-height:80px}.site-brand .custom-logo{max-height:58px}.site-hindi{font-size:12px}.site-tagline{font-size:11px}.nav-toggle{display:block;border:1px solid var(--border);background:#fff;padding:8px 11px;border-radius:5px}.main-nav{display:none}.main-nav.is-open{display:block}.main-nav ul{display:block}.main-nav .sub-menu{position:static;box-shadow:none;padding-left:15px}.main-nav li:hover>.sub-menu{display:none}.main-nav li.menu-item-has-children.is-open>.sub-menu{display:block}.info-grid,.quick-links{grid-template-columns:1fr}.gallery-grid{grid-template-columns:repeat(2,1fr)}.footer-grid{grid-template-columns:1fr}.footer-bottom{display:block}}

/* RIMS v1.3 requested layout */
.site-header{background:#f2f7fb!important;border-bottom:1px solid #d7e2ea}
.brand-row{min-height:82px!important}
.site-brand{justify-content:flex-start!important;align-items:center!important}
.site-brand .custom-logo{max-height:56px!important;max-width:70px!important;width:auto!important}
.language-switcher{margin-left:auto;display:flex;gap:5px;align-items:center}
.language-switcher button{border:1px solid #c5d4df;background:#fff;color:#254861;border-radius:4px;padding:5px 9px;font-size:12px;font-weight:600;cursor:pointer}
.language-switcher button.active,.language-switcher button:hover{background:#1769a5;color:#fff;border-color:#1769a5}

/* Full-width carousel directly below main menu */
.rims-carousel{width:100%;background:#edf5fa;border-bottom:1px solid #d9e3eb}
.rims-carousel .container{width:100%;max-width:none;padding:0}
.carousel-shell{position:relative;overflow:hidden;border-radius:0;box-shadow:none}
.carousel-track{display:flex;transition:transform .45s ease}
.carousel-slide{min-width:100%;height:400px;position:relative;background:#dceaf2;display:flex;align-items:flex-end}
.carousel-slide img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.carousel-caption{position:relative;width:100%;padding:22px 5%;background:linear-gradient(transparent,rgba(0,0,0,.75));color:#fff;z-index:2}
.carousel-caption h2{margin:0 0 5px;font-size:clamp(20px,2.5vw,32px)}
.carousel-caption p{margin:0;font-size:14px}
.carousel-placeholder{min-width:100%;height:400px;display:flex;align-items:center;justify-content:center;background:#e7f1f6;color:#0a3a61;font-size:30px;font-weight:700}
.carousel-control{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:42px;height:42px;border:0;border-radius:50%;background:rgba(8,47,80,.78);color:#fff;font-size:28px;cursor:pointer}
.carousel-prev{left:18px}.carousel-next{right:18px}
.carousel-dots{position:absolute;bottom:13px;left:50%;transform:translateX(-50%);display:flex;gap:7px;z-index:6}
.carousel-dot{width:9px;height:9px;border:0;border-radius:50%;background:#fff;opacity:.65;padding:0;cursor:pointer}
.carousel-dot.active{opacity:1}

/* Four persons - NOT photo gallery */
.four-person-section{background:#fff;padding:30px 0}
.four-person-grid{width:min(calc(100% - 40px),1200px);margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.person-card{background:#fff;border:1px solid #d9e3eb;border-radius:7px;overflow:hidden;box-shadow:0 4px 16px rgba(7,48,80,.08);text-align:center}
.person-card img{display:block;width:100%;height:240px;object-fit:cover}
.person-placeholder{height:240px;background:#edf4f8;color:#607586;display:flex;align-items:center;justify-content:center;font-weight:600}
.person-card-body{padding:12px}
.person-card-id{font-size:11px;color:#b2872d;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.person-card-name{font-size:16px;font-weight:700;color:#0a3a61;margin-top:4px}
.person-card-role{font-size:12px;color:#657789;margin-top:3px}
.lang-hi{display:none}
body.lang-hindi .lang-en{display:none!important}
body.lang-hindi .lang-hi{display:block!important}

@media(max-width:1000px){
 .four-person-grid{grid-template-columns:repeat(2,1fr)}
 .carousel-slide,.carousel-placeholder{height:330px}
}
@media(max-width:700px){
 .brand-row{min-height:72px!important}
 .site-brand .custom-logo{max-height:48px!important;max-width:60px!important}
 .language-switcher{margin-left:8px}
 .carousel-slide,.carousel-placeholder{height:245px}
 .carousel-caption{padding:15px 40px}
 .carousel-caption h2{font-size:19px}
 .four-person-grid{grid-template-columns:repeat(2,1fr);width:calc(100% - 24px);gap:12px}
 .person-card img,.person-placeholder{height:185px}
}
@media(max-width:440px){
 .four-person-grid{grid-template-columns:1fr}
 .person-card img,.person-placeholder{height:260px}
 .carousel-slide,.carousel-placeholder{height:205px}
}

/* v1.4: bilingual title/tagline */
.lang-hi{display:none}
body.lang-hindi .lang-en{display:none!important}
body.lang-hindi .lang-hi{display:block!important}

/* v1.5: logo and site title form one left-aligned brand block */
.brand-row{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:16px!important}
.site-brand{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;margin:0!important}
.site-brand .custom-logo{display:block!important;flex:0 0 auto!important;width:auto!important;height:auto!important;max-width:68px!important;max-height:58px!important}
.site-brand .brand-text{display:block!important;text-align:left!important}
.site-title,.site-tagline{display:block!important;text-align:left!important}
.language-switcher{margin-left:auto!important;flex:0 0 auto!important}
@media(max-width:700px){
 .brand-row{gap:9px!important}
 .site-brand{gap:8px!important}
 .site-brand .custom-logo{max-width:54px!important;max-height:48px!important}
 .site-title{font-size:16px!important}
 .site-tagline{font-size:10px!important}
 .language-switcher button{padding:4px 6px!important;font-size:11px!important}
}
@media(max-width:430px){
 .brand-row{align-items:flex-start!important;padding-top:10px;padding-bottom:10px}
 .language-switcher{margin-left:4px!important}
 .site-brand .custom-logo{max-width:48px!important;max-height:42px!important}
 .site-title{font-size:14px!important}
 .site-tagline{font-size:9px!important}
}

/* =========================================================
   RIMS Modern Government v1.6
   Homepage design based on the supplied RIMS reference image
   ========================================================= */
:root{
  --rims-blue:#08385f;
  --rims-blue-dark:#062d4c;
  --rims-blue-light:#eaf3f8;
  --rims-accent:#f0a400;
  --rims-text:#243746;
  --rims-muted:#637789;
  --rims-border:#d8e3ea;
  --rims-bg:#f7fafc;
  --rims-white:#fff;
  --rims-max:1440px;
  --rims-shadow:0 3px 14px rgba(6,45,76,.09);
}

/* Global full-width structure */
html,body{margin:0;padding:0;max-width:100%;overflow-x:hidden}
body{font-family:Arial,"Noto Sans",sans-serif;color:var(--rims-text);background:#fff;line-height:1.5}
img{max-width:100%;height:auto}
a{color:#075b99;text-decoration:none}
a:hover{text-decoration:underline}
.container{width:min(calc(100% - 32px),var(--rims-max));margin-inline:auto}

/* Government utility bar */
.topbar{background:var(--rims-blue-dark);color:#fff;font-size:12px}
.topbar .container{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.topbar a{color:#fff}
.gov-left,.gov-right{display:flex;align-items:center;gap:16px}
.gov-right a{white-space:nowrap}

/* Institutional header */
.site-header{background:#f1f7fb!important;border-bottom:1px solid var(--rims-border)}
.brand-row{min-height:112px;display:flex;align-items:center;justify-content:flex-start;gap:20px;padding-top:12px;padding-bottom:12px}
.site-brand{display:flex;align-items:center;justify-content:flex-start;gap:13px;min-width:0;margin:0}
.site-brand .custom-logo{display:block;flex:0 0 auto;width:auto!important;max-width:92px!important;max-height:82px!important}
.brand-text{display:block;min-width:0;text-align:left}
.site-title{display:block;color:var(--rims-blue);font-size:clamp(20px,2.15vw,31px);font-weight:700;line-height:1.15;text-align:left}
.site-hindi{display:block;color:#233f54;font-size:clamp(17px,1.8vw,25px);font-weight:600;line-height:1.18}
.site-tagline{display:block;color:#526b7b;font-size:13px;line-height:1.3;margin-top:5px;text-align:left}
.header-emblems{display:flex;align-items:center;gap:12px;margin-left:auto;flex:0 0 auto}
.header-emblem{height:74px;width:auto;max-width:125px;object-fit:contain}
.emblem-separator{height:62px;width:1px;background:#c8d5de}
.language-search{display:flex;flex-direction:column;align-items:flex-end;gap:10px;margin-left:4px}
.language-switcher{display:flex;gap:5px}
.language-switcher button{border:1px solid #c7d5df;background:#fff;color:#244861;border-radius:4px;padding:6px 10px;font-size:12px;font-weight:700;cursor:pointer}
.language-switcher button.active,.language-switcher button:hover{background:#0b5f96;color:#fff;border-color:#0b5f96}
.header-search{display:flex;width:245px}
.header-search input{width:100%;height:36px;border:1px solid #c8d5de;border-right:0;border-radius:4px 0 0 4px;padding:0 11px;font-size:13px;background:#fff}
.header-search button{width:42px;border:1px solid #c8d5de;background:#fff;border-radius:0 4px 4px 0;color:#075b99;cursor:pointer;font-size:17px}

/* Main navigation */
.main-nav{background:var(--rims-blue)}
.main-nav .container{width:100%;max-width:none;padding:0}
.main-nav ul{list-style:none;margin:0 auto;padding:0;display:flex;align-items:stretch;justify-content:center}
.main-nav li{position:relative}
.main-nav a{display:block;color:#fff;padding:11px 12px;font-size:13px;line-height:1.2;white-space:nowrap}
.main-nav a:hover,.main-nav .current-menu-item>a,.main-nav .current_page_item>a{background:#0c659f;text-decoration:none}
.main-nav .sub-menu{display:none;position:absolute;left:0;top:100%;min-width:230px;background:var(--rims-blue-dark);z-index:100;box-shadow:var(--rims-shadow)}
.main-nav li:hover>.sub-menu,.main-nav li:focus-within>.sub-menu{display:block}
.main-nav .sub-menu .sub-menu{left:100%;top:0}
.nav-home>a{font-size:17px!important;padding-left:17px!important;padding-right:17px!important}
.nav-toggle{display:none}

/* Full-width hero carousel */
.rims-carousel{width:100%;background:#eaf3f8;border-bottom:1px solid var(--rims-border)}
.rims-carousel .container{width:100%;max-width:none;padding:0}
.carousel-shell{position:relative;overflow:hidden}
.carousel-track{display:flex;transition:transform .45s ease}
.carousel-slide{min-width:100%;height:min(43vw,470px);min-height:230px;position:relative;background:#dbeaf2;display:flex;align-items:flex-end}
.carousel-slide img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.carousel-caption{position:relative;width:100%;padding:25px 7%;background:linear-gradient(transparent,rgba(0,0,0,.72));color:#fff;z-index:2}
.carousel-caption h2{margin:0 0 4px;font-size:clamp(19px,2.6vw,34px)}
.carousel-caption p{margin:0;font-size:14px}
.carousel-placeholder{min-width:100%;height:min(43vw,470px);min-height:230px;display:flex;align-items:center;justify-content:center;background:#e5f0f5;color:var(--rims-blue);font-size:30px;font-weight:700}
.carousel-control{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:42px;height:42px;border:0;border-radius:50%;background:rgba(7,45,76,.72);color:#fff;font-size:28px;cursor:pointer}
.carousel-prev{left:20px}.carousel-next{right:20px}
.carousel-dots{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:flex;gap:7px;z-index:6}
.carousel-dot{width:10px;height:10px;border:0;border-radius:50%;background:#fff;opacity:.6;padding:0;cursor:pointer}
.carousel-dot.active{opacity:1}

/* Four persons row */
.four-person-section{background:#fff;padding:28px 0 25px}
.four-person-grid{width:min(calc(100% - 40px),1320px);margin:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.person-card{display:grid;grid-template-columns:120px 1fr;align-items:center;gap:15px;background:#fff;border:1px solid var(--rims-border);border-radius:5px;padding:11px;box-shadow:var(--rims-shadow);min-width:0}
.person-card img,.person-placeholder{display:block;width:120px;height:145px;object-fit:cover;border-radius:4px;background:#edf4f8}
.person-placeholder{display:flex;align-items:center;justify-content:center;color:#607586;font-size:12px}
.person-card-body{min-width:0}
.person-card-id{font-size:10px;color:#ae7e16;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.person-card-name{font-size:15px;font-weight:700;color:var(--rims-blue);margin-top:3px;line-height:1.25}
.person-card-role{font-size:12px;color:#4e5f6d;margin-top:7px}

/* Three main information panels */
.home-panels{padding:8px 0 30px;background:#fff}
.home-panels-grid{width:min(calc(100% - 40px),1320px);margin:auto;display:grid;grid-template-columns:1.12fr 1fr 1fr;gap:18px}
.home-panel{border:1px solid var(--rims-border);border-radius:5px;background:#fff;box-shadow:var(--rims-shadow);overflow:hidden}
.home-panel-heading{margin:0;padding:12px 14px;background:#f3f7fa;border-bottom:1px solid var(--rims-border);color:var(--rims-blue);font-size:18px}
.home-panel-body{padding:8px 14px}
.notice-row{display:grid;grid-template-columns:1fr auto;gap:10px;padding:10px 0;border-bottom:1px solid #e7edf1;font-size:13px}
.notice-row:last-child{border-bottom:0}
.notice-row a{color:#173f60}
.notice-date{display:block;color:#687b8b;font-size:11px;margin-top:3px}
.notice-new{display:inline-block;margin-left:6px;padding:1px 4px;border-radius:3px;background:#e52323;color:#fff;font-size:9px;font-weight:700}
.quick-link-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.quick-link{border:1px solid #e1e9ee;border-radius:4px;padding:10px;text-align:center;color:#214a67;font-size:12px;background:#fbfdfe}
.quick-link:hover{background:#eef6fa;text-decoration:none}
.event-row{display:grid;grid-template-columns:52px 1fr;gap:10px;padding:9px 0;border-bottom:1px solid #e7edf1}
.event-row:last-child{border-bottom:0}
.event-date{border:1px solid #cbd8e1;border-radius:4px;text-align:center;overflow:hidden;background:#fff}
.event-month{background:var(--rims-blue);color:#fff;font-size:10px;font-weight:700;padding:3px}
.event-day{font-size:19px;color:var(--rims-blue);font-weight:700;padding:4px}
.event-title{font-size:13px;color:#21435b;font-weight:600}
.event-meta{font-size:10px;color:#748593;margin-top:3px}

/* General content */
.section{padding:28px 0}
.section.alt{background:var(--rims-bg)}
.section-title{color:var(--rims-blue);margin:0 0 13px;border-bottom:3px solid var(--rims-accent);padding-bottom:6px;font-size:21px}
.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px}
.entry-title{color:var(--rims-blue);font-size:32px;line-height:1.2}
.entry-content h2,.entry-content h3{color:var(--rims-blue)}
.entry-content table{width:100%;border-collapse:collapse}
.entry-content th,.entry-content td{border:1px solid var(--rims-border);padding:8px}

/* Footer */
.footer{background:#073353;color:#dbe8ef;padding:30px 0 14px}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:26px}
.footer h3{color:#fff;margin-top:0}
.footer a{color:#dbe8ef}
.footer-bottom{border-top:1px solid rgba(255,255,255,.18);margin-top:20px;padding-top:10px;font-size:11px;display:flex;justify-content:space-between}

/* Language switching */
.lang-hi{display:none}
body.lang-hindi .lang-en{display:none!important}
body.lang-hindi .lang-hi{display:block!important}

/* Responsive */
@media(max-width:1180px){
 .brand-row{gap:12px}
 .site-brand .custom-logo{max-width:72px!important;max-height:66px!important}
 .header-emblem{height:58px;max-width:100px}
 .header-search{width:190px}
 .main-nav a{padding-left:9px;padding-right:9px;font-size:12px}
 .four-person-grid{grid-template-columns:repeat(2,1fr)}
 .home-panels-grid{grid-template-columns:1fr 1fr}
 .home-panel:last-child{grid-column:1/-1}
}
@media(max-width:800px){
 .topbar .container{min-height:32px}
 .gov-left span:nth-child(2),.gov-right a:first-child{display:none}
 .brand-row{align-items:center;flex-wrap:wrap;padding:10px 0}
 .site-brand{flex:1 1 auto;min-width:0}
 .header-emblems{order:3;width:100%;justify-content:flex-end;margin-left:0}
 .header-emblem{height:48px}
 .emblem-separator{height:42px}
 .language-search{margin-left:auto}
 .header-search{display:none}
 .main-nav{display:none}
 .main-nav.is-open{display:block}
 .main-nav .container{width:100%}
 .main-nav ul{display:block}
 .main-nav a{padding:10px 14px}
 .main-nav .sub-menu{position:static;box-shadow:none;padding-left:15px}
 .main-nav li:hover>.sub-menu{display:none}
 .main-nav li.menu-item-has-children.is-open>.sub-menu{display:block}
 .nav-toggle{display:block;margin-left:auto;border:1px solid #c5d5df;background:#fff;color:#244861;border-radius:4px;padding:7px 10px}
 .carousel-slide,.carousel-placeholder{height:300px}
 .home-panels-grid{grid-template-columns:1fr}
 .home-panel:last-child{grid-column:auto}
}
@media(max-width:600px){
 .container{width:calc(100% - 22px)}
 .topbar .container{font-size:10px}
 .brand-row{display:grid;grid-template-columns:1fr auto;gap:8px}
 .site-brand .custom-logo{max-width:54px!important;max-height:50px!important}
 .site-title{font-size:16px}
 .site-hindi{font-size:14px}
 .site-tagline{font-size:10px}
 .language-search{grid-column:2;grid-row:1}
 .header-emblems{grid-column:1/-1;grid-row:2;justify-content:center}
 .four-person-grid{width:calc(100% - 22px);grid-template-columns:1fr;gap:12px}
 .person-card{grid-template-columns:100px 1fr}
 .person-card img,.person-placeholder{width:100px;height:120px}
 .carousel-slide,.carousel-placeholder{height:220px}
 .carousel-caption{padding:15px 40px}
 .carousel-caption h2{font-size:18px}
 .carousel-caption p{font-size:11px}
 .carousel-control{width:34px;height:34px;font-size:22px}
 .quick-link-grid{grid-template-columns:1fr 1fr}
 .footer-grid{grid-template-columns:1fr}
 .footer-bottom{display:block}
}
@media(max-width:390px){
 .person-card{grid-template-columns:85px 1fr}
 .person-card img,.person-placeholder{width:85px;height:105px}
 .quick-link-grid{grid-template-columns:1fr}
 .site-title{font-size:14px}
 .site-hindi{font-size:12px}
}


/* =========================================================
   RIMS v1.8 — compact extreme-left institutional header
   ========================================================= */

/* Full-width header; no centered max-width brand container */
.site-header .brand-row{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:6px 18px !important;
    min-height:74px !important;
    box-sizing:border-box !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:12px !important;
}

/* RIMS logo: genuinely small and pinned to the far left */
.site-header .site-brand{
    margin:0 !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    flex:0 0 auto !important;
    width:auto !important;
    max-width:none !important;
    gap:9px !important;
}

/* Prevent WordPress custom-logo wrapper from creating extra space */
.site-header .site-brand .custom-logo-link{
    display:block !important;
    width:52px !important;
    height:58px !important;
    flex:0 0 52px !important;
    margin:0 !important;
    padding:0 !important;
    line-height:0 !important;
}
.site-header .site-brand .custom-logo{
    display:block !important;
    width:52px !important;
    height:58px !important;
    max-width:52px !important;
    max-height:58px !important;
    object-fit:contain !important;
    margin:0 !important;
}

/* Title immediately beside the small logo */
.site-header .brand-text{
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    text-align:left !important;
}
.site-header .site-title{
    font-size:clamp(17px,1.75vw,25px) !important;
    line-height:1.12 !important;
    margin:0 !important;
    padding:0 !important;
    text-align:left !important;
}
.site-header .site-hindi{
    font-size:clamp(15px,1.55vw,22px) !important;
    line-height:1.12 !important;
    margin:1px 0 0 !important;
    text-align:left !important;
}
.site-header .site-tagline{
    font-size:11px !important;
    line-height:1.15 !important;
    margin:3px 0 0 !important;
    text-align:left !important;
}

/* Keep right-side logos compact */
.site-header .header-emblems{
    margin-left:auto !important;
    gap:7px !important;
    flex:0 0 auto !important;
}
.site-header .header-emblem{
    height:48px !important;
    max-height:48px !important;
    max-width:86px !important;
    width:auto !important;
    object-fit:contain !important;
}
.site-header .emblem-separator{
    height:40px !important;
}

/* Language/search area stays on the right without affecting the left brand */
.site-header .language-search{
    margin-left:10px !important;
    flex:0 0 auto !important;
}

/* Desktop: header must remain short */
@media(min-width:801px){
    .site-header .brand-row{min-height:74px !important;}
}

/* Tablet */
@media(max-width:800px){
    .site-header .brand-row{
        min-height:66px !important;
        padding:5px 12px !important;
        gap:8px !important;
    }
    .site-header .site-brand .custom-logo-link{
        width:46px !important;
        height:50px !important;
        flex-basis:46px !important;
    }
    .site-header .site-brand .custom-logo{
        width:46px !important;
        height:50px !important;
        max-width:46px !important;
        max-height:50px !important;
    }
    .site-header .site-title{font-size:16px !important;}
    .site-header .site-hindi{font-size:14px !important;}
    .site-header .site-tagline{font-size:9px !important;}
    .site-header .header-emblem{
        height:40px !important;
        max-height:40px !important;
        max-width:72px !important;
    }
}

/* Mobile: logo remains left, header stays compact */
@media(max-width:600px){
    .site-header .brand-row{
        display:flex !important;
        flex-wrap:wrap !important;
        align-items:center !important;
        min-height:60px !important;
        padding:5px 10px !important;
    }
    .site-header .site-brand{
        flex:1 1 auto !important;
        min-width:0 !important;
        max-width:calc(100% - 80px) !important;
    }
    .site-header .site-brand .custom-logo-link{
        width:40px !important;
        height:43px !important;
        flex-basis:40px !important;
    }
    .site-header .site-brand .custom-logo{
        width:40px !important;
        height:43px !important;
        max-width:40px !important;
        max-height:43px !important;
    }
    .site-header .site-title{font-size:14px !important;}
    .site-header .site-hindi{font-size:12px !important;}
    .site-header .site-tagline{font-size:8px !important;}
    .site-header .language-search{margin-left:auto !important;}
    .site-header .header-emblems{
        width:100% !important;
        margin:2px 0 0 !important;
        justify-content:flex-end !important;
    }
    .site-header .header-emblem{
        height:34px !important;
        max-height:34px !important;
        max-width:60px !important;
    }
    .site-header .emblem-separator{height:30px !important;}
}

/* Very small screens */
@media(max-width:390px){
    .site-header .site-brand{max-width:calc(100% - 70px) !important;}
    .site-header .site-title{font-size:13px !important;}
    .site-header .site-hindi{font-size:11px !important;}
    .site-header .site-tagline{font-size:7.5px !important;}
}

/* v1.9 bilingual primary/submenu labels */
.main-nav .menu-label{display:inline}
.main-nav .lang-hi{display:none}
body.lang-hindi .main-nav .lang-en{display:none!important}
body.lang-hindi .main-nav .lang-hi{display:inline!important}

/* RIMS v2.0 — ultra-compact institutional header */
.site-header .brand-row{
    width:100%!important;
    max-width:none!important;
    min-height:48px!important;
    height:48px!important;
    padding:3px 14px!important;
    margin:0!important;
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
}
.site-header .site-brand{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex:0 0 auto!important;
    width:auto!important;
    margin:0!important;
    padding:0!important;
    gap:7px!important;
}
.site-header .site-brand .custom-logo-link{
    display:block!important;
    width:30px!important;
    height:34px!important;
    flex:0 0 30px!important;
    margin:0!important;
    padding:0!important;
    line-height:0!important;
}
.site-header .site-brand .custom-logo{
    display:block!important;
    width:30px!important;
    height:34px!important;
    max-width:30px!important;
    max-height:34px!important;
    object-fit:contain!important;
    margin:0!important;
}
.site-header .brand-text{
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    text-align:left!important;
}
.site-header .site-title{
    font-size:clamp(13px,1.55vw,21px)!important;
    line-height:1.05!important;
    margin:0!important;
}
.site-header .site-hindi{
    font-size:clamp(11px,1.35vw,18px)!important;
    line-height:1.05!important;
    margin:0!important;
}
.site-header .site-tagline{
    font-size:9px!important;
    line-height:1.05!important;
    margin:2px 0 0!important;
}
.site-header .header-emblems{
    margin-left:auto!important;
    gap:5px!important;
}
.site-header .header-emblem{
    height:31px!important;
    max-height:31px!important;
    max-width:60px!important;
}
.site-header .emblem-separator{height:27px!important}
.site-header .language-search{
    margin-left:7px!important;
    gap:4px!important;
}
.site-header .language-switcher button{
    padding:3px 6px!important;
    font-size:10px!important;
}
.site-header .header-search{display:none!important}
.site-header .nav-toggle{
    padding:4px 7px!important;
    font-size:11px!important;
}

/* Tablet: logo approximately 23px */
@media(max-width:800px){
    .site-header .brand-row{
        min-height:40px!important;
        height:40px!important;
        padding:2px 10px!important;
        gap:6px!important;
    }
    .site-header .site-brand{gap:5px!important}
    .site-header .site-brand .custom-logo-link{
        width:23px!important;
        height:27px!important;
        flex-basis:23px!important;
    }
    .site-header .site-brand .custom-logo{
        width:23px!important;
        height:27px!important;
        max-width:23px!important;
        max-height:27px!important;
    }
    .site-header .site-title{font-size:12px!important}
    .site-header .site-hindi{font-size:10px!important}
    .site-header .site-tagline{font-size:7px!important;margin-top:1px!important}
    .site-header .header-emblem{
        height:25px!important;
        max-height:25px!important;
        max-width:48px!important;
    }
    .site-header .emblem-separator{height:22px!important}
}

/* Mobile: logo approximately 20px */
@media(max-width:600px){
    .site-header .brand-row{
        min-height:34px!important;
        height:34px!important;
        padding:2px 7px!important;
        gap:5px!important;
    }
    .site-header .site-brand{
        max-width:calc(100% - 68px)!important;
        gap:4px!important;
    }
    .site-header .site-brand .custom-logo-link{
        width:20px!important;
        height:23px!important;
        flex-basis:20px!important;
    }
    .site-header .site-brand .custom-logo{
        width:20px!important;
        height:23px!important;
        max-width:20px!important;
        max-height:23px!important;
    }
    .site-header .site-title{font-size:10px!important}
    .site-header .site-hindi{font-size:8.5px!important}
    .site-header .site-tagline{font-size:6px!important;margin-top:0!important}
    .site-header .language-search{margin-left:auto!important}
    .site-header .language-switcher button{padding:2px 4px!important;font-size:8px!important}
    .site-header .header-emblems{
        width:auto!important;
        margin:0 0 0 auto!important;
        justify-content:flex-end!important;
    }
    .site-header .header-emblem{
        height:20px!important;
        max-height:20px!important;
        max-width:38px!important;
    }
    .site-header .emblem-separator{height:18px!important}
    .site-header .nav-toggle{padding:3px 5px!important;font-size:9px!important}
}

/* Very small mobile screens */
@media(max-width:390px){
    .site-header .brand-row{
        min-height:31px!important;
        height:31px!important;
        padding:1px 5px!important;
    }
    .site-header .site-brand .custom-logo-link{
        width:20px!important;
        height:22px!important;
        flex-basis:20px!important;
    }
    .site-header .site-brand .custom-logo{
        width:20px!important;
        height:22px!important;
        max-width:20px!important;
        max-height:22px!important;
    }
    .site-header .site-title{font-size:9px!important}
    .site-header .site-hindi{font-size:7.5px!important}
    .site-header .site-tagline{display:none!important}
}

/* =========================================================
   RIMS v2.1 — header reconstruction from supplied screenshot
   ========================================================= */

/* WordPress admin bar is separate; never position the site header against it. */
html body .site-header{
    position:relative!important;
    z-index:50!important;
    overflow:visible!important;
}
html body .site-header .brand-row{
    width:100%!important;
    max-width:none!important;
    height:68px!important;
    min-height:68px!important;
    margin:0!important;
    padding:5px 18px!important;
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
    overflow:hidden!important;
}

/* Left logo block: hard dimensions prevent the source image from expanding. */
html body .site-header .site-brand{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex:0 0 auto!important;
    width:auto!important;
    height:58px!important;
    max-width:calc(100% - 300px)!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    gap:9px!important;
    overflow:hidden!important;
}
html body .site-header .site-brand .custom-logo-link{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 38px!important;
    width:38px!important;
    height:48px!important;
    max-width:38px!important;
    max-height:48px!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    line-height:0!important;
}
html body .site-header .site-brand .custom-logo-link img,
html body .site-header .site-brand .custom-logo{
    display:block!important;
    width:30px!important;
    height:42px!important;
    max-width:30px!important;
    max-height:42px!important;
    min-width:0!important;
    min-height:0!important;
    object-fit:contain!important;
    margin:0!important;
    padding:0!important;
}

/* Title is beside the logo and vertically centered; no overlap with nav. */
html body .site-header .brand-text{
    display:block!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    text-align:left!important;
    overflow:hidden!important;
}
html body .site-header .site-title{
    display:block!important;
    margin:0!important;
    padding:0!important;
    color:#08385f!important;
    font-size:20px!important;
    line-height:1.05!important;
    font-weight:700!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
html body .site-header .site-hindi{
    display:block!important;
    margin:1px 0 0!important;
    padding:0!important;
    color:#29465b!important;
    font-size:17px!important;
    line-height:1.05!important;
    font-weight:600!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
html body .site-header .site-tagline{
    display:block!important;
    margin:2px 0 0!important;
    padding:0!important;
    color:#526b7b!important;
    font-size:9px!important;
    line-height:1.05!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}

/* Right-side logos and controls are contained within the 68px header. */
html body .site-header .header-emblems{
    display:flex!important;
    align-items:center!important;
    flex:0 0 auto!important;
    height:48px!important;
    margin-left:auto!important;
    gap:5px!important;
}
html body .site-header .header-emblem{
    display:block!important;
    width:auto!important;
    height:38px!important;
    max-width:65px!important;
    max-height:38px!important;
    object-fit:contain!important;
}
html body .site-header .emblem-separator{
    height:32px!important;
    width:1px!important;
}
html body .site-header .language-search{
    display:flex!important;
    align-items:center!important;
    flex:0 0 auto!important;
    margin-left:5px!important;
}
html body .site-header .language-switcher{
    display:flex!important;
    gap:4px!important;
    align-items:center!important;
}
html body .site-header .language-switcher button{
    height:27px!important;
    padding:3px 7px!important;
    font-size:10px!important;
}

/* Navigation is a separate, clean bar below the header. */
html body .site-header .main-nav{
    position:relative!important;
    z-index:60!important;
    width:100%!important;
    min-height:39px!important;
    height:auto!important;
    clear:both!important;
    overflow:visible!important;
}
html body .site-header .main-nav ul{
    min-height:39px!important;
    align-items:stretch!important;
}
html body .site-header .main-nav a{
    padding:11px 10px!important;
    font-size:12px!important;
    line-height:1.15!important;
}

/* Do not allow the large original logo rules to win. */
html body .site-header .custom-logo,
html body .site-header .custom-logo-link{
    box-sizing:border-box!important;
}

/* Tablet */
@media(max-width:1100px){
    html body .site-header .brand-row{
        height:58px!important;
        min-height:58px!important;
        padding:4px 10px!important;
    }
    html body .site-header .site-brand{
        height:50px!important;
        max-width:calc(100% - 220px)!important;
    }
    html body .site-header .site-brand .custom-logo-link{
        flex-basis:30px!important;
        width:30px!important;
        height:40px!important;
        max-width:30px!important;
    }
    html body .site-header .site-brand .custom-logo-link img,
    html body .site-header .site-brand .custom-logo{
        width:23px!important;
        height:32px!important;
        max-width:23px!important;
        max-height:32px!important;
    }
    html body .site-header .site-title{font-size:16px!important}
    html body .site-header .site-hindi{font-size:14px!important}
    html body .site-header .site-tagline{font-size:8px!important}
    html body .site-header .header-emblem{height:32px!important;max-height:32px!important;max-width:52px!important}
    html body .site-header .main-nav a{padding:10px 7px!important;font-size:11px!important}
}

/* Mobile */
@media(max-width:700px){
    html body .site-header .brand-row{
        height:50px!important;
        min-height:50px!important;
        padding:3px 7px!important;
        gap:5px!important;
    }
    html body .site-header .site-brand{
        height:44px!important;
        max-width:calc(100% - 72px)!important;
        gap:5px!important;
    }
    html body .site-header .site-brand .custom-logo-link{
        flex-basis:25px!important;
        width:25px!important;
        height:34px!important;
        max-width:25px!important;
    }
    html body .site-header .site-brand .custom-logo-link img,
    html body .site-header .site-brand .custom-logo{
        width:20px!important;
        height:27px!important;
        max-width:20px!important;
        max-height:27px!important;
    }
    html body .site-header .site-title{font-size:12px!important}
    html body .site-header .site-hindi{font-size:10px!important}
    html body .site-header .site-tagline{font-size:6.5px!important}
    html body .site-header .header-emblems{display:none!important}
    html body .site-header .language-search{margin-left:auto!important}
    html body .site-header .language-switcher button{height:23px!important;padding:2px 5px!important;font-size:8px!important}
    html body .site-header .nav-toggle{display:block!important;margin-left:5px!important;padding:4px 6px!important;font-size:9px!important}
    html body .site-header .main-nav{
        min-height:0!important;
    }
    html body .site-header .main-nav ul{
        min-height:0!important;
    }
    html body .site-header .main-nav a{
        padding:9px 12px!important;
        font-size:11px!important;
    }
}

/* =========================================================
   RIMS v2.2 — reference-image homepage reconstruction
   ========================================================= */
:root{
 --rims-navy:#06385f;
 --rims-navy2:#052e4e;
 --rims-blue:#0a5f93;
 --rims-gold:#d59b20;
 --rims-line:#d7e2e9;
 --rims-bg:#f5f8fa;
 --rims-text:#1d3c54;
}

/* Header */
.site-header{background:#f7fafc!important;border-bottom:1px solid var(--rims-line)!important}
.site-header .brand-row{
 width:100%!important;max-width:none!important;
 min-height:110px!important;height:110px!important;
 padding:10px 28px!important;margin:0!important;
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 box-sizing:border-box!important;gap:20px!important;overflow:hidden!important
}
.site-header .site-brand{
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 width:auto!important;height:90px!important;max-width:none!important;
 flex:1 1 auto!important;gap:18px!important;margin:0!important;padding:0!important;overflow:hidden!important
}
.site-header .site-brand .custom-logo-link{
 display:flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 88px!important;width:88px!important;height:88px!important;
 max-width:88px!important;max-height:88px!important;overflow:hidden!important;
 margin:0!important;padding:0!important;line-height:0!important
}
.site-header .site-brand .custom-logo-link img,
.site-header .site-brand .custom-logo{
 display:block!important;width:82px!important;height:82px!important;
 max-width:82px!important;max-height:82px!important;object-fit:contain!important;margin:0!important
}
.site-header .brand-text{min-width:0!important;text-align:left!important;overflow:hidden!important}
.site-header .site-title{font-size:30px!important;line-height:1.08!important;font-weight:700!important;color:#123b68!important;white-space:nowrap!important;margin:0!important}
.site-header .site-hindi{font-size:25px!important;line-height:1.1!important;color:#25435a!important;white-space:nowrap!important;margin:1px 0 0!important}
.site-header .site-tagline{font-size:13px!important;line-height:1.2!important;color:#566b7b!important;white-space:nowrap!important;margin:6px 0 0!important}
.site-header .header-emblems{
 display:flex!important;align-items:center!important;gap:15px!important;
 margin-left:auto!important;flex:0 0 auto!important;height:90px!important
}
.site-header .header-emblem{
 width:auto!important;height:76px!important;max-height:76px!important;max-width:125px!important;object-fit:contain!important
}
.site-header .emblem-separator{height:70px!important;width:1px!important;background:#b9c8d2!important}
.site-header .language-search{
 display:flex!important;flex-direction:column!important;align-items:flex-end!important;
 justify-content:center!important;gap:12px!important;flex:0 0 auto!important;margin-left:8px!important
}
.site-header .language-switcher{display:flex!important;gap:7px!important}
.site-header .language-switcher button{
 height:40px!important;padding:7px 16px!important;border:1px solid #b8cbd8!important;
 border-radius:6px!important;background:#fff!important;color:#23455e!important;font-size:14px!important;font-weight:700!important
}
.site-header .language-switcher button.active{background:var(--rims-blue)!important;color:#fff!important;border-color:var(--rims-blue)!important}
.site-header .header-search{display:flex!important;width:255px!important;height:36px!important}
.site-header .header-search input{height:36px!important;font-size:13px!important}
.site-header .header-search button{height:36px!important}

/* Navigation */
.site-header .main-nav{background:var(--rims-navy)!important;min-height:45px!important}
.site-header .main-nav .primary-menu{min-height:45px!important;display:flex!important;align-items:stretch!important;justify-content:flex-start!important}
.site-header .main-nav a{
 font-size:13px!important;padding:14px 11px!important;line-height:1.1!important
}
.site-header .main-nav a:hover,.site-header .main-nav .current-menu-item>a{background:#0b659a!important}
.site-header .main-nav .nav-home>a{padding-left:20px!important;padding-right:20px!important;font-size:18px!important}

/* Carousel */
.rims-carousel{background:#fff!important}
.rims-carousel .carousel-slide{height:390px!important}
.rims-carousel .carousel-placeholder{height:390px!important}
.rims-carousel .carousel-caption{display:none!important}
.rims-carousel .carousel-control{width:46px!important;height:46px!important;background:rgba(0,0,0,.72)!important}
.rims-carousel .carousel-prev{left:24px!important}.rims-carousel .carousel-next{right:24px!important}
.rims-carousel .carousel-dots{bottom:14px!important}
.rims-carousel .carousel-dot{width:12px!important;height:12px!important}

/* Four-person cards exactly as a horizontal information strip */
.four-person-section{background:#f5f8fa!important;padding:10px 14px 16px!important}
.four-person-grid{
 width:100%!important;max-width:none!important;
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:18px!important;margin:0!important
}
.person-card{
 display:grid!important;grid-template-columns:140px minmax(0,1fr)!important;align-items:center!important;
 gap:15px!important;background:#fff!important;border:1px solid #dbe4e9!important;
 border-radius:7px!important;padding:13px!important;box-shadow:0 2px 10px rgba(6,48,76,.08)!important;
 min-width:0!important
}
.person-card img,.person-placeholder{
 width:140px!important;height:145px!important;object-fit:cover!important;border-radius:5px!important;background:#eef3f6!important
}
.person-card-body{min-width:0!important}
.person-card-id{font-size:12px!important;color:#607585!important;text-transform:none!important;letter-spacing:0!important}
.person-card-name{font-size:17px!important;line-height:1.3!important;color:#153e69!important;font-weight:700!important}
.person-card-role{font-size:13px!important;line-height:1.3!important;color:#394e60!important;margin-top:10px!important}

/* Lower information blocks */
.home-panels{padding:12px 14px 28px!important}
.home-panels-grid{width:100%!important;max-width:none!important;grid-template-columns:1.1fr 1fr 1fr!important;gap:18px!important}
.home-panel-heading{font-size:19px!important;background:#eef4f8!important;color:#123e60!important}
.section.alt{background:#f5f8fa!important}

/* Responsive */
@media(max-width:1250px){
 .site-header .brand-row{padding-left:18px!important;padding-right:18px!important;gap:12px!important}
 .site-header .site-title{font-size:25px!important}
 .site-header .site-hindi{font-size:21px!important}
 .site-header .site-tagline{font-size:11px!important}
 .site-header .site-brand .custom-logo-link{flex-basis:72px!important;width:72px!important;height:76px!important}
 .site-header .site-brand .custom-logo-link img,.site-header .site-brand .custom-logo{width:68px!important;height:68px!important}
 .site-header .header-emblem{height:62px!important;max-height:62px!important;max-width:105px!important}
 .site-header .header-search{width:190px!important}
 .person-card{grid-template-columns:105px minmax(0,1fr)!important}
 .person-card img,.person-placeholder{width:105px!important;height:125px!important}
}
@media(max-width:1000px){
 .site-header .brand-row{height:92px!important;min-height:92px!important}
 .site-header .site-brand{height:76px!important;gap:10px!important}
 .site-header .site-brand .custom-logo-link{flex-basis:52px!important;width:52px!important;height:60px!important}
 .site-header .site-brand .custom-logo-link img,.site-header .site-brand .custom-logo{width:48px!important;height:52px!important}
 .site-header .site-title{font-size:20px!important}.site-header .site-hindi{font-size:17px!important}
 .site-header .site-tagline{font-size:9px!important}
 .site-header .header-emblems{height:70px!important;gap:8px!important}
 .site-header .header-emblem{height:48px!important;max-height:48px!important;max-width:75px!important}
 .site-header .language-search{display:none!important}
 .site-header .main-nav a{font-size:11px!important;padding:11px 7px!important}
 .rims-carousel .carousel-slide,.rims-carousel .carousel-placeholder{height:310px!important}
 .four-person-grid{grid-template-columns:repeat(2,1fr)!important}
 .home-panels-grid{grid-template-columns:1fr 1fr!important}
 .home-panel:last-child{grid-column:1/-1}
}
@media(max-width:650px){
 .site-header .brand-row{height:70px!important;min-height:70px!important;padding:5px 9px!important}
 .site-header .site-brand{height:60px!important;gap:7px!important}
 .site-header .site-brand .custom-logo-link{flex-basis:40px!important;width:40px!important;height:48px!important}
 .site-header .site-brand .custom-logo-link img,.site-header .site-brand .custom-logo{width:36px!important;height:42px!important}
 .site-header .site-title{font-size:15px!important}.site-header .site-hindi{font-size:12px!important}
 .site-header .site-tagline{font-size:7px!important;margin-top:2px!important}
 .site-header .header-emblems{display:none!important}
 .site-header .language-search{display:flex!important;margin-left:auto!important}
 .site-header .language-switcher button{height:27px!important;padding:3px 7px!important;font-size:9px!important}
 .site-header .main-nav{display:none!important}
 .site-header .nav-toggle{display:block!important;margin-left:5px!important}
 .rims-carousel .carousel-slide,.rims-carousel .carousel-placeholder{height:220px!important}
 .four-person-section{padding:9px!important}
 .four-person-grid{grid-template-columns:1fr!important;gap:10px!important}
 .person-card{grid-template-columns:95px 1fr!important}
 .person-card img,.person-placeholder{width:95px!important;height:110px!important}
 .home-panels{padding:10px 9px 20px!important}
 .home-panels-grid{grid-template-columns:1fr!important}
 .home-panel:last-child{grid-column:auto}
}

/* =========================================================
   RIMS v2.3 — hard-contained header logo
   Based on the supplied staging screenshot
   ========================================================= */

/* Keep the institutional header physically separate from admin bar/topbar/nav */
body .site-header{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
}
body .site-header .brand-row{
    position:relative!important;
    width:100%!important;
    max-width:none!important;
    height:90px!important;
    min-height:90px!important;
    max-height:90px!important;
    margin:0!important;
    padding:6px 18px!important;
    box-sizing:border-box!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:12px!important;
    overflow:hidden!important;
}

/* The brand itself is a fixed-height flex row. */
body .site-header .site-brand{
    position:relative!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:auto!important;
    height:78px!important;
    min-height:78px!important;
    max-height:78px!important;
    flex:1 1 auto!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    gap:10px!important;
    overflow:hidden!important;
}

/* WordPress wrapper: hard box, cannot grow. */
body .site-header .site-brand > .custom-logo-link{
    position:relative!important;
    display:block!important;
    flex:0 0 54px!important;
    width:54px!important;
    min-width:54px!important;
    max-width:54px!important;
    height:70px!important;
    min-height:70px!important;
    max-height:70px!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    line-height:0!important;
}

/* Actual image: hard pixel dimensions. */
body .site-header .site-brand > .custom-logo-link > img.custom-logo,
body .site-header .site-brand > .custom-logo-link > img{
    position:static!important;
    display:block!important;
    width:50px!important;
    min-width:50px!important;
    max-width:50px!important;
    height:62px!important;
    min-height:62px!important;
    max-height:62px!important;
    margin:4px 0 0!important;
    padding:0!important;
    object-fit:contain!important;
    object-position:left center!important;
}

/* Text block */
body .site-header .brand-text{
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:flex-start!important;
    min-width:0!important;
    max-width:100%!important;
    height:70px!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    text-align:left!important;
}
body .site-header .brand-text .site-title{
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    font-size:25px!important;
    line-height:1.08!important;
    font-weight:700!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
body .site-header .brand-text .site-hindi{
    display:block!important;
    width:100%!important;
    margin:1px 0 0!important;
    padding:0!important;
    font-size:21px!important;
    line-height:1.08!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
body .site-header .brand-text .site-tagline{
    display:block!important;
    width:100%!important;
    margin:4px 0 0!important;
    padding:0!important;
    font-size:10px!important;
    line-height:1.05!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}

/* Prominent right logos: Azadi FIRST, then Swachhata */
body .site-header .header-emblems{
    display:flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:flex-end!important;
    height:78px!important;
    margin-left:auto!important;
    gap:10px!important;
    overflow:hidden!important;
}
body .site-header .header-emblems .header-emblem{
    display:block!important;
    width:auto!important;
    height:62px!important;
    min-height:62px!important;
    max-height:62px!important;
    max-width:110px!important;
    object-fit:contain!important;
}
body .site-header .header-emblems .emblem-separator{
    display:block!important;
    width:1px!important;
    height:52px!important;
    background:#c2d0d8!important;
}

/* Language control */
body .site-header .language-search{
    display:flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:center!important;
    margin-left:8px!important;
}
body .site-header .language-switcher button{
    height:30px!important;
    padding:4px 9px!important;
    font-size:11px!important;
}

/* Navigation is never allowed to overlap the header */
body .site-header .main-nav{
    position:relative!important;
    z-index:100!important;
    width:100%!important;
    clear:both!important;
    overflow:visible!important;
    min-height:45px!important;
}
body .site-header .main-nav .primary-menu{
    min-height:45px!important;
    height:auto!important;
}
body .site-header .main-nav a{
    padding:13px 10px!important;
    line-height:1.15!important;
}

/* IMPORTANT: do not use the site logo as a carousel fallback.
   The previous screenshot showed the RIMS crest filling the carousel. */
.rims-carousel .carousel-placeholder{
    height:390px!important;
    min-height:390px!important;
    background:#eaf2f6!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
}
.rims-carousel .carousel-placeholder span{
    font-size:28px!important;
    color:#174766!important;
}

/* If no person photo is configured, show a neutral placeholder,
   never a recently uploaded logo. */
.person-placeholder{
    background:#edf3f6!important;
    color:#6b7e8b!important;
}

/* Tablet */
@media(max-width:1100px){
    body .site-header .brand-row{
        height:90px!important;
        min-height:90px!important;
        max-height:90px!important;
        padding:6px 12px!important;
    }
    body .site-header .site-brand{
        height:76px!important;
        min-height:76px!important;
        max-height:76px!important;
    }
    body .site-header .site-brand > .custom-logo-link{
        flex-basis:42px!important;width:42px!important;min-width:42px!important;max-width:42px!important;
        height:58px!important;min-height:58px!important;max-height:58px!important;
    }
    body .site-header .site-brand > .custom-logo-link > img.custom-logo,
    body .site-header .site-brand > .custom-logo-link > img{
        width:38px!important;min-width:38px!important;max-width:38px!important;
        height:48px!important;min-height:48px!important;max-height:48px!important;
    }
    body .site-header .brand-text{height:60px!important}
    body .site-header .brand-text .site-title{font-size:20px!important}
    body .site-header .brand-text .site-hindi{font-size:17px!important}
    body .site-header .brand-text .site-tagline{font-size:8px!important}
    body .site-header .header-emblem{height:52px!important;max-height:52px!important;max-width:85px!important}
    body .site-header .language-search{display:none!important}
}

/* Mobile */
@media(max-width:650px){
    body .site-header .brand-row{
        height:72px!important;
        min-height:72px!important;
        max-height:72px!important;
        padding:4px 8px!important;
        gap:6px!important;
    }
    body .site-header .site-brand{
        height:62px!important;
        min-height:62px!important;
        max-height:62px!important;
        gap:6px!important;
        max-width:calc(100% - 65px)!important;
    }
    body .site-header .site-brand > .custom-logo-link{
        flex-basis:28px!important;width:28px!important;min-width:28px!important;max-width:28px!important;
        height:44px!important;min-height:44px!important;max-height:44px!important;
    }
    body .site-header .site-brand > .custom-logo-link > img.custom-logo,
    body .site-header .site-brand > .custom-logo-link > img{
        width:24px!important;min-width:24px!important;max-width:24px!important;
        height:34px!important;min-height:34px!important;max-height:34px!important;
    }
    body .site-header .brand-text{height:52px!important}
    body .site-header .brand-text .site-title{font-size:13px!important}
    body .site-header .brand-text .site-hindi{font-size:11px!important}
    body .site-header .brand-text .site-tagline{font-size:6.5px!important;margin-top:2px!important}
    body .site-header .header-emblems{display:none!important}
    body .site-header .language-search{display:flex!important;margin-left:auto!important}
    body .site-header .language-switcher button{height:24px!important;padding:3px 6px!important;font-size:8px!important}
    body .site-header .nav-toggle{display:block!important;padding:4px 6px!important;font-size:9px!important}
    .rims-carousel .carousel-placeholder{height:220px!important;min-height:220px!important}
}

/* =========================================================
   RIMS v2.4 — proportional logo/header sizing
   The logo is contained inside its own box; the header height
   is sized around that box so the crest can never escape.
   ========================================================= */

body .site-header{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
}

body .site-header .brand-row{
    width:100%!important;
    max-width:none!important;
    height:100px!important;
    min-height:100px!important;
    max-height:100px!important;
    box-sizing:border-box!important;
    margin:0!important;
    padding:8px 18px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:14px!important;
    overflow:hidden!important;
}

/* Logo container. The image is centered inside this box and cannot overflow. */
body .site-header .site-brand{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
    height:84px!important;
    max-height:84px!important;
    margin:0!important;
    padding:0!important;
    gap:12px!important;
    overflow:hidden!important;
}

body .site-header .site-brand > .custom-logo-link{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 72px!important;
    width:72px!important;
    min-width:72px!important;
    max-width:72px!important;
    height:84px!important;
    min-height:84px!important;
    max-height:84px!important;
    box-sizing:border-box!important;
    margin:0!important;
    padding:2px!important;
    overflow:hidden!important;
    line-height:0!important;
}

body .site-header .site-brand > .custom-logo-link > img.custom-logo,
body .site-header .site-brand > .custom-logo-link > img{
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:66px!important;
    max-height:78px!important;
    min-width:0!important;
    min-height:0!important;
    object-fit:contain!important;
    object-position:center!important;
    margin:0!important;
    padding:0!important;
}

/* Title block */
body .site-header .brand-text{
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:flex-start!important;
    flex:1 1 auto!important;
    min-width:0!important;
    height:78px!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    text-align:left!important;
}

body .site-header .brand-text .site-title{
    width:100%!important;
    margin:0!important;
    padding:0!important;
    font-size:27px!important;
    line-height:1.08!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}

body .site-header .brand-text .site-hindi{
    width:100%!important;
    margin:2px 0 0!important;
    padding:0!important;
    font-size:22px!important;
    line-height:1.08!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}

body .site-header .brand-text .site-tagline{
    width:100%!important;
    margin:5px 0 0!important;
    padding:0!important;
    font-size:10px!important;
    line-height:1.05!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}

/* Right-side logos: contained in their own area */
body .site-header .header-emblems{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    flex:0 0 auto!important;
    height:84px!important;
    max-height:84px!important;
    margin-left:auto!important;
    gap:10px!important;
    overflow:hidden!important;
}

body .site-header .header-emblems .header-emblem{
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:105px!important;
    max-height:68px!important;
    object-fit:contain!important;
    margin:0!important;
}

body .site-header .header-emblems .emblem-separator{
    width:1px!important;
    height:58px!important;
    flex:0 0 1px!important;
}

/* Language controls stay vertically centered */
body .site-header .language-search{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 auto!important;
    margin-left:6px!important;
}

body .site-header .language-switcher button{
    height:29px!important;
    padding:4px 8px!important;
    font-size:11px!important;
}

/* Navigation starts only after the 100px header block */
body .site-header .main-nav{
    width:100%!important;
    min-height:45px!important;
    position:relative!important;
    clear:both!important;
    z-index:100!important;
    overflow:visible!important;
}

body .site-header .main-nav .primary-menu{
    min-height:45px!important;
    align-items:stretch!important;
}

body .site-header .main-nav a{
    padding:13px 10px!important;
    line-height:1.15!important;
}

/* Tablet */
@media(max-width:1100px){
    body .site-header .brand-row{
        height:86px!important;
        min-height:86px!important;
        max-height:86px!important;
        padding:6px 12px!important;
    }

    body .site-header .site-brand{
        height:74px!important;
        max-height:74px!important;
        gap:9px!important;
    }

    body .site-header .site-brand > .custom-logo-link{
        flex-basis:58px!important;
        width:58px!important;
        min-width:58px!important;
        max-width:58px!important;
        height:70px!important;
        min-height:70px!important;
        max-height:70px!important;
    }

    body .site-header .site-brand > .custom-logo-link > img.custom-logo,
    body .site-header .site-brand > .custom-logo-link > img{
        max-width:52px!important;
        max-height:64px!important;
    }

    body .site-header .brand-text{
        height:68px!important;
        max-height:68px!important;
    }

    body .site-header .brand-text .site-title{font-size:21px!important}
    body .site-header .brand-text .site-hindi{font-size:18px!important}
    body .site-header .brand-text .site-tagline{font-size:8px!important}

    body .site-header .header-emblems{
        height:70px!important;
        max-height:70px!important;
        gap:7px!important;
    }

    body .site-header .header-emblems .header-emblem{
        max-width:80px!important;
        max-height:54px!important;
    }

    body .site-header .header-emblems .emblem-separator{height:48px!important}
}

/* Mobile */
@media(max-width:650px){
    body .site-header .brand-row{
        height:66px!important;
        min-height:66px!important;
        max-height:66px!important;
        padding:4px 8px!important;
        gap:6px!important;
    }

    body .site-header .site-brand{
        height:58px!important;
        max-height:58px!important;
        gap:6px!important;
        max-width:calc(100% - 62px)!important;
    }

    body .site-header .site-brand > .custom-logo-link{
        flex-basis:38px!important;
        width:38px!important;
        min-width:38px!important;
        max-width:38px!important;
        height:54px!important;
        min-height:54px!important;
        max-height:54px!important;
        padding:1px!important;
    }

    body .site-header .site-brand > .custom-logo-link > img.custom-logo,
    body .site-header .site-brand > .custom-logo-link > img{
        max-width:34px!important;
        max-height:48px!important;
    }

    body .site-header .brand-text{
        height:52px!important;
        max-height:52px!important;
    }

    body .site-header .brand-text .site-title{font-size:13px!important}
    body .site-header .brand-text .site-hindi{font-size:11px!important}
    body .site-header .brand-text .site-tagline{font-size:6.5px!important;margin-top:2px!important}

    body .site-header .header-emblems{display:none!important}

    body .site-header .language-search{
        display:flex!important;
        margin-left:auto!important;
    }

    body .site-header .language-switcher button{
        height:24px!important;
        padding:3px 6px!important;
        font-size:8px!important;
    }

    body .site-header .nav-toggle{
        display:block!important;
        padding:4px 6px!important;
        font-size:9px!important;
    }
}

/* Very small mobile */
@media(max-width:390px){
    body .site-header .brand-row{
        height:60px!important;
        min-height:60px!important;
        max-height:60px!important;
    }

    body .site-header .site-brand > .custom-logo-link{
        flex-basis:32px!important;
        width:32px!important;
        min-width:32px!important;
        max-width:32px!important;
        height:48px!important;
        min-height:48px!important;
        max-height:48px!important;
    }

    body .site-header .site-brand > .custom-logo-link > img.custom-logo,
    body .site-header .site-brand > .custom-logo-link > img{
        max-width:29px!important;
        max-height:43px!important;
    }
}

/* =========================================================
   RIMS v2.5 — polished four-person photo cards
   ========================================================= */

/* Replace the awkward left-photo/large-empty-area appearance
   with a balanced government-institution profile card. */
.four-person-section{
    background:#f5f8fa!important;
    padding:20px 18px 24px!important;
}
.four-person-grid{
    width:100%!important;
    max-width:1380px!important;
    margin:0 auto!important;
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:20px!important;
}
.person-card{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    min-width:0!important;
    min-height:0!important;
    padding:0!important;
    overflow:hidden!important;
    background:#fff!important;
    border:1px solid #d8e2e8!important;
    border-radius:6px!important;
    box-shadow:0 2px 9px rgba(8,48,74,.10)!important;
}
.person-card img,
.person-card .person-placeholder{
    display:block!important;
    width:100%!important;
    height:250px!important;
    min-height:250px!important;
    max-height:250px!important;
    margin:0!important;
    padding:0!important;
    border-radius:0!important;
    object-fit:cover!important;
    object-position:center top!important;
    background:#edf3f6!important;
}
.person-card .person-placeholder{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    color:#718391!important;
    font-size:13px!important;
}
.person-card-body{
    width:100%!important;
    min-height:92px!important;
    box-sizing:border-box!important;
    padding:11px 13px 13px!important;
    text-align:center!important;
    background:#fff!important;
}
.person-card-name{
    font-size:16px!important;
    line-height:1.25!important;
    color:#123f68!important;
    font-weight:700!important;
    margin:0!important;
}
.person-card-role{
    font-size:12px!important;
    line-height:1.35!important;
    color:#4f6473!important;
    margin:5px 0 0!important;
}
.person-card-id{
    font-size:10px!important;
    line-height:1.2!important;
    color:#7a8b97!important;
    margin-top:7px!important;
}

/* If the card has no text configured, don't leave a blank white block. */
.person-card-body:has(.person-card-name:empty){
    display:none!important;
}

/* Keep four cards balanced on medium desktop sizes. */
@media(max-width:1250px){
    .four-person-grid{gap:15px!important}
    .person-card img,.person-card .person-placeholder{
        height:215px!important;min-height:215px!important;max-height:215px!important;
    }
}
@media(max-width:1000px){
    .four-person-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
    .person-card img,.person-card .person-placeholder{
        height:270px!important;min-height:270px!important;max-height:270px!important;
    }
}
@media(max-width:650px){
    .four-person-section{padding:12px 9px 18px!important}
    .four-person-grid{
        grid-template-columns:1fr!important;
        gap:12px!important;
        max-width:430px!important;
    }
    .person-card img,.person-card .person-placeholder{
        height:300px!important;min-height:300px!important;max-height:300px!important;
    }
}
@media(max-width:430px){
    .person-card img,.person-card .person-placeholder{
        height:270px!important;min-height:270px!important;max-height:270px!important;
    }
}

/* =========================================================
   RIMS v2.6 — corrected header DOM and proportional sizing
   ========================================================= */

/* The logo is no longer inside a nested anchor. */
body .site-header .brand-row{
    width:100%!important;
    height:100px!important;
    min-height:100px!important;
    max-height:100px!important;
    padding:8px 18px!important;
    margin:0!important;
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    gap:14px!important;
    overflow:hidden!important;
}

body .site-header .site-brand{
    display:flex!important;
    align-items:center!important;
    flex:1 1 auto!important;
    min-width:0!important;
    height:84px!important;
    margin:0!important;
    padding:0!important;
    gap:12px!important;
    overflow:hidden!important;
}

/* Dedicated logo box: the image can only occupy this rectangle. */
body .site-header .site-brand .logo-box{
    width:72px!important;
    min-width:72px!important;
    max-width:72px!important;
    height:84px!important;
    min-height:84px!important;
    max-height:84px!important;
    flex:0 0 72px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
}
body .site-header .site-brand .logo-box .custom-logo-link{
    display:flex!important;
    width:68px!important;
    height:78px!important;
    max-width:68px!important;
    max-height:78px!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
    margin:0!important;
    padding:0!important;
    line-height:0!important;
}
body .site-header .site-brand .logo-box .custom-logo-link .custom-logo,
body .site-header .site-brand .logo-box img.custom-logo{
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:64px!important;
    max-height:74px!important;
    min-width:0!important;
    min-height:0!important;
    object-fit:contain!important;
    object-position:center!important;
    margin:0!important;
    padding:0!important;
}

/* Title block is independent of the logo and cannot affect its size. */
body .site-header .site-brand .brand-text{
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:flex-start!important;
    flex:1 1 auto!important;
    min-width:0!important;
    height:78px!important;
    overflow:hidden!important;
    margin:0!important;
    padding:0!important;
}
body .site-header .site-brand .brand-text .site-title{
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    color:#123b68!important;
    font-size:27px!important;
    line-height:1.08!important;
    font-weight:700!important;
    text-decoration:none!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}
body .site-header .site-brand .brand-text .site-hindi{
    display:block!important;
    width:100%!important;
    margin:1px 0 0!important;
    font-size:22px!important;
    line-height:1.08!important;
    color:#25435a!important;
    font-weight:600!important;
    white-space:nowrap!important;
    overflow:hidden!important;
}
body .site-header .site-brand .brand-text .site-tagline{
    display:block!important;
    width:100%!important;
    margin:4px 0 0!important;
    font-size:10px!important;
    line-height:1.05!important;
    color:#566b7b!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}

/* Prominent emblems remain inside their own fixed-height area. */
body .site-header .header-emblems{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    flex:0 0 auto!important;
    height:84px!important;
    max-height:84px!important;
    margin-left:auto!important;
    gap:10px!important;
    overflow:hidden!important;
}
body .site-header .header-emblems .header-emblem{
    width:auto!important;
    height:auto!important;
    max-width:110px!important;
    max-height:70px!important;
    object-fit:contain!important;
    margin:0!important;
}
body .site-header .header-emblems .emblem-separator{
    width:1px!important;
    height:56px!important;
    background:#c2d0d8!important;
}

/* Navigation is below, never over the 100px header. */
body .site-header .main-nav{
    width:100%!important;
    min-height:45px!important;
    position:relative!important;
    clear:both!important;
    z-index:100!important;
}

/* Tablet */
@media(max-width:1100px){
    body .site-header .brand-row{
        height:86px!important;min-height:86px!important;max-height:86px!important;
        padding:6px 12px!important;
    }
    body .site-header .site-brand{height:74px!important}
    body .site-header .site-brand .logo-box{
        width:58px!important;min-width:58px!important;max-width:58px!important;
        height:72px!important;min-height:72px!important;max-height:72px!important;
        flex-basis:58px!important;
    }
    body .site-header .site-brand .logo-box .custom-logo-link{
        width:54px!important;height:66px!important;max-width:54px!important;max-height:66px!important;
    }
    body .site-header .site-brand .logo-box img.custom-logo{
        max-width:50px!important;max-height:62px!important;
    }
    body .site-header .brand-text{height:68px!important}
    body .site-header .brand-text .site-title{font-size:21px!important}
    body .site-header .brand-text .site-hindi{font-size:18px!important}
    body .site-header .brand-text .site-tagline{font-size:8px!important}
    body .site-header .header-emblem{max-width:82px!important;max-height:54px!important}
}

/* Mobile */
@media(max-width:650px){
    body .site-header .brand-row{
        height:68px!important;min-height:68px!important;max-height:68px!important;
        padding:4px 8px!important;gap:6px!important;
    }
    body .site-header .site-brand{
        height:60px!important;gap:6px!important;
        max-width:calc(100% - 62px)!important;
    }
    body .site-header .site-brand .logo-box{
        width:38px!important;min-width:38px!important;max-width:38px!important;
        height:56px!important;min-height:56px!important;max-height:56px!important;
        flex-basis:38px!important;
    }
    body .site-header .site-brand .logo-box .custom-logo-link{
        width:36px!important;height:50px!important;max-width:36px!important;max-height:50px!important;
    }
    body .site-header .site-brand .logo-box img.custom-logo{
        max-width:33px!important;max-height:46px!important;
    }
    body .site-header .brand-text{height:54px!important}
    body .site-header .brand-text .site-title{font-size:13px!important}
    body .site-header .brand-text .site-hindi{font-size:11px!important}
    body .site-header .brand-text .site-tagline{font-size:6.5px!important}
    body .site-header .header-emblems{display:none!important}
}

/* Remove any inherited image sizing that could make the crest escape. */
body .site-header .logo-box img{
    position:static!important;
    float:none!important;
}

/* =========================================================
   RIMS v2.7 — larger logo area, no horizontal clipping
   ========================================================= */

/* Desktop: give the crest enough physical space to display in full. */
body .site-header .brand-row{
    height:130px!important;
    min-height:130px!important;
    max-height:130px!important;
    padding:8px 18px!important;
    align-items:center!important;
    overflow:visible!important;
}

body .site-header .site-brand{
    height:114px!important;
    min-height:114px!important;
    max-height:114px!important;
    overflow:visible!important;
    flex-shrink:1!important;
}

body .site-header .site-brand .logo-box{
    flex:0 0 104px!important;
    width:104px!important;
    min-width:104px!important;
    max-width:104px!important;
    height:114px!important;
    min-height:114px!important;
    max-height:114px!important;
    overflow:visible!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
}

body .site-header .site-brand .logo-box .custom-logo-link{
    flex:0 0 100px!important;
    width:100px!important;
    min-width:100px!important;
    max-width:100px!important;
    height:108px!important;
    min-height:108px!important;
    max-height:108px!important;
    overflow:visible!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
}

body .site-header .site-brand .logo-box .custom-logo-link img.custom-logo,
body .site-header .site-brand .logo-box img.custom-logo{
    width:auto!important;
    height:auto!important;
    max-width:94px!important;
    max-height:102px!important;
    min-width:0!important;
    min-height:0!important;
    object-fit:contain!important;
    object-position:center!important;
    display:block!important;
    margin:0!important;
}

body .site-header .site-brand .brand-text{
    height:102px!important;
    min-height:102px!important;
    max-height:102px!important;
    overflow:hidden!important;
    justify-content:center!important;
}

body .site-header .site-brand .brand-text .site-title{
    font-size:28px!important;
    line-height:1.08!important;
}
body .site-header .site-brand .brand-text .site-hindi{
    font-size:23px!important;
    line-height:1.08!important;
}
body .site-header .site-brand .brand-text .site-tagline{
    font-size:10px!important;
    margin-top:5px!important;
}

body .site-header .header-emblems{
    height:112px!important;
    max-height:112px!important;
    overflow:visible!important;
}
body .site-header .header-emblems .header-emblem{
    max-width:125px!important;
    max-height:82px!important;
}
body .site-header .header-emblems .emblem-separator{
    height:66px!important;
}

/* Navigation remains completely below the enlarged header. */
body .site-header .main-nav{
    position:relative!important;
    z-index:100!important;
    clear:both!important;
}

/* Tablet */
@media(max-width:1100px){
    body .site-header .brand-row{
        height:112px!important;
        min-height:112px!important;
        max-height:112px!important;
        padding:7px 12px!important;
    }
    body .site-header .site-brand{
        height:96px!important;
        min-height:96px!important;
        max-height:96px!important;
    }
    body .site-header .site-brand .logo-box{
        flex-basis:82px!important;
        width:82px!important;
        min-width:82px!important;
        max-width:82px!important;
        height:96px!important;
        min-height:96px!important;
        max-height:96px!important;
    }
    body .site-header .site-brand .logo-box .custom-logo-link{
        flex-basis:78px!important;
        width:78px!important;
        min-width:78px!important;
        max-width:78px!important;
        height:90px!important;
        min-height:90px!important;
        max-height:90px!important;
    }
    body .site-header .site-brand .logo-box img.custom-logo{
        max-width:73px!important;
        max-height:84px!important;
    }
    body .site-header .site-brand .brand-text{
        height:88px!important;
        min-height:88px!important;
        max-height:88px!important;
    }
    body .site-header .brand-text .site-title{font-size:22px!important}
    body .site-header .brand-text .site-hindi{font-size:19px!important}
    body .site-header .brand-text .site-tagline{font-size:8px!important}
    body .site-header .header-emblems{
        height:94px!important;
        max-height:94px!important;
    }
    body .site-header .header-emblems .header-emblem{
        max-width:92px!important;
        max-height:62px!important;
    }
}

/* Mobile */
@media(max-width:650px){
    body .site-header .brand-row{
        height:86px!important;
        min-height:86px!important;
        max-height:86px!important;
        padding:5px 8px!important;
    }
    body .site-header .site-brand{
        height:76px!important;
        min-height:76px!important;
        max-height:76px!important;
        gap:6px!important;
    }
    body .site-header .site-brand .logo-box{
        flex-basis:52px!important;
        width:52px!important;
        min-width:52px!important;
        max-width:52px!important;
        height:76px!important;
        min-height:76px!important;
        max-height:76px!important;
    }
    body .site-header .site-brand .logo-box .custom-logo-link{
        flex-basis:50px!important;
        width:50px!important;
        min-width:50px!important;
        max-width:50px!important;
        height:70px!important;
        min-height:70px!important;
        max-height:70px!important;
    }
    body .site-header .site-brand .logo-box img.custom-logo{
        max-width:47px!important;
        max-height:66px!important;
    }
    body .site-header .site-brand .brand-text{
        height:68px!important;
        min-height:68px!important;
        max-height:68px!important;
    }
    body .site-header .brand-text .site-title{font-size:14px!important}
    body .site-header .brand-text .site-hindi{font-size:12px!important}
    body .site-header .brand-text .site-tagline{font-size:7px!important}
}

/* Very small mobile */
@media(max-width:390px){
    body .site-header .brand-row{
        height:78px!important;
        min-height:78px!important;
        max-height:78px!important;
    }
    body .site-header .site-brand .logo-box{
        flex-basis:46px!important;
        width:46px!important;
        min-width:46px!important;
        max-width:46px!important;
    }
    body .site-header .site-brand .logo-box .custom-logo-link{
        flex-basis:44px!important;
        width:44px!important;
        min-width:44px!important;
        max-width:44px!important;
    }
    body .site-header .site-brand .logo-box img.custom-logo{
        max-width:41px!important;
        max-height:59px!important;
    }
}

/* =========================================================
   RIMS Modern Government v2.8
   Final proportional header
   Reference: supplied RIMS staging screenshot
   ========================================================= */

/* Institutional header */
body .site-header{
    width:100%!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
}

body .site-header .brand-row{
    width:100%!important;
    max-width:none!important;
    height:150px!important;
    min-height:150px!important;
    max-height:150px!important;
    box-sizing:border-box!important;
    padding:10px 22px!important;
    margin:0!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:18px!important;
    overflow:hidden!important;
}

/* RIMS identity group */
body .site-header .site-brand{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex:1 1 auto!important;
    min-width:0!important;
    height:130px!important;
    margin:0!important;
    padding:0!important;
    gap:16px!important;
    overflow:visible!important;
}

/* Logo container */
body .site-header .site-brand .logo-box{
    flex:0 0 115px!important;
    width:115px!important;
    min-width:115px!important;
    max-width:115px!important;
    height:130px!important;
    min-height:130px!important;
    max-height:130px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
}

/* WordPress custom-logo wrapper */
body .site-header .site-brand .logo-box .custom-logo-link{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:110px!important;
    height:125px!important;
    max-width:110px!important;
    max-height:125px!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    line-height:0!important;
}

/* Actual image: preserve complete crest */
body .site-header .site-brand .logo-box img.custom-logo{
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:105px!important;
    max-height:120px!important;
    min-width:0!important;
    min-height:0!important;
    object-fit:contain!important;
    object-position:center!important;
    margin:0!important;
    padding:0!important;
}

/* Title */
body .site-header .site-brand .brand-text{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    flex:1 1 auto!important;
    min-width:0!important;
    height:120px!important;
    overflow:hidden!important;
    margin:0!important;
    padding:0!important;
    text-align:left!important;
}

body .site-header .brand-text .site-title{
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    color:#0a3e68!important;
    font-size:30px!important;
    line-height:1.08!important;
    font-weight:700!important;
    text-decoration:none!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}

body .site-header .brand-text .site-hindi{
    display:block!important;
    width:100%!important;
    margin:2px 0 0!important;
    color:#27475d!important;
    font-size:24px!important;
    line-height:1.1!important;
    font-weight:600!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}

body .site-header .brand-text .site-tagline{
    display:block!important;
    width:100%!important;
    margin:5px 0 0!important;
    color:#536a7b!important;
    font-size:11px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}

/* Campaign logos: Azadi first, then Swachhata */
body .site-header .header-emblems{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    flex:0 0 auto!important;
    height:125px!important;
    max-height:125px!important;
    margin-left:auto!important;
    gap:12px!important;
    overflow:hidden!important;
}

body .site-header .header-emblems .header-emblem{
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:130px!important;
    max-height:86px!important;
    object-fit:contain!important;
    margin:0!important;
}

body .site-header .header-emblems .emblem-separator{
    display:block!important;
    flex:0 0 1px!important;
    width:1px!important;
    height:70px!important;
    background:#c2cdd5!important;
}

/* Language/search */
body .site-header .language-search{
    display:flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:center!important;
    margin-left:7px!important;
}

body .site-header .language-switcher{
    display:flex!important;
    gap:6px!important;
}

body .site-header .language-switcher button{
    height:32px!important;
    padding:5px 10px!important;
    border-radius:4px!important;
    font-size:11px!important;
}

/* Main navigation is always below the 150px identity header */
body .site-header .main-nav{
    position:relative!important;
    z-index:100!important;
    width:100%!important;
    clear:both!important;
    min-height:45px!important;
    overflow:visible!important;
}

body .site-header .main-nav .primary-menu{
    min-height:45px!important;
    align-items:stretch!important;
}

body .site-header .main-nav a{
    padding:13px 10px!important;
    line-height:1.15!important;
    font-size:13px!important;
}

/* Government utility bar remains above the identity header */
body .topbar{
    position:relative!important;
    z-index:110!important;
}

/* Tablet */
@media(max-width:1100px){
    body .site-header .brand-row{
        height:125px!important;
        min-height:125px!important;
        max-height:125px!important;
        padding:8px 14px!important;
        gap:12px!important;
    }

    body .site-header .site-brand{
        height:108px!important;
        max-height:108px!important;
        gap:11px!important;
    }

    body .site-header .site-brand .logo-box{
        flex-basis:90px!important;
        width:90px!important;
        min-width:90px!important;
        max-width:90px!important;
        height:108px!important;
        min-height:108px!important;
        max-height:108px!important;
    }

    body .site-header .site-brand .logo-box .custom-logo-link{
        width:86px!important;
        height:103px!important;
        max-width:86px!important;
        max-height:103px!important;
    }

    body .site-header .site-brand .logo-box img.custom-logo{
        max-width:82px!important;
        max-height:98px!important;
    }

    body .site-header .brand-text{
        height:100px!important;
        max-height:100px!important;
    }

    body .site-header .brand-text .site-title{font-size:23px!important}
    body .site-header .brand-text .site-hindi{font-size:20px!important}
    body .site-header .brand-text .site-tagline{font-size:9px!important}

    body .site-header .header-emblems{
        height:105px!important;
        max-height:105px!important;
        gap:8px!important;
    }

    body .site-header .header-emblems .header-emblem{
        max-width:95px!important;
        max-height:66px!important;
    }

    body .site-header .header-emblems .emblem-separator{
        height:54px!important;
    }

    body .site-header .language-search{display:none!important}
}

/* Mobile */
@media(max-width:650px){
    body .site-header .brand-row{
        height:95px!important;
        min-height:95px!important;
        max-height:95px!important;
        padding:5px 8px!important;
        gap:7px!important;
    }

    body .site-header .site-brand{
        height:84px!important;
        max-height:84px!important;
        gap:7px!important;
        max-width:calc(100% - 65px)!important;
    }

    body .site-header .site-brand .logo-box{
        flex-basis:58px!important;
        width:58px!important;
        min-width:58px!important;
        max-width:58px!important;
        height:84px!important;
        min-height:84px!important;
        max-height:84px!important;
    }

    body .site-header .site-brand .logo-box .custom-logo-link{
        width:54px!important;
        height:78px!important;
        max-width:54px!important;
        max-height:78px!important;
    }

    body .site-header .site-brand .logo-box img.custom-logo{
        max-width:51px!important;
        max-height:74px!important;
    }

    body .site-header .brand-text{
        height:76px!important;
        max-height:76px!important;
    }

    body .site-header .brand-text .site-title{font-size:15px!important}
    body .site-header .brand-text .site-hindi{font-size:12.5px!important}
    body .site-header .brand-text .site-tagline{font-size:7px!important}

    body .site-header .header-emblems{display:none!important}

    body .site-header .language-search{
        display:flex!important;
        margin-left:auto!important;
    }

    body .site-header .language-switcher button{
        height:25px!important;
        padding:3px 6px!important;
        font-size:8px!important;
    }

    body .site-header .nav-toggle{
        display:block!important;
        padding:4px 6px!important;
        font-size:9px!important;
    }
}

/* =========================================================
   RIMS Modern Government v2.9
   Increased header height for complete logo visibility
   ========================================================= */

/* Desktop */
body .site-header .brand-row{
    height:180px!important;
    min-height:180px!important;
    max-height:180px!important;
    padding:12px 22px!important;
    align-items:center!important;
    overflow:visible!important;
}

body .site-header .site-brand{
    height:156px!important;
    min-height:156px!important;
    max-height:156px!important;
    overflow:visible!important;
    gap:18px!important;
}

body .site-header .site-brand .logo-box{
    flex:0 0 140px!important;
    width:140px!important;
    min-width:140px!important;
    max-width:140px!important;
    height:156px!important;
    min-height:156px!important;
    max-height:156px!important;
    overflow:hidden!important;
}

body .site-header .site-brand .logo-box .custom-logo-link{
    width:134px!important;
    height:150px!important;
    max-width:134px!important;
    max-height:150px!important;
    overflow:hidden!important;
}

body .site-header .site-brand .logo-box img.custom-logo{
    max-width:128px!important;
    max-height:144px!important;
    width:auto!important;
    height:auto!important;
    object-fit:contain!important;
    object-position:center!important;
}

body .site-header .site-brand .brand-text{
    height:140px!important;
    min-height:140px!important;
    max-height:140px!important;
}

body .site-header .brand-text .site-title{
    font-size:31px!important;
}
body .site-header .brand-text .site-hindi{
    font-size:25px!important;
}
body .site-header .brand-text .site-tagline{
    font-size:11px!important;
}

body .site-header .header-emblems{
    height:150px!important;
    max-height:150px!important;
}

body .site-header .header-emblems .header-emblem{
    max-width:140px!important;
    max-height:95px!important;
}

body .site-header .header-emblems .emblem-separator{
    height:76px!important;
}

/* Tablet */
@media(max-width:1100px){
    body .site-header .brand-row{
        height:150px!important;
        min-height:150px!important;
        max-height:150px!important;
        padding:10px 14px!important;
    }

    body .site-header .site-brand{
        height:130px!important;
        min-height:130px!important;
        max-height:130px!important;
    }

    body .site-header .site-brand .logo-box{
        flex-basis:110px!important;
        width:110px!important;
        min-width:110px!important;
        max-width:110px!important;
        height:130px!important;
        min-height:130px!important;
        max-height:130px!important;
    }

    body .site-header .site-brand .logo-box .custom-logo-link{
        width:104px!important;
        height:124px!important;
        max-width:104px!important;
        max-height:124px!important;
    }

    body .site-header .site-brand .logo-box img.custom-logo{
        max-width:98px!important;
        max-height:118px!important;
    }

    body .site-header .brand-text{
        height:118px!important;
        min-height:118px!important;
        max-height:118px!important;
    }

    body .site-header .brand-text .site-title{font-size:23px!important}
    body .site-header .brand-text .site-hindi{font-size:20px!important}
    body .site-header .brand-text .site-tagline{font-size:9px!important}
}

/* Mobile */
@media(max-width:650px){
    body .site-header .brand-row{
        height:110px!important;
        min-height:110px!important;
        max-height:110px!important;
        padding:6px 8px!important;
    }

    body .site-header .site-brand{
        height:96px!important;
        min-height:96px!important;
        max-height:96px!important;
    }

    body .site-header .site-brand .logo-box{
        flex-basis:68px!important;
        width:68px!important;
        min-width:68px!important;
        max-width:68px!important;
        height:96px!important;
        min-height:96px!important;
        max-height:96px!important;
    }

    body .site-header .site-brand .logo-box .custom-logo-link{
        width:64px!important;
        height:90px!important;
        max-width:64px!important;
        max-height:90px!important;
    }

    body .site-header .site-brand .logo-box img.custom-logo{
        max-width:60px!important;
        max-height:84px!important;
    }

    body .site-header .brand-text{
        height:86px!important;
        min-height:86px!important;
        max-height:86px!important;
    }

    body .site-header .brand-text .site-title{font-size:15px!important}
    body .site-header .brand-text .site-hindi{font-size:12.5px!important}
    body .site-header .brand-text .site-tagline{font-size:7px!important}
}

/* Very small mobile */
@media(max-width:390px){
    body .site-header .brand-row{
        height:100px!important;
        min-height:100px!important;
        max-height:100px!important;
    }

    body .site-header .site-brand .logo-box{
        flex-basis:60px!important;
        width:60px!important;
        min-width:60px!important;
        max-width:60px!important;
    }

    body .site-header .site-brand .logo-box .custom-logo-link{
        width:56px!important;
        max-width:56px!important;
    }

    body .site-header .site-brand .logo-box img.custom-logo{
        max-width:53px!important;
        max-height:76px!important;
    }
}

/* =========================================================
   RIMS Modern Government v3.0
   Extra-tall header for complete RIMS emblem visibility
   ========================================================= */

/* Desktop: substantially taller institutional header */
body .site-header .brand-row{
    height:220px!important;
    min-height:220px!important;
    max-height:220px!important;
    padding:14px 24px!important;
    align-items:center!important;
    overflow:visible!important;
}

body .site-header .site-brand{
    height:194px!important;
    min-height:194px!important;
    max-height:194px!important;
    gap:20px!important;
    overflow:visible!important;
}

body .site-header .site-brand .logo-box{
    flex:0 0 170px!important;
    width:170px!important;
    min-width:170px!important;
    max-width:170px!important;
    height:194px!important;
    min-height:194px!important;
    max-height:194px!important;
    overflow:hidden!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
}

body .site-header .site-brand .logo-box .custom-logo-link{
    width:164px!important;
    height:188px!important;
    max-width:164px!important;
    max-height:188px!important;
    overflow:hidden!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
}

body .site-header .site-brand .logo-box img.custom-logo{
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:158px!important;
    max-height:182px!important;
    object-fit:contain!important;
    object-position:center!important;
    margin:0!important;
    padding:0!important;
}

body .site-header .site-brand .brand-text{
    height:176px!important;
    min-height:176px!important;
    max-height:176px!important;
    justify-content:center!important;
}

body .site-header .brand-text .site-title{
    font-size:34px!important;
    line-height:1.08!important;
}

body .site-header .brand-text .site-hindi{
    font-size:28px!important;
    line-height:1.1!important;
}

body .site-header .brand-text .site-tagline{
    font-size:12px!important;
    margin-top:7px!important;
}

body .site-header .header-emblems{
    height:185px!important;
    max-height:185px!important;
    overflow:hidden!important;
    gap:14px!important;
}

body .site-header .header-emblems .header-emblem{
    max-width:155px!important;
    max-height:110px!important;
}

body .site-header .header-emblems .emblem-separator{
    height:86px!important;
}

/* Keep navigation completely below the enlarged header */
body .site-header .main-nav{
    position:relative!important;
    clear:both!important;
    z-index:100!important;
}

/* Tablet */
@media(max-width:1100px){
    body .site-header .brand-row{
        height:180px!important;
        min-height:180px!important;
        max-height:180px!important;
        padding:11px 16px!important;
    }

    body .site-header .site-brand{
        height:156px!important;
        min-height:156px!important;
        max-height:156px!important;
    }

    body .site-header .site-brand .logo-box{
        flex-basis:130px!important;
        width:130px!important;
        min-width:130px!important;
        max-width:130px!important;
        height:156px!important;
        min-height:156px!important;
        max-height:156px!important;
    }

    body .site-header .site-brand .logo-box .custom-logo-link{
        width:124px!important;
        height:150px!important;
        max-width:124px!important;
        max-height:150px!important;
    }

    body .site-header .site-brand .logo-box img.custom-logo{
        max-width:118px!important;
        max-height:144px!important;
    }

    body .site-header .brand-text{
        height:140px!important;
        min-height:140px!important;
        max-height:140px!important;
    }

    body .site-header .brand-text .site-title{font-size:25px!important}
    body .site-header .brand-text .site-hindi{font-size:21px!important}
    body .site-header .brand-text .site-tagline{font-size:9px!important}

    body .site-header .header-emblems{
        height:150px!important;
        max-height:150px!important;
    }

    body .site-header .header-emblems .header-emblem{
        max-width:105px!important;
        max-height:76px!important;
    }
}

/* Mobile */
@media(max-width:650px){
    body .site-header .brand-row{
        height:140px!important;
        min-height:140px!important;
        max-height:140px!important;
        padding:8px 10px!important;
    }

    body .site-header .site-brand{
        height:122px!important;
        min-height:122px!important;
        max-height:122px!important;
    }

    body .site-header .site-brand .logo-box{
        flex-basis:82px!important;
        width:82px!important;
        min-width:82px!important;
        max-width:82px!important;
        height:122px!important;
        min-height:122px!important;
        max-height:122px!important;
    }

    body .site-header .site-brand .logo-box .custom-logo-link{
        width:76px!important;
        height:116px!important;
        max-width:76px!important;
        max-height:116px!important;
    }

    body .site-header .site-brand .logo-box img.custom-logo{
        max-width:72px!important;
        max-height:110px!important;
    }

    body .site-header .brand-text{
        height:108px!important;
        min-height:108px!important;
        max-height:108px!important;
    }

    body .site-header .brand-text .site-title{font-size:17px!important}
    body .site-header .brand-text .site-hindi{font-size:14px!important}
    body .site-header .brand-text .site-tagline{font-size:7.5px!important}

    body .site-header .header-emblems{
        display:none!important;
    }
}

/* Very small phones */
@media(max-width:390px){
    body .site-header .brand-row{
        height:125px!important;
        min-height:125px!important;
        max-height:125px!important;
    }

    body .site-header .site-brand .logo-box{
        flex-basis:72px!important;
        width:72px!important;
        min-width:72px!important;
        max-width:72px!important;
    }

    body .site-header .site-brand .logo-box .custom-logo-link{
        width:66px!important;
        max-width:66px!important;
    }

    body .site-header .site-brand .logo-box img.custom-logo{
        max-width:62px!important;
        max-height:96px!important;
    }
}

/* =========================================================
   RIMS Modern Government v3.1
   EXTRA-LARGE INSTITUTIONAL HEADER
   ========================================================= */

html body header.site-header > .brand-row{
    height:300px!important;
    min-height:300px!important;
    max-height:300px!important;
    padding:18px 28px!important;
    box-sizing:border-box!important;
    overflow:visible!important;
    display:flex!important;
    align-items:center!important;
}

html body header.site-header > .brand-row > .site-brand{
    height:264px!important;
    min-height:264px!important;
    max-height:264px!important;
    overflow:visible!important;
    display:flex!important;
    align-items:center!important;
    flex:1 1 auto!important;
    gap:26px!important;
}

html body header.site-header > .brand-row > .site-brand > .logo-box{
    width:225px!important;
    min-width:225px!important;
    max-width:225px!important;
    height:264px!important;
    min-height:264px!important;
    max-height:264px!important;
    flex:0 0 225px!important;
    overflow:hidden!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
}

html body header.site-header > .brand-row > .site-brand > .logo-box > .custom-logo-link{
    width:215px!important;
    max-width:215px!important;
    height:252px!important;
    max-height:252px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
    margin:0!important;
    padding:0!important;
}

html body header.site-header > .brand-row > .site-brand > .logo-box img.custom-logo{
    width:auto!important;
    height:auto!important;
    max-width:205px!important;
    max-height:242px!important;
    object-fit:contain!important;
    object-position:center!important;
    display:block!important;
    margin:0!important;
    padding:0!important;
}

html body header.site-header > .brand-row > .site-brand > .brand-text{
    height:220px!important;
    min-height:220px!important;
    max-height:220px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
    align-items:flex-start!important;
    overflow:hidden!important;
}

html body header.site-header > .brand-row .brand-text .site-title{
    font-size:38px!important;
    line-height:1.08!important;
}

html body header.site-header > .brand-row .brand-text .site-hindi{
    font-size:31px!important;
    line-height:1.1!important;
}

html body header.site-header > .brand-row .brand-text .site-tagline{
    font-size:13px!important;
    line-height:1.15!important;
    margin-top:9px!important;
}

html body header.site-header > .brand-row > .header-emblems{
    height:240px!important;
    max-height:240px!important;
    overflow:hidden!important;
    display:flex!important;
    align-items:center!important;
    gap:16px!important;
}

html body header.site-header > .brand-row > .header-emblems .header-emblem{
    max-width:175px!important;
    max-height:125px!important;
    width:auto!important;
    height:auto!important;
    object-fit:contain!important;
}

html body header.site-header > .brand-row > .header-emblems .emblem-separator{
    height:100px!important;
}

/* Search/language area aligns with the expanded identity header. */
html body header.site-header > .brand-row > .language-search{
    align-self:center!important;
    flex:0 0 auto!important;
}

/* Navigation is explicitly outside the enlarged identity block. */
html body header.site-header > nav.main-nav{
    position:relative!important;
    clear:both!important;
    width:100%!important;
    min-height:45px!important;
    z-index:100!important;
}

/* Tablet */
@media(max-width:1100px){
    html body header.site-header > .brand-row{
        height:230px!important;
        min-height:230px!important;
        max-height:230px!important;
        padding:12px 18px!important;
    }

    html body header.site-header > .brand-row > .site-brand{
        height:202px!important;
        min-height:202px!important;
        max-height:202px!important;
        gap:18px!important;
    }

    html body header.site-header > .brand-row > .site-brand > .logo-box{
        width:165px!important;
        min-width:165px!important;
        max-width:165px!important;
        flex-basis:165px!important;
        height:202px!important;
        min-height:202px!important;
        max-height:202px!important;
    }

    html body header.site-header > .brand-row > .site-brand > .logo-box > .custom-logo-link{
        width:158px!important;
        max-width:158px!important;
        height:192px!important;
        max-height:192px!important;
    }

    html body header.site-header > .brand-row > .site-brand > .logo-box img.custom-logo{
        max-width:150px!important;
        max-height:184px!important;
    }

    html body header.site-header > .brand-row .brand-text{
        height:180px!important;
        min-height:180px!important;
        max-height:180px!important;
    }

    html body header.site-header > .brand-row .brand-text .site-title{font-size:28px!important}
    html body header.site-header > .brand-row .brand-text .site-hindi{font-size:23px!important}
    html body header.site-header > .brand-row .brand-text .site-tagline{font-size:10px!important}

    html body header.site-header > .brand-row > .header-emblems{
        height:195px!important;
        max-height:195px!important;
    }

    html body header.site-header > .brand-row > .header-emblems .header-emblem{
        max-width:120px!important;
        max-height:86px!important;
    }
}

/* Mobile */
@media(max-width:650px){
    html body header.site-header > .brand-row{
        height:170px!important;
        min-height:170px!important;
        max-height:170px!important;
        padding:8px 10px!important;
    }

    html body header.site-header > .brand-row > .site-brand{
        height:150px!important;
        min-height:150px!important;
        max-height:150px!important;
        gap:9px!important;
        max-width:calc(100% - 55px)!important;
    }

    html body header.site-header > .brand-row > .site-brand > .logo-box{
        width:92px!important;
        min-width:92px!important;
        max-width:92px!important;
        flex-basis:92px!important;
        height:150px!important;
        min-height:150px!important;
        max-height:150px!important;
    }

    html body header.site-header > .brand-row > .site-brand > .logo-box > .custom-logo-link{
        width:86px!important;
        max-width:86px!important;
        height:140px!important;
        max-height:140px!important;
    }

    html body header.site-header > .brand-row > .site-brand > .logo-box img.custom-logo{
        max-width:82px!important;
        max-height:132px!important;
    }

    html body header.site-header > .brand-row .brand-text{
        height:132px!important;
        min-height:132px!important;
        max-height:132px!important;
    }

    html body header.site-header > .brand-row .brand-text .site-title{font-size:18px!important}
    html body header.site-header > .brand-row .brand-text .site-hindi{font-size:15px!important}
    html body header.site-header > .brand-row .brand-text .site-tagline{font-size:8px!important}

    html body header.site-header > .brand-row > .header-emblems{
        display:none!important;
    }
}

/* Keep the WordPress admin bar from being mistaken for the theme header. */
body.admin-bar header.site-header{
    margin-top:0!important;
}

/* =========================================================
   RIMS Modern Government v3.2
   Reference-based compact institutional header
   ========================================================= */

/* Main light masthead */
html body header.site-header > .brand-row{
    width:100%!important;
    height:155px!important;
    min-height:155px!important;
    max-height:155px!important;
    box-sizing:border-box!important;
    padding:10px 26px!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:18px!important;
    background:#f4f8fb!important;
    overflow:hidden!important;
}

/* RIMS identity group */
html body header.site-header > .brand-row > .site-brand{
    flex:1 1 auto!important;
    min-width:0!important;
    height:135px!important;
    min-height:135px!important;
    max-height:135px!important;
    display:flex!important;
    align-items:center!important;
    gap:14px!important;
    overflow:hidden!important;
}

/* Logo column: wide enough for the entire crest */
html body header.site-header > .brand-row > .site-brand > .logo-box{
    flex:0 0 112px!important;
    width:112px!important;
    min-width:112px!important;
    max-width:112px!important;
    height:132px!important;
    min-height:132px!important;
    max-height:132px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
}

html body header.site-header > .brand-row > .site-brand > .logo-box > .custom-logo-link{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:108px!important;
    height:128px!important;
    max-width:108px!important;
    max-height:128px!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    line-height:0!important;
}

html body header.site-header > .brand-row > .site-brand > .logo-box img.custom-logo{
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:104px!important;
    max-height:124px!important;
    min-width:0!important;
    min-height:0!important;
    object-fit:contain!important;
    object-position:center!important;
    margin:0!important;
    padding:0!important;
}

/* Title block matches the supplied reference */
html body header.site-header > .brand-row .brand-text{
    flex:1 1 auto!important;
    min-width:0!important;
    height:120px!important;
    min-height:120px!important;
    max-height:120px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    overflow:hidden!important;
    margin:0!important;
    padding:0!important;
}

html body header.site-header > .brand-row .brand-text .site-title{
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    color:#153d70!important;
    font-size:29px!important;
    line-height:1.08!important;
    font-weight:700!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    text-decoration:none!important;
}

html body header.site-header > .brand-row .brand-text .site-hindi{
    display:block!important;
    width:100%!important;
    margin:2px 0 0!important;
    color:#183f70!important;
    font-size:24px!important;
    line-height:1.08!important;
    font-weight:600!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}

html body header.site-header > .brand-row .brand-text .site-tagline{
    display:block!important;
    width:100%!important;
    margin:6px 0 0!important;
    color:#596d7c!important;
    font-size:11px!important;
    line-height:1.05!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}

/* Campaign logos to the right of the title: Azadi then Swachhata */
html body header.site-header > .brand-row > .header-emblems{
    flex:0 0 300px!important;
    width:300px!important;
    min-width:300px!important;
    max-width:300px!important;
    height:125px!important;
    min-height:125px!important;
    max-height:125px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:12px!important;
    overflow:hidden!important;
    margin:0!important;
}

html body header.site-header > .brand-row > .header-emblems .header-emblem{
    display:block!important;
    width:auto!important;
    height:auto!important;
    max-width:130px!important;
    max-height:86px!important;
    object-fit:contain!important;
    margin:0!important;
}

html body header.site-header > .brand-row > .header-emblems .emblem-separator{
    display:block!important;
    flex:0 0 1px!important;
    width:1px!important;
    height:76px!important;
    background:#c5d1d9!important;
}

/* Language + search at far right */
html body header.site-header > .brand-row > .language-search{
    flex:0 0 245px!important;
    width:245px!important;
    min-width:245px!important;
    max-width:245px!important;
    height:125px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-end!important;
    justify-content:center!important;
    gap:12px!important;
    margin:0!important;
}

html body header.site-header > .brand-row > .language-search .language-switcher{
    display:flex!important;
    align-items:center!important;
    gap:6px!important;
}

html body header.site-header > .brand-row > .language-search .language-switcher button{
    height:31px!important;
    padding:5px 10px!important;
    font-size:11px!important;
    border-radius:4px!important;
}

html body header.site-header > .brand-row > .language-search input{
    height:36px!important;
    box-sizing:border-box!important;
}

/* Navigation exactly below masthead */
html body header.site-header > nav.main-nav{
    width:100%!important;
    min-height:45px!important;
    height:auto!important;
    clear:both!important;
    position:relative!important;
    z-index:100!important;
    background:#063e68!important;
}

html body header.site-header > nav.main-nav .primary-menu{
    min-height:45px!important;
    display:flex!important;
    align-items:stretch!important;
}

html body header.site-header > nav.main-nav a{
    padding:13px 10px!important;
    line-height:1.15!important;
    font-size:12px!important;
}

/* Home icon area */
html body header.site-header > nav.main-nav .home-icon,
html body header.site-header > nav.main-nav a.home-icon{
    min-width:44px!important;
    padding-left:12px!important;
    padding-right:12px!important;
    text-align:center!important;
}

/* Tablet: retain the same visual hierarchy while fitting the width */
@media(max-width:1200px){
    html body header.site-header > .brand-row{
        height:145px!important;
        min-height:145px!important;
        max-height:145px!important;
        padding:8px 14px!important;
        gap:10px!important;
    }

    html body header.site-header > .brand-row > .site-brand{
        height:125px!important;
        min-height:125px!important;
        max-height:125px!important;
        gap:9px!important;
    }

    html body header.site-header > .brand-row > .site-brand > .logo-box{
        flex-basis:88px!important;
        width:88px!important;
        min-width:88px!important;
        max-width:88px!important;
        height:120px!important;
        min-height:120px!important;
        max-height:120px!important;
    }

    html body header.site-header > .brand-row > .site-brand > .logo-box > .custom-logo-link{
        width:84px!important;
        height:116px!important;
        max-width:84px!important;
        max-height:116px!important;
    }

    html body header.site-header > .brand-row > .site-brand > .logo-box img.custom-logo{
        max-width:80px!important;
        max-height:112px!important;
    }

    html body header.site-header > .brand-row .brand-text{
        height:110px!important;
        min-height:110px!important;
        max-height:110px!important;
    }

    html body header.site-header > .brand-row .brand-text .site-title{font-size:23px!important}
    html body header.site-header > .brand-row .brand-text .site-hindi{font-size:19px!important}
    html body header.site-header > .brand-row .brand-text .site-tagline{font-size:9px!important}

    html body header.site-header > .brand-row > .header-emblems{
        flex-basis:210px!important;
        width:210px!important;
        min-width:210px!important;
        max-width:210px!important;
        height:112px!important;
    }

    html body header.site-header > .brand-row > .header-emblems .header-emblem{
        max-width:90px!important;
        max-height:62px!important;
    }

    html body header.site-header > .brand-row > .language-search{
        flex-basis:175px!important;
        width:175px!important;
        min-width:175px!important;
        max-width:175px!important;
        height:112px!important;
    }
}

/* Mobile: compact but still complete logo */
@media(max-width:700px){
    html body header.site-header > .brand-row{
        height:105px!important;
        min-height:105px!important;
        max-height:105px!important;
        padding:6px 8px!important;
    }

    html body header.site-header > .brand-row > .site-brand{
        height:91px!important;
        min-height:91px!important;
        max-height:91px!important;
        gap:7px!important;
        max-width:calc(100% - 45px)!important;
    }

    html body header.site-header > .brand-row > .site-brand > .logo-box{
        flex-basis:55px!important;
        width:55px!important;
        min-width:55px!important;
        max-width:55px!important;
        height:88px!important;
        min-height:88px!important;
        max-height:88px!important;
    }

    html body header.site-header > .brand-row > .site-brand > .logo-box > .custom-logo-link{
        width:51px!important;
        height:84px!important;
        max-width:51px!important;
        max-height:84px!important;
    }

    html body header.site-header > .brand-row > .site-brand > .logo-box img.custom-logo{
        max-width:48px!important;
        max-height:80px!important;
    }

    html body header.site-header > .brand-row .brand-text{
        height:80px!important;
        min-height:80px!important;
        max-height:80px!important;
    }

    html body header.site-header > .brand-row .brand-text .site-title{font-size:14px!important}
    html body header.site-header > .brand-row .brand-text .site-hindi{font-size:11.5px!important}
    html body header.site-header > .brand-row .brand-text .site-tagline{font-size:6.5px!important}

    html body header.site-header > .brand-row > .header-emblems{
        display:none!important;
    }

    html body header.site-header > .brand-row > .language-search{
        flex-basis:auto!important;
        width:auto!important;
        min-width:auto!important;
        max-width:none!important;
        height:80px!important;
        gap:6px!important;
    }

    html body header.site-header > .brand-row > .language-search input{
        width:120px!important;
        height:30px!important;
    }

    html body header.site-header > nav.main-nav{
        min-height:42px!important;
    }
}

/* =========================================================
   RIMS Modern Government v3.3
   FIX: English/Hindi header title overlap
   ========================================================= */

/*
 * The previous high-specificity .site-title rule was overriding
 * the language visibility rule because both English and Hindi
 * headings use the .site-title class.
 *
 * Explicitly control the two title variants here.
 */
html body header.site-header > .brand-row .brand-text a.site-title.lang-en{
    display:block!important;
}

html body header.site-header > .brand-row .brand-text a.site-title.lang-hi{
    display:none!important;
}

html body.lang-hindi header.site-header > .brand-row .brand-text a.site-title.lang-en{
    display:none!important;
}

html body.lang-hindi header.site-header > .brand-row .brand-text a.site-title.lang-hi{
    display:block!important;
}

/* Keep the tagline language variants equally deterministic. */
html body header.site-header > .brand-row .brand-text .site-tagline.lang-en{
    display:block!important;
}

html body header.site-header > .brand-row .brand-text .site-tagline.lang-hi{
    display:none!important;
}

html body.lang-hindi header.site-header > .brand-row .brand-text .site-tagline.lang-en{
    display:none!important;
}

html body.lang-hindi header.site-header > .brand-row .brand-text .site-tagline.lang-hi{
    display:block!important;
}

/* Give the two-line identity block enough vertical separation. */
html body header.site-header > .brand-row .brand-text{
    row-gap:0!important;
}

html body header.site-header > .brand-row .brand-text a.site-title{
    flex:0 0 auto!important;
    position:relative!important;
    z-index:1!important;
}

/* =========================================================
   RIMS Modern Government v3.4
   FIX: Hindi title top clipping
   ========================================================= */

/*
 * Devanagari glyphs have taller ascenders/upper marks than Latin
 * text. The previous fixed-height/overflow:hidden title block could
 * clip the top of the Hindi heading. Allow the identity text to
 * breathe vertically and use a generous line-height.
 */
html body header.site-header > .brand-row .brand-text{
    height:125px!important;
    min-height:125px!important;
    max-height:125px!important;
    overflow:visible!important;
    justify-content:center!important;
    padding:4px 0 5px!important;
    box-sizing:border-box!important;
}

html body header.site-header > .brand-row .brand-text a.site-title{
    flex:0 0 auto!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    line-height:1.28!important;
    padding:3px 0 1px!important;
    margin:0!important;
    overflow:visible!important;
    box-sizing:border-box!important;
}

/* Hindi gets a little extra top breathing room for Devanagari marks. */
html body header.site-header > .brand-row .brand-text a.site-title.lang-hi{
    line-height:1.35!important;
    padding-top:5px!important;
    padding-bottom:2px!important;
}

/* Keep the tagline safely below either title. */
html body header.site-header > .brand-row .brand-text .site-tagline{
    flex:0 0 auto!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    line-height:1.25!important;
    margin-top:5px!important;
    overflow:visible!important;
}

/* Tablet */
@media(max-width:1200px){
    html body header.site-header > .brand-row .brand-text{
        height:112px!important;
        min-height:112px!important;
        max-height:112px!important;
        padding:3px 0 4px!important;
    }

    html body header.site-header > .brand-row .brand-text a.site-title{
        line-height:1.25!important;
    }

    html body header.site-header > .brand-row .brand-text a.site-title.lang-hi{
        line-height:1.32!important;
        padding-top:4px!important;
    }
}

/* Mobile */
@media(max-width:700px){
    html body header.site-header > .brand-row .brand-text{
        height:82px!important;
        min-height:82px!important;
        max-height:82px!important;
        padding:2px 0 3px!important;
    }

    html body header.site-header > .brand-row .brand-text a.site-title{
        line-height:1.2!important;
        padding-top:2px!important;
    }

    html body header.site-header > .brand-row .brand-text a.site-title.lang-hi{
        line-height:1.28!important;
        padding-top:3px!important;
    }

    html body header.site-header > .brand-row .brand-text .site-tagline{
        line-height:1.15!important;
        margin-top:3px!important;
    }
}

/* =========================================================
   RIMS Modern Government v3.5
   FIX: Utility/government bar language switching
   ========================================================= */

/*
 * The top utility bar contains two bilingual labels:
 *  Government of India / भारत सरकार
 *  Ministry of Health & Family Welfare / स्वास्थ्य एवं परिवार कल्याण मंत्रालय
 *
 * v3.5 explicitly controls the English/Hindi variants. This is
 * separate from the masthead title because the utility bar has
 * its own language elements.
 */

/* Default = English */
html body header.site-header .topbar .lang-en,
html body header.site-header .top-bar .lang-en,
html body header.site-header .government-bar .lang-en{
    display:inline!important;
}

html body header.site-header .topbar .lang-hi,
html body header.site-header .top-bar .lang-hi,
html body header.site-header .government-bar .lang-hi{
    display:none!important;
}

/* Hindi mode */
html body.lang-hindi header.site-header .topbar .lang-en,
html body.lang-hindi header.site-header .top-bar .lang-en,
html body.lang-hindi header.site-header .government-bar .lang-en{
    display:none!important;
}

html body.lang-hindi header.site-header .topbar .lang-hi,
html body.lang-hindi header.site-header .top-bar .lang-hi,
html body.lang-hindi header.site-header .government-bar .lang-hi{
    display:inline!important;
}

/*
 * Also support the language state on the header element in case
 * the theme JS applies the class there rather than to <body>.
 */
html body header.site-header.lang-hindi .topbar .lang-en,
html body header.site-header.lang-hindi .top-bar .lang-en,
html body header.site-header.lang-hindi .government-bar .lang-en{
    display:none!important;
}

html body header.site-header.lang-hindi .topbar .lang-hi,
html body header.site-header.lang-hindi .top-bar .lang-hi,
html body header.site-header.lang-hindi .government-bar .lang-hi{
    display:inline!important;
}

/* =========================================================
   RIMS Modern Government v3.6
   Utility bar: English/Hindi content correction
   ========================================================= */

html body header.site-header .topbar .lang-en{
    display:inline!important;
}
html body header.site-header .topbar .lang-hi{
    display:none!important;
}

html body.lang-hindi header.site-header .topbar .lang-en{
    display:none!important;
}
html body.lang-hindi header.site-header .topbar .lang-hi{
    display:inline!important;
}

/* If the language class is applied to the header instead of body. */
html body header.site-header.lang-hindi .topbar .lang-en{
    display:none!important;
}
html body header.site-header.lang-hindi .topbar .lang-hi{
    display:inline!important;
}

/* Prevent hidden spans from contributing whitespace/layout. */
html body header.site-header .topbar .lang-en[style*="display:none"],
html body header.site-header .topbar .lang-hi[style*="display:none"]{
    display:none!important;
}

/* =========================================================
   RIMS Modern Government v3.7
   Requested primary navigation hierarchy
   ========================================================= */

/* Make nested navigation usable with the longer requested labels. */
html body header.site-header .main-nav .primary-menu > li.menu-item-has-children > .sub-menu{
    min-width:250px!important;
    max-width:390px!important;
}

html body header.site-header .main-nav .sub-menu li a{
    white-space:normal!important;
    line-height:1.25!important;
    padding:9px 13px!important;
}

/* Keep Hindi/English menu labels switching cleanly. */
html body header.site-header .main-nav .menu-label.lang-en{
    display:inline!important;
}
html body header.site-header .main-nav .menu-label.lang-hi{
    display:none!important;
}
html body.lang-hindi header.site-header .main-nav .menu-label.lang-en{
    display:none!important;
}
html body.lang-hindi header.site-header .main-nav .menu-label.lang-hi{
    display:inline!important;
}

/* Mobile submenu labels can wrap rather than overflow the viewport. */
@media(max-width:700px){
    html body header.site-header .main-nav .sub-menu{
        width:100%!important;
        max-width:none!important;
        min-width:0!important;
    }
    html body header.site-header .main-nav .sub-menu li a{
        white-space:normal!important;
    }
}

/* RIMS v3.8 — Academic submenu order */

/* =========================================================
   RIMS Modern Government v3.9
   Category/archive listing
   ========================================================= */

.rims-archive{
    padding:30px 18px 50px;
    background:#f7fafc;
}

.rims-archive .rims-container{
    width:min(1180px,100%);
    margin:0 auto;
}

.rims-archive .archive-header{
    margin-bottom:22px;
    padding-bottom:12px;
    border-bottom:1px solid #d7e1e8;
}

.rims-archive .archive-title{
    margin:0;
    color:#073d68;
    font-size:30px;
    line-height:1.2;
}

.rims-archive .archive-description{
    margin-top:8px;
    color:#5c6d79;
}

.rims-post-list{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.rims-archive-post{
    margin:0;
    padding:18px 20px;
    background:#fff;
    border:1px solid #d9e3e9;
    border-radius:5px;
    box-shadow:0 2px 7px rgba(0,0,0,.04);
}

.rims-archive-post .entry-title{
    margin:0;
    font-size:19px;
    line-height:1.35;
}

.rims-archive-post .entry-title a{
    color:#073d68;
    text-decoration:none;
}

.rims-archive-post .entry-title a:hover{
    text-decoration:underline;
}

.rims-archive-post .entry-meta{
    margin-top:5px;
    color:#687984;
    font-size:12px;
}

.rims-archive-post .entry-summary{
    margin-top:9px;
    color:#374954;
    line-height:1.55;
}

.rims-archive-post .entry-summary p{
    margin:0 0 8px;
}

.rims-read-more{
    display:inline-block;
    margin-top:4px;
    color:#0b5d91;
    font-size:13px;
    font-weight:600;
    text-decoration:none;
}

.rims-read-more:hover{
    text-decoration:underline;
}

.rims-archive .navigation.pagination{
    margin-top:26px;
}

.rims-archive .navigation.pagination ul{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    list-style:none;
    margin:0;
    padding:0;
}

.rims-archive .navigation.pagination li{
    margin:0;
}

.rims-archive .navigation.pagination a,
.rims-archive .navigation.pagination span{
    display:block;
    padding:7px 11px;
    border:1px solid #ccd9e1;
    border-radius:3px;
    background:#fff;
    color:#073d68;
    text-decoration:none;
}

.rims-archive .navigation.pagination .current{
    background:#073d68;
    color:#fff;
    border-color:#073d68;
}

@media(max-width:700px){
    .rims-archive{
        padding:20px 10px 35px;
    }

    .rims-archive .archive-title{
        font-size:23px;
    }

    .rims-archive-post{
        padding:14px;
    }

    .rims-archive-post .entry-title{
        font-size:17px;
    }
}

/* =========================================================
   RIMS Modern Government v4.0
   Homepage category hub below four horizontal person photos
   ========================================================= */

.rims-category-hub{
    width:100%;
    margin:0;
    padding:28px 14px 36px;
    background:#f4f8fb;
    border-top:1px solid #d9e4eb;
    box-sizing:border-box;
}

.rims-category-hub .rims-container{
    width:min(1400px,100%);
    margin:0 auto;
}

.rims-category-hub .rims-section-heading{
    margin:0 0 18px;
    padding:0 4px 12px;
    border-bottom:2px solid #d6e2ea;
}

.rims-category-hub .rims-section-heading h2{
    margin:0;
    color:#073d68;
    font-size:26px;
    line-height:1.2;
}

.rims-category-hub .rims-section-heading p{
    margin:5px 0 0;
    color:#627583;
    font-size:13px;
}

.rims-category-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
    align-items:start;
}

.rims-category-card{
    min-width:0;
    background:#fff;
    border:1px solid #d5e1e8;
    border-radius:5px;
    padding:17px 16px 15px;
    box-sizing:border-box;
    box-shadow:0 2px 8px rgba(12,54,82,.06);
}

.rims-category-card h3{
    margin:0 0 11px;
    font-size:17px;
    line-height:1.3;
}

.rims-category-card h3 a{
    color:#073d68;
    text-decoration:none;
}

.rims-category-card h3 a:hover{
    text-decoration:underline;
}

.rims-category-children{
    list-style:none;
    margin:0;
    padding:0;
    border-top:1px solid #e5edf2;
}

.rims-category-children li{
    margin:0;
    padding:7px 0;
    border-bottom:1px solid #edf2f5;
}

.rims-category-children a{
    color:#405866;
    font-size:13px;
    line-height:1.35;
    text-decoration:none;
}

.rims-category-children a:hover{
    color:#073d68;
    text-decoration:underline;
}

.rims-category-view{
    display:inline-block;
    margin-top:12px;
    padding:6px 10px;
    border:1px solid #c9d9e3;
    border-radius:3px;
    color:#073d68;
    background:#f7fafc;
    font-size:12px;
    font-weight:600;
    text-decoration:none;
}

@media(max-width:1150px){
    .rims-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:800px){
    .rims-category-hub{padding:22px 10px 30px;}
    .rims-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
    .rims-category-hub .rims-section-heading h2{font-size:22px;}
}
@media(max-width:520px){
    .rims-category-grid{grid-template-columns:1fr;}
    .rims-category-card{padding:14px;}
}

/* =========================================================
   RIMS Modern Government v4.1
   Category-wise homepage post display
   ========================================================= */

.rims-category-posts{
    width:100%;
    padding:28px 14px 36px;
    background:#f4f8fb;
    border-top:1px solid #d9e4eb;
    box-sizing:border-box;
}

.rims-category-posts .rims-container{
    width:min(1400px,100%);
    margin:0 auto;
}

.rims-category-posts .rims-section-heading{
    margin:0 0 18px;
    padding:0 4px 12px;
    border-bottom:2px solid #d6e2ea;
}

.rims-category-posts .rims-section-heading h2{
    margin:0;
    color:#073d68;
    font-size:27px;
    line-height:1.2;
}

.rims-category-posts .rims-section-heading p{
    margin:5px 0 0;
    color:#627583;
    font-size:13px;
}

.rims-category-post-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
    align-items:start;
}

.rims-category-post-card{
    min-width:0;
    background:#fff;
    border:1px solid #d5e1e8;
    border-radius:5px;
    overflow:hidden;
    box-shadow:0 2px 8px rgba(12,54,82,.06);
}

.rims-category-post-header{
    padding:13px 15px;
    background:#eaf2f7;
    border-bottom:1px solid #d5e1e8;
}

.rims-category-post-header h3{
    margin:0;
    font-size:18px;
    line-height:1.3;
}

.rims-category-post-header h3 a{
    color:#073d68;
    text-decoration:none;
}

.rims-category-post-header h3 a:hover{
    text-decoration:underline;
}

.rims-category-post-body{
    padding:0 14px;
}

.rims-category-post-list{
    list-style:none;
    margin:0;
    padding:0;
}

.rims-category-post-list li{
    margin:0;
    padding:11px 0 9px;
    border-bottom:1px solid #e5edf2;
}

.rims-category-post-list li:last-child{
    border-bottom:0;
}

.rims-category-post-list a{
    display:block;
    color:#073d68;
    font-size:13px;
    line-height:1.4;
    text-decoration:none;
}

.rims-category-post-list a:hover{
    text-decoration:underline;
}

.rims-category-post-list time{
    display:block;
    margin-top:3px;
    color:#71828d;
    font-size:11px;
}

.rims-no-category-posts{
    margin:0;
    padding:18px 2px;
    color:#71828d;
    font-size:12px;
}

.rims-category-post-footer{
    padding:10px 14px;
    background:#f7fafc;
    border-top:1px solid #e1eaf0;
}

.rims-category-post-footer a{
    color:#0b5d91;
    font-size:12px;
    font-weight:600;
    text-decoration:none;
}

.rims-category-post-footer a:hover{
    text-decoration:underline;
}

@media(max-width:1050px){
    .rims-category-post-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:650px){
    .rims-category-posts{
        padding:22px 10px 30px;
    }

    .rims-category-post-grid{
        grid-template-columns:1fr;
        gap:12px;
    }

    .rims-category-posts .rims-section-heading h2{
        font-size:23px;
    }
}

/* =========================================================
   RIMS Modern Government v4.2
   WordPress Core menu integration
   ========================================================= */

/* WordPress Core now supplies the actual menu and submenu structure. */
html body header.site-header nav.main-nav > ul.primary-menu{
    display:flex!important;
    align-items:stretch!important;
    list-style:none!important;
    margin:0!important;
    padding:0!important;
    width:100%!important;
}

html body header.site-header nav.main-nav > ul.primary-menu > li{
    position:relative!important;
    margin:0!important;
    padding:0!important;
}

html body header.site-header nav.main-nav ul.sub-menu{
    display:none!important;
    position:absolute!important;
    top:100%!important;
    left:0!important;
    z-index:10000!important;
    min-width:260px!important;
    max-width:420px!important;
    margin:0!important;
    padding:5px 0!important;
    list-style:none!important;
    background:#fff!important;
    border:1px solid #ccdbe4!important;
    box-shadow:0 4px 12px rgba(0,0,0,.15)!important;
}

html body header.site-header nav.main-nav li.menu-item-has-children:hover > ul.sub-menu,
html body header.site-header nav.main-nav li.menu-item-has-children:focus-within > ul.sub-menu{
    display:block!important;
}

html body header.site-header nav.main-nav ul.sub-menu li{
    position:relative!important;
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
}

html body header.site-header nav.main-nav ul.sub-menu a{
    display:block!important;
    width:100%!important;
    box-sizing:border-box!important;
    padding:9px 13px!important;
    color:#073d68!important;
    background:#fff!important;
    white-space:normal!important;
    line-height:1.3!important;
    text-decoration:none!important;
}

html body header.site-header nav.main-nav ul.sub-menu a:hover,
html body header.site-header nav.main-nav ul.sub-menu a:focus{
    background:#eef5f9!important;
}

html body header.site-header nav.main-nav ul.sub-menu ul.sub-menu{
    top:-6px!important;
    left:100%!important;
}

/* Add a visual submenu indicator only to actual Core menu parents. */
html body header.site-header nav.main-nav > ul.primary-menu > li.menu-item-has-children > a::after{
    content:" ▾";
    font-size:9px;
    margin-left:4px;
}

html body header.site-header nav.main-nav ul.sub-menu li.menu-item-has-children > a::after{
    content:" ▸";
    float:right;
    font-size:9px;
}

/* Mobile: turn dropdowns into normal expandable-width blocks. */
@media(max-width:700px){
    html body header.site-header nav.main-nav > ul.primary-menu{
        display:block!important;
        max-height:60vh!important;
        overflow-y:auto!important;
    }

    html body header.site-header nav.main-nav > ul.primary-menu > li{
        width:100%!important;
    }

    html body header.site-header nav.main-nav ul.sub-menu{
        position:static!important;
        display:none!important;
        width:100%!important;
        max-width:none!important;
        min-width:0!important;
        box-shadow:none!important;
        border-left:3px solid #0b5d91!important;
        border-right:0!important;
        border-top:0!important;
        border-bottom:0!important;
    }

    html body header.site-header nav.main-nav li.menu-item-has-children:hover > ul.sub-menu{
        display:none!important;
    }

    html body header.site-header nav.main-nav li.menu-item-has-children:focus-within > ul.sub-menu,
    html body header.site-header nav.main-nav li.menu-item-has-children > a:focus + ul.sub-menu{
        display:block!important;
    }

    html body header.site-header nav.main-nav ul.sub-menu ul.sub-menu{
        top:auto!important;
        left:auto!important;
    }
}

/* RIMS Modern Government v4.3 - secure site homepage content */
.rims-legacy-home-content{width:100%;padding:30px 14px 42px;background:#fff;box-sizing:border-box}
.rims-legacy-home-content .rims-container{width:min(1400px,100%);margin:0 auto}
.rims-legacy-panel{background:#fff;border:1px solid #d6e1e8;border-radius:5px;overflow:hidden}
.rims-legacy-panel h2{margin:0;padding:14px 18px;color:#073d68;background:#edf4f8;border-bottom:1px solid #d6e1e8;font-size:22px;line-height:1.25}
.rims-legacy-notice-list{padding:2px 18px}
.rims-legacy-notice{padding:12px 0 10px;border-bottom:1px solid #e0e8ed}
.rims-legacy-notice:last-child{border-bottom:0}
.rims-legacy-notice a{display:block;color:#073d68;font-size:14px;line-height:1.4;text-decoration:none}
.rims-legacy-notice a:hover{text-decoration:underline}
.rims-legacy-notice time{display:block;margin-top:3px;color:#6b7b85;font-size:11px}
.rims-about-management{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}
.rims-language-content{padding:15px 18px 17px}
.rims-language-content p{margin:0;color:#4b5c66;font-size:14px;line-height:1.55}
.rims-management-list{margin:12px 0 0;padding-left:30px;color:#4b5c66;font-size:14px;line-height:1.7}
.rims-legacy-links{margin-top:14px}
.rims-legacy-links a{color:#b00000;font-weight:600;text-decoration:none}
.rims-legacy-links a:hover{text-decoration:underline}
@media(max-width:800px){.rims-about-management{grid-template-columns:1fr}.rims-legacy-home-content{padding:22px 10px 32px}.rims-legacy-panel h2{font-size:20px}}

/* RIMS v4.4: About RIMS and Management immediately below four photos */
.rims-about-management-home{
    width:100%;
    padding:24px 14px 28px;
    background:#fff;
    box-sizing:border-box;
}
.rims-about-management-home > .rims-container{
    width:min(1400px,100%);
    margin:0 auto;
}
.rims-about-management-home .rims-section-heading{
    margin:0 0 14px;
    padding:0 4px 10px;
    border-bottom:2px solid #d6e2ea;
}
.rims-about-management-home .rims-section-heading h2{
    margin:0;
    color:#073d68;
    font-size:25px;
    line-height:1.25;
}
.rims-about-management-home .rims-about-management{
    margin-top:0;
}
@media(max-width:800px){
    .rims-about-management-home{padding:20px 10px 24px}
    .rims-about-management-home .rims-section-heading h2{font-size:21px}
}

/* =========================================================
   RIMS Modern Government v4.5
   Latest Notices + Latest Tenders side-by-side
   Immediately below About RIMS & Management
   ========================================================= */

.rims-notices-tender-home{
    width:100%;
    padding:0 14px 30px;
    background:#fff;
    box-sizing:border-box;
}

.rims-notices-tender-home > .rims-container{
    width:min(1400px,100%);
    margin:0 auto;
}

.rims-notices-tender-home .rims-section-heading{
    margin:0 0 14px;
    padding:0 4px 10px;
    border-bottom:2px solid #d6e2ea;
}

.rims-notices-tender-home .rims-section-heading h2{
    margin:0;
    color:#073d68;
    font-size:25px;
    line-height:1.25;
}

.rims-notices-tender-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
    align-items:start;
}

.rims-nt-panel{
    min-width:0;
    background:#fff;
    border:1px solid #d5e1e8;
    border-radius:5px;
    overflow:hidden;
    box-shadow:0 2px 8px rgba(12,54,82,.06);
}

.rims-nt-panel-header{
    padding:13px 18px;
    background:#eaf2f7;
    border-bottom:1px solid #d5e1e8;
}

.rims-nt-panel-header h3{
    margin:0;
    color:#073d68;
    font-size:21px;
    line-height:1.3;
}

.rims-nt-list{
    padding:2px 18px;
}

.rims-nt-item{
    padding:12px 0 10px;
    border-bottom:1px solid #e0e8ed;
}

.rims-nt-item:last-child{
    border-bottom:0;
}

.rims-nt-item a{
    display:block;
    color:#073d68;
    font-size:14px;
    line-height:1.4;
    text-decoration:none;
}

.rims-nt-item a:hover{
    text-decoration:underline;
}

.rims-nt-item time{
    display:block;
    margin-top:3px;
    color:#6b7b85;
    font-size:11px;
}

.rims-nt-empty{
    margin:0;
    padding:20px 0;
    color:#6b7b85;
    font-size:13px;
}

.rims-nt-panel-footer{
    padding:11px 18px;
    background:#f7fafc;
    border-top:1px solid #e1eaf0;
}

.rims-nt-panel-footer a{
    color:#0b5d91;
    font-size:12px;
    font-weight:600;
    text-decoration:none;
}

.rims-nt-panel-footer a:hover{
    text-decoration:underline;
}

@media(max-width:1100px) and (min-width:801px){
    .rims-notices-tender-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:12px;
    }
    .rims-nt-panel-header{
        padding:12px 12px;
    }
    .rims-nt-panel-header h3{
        font-size:18px;
    }
    .rims-nt-list{
        padding-left:12px;
        padding-right:12px;
    }
    .rims-nt-panel-footer{
        padding-left:12px;
        padding-right:12px;
    }
}

@media(max-width:800px){
    .rims-notices-tender-home{
        padding:0 10px 24px;
    }

    .rims-notices-tender-grid{
        grid-template-columns:1fr;
        gap:14px;
    }

    .rims-notices-tender-home .rims-section-heading h2{
        font-size:21px;
    }

    .rims-nt-panel-header h3{
        font-size:19px;
    }
}

/* =========================================================
   RIMS Modern Government v4.7
   Important Links - three-column government-site grid
   ========================================================= */

.rims-important-links-home{
    width:100%;
    padding:0 14px 32px;
    background:#fff;
    box-sizing:border-box;
}

.rims-important-links-home > .rims-container{
    width:min(1480px,100%);
    margin:0 auto;
}

.rims-important-links-home .rims-section-heading{
    margin:0 0 14px;
    padding:0 4px 10px;
    border-bottom:2px solid #d6e2ea;
}

.rims-important-links-home .rims-section-heading h2{
    margin:0;
    color:#073d68;
    font-size:25px;
    line-height:1.25;
}

.rims-important-links-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    border:1px solid #9db5c3;
    background:#fff;
}

.rims-important-link{
    display:flex;
    align-items:center;
    min-height:30px;
    padding:4px 10px;
    box-sizing:border-box;
    border-right:1px solid #9db5c3;
    border-bottom:1px solid #9db5c3;
    color:#800080;
    font-size:15px;
    font-weight:600;
    line-height:1.2;
    text-decoration:none;
}

.rims-important-link:nth-child(3n){
    border-right:0;
}

.rims-important-link:nth-last-child(-n+3){
    border-bottom:0;
}

.rims-important-link:hover{
    color:#073d68;
    background:#f3f7fa;
    text-decoration:underline;
}

@media(max-width:800px){
    .rims-important-links-home{
        padding:0 10px 24px;
    }

    .rims-important-links-home .rims-section-heading h2{
        font-size:21px;
    }

    .rims-important-links-grid{
        grid-template-columns:1fr;
    }

    .rims-important-link,
    .rims-important-link:nth-child(3n),
    .rims-important-link:nth-last-child(-n+3){
        min-height:36px;
        border-right:0;
        border-bottom:1px solid #9db5c3;
        font-size:14px;
    }

    .rims-important-link:last-child{
        border-bottom:0;
    }
}

/* v4.8: four clickable feature cards above Important Links */
.rims-feature-links-home{width:100%;padding:0 14px 28px;background:#fff;box-sizing:border-box}
.rims-feature-links-home>.rims-container{width:min(1480px,100%);margin:0 auto}
.rims-feature-links-home .rims-section-heading{margin:0 0 14px;padding:0 4px 10px;border-bottom:2px solid #d6e2ea}
.rims-feature-links-home .rims-section-heading h2{margin:0;color:#073d68;font-size:25px;line-height:1.25}
.rims-feature-links-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.rims-feature-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #cbdbe5;border-radius:5px;background:#fff;box-shadow:0 2px 8px rgba(12,54,82,.07);color:#073d68;text-decoration:none;transition:transform .15s ease,box-shadow .15s ease}
.rims-feature-card:hover{transform:translateY(-2px);box-shadow:0 5px 14px rgba(12,54,82,.13)}
.rims-feature-image-wrap{display:flex;align-items:center;justify-content:center;width:100%;height:170px;padding:8px;box-sizing:border-box;background:#f7fafc}
.rims-feature-card img{display:block;width:100%;height:100%;object-fit:contain}
.rims-feature-title{display:block;padding:10px 12px 11px;border-top:1px solid #d9e4eb;color:#073d68;font-size:15px;font-weight:600;line-height:1.3;text-align:center}
@media(max-width:1000px){.rims-feature-links-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.rims-feature-links-home{padding:0 10px 22px}.rims-feature-links-home .rims-section-heading h2{font-size:21px}.rims-feature-links-grid{grid-template-columns:1fr;gap:12px}.rims-feature-image-wrap{height:190px}}

/* =========================================================
   RIMS Modern Government v4.9
   Director's Report positioned to the right of Management
   ========================================================= */

.rims-about-management-home .rims-container{
    display:grid;
    grid-template-columns:minmax(0,2fr) minmax(260px,1fr);
    column-gap:20px;
    align-items:start;
}

.rims-about-management-home .rims-section-heading{
    grid-column:1 / -1;
}

.rims-about-management-home .rims-about-management{
    grid-column:1;
    margin-top:0;
}

.rims-director-report-card{
    grid-column:2;
    background:#fff;
    border:1px solid #d5e1e8;
    border-radius:5px;
    overflow:hidden;
    box-shadow:0 2px 8px rgba(12,54,82,.07);
}

.rims-director-report-card a{
    display:block;
    color:#073d68;
    text-decoration:none;
}

.rims-director-report-image{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:250px;
    padding:10px;
    box-sizing:border-box;
    background:#f7fafc;
}

.rims-director-report-image img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}

.rims-director-report-title{
    display:block;
    padding:12px 14px 4px;
    color:#073d68;
    font-size:19px;
    font-weight:700;
    line-height:1.3;
    text-align:center;
}

.rims-director-report-caption{
    display:block;
    padding:0 14px 14px;
    color:#657783;
    font-size:13px;
    line-height:1.4;
    text-align:center;
}

@media(max-width:800px){
    .rims-about-management-home .rims-container{
        display:block;
    }

    .rims-about-management-home .rims-section-heading{
        margin-bottom:14px;
    }

    .rims-director-report-card{
        margin-top:16px;
    }

    .rims-director-report-image{
        height:220px;
    }
}

/* =========================================================
   RIMS Modern Government v5.0
   Homepage cleanup:
   - Director's Report beside Management
   - Three Highlights cards only
   - Remove sections after Important Links
   ========================================================= */

.rims-about-management-home{
    width:100%;
    padding:0 14px 28px;
    background:#fff;
    box-sizing:border-box;
}

.rims-about-management-home > .rims-container{
    width:min(1480px,100%);
    margin:0 auto;
}

.rims-about-management-home .rims-section-heading{
    margin:0 0 14px;
    padding:0 4px 10px;
    border-bottom:2px solid #d6e2ea;
}

.rims-about-management-home .rims-section-heading h2{
    margin:0;
    color:#073d68;
    font-size:25px;
    line-height:1.25;
}

.rims-about-management-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(260px, .72fr);
    gap:16px;
    align-items:stretch;
}

.rims-about-panel,
.rims-management-panel,
.rims-director-report-card{
    min-width:0;
    border:1px solid #cbdbe5;
    border-radius:5px;
    background:#fff;
    overflow:hidden;
    box-shadow:0 2px 8px rgba(12,54,82,.07);
}

.rims-about-panel-header,
.rims-management-panel .rims-about-panel-header{
    margin:0;
    padding:14px 18px;
    background:#edf4f8;
    border-bottom:1px solid #d3e0e7;
}

.rims-about-panel-header h3{
    margin:0;
    color:#073d68;
    font-size:22px;
    line-height:1.25;
}

.rims-about-panel-body{
    padding:14px 18px 16px;
    color:#36566e;
    font-size:14px;
    line-height:1.6;
}

.rims-about-panel-body p{
    margin:0 0 10px;
}

.rims-about-panel-body ol{
    margin:8px 0 0 28px;
}

.rims-director-report-card{
    display:flex;
}

.rims-director-report-card a{
    display:flex;
    flex-direction:column;
    width:100%;
    color:#073d68;
    text-decoration:none;
}

.rims-director-report-image{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:250px;
    padding:10px;
    box-sizing:border-box;
    background:#f7fafc;
}

.rims-director-report-image img{
    display:block;
    width:100%;
    height:100%;
    max-height:290px;
    object-fit:contain;
}

.rims-director-report-title{
    display:block;
    padding:12px 14px 3px;
    color:#073d68;
    font-size:19px;
    font-weight:700;
    line-height:1.3;
    text-align:center;
}

.rims-director-report-caption{
    display:block;
    padding:0 14px 14px;
    color:#657783;
    font-size:13px;
    line-height:1.4;
    text-align:center;
}

/* With Director's Report removed, the remaining three cards are centered. */
.rims-feature-links-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
}

@media(max-width:1100px){
    .rims-about-management-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .rims-director-report-card{
        grid-column:1 / -1;
    }

    .rims-director-report-image{
        min-height:220px;
    }
}

@media(max-width:800px){
    .rims-about-management-home{
        padding:0 10px 22px;
    }

    .rims-about-management-home .rims-section-heading h2{
        font-size:21px;
    }

    .rims-about-management-grid{
        grid-template-columns:1fr;
        gap:12px;
    }

    .rims-director-report-card{
        grid-column:auto;
    }

    .rims-feature-links-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:600px){
    .rims-feature-links-grid{
        grid-template-columns:1fr;
    }
}

/* =========================================================
   RIMS Modern Government v5.1
   Final homepage cleanup
   ========================================================= */

/* About + Management + Director's Report */
.rims-about-management-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(270px,.72fr);
    gap:16px;
    align-items:stretch;
}

.rims-about-panel,
.rims-management-panel,
.rims-director-report-card{
    min-width:0;
}

.rims-director-report-card{
    grid-column:3;
    grid-row:1;
}

@media(max-width:1100px){
    .rims-about-management-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .rims-director-report-card{
        grid-column:1 / -1;
        grid-row:auto;
    }
}

@media(max-width:800px){
    .rims-about-management-grid{
        grid-template-columns:1fr;
    }
    .rims-director-report-card{
        grid-column:auto;
    }
}

/* RIMS Modern Government v5.2 - homepage people/photos: three cards */
.rims-people-grid,
.rims-person-grid,
.rims-four-photos-grid,
.rims-photo-cards{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}
@media(max-width:800px){
    .rims-people-grid,
    .rims-person-grid,
    .rims-four-photos-grid,
    .rims-photo-cards{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
}
@media(max-width:600px){
    .rims-people-grid,
    .rims-person-grid,
    .rims-four-photos-grid,
    .rims-photo-cards{
        grid-template-columns:1fr !important;
    }
}

/* =========================================================
   RIMS Modern Government v5.3
   Reliable About / Management / Director layout
   ========================================================= */

.rims-about-management-home{
    width:100%;
    padding:0 14px 28px;
    box-sizing:border-box;
}

.rims-about-management-home > .rims-container{
    width:min(1480px,100%);
    margin:0 auto;
}

.rims-about-management-layout{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(300px,.70fr) !important;
    gap:16px !important;
    width:100%;
    align-items:stretch;
}

.rims-about-management-layout > .rims-about-panel,
.rims-about-management-layout > .rims-management-panel,
.rims-about-management-layout > .rims-director-report-card{
    display:flex;
    flex-direction:column;
    min-width:0;
    width:auto !important;
    grid-column:auto !important;
    grid-row:auto !important;
}

.rims-about-management-layout .rims-about-panel-body{
    flex:1 1 auto;
}

.rims-about-management-layout .rims-director-report-card{
    overflow:hidden;
    border:1px solid #cbdbe5;
    border-radius:5px;
    background:#fff;
    box-shadow:0 2px 8px rgba(12,54,82,.07);
}

.rims-about-management-layout .rims-director-report-card a{
    display:flex;
    flex-direction:column;
    height:100%;
    color:#073d68;
    text-decoration:none;
}

.rims-about-management-layout .rims-director-report-image{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:250px;
    padding:10px;
    box-sizing:border-box;
    background:#f7fafc;
}

.rims-about-management-layout .rims-director-report-image img{
    display:block;
    width:100%;
    height:100%;
    max-height:300px;
    object-fit:contain;
}

.rims-about-management-layout .rims-director-report-title{
    display:block;
    padding:12px 14px 3px;
    font-size:19px;
    font-weight:700;
    line-height:1.3;
    text-align:center;
}

.rims-about-management-layout .rims-director-report-caption{
    display:block;
    padding:0 14px 14px;
    font-size:13px;
    line-height:1.4;
    text-align:center;
}

@media(max-width:1100px){
    .rims-about-management-layout{
        grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    }
    .rims-about-management-layout > .rims-director-report-card{
        grid-column:1 / -1 !important;
    }
}

@media(max-width:700px){
    .rims-about-management-layout{
        grid-template-columns:1fr !important;
    }
    .rims-about-management-layout > .rims-director-report-card{
        grid-column:auto !important;
    }
}

/* =========================================================
   RIMS Modern Government v5.4
   Use the full available content width for the three panels.
   ========================================================= */

.rims-about-management-home > .rims-container{
    width:100% !important;
    max-width:1480px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    box-sizing:border-box !important;
}

.rims-about-management-layout{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    width:100% !important;
    max-width:none !important;
    gap:16px !important;
    align-items:stretch !important;
    box-sizing:border-box !important;
}

.rims-about-management-layout > .rims-about-panel,
.rims-about-management-layout > .rims-management-panel,
.rims-about-management-layout > .rims-director-report-card{
    flex:1 1 0 !important;
    width:0 !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
    box-sizing:border-box !important;
}

.rims-about-management-layout > .rims-director-report-card{
    display:flex !important;
}

.rims-about-management-layout .rims-director-report-image{
    min-height:250px;
    flex:0 0 auto;
}

.rims-about-management-layout .rims-director-report-image img{
    width:auto !important;
    max-width:100% !important;
    height:auto !important;
    max-height:300px !important;
    object-fit:contain !important;
}

@media(max-width:900px){
    .rims-about-management-layout{
        flex-wrap:wrap !important;
    }
    .rims-about-management-layout > .rims-about-panel,
    .rims-about-management-layout > .rims-management-panel{
        flex:1 1 calc(50% - 8px) !important;
        width:auto !important;
    }
    .rims-about-management-layout > .rims-director-report-card{
        flex:1 1 100% !important;
        width:auto !important;
    }
}

@media(max-width:650px){
    .rims-about-management-layout{
        display:flex !important;
        flex-direction:column !important;
    }
    .rims-about-management-layout > .rims-about-panel,
    .rims-about-management-layout > .rims-management-panel,
    .rims-about-management-layout > .rims-director-report-card{
        flex:0 0 auto !important;
        width:100% !important;
    }
}

/* RIMS Modern Government v5.4.1
   Full-width About / Management / Director layout */
.rims-about-management-home{
    width:100vw !important;
    max-width:none !important;
    margin-left:calc(50% - 50vw) !important;
    margin-right:calc(50% - 50vw) !important;
    padding-left:16px !important;
    padding-right:16px !important;
    box-sizing:border-box !important;
}
.rims-about-management-home > .rims-container{
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
}
.rims-about-management-layout{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    gap:16px !important;
    box-sizing:border-box !important;
}
.rims-about-management-layout > .rims-about-panel,
.rims-about-management-layout > .rims-management-panel,
.rims-about-management-layout > .rims-director-report-card{
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
    flex:none !important;
    box-sizing:border-box !important;
}
@media(max-width:900px){
    .rims-about-management-layout{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
}
@media(max-width:650px){
    .rims-about-management-layout{
        grid-template-columns:1fr !important;
    }
}

/* =========================================================
   RIMS Modern Government v5.5
   FIX: eliminate the unused right-side space beside the
   Director's Report. The three cards occupy the full row.
   ========================================================= */

/* The section heading and card row share the same full-width box. */
.rims-about-management-home{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    box-sizing:border-box !important;
    margin:0 !important;
    padding-left:6px !important;
    padding-right:6px !important;
}

.rims-about-management-home > .rims-container{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    box-sizing:border-box !important;
    margin:0 !important;
    padding:0 !important;
}

/* Do NOT use flex-basis/width from older versions. */
.rims-about-management-home .rims-about-management-layout{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) !important;
    grid-auto-columns:auto !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    margin:0 !important;
    padding:0 !important;
    gap:16px !important;
}

/* Explicitly reset every possible old sizing rule. */
.rims-about-management-home .rims-about-management-layout > *{
    grid-column:auto !important;
    grid-row:auto !important;
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
    box-sizing:border-box !important;
}

/* RIMS v9.4 — inner spacing inside bordered homepage columns */
.rims-about-management-home .rims-about-management-layout > .home-info-card .home-info-card__body{
    padding:16px !important;
    box-sizing:border-box !important;
}
@media(max-width:650px){
    .rims-about-management-home .rims-about-management-layout > .home-info-card .home-info-card__body{
        padding:14px !important;
    }
}

/* RIMS v9.3 — bordered About RIMS / Management / Director's Report columns */
.rims-about-management-home .rims-about-management-layout > .home-info-card{
    border:1px solid #d6e2ea !important;
    border-radius:6px !important;
    background:#fff !important;
    box-sizing:border-box !important;
}

.rims-about-management-home .rims-director-report-card{
    width:auto !important;
    max-width:none !important;
    min-width:0 !important;
    justify-self:stretch !important;
    align-self:stretch !important;
}

/* Keep the Director image at a sensible size while allowing its card itself
   to fill the complete third column. */
.rims-about-management-home .rims-director-report-image{
    width:100% !important;
    min-height:250px;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    box-sizing:border-box !important;
}

.rims-about-management-home .rims-director-report-image img{
    width:auto !important;
    max-width:100% !important;
    height:auto !important;
    max-height:300px !important;
    object-fit:contain !important;
}

/* Ensure no inherited max-width constrains the three cards themselves. */
.rims-about-management-home .rims-about-panel,
.rims-about-management-home .rims-management-panel{
    justify-self:stretch !important;
    align-self:stretch !important;
}

/* Responsive */
@media(max-width:900px){
    .rims-about-management-home .rims-about-management-layout{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
}

@media(max-width:650px){
    .rims-about-management-home .rims-about-management-layout{
        grid-template-columns:1fr !important;
    }
}


/* RIMS Modern Government v5.6 - WordPress-driven homepage media */
.rims-home-gallery{width:100%;padding:0 14px 28px;box-sizing:border-box;background:#fff}
.rims-home-gallery>.rims-container{width:min(1480px,100%);max-width:none;margin:0 auto}
.rims-home-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.rims-home-gallery-item{display:block;aspect-ratio:16/10;overflow:hidden;border:1px solid #cbdbe5;border-radius:5px;background:#f7fafc}
.rims-home-gallery-item img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s ease}
.rims-home-gallery-item:hover img{transform:scale(1.03)}
@media(max-width:900px){.rims-home-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.rims-home-gallery-grid{grid-template-columns:1fr}}


/* v5.9 - Taller homepage carousel to prevent top/bottom image clipping */
.rims-home-carousel,
.rims-carousel,
.rims-carousel-wrap {
    min-height: 520px;
}

.rims-home-carousel img,
.rims-carousel img,
.rims-carousel-slide img {
    height: 520px;
    min-height: 520px;
    object-fit: contain;
    object-position: center center;
}

@media (max-width: 1024px) {
    .rims-home-carousel,
    .rims-carousel,
    .rims-carousel-wrap {
        min-height: 420px;
    }

    .rims-home-carousel img,
    .rims-carousel img,
    .rims-carousel-slide img {
        height: 420px;
        min-height: 420px;
    }
}

@media (max-width: 767px) {
    .rims-home-carousel,
    .rims-carousel,
    .rims-carousel-wrap {
        min-height: 300px;
    }

    .rims-home-carousel img,
    .rims-carousel img,
    .rims-carousel-slide img {
        height: 300px;
        min-height: 300px;
    }
}



/* =========================================================
   RIMS v7.1 — CLEAN CAROUSEL
   Desktop: 3 cards | Tablet: 2 | Mobile: 1
   Seven manually selected images | autoplay: 5 seconds
   ========================================================= */

.rims-carousel{
    width:100%;
    background:#f4f7f9;
    padding:14px 0 18px;
    margin:0;
    overflow:hidden;
    box-sizing:border-box;
}
.rims-carousel > .container{
    width:100%;
    max-width:1240px;
    margin:0 auto;
    padding:0 14px;
    box-sizing:border-box;
}
.rims-carousel .carousel-shell{
    position:relative;
    width:100%;
    height:320px;
    overflow:hidden;
    box-sizing:border-box;
}
.rims-carousel .carousel-track{
    display:flex;
    flex-wrap:nowrap;
    align-items:stretch;
    gap:14px;
    width:max-content;
    height:320px;
    margin:0;
    padding:0;
    transform:translate3d(0,0,0);
    transition:transform .55s ease;
    will-change:transform;
}
.rims-carousel .carousel-slide{
    flex:0 0 calc((min(100vw - 28px, 1212px) - 28px)/3);
    width:calc((min(100vw - 28px, 1212px) - 28px)/3);
    height:320px;
    margin:0;
    padding:0;
    box-sizing:border-box;
    overflow:hidden;
    border-radius:10px;
    background:#fff;
    box-shadow:0 2px 10px rgba(0,0,0,.13);
}
.rims-carousel .carousel-image-button{
    display:block;
    width:100%;
    height:100%;
    margin:0;
    padding:0;
    border:0;
    background:#fff;
    overflow:hidden;
    cursor:zoom-in;
}
.rims-carousel .carousel-image-button img{
    display:block;
    width:100%;
    height:100%;
    margin:0;
    padding:0;
    border:0;
    object-fit:cover;
    object-position:center;
}
.rims-carousel .carousel-control{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:10;
    width:42px;
    height:42px;
    margin:0;
    padding:0;
    border:0;
    border-radius:50%;
    background:rgba(8,47,80,.82);
    color:#fff;
    font-size:29px;
    line-height:42px;
    text-align:center;
    cursor:pointer;
}
.rims-carousel .carousel-prev{left:12px}
.rims-carousel .carousel-next{right:12px}
.rims-carousel .carousel-dots{
    position:absolute;
    left:50%;
    bottom:9px;
    transform:translateX(-50%);
    z-index:11;
    display:flex;
    gap:7px;
    padding:5px 9px;
    margin:0;
    border-radius:20px;
    background:rgba(0,0,0,.25);
}
.rims-carousel .carousel-dot{
    width:9px;
    height:9px;
    min-width:9px;
    min-height:9px;
    padding:0;
    margin:0;
    border:0;
    border-radius:50%;
    background:#fff;
    opacity:.55;
    cursor:pointer;
}
.rims-carousel .carousel-dot.active{opacity:1}
.rims-carousel .carousel-placeholder{
    width:100%;
    height:320px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-sizing:border-box;
    background:#eaf3f8;
    color:#526b7c;
}

/* Click-to-enlarge lightbox */
.rims-lightbox{
    position:fixed;
    inset:0;
    z-index:99999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:30px;
    box-sizing:border-box;
    background:rgba(0,0,0,.88);
}
.rims-lightbox[hidden]{display:none}
.rims-lightbox img{
    display:block;
    width:auto;
    height:auto;
    max-width:94vw;
    max-height:90vh;
    object-fit:contain;
}
.rims-lightbox-close{
    position:absolute;
    top:14px;
    right:20px;
    width:46px;
    height:46px;
    padding:0;
    border:0;
    border-radius:50%;
    background:rgba(255,255,255,.18);
    color:#fff;
    font-size:36px;
    line-height:42px;
    cursor:pointer;
}

@media(max-width:1024px){
    .rims-carousel > .container{max-width:100%;padding:0 12px}
    .rims-carousel .carousel-shell,
    .rims-carousel .carousel-track{height:280px}
    .rims-carousel .carousel-slide{
        flex-basis:calc((100vw - 38px - 14px)/2);
        width:calc((100vw - 38px - 14px)/2);
        height:280px;
    }
    .rims-carousel .carousel-placeholder{height:280px}
}
@media(max-width:700px){
    .rims-carousel{padding:10px 0 16px}
    .rims-carousel > .container{padding:0 10px}
    .rims-carousel .carousel-shell,
    .rims-carousel .carousel-track{height:230px}
    .rims-carousel .carousel-track{gap:10px}
    .rims-carousel .carousel-slide{
        flex-basis:calc(100vw - 20px);
        width:calc(100vw - 20px);
        height:230px;
    }
    .rims-carousel .carousel-placeholder{height:230px}
    .rims-carousel .carousel-control{width:38px;height:38px;line-height:38px;font-size:25px}
    .rims-carousel .carousel-prev{left:7px}
    .rims-carousel .carousel-next{right:7px}
}



/* =========================================================
   RIMS v8.0 — CAROUSEL REBUILT FROM SCRATCH
   Only .rims-carousel-v8 is used here. No dependency on the
   previous .rims-carousel rules.
   ========================================================= */
.rims-carousel-v8{width:100%;background:#fff;padding:14px 0 18px;margin:0;border:0;}
.rims-carousel-v8__inner{width:min(calc(100% - 28px),1480px);margin:0 auto;}
.rims-carousel-v8__viewport{position:relative;width:100%;overflow:hidden;margin:0;padding:0;border:0;background:#fff;}
.rims-carousel-v8__track{display:flex;gap:16px;width:max-content;margin:0;padding:0;transition:transform .55s ease;will-change:transform;}
.rims-carousel-v8__slide{flex:0 0 calc((min(100vw - 28px, 1480px) - 32px)/3);width:calc((min(100vw - 28px, 1480px) - 32px)/3);margin:0;padding:0;border:1px solid #d9e3eb;border-radius:9px;overflow:hidden;background:#f4f7f9;box-shadow:0 3px 12px rgba(7,48,80,.10);}
.rims-carousel-v8__image-button{display:block;width:100%;padding:0;margin:0;border:0;background:none;cursor:zoom-in;line-height:0;}
.rims-carousel-v8__image-button img{display:block;width:100%;aspect-ratio:16/9;height:auto;object-fit:cover;object-position:center center;margin:0;padding:0;}
.rims-carousel-v8__control{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:44px;height:44px;border:0;border-radius:50%;background:rgba(0,0,0,.68);color:#fff;font-size:32px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;}
.rims-carousel-v8__control:hover{background:rgba(0,0,0,.84);}
.rims-carousel-v8__prev{left:14px}.rims-carousel-v8__next{right:14px}
.rims-carousel-v8__dots{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);z-index:6;display:flex;gap:7px;padding:6px 9px;border-radius:20px;background:rgba(0,0,0,.25);}
.rims-carousel-v8__dot{width:10px;height:10px;padding:0;border:0;border-radius:50%;background:#fff;opacity:.60;cursor:pointer;}
.rims-carousel-v8__dot.is-active{opacity:1;transform:scale(1.1);}
.rims-carousel-v8__empty{width:100%;min-height:260px;display:flex;align-items:center;justify-content:center;text-align:center;background:#eef5f9;color:#0a3a61;padding:30px;}
.rims-carousel-v8__lightbox[hidden]{display:none;}
.rims-carousel-v8__lightbox{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.88);display:flex;align-items:center;justify-content:center;padding:40px;}
.rims-carousel-v8__lightbox img{display:block;max-width:94vw;max-height:90vh;width:auto;height:auto;object-fit:contain;box-shadow:0 8px 30px rgba(0,0,0,.45);}
.rims-carousel-v8__lightbox-close{position:absolute;top:16px;right:22px;width:44px;height:44px;border:0;border-radius:50%;background:#fff;color:#111;font-size:32px;line-height:1;cursor:pointer;}
body.rims-lightbox-open{overflow:hidden;}
@media(max-width:1024px){
 .rims-carousel-v8__slide{flex-basis:calc((min(100vw - 28px, 1480px) - 16px)/2);width:calc((min(100vw - 28px, 1480px) - 16px)/2);}
}
@media(max-width:700px){
 .rims-carousel-v8{padding:10px 0 14px;}
 .rims-carousel-v8__inner{width:calc(100% - 20px);}
 .rims-carousel-v8__slide{flex-basis:calc(100vw - 20px);width:calc(100vw - 20px);}
 .rims-carousel-v8__track{gap:10px;}
 .rims-carousel-v8__control{width:38px;height:38px;font-size:27px;}
 .rims-carousel-v8__prev{left:8px}.rims-carousel-v8__next{right:8px}
 .rims-carousel-v8__dots{bottom:8px;gap:5px;padding:5px 7px;}
 .rims-carousel-v8__dot{width:8px;height:8px;}
 .rims-carousel-v8__lightbox{padding:20px;}
}


/* =========================================================
   RIMS v8.2 — FINAL CAROUSEL LAYOUT
   ========================================================= */
.rims-carousel {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 28px;
    padding: 0 14px;
    box-sizing: border-box;
    position: relative;
}

.rims-carousel .carousel-shell {
    width: 100%;
    overflow: hidden;
    position: relative;
    height: auto !important;
    min-height: 0 !important;
    margin: 0;
    padding: 0;
}

.rims-carousel .carousel-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    width: 100% !important;
    transform: translate3d(0,0,0);
    transition: transform .55s ease-in-out;
    align-items: stretch;
    height: auto !important;
}

.rims-carousel .carousel-slide {
    flex: 0 0 33.333333% !important;
    width: 33.333333% !important;
    min-width: 33.333333% !important;
    box-sizing: border-box;
    padding: 0 7px;
    height: auto !important;
    min-height: 0 !important;
    position: relative;
}

.rims-carousel .carousel-slide a {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: #eef3f6;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
}

.rims-carousel .carousel-slide img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: center center !important;
    margin: 0 !important;
}

.rims-carousel .carousel-prev,
.rims-carousel .carousel-next {
    position: absolute;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff;
    cursor: pointer;
    font-size: 28px;
    line-height: 42px;
    text-align: center;
    padding: 0;
}

.rims-carousel .carousel-prev { left: 18px; }
.rims-carousel .carousel-next { right: 18px; }

.rims-carousel .carousel-prev:hover,
.rims-carousel .carousel-next:hover {
    background: rgba(0,0,0,.75);
}

.rims-carousel .carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.rims-carousel .carousel-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.25);
    cursor: pointer;
}

.rims-carousel .carousel-dot.active {
    background: #0b4f7c;
    transform: scale(1.15);
}

@media (max-width: 1024px) {
    .rims-carousel .carousel-slide {
        flex-basis: 50% !important;
        width: 50% !important;
        min-width: 50% !important;
    }
}

@media (max-width: 700px) {
    .rims-carousel {
        padding: 0 8px;
    }
    .rims-carousel .carousel-slide {
        flex-basis: 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        padding: 0 4px;
    }
    .rims-carousel .carousel-prev { left: 12px; }
    .rims-carousel .carousel-next { right: 12px; }
}


/* =========================================================
   RIMS v8.2 — CENTER HOMEPAGE THREE-PERSON CARDS
   ========================================================= */
.rims-persons-home,
.rims-home-persons,
.rims-three-persons,
.rims-person-grid {
    width: 100% !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.rims-persons-home .persons-grid,
.rims-home-persons .persons-grid,
.rims-three-persons .persons-grid,
.rims-person-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.rims-persons-home .person-card,
.rims-home-persons .person-card,
.rims-three-persons .person-card,
.rims-person-grid .person-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

@media (max-width: 900px) {
    .rims-persons-home .persons-grid,
    .rims-home-persons .persons-grid,
    .rims-three-persons .persons-grid,
    .rims-person-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .rims-persons-home .persons-grid,
    .rims-home-persons .persons-grid,
    .rims-three-persons .persons-grid,
    .rims-person-grid {
        grid-template-columns: 1fr !important;
    }
}


/* =========================================================
   RIMS v8.3 — four-card rolling carousel
   Desktop: 4 cards | Tablet: 2 cards | Mobile: 1 card
   ========================================================= */
.rims-carousel .carousel-track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    transition: transform .55s ease-in-out !important;
}

.rims-carousel .carousel-slide {
    flex: 0 0 25% !important;
    width: 25% !important;
    min-width: 25% !important;
    box-sizing: border-box !important;
    padding: 0 7px !important;
}

.rims-carousel .carousel-slide a {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
}

.rims-carousel .carousel-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

@media (max-width: 1024px) {
    .rims-carousel .carousel-slide {
        flex-basis: 50% !important;
        width: 50% !important;
        min-width: 50% !important;
    }
}

@media (max-width: 700px) {
    .rims-carousel .carousel-slide {
        flex-basis: 100% !important;
        width: 100% !important;
        min-width: 100% !important;
    }
}


/* =========================================================
   RIMS v8.5 — carousel and three-person final alignment
   ========================================================= */

/* Four carousel cards must fill the complete carousel viewport. */
.rims-clean-carousel {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 14px 0 18px !important;
    box-sizing: border-box !important;
}

.rims-clean-carousel__viewport {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 14px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.rims-clean-carousel__track {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    width: max-content !important;
    margin: 0 !important;
    padding: 0 !important;
}

.rims-clean-carousel__slide {
    flex: 0 0 calc((100vw - 76px) / 4) !important;
    width: calc((100vw - 76px) / 4) !important;
    min-width: calc((100vw - 76px) / 4) !important;
    height: 300px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.rims-clean-carousel__slide a,
.rims-clean-carousel__image {
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

.rims-clean-carousel__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #f3f7f9 !important;
}

@media (max-width: 1024px) {
    .rims-clean-carousel__slide {
        flex-basis: calc((100vw - 46px) / 2) !important;
        width: calc((100vw - 46px) / 2) !important;
        min-width: calc((100vw - 46px) / 2) !important;
        height: 280px !important;
    }
}

@media (max-width: 700px) {
    .rims-clean-carousel__viewport {
        padding: 0 10px !important;
    }

    .rims-clean-carousel__track {
        gap: 10px !important;
    }

    .rims-clean-carousel__slide {
        flex-basis: calc(100vw - 20px) !important;
        width: calc(100vw - 20px) !important;
        min-width: calc(100vw - 20px) !important;
        height: 240px !important;
    }
}

/* Three homepage persons: use the entire content width and center exactly
   three equal cards. No fourth-column space. */
.four-person-section {
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.four-person-grid {
    width: 100% !important;
    max-width: 1240px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    justify-content: center !important;
    align-items: stretch !important;
}

.four-person-grid .person-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

@media (max-width: 900px) {
    .four-person-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .four-person-grid {
        grid-template-columns: 1fr !important;
    }
}


/* RIMS v8.7 — official About RIMS and Management homepage content */
.rims-about-management-home .home-info-card__body{
    height:100%;
    box-sizing:border-box;
}
.rims-about-management-home .home-info-card__body p{
    line-height:1.65;
    margin:0 0 12px;
    text-align:justify;
}
.rims-about-management-home .home-info-readmore{
    display:inline-block;
    margin-top:6px;
    font-weight:700;
    text-decoration:none;
}
.rims-about-management-home .director-report-thumb{
    display:block;
    width:100%;
    max-height:210px;
    object-fit:cover;
    border-radius:6px;
    margin:0 0 12px;
}


/* RIMS v8.8 — Director's Report image correction only
   Preserve the source photograph's aspect ratio and give the image
   a larger, centered presentation area. */
.rims-about-management-home .director-report-card .director-report-thumb{
    display:block;
    width:220px;
    max-width:100%;
    height:auto;
    max-height:none;
    object-fit:contain;
    object-position:center;
    margin:0 auto 16px;
    border-radius:6px;
}

@media (max-width:900px){
    .rims-about-management-home .director-report-card .director-report-thumb{
        width:210px;
    }
}


/* =========================================================
   RIMS v10.1 — definitive mobile navigation and content sizing
   ========================================================= */
.mobile-menu-bar{display:none;}

@media (max-width:700px){
    /* Prevent the utility bar from forcing the page wider than the phone. */
    html, body{max-width:100%;overflow-x:hidden;}
    body .topbar .container{display:block!important;width:100%!important;box-sizing:border-box!important;}
    body .topbar .gov-left{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:5px!important;font-size:11px!important;line-height:1.35!important;}
    body .topbar .gov-right{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:6px!important;font-size:10px!important;line-height:1.35!important;margin-top:5px!important;}
    body .topbar .gov-left > span, body .topbar .gov-right > *{white-space:normal!important;}

    /* Compact identity row; the menu gets its own full-width row below it. */
    html body header.site-header > .brand-row{
        height:auto!important;min-height:92px!important;max-height:none!important;
        padding:8px 10px!important;gap:8px!important;flex-wrap:nowrap!important;
        overflow:hidden!important;box-sizing:border-box!important;
    }
    html body header.site-header > .brand-row > .site-brand{
        flex:1 1 auto!important;min-width:0!important;width:auto!important;max-width:none!important;
        height:auto!important;min-height:72px!important;max-height:82px!important;gap:7px!important;
    }
    html body header.site-header > .brand-row > .site-brand > .logo-box{
        flex:0 0 48px!important;width:48px!important;min-width:48px!important;max-width:48px!important;
        height:68px!important;min-height:68px!important;max-height:68px!important;
    }
    html body header.site-header > .brand-row > .site-brand > .logo-box > .custom-logo-link{
        width:46px!important;height:64px!important;max-width:46px!important;max-height:64px!important;
    }
    html body header.site-header > .brand-row > .site-brand > .logo-box img.custom-logo{
        width:auto!important;height:auto!important;max-width:44px!important;max-height:62px!important;
    }
    html body header.site-header > .brand-row .brand-text{min-width:0!important;width:auto!important;height:auto!important;max-height:76px!important;overflow:hidden!important;}
    html body header.site-header > .brand-row .brand-text .site-title{
        display:block!important;font-size:16px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
    }
    html body header.site-header > .brand-row .brand-text .site-hindi{font-size:12px!important;line-height:1.2!important;}
    html body header.site-header > .brand-row .brand-text .site-tagline{font-size:7.5px!important;line-height:1.25!important;white-space:normal!important;}
    html body header.site-header > .brand-row > .language-search{display:none!important;}
    html body header.site-header > .brand-row > .nav-toggle{display:none!important;}

    .mobile-menu-bar{
        display:flex!important;align-items:center!important;justify-content:flex-end!important;
        width:100%!important;min-height:44px!important;padding:6px 10px!important;
        box-sizing:border-box!important;background:#063e68!important;border-top:1px solid rgba(255,255,255,.15)!important;
    }
    .mobile-menu-bar .nav-toggle-mobile{
        display:inline-flex!important;align-items:center!important;justify-content:center!important;
        min-width:86px!important;min-height:36px!important;padding:7px 14px!important;
        border:1px solid #d5e0e7!important;border-radius:4px!important;background:#fff!important;color:#123f60!important;
        font-size:13px!important;font-weight:700!important;line-height:1!important;cursor:pointer!important;
    }

    html body header.site-header > nav.main-nav{
        display:none!important;width:100%!important;min-height:0!important;box-sizing:border-box!important;
        background:#063e68!important;overflow:visible!important;
    }
    html body header.site-header > nav.main-nav.is-open{display:block!important;}
    html body header.site-header > nav.main-nav .primary-menu{
        display:block!important;width:100%!important;min-height:0!important;margin:0!important;padding:0!important;
    }
    html body header.site-header > nav.main-nav .primary-menu > li,
    html body header.site-header > nav.main-nav .primary-menu > li > a{
        width:100%!important;box-sizing:border-box!important;
    }
    html body header.site-header > nav.main-nav a{
        display:block!important;white-space:normal!important;padding:11px 14px!important;font-size:14px!important;line-height:1.3!important;
    }
    html body header.site-header > nav.main-nav .sub-menu{
        position:static!important;display:none!important;width:100%!important;max-width:none!important;min-width:0!important;
        padding-left:12px!important;background:#0a4e76!important;box-shadow:none!important;
    }
    html body header.site-header > nav.main-nav li.menu-item-has-children.is-open > .sub-menu{display:block!important;}

    /* Mobile post/page typography: never let long titles create a giant column. */
    html body .rims-single,
    html body .rims-page,
    html body .rims-archive,
    html body .content-area,
    html body main#content{max-width:100%!important;box-sizing:border-box!important;overflow-wrap:anywhere!important;word-break:normal!important;}
    html body .rims-single .entry-title,
    html body article .entry-title,
    html body .rims-page .entry-title,
    html body .page-title,
    html body .rims-archive .page-title,
    html body h1.entry-title{
        font-size:28px!important;line-height:1.22!important;font-weight:700!important;
        letter-spacing:normal!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;
        max-width:100%!important;margin:0 0 18px!important;
    }
    html body article p,
    html body article li,
    html body .entry-content,
    html body .entry-content p{font-size:16px!important;line-height:1.65!important;overflow-wrap:anywhere!important;}
    html body article img,.entry-content img{max-width:100%!important;height:auto!important;}
}

@media (max-width:390px){
    html body header.site-header > .brand-row{min-height:86px!important;padding:7px 8px!important;}
    html body header.site-header > .brand-row > .site-brand > .logo-box{flex-basis:43px!important;width:43px!important;min-width:43px!important;max-width:43px!important;}
    html body header.site-header > .brand-row .brand-text .site-title{font-size:14px!important;}
    html body header.site-header > .brand-row .brand-text .site-hindi{font-size:11px!important;}
    html body header.site-header > .brand-row .brand-text .site-tagline{font-size:7px!important;}
    html body .rims-single .entry-title,html body article .entry-title,html body h1.entry-title{font-size:25px!important;line-height:1.22!important;}
}


/* RIMS v10.2 — final mobile post/page layout correction */
@media (max-width: 800px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    html body .content-grid,
    html body main .content-grid,
    html body .rims-single .content-grid,
    html body .rims-page .content-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 18px !important;
        box-sizing: border-box !important;
    }

    html body .content-grid > *,
    html body .rims-single article,
    html body .rims-page article,
    html body .entry-content {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body .content-grid .sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }

    html body article .entry-title,
    html body .rims-single .entry-title,
    html body .rims-page .entry-title,
    html body h1.entry-title {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 14px !important;
        padding: 0 !important;
        font-size: 24px !important;
        line-height: 1.28 !important;
        font-weight: 700 !important;
        letter-spacing: normal !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: normal !important;
        box-sizing: border-box !important;
    }

    html body article,
    html body article p,
    html body article li,
    html body .entry-content,
    html body .entry-content p {
        overflow-wrap: break-word !important;
        word-break: normal !important;
    }
}

@media (max-width: 390px) {
    html body article .entry-title,
    html body .rims-single .entry-title,
    html body .rims-page .entry-title,
    html body h1.entry-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
    }
}


/* RIMS v10.3 — contain mobile page/post content with safe side spacing */
@media (max-width: 800px) {
    html body .site-main,
    html body main,
    html body .content-area {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Keep article/page content away from both screen edges. */
    html body .content-grid,
    html body .content-grid > article,
    html body .content-grid > .content-area,
    html body article,
    html body .entry-content {
        box-sizing: border-box !important;
    }

    html body .content-grid {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    html body .content-grid > article,
    html body .content-grid > .content-area {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    html body article .entry-title,
    html body .rims-single .entry-title,
    html body .rims-page .entry-title,
    html body h1.entry-title {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    html body .entry-content,
    html body .entry-content p,
    html body .entry-content li,
    html body .entry-content img,
    html body .entry-content iframe,
    html body .entry-content table {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Breadcrumb also stays inside the viewport. */
    html body .breadcrumb,
    html body .breadcrumbs,
    html body .rims-breadcrumb,
    html body .breadcrumb-wrap {
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
    }

    /* Prevent long unbroken strings from pushing the page sideways. */
    html body article,
    html body article *,
    html body .entry-content,
    html body .entry-content * {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 390px) {
    html body .content-grid {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}

/* RIMS v10.4 — Google Map to the right of Useful Information */
.footer-grid{grid-template-columns:1.25fr 1fr 1fr 1.2fr;align-items:start}
.footer-map-frame{width:100%;height:170px;border:1px solid rgba(255,255,255,.25);border-radius:5px;overflow:hidden;background:#fff}
.footer-map-frame iframe{display:block;width:100%;height:100%;border:0}
.footer-map-link{display:inline-block;margin-top:8px;font-size:12px}
@media(max-width:950px){.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.footer-grid{grid-template-columns:1fr}.footer-map-frame{height:220px}}

/* RIMS v10.5 — Wider four-column footer on desktop */
@media (min-width: 951px) {
    .footer-grid {
        width: min(calc(100% - 40px), 1500px);
        max-width: 1500px;
        margin-left: auto;
        margin-right: auto;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 32px;
    }
}
