/* =========================================================
   Nagar Palika Parishad Narendra Nagar - Main Stylesheet
   (Header, Hero, Services, History, Leadership & Footer)
   ========================================================= */

:root {
    --np-blue: #0b2f63;
    --np-blue-dark: #071f43;
    --np-blue-light: #14498f;
    --np-saffron: #e8801a;
    --np-green: #1c7a51;
    --np-ink: #182233;
    --np-body: #4b586b;
    --np-line: #e3e8ef;
    --np-soft: #f5f7fa;
    --np-soft-2: #eef2f7;
    --np-shadow: 0 10px 30px rgba(11,47,99,.08);
    --np-shadow-lg: 0 18px 45px rgba(11,47,99,.14);
    --np-radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    overflow-x: hidden;
}

body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--np-body);
    background: #fff;
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .np-brand-title {
    font-family: "Merriweather", Georgia, serif;
    color: var(--np-ink);
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
}

:focus-visible {
    outline: 3px solid var(--np-saffron);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 3000;
    background: var(--np-blue);
    color: #fff;
    padding: .6rem 1rem;
}

.skip-link:focus {
    left: 8px;
    top: 8px;
}

.np-section {
    padding: 54px 0;
}

.np-section-alt {
    background: #f9fbe1;
}

.np-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--np-saffron);
    margin-bottom: .6rem;
}

.np-eyebrow:before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--np-saffron);
    display: inline-block;
}

.np-title {
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    margin-bottom: .6rem;
}

.np-subtitle {
    max-width: 640px;
    margin-bottom: 0;
}

.np-head-center .np-subtitle {
    margin-inline: auto;
}

.btn {
    font-weight: 600;
    border-radius: 10px;
    padding: .68rem 1.35rem;
    transition: all .25s ease;
}

.btn-np {
    background: var(--np-blue);
    color: #fff;
    border: 1px solid var(--np-blue);
}

.btn-np:hover {
    background: var(--np-blue-light);
    color: #fff;
    transform: translateY(-2px);
}

.btn-np-saffron {
    background: var(--np-saffron);
    border: 1px solid var(--np-saffron);
    color: #fff;
}

.btn-np-saffron:hover {
    background: #cf6d0d;
    color: #fff;
    transform: translateY(-2px);
}

.btn-np-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,.75);
    color: #fff;
}

.btn-np-outline:hover {
    background: #fff;
    color: var(--np-blue);
}

.btn-np-ghost {
    border: 1px solid var(--np-line);
    color: var(--np-blue);
    background: #fff;
}

.btn-np-ghost:hover {
    border-color: var(--np-blue);
    background: var(--np-soft);
}

/* --- HEADER & UTILITY --- */
.np-utility {
    background: var(--np-blue-dark);
    color: #d5deeb;
    font-size: .82rem;
    padding: .38rem 0;
}

.np-utility a {
    color: #d5deeb;
}

.np-utility a:hover {
    color: #fff;
}

.np-util-list {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.np-sep {
    width: 1px;
    height: 14px;
    background: rgba(255,255,255,.22);
}

.np-header {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: #fff;
    border-bottom: 1px solid var(--np-line);
    transition: box-shadow .25s;
}

.np-header.is-stuck {
    box-shadow: 0 6px 24px rgba(11,47,99,.12);
}

.np-navbar {
    padding: 25px 0;
}

.np-brand {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.np-brand img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.np-brand-title {
    font-size: 17px;
    color: var(--np-blue);
    line-height: 1.25;
}

.np-brand-sub {
    font-size: 15px;
    color: var(--np-body);
    letter-spacing: .04em;
}

.np-nav .nav-link {
    color: var(--np-ink);
    font-weight: 600;
    font-size: .93rem;
    padding: .5rem .8rem;
    position: relative;
}

.np-nav .nav-link:after {
    content: "";
    position: absolute;
    left: .8rem;
    right: .8rem;
    bottom: .18rem;
    height: 2px;
    background: var(--np-saffron);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s;
}

.np-nav .nav-link:hover:after, .np-nav .nav-link.active:after {
    transform: scaleX(1);
}

.np-nav .nav-link.active {
    color: var(--np-blue);
}

.navbar-toggler {
    border: 1px solid var(--np-line);
    padding: .35rem .55rem;
    color: var(--np-blue);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.np-offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--np-line);
}

.np-offcanvas .nav-link {
    padding: .7rem .2rem;
    border-bottom: 1px solid var(--np-line);
}

/* --- HERO BANNER (UPDATED & FIXED) --- */
.np-hero {
    width: 100%;
    background: transparent !important;
}

.np-hero .carousel-inner {
    width: 100%;
    height: auto !important;
    overflow: hidden;
}

.np-hero .carousel-item {
    height: auto !important;
    min-height: auto !important;
    position: relative;
    background-color: transparent !important;
}

.np-slide-img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
}

