.certificate-container {
    position: relative;
    width: 100%;
    max-width: 1140px;
    min-height: 1000px;
    margin: auto;
    background: #fff;
    border: 8px solid #213b4f;
    padding: 80px 70px 120px;
    overflow: hidden;
    font-family: "Times New Roman", serif;
    box-sizing: border-box;
}

/* INNER BORDER */
.certificate-container::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 2px solid #213b4f;
    pointer-events: none;
}

/* RIGHT PILLAR */
.pillar-right {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 1;
}



/* LOGO */
.top-logo {
    text-align: center;
    position: relative;
    z-index: 2;
}

.top-logo img {
    width: 100%;
    max-width: 350px !important;
}

/* NAME */
.student-name {
    text-align: center;
    font-size: 64px;
    font-weight: 700;
    color: #b68d2c;
    margin-top: 30px;
    line-height: 1.1;
    position: relative;
    z-index: 2;
}

.student-name2 {
    text-align: center;
    font-size: 58px;
    color: #1d2b4f;
    margin-top: 25px;
    line-height: 1.1;
    position: relative;
    z-index: 2;
}

/* TEXTS */
.certificate-text {
    text-align: center;
    font-size: 28px;
    color: #000;
    line-height: 1.5;
    margin-top: 18px;
    position: relative;
    z-index: 2;
}

.certify-text {
    text-align: center;
    font-size: 28px;
    color: #000;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.description {
    text-align: center;
    font-size: 24px;
    line-height: 1.6;
    color: #111;
    max-width: 850px;
    margin: 28px auto 0;
    position: relative;
    z-index: 2;
}

/* DIVIDER */
.divider {
    width: 420px;
    height: 3px;
    background: #b68d2c;
    margin: 40px auto 0;
    position: relative;
    z-index: 2;
}

/* SIGNATURES */
.signature-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.signature-box {
    width: 320px;
    text-align: center;
}

.sign-image img {
    max-width: 180px;
    height: auto;
}

.sign-line {
    width: 100%;
    height: 1px;
    background: #777;
    margin-top: 10px;
}

.sign-title {
    margin-top: 12px;
    font-size: 22px;
    color: #7b6427;
}

/* QR */
.qr {
    position: absolute;
    bottom: 20px;
    left: 40px;
    z-index: 5;
}

.qr img {
    width: 70px;
    
    object-fit: contain;
}

/* SERIAL */
.serial {
    position: absolute;
    bottom: 50px;
    left: 130px;
    font-size: 20px;
    font-weight: 600;
    color: #000;
    z-index: 5;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 1200px) {

    .pillar-right img {
        opacity: 0.15;
    }

    .student-name {
        font-size: 54px;
    }

    .student-name2 {
        font-size: 50px;
    }

}

@media (max-width: 768px) {

    .certificate-container {
        padding: 50px 25px 120px;
        min-height: auto;
    }

    .top-logo img {
        max-width: 320px;
    }

    .student-name {
        font-size: 40px;
        margin-top: 45px;
    }

    .student-name2 {
        font-size: 38px;
    }

    .certificate-text,
    .certify-text {
        font-size: 20px;
    }

    .description {
        font-size: 18px;
    }

    .divider {
        width: 220px;
    }

    .signature-wrapper {
        flex-direction: column;
        align-items: center;
        margin-top: 70px;
    }

    .signature-box {
        width: 100%;
        max-width: 280px;
    }

    .pillar-right {
        justify-content: flex-end;
    }

    .pillar-right img {
        height: 70%;
        opacity: 0.08;
    }

    .qr {
        left: 20px;
        bottom: 20px;
    }

    .qr img {
        width: 80px;
        height: 80px;
    }

    .serial {
        left: 115px;
        bottom: 45px;
        font-size: 16px;
    }

}

@media (max-width: 480px) {

    .student-name {
        font-size: 32px;
    }

    .student-name2 {
        font-size: 30px;
    }

    .certificate-text,
    .certify-text {
        font-size: 18px;
    }

    .description {
        font-size: 16px;
        line-height: 1.5;
    }

}



.mcs-verify-wrapper{
    text-align:center;
    margin:50px auto;
}

.mcs-verify-form{
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
}

.mcs-verify-form input{
    width:320px;
    padding:14px 18px;
    border:1px solid #ccc;
    border-radius:8px;
    font-size:16px;
}

.mcs-verify-form button{
    background:#b68d2c;
    color:#fff;
    border:none;
    padding:14px 28px;
    border-radius:8px;
    font-size:16px;
    cursor:pointer;
    transition:0.3s;
}

.mcs-verify-form button:hover{
    background:#96731f;
}

.mcs-verified-box,
.mcs-invalid-box{
    max-width:650px;
    margin:40px auto;
    background:#fff;
    padding:40px;
    border-radius:18px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    text-align:center;
}

.mcs-success{
    color:green;
    margin-bottom:25px;
}

.mcs-invalid-box h2{
    color:red;
}

.mcs-verified-box p{
    margin-bottom:14px;
    font-size:18px;
}

.mcs-qr{
    margin-top:30px;
}

.mcs-qr img{
    width:170px;
    height:170px;
    object-fit:contain;
    border:1px solid #ddd;
    border-radius:12px;
    padding:10px;
    background:#fff;
}

.mcs-view-btn{
    margin-top:30px;
}

.mcs-view-btn a{
    display:inline-block;
    background:#213b4f;
    color:#fff;
    padding:14px 30px;
    border-radius:8px;
    text-decoration:none;
    font-size:17px;
    font-weight:600;
    transition:0.3s;
}

.mcs-view-btn a:hover{
    background:#162837;
}

@media(max-width:768px){

    .mcs-verify-form{
        flex-direction:column;
        align-items:center;
    }

    .mcs-verify-form input,
    .mcs-verify-form button{
        width:100%;
        max-width:350px;
    }

    .mcs-verified-box,
    .mcs-invalid-box{
        padding:25px;
    }

}