:root {
    --white: #FFF;
    --text-field-outline-2: #CECCCC;
    --primary-black: #231F20;
    --primary-dark: #000;
    --link-color: #0563c1;
}

@page {
    margin: 0 !important;
    padding: 0 !important;
}

.pagedjs_margin-top,
.pagedjs_margin-bottom,
.pagedjs_margin-left,
.pagedjs_margin-right,
.pagedjs_margin-top-left-corner-holder,
.pagedjs_margin-top-right-corner-holder,
.pagedjs_margin-bottom-left-corner-holder,
.pagedjs_margin-bottom-right-corner-holder,
.pagedjs_margin-box {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.pagedjs_pages {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 24px auto;
    overflow-x: hidden;
}

.pagedjs_page {
    height: 959px !important;
    width: 678px !important;
    border: 1px solid var(--text-field-outline-2);
}

.pagedjs_page,
.pagedjs_sheet {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
}

.pagedjs_sheet,
.pagedjs_pagebox {
    box-sizing: unset !important;
    height: unset !important;
    width: unset !important;
    padding: unset !important;
    display: unset !important;
    position: unset !important;
}

@media screen {
    #resume-print {
        visibility: hidden;
        height: 0 !important;
        overflow: hidden !important;
    }
}

@media print {
    #resume-print {
        display: none !important;
    }
}

.classic-resume-template {
    background: var(--white);
}

.classic-resume-template-page {
    display: flex;
    flex-direction: column;
    font-family: var(--rt-font-family, 'Calibri');
    min-height: 959px;
    height: 959px;
    max-height: 959px;
    padding: var(--rt-tb-margin, 24px) var(--rt-side-margin, 32px) !important;
    page-break-after: always;
}

.classic-resume-template-page h1,
.classic-resume-template-page h2,
.classic-resume-template-page h3,
.classic-resume-template-page h4,
.classic-resume-template-page h5,
.classic-resume-template-page h6,
.classic-resume-template-page p,
.classic-resume-template-page ul {
    margin-block-start: unset;
    margin-block-end: unset;
    padding-inline-start: unset;
}

.classic-resume-template-page .dynamic-content {
    color: #ff7b24;
}

.classic-resume-template-page .template-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.classic-resume-template-page .template-header h2 {
    font-size: var(--rt-main-heading, 18px);
    line-height: normal;
}

.classic-resume-template-page .template-header h4 {
    font-size: var(--rt-subheader, 12px);
}

.classic-resume-template-page .template-header .tmp-contact-info {
    font-size: var(--rt-subheader, 12px);
    font-weight: 500;
}

.classic-resume-template-page .template-header .tmp-contact-info a {
    color: var(--link-color);
    text-decoration: underline;
    white-space: nowrap;
}

.classic-resume-template-page .section {
    display: flex;
    flex-direction: column;
    margin-top: var(--rt-section-space, 12px);
}

.classic-resume-template-page .section .section-title {
    width: 100%;
    text-transform: uppercase;
    font-size: var(--rt-section-heading, 14px);
    border-bottom: 1.5px solid var(--primary-black);
    text-align: center;
    color: #0070c0;
    margin-bottom: 0.375rem;
    line-height: 1.618;
}

.classic-resume-template-page .section.tmp-summary-section p {
    font-size: var(--rt-body, 11px);
    line-height: var(--line-space, 1.2);
    margin-bottom: 0;
}

.classic-resume-template-page .section.tmp-skills-section p {
    font-size: var(--rt-body, 11px);
    line-height: var(--line-space, 1.2);
    margin-bottom: 0;
}

.classic-resume-template-page .section.experience-section .exp-items {
    display: flex;
    flex-direction: column;
    gap: var(--rt-item-space, 8px);
}

.classic-resume-template-page .section.experience-section .exp-items .exp-item .exp-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.classic-resume-template-page .section.experience-section .exp-items .exp-item .exp-info span {
    font-size: var(--rt-body, 11px);
}

.classic-resume-template-page .section.experience-section .exp-items .exp-item .exp-description {
    margin: 0.25rem 0;
}

.classic-resume-template-page .section.experience-section .exp-items .exp-item .exp-description li {
    list-style-type: disc;
    margin-left: 1.75rem;
    font-size: var(--rt-body, 11px);
    line-height: var(--rt-line-space, 1.2);
}

.classic-resume-template-page .section.experience-section .exp-items .exp-item .exp-tech-skills p {
    font-style: italic;
    font-size: var(--rt-body, 11px);
    line-height: var(--rt-line-space, 1.2);
    margin-bottom: 0;
    text-decoration: underline;
}


.classic-resume-template-page .section.tmp-projects-section .project-items {
    display: flex;
    flex-direction: column;
    gap: var(--rt-item-space, 8px);
}

