* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    /* background-color:#2e2f2d; */
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main {
    height: 204px;
    width: 386px;
}

.front {
    margin: 20px;
    height: 204px;
    width: 325px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid lightgray;
    box-shadow: -10px 10px 5px rgb(1, 1, 33, 0.2);
    font-weight: 100;
}

.section1 {
    width: 100%;
    height: 22%;
    display: flex;
    justify-content: space-between;
    border-bottom: 0.5px solid black;
}

.middleHeading h1 {
    font-size: 20px;
    text-align: center;
    color: #244B91;
    /* font-weight: bold; */
}

.middleHeading h4 {
    font-size: 10px;
    text-align: center;
    line-height: 8px;
    /* font-weight: bold; */
    color: black;
}

.itemHeader {
    padding: 2px 5px;
    height: 100%;
}

.logo1,
.logo2,
.logo3 {
    height: 100%;
}

.section2 {
    width: 100%;
    height: 45%;
    display: flex;
    justify-content: space-between;
    border-bottom: 0.5px solid black;
    position: relative;
}

.namesection {
    padding: 7px 8px;
    font-size: 10.5px;
    line-height: 20px;
    color: black;
    white-space: nowrap;
}

#name-of-employee {
    font-size: 11px;
    font-weight: 600;
}

.employee-photo {
    height: 100%;
    /* width: 80px; Removed it to mmaintain the same photo size which is uploaded */
    /* object-fit: cover; Removed it to mmaintain the same photo size which is uploaded */
    object-position: top;
    position: absolute;
    right: 0;
}

.section3 {
    width: 100%;
    height: 23%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section3-first {
    height: 100%;
    width: 16%;
}

.qr-code {
    height: 100%;
    width: 100%;
}

.section3-middle {
    height: 100%;
    width: 49%;
    padding: 7px 8px;
    display: flex;
    flex-direction: column;
    font-size: 10.5px;
    position: relative;
}

.certNo {
    margin-bottom: 8px;
}

#cert-no {
    position: absolute;
    left: 83px;
}

.dates {
    margin-top: -2px;
    display: flex;
    gap: 18px;
    line-height: 12px;
}

#Date {
    color: rgb(211, 3, 3);
    /* font-weight: bold; */
    font-size: 10px;
}

.section3-last {
    padding: 6px 10px;
    height: 100%;
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.nameSign {
    display: inline-flex;
}

.eng-sign {
    height: 30px;
    min-width: 40px;
    margin-left: 10px;
}

.section4 {
    display: flex;
    width: 100%;
    height: 10%;
    background-color: rgb(1, 1, 33);
    color: white;
    align-items: center;
    justify-content: center;
    font-size: 7px;
}

.back {
    margin: 20px;
    height: 204px;
    width: 325px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid lightgray;
    box-shadow: -10px 10px 5px rgb(1, 1, 33, 0.2);
}

.backSection1 {
    width: 100%;
    height: 22%;
    background-color: rgb(1, 1, 33);
    color: white;
}

.backSection1 p {
    font-size: 9px;
    font-weight: 600;
    text-align: center;
    padding: 8px 10px;
}

.backSection2 {
    width: 100%;
    height: 25%;
    border-bottom: 0.5px solid black;
    position: relative;
    padding: 3px 0;
}

.backSection2 h5 {
    font-size: 9px;
    padding: 0 10px;
    font-weight: lighter;
    text-align: center;
}

.backSection2 p {
    font-size: 7.5px;
    font-weight: 600;
    color: rgb(211, 3, 3);
    position: absolute;
    bottom: 2px;
    left: 20px;
    white-space: nowrap;
    display: flex;
    justify-content: center;
    align-items: center;
}

.backSection3 {
    width: 100%;
    height: 32%;
    border-bottom: 0.5px solid black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.firstLogosection {
    padding-left: 5px;
}

.logo-backside {
    width: 60px;
}

.contentSection {
    height: 100%;
    width: 70%;
    text-align: center;
    margin-top: 2px;
}

.title {
    color: #244B91;
    font-weight: 600;
    font-size: 15px;
}

.contentSection h5 {
    font-size: 9px;
    font-weight: 400;
    line-height: 12px;
}

#email,
#website {
    color: rgb(1, 1, 33);
    font-weight: 400;
    font-size: 9px;
}

.secongLogosection {
    padding-right: 5px;
}

.backSection4 {
    width: 100%;
    height: 28%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.backSection4 h5 {
    color: rgb(211, 3, 3);
    width: fit-content;
    border-bottom: 1px solid rgb(211, 3, 3);
    font-size: 10px;
}

.backSection4 p {
    font-size: 7px;
    text-align: center;
    padding: 5px 5px;
    font-weight: 400;
    color: black;
}

@media print {
    .front,
    .back {
        page-break-after: always;
        margin: 0;
        /* Remove any margins to avoid unnecessary spacing */
        border-top-left-radius: 10px;
        /* Adjust as needed */
        border-top-right-radius: 10px;
        /* Adjust as needed */
        /* overflow: hidden; */
        font-weight: normal;
    }
    .back {
        page-break-before: always;
        /* Ensure a page break before the back side */
        font-weight: normal;
    }
    .main {
        background-color: white !important;
        /* Set a white background for printing */
    }
    @page {
        size: 325px 204px;
        /* Set the overall size of the printed page */
        margin: 0;
        /* Remove any default margin on the printed page */
    }
}