.np-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 25, 52, 0.45), rgba(7, 25, 52, 0.25) 45%, rgba(7, 25, 52, 0.08));
}

.np-hero .carousel-caption {
    right: 0;
    left: 0;
    bottom: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    padding: 0 4.5rem;
    z-index: 2;
}

.np-hero-inner {
    max-width: 720px;
}

.np-hero-kicker {
    color: #ffd9a8;
    letter-spacing: .28em;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: .9rem;
}

.np-hero h1 {
    color: #fff;
    font-size: clamp(1.8rem, 3.6vw, 3rem);
    margin-bottom: .35rem;
}

.np-hero-place {
    color: #ffd9a8;
    font-weight: 600;
    margin-bottom: 1rem;
}

.np-hero-text {
    color: #e6ecf5;
    max-width: 560px;
    margin-bottom: 1.6rem;
}

.np-hero .carousel-indicators {
    margin-bottom: 1.6rem;
}

.np-hero .carousel-indicators [data-bs-target] {
    width: 34px;
    height: 4px;
    border-radius: 3px;
    background: rgba(255,255,255,.5);
    border: 0;
}

.np-hero .carousel-indicators .active {
    background: var(--np-saffron);
}

/* --- CARDS & COMPONENTS --- */
.np-card {
    background: #fff;
    border: 1px solid var(--np-line);
    border-radius: var(--np-radius);
    padding: 1.7rem 1.5rem;
    height: 100%;
    transition: transform .28s, box-shadow .28s, border-color .28s;
    position: relative;
    overflow: hidden;
}

.np-card:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 3px;
    width: 100%;
    background: var(--np-saffron);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}

.np-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--np-shadow-lg);
    border-color: transparent;
}

.np-card:hover:before {
    transform: scaleX(1);
}

.np-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: var(--np-soft-2);
    color: var(--np-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: .28s;
}

.np-card:hover .np-card-icon {
    background: var(--np-blue);
    color: #fff;
}

.np-card h3 {
    font-size: 1.06rem;
    margin-bottom: .45rem;
}

.np-card p {
    font-size: .92rem;
    margin-bottom: 1rem;
}

.np-card-link {
    color: var(--np-blue);
    font-weight: 600;
    font-size: .89rem;
    display: inline-flex;
    gap: .35rem;
    align-items: center;
}

.np-card-link:hover {
    color: var(--np-saffron);
}

.np-dept-card {
    text-align: left;
    padding: 1.4rem 1.25rem;
}

.np-dept-card .np-card-icon {
    width: 46px;
    height: 46px;
    font-size: 1.25rem;
    border-radius: 50%;
}

.np-marquee {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.np-marquee-track {
    display: flex;
    width: max-content;
    animation: np-scroll 38s linear infinite;
}

.np-marquee:hover .np-marquee-track {
    animation-play-state: paused;
}

.np-marquee-item {
    flex: 0 0 auto;
    width: 210px;
    height: 110px;
    margin: 0 .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid var(--np-line);
    border-radius: 12px;
    background: #fff;
    transition: .25s;
}

.np-marquee-item img {
    height: 78px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .62;
    transition: .3s;
}

.np-marquee-item:hover {
    box-shadow: var(--np-shadow);
    transform: translateY(-3px);
}

.np-marquee-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.portal-text-logo {
    font-family: "Merriweather", serif;
    font-weight: 900;
    font-size: 2.1rem;
    color: var(--np-blue);
}

@keyframes np-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.np-mann-card {
    background: #fff;
    border: 1px solid var(--np-line);
    border-radius: var(--np-radius);
    overflow: hidden;
    box-shadow: var(--np-shadow-lg);
}

.np-mann-card a {
    display: block;
}

.np-mann-card img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
}