.classic-resume-template-page .section.tmp-projects-section .project-items .prj-item .project-title {
    font-size: var(--rt-subheader, 12px);
    line-height: var(--rt-line-space, 1.2);
}

.classic-resume-template-page .section.tmp-projects-section .project-items .prj-item .project-title b {
    font-weight: 700;
}

.classic-resume-template-page .section.tmp-projects-section .project-items .prj-item a {
    color: var(--link-color);
    font-size: var(--rt-body, 11px);
    line-height: var(--rt-line-space, 1.2);
    margin-bottom: 0;
}

.classic-resume-template-page .section.tmp-projects-section .project-items .prj-item .project-desc,
.classic-resume-template-page .section.tmp-projects-section .project-items .prj-item ul li {
    font-size: var(--rt-body, 11px);
    line-height: var(--rt-line-space, 1.2);
    margin-bottom: 0;
}

.classic-resume-template-page .section.tmp-projects-section .project-items .prj-item .project-points {
    margin-top: 0.25rem;
}

.classic-resume-template-page .section.tmp-projects-section .project-items .prj-item ul li {
    list-style-type: disc;
    margin-left: 1.75rem;
}


.classic-resume-template-page .section.tmp-education-section .education-items {
    display: flex;
    flex-direction: column;
    gap: var(--rt-item-space, 8px);
}

.classic-resume-template-page .section.tmp-education-section .education-items .ed-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.classic-resume-template-page .section.tmp-education-section .education-items .ed-item span {
    font-size: var(--rt-body, 11px);
    line-height: var(--rt-line-space, 1.2);
}

.classic-resume-template-page .section.tmp-personal-details-section ul li {
    list-style-type: disc;
    margin-left: 1.75rem;
    font-size: var(--rt-body, 11px);
    line-height: var(--rt-line-space, 1.2);
    margin-bottom: 0;
}

.classic-resume-template-page .section.tmp-courses-section ul li {
    list-style-type: disc;
    margin-left: 1.75rem;
    font-size: var(--rt-body, 11px);
    line-height: var(--rt-line-space, 1.2);
    margin-bottom: 0;
}

.classic-resume-template-page .section.common-section ul li {
    list-style-type: disc;
    margin-left: 1rem;
    font-size: var(--rt-body, 11px);
    line-height: var(--rt-line-space, 1.2);
    margin-bottom: 0;
}

.modern-resume-template-page {
    display: flex;
    flex-direction: column;
    font-family: var(--rt-font-family, 'Calibri');
    min-height: 959px;
    height: 959px;
    max-height: 959px;
    padding: var(--rt-tb-margin, 24px) var(--rt-side-margin, 32px) !important;
    page-break-after: always;
}

.modern-resume-template-page h1,
.modern-resume-template-page h2,
.modern-resume-template-page h3,
.modern-resume-template-page h4,
.modern-resume-template-page h5,
.modern-resume-template-page h6,
.modern-resume-template-page p,
.modern-resume-template-page ul {
    margin-block-start: unset;
    margin-block-end: unset;
    padding-inline-start: unset;
}

.modern-resume-template-page .dynamic-content {
    color: #ff7b24 !important;
}

.modern-resume-template-page .template-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.modern-resume-template-page .template-header h2 {
    font-size: var(--rt-main-heading, 20px);
    text-transform: uppercase;
}

.modern-resume-template-page .template-header h4 {
    font-size: var(--rt-subheader, 12px);
    color: #666666;
}

.modern-resume-template-page .template-header .tmp-contact-info {
    font-size: var(--rt-subheader, 12px);
    font-weight: 500;
}

.modern-resume-template-page .template-header .tmp-contact-info a {
    color: var(--link-color);
    text-decoration: underline;
    white-space: nowrap;
}

.modern-resume-template-page .section {
    display: flex;
    flex-direction: column;
    margin-top: var(--rt-section-space, 12px);
}

.modern-resume-template-page .section .section-title {
    font-size: var(--rt-section-heading, 13px);
    text-transform: uppercase;
    border-bottom: 1.5px solid #666666;
    color: var(--primary-black);
    margin-bottom: 0.375rem;
    line-height: 1.618;
}

.modern-resume-template-page .section.mt-summary-section p {
    font-size: var(--rt-body, 11px);
    line-height: var(--rt-line-space, 1.2);
    margin-bottom: 0;
}

.modern-resume-template-page .section.mt-skills-section p {
    font-size: var(--rt-body, 11px);
    line-height: var(--rt-line-space, 1.2);
    margin-bottom: 0;
}

.modern-resume-template-page .section.mt-skills-section p b {
    color: #666666;
}

.modern-resume-template-page .section.mt-experience-section .exp-items {
    display: flex;
    flex-direction: column;
    gap: var(--rt-item-space, 8px);
}

