/*
Theme Name: NID Check Service
Theme URI: https://nidcheckgov.com
Author: NID Check Service
Description: Responsive Bengali information and guidance theme with accessible navigation, polished article layouts, and security-conscious user guidance.
Version: 1.3.4
License: GNU General Public License v2 or later
Text Domain: nid-check-service
*/

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hind Siliguri', 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.7;
    color: #1a1a2e;
    background: #f1f5f9;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Notice Bar */
.top-notice {
    background: #9f1239;
    color: #fff;
    display: flex;
    align-items: center;
    height: 40px;
    overflow: hidden;
    font-size: 0.88rem;
}

.notice-label {
    background: #7f1d1d;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.notice-scroll {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.notice-track {
    display: flex;
    width: max-content;
    align-items: center;
    animation: notice-scroll-left 240s linear infinite;
    will-change: transform;
}

.notice-text {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 1.25rem;
    white-space: nowrap;
    padding: 0 1.25rem 0 0;
}

.notice-text span {
    color: #fbbf24;
    font-weight: 700;
}

.top-notice:hover .notice-track,
.top-notice:focus-within .notice-track {
    animation-play-state: paused;
}

@keyframes notice-scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .notice-track {
        animation: none;
        width: auto;
        overflow-x: auto;
    }
    .notice-text[aria-hidden="true"] {
        display: none;
    }
}

/* Header */
.site-header {
    background-color: #0f172a;
    background-image: linear-gradient(rgba(5, 39, 31, 0.72), rgba(5, 39, 31, 0.72)), url("assets/images/header-nid-election-background.jpg");
    background-position: center, center 46%;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    padding: 0;
}

.header-top {
    background: #1e293b;
    padding: 8px 0;
    font-size: 0.85rem;
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.site-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    line-height: 0;
}

.site-logo-image {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 50%;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
}

.main-nav a {
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    background: #2563eb;
    color: #fff;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #475569;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Hero */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 100%);
    color: #fff;
    padding: 70px 0;
    text-align: center;
}

.hero-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* Features */
.features-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 1.7rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-top: 3px solid #2563eb;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-card .icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #0f172a;
}

.feature-card p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.feature-card a {
    color: #2563eb;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Content Area */
.content-area {
    padding: 50px 0 70px;
}

.content-box {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.content-box h2 {
    color: #0f172a;
    font-size: 1.4rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.content-box h3 {
    color: #1e40af;
    margin: 20px 0 8px;
}

.steps-list {
    margin-top: 20px;
}

.step-item {
    display: flex;
    gap: 16px;
    margin-bottom: 22px;
}

.step-num {
    background: #1e40af;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.step-item h4 {
    margin-bottom: 4px;
    color: #0f172a;
}

.step-item p {
    color: #64748b;
    font-size: 0.95rem;
}

.sms-box {
    background: #f1f5f9;
    border-left: 4px solid #2563eb;
    padding: 18px 20px;
    margin: 15px 0;
    border-radius: 0 6px 6px 0;
}

.sms-box code {
    background: #0f172a;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.notice-box {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
}

.notice-box h4 {
    color: #92400e;
    margin-bottom: 8px;
}

.notice-box p {
    color: #78350f;
    font-size: 0.92rem;
}

/* Result Links */
.result-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.result-btn {
    display: block;
    background: #f1f5f9;
    padding: 16px 20px;
    border-radius: 8px;
    transition: background 0.2s;
}

.result-btn:hover {
    background: #e2e8f0;
}

.result-btn strong {
    display: block;
    color: #0f172a;
}

.result-btn span {
    font-size: 0.85rem;
    color: #64748b;
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 0 20px;
    text-align: center;
}

.site-footer p {
    margin-bottom: 8px;
}

.footer-disclaimer {
    font-size: 0.82rem;
    opacity: 0.7;
    max-width: 700px;
    margin: 15px auto 0;
}

/* Mobile */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0f172a;
        padding: 15px;
        z-index: 99;
    }

    .main-nav.active ul {
        flex-direction: column;
    }

    .menu-toggle {
        display: block;
    }

    .header-main {
        position: relative;
    }

    .hero-section h2 {
        font-size: 1.7rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}


/* Bundled circular NID Check Service logo */
@media (max-width: 600px) {
    .site-logo-image {
        width: 66px;
        height: 66px;
    }
}

/* Visual update: photo background in the hero and a small floating site logo */
.hero-section {
    position: relative;
    isolation: isolate;
    background-image: linear-gradient(90deg, rgba(7, 48, 36, 0.88), rgba(10, 45, 37, 0.54)), url('assets/images/official-building-background.jpg');
    background-position: center, center 44%;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 360px;
    display: flex;
    align-items: center;
}

.site-logo-image {
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .18));
}