.np-about-media {
    position: relative;
    border-radius: var(--np-radius);
    overflow: hidden;
    box-shadow: var(--np-shadow-lg);
    width: 100%;
    aspect-ratio: 4 / 5;
}

.np-about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.np-about-badge {
    position: absolute;
    left: 1.2rem;
    bottom: 1.2rem;
    background: var(--np-blue);
    color: #fff;
    border-radius: 12px;
    padding: .9rem 1.15rem;
}

.np-about-badge strong {
    display: block;
    font-size: 1.5rem;
}

.np-about-badge span {
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .85;
}

.np-check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.6rem;
}

.np-check-list li {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    margin-bottom: .55rem;
    font-size: .95rem;
}

.np-check-list i {
    color: var(--np-green);
    margin-top: .25rem;
}

.np-init-card {
    background: #fff;
    border: 1px solid var(--np-line);
    border-radius: var(--np-radius);
    overflow: hidden;
    height: 100%;
    transition: .28s;
}

.np-init-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--np-shadow-lg);
}

.np-init-media {
    height: 220px;
    overflow: hidden;
}

.np-init-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.np-init-card:hover .np-init-media img {
    transform: scale(1.07);
}

.np-init-body {
    padding: 1.4rem 1.4rem 1.6rem;
}

.np-init-body h3 {
    font-size: 1.1rem;
    margin-bottom: .5rem;
}

.np-stats {
    background: var(--np-blue);
    background-image: linear-gradient(rgba(7,25,52,.92),rgba(7,25,52,.92)), url("../images/hero-1.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
}

.np-stats .np-title, .np-stats .np-subtitle {
    color: #fff;
}

.np-stats .np-subtitle {
    color: #cfdaea;
}

.np-stat {
    text-align: center;
    padding: 1.4rem .5rem;
    border-radius: var(--np-radius);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    height: 100%;
}

.np-stat i {
    font-size: 1.6rem;
    color: var(--np-saffron);
}

.np-stat-value {
    font-family: "Merriweather", serif;
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: 700;
    margin: .5rem 0 .1rem;
}

.np-stat-label {
    font-size: .84rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #cfdaea;
    margin: 0;
}

.np-info-panel {
    background: #fff;
    border: 1px solid var(--np-line);
    border-radius: var(--np-radius);
    padding: 1.5rem;
    height: 100%;
    box-shadow: var(--np-shadow);
}

.np-panel-head {
    display: flex;
    gap: 1rem;
    align-items: center;
    border-bottom: 1px solid var(--np-line);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.np-panel-head h3 {
    margin: 0;
    font-size: 1.25rem;
}

.np-download-list {
    display: grid;
    gap: .65rem;
}

.np-download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    border: 1px solid var(--np-line);
    border-radius: 10px;
    color: var(--np-ink);
    transition: .22s;
}

.np-download-item:hover {
    border-color: var(--np-blue);
    color: var(--np-blue);
    transform: translateX(3px);
    box-shadow: var(--np-shadow);
}

.np-download-item > span {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.np-download-item > span > i {
    font-size: 1.35rem;
    color: var(--np-saffron);
}

.np-download-item small {
    display: block;
    color: var(--np-body);
    font-size: .75rem;
}

.np-download-item > i {
    color: var(--np-blue);
}

.np-help-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .65rem;
}

.np-help-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: .8rem .9rem;
    border: 1px solid var(--np-line);
    border-radius: 10px;
    color: var(--np-ink);
    transition: .22s;
}

.np-help-item:hover {
    border-color: var(--np-blue);
    box-shadow: var(--np-shadow);
    transform: translateY(-2px);
    color: var(--np-blue);
}

