/*!
 * Nagorik360 — public theme
 * Inspired by the Union Parishad digital-service portal layout.
 * Bootstrap 5 based; all rules here are original.
 */

:root {
    --n360-green: #1f9d55;
    --n360-green-600: #188a49;
    --n360-green-700: #13703c;
    --n360-green-050: #e9f7ef;
    --n360-blue: #1e88e5;
    --n360-red: #e53935;
    --n360-orange: #f39c12;
    --n360-cyan: #00acc1;
    --n360-purple: #8e44ad;
    --n360-ink: #263238;
    --n360-muted: #6b7c86;
    --n360-line: #e2e8ed;
    --n360-bg: #f2f5f7;
    --n360-radius: 10px;
    --n360-shadow: 0 10px 30px rgba(18, 38, 63, 0.08);
}

* {
    box-sizing: border-box;
}

body.n360 {
    margin: 0;
    font-family: 'Noto Sans Bengali', 'Hind Siliguri', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--n360-bg);
    color: var(--n360-ink);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--n360-green-600);
}

a:hover {
    color: var(--n360-green-700);
}

[x-cloak] {
    display: none !important;
}

/* ------------------------------------------------------------------ header */

.site-header {
    background: linear-gradient(90deg, var(--n360-green-700), var(--n360-green) 55%, #2bb268);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 1040;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 84px;
    padding: 0.5rem 0;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    padding: 6px 14px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    flex: 0 0 auto;
}

.site-logo img {
    height: 42px;
    width: auto;
    display: block;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: 0.5rem;
}

.header-nav a {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.93rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.header-nav a:hover,
.header-nav a.active {
    color: #fff;
    border-bottom-color: #ffd54f;
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-contact {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    line-height: 1.3;
    margin-right: 0.5rem;
    text-align: right;
}

.header-contact i {
    color: #ffd54f;
}

.header-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.42rem 0.9rem;
    border-radius: 5px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.header-pill:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.header-pill--blue { background: var(--n360-blue); }
.header-pill--red { background: var(--n360-red); }
.header-pill--orange { background: var(--n360-orange); }
.header-pill--cyan { background: var(--n360-cyan); }

.header-bell {
    position: relative;
    color: #fff;
    font-size: 1.15rem;
    padding: 0.35rem;
}

.header-bell .badge-dot {
    position: absolute;
    top: -2px;
    right: -6px;
    background: #ff5252;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 0 3px;
}

.mobile-toggle {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.14);
    border: 0;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 1.35rem;
    display: none;
}

/* ------------------------------------------------------------------- hero */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.16), transparent 40%),
        radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.1), transparent 35%),
        linear-gradient(135deg, #2bb268 0%, var(--n360-green) 55%, var(--n360-green-700) 100%);
    color: #fff;
    padding: 2.6rem 0 4.5rem;
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 -1px 0;
    height: 70px;
    background: var(--n360-bg);
    clip-path: ellipse(70% 100% at 50% 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-copy .hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.hero-copy h1 {
    font-size: clamp(1.5rem, 3.2vw, 2.35rem);
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 0.85rem;
}

.hero-copy p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    max-width: 34rem;
    margin: 0 0 1.4rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.hero-art {
    position: relative;
    min-height: 230px;
    display: grid;
    place-items: center;
}

.hero-art .art-house {
    font-size: 8rem;
    opacity: 0.18;
    position: absolute;
}

.hero-art .art-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #fff;
    color: var(--n360-ink);
    border-radius: 12px;
    padding: 0.6rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: var(--n360-shadow);
}

.hero-art .art-chip i {
    color: var(--n360-green);
}

.hero-art .art-chip--1 { top: 6%; left: 4%; }
.hero-art .art-chip--2 { top: 40%; right: 0; }
.hero-art .art-chip--3 { bottom: 8%; left: 16%; }

/* -------------------------------------------------------------- geo panel */

.geo-panel {
    position: relative;
    z-index: 3;
    margin-top: -3.4rem;
    background: #fff;
    border-radius: var(--n360-radius);
    box-shadow: var(--n360-shadow);
    padding: 1.15rem 1.25rem 1.3rem;
}

.geo-panel h2 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--n360-ink);
    margin: 0 0 0.9rem;
}

.geo-panel .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--n360-muted);
    margin-bottom: 0.25rem;
}

.geo-panel .form-select,
.geo-panel .form-control {
    font-size: 0.9rem;
    border-color: var(--n360-line);
    background-color: #f8fafb;
}

.geo-panel .form-select:focus,
.geo-panel .form-control:focus {
    border-color: var(--n360-green);
    box-shadow: 0 0 0 0.2rem rgba(31, 157, 85, 0.15);
}

/* --------------------------------------------------------------- sections */

.page-section {
    padding: 3rem 0;
}

.page-section--alt {
    background: #e9eef2;
}

.section-head {
    text-align: center;
    margin-bottom: 2rem;
}

