/*
 * Medel Lang — Certificate styles.
 * SCOPED: every selector starts with .medel-  to avoid colliding with theme
 * or third-party plugins (e.g. Tutor LMS video player, page builders).
 */

.medel-certificate-wrap {
    max-width: 1000px;
    margin: 32px auto;
    padding: 40px;
    background: #fafaf7 center/cover no-repeat;
    border: 1px solid #e3e1d8;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
    font-family: Georgia, 'Times New Roman', serif;
    color: #2b2b2b;
}

.medel-certificate-wrap .medel-cert-page { padding: 24px; }
.medel-certificate-wrap .medel-cert-inner { text-align: center; }
.medel-certificate-wrap h1 { font-size: 28px; letter-spacing: 4px; margin: 0 0 8px; color: #6b5b3a; }
.medel-certificate-wrap h2 { font-size: 22px; margin: 0 0 32px; color: #444; }
.medel-certificate-wrap .medel-cert-presented { margin: 24px 0 8px; color: #666; }
.medel-certificate-wrap .medel-cert-name { font-size: 36px; margin: 8px 0 24px; color: #1a1a1a; font-weight: normal; border-bottom: 1px solid #c9b87a; display: inline-block; padding: 0 24px 8px; }
.medel-certificate-wrap .medel-cert-course { font-size: 24px; margin: 16px 0; color: #2a2a2a; }
.medel-certificate-wrap .medel-cert-grade { margin: 24px 0; font-size: 16px; }
.medel-certificate-wrap .medel-cert-footer { display: flex; justify-content: space-around; margin-top: 48px; font-size: 14px; }
.medel-certificate-wrap .medel-cert-footer small { color: #888; }
.medel-certificate-wrap .medel-cert-verify { margin-top: 32px; font-size: 11px; color: #999; word-break: break-all; }

.medel-cert-actions { text-align: center; margin: 24px 0; }
.medel-cert-actions button {
    background: #c9b87a; color: #fff; border: 0; padding: 10px 24px;
    border-radius: 4px; cursor: pointer; font-size: 14px;
}
.medel-cert-actions button:hover { background: #b3a061; }

.medel-verify-box {
    max-width: 520px; margin: 24px auto; padding: 24px;
    border: 1px solid #e2e2e2; border-radius: 8px; background: #fff;
}
.medel-verify-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.medel-verify-form input { padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; }
.medel-verify-form button { padding: 10px; background: #2271b1; color: #fff; border: 0; border-radius: 4px; cursor: pointer; }
.medel-verify-form button:hover { background: #135e96; }

.medel-notice.medel-success { background: #edfaef; border-left: 4px solid #46b450; padding: 12px; margin: 12px 0; }
.medel-notice.medel-error   { background: #fbeaea; border-left: 4px solid #dc3232; padding: 12px; margin: 12px 0; }

@media print {
    body * { visibility: hidden !important; }
    .medel-certificate-wrap, .medel-certificate-wrap * { visibility: visible !important; }
    .medel-certificate-wrap { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; border: 0; margin: 0; }
    .medel-cert-actions { display: none !important; }
}