.np-help-item span {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.np-help-item span i {
    color: var(--np-green);
}

.np-help-item strong {
    font-size: .82rem;
}

.np-help-item b {
    font-size: .9rem;
    color: var(--np-blue);
    white-space: nowrap;
}

.np-contact-card {
    background: #fff;
    border: 1px solid var(--np-line);
    border-radius: var(--np-radius);
    padding: 2rem;
    box-shadow: var(--np-shadow);
    height: 100%;
}

.np-contact-item {
    display: flex;
    gap: .9rem;
    margin-bottom: 1.1rem;
}

.np-contact-item i {
    color: var(--np-blue);
    font-size: 1.15rem;
    margin-top: .2rem;
}

.np-contact-item strong {
    display: block;
    color: var(--np-ink);
    font-size: .92rem;
}

.np-contact-item span, .np-contact-item a {
    font-size: .92rem;
    color: var(--np-body);
}

.form-control, .form-control:focus {
    border-radius: 10px;
    border-color: var(--np-line);
    box-shadow: none;
}

.form-control:focus {
    border-color: var(--np-blue-light);
}

.form-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--np-ink);
}

.np-quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    background: #fff;
    border: 1px solid var(--np-line);
    border-radius: 10px;
    padding: .85rem 1.05rem;
    color: var(--np-ink);
    font-weight: 600;
    font-size: .9rem;
    transition: .25s;
    height: 100%;
}

.np-quick-link:hover {
    border-color: var(--np-blue);
    color: var(--np-blue);
    box-shadow: var(--np-shadow);
    transform: translateY(-3px);
}

.np-quick-link i {
    color: var(--np-saffron);
}

/* --- FOOTER --- */
.np-footer {
    background: var(--np-blue-dark);
    color: #b9c6d9;
    padding: 66px 0 0;
}

.np-footer h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1.15rem;
}

.np-footer a {
    color: #b9c6d9;
    font-size: .92rem;
}

.np-footer a:hover {
    color: #fff;
}

.np-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.np-footer-links li {
    margin-bottom: .55rem;
}

.np-footer-brand {
    display: flex;
    gap: .9rem;
    align-items: center;
    margin-bottom: 1rem;
}

.np-footer-brand img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.np-footer-brand strong {
    color: #fff;
    font-family: "Merriweather", serif;
    font-size: 1rem;
    display: block;
}

.np-footer-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    margin-top: 2.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,.12);
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.np-footer-logos a {
    min-width: 130px;
    padding: .65rem 1rem;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    background: rgba(255,255,255,.04);
}

.np-footer-logos a:hover {
    background: var(--np-saffron);
    border-color: var(--np-saffron);
}

.np-footer-bottom {
    margin-top: 0;
    padding: 1.15rem 0;
    font-size: .85rem;
}

.np-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1035;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    align-items: flex-end;
}

.np-float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: var(--np-shadow-lg);
    transition: .22s;
}

.np-float-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.np-float-grievance {
    background: var(--np-saffron);
}

.np-float-access {
    background: var(--np-green);
}

.np-float-top {
    background: var(--np-blue);
    opacity: 0;
    visibility: hidden;
}

.np-float-top.is-visible {
    opacity: 1;
    visibility: visible;
}

body.np-large-text {
    font-size: 1.12rem;
}

body.np-high-contrast {
    filter: contrast(1.28) saturate(1.12);
}

.np-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s, transform .6s;
}

.np-reveal.is-visible {
    opacity: 1;
    transform: none;
}

.modal-content {
    border-radius: var(--np-radius);
}

.p-10 {
    padding: 10px 0;
}

.p-20 {
    padding: 20px 0;
}

.p-30 {
    padding: 30px 0;
}

/* =========================================================
   ADDITIONAL STYLES FOR ABOUT PAGE & INTERNAL COMPONENTS
   ========================================================= */

/* --- Inner Header / Breadcrumbs --- */
.np-inner-header {
    position: relative;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.np-inner-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgb(2 11 24 / 97%) 0%, rgb(19 56 145 / 96%) 100%);
    z-index: 1;
}

