.resuve-verification-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}
.resuve-verification-form label {
    display: inline-block;
    margin-right: 10px;
}
.resuve-verification-form input[type="text"] {
    padding: 5px;
    width: 200px;
    margin-bottom: 10px;
    display: inline-block;
}
.resuve-submit {
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
}
.resuve-certificate {
    max-width: 700px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    position: relative;
    text-align: left;
    background: url('') no-repeat center;
    background-size: contain;
}
.logo-section {
    width: 150px;
    height: 150px;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.university-name {
    text-align: center;
    margin: 100px 0 10px; /* Increased from 80px to 120px for more gap */
    font-size: 24px;
}
.university-address {
    text-align: center;
    margin: 0 0 20px;
    font-size: 14px;
    color: #666;
}
.watermark {
    position: absolute;
    top: 250px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    width: 200px;
    height: 200px;
    opacity: 0.1;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: -1;
}
.graduate-verification {
    position: relative;
    z-index: 1;
}
.graduate-verification h4 {
    margin: 0;
    font-size: 18px;
    color: #666;
}
.graduate-verification table {
    width: 100%;
    margin: 10px 0;
    border-collapse: collapse;
    position: relative;
}
.graduate-verification td {
    padding: 5px;
    border: 1px solid #ddd;
}
.result-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}
.result-table td {
    padding: 5px;
    border: 1px solid #ddd;
}
button {
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
}

@media print {
    body * {
        visibility: hidden;
    }
    #certificate-content, #certificate-content * {
        visibility: visible;
    }
    #certificate-content {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 20px;
        border: none;
    }
    .watermark {
        opacity: 0.2;
    }
    button {
        display: none;
    }
}


/* ------------------------- */
/*  MOBILE RESPONSIVE FIX   */
/* ------------------------- */

@media (max-width: 600px) {

    .resuve-verification-form {
        padding: 10px;
        text-align: center;
    }

    .resuve-verification-form input[type="text"] {
        width: 100%;
        margin-bottom: 12px;
    }

    .resuve-submit {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }

    .resuve-certificate {
        padding: 15px;
        width: 100%;
        margin: 10px auto;
    }

    .university-name {
        font-size: 20px;
        margin: 80px 0 10px;
    }

    .university-address {
        font-size: 12px;
    }

    .logo-section {
        width: 120px;
        height: 120px;
    }

    .graduate-verification table,
    .result-table {
        width: 100%;
        font-size: 14px;
    }

    .graduate-verification td,
    .result-table td {
        display: block;
        width: 100%;
        border: none;
        border-bottom: 1px solid #ddd;
        padding: 8px 0;
    }

    .graduate-verification td:last-child,
    .result-table td:last-child {
        border-bottom: 1px solid #ddd;
    }

    /* Center headings on mobile */
    .graduate-verification h4 {
        text-align: center;
        font-size: 16px;
    }

    /* Watermark stays centered */
    .watermark {
        width: 150px;
        height: 150px;
        top: 200px;
    }

    button {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
}
