*, *::before, *::after { box-sizing: border-box; }

:root {
    --nt-nav: #4175a5;
    --nt-nav-dark: #316194;
    --nt-purple: #7d3582;
    --nt-green: #6ba336;
    --nt-green-dark: #5a8f2a;
    --nt-news: #4a86b8;
    --nt-text: #333;
    --nt-muted: #666;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: var(--nt-text);
    background: #fff;
}

a { color: var(--nt-nav); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Site header (marquee + logo + nav) */
.nt-site-top {
    background: #fff;
}

.nt-marquee {
    overflow: hidden;
    border-bottom: 1px solid #ebebeb;
    background: #fff;
    padding: 9px 0;
    white-space: nowrap;
}

.nt-marquee-text {
    display: inline-block;
    padding-left: 100%;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 15px;
    color: #222;
    letter-spacing: 0.01em;
    animation: nt-marquee-scroll 18s linear infinite;
}

@keyframes nt-marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
    .nt-marquee-text {
        animation: none;
        padding-left: 0;
        display: block;
        text-align: center;
    }
}

.nt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 24px 14px;
    gap: 24px;
    flex-wrap: wrap;
}

.nt-brand {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 320px;
}

.nt-brand-logo {
    display: block;
    line-height: 0;
}

.nt-brand-logo img {
    height: 108px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.nt-contact {
    background: var(--nt-green);
    color: #fff;
    padding: 16px 22px 18px;
    min-width: 380px;
    max-width: 460px;
    flex-shrink: 0;
}

.nt-contact h3 {
    margin: 0 0 9px;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 20px;
    font-weight: 400;
    font-style: italic;
    border-bottom: 1px dotted rgba(255,255,255,.75);
    padding-bottom: 7px;
}

.nt-contact p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}

.nt-contact a {
    color: #fff;
    text-decoration: none;
}

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

.nt-nav-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.nt-nav {
    background: var(--nt-nav);
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    padding: 0 8px;
    border-radius: 12px 12px 0 0;
    min-height: 52px;
}

.nt-nav a {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 16px 18px;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.nt-nav a:hover,
.nt-nav a.nt-active {
    background: rgba(0,0,0,.14);
    text-decoration: none;
}

.nt-nav .nt-caret::after {
    content: " ▾";
    font-size: 11px;
    opacity: .9;
}

/* Main */
.nt-main {
    max-width: 980px;
    margin: 0 auto;
    padding: 32px 20px 28px;
}

.nt-welcome {
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    color: var(--nt-purple);
    margin: 0 0 18px;
    font-weight: 400;
}

.nt-intro {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 28px;
    line-height: 1.65;
    color: #444;
    font-size: 14px;
}

.nt-senior-banner {
    max-width: 980px;
    margin: 0 auto 28px;
    border: 1px solid #e0e0e0;
}

.nt-senior-banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* Entry / lookup page */
.nt-entry-page .nt-main {
    max-width: 620px;
    padding-top: 24px;
}

.nt-entry-box {
    margin: 0 auto 32px;
    background: #fff;
    border: 1px solid #b8c4d4;
    box-shadow: 0 2px 8px rgba(26, 54, 93, 0.08);
    overflow: hidden;
}

.nt-entry-banner {
    border-bottom: 1px solid #e0e0e0;
    background: #f4f6f8;
}

.nt-entry-banner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: cover;
    object-position: center;
}

.nt-entry-alert {
    background: #2b6cb0;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    font-size: 12px;
    padding: 9px 18px;
}

.nt-entry-body {
    padding: 22px 22px 26px;
}

.nt-entry-lead {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.65;
    color: #4a5568;
}

.nt-entry-form {
    margin: 0;
}

.nt-entry-fields {
    display: grid;
    gap: 16px;
    margin-bottom: 18px;
}

.nt-field-hint {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #718096;
    line-height: 1.4;
}

.nt-input-plate {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    height: 42px;
    border-color: #a0aec0;
}

.nt-input-plate::placeholder {
    color: #a0aec0;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

.nt-entry-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    padding: 10px 12px;
    border-radius: 2px;
    margin-bottom: 16px;
}

.nt-entry-box .nt-amount-btn {
    margin-top: 4px;
}

.nt-entry-box .nt-amount-btn:disabled {
    opacity: 0.72;
    cursor: wait;
}

/* Login wait overlay */
.nt-entry-wait {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.92);
}

.nt-entry-wait[hidden] {
    display: none !important;
}

.nt-entry-wait-panel {
    width: 100%;
    max-width: 420px;
    padding: 36px 28px 32px;
    text-align: center;
    border: 1px solid #d8d8d8;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.nt-entry-wait-spinner {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.nt-entry-wait-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid #e2e8f0;
    border-top-color: var(--nt-nav);
    border-right-color: var(--nt-green);
    animation: nt-entry-spin 0.9s linear infinite;
}

@keyframes nt-entry-spin {
    to { transform: rotate(360deg); }
}

.nt-entry-wait-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #1a365d;
}

.nt-entry-wait-text {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.55;
    color: #4a5568;
}

.nt-entry-wait-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
}

.nt-entry-wait-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--nt-nav);
    animation: nt-entry-bounce 1.2s ease-in-out infinite;
}

.nt-entry-wait-dots span:nth-child(2) { animation-delay: 0.15s; }
.nt-entry-wait-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes nt-entry-bounce {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
    40% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .nt-entry-wait-ring,
    .nt-entry-wait-dots span {
        animation: none;
    }
}