.modern-resume-template-page .section.mt-experience-section .exp-items .exp-item .exp-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    color: #666666;
    font-size: var(--rt-subheader, 12px);
}

.modern-resume-template-page .section.mt-experience-section .exp-items .exp-item .exp-description {
    margin: 0.25rem 0;
}

.modern-resume-template-page .section.mt-experience-section .exp-items .exp-item .exp-description li {
    list-style-type: disc;
    margin-left: 1.75rem;
    font-size: var(--rt-body, 11px);
    line-height: var(--rt-line-space, 1.2);
    margin-bottom: 0;
}

.modern-resume-template-page .section.mt-experience-section .exp-items .exp-item .exp-tech-skills p {
    font-style: italic;
    font-size: var(--rt-body, 11px);
    line-height: var(--rt-line-space, 1.2);
    margin-bottom: 0;
    text-decoration: underline;
    color: #666666;
}

.modern-resume-template-page .section.mt-projects-section .project-items {
    display: flex;
    flex-direction: column;
    gap: var(--rt-item-space, 8px);
}

.modern-resume-template-page .section.mt-projects-section .project-items .prj-item .project-title {
    font-size: var(--rt-subheader, 12px);
    line-height: var(--rt-line-space, 1.2);
    color: #666666;
    margin-bottom: 0.125rem;
}

.modern-resume-template-page .section.mt-projects-section .project-items .prj-item .project-title b {
    font-weight: 700;
}

.modern-resume-template-page .section.mt-projects-section .project-items .prj-item .project-desc,
.modern-resume-template-page .section.mt-projects-section .project-items .prj-item ul li {
    font-size: var(--rt-body, 11px);
    line-height: var(--rt-line-space, 1.2);
    margin-bottom: 0;
}

.modern-resume-template-page .section.mt-projects-section .project-items .prj-item .project-points {
    margin-top: 0.25rem;
}

.modern-resume-template-page .section.mt-projects-section .project-items .prj-item ul li {
    list-style-type: disc;
    margin-left: 1.75rem;
}

.modern-resume-template-page .section.mt-education-section .education-items {
    display: flex;
    flex-direction: column;
    gap: var(--rt-item-space, 8px);
}

.modern-resume-template-page .section.mt-education-section .education-items .ed-item {
    display: flex;
    flex-direction: column;
}

.modern-resume-template-page .section.mt-education-section .education-items .ed-item span {
    font-size: var(--rt-subheader, 12px);
    line-height: var(--rt-line-space, 1.2);
}

.modern-resume-template-page .section.mt-education-section .education-items .ed-item span.ed-title {
    color: #666666;
}

.modern-resume-template-page .section.common-section ul li {
    list-style-type: disc;
    margin-left: 1.75rem;
    font-size: var(--rt-body, 11px);
    line-height: var(--rt-line-space, 1.2);
    margin-bottom: 0;
}

.elegant-resume-template-page {
    display: flex;
    flex-direction: column;
    font-family: var(--rt-font-family, 'Times New Roman');
    min-height: 959px;
    height: 959px;
    max-height: 959px;
    padding: var(--rt-tb-margin, 24px) var(--rt-side-margin, 32px) !important;
    page-break-after: always;
}

.elegant-resume-template-page h1,
.elegant-resume-template-page h2,
.elegant-resume-template-page h3,
.elegant-resume-template-page h4,
.elegant-resume-template-page h5,
.elegant-resume-template-page h6,
.elegant-resume-template-page p,
.elegant-resume-template-page ul {
    margin-block-start: unset;
    margin-block-end: unset;
    padding-inline-start: unset;
}

.elegant-resume-template-page .dynamic-content {
    color: #ff7b24 !important;
}

.elegant-resume-template-page .template-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.elegant-resume-template-page .template-header h2 {
    font-size: var(--rt-main-heading, 20px);
    text-transform: uppercase;
}

.elegant-resume-template-page .template-header h4 {
    font-size: var(--rt-subheader, 12px);
    font-weight: 400;
    color: #434343;
}

.elegant-resume-template-page .template-header .tmp-contact-info {
    font-size: var(--rt-subheader, 12px);
    font-weight: 500;
    color: #434343;
}

.elegant-resume-template-page .template-header .tmp-contact-info a {
    color: var(--link-color);
    text-decoration: underline;
    white-space: nowrap;
}

.elegant-resume-template-page .section {
    display: flex;
    flex-direction: column;
    margin-top: var(--rt-section-space, 12px);
}

.elegant-resume-template-page .section .section-title {
    font-size: var(--rt-section-heading, 13px);
    text-transform: uppercase;
    border-bottom: 1.5px solid #666666;
    color: var(--primary-dark);
    margin-bottom: 0.375rem;
    line-height: 1.618;
    text-align: center;
    font-weight: 500;
}

