﻿@page {
    size: A4 landscape;
    margin: 0;
}

html,
body {
    margin: 0;
    padding: 0;
    background: white;
    direction: rtl;
    font-family: "Noto Sans Arabic", Arial, sans-serif;
}

#waitMessage {
    text-align: center;
    font-size: 16px;
    color: #ff5733;
    margin-top: 20px;
}

.certificate-content {
    width: 1123px;
    height: 794px;
    position: relative;
    margin: 40px auto 0 auto;
    background: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
    text-align: center;
}

.certificate-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 140px;
}

    .certificate-header img {
        width: 100%;
        height: 140px;
        display: block;
    }

.certificate-title {
    position: absolute;
    top: 175px;
    left: 0;
    right: 0;
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    color: #1f3d5a;
}

.certificate-body {
    position: absolute;
    top: 260px;
    left: 180px;
    right: 180px;
    text-align: center;
}

    .certificate-body p {
        margin: 0;
        padding: 0;
        font-size: 25px;
        line-height: 1.85;
        font-weight: 700;
        color: #000;
    }

.student-name {
    font-size: 30px;
    font-weight: 800;
    color: #1f3d5a;
}

.program-name {
    font-size: 29px;
    font-weight: 800;
    color: #1f3d5a;
}

.signature-box {
    position: absolute;
    left: 145px;
    bottom: 45px;
    width: 280px;
    text-align: center;
}
    .signature-box h4 {
        margin: 0 0 8px 0;
        font-size: 22px;
        font-weight: 700;
        color: #000;
    }

    .signature-box img {
        width: 120px;
        height: auto;
        display: block;
        margin: 5px auto;
    }
    .signature-box h5 {
        margin-top: 8px;
        font-size: 18px;
        font-weight: 700;
        color: #000;
    }
.stamp-box {
    position: absolute;
    right: 120px;
    bottom: 55px;
    width: 180px;
    text-align: center;
}

    .stamp-box img {
        width: 150px;
        height: auto;
        opacity: 0.95;
    }
.certificate-footer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
}

    .certificate-footer img {
        width: 100%;
        height: auto;
        display: block;
    }
