/* ═══════════════════════════════════════════════════════════════
   AK PRINT SEVA — 4 BIODATA TEMPLATES CSS (EXACT A4 SPECS)
   Template 01: Elegant Ornamental (Maroon Floral Frame)
   Template 02: Classic Indian Traditional (Ganesh & Right Photo)
   Template 03: Premium Golden Bio-Data (Golden Filigree Frame)
   Template 04: Clean Classic Bio-Data (Antique Bronze Corners)
   Clean PDF & Print Output · 100% Vector Corners & Frames
   ═══════════════════════════════════════════════════════════════ */

/* ─── A4 PAPER SHEET BASE ─── */
.a4-biodata-sheet {
    width: 210mm;
    min-height: 297mm;
    background: #ffffff !important;
    color: #000000;
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    box-sizing: border-box;
    position: relative;
    box-shadow: none;
    margin: 0 auto;
    overflow: hidden;
    line-height: 1.4;
    padding: 16px 18px;
}

/* ═══════════════════════════════════════════════════════════════
   TEMPLATE 01: ELEGANT ORNAMENTAL (Maroon Floral & Circle Photo)
   ═══════════════════════════════════════════════════════════════ */
.bio-t1-container {
    padding: 24px 28px;
    background: #FFFAF5;
    min-height: 275mm;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 3px double #7F1D1D;
    position: relative;
    color: #1c1917;
}
.bio-t1-corner-svg {
    position: absolute;
    width: 55px;
    height: 55px;
    fill: #7F1D1D;
    pointer-events: none;
}
.bio-t1-corner-tl { top: 6px; left: 6px; }
.bio-t1-corner-tr { top: 6px; right: 6px; transform: scaleX(-1); }
.bio-t1-corner-bl { bottom: 6px; left: 6px; transform: scaleY(-1); }
.bio-t1-corner-br { bottom: 6px; right: 6px; transform: scale(-1); }

.bio-t1-top-photo-wrap {
    text-align: center;
    margin: 10px 0 16px;
}
.bio-t1-photo-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #7F1D1D;
    box-shadow: 0 4px 14px rgba(127, 29, 29, 0.25);
    background: #f5f5f4;
}

.bio-t1-sec-title {
    text-align: center;
    font-size: 19px;
    font-weight: 800;
    color: #7F1D1D;
    margin: 14px 0 10px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(127, 29, 29, 0.25);
    padding-bottom: 4px;
}

.bio-t1-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    row-gap: 6px;
    column-gap: 12px;
    font-size: 13.5px;
    line-height: 1.45;
}
.bio-t1-label {
    font-weight: 700;
    color: #44403c;
}
.bio-t1-val {
    font-weight: 600;
    color: #0c0a09;
}


/* ═══════════════════════════════════════════════════════════════
   TEMPLATE 02: CLASSIC INDIAN TRADITIONAL (Ganesh & Right Photo)
   ═══════════════════════════════════════════════════════════════ */
.bio-t2-container {
    padding: 24px 28px;
    background: #FFFDF9;
    min-height: 275mm;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid #78350F;
    outline: 1px solid #B45309;
    outline-offset: -5px;
    position: relative;
    color: #292524;
}
.bio-t2-top-banner {
    text-align: center;
    margin-bottom: 8px;
}
.bio-top-symbol-svg {
    width: 38px;
    height: 38px;
    margin: 0 auto 2px;
    display: block;
    color: inherit;
    fill: currentColor;
}
.bio-t2-mantra {
    font-size: 16px;
    font-weight: 800;
    color: #78350F;
    letter-spacing: 0.5px;
}
.bio-t2-symbol-svg {
    width: 38px;
    height: 38px;
    fill: #78350F;
    margin: 0 auto 2px;
    display: block;
}

.bio-t2-header-grid {
    display: grid;
    grid-template-columns: 1fr 125px;
    gap: 16px;
    align-items: flex-start;
}
.bio-t2-name {
    font-size: 24px;
    font-weight: 900;
    color: #78350F;
    margin: 0 0 10px;
}
.bio-t2-photo-rect {
    width: 120px;
    height: 145px;
    object-fit: cover;
    border: 2px solid #78350F;
    padding: 2px;
    background: #fff;
}