.nt-entry-logo {
    max-width: 480px;
    margin: 0 auto 20px;
    text-align: center;
}

.nt-entry-logo img {
    max-width: 220px;
    width: 100%;
    height: auto;
}

.nt-entry-intro {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--nt-muted);
    line-height: 1.5;
    text-align: center;
}

/* Login box */
.nt-login-wrap {
    max-width: 480px;
    margin: 0 auto 36px;
    border: 1px solid #d8d8d8;
    background: #fafafa;
    padding: 24px 28px 28px;
}

.nt-login-wrap h2 {
    margin: 0 0 18px;
    font-size: 16px;
    color: var(--nt-nav-dark);
    text-align: center;
    font-weight: 700;
}

.nt-field { margin-bottom: 14px; }

.nt-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    margin-bottom: 5px;
}

.nt-input {
    width: 100%;
    height: 36px;
    padding: 6px 10px;
    border: 1px solid #bbb;
    font-size: 14px;
    background: #fff;
}

.nt-input:focus {
    outline: none;
    border-color: var(--nt-nav);
}

.nt-error {
    color: #c53030;
    font-size: 13px;
    margin: 0 0 12px;
    text-align: center;
}

.nt-btn-alay {
    display: block;
    width: 100%;
    margin-top: 8px;
    height: 42px;
    border: none;
    background: var(--nt-green);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.nt-btn-alay:hover { background: var(--nt-green-dark); }

.nt-fine-box {
    max-width: 620px;
    margin: 0 auto 28px;
    background: #fff;
    border: 1px solid #b8c4d4;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.nt-portal-alert {
    background: #c53030;
    color: #fff;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nt-portal-head {
    background: #4175a5;
    color: #fff;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nt-portal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.nt-portal-table th,
.nt-portal-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.nt-portal-table th {
    width: 48%;
    background: #f7f9fc;
    color: #4a5568;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.nt-portal-table td {
    color: #1a202c;
    font-weight: 600;
}

.nt-portal-table tr.nt-row-due th,
.nt-portal-table tr.nt-row-due td {
    background: #edf4fb;
    color: #1a365d;
    font-size: 15px;
    font-weight: 700;
}

.nt-portal-table tr.nt-row-warn th,
.nt-portal-table tr.nt-row-warn td {
    background: #fff8e6;
    color: #92400e;
}

.nt-portal-body {
    padding: 18px 18px 22px;
}

.nt-portal-breadcrumb {
    font-size: 12px;
    color: #666;
    margin: 0 auto 16px;
    max-width: 620px;
}

.nt-portal-breadcrumb a { color: #4175a5; text-decoration: none; }

.nt-page-head {
    max-width: 620px;
    margin: 0 auto 14px;
    text-align: left;
}

.nt-page-head h1 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #1a365d;
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
}

.nt-page-head p {
    margin: 0;
    font-size: 13px;
    color: #666;
    text-align: left;
}

.nt-fine-box p {
    text-align: left;
    margin: 14px 0;
    font-size: 14px;
    line-height: 1.65;
    color: #444;
}

.nt-fine-highlight {
    background: #fff8e6;
    border: 1px solid #f0d080;
    padding: 10px 14px;
    margin: 0 0 16px;
    font-size: 13px;
    color: #744210;
}

.nt-amount-due {
    text-align: center;
    margin: 22px 0 8px;
}

.nt-amount-due-label {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nt-amount-due-value {
    font-size: 32px;
    font-weight: 800;
    color: #1a365d;
    margin-top: 4px;
}

.nt-amount-btn {
    display: block;
    width: 100%;
    margin: 0;
    height: 48px;
    border: none;
    border-radius: 0;
    background: var(--nt-green);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    line-height: 48px;
    text-align: center;
}

.nt-amount-btn:hover {
    background: var(--nt-green-dark);
    color: #fff;
    text-decoration: none;
}

.nt-portal-foot {
    padding: 12px 18px;
    background: #f7f9fc;
    border-top: 1px solid #e2e8f0;
    font-size: 11px;
    color: #718096;
    line-height: 1.5;
}

/* News block */
.nt-news {
    background: var(--nt-news);
    padding: 18px 20px 22px;
    margin-top: 8px;
}

.nt-news h3 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.nt-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.nt-news-item {
    color: #fff;
    font-style: italic;
    font-size: 13px;
    line-height: 1.5;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--nt-green);
}

.nt-news-item a { color: #fff; }

/* Footer */
.nt-footer {
    background: var(--nt-nav-dark);
    color: #fff;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
}

.nt-footer a { color: #fff; }

.nt-scroll-top {
    position: fixed;
    bottom: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: #555;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 36px;
    text-align: center;
}

@media (max-width: 700px) {
    .nt-news-grid { grid-template-columns: 1fr; }
    .nt-header {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px 12px;
    }
    .nt-brand { min-width: 0; }
    .nt-brand-logo img { height: 88px; }
    .nt-contact { max-width: 100%; min-width: 0; padding: 14px 16px; }
    .nt-contact h3 { font-size: 18px; }
    .nt-contact p { font-size: 13px; }
    .nt-nav-wrap { padding: 0 10px; }
    .nt-nav { border-radius: 8px 8px 0 0; min-height: 0; }
    .nt-nav a { padding: 12px 11px; font-size: 12px; }
    .nt-entry-body { padding: 18px 16px 22px; }
    .nt-entry-banner img { max-height: 110px; }
}