.elegant-resume-template-page .section.elt-summary-section p {
    font-size: var(--rt-body, 11px);
    line-height: var(--rt-line-space, 1.2);
    margin-bottom: 0;
    color: #434343;
}

.elegant-resume-template-page .section.elt-skills-section p {
    font-size: var(--rt-body, 11px);
    line-height: var(--rt-line-space, 1.2);
    margin-bottom: 0;
    color: #434343;
}

.elegant-resume-template-page .section.elt-skills-section p b {
    color: var(--primary-dark);
    font-weight: 500;
}

.elegant-resume-template-page .section.elt-experience-section .exp-items {
    display: flex;
    flex-direction: column;
    gap: var(--rt-item-space, 8px);
}

.elegant-resume-template-page .section.elt-experience-section .exp-items .exp-item .exp-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    color: #3d85c6;
    font-size: var(--rt-subheader, 12px);
}

.elegant-resume-template-page .section.elt-experience-section .exp-items .exp-item .exp-info .exp-title {
    font-weight: 600;
}

.elegant-resume-template-page .section.elt-experience-section .exp-items .exp-item .exp-description {
    margin: 0.25rem 0;
}

.elegant-resume-template-page .section.elt-experience-section .exp-items .exp-item .exp-description li {
    list-style-type: disc;
    margin-left: 1.75rem;
    font-size: var(--rt-body, 11px);
    line-height: var(--rt-line-space, 1.2);
    margin-bottom: 0;
    color: #434343;
}

.elegant-resume-template-page .section.elt-experience-section .exp-items .exp-item .exp-tech-skills p {
    font-style: italic;
    font-size: var(--rt-body, 11px);
    line-height: var(--rt-line-space, 1.2);
    margin-bottom: 0;
    text-decoration: underline;
    color: #434343;
}

.elegant-resume-template-page .section.elt-experience-section .exp-items .exp-item .exp-tech-skills p b {
    color: var(--primary-dark);
}

.elegant-resume-template-page .section.elt-projects-section .project-items {
    display: flex;
    flex-direction: column;
    gap: var(--rt-item-space, 8px);
}

.elegant-resume-template-page .section.elt-projects-section .project-items .prj-item .project-title {
    font-size: var(--rt-subheader, 12px);
    line-height: var(--rt-line-space, 1.2);
    font-weight: 500;
    color: var(--primary-dark);
}

.elegant-resume-template-page .section.elt-projects-section .project-items .prj-item .project-title b {
    color: #3d85c6;
    font-weight: 700;
}

.elegant-resume-template-page .section.elt-projects-section .project-items .prj-item .project-desc,
.elegant-resume-template-page .section.elt-projects-section .project-items .prj-item ul li {
    font-size: var(--rt-body, 11px);
    line-height: var(--rt-line-space, 1.2);
    margin-bottom: 0;
    color: #434343;
}

.elegant-resume-template-page .section.elt-projects-section .project-items .prj-item .project-points {
    margin-top: 0.25rem;
}

.elegant-resume-template-page .section.elt-projects-section .project-items .prj-item ul li {
    list-style-type: disc;
    margin-left: 1.75rem;
}

.elegant-resume-template-page .section.elt-education-section .education-items {
    display: flex;
    flex-direction: column;
    gap: var(--rt-item-space, 8px);
}

.elegant-resume-template-page .section.elt-education-section .education-items .ed-item {
    display: flex;
    flex-direction: column;
}

.elegant-resume-template-page .section.elt-education-section .education-items .ed-item span {
    font-size: var(--rt-subheader, 12px);
    line-height: var(--rt-line-space, 1.2);
    color: #434343;
}

.elegant-resume-template-page .section.elt-education-section .education-items .ed-item span.ed-title {
    color: #000;
}

.elegant-resume-template-page .section.elt-education-section .education-items .ed-item span.ed-title b,
.elegant-resume-template-page .section.elt-education-section .education-items .ed-item span.ed-title strong {
    color: #3d85c6;
    font-weight: 700;
}

.elegant-resume-template-page .section.common-section ul li {
    list-style-type: disc;
    margin-left: 1.75rem;
    font-size: var(--rt-body, 11px);
    line-height: var(--rt-line-space, 1.2);
    margin-bottom: 0;
}



.resume-page {
    /* width: 678px;
    height: 959px;
    max-height: 959px;
    min-height: 959px;
    background: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    overflow: hidden; */
    /* CRITICAL: prevents extra white space */
}

#resume-preview-container {
    width: 678px;
    margin: auto;
}

.page-separator {
    width: 100%;
    height: 20px;
    background: rgb(245, 245, 245);
}


@media print {
    .page-separator {
        display: none !important;
        /* hide the gray bar */
    }

    .page-break-marker {
        page-break-before: always;
        /* force new page */
    }
}