/**
 * Course Commendation Certificate Template Styles
 * Based on template3.jpg background
 */

.certificate-container.course-commendation {
    width: 850px !important;
    height: 1200px !important;
    position: relative;
    background-color: #f5f0e8;
    font-family: 'Georgia', 'Times New Roman', serif;
    overflow: visible !important;
}

.course-commendation .content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 100px 80px;
    box-sizing: border-box;
    position: relative;
}

/* Seal/Badge Area */
.course-commendation .seal-badge {
    width: 100px;
    height: 100px;
    margin-bottom: 50px;
    margin-top: 20px;
    /* Badge graphic is part of the background image */
}

/* Main Header - COMMENDATION */
.course-commendation .header-main {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: 8px;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 25px;
    font-family: 'Arial Black', 'Arial', sans-serif;
    text-transform: uppercase;
}

/* Presented To */
.course-commendation .header-presented {
    font-size: 17px;
    font-weight: 400;
    color: #2a2a2a;
    text-align: center;
    margin-bottom: 25px;
    font-family: 'Georgia', serif;
}

/* Recipient Name - Cursive Style */
.course-commendation .recipient-name {
    font-size: 56px;
    font-weight: 400;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1a1a1a;
    min-width: 500px;
    font-family: 'Brush Script MT', 'Lucida Handwriting', 'Edwardian Script ITC', cursive;
    font-style: italic;
    line-height: 1.2;
}

/* Description Text */
.course-commendation .certificate-description {
    font-size: 14px;
    line-height: 1.8;
    color: #2a2a2a;
    text-align: center;
    max-width: 650px;
    margin-top: 35px;
    margin-bottom: 80px;
    font-family: 'Georgia', serif;
}

/* Footer Section */
.course-commendation .certificate-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 650px;
    margin-top: auto;
    padding: 0 20px;
}

/* Signature Block */
.course-commendation .signature-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    margin-right: 40px;
}

.course-commendation .signature-label {
    font-size: 13px;
    font-weight: 400;
    color: #333;
    margin-bottom: 8px;
    font-family: 'Georgia', serif;
    padding-top: 10px;
    border-top: 2px solid #333;
    min-width: 180px;
    text-align: center;
}

.course-commendation .signature-name {
    font-size: 15px;
    font-weight: 400;
    color: #1a1a1a;
    font-family: 'Georgia', serif;
    text-align: center;
    width: 100%;
}

/* Date Block */
.course-commendation .date-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 1;
}

.course-commendation .date-label {
    font-size: 13px;
    font-weight: 400;
    color: #333;
    margin-bottom: 8px;
    font-family: 'Georgia', serif;
    padding-top: 10px;
    border-top: 2px solid #333;
    min-width: 180px;
    text-align: center;
}

.course-commendation .date-value {
    font-size: 15px;
    font-weight: 400;
    color: #1a1a1a;
    font-family: 'Georgia', serif;
    text-align: center;
    width: 100%;
}

/* Editable Text Styles */
.course-commendation .editable-text {
    cursor: text;
    transition: all 0.2s ease;
    position: relative;
}

.course-commendation .editable-text:hover {
    outline: 2px dashed rgba(0, 115, 170, 0.3);
    outline-offset: 2px;
}

.course-commendation .editable-text:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
    background-color: rgba(0, 115, 170, 0.05);
}

.course-commendation .editable-text.editing {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
    background-color: rgba(0, 115, 170, 0.05);
}

/* Print Styles */
@media print {
    .certificate-container.course-commendation {
        width: 100%;
        height: 100vh;
        page-break-after: always;
    }
}