@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;700&family=Noto+Sans+Devanagari:wght@400;700&family=Open+Sans:wght@400;700&display=swap');

.page {
    --magenta: #b30059;
    --yellow: #f6a400;
    --dark-brown: #5d2e2e;
    --white: #ffffff;
    --black: #000000;
    --a4-width: 794px;
    --a4-height: 1123px;
    width: var(--a4-width);
    height: var(--a4-height);
    background-color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    margin: 0 auto;
    font-family: 'EB Garamond', serif;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.page *,
.page *::before,f
.page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.page .header-banner {
    background-color: var(--magenta);
    width: 100%;
    height: 220px;
    position: relative;
    z-index: 25;
    border-bottom-right-radius: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 30px 60px;
    color: var(--white);
}

.page .header-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70%;
    height: 8px;
    background-color: var(--yellow);
    z-index: 50;
}

.page .left-sidebar-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 440px;
    height: 620px;
    background-color: var(--magenta);
    border-bottom-right-radius: 180px;
    z-index: 10;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
}

.page .logo-capsule {
    position: absolute;
    top: 10px;
    left: -60px;
    background: #fff;
    border-radius: 0 100px 100px 0;
    padding: 5px 45px 5px 25px;
    display: flex;
    align-items: center;
    height: 85px;
    z-index: 100;
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
}

.page .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-family: 'EB Garamond', serif;
    padding-left: 50px;
}

.page .jain {
    font-size: 22px;
    color: #e53935;
    font-style: italic;
    font-weight: 700;
    margin-bottom: -4px;
}

.page .vivah {
    font-size: 20px;
    color: #4169e1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: baseline;
}

.page .vivah .stylized {
    font-size: 1.4em;
    color: #4169e1;
    margin-right: -2px;
    font-weight: 900;
}

.page .header-hindi-content {
    font-family: 'Noto Sans Devanagari', sans-serif;
    z-index: 20;
    text-align: right;
}

.page .hindi-title {
    font-size: 70px;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1;
}

.page .hindi-subtitle {
    font-size: 26px;
    font-weight: 400;
    line-height: 1.4;
    margin-top: 15px;
}

.page .title-underline {
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--white), transparent);
    margin: 10px 0;
    position: relative;
}

.page .title-underline::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: rgba(255,255,255,0.4);
}

.page .profile-container {
    position: absolute;
    top: 100px;
    left: 0;
    width: 440px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page .photo-outer-ring {
    width: 300px;
    height: 300px;
    background-color: var(--yellow);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 10px solid var(--magenta);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.page .photo-inner-frame {
    width: 260px;
    height: 260px;
    background-color: var(--white);
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid var(--white);
}

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

.page .name-container {
    color: var(--white);
    width: 100%;
    padding: 40px 10px;
    text-align: center;
    margin-top: -20px;
}

.page .name-container h1 {
    font-size: 60px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.1;
}

.page .details-container {
    display: grid;
    grid-template-columns: 46% 8% 46%;
    padding: 0 50px;
    margin-top: 0;
    position: relative;
    z-index: 5;
}

.page .left-details-column {
    padding-top: 400px;
}

.page .right-details-column {
    padding-top: 10px;
    padding-left: 40px;
}

.page .section-header {
    color: var(--magenta);
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    border-bottom: 3px solid var(--magenta);
    display: inline-block;
    width: 100%;
    padding-bottom: 10px;
    letter-spacing: 1.5px;
}

.page .details-list {
    list-style: none;
    color: #ad1916;
}

.page .detail-row {
    display: flex;
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    text-transform: uppercase;
}

.page .detail-label {
    flex: 1.2;
    padding-right: 5px;
}

.page .detail-colon {
    width: 25px;
    text-align: center;
}

.page .detail-value {
    flex: 1.8;
}

.page .address-block {
    line-height: 1.5;
    font-size: 16px;
}

.page .vertical-divider-box {
    display: flex;
    justify-content: center;
    height: 800px;
    position: relative;
    top: 50px;
}

.page .vertical-divider-line {
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #b3005988, transparent);
}

.page .gothra-title {
    margin-top: 20px;
    border-bottom: 2px solid var(--magenta);
    color: var(--magenta);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
    padding-bottom: 3px;
}

@media print {
    .page {
        box-shadow: none;
        margin: 0;
    }

    @page {
        size: A4;
        margin: 0;
    }
}
#templatePreviewHost {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: hidden;
    height: 100%;
}


.preview-card-wrap,
.preview-card-host {
    width: fit-content !important;
    margin: 0 !important;
}
/* 🔥 REMOVE BACKGROUND CARD COMPLETELY */

.preview-card,
.preview-card-wrap,
.preview-card-host {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

.preview-layout {
    background: transparent !important;
}
.preview-card-wrap {
    background: none !important;
}

.preview-card-host {
    background: none !important;
}

.preview-layout {
    background: none !important;
}
#templatePreviewHost .page {
    transform: scale(0.34);
    transform-origin: top left;
    margin-left: 0 !important;
    margin-bottom: -720px;
}