body::after {
    content: "";
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 76px;
    height: 76px;
    background: url('assets/images/nid-check-service-logo.png') center / contain no-repeat;
    border-radius: 50%;
    z-index: 999;
    pointer-events: none;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .22));
}

@media (max-width: 600px) {
    body::after { width: 54px; height: 54px; right: 10px; bottom: 10px; }
    .hero-section { background-position: center, 58% center; padding: 52px 0; }
}


/* Version 1.1.0: content, article, archive and accessibility improvements */
html { scroll-behavior: smooth; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
.skip-link { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus { left:12px; top:12px; width:auto; height:auto; padding:12px 16px; background:#fff; color:#111827; z-index:10000; }
.header-main { gap:20px; }
.main-nav { margin-left:auto; }
.main-nav ul, .footer-nav ul { list-style:none; display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.footer-nav { margin-bottom:18px; }
.footer-nav ul { justify-content:center; gap:10px 18px; margin-bottom:18px; }
.footer-nav a { color:#e2e8f0; text-decoration:underline; text-underline-offset:3px; }
.footer-nav a:hover { color:#fff; }
.site-description { color:#e2e8f0; font-size:.9rem; margin-top:5px; }
.content-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:26px; align-items:start; }
.post-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.post-card, .sidebar-box, .empty-state { background:#fff; border:1px solid #e2e8f0; border-radius:12px; overflow:hidden; box-shadow:0 3px 14px rgba(15,23,42,.045); }
.post-card .post-card-body { padding:20px; }
.post-card h2, .post-card h3 { font-size:1.12rem; line-height:1.5; margin-bottom:10px; color:#0f172a; }
.post-card h2 a:hover, .post-card h3 a:hover { color:#1d4ed8; }
.post-card p { color:#475569; font-size:.95rem; }
.post-thumb { display:block; aspect-ratio:16/9; background:#e2e8f0; overflow:hidden; }
.post-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.post-meta { color:#64748b; font-size:.84rem; margin:0 0 12px; }
.read-more { display:inline-block; margin-top:12px; color:#1d4ed8; font-weight:700; }
.article-content { overflow-wrap:anywhere; line-height:1.9; font-size:1.04rem; }
.article-content > * { margin-bottom:1.1em; }
.article-content h2, .article-content h3 { line-height:1.45; margin-top:1.5em; }
.article-content ul, .article-content ol { padding-left:1.5em; }
.article-content img { border-radius:8px; }
.article-featured-image { margin:0 0 22px; }
.article-featured-image img { display:block; width:100%; height:auto; border-radius:10px; }
.pagination, .nav-links { display:flex; flex-wrap:wrap; gap:8px; margin-top:28px; }
.page-numbers { display:inline-block; padding:8px 13px; border-radius:6px; background:#fff; border:1px solid #cbd5e1; }
.page-numbers.current { background:#1d4ed8; border-color:#1d4ed8; color:#fff; }
.sidebar-box { padding:20px; margin-bottom:20px; }
.sidebar-box h2, .sidebar-box h3 { font-size:1.1rem; margin-bottom:12px; }
.sidebar-box ul { padding-left:20px; }
.sidebar-box li { margin:8px 0; }
.post-navigation { display:flex; justify-content:space-between; gap:18px; margin-top:30px; padding-top:20px; border-top:1px solid #e2e8f0; }
.post-navigation a { color:#1d4ed8; font-weight:600; }
.search-form { display:flex; gap:8px; }
.search-form label { flex:1; }
.search-field { width:100%; min-height:44px; padding:9px 12px; border:1px solid #cbd5e1; border-radius:6px; }
.search-submit { padding:9px 16px; border:0; border-radius:6px; background:#1d4ed8; color:#fff; cursor:pointer; }
.home-intro { max-width:820px; margin:0 auto 32px; color:#475569; text-align:center; }
.section-heading-row { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:22px; }
.section-heading-row .section-title { margin:0; text-align:left; }
.disclosure { font-size:.9rem; line-height:1.7; }
@media(max-width:900px) { .post-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .content-layout { grid-template-columns:1fr; } }
@media(max-width:600px) { .post-grid { grid-template-columns:1fr; } .header-main { flex-wrap:wrap; } .site-logo-image { width:66px; height:66px; } .section-heading-row { align-items:flex-start; flex-direction:column; } .content-box { padding:22px; } .post-navigation { flex-direction:column; } }


/* Smart Card Status visual section */
.smart-status-section { padding: 44px 0; background: #f4f8fc; }
.smart-status-panel { position: relative; isolation: isolate; overflow: hidden; min-height: 320px; border-radius: 22px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 42px 22px; background: #b9dcf5; color: #082b63; box-shadow: 0 12px 35px rgba(8,43,99,.12); }
.smart-status-panel::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("assets/images/smart-card-status-preview.png") center 36% / contain no-repeat; opacity: .82; transform: scale(1.01); }
.smart-status-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, rgba(202,231,250,.62), rgba(173,216,244,.48) 58%, rgba(145,202,239,.54)); }
.smart-status-content { max-width: 720px; width: 100%; }
.smart-status-kicker { display: inline-block; padding: 7px 14px; border: 1px solid rgba(8,43,99,.35); color: #082b63; border-radius: 999px; font-size: .9rem; margin-bottom: 14px; }
.smart-status-content h2 { color: #082b63; font-size: clamp(1.65rem, 4vw, 2.35rem); line-height: 1.35; margin: 0 0 12px; }
.smart-status-content p { color: #12345d; max-width: 600px; margin: 0 auto 22px; }
.status-floating-track { overflow: hidden; white-space: nowrap; margin: 18px 0 24px; border-top: 1px solid rgba(8,43,99,.22); border-bottom: 1px solid rgba(8,43,99,.22); padding: 10px 0; }
.status-floating-text { display: inline-block; min-width: max-content; padding-left: 100%; animation: statusTextFlow 22s linear infinite; font-weight: 700; color: #082b63; letter-spacing: .02em; }
@keyframes statusTextFlow { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .status-floating-text { animation: none; padding-left: 0; white-space: normal; } }
@media (max-width: 600px) { .smart-status-panel { min-height: 290px; padding: 30px 18px; border-radius: 16px; } .smart-status-section { padding: 28px 0; } }


/* Version 1.1.4: professional footer with all six links always visible */
.site-footer { margin-top: 48px; color: #102b4e; background: #f7fbff; border-top: 1px solid #dce8f2; }
.footer-main { position: relative; overflow: hidden; padding: 42px 0 36px; background: linear-gradient(135deg,#ffffff 0%,#f3f8fd 60%,#eaf4fb 100%); }
.footer-main::after { content: ""; position: absolute; right: 2%; top: 8px; width: 120px; height: 120px; border: 12px double rgba(20,126,112,.035); border-radius: 50%; pointer-events: none; }
.footer-layout { display: grid; grid-template-columns: minmax(250px,.85fr) minmax(0,1.65fr); gap: 34px; align-items: center; position: relative; z-index: 1; }
.footer-brand { min-width: 0; padding-right: 28px; border-right: 1px solid #c7d8e7; }
.footer-brand-link { display: flex; align-items: center; gap: 16px; text-decoration: none; color: #102b4e; }
.footer-brand-link img { display: block; width: 78px; height: 78px; object-fit: contain; flex: 0 0 auto; }
.footer-brand-copy { display: flex; flex-direction: column; gap: 5px; }
.footer-brand-copy strong { font-size: clamp(1.35rem,2.5vw,2rem); line-height: 1.2; letter-spacing: -.035em; color: #102b4e; }
.footer-brand-copy small { font-size: .92rem; line-height: 1.5; color: #54708f; }
.footer-links-wrap { min-width: 0; }
.footer-heading { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: #102b4e; font-size: 1.3rem; font-weight: 750; }
.footer-heading span { display: inline-grid; place-items: center; width: 30px; height: 30px; color: #07856f; font-size: 1.65rem; }
.site-footer .footer-nav { margin: 0; }
.site-footer .footer-nav ul { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); align-items: stretch; gap: 0; list-style: none; margin: 0; padding: 0; }
.site-footer .footer-nav li { min-width: 0; display: flex; align-items: stretch; justify-content: center; border-right: 1px solid #d6e3ee; }
.site-footer .footer-nav li:last-child { border-right: 0; }
.site-footer .footer-nav a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 10px; color: #173657; font-size: .87rem; line-height: 1.35; text-align: center; text-decoration: none; text-underline-offset: 4px; overflow-wrap: anywhere; transition: color .2s ease, background .2s ease; border-radius: 7px; }
.site-footer .footer-nav a:hover, .site-footer .footer-nav a:focus-visible { color: #087f6b; background: rgba(8,127,107,.07); text-decoration: underline; }
.footer-bottom { position: relative; overflow: hidden; padding: 25px 0 18px; color: #f8fbff; background: linear-gradient(115deg,#0d2340 0%,#102f54 58%,#0c2747 100%); }
.footer-bottom::before { content: ""; position: absolute; left: -3%; right: -3%; bottom: -72px; height: 115px; border-top: 8px solid #07967b; border-radius: 50% 50% 0 0; box-shadow: 0 -13px 0 -5px #17638b; opacity: .95; pointer-events: none; }
.footer-bottom-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 22px; }
.footer-bottom-inner p { margin: 0; color: #f8fbff; text-align: center; font-size: 1rem; }
.footer-line { width: min(18%,160px); height: 1px; background: rgba(197,220,240,.42); }
.site-footer .footer-disclaimer { position: relative; z-index: 1; margin: 18px auto 0; max-width: 950px; color: #c4d5e8; text-align: center; font-size: .78rem; line-height: 1.65; }
@media(max-width:900px) { .footer-layout { grid-template-columns: 1fr; gap: 26px; } .footer-brand { border-right: 0; border-bottom: 1px solid #c7d8e7; padding: 0 0 24px; } .site-footer .footer-nav ul { grid-template-columns: repeat(3,minmax(0,1fr)); row-gap: 8px; } .site-footer .footer-nav li:nth-child(3n) { border-right: 0; } }
@media(max-width:600px) { .footer-main { padding: 30px 0 26px; } .footer-brand-link { gap: 12px; } .footer-brand-link img { width: 62px; height: 62px; } .footer-brand-copy strong { font-size: 1.35rem; } .footer-brand-copy small { font-size: .8rem; } .footer-heading { margin-bottom: 14px; font-size: 1.15rem; } .site-footer .footer-nav ul { grid-template-columns: repeat(2,minmax(0,1fr)); } .site-footer .footer-nav li:nth-child(3n) { border-right: 1px solid #d6e3ee; } .site-footer .footer-nav li:nth-child(2n) { border-right: 0; } .site-footer .footer-nav a { font-size: .84rem; min-height: 42px; padding: 8px 6px; } .footer-bottom { padding: 22px 0 18px; } .footer-bottom-inner { gap: 10px; } .footer-bottom-inner p { font-size: .85rem; } .footer-line { width: 20px; } .site-footer .footer-disclaimer { font-size: .72rem; padding: 0 18px; } }


/* Version 1.1.5: explicitly show all six footer links on every screen */
.site-footer .footer-nav ul { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:8px 0 !important; }
.site-footer .footer-nav li { display:flex !important; visibility:visible !important; opacity:1 !important; }
.site-footer .footer-nav li:nth-child(n) { border-right:1px solid #d6e3ee !important; }
.site-footer .footer-nav li:nth-child(2n) { border-right:0 !important; }
.site-footer .footer-nav a { display:flex !important; visibility:visible !important; opacity:1 !important; min-height:44px; }


/* Version 1.3.0: editorial readability and responsive content polish */
.article-content { overflow-wrap: anywhere; }
.article-content p { margin: 0 0 1.15em; }
.article-content h2, .article-content h3, .article-content h4 { line-height: 1.35; margin: 1.35em 0 .6em; }
.article-content ul, .article-content ol { margin: 0 0 1.2em 1.5em; }
.article-content img, .article-content figure, .article-featured-image img { max-width: 100%; height: auto; }
.article-featured-image { margin: 1.2rem 0 1.6rem; overflow: hidden; border-radius: 14px; }
.article-featured-image img { display: block; width: 100%; object-fit: cover; }
.post-card h2, .post-card h3 { line-height: 1.4; overflow-wrap: anywhere; }
.post-card p { overflow-wrap: anywhere; }
@media (max-width: 640px) { .article-content { font-size: 1rem; } .article-featured-image { margin: 1rem 0; border-radius: 10px; } }
