/*
    =====================================================
    |   'Certificate' Page Specific CSS                 |
    =====================================================
*/

/* --- General Certificate Styles (for screen) --- */
.certificate-body-wrapper { background-color: #f8fafc; padding: 2rem; }
.certificate-container { width: 1123px; height: 794px; background-color: white; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); position: relative; display: flex; flex-direction: column; padding: 40px 60px; font-family: 'Montserrat', sans-serif; border: 1px solid #E5E7EB; margin: 2rem auto; }
.header { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; }
.logo { width: 180px; }
.marking-chart { font-size: 10px; color: #4B5563; border-collapse: collapse; }
.marking-chart th, .marking-chart td { border: 1px solid #D1D5DB; padding: 4px 8px; text-align: center; }
.marking-chart th { background-color: #F3F4F6; font-weight: 600; }
.main-content { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-top: 70px; padding-bottom: 30px; }
.main-content h1 { font-family: 'Merriweather', serif; font-size: 48px; font-weight: 700; color: #111827; margin-bottom: 16px; }
.main-content .subtitle { font-size: 20px; color: #4B5563; margin-bottom: 32px; }
.main-content .recipient-name { font-family: 'Great Vibes', cursive; font-size: 52px; font-weight: 400; color: #4F46E5; margin-bottom: 32px; border-bottom: 2px solid #D1D5DB; padding-bottom: 8px; }
.main-content .description { max-width: 650px; font-size: 16px; line-height: 1.6; color: #374151; }
.footer { width: 100%; padding-top: 10px; margin-top: auto; }
.footer-content { display: flex; justify-content: space-between; align-items: flex-end; }
.performance-block, .verification-block, .signatures-wrapper { flex: 1; }
.performance-block { text-align: left; }
.verification-block { text-align: right; }
.performance-block p, .verification-block p { font-size: 14px; color: #4B5563; }
.performance-block .score { font-size: 18px; font-weight: 700; color: #111827; }
.verification-block .code { font-family: monospace; font-size: 12px; color: #111827; margin-top: 4px; }
.verification-block .verify-url { font-style: italic; font-size: 11px; color: #6B7280; }
.signatures-wrapper { display: flex; gap: 20px; justify-content: center; }
.signature-block { text-align: center; font-size: 14px; color: #4B5563; flex: 1; }
.signature-image { height: 100px; width: auto; margin-bottom: -20px; display: block; margin-left: auto; margin-right: auto; transform: translateX(0px); }
.signature-line { border-top: 1px solid #111827; padding-top: 8px; margin-top: 10px; font-weight: 600; white-space: nowrap; }
.disclaimer-text { font-size: 10px; color: #6B7280; text-align: center; width: 100%; margin-top: 10px; }

/* --- Print Button Styles (for screen only) --- */
.print-button-container { text-align: center; margin-bottom: 2rem; }
.print-button { background-color: #4f46e5; color: white; font-weight: bold; padding: 10px 20px; border-radius: 8px; cursor: pointer; border: none; }
.print-button:hover { background-color: #4338ca; }

/* --- Print-Specific CSS Rules --- */
@media print {
    body > *:not(.certificate-body-wrapper), .print-button-container {
        display: none;
    }
    .certificate-body-wrapper, .certificate-container {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background-color: white !important;
    }
    .certificate-container {
        padding: 40px 60px !important;
        box-sizing: border-box;
    }
    @page {
        size: A4 landscape;
        margin: 0;
    }
    @media print and (orientation: portrait) {
        .certificate-container {
            transform: scale(0.7);
            transform-origin: top left;
            width: 142.8%; 
            height: 142.8%;
        }
    }
}