/* Bangladesh NID classic Bangla & English typography stack matched to your exact live CSS */
@font-face {
    font-family: 'NIDBangla';
    src: local('Kalpurush'), local('SolaimanLipi'), local('Bangla'), local('SutonnyMJ');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'NIDBangla';
    src: local('Kalpurush Bold'), local('Kalpurush'), local('SolaimanLipi');
    font-weight: bold;
    font-style: normal;
}

.exact-nid-sheet {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    background: #ffffff;
    padding: 20px;
}

/* Exact card size: 3.3in wide by 2.3in tall */
.exact-card {
    width: 3.3in;
    height: 2.3in;
    border: 1.5px solid #111111;
    background: #ffffff;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    flex-shrink: 0;
    font-family: 'NIDBangla', 'Kalpurush', 'SolaimanLipi', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

/* Front Header */
.exact-front-header {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1.5px solid #111111;
    padding: 2px 6px;
    flex-shrink: 0;
}

.bd-emblem img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
}

.exact-header-texts {
    flex: 2;
    text-align: center;
    line-height: 1.1;
}

.title-bn {
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    font-family: 'NIDBangla', 'Kalpurush', 'SolaimanLipi', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

.title-en {
    font-size: 9.6px;
    font-weight: 500;
    color: #15803d;
    font-family: Arial, Helvetica, sans-serif;
    margin-top: 0.5px;
}

.title-sub {
    font-size: 10px;
    color: #111111;
    margin-top: 0.8px;
}

.slash-sep {
    font-family: Arial, Helvetica, sans-serif;
}

.bn-txt {
    font-family: 'NIDBangla', 'Kalpurush', 'SolaimanLipi', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

.en-txt {
    font-family: Arial, Helvetica, sans-serif;
}

.red-label {
    color: #ef4444;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 500;
}

.red-val {
    color: #ef4444 !important;
}

/* Front Body */
.exact-front-body {
    display: flex;
    gap: 20px;
    padding: 8px 8px;
    position: relative;
    flex: 2;
    align-items: flex-start;
    background: #ffffff;
}

.shapla-watermark {
    position: absolute;
    left: 55%;
    top: 52%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: multiply;
}

.shapla-watermark img {
    width: 110px;
    height: 110px;
    opacity: 0.72;
    object-fit: contain;
}

.exact-left-media {
    width: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.photo-frame {
    width: 67.2px;
    height: 76.8px;
    border: 1px solid #cbd5e1;
    overflow: hidden;
    background: #ffffff;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sign-frame {
    width: 58px;
    height: 22px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.sign-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.exact-info-table {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    z-index: 2;
}

.info-row {
    display: flex;
    align-items: baseline;
    gap: 1px;
    line-height: 1.16;
}

.lbl-bn {
    font-size: 18px;
    color: #111111;
    font-family: 'NIDBangla', 'Kalpurush', 'SolaimanLipi', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
    min-width: 50px;
}

.lbl-en {
    font-size: 18px;
    color: #111111;
    font-family: Arial, Helvetica, sans-serif;
    min-width: 50px;
}

.lbl-dob {
    min-width: 72px;
}

.val {
    font-size: 18px;
    color: #111111;
}

.bold-bn {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    font-family: 'NIDBangla', 'Kalpurush', 'SolaimanLipi', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

.bold-en {
    font-size: 16px;
    font-weight: 500;
    color: #111111;
    font-family: Arial, Helvetica, sans-serif;
}

.dob-red {
    font-size: 15px;
    color: #ef4444 !important;
    font-family: Arial, Helvetica, sans-serif;
}

.bold-id {
    font-size: 15px;
    font-weight: 700;
    color: #ef4444 !important;
    font-family: Arial, Helvetica, sans-serif;
}

/* Back Card */
.exact-back {
    padding: 0;
}

.back-disclaimer {
    font-size: 11px;
    line-height: 1.30;
    padding: 4px 6px;
    border-bottom: 1.5px solid #111111;
    color: #111111;
    text-align: justify;
    flex-shrink: 0;
    font-family: 'NIDBangla', 'Kalpurush', 'SolaimanLipi', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

.back-address-area {
    font-size: 11px;
    line-height: 1.2;
    padding: 4px 6px;
    flex: 11 auto;
    color: #111111;
    text-align: left;
    font-family: 'NIDBangla', 'Kalpurush', 'SolaimanLipi', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

.addr-lbl {
    color: #111111;
}

.back-middle-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    padding-left: 6px;
    border-bottom: 1.5px solid #111111;
    color: #111111;
    min-height: 15px;
    flex-shrink: 0;
}

.blood-birth {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mudron-badge {
    background: #000000;
    color: #ffffff;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'NIDBangla', 'Kalpurush', 'SolaimanLipi', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

.back-bottom-section {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex-shrink: 0;
    padding: 2px 6px 3px 6px;
    gap: 2px;
}

.back-sign-date-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 11px;
    color: #111111;
    font-family: 'NIDBangla', 'Kalpurush', 'SolaimanLipi', 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
}

.authority-sig-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.05;
}

.sig-squiggle {
    margin-left: 24px;
    margin-bottom: -2px;
}

.sig-caption {
    font-size: 11px;
}

.issue-date-block {
    font-size: 11px;
    line-height: 1.1;
}

.back-barcode-strip {
    text-align: center;
    padding: 0;
    line-height: 0;
}

.back-barcode-strip canvas {
    width: 100% !important;
    max-width: 306px;
    height: 38px !important;
    display: block;
    margin: 0 auto;
}

@media print {
    @page {
        size: auto;
        margin: 8mm;
    }
    body * {
        visibility: hidden;
    }
    #nid-card-capture-area, #nid-card-capture-area * {
        visibility: visible;
    }
    #nid-card-capture-area {
        position: absolute;
        left: 0;
        top: 0;
        width: auto;
        display: flex;
        flex-direction: row;
        gap: 6mm;
        padding: 0;
    }
    .exact-card {
        width: 3.3in !important;
        height: 2.3in !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .no-print {
        display: none !important;
    }
}