.section-head h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--n360-ink);
    margin: 0;
    display: inline-block;
    position: relative;
    padding-bottom: 0.55rem;
}

.section-head h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 68px;
    height: 3px;
    border-radius: 2px;
    background: var(--n360-green);
}

.section-head p {
    color: var(--n360-muted);
    max-width: 46rem;
    margin: 0.6rem auto 0;
    font-size: 0.95rem;
}

/* ---------------------------------------------------------- service tiles */

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.service-tile {
    background: #fff;
    border: 1px solid var(--n360-line);
    border-radius: var(--n360-radius);
    padding: 1.3rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    height: 100%;
}

.service-tile:hover {
    transform: translateY(-3px);
    border-color: var(--n360-green);
    box-shadow: 0 12px 24px rgba(31, 157, 85, 0.12);
}

.tile-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--n360-green-050);
    color: var(--n360-green);
    font-size: 1.35rem;
}

.service-tile .tile-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--n360-ink);
    line-height: 1.4;
}

.service-tile .tile-sub {
    font-size: 0.76rem;
    color: var(--n360-muted);
}

.tile-fee {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--n360-green-600);
    background: var(--n360-green-050);
    border-radius: 999px;
    padding: 0.1rem 0.6rem;
    white-space: nowrap;
}

/* ---------------------------------------------------------- benefit items */

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem 1rem;
}

.benefit-item {
    text-align: center;
    padding: 0.4rem 0.6rem;
}

.benefit-item .benefit-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 0.7rem;
    font-size: 1.5rem;
    color: #fff;
}

.benefit-item .benefit-text {
    font-size: 0.88rem;
    font-weight: 500;
    color: #455a64;
    line-height: 1.5;
}

.bg-n360-purple { background: var(--n360-purple); }
.bg-n360-blue { background: var(--n360-blue); }
.bg-n360-green { background: var(--n360-green); }
.bg-n360-orange { background: var(--n360-orange); }
.bg-n360-red { background: var(--n360-red); }
.bg-n360-cyan { background: var(--n360-cyan); }

/* ---------------------------------------------------------------- content */

.page-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.2rem 1rem 3rem;
}

.page-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--n360-ink);
    margin: 0 0 0.3rem;
}

.page-subtitle {
    color: var(--n360-muted);
    font-size: 0.94rem;
    margin: 0 0 1.6rem;
}

.card-n360 {
    background: #fff;
    border: 1px solid var(--n360-line);
    border-radius: var(--n360-radius);
    box-shadow: 0 2px 10px rgba(18, 38, 63, 0.04);
}

.card-n360 .card-header {
    background: #fbfcfd;
    border-bottom: 1px solid var(--n360-line);
    font-weight: 600;
    color: var(--n360-ink);
    padding: 0.85rem 1.1rem;
}

.card-n360 .card-body {
    padding: 1.15rem 1.25rem;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--n360-line);
    border-radius: var(--n360-radius);
    padding: 1.15rem 1.25rem;
    height: 100%;
    border-left: 4px solid var(--n360-green);
}

.stat-card .stat-label {
    font-size: 0.82rem;
    color: var(--n360-muted);
    font-weight: 500;
}

.stat-card .stat-value {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--n360-ink);
}

.stat-card--blue { border-left-color: var(--n360-blue); }
.stat-card--orange { border-left-color: var(--n360-orange); }
.stat-card--red { border-left-color: var(--n360-red); }

/* ---------------------------------------------------------------- buttons */

.btn-n360 {
    --bs-btn-bg: var(--n360-green);
    --bs-btn-border-color: var(--n360-green);
    --bs-btn-hover-bg: var(--n360-green-600);
    --bs-btn-hover-border-color: var(--n360-green-600);
    --bs-btn-active-bg: var(--n360-green-700);
    --bs-btn-active-border-color: var(--n360-green-700);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    font-weight: 600;
    border-radius: 8px;
}

.btn-outline-n360 {
    --bs-btn-color: var(--n360-green-600);
    --bs-btn-border-color: var(--n360-green);
    --bs-btn-hover-bg: var(--n360-green);
    --bs-btn-hover-border-color: var(--n360-green);
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--n360-green-700);
    --bs-btn-active-border-color: var(--n360-green-700);
    font-weight: 600;
    border-radius: 8px;
}

.btn-n360-blue {
    --bs-btn-bg: var(--n360-blue);
    --bs-btn-border-color: var(--n360-blue);
    --bs-btn-hover-bg: #1876c8;
    --bs-btn-hover-border-color: #1876c8;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    font-weight: 600;
    border-radius: 8px;
}

/* ----------------------------------------------------------------- tables */

.table-n360 {
    margin-bottom: 0;
    font-size: 0.9rem;
    vertical-align: middle;
}