.np-inner-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.np-inner-header-content h1 {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.np-breadcrumb-wrapper {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.35rem 1rem;
    border-radius: 50px;
}

.np-breadcrumb {
    font-size: 0.88rem;
    color: #e2e8f0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.np-breadcrumb-item a {
    color: #ffd9a8;
    text-decoration: none;
}

.np-breadcrumb-item.active {
    color: #ffffff;
    font-weight: 600;
}

/* --- History & Badges --- */
.np-fact-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff7ed;
    border: 1px solid #ffedd5;
    border-left: 4px solid var(--np-saffron);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    color: #9a3412;
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

.np-img-frame {
    border: 1px solid var(--np-line);
    padding: 8px;
    background: #ffffff;
    border-radius: var(--np-radius);
    box-shadow: var(--np-shadow);
    width: 100%;
    height: 100%;
}

.np-img-frame img {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- President Message Section --- */
.np-president-card {
    background: #ffffff;
    border: 1px solid var(--np-line);
    border-radius: var(--np-radius);
    padding: 2rem;
    box-shadow: var(--np-shadow);
}

.np-president-img-wrap img {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--np-line);
}

.np-signature-block {
    border-top: 1px solid var(--np-line);
    padding-top: 1rem;
    margin-top: 1.5rem;
}

.np-signature-block .name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--np-ink);
    margin: 0;
}

.np-signature-block .title {
    font-size: 0.9rem;
    color: var(--np-body);
    margin: 0;
}

/* --- Ward Members & Leadership Grids --- */
.np-card-grid {
    display: grid;
    gap: 1.5rem;
}

.np-ward-grid {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .np-ward-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .np-ward-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.np-member-card {
    background: #ffffff;
    border: 1px solid var(--np-line);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s, box-shadow 0.25s;
}

.np-member-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--np-shadow);
}

.np-member-img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 160px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--np-soft-2);
    background: var(--np-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.np-member-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.np-member-info p {
    font-size: 0.92rem;
    margin-bottom: 0.3rem;
}

/* --- Leadership Grid --- */
.np-leadership-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .np-leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.np-leader-card {
    background: #ffffff;
    border: 1px solid var(--np-line);
    border-top: 4px solid var(--np-blue-light);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: var(--np-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.np-leader-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--np-blue-light);
    background: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.np-leader-card h3 {
    font-size: 1.2rem;
    color: var(--np-ink);
    margin-bottom: 0.2rem;
}

.np-leader-subtitle {
    font-size: 0.88rem;
    color: var(--np-saffron);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.np-leader-img-box {
    width: 100%;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--np-line);
    background: var(--np-soft);
}

.np-leader-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* --- Commitment Section --- */
.np-commitment-section {
    background: var(--np-soft);
    border-top: 1px solid var(--np-line);
    border-bottom: 1px solid var(--np-line);
}

.np-commitment-card {
    background: #ffffff;
    border: 1px solid var(--np-line);
    border-radius: var(--np-radius);
    padding: 2.25rem 2rem;
    box-shadow: var(--np-shadow);
}

.np-slogan-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.np-slogan-pill {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: var(--np-green);
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.95rem;
}

.np-divider {
    height: 1px;
    background: var(--np-line);
    margin: 0;
    border: none;
}

/* =========================================================
   Media Queries & Responsiveness Overrides
   ========================================================= */
@media(max-width: 991.98px) {
    .np-section {
        padding: 62px 0;
    }

    .np-hero .carousel-item {
        height: auto !important;
    }

    .np-stats {
        background-attachment: scroll;
    }
}

@media(max-width: 767.98px) {
    .np-section {
        padding: 52px 0;
    }

    .np-hero .carousel-item {
        height: auto !important;
        min-height: auto !important;
        aspect-ratio: auto !important;
    }

    .np-hero .np-slide-img {
        object-fit: contain !important;
    }

    .np-hero .carousel-caption {
        text-align: center;
        align-items: center;
        padding: 1rem;
        justify-content: center;
    }

    .np-hero-inner {
        text-align: center;
    }

    .np-hero-text {
        margin-inline: auto;
        font-size: 0.88rem;
        margin-bottom: 0.8rem;
    }

    .np-hero h1 {
        font-size: 1.35rem;
    }

    .np-brand img {
        width: 46px;
        height: 46px;
    }

    .np-brand-title {
        font-size: .88rem;
    }

    .np-brand-sub {
        font-size: .7rem;
    }

    .np-marquee-item {
        width: 160px;
        height: 95px;
    }

    .np-marquee-item img {
        height: 62px;
    }

    .np-help-grid {
        grid-template-columns: 1fr;
    }

    .np-footer-logos a {
        min-width: 110px;
    }

    /* Mobile view Table to Card View */
    .np-table thead {
        display: none;
    }
    
    .np-table, 
    .np-table tbody, 
    .np-table tr, 
    .np-table td {
        display: block;
        width: 100%;
    }

    .np-table tr {
        margin-bottom: 20px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        background-color: #ffffff;
        padding: 12px 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    }

    .np-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        padding: 12px 0;
        border: none;
        border-bottom: 1px dashed #e2e8f0;
    }

    .np-table td:last-child {
        border-bottom: none;
    }

    .np-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #1e293b;
        text-align: left;
        padding-right: 15px;
        font-size: 0.95rem;
    }
}

