/* Diploma CSS */
.diploma-wrapper {
    background-color: #f0f2f5;
    margin: 0;
    padding: 20px;
    font-family: 'Inter', sans-serif;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Print Styles */
@media print {
    .diploma-wrapper {
        margin: 0;
        padding: 0;
        background: transparent;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .diploma-container {
        box-shadow: none !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: none !important;
        border: 2px solid #2c3e50 !important;
        border-image: none !important;
    }

    .share-section {
        display: none !important;
    }
}

.diploma-container {
    background-color: #ffffff;
    width: 900px;
    max-width: 100%;
    padding: 40px;
    position: relative;

    /* Background Pattern: Dots */
    background-image: radial-gradient(#ecf0f1 1px, transparent 1px), radial-gradient(#ecf0f1 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;

    /* Border */
    border: 20px solid #2c3e50;
    border-image: linear-gradient(to right, #526283, #8A9bb9) 1;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.diploma-inner-border {
    border: 2px solid #2c3e50;
    padding: 40px;
    text-align: center;
}

/* Header */
.diploma-logo {
    width: 25%;
    max-width: none;
    margin-bottom: 20px;
}

.diploma-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin: 10px 0;
    display: inline-block;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 10px;
}

.diploma-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #7f8c8d;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 10px;
}

/* Body */
.certifies-text {
    font-style: italic;
    font-size: 1.2rem;
    color: #34495e;
    margin-top: 30px;
}

.candidate-name {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: #526283;
    line-height: 1.2;
    margin: 10px 0;
}

.description-text {
    max-width: 700px;
    margin: 20px auto;
    color: #34495e;
    line-height: 1.6;
    font-size: 1.1rem;
}

.highlight-text {
    font-weight: 600;
    color: #2c3e50;
}

.score-display {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    color: #2c3e50;
    margin: 20px 0 10px 0;
}

.score-comparison {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Footer */
.diploma-footer {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    margin-top: 60px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-col {
    text-align: center;
    flex: 1;
}

.platform-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #34495e;
    display: block;
    margin-bottom: 5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.platform-name-academic {
    font-size: 1rem;
    /* Slightly smaller for academic centers */
}

.signature-line {
    border-top: 1px solid #2c3e50;
    width: 200px;
    margin: 0 auto;
    padding-top: 5px;
    font-size: 0.8rem;
    color: #7f8c8d;
    text-transform: uppercase;
}

.seal-img {
    width: 120px;
    transform: none;
}

.seal-img-academic {
    width: 160px;
    /* Larger size for academic logos */
}

.date-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 5px;
}

/* Verification */
.verification-code {
    font-family: monospace;
    font-size: 0.7rem;
    color: #bdc3c7;
    margin-top: 30px;
    display: block;
}

/* Share Section */
.share-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.share-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

.share-icons {
    display: flex;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2c3e50;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px);
    background: #8e44ad;
}

.share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}