.bio-t2-sec-title {
    font-size: 16px;
    font-weight: 900;
    color: #78350F;
    margin: 14px 0 8px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bio-t2-grid {
    display: grid;
    grid-template-columns: 130px 12px 1fr;
    row-gap: 5px;
    font-size: 13px;
    line-height: 1.45;
}
.bio-t2-label { font-weight: 700; color: #44403c; }
.bio-t2-colon { font-weight: 800; text-align: center; color: #78350F; }
.bio-t2-val { font-weight: 600; color: #1c1917; }


/* ═══════════════════════════════════════════════════════════════
   TEMPLATE 03: PREMIUM GOLDEN BIO-DATA (Golden Frame & Filigree)
   ═══════════════════════════════════════════════════════════════ */
.bio-t3-container {
    padding: 24px 28px;
    background: #FEFDF9;
    min-height: 275mm;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 3px double #B45309;
    position: relative;
    color: #1f2937;
}
.bio-t3-mantra-title {
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    color: #92400E;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.bio-t3-main-title {
    text-align: center;
    font-size: 22px;
    font-weight: 900;
    color: #78350F;
    margin: 2px 0 10px;
    letter-spacing: 1px;
}

.bio-t3-content-grid {
    display: grid;
    grid-template-columns: 1fr 130px;
    gap: 16px;
    align-items: flex-start;
}
.bio-t3-photo-box {
    width: 125px;
    height: 150px;
    object-fit: cover;
    border: 2px solid #B45309;
    padding: 3px;
    background: #fff;
}

.bio-t3-sec-title {
    font-size: 17px;
    font-weight: 900;
    color: #92400E;
    margin: 14px 0 8px;
    text-align: center;
    border-bottom: 1.5px solid rgba(180, 83, 9, 0.3);
    padding-bottom: 3px;
}

.bio-t3-grid {
    display: grid;
    grid-template-columns: 130px 12px 1fr;
    row-gap: 5px;
    font-size: 13px;
    line-height: 1.45;
}
.bio-t3-label { font-weight: 700; color: #4b5563; }
.bio-t3-colon { font-weight: 800; text-align: center; color: #92400E; }
.bio-t3-val { font-weight: 600; color: #111827; }


/* ═══════════════════════════════════════════════════════════════
   TEMPLATE 04: CLEAN CLASSIC BIO-DATA (Ivory & Antique Bronze)
   ═══════════════════════════════════════════════════════════════ */
.bio-t4-container {
    padding: 24px 28px;
    background: #FFFFFC;
    min-height: 275mm;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid #57534E;
    position: relative;
    color: #1c1917;
}

.bio-t4-main-title {
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    color: #78350F;
    letter-spacing: 2px;
    margin: 4px 0 12px;
    text-transform: uppercase;
}

.bio-t4-content-grid {
    display: grid;
    grid-template-columns: 1fr 130px;
    gap: 16px;
    align-items: flex-start;
}
.bio-t4-photo-box {
    width: 125px;
    height: 150px;
    object-fit: cover;
    border: 2px solid #78350F;
    padding: 2px;
    background: #fff;
}

.bio-t4-sec-title {
    font-size: 16px;
    font-weight: 900;
    color: #78350F;
    margin: 16px 0 8px;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bio-t4-grid {
    display: grid;
    grid-template-columns: 130px 12px 1fr;
    row-gap: 5.5px;
    font-size: 13px;
    line-height: 1.45;
}
.bio-t4-label { font-weight: 700; color: #44403c; }
.bio-t4-colon { font-weight: 800; text-align: center; color: #78350F; }
.bio-t4-val { font-weight: 600; color: #0c0a09; }


/* ═══════════════════════════════════════════════════════════════
   PRINT STYLES FOR EXACT 1-PAGE VECTOR A4 PRINT & PDF
   ═══════════════════════════════════════════════════════════════ */
@media print {
    @page {
        size: A4 portrait;
        margin: 0mm !important;
    }
    *, *:before, *:after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        box-sizing: border-box !important;
    }
    html, body, .biodata-app-page, main, .studio-main-container, .studio-2col-layout, .studio-right-deck, .preview-deck-card, .pdk-canvas-viewport, .a4-scale-stage {
        background: #ffffff !important;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        border: none !important;
        box-shadow: none !important;
        overflow: visible !important;
        position: static !important;
    }
    header, nav, footer, .builder-hero, .studio-left-deck, .pdk-header, .pdk-footer-bar, .toast-container, .hero-bg-shapes {
        display: none !important;
    }
    .a4-scale-stage {
        transform: none !important;
    }
    .a4-biodata-sheet {
        width: 210mm !important;
        height: 296mm !important;
        max-height: 296mm !important;
        min-height: 296mm !important;
        margin: 0 auto !important;
        padding: 8mm 10mm !important;
        background: #ffffff !important;
        box-shadow: none !important;
        border: none !important;
        page-break-after: avoid !important;
        page-break-inside: avoid !important;
        overflow: hidden !important;
    }
    .bio-t1-container, .bio-t2-container, .bio-t3-container, .bio-t4-container {
        min-height: 278mm !important;
        height: 278mm !important;
        max-height: 278mm !important;
        padding: 16px 20px !important;
    }
}