@media(max-width: 575.98px) {
    .np-hero .carousel-item {
        aspect-ratio: auto !important;
        min-height: auto !important;
    }

    .np-hero .carousel-control-prev, .np-hero .carousel-control-next {
        display: none;
    }

    .np-float-btn {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
    }

    .np-info-panel {
        padding: 1.1rem;
    }

    .np-download-item {
        padding: .8rem;
    }

    .np-help-item {
        padding: .75rem;
    }

    .np-mann-card {
        border-radius: 10px;
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }

    .np-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .np-marquee-track {
        animation: none;
    }
}

/* =========================================================
   Nagar Palika Gallery
   ========================================================= */

#photo-gallery {
    background: #f7f9fc;
}

.np-gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    aspect-ratio: 4 / 3;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.np-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.np-gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 31, 67, 0.65);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.np-gallery-overlay > div {
    color: #fff;
    text-align: center;
    transform: translateY(12px);
    transition: transform 0.3s ease;
}

.np-gallery-overlay i {
    display: block;
    font-size: 30px;
    margin-bottom: 5px;
}

.np-gallery-overlay span {
    font-size: 14px;
    font-weight: 600;
}

.np-gallery-item:hover .np-gallery-card img {
    transform: scale(1.08);
}

.np-gallery-item:hover .np-gallery-overlay {
    opacity: 1;
}

.np-gallery-item:hover .np-gallery-overlay > div {
    transform: translateY(0);
}

/* =========================================================
   Lightbox
   ========================================================= */

.np-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(3, 10, 20, 0.96);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 50px 80px;
}

.np-lightbox.active {
    display: flex;
}

.np-lightbox-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

#npLightboxImage {
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.45);
}

.np-lightbox-caption {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    margin-top: 16px;
}

.np-lightbox-counter {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    margin-top: 5px;
}

.np-lightbox-close,
.np-lightbox-prev,
.np-lightbox-next {
    position: absolute;
    border: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 2;
}

.np-lightbox-close:hover,
.np-lightbox-prev:hover,
.np-lightbox-next:hover {
    background: #0d6efd;
    transform: scale(1.08);
}

.np-lightbox-close {
    top: 25px;
    right: 25px;
    font-size: 20px;
}

.np-lightbox-prev {
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 25px;
}

.np-lightbox-next {
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 25px;
}

.np-lightbox-prev:hover {
    transform: translateY(-50%) scale(1.08);
}

.np-lightbox-next:hover {
    transform: translateY(-50%) scale(1.08);
}

@media (max-width: 767px) {
    .np-lightbox {
        padding: 55px 15px 30px;
    }

    #npLightboxImage {
        max-height: 70vh;
    }

    .np-lightbox-close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
    }

    .np-lightbox-prev,
    .np-lightbox-next {
        width: 42px;
        height: 42px;
        top: auto;
        bottom: 25px;
        transform: none;
    }

    .np-lightbox-prev {
        left: 25%;
    }

    .np-lightbox-next {
        right: 25%;
    }

    .np-lightbox-prev:hover,
    .np-lightbox-next:hover {
        transform: scale(1.08);
    }

    .np-lightbox-caption {
        font-size: 15px;
        padding: 0 45px;
    }
}