/* ═══════════════════════════════════════
   RCA MUZAFFARNAGAR — SHARED STYLES
   ═══════════════════════════════════════ */
:root {
  --navy: #1f3c88;
  --navy-dark: #162d6e;
  --gold: #e8a020;
  --gold-light: #f5c842;
  --teal: #1a7d6e;
  --red: #c0392b;
  --light-bg: #f4f6fb;
  --border-light: #dde3f0;
}
* { box-sizing: border-box; }
body { font-family: 'Noto Sans Devanagari', sans-serif; color: #222; background: #fff; margin: 0; }

/* ── TOP BAR ── */
.topbar { background: var(--navy-dark); color: #ccd6f6; font-size: 12px; padding: 5px 0; border-bottom: 2px solid var(--gold); }
.topbar a { color: #ccd6f6; text-decoration: none; }
.topbar a:hover { color: var(--gold); }

/* ── HEADER ── */
.site-header { background: #fff; border-bottom: 3px solid var(--gold); padding: 10px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.logo-emblem { width: 145px; height: 72px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-emblem img { width: 72px; height: 72px; object-fit: contain; }
.header-divider { width: 3px; background: linear-gradient(to bottom, transparent, var(--gold) 20%, var(--navy) 50%, var(--gold) 80%, transparent); border-radius: 2px; align-self: stretch; min-height: 70px; margin: 0 16px; }
.org-title { color: var(--navy); font-size: clamp(15px, 2.3vw, 21px); font-weight: 700; margin: 0; line-height: 1.2; }
.org-subtitle { color: #555; font-size: 11.5px; margin: 2px 0 0; }
.org-tagline { font-size: 12.5px; color: var(--teal); font-weight: 600; letter-spacing: 0.3px; }
.btn-login { background: var(--navy); color: #fff; border: none; padding: 7px 18px; border-radius: 4px; font-size: 13px; font-family: inherit; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.btn-login:hover { background: var(--navy-dark); color: #fff; }
.btn-register { background: var(--gold); color: #000; border: none; padding: 7px 18px; border-radius: 4px; font-size: 13px; font-family: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.btn-register:hover { background: var(--gold-light); color: #000; }

/* ── NAVBAR ── */
.main-nav { background: var(--navy); padding: 0; }
.main-nav .navbar-nav .nav-link { color: rgba(255,255,255,0.88); font-size: 13.5px; padding: 12px 14px; border-right: 1px solid rgba(255,255,255,0.08); font-family: 'Noto Sans Devanagari', sans-serif; }
.main-nav .navbar-nav .nav-link:hover, .main-nav .navbar-nav .nav-link.active { color: var(--gold); background: rgba(255,255,255,0.07); }
.main-nav .navbar-toggler { border-color: rgba(255,255,255,0.3); }
.main-nav .navbar-toggler-icon { filter: invert(1); }
.dropdown-menu { border-radius: 0; border-top: 2px solid var(--gold); }
.dropdown-item { font-size: 13px; font-family: 'Noto Sans Devanagari', sans-serif; }
.dropdown-item:hover { background: var(--light-bg); color: var(--navy); }

/* ── TICKER ── */
.news-ticker { background: #fff8e1; border-bottom: 1px solid #f0d070; padding: 6px 0; overflow: hidden; }
.ticker-label { background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; white-space: nowrap; border-radius: 3px; }
.ticker-wrap { flex: 1; overflow: hidden; }
.ticker-track { display: flex; animation: ticker 35s linear infinite; white-space: nowrap; }
.ticker-track span { padding: 0 40px; font-size: 12.5px; color: #333; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── SECTION TITLES ── */
.section-title { font-size: 22px; font-weight: 700; color: var(--navy); position: relative; padding-bottom: 10px; margin-bottom: 28px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background: var(--gold); border-radius: 2px; }
.section-title-left { font-size: 18px; font-weight: 700; color: var(--navy); position: relative; padding-bottom: 8px; margin-bottom: 18px; }
.section-title-left::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px; background: var(--gold); border-radius: 2px; }

/* ── SERVICE CARDS ── */
.service-card { background: #fff; border: 1px solid var(--border-light); border-radius: 10px; padding: 24px 16px 20px; text-align: center; transition: all 0.25s ease; cursor: pointer; height: 100%; text-decoration: none; color: inherit; display: block; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(31,60,136,0.12); border-color: var(--navy); color: inherit; }
.service-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 26px; }
.service-card h6 { font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.service-card p { font-size: 11.5px; color: #666; margin: 0 0 12px; line-height: 1.5; }
.service-arrow { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid currentColor; display: flex; align-items: center; justify-content: center; margin: 0 auto; font-size: 13px; }
.ic-blue { background: #e8f0fe; color: #1a56db; }
.ic-green { background: #e8f8f0; color: #1a7d5a; }
.ic-purple { background: #f0ecfe; color: #6d28d9; }
.ic-orange { background: #fff3e0; color: #e65c00; }
.ic-teal { background: #e0f7f4; color: #00796b; }
.ic-red { background: #fdecea; color: #c0392b; }

/* ── STATS STRIP ── */
.stats-strip { background: var(--navy); padding: 30px 0; }
.stat-item { text-align: center; }
.stat-item .stat-num { font-size: clamp(28px, 4vw, 38px); font-weight: 800; color: #fff; line-height: 1; }
.stat-item .stat-label { font-size: 13px; color: rgba(255,255,255,0.65); margin-top: 4px; }
.stat-divider { width: 1px; background: rgba(255,255,255,0.15); height: 60px; align-self: center; }
.stat-icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--gold); margin: 0 auto 10px; }

/* ── CONTACT STRIP ── */
.contact-strip { background: var(--light-bg); border-top: 3px solid var(--gold); padding: 24px 0; }
.contact-item { display: flex; align-items: center; gap: 12px; }
.contact-item .ci-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-item .ci-label { font-size: 11.5px; color: #666; }
.contact-item .ci-val { font-size: 13.5px; font-weight: 700; color: var(--navy); }

/* ── FOOTER ── */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 40px 0 0; }
.footer-heading { color: var(--gold); font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; font-size: 16px; margin-right: 6px; text-decoration: none; transition: background 0.2s; }
.footer-social a:hover { background: var(--gold); color: #000; }
.footer-bottom { margin-top: 30px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12.5px; text-align: center; color: rgba(255,255,255,0.5); }

/* ── INNER PAGE BANNER ── */
.inner-banner { background: var(--navy); padding: 28px 0; border-bottom: 3px solid var(--gold); }
.inner-banner h2 { color: #fff; font-size: 22px; font-weight: 700; margin: 0; }
.inner-banner .breadcrumb { background: transparent; padding: 0; margin: 6px 0 0; }
.inner-banner .breadcrumb-item a { color: var(--gold); text-decoration: none; font-size: 13px; }
.inner-banner .breadcrumb-item.active { color: rgba(255,255,255,0.7); font-size: 13px; }
.inner-banner .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ── CONTENT CARD ── */
.content-card { background: #fff; border: 1px solid var(--border-light); border-radius: 10px; padding: 28px; margin-bottom: 24px; }
.content-card h4 { color: var(--navy); font-weight: 700; border-bottom: 2px solid var(--border-light); padding-bottom: 10px; margin-bottom: 16px; font-size: 17px; }

/* ── BADGE ── */
.badge-new { background: var(--red); color: #fff; font-size: 9px; padding: 2px 5px; border-radius: 2px; font-weight: 700; white-space: nowrap; }

/* ── OTP / FORM ── */
.form-card { background: #fff; border-radius: 12px; box-shadow: 0 4px 24px rgba(31,60,136,0.10); padding: 36px 32px; max-width: 440px; width: 100%; }
.form-card .form-label { font-size: 13px; font-weight: 600; color: var(--navy); }
.form-card .form-control { border: 1.5px solid var(--border-light); border-radius: 6px; font-size: 14px; padding: 10px 14px; font-family: inherit; }
.form-card .form-control:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31,60,136,0.10); }
.btn-primary-navy { background: var(--navy); color: #fff; border: none; padding: 11px 0; border-radius: 6px; font-size: 15px; font-weight: 600; font-family: inherit; width: 100%; cursor: pointer; transition: background 0.2s; }
.btn-primary-navy:hover { background: var(--navy-dark); }
.btn-gold { background: var(--gold); color: #000; border: none; padding: 11px 0; border-radius: 6px; font-size: 15px; font-weight: 700; font-family: inherit; width: 100%; cursor: pointer; }
.btn-gold:hover { background: var(--gold-light); }
.otp-inputs { display: flex; gap: 10px; justify-content: center; }
.otp-inputs input { width: 48px; height: 52px; text-align: center; font-size: 22px; font-weight: 700; border: 2px solid var(--border-light); border-radius: 8px; font-family: inherit; }
.otp-inputs input:focus { border-color: var(--navy); outline: none; }

/* ── NEWS LIST ── */
.news-list-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border-light); font-size: 13px; }
.news-list-item:last-child { border-bottom: none; }
.news-date { font-size: 11px; color: #888; }

/* ── TABLE STYLES ── */
.rca-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rca-table th { background: var(--navy); color: #fff; padding: 10px 14px; text-align: left; font-weight: 600; }
.rca-table td { padding: 9px 14px; border-bottom: 1px solid var(--border-light); }
.rca-table tr:hover td { background: var(--light-bg); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .header-divider { display: none; }
  .main-nav .navbar-nav .nav-link { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-divider { display: none; }
  .form-card { padding: 24px 16px; }
}
.officer-card {
    background: #fff;
    border: 2px solid #31566f;
    border-radius: 9px;
    padding: 25px 22px;
    min-height: 520px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    transition: .3s;
}
.officer-img {
    width: 145px;
    height: 190px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin: 0 auto 22px;
}
.officer-card h4 {
    text-align: center;
    color: #174866;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 8px;
}
.officer-card h6 {
    text-align: center;
    color: #f39b38;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
}
.officer-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}
.officer-card strong {
    color: #174866;
    font-size: 14px;
}
.contact-text {
    margin-top: 6px;
    margin-bottom: 0;
}
.verify-section {
    background: #f5f7fa;
    min-height: calc(100vh - 180px);
}

.verify-card {
    max-width: 880px;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.verify-title {
    font-weight: 700;
    color: #111;
    margin-bottom: 5px;
}

.verify-subtitle {
    color: #777;
    margin-bottom: 0;
}

.verify-input {
    height: 42px;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
}

.verify-btn {
    background: #141414;
    color: #fff;
    padding: 0 24px;
    border-radius: 0 8px 8px 0;
}

.verify-btn:hover {
    background: #000;
    color: #fff;
}

.certificate-box {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 22px;
    background: #fff;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-btn {
    border: 1px solid #ddd;
    font-size: 14px;
    border-radius: 7px;
}

.certificate-preview {
    border: 2px solid #333;
    padding: 22px 18px;
    background: #fff;
}

.cert-logo {
    width: 55px;
    margin-bottom: 8px;
}

.cert-state {
    color: #123b6d;
    font-weight: 700;
    margin-bottom: 4px;
}

.cert-office,
.cert-district {
    margin: 0;
    font-size: 14px;
}

.cert-heading {
    font-weight: 700;
    margin-top: 8px;
}

.cert-line {
    height: 3px;
    background: #123b6d;
    margin: 14px 0;
}

.cert-number-box {
    background: #eef6ff;
    border: 1px solid #cbdced;
    border-radius: 5px;
    padding: 12px;
}

.cert-number-box p {
    margin: 0;
    font-size: 13px;
}

.cert-number-box h4 {
    color: #123b6d;
    font-weight: 700;
    margin: 4px 0 0;
}

.verified-badge {
    border: 2px solid #198754;
    color: #198754;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    background: #fff;
}

.section-heading {
    font-weight: 700;
    border-bottom: 1px solid #ccc;
    padding-bottom: 8px;
    margin-top: 18px;
}

.cert-table {
    font-size: 13px;
    margin-bottom: 16px;
}

.cert-table th {
    background: #eaf2ff;
    font-weight: 700;
}

.cert-table td,
.cert-table th {
    padding: 7px 9px;
}

.property-box {
    background: #f8f9fb;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    font-size: 13px;
}

.date-box {
    background: #eef6ff;
    border: 1px solid #cbdced;
    border-radius: 5px;
    padding: 13px 18px;
    font-size: 13px;
}

.cert-note {
    font-size: 13px;
    color: #444;
}

.cert-note p {
    margin-bottom: 4px;
}

.new-verify-btn {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 7px;
    padding: 8px 18px;
}

.new-verify-btn:hover {
    background: #f1f1f1;
}

@media(max-width: 768px) {
    .verify-card {
        padding: 18px;
    }

    .input-group {
        display: block;
    }

    .verify-input {
        width: 100%;
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .verify-btn {
        width: 100%;
        height: 42px;
        border-radius: 8px;
    }

    .certificate-box {
        padding: 14px;
    }

    .certificate-preview {
        padding: 15px 10px;
        overflow-x: auto;
    }

    .action-buttons {
        flex-direction: column;
    }

    .cert-table {
        min-width: 620px;
    }

    .date-box .col-md-6 {
        margin-bottom: 8px;
    }
}

.verify-section {
    background: #f5f7fa;
    min-height: calc(100vh - 180px);
}

.verify-card {
    max-width: 1100px;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 12px;
    padding: 32px 34px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.04);
}

.verify-title {
    font-size: 30px;
    font-weight: 700;
    color: #111;
    margin-bottom: 6px;
}

.verify-subtitle {
    font-size: 16px;
    color: #777;
    margin: 0;
}

.verify-input {
    height: 44px;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.verify-input:focus {
    border-color: #123b6d;
    box-shadow: 0 0 0 0.15rem rgba(18,59,109,0.12);
}

.verify-btn {
    height: 44px;
    background: #c53717;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    white-space: nowrap;
}

.verify-btn:hover {
    background: #a92c11;
    color: #fff;
}

.invalid-box {
    background: #fff1f1;
    border: 1px solid #ffb8b8;
    border-radius: 10px;
    padding: 32px;
    color: #c71919;
}

.invalid-icon {
    width: 42px;
    height: 42px;
    border: 3px solid #e92525;
    color: #e92525;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.invalid-icon i {
    font-size: 22px;
}

.invalid-box h5 {
    font-size: 24px;
    font-weight: 700;
    color: #8f1616;
    margin-bottom: 6px;
}

.invalid-box p {
    font-size: 16px;
}

.invalid-message {
    color: #d91e1e;
}

.retry-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 16px;
}

.retry-btn:hover {
    background: #f3f3f3;
}

@media(max-width: 768px) {
    .verify-card {
        padding: 22px 18px;
    }

    .verify-title {
        font-size: 24px;
    }

    .verify-btn {
        margin-top: 6px;
    }

    .invalid-box {
        padding: 22px;
    }

    .invalid-box .d-flex {
        flex-direction: column;
    }

    .invalid-box h5 {
        font-size: 21px;
    }
}

#printArea {
    width: 190mm;
    max-width: 190mm;
    margin: 0 auto;
    background: #fff;
    padding: 0;
    font-size: 12px;
}

#printArea table {
    width: 100% !important;
    table-layout: fixed;
    border-collapse: collapse;
}

#printArea th,
#printArea td {
    word-break: break-word;
    overflow-wrap: break-word;
    padding: 6px;
}

.avoid-break,
#printArea table,
#printArea tr {
    page-break-inside: avoid;
    break-inside: avoid;
}