.table-n360 thead th {
    background: #f6f9fb;
    color: var(--n360-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    border-bottom: 1px solid var(--n360-line);
    white-space: nowrap;
}

.table-n360 tbody td {
    border-color: #eef2f5;
}

.table-n360 tbody tr:hover {
    background: #fafcfd;
}

/* ----------------------------------------------------------------- badges */

.badge-soft {
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
}

.badge-soft-green { background: #e6f6ec; color: #16753f; }
.badge-soft-blue { background: #e7f1fd; color: #1b6fbf; }
.badge-soft-orange { background: #fdf2e0; color: #a86500; }
.badge-soft-red { background: #fdeaea; color: #b3261e; }
.badge-soft-gray { background: #eef1f3; color: #52636d; }
.badge-soft-purple { background: #f3e8fb; color: #6d28a8; }

/* ------------------------------------------------------------------ forms */

.form-control,
.form-select {
    border-radius: 8px;
    border-color: #d7e0e6;
    font-size: 0.92rem;
    padding: 0.5rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--n360-green);
    box-shadow: 0 0 0 0.2rem rgba(31, 157, 85, 0.15);
}

.form-label {
    font-weight: 600;
    font-size: 0.86rem;
    color: #3b4a52;
    margin-bottom: 0.3rem;
}

.form-text {
    font-size: 0.8rem;
    color: var(--n360-muted);
}

/* ------------------------------------------------------------- admin tabs */

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid var(--n360-line);
    border-radius: var(--n360-radius);
    padding: 0.45rem;
    margin-bottom: 1.4rem;
}

.admin-tabs a {
    flex: 0 0 auto;
    color: #4a5a63;
    font-weight: 600;
    font-size: 0.87rem;
    padding: 0.45rem 0.95rem;
    border-radius: 7px;
}

.admin-tabs a:hover {
    background: var(--n360-green-050);
    color: var(--n360-green-700);
}

.admin-tabs a.active {
    background: var(--n360-green);
    color: #fff;
}

/* ------------------------------------------------------------------ alert */

.alert-n360 {
    border: 1px solid #cdebd8;
    background: #f0fbf4;
    color: #17683c;
    border-radius: var(--n360-radius);
}

/* ---------------------------------------------------------------- footer */

.site-footer {
    background: #24292e;
    color: #b9c3ca;
    margin-top: 2rem;
}

.site-footer .footer-main {
    padding: 2.6rem 0 1.8rem;
}

.site-footer h5 {
    color: #fff;
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.site-footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 2px;
    background: var(--n360-green);
}

.site-footer a {
    color: #b9c3ca;
    font-size: 0.88rem;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 0.45rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding: 1rem 0;
    font-size: 0.82rem;
    text-align: center;
    color: #8e9aa2;
}

.footer-bottom strong {
    color: #fff;
}

.pay-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pay-badge {
    background: #fff;
    border-radius: 8px;
    padding: 0.4rem 0.7rem;
    font-size: 0.76rem;
    font-weight: 700;
    color: #37474f;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ------------------------------------------------------------------ error */

.error-code {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    color: var(--n360-green);
    font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------ partners & payments */

.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
}

.partner-tile {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: #fff;
    border: 1px solid var(--n360-line);
    border-radius: var(--n360-radius);
    padding: 0.9rem 1.3rem;
    min-width: 190px;
}

.partner-tile i {
    color: var(--n360-green);
    font-size: 1.25rem;
}

.partner-tile span {
    font-size: 0.92rem;
    font-weight: 600;
    color: #37474f;
}

.partner-tile small {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--n360-muted);
}

.payment-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    max-width: 46rem;
    margin: 0 auto;
}

.payment-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #fff;
    border: 1px solid var(--n360-line);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #37474f;
    box-shadow: 0 1px 2px rgba(16, 40, 30, 0.04);
}

.payment-chip i {
    font-size: 1rem;
}

/* --------------------------------------------------- footer legal links */

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1.1rem;
    padding-bottom: 0.6rem;
    margin-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal a {
    font-size: 0.82rem;
    color: #b9c3ca;
}

.footer-legal a:hover {
    color: #fff;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1199.98px) {
    .header-nav,
    .header-actions {
        display: none !important;
    }

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }
}

@media (max-width: 991.98px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-art {
        display: none;
    }

    .service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .benefit-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .header-inner {
        min-height: 68px;
    }

    .site-logo img {
        height: 34px;
    }

    .page-wrap {
        padding: 1.4rem 0.85rem 2.2rem;
    }

    .hero {
        padding: 2rem 0 4rem;
    }
}

@media (max-width: 575.98px) {
    .benefit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.1rem 0.6rem;
    }

    .service-tile {
        padding: 1rem 0.6rem;
    }
}

/* ------------------------------------------------------------ utilities */

.text-n360-muted { color: var(--n360-muted) !important; }
.text-n360-green { color: var(--n360-green-600) !important; }
.fw-600 { font-weight: 600 !important; }
.letter-spacing-wide { letter-spacing: 0.04em; }
.pre-line { white-space: pre-line; }
.min-w-0 { min-width: 0; }
.w-fit { width: fit-content; }