/**
 * Special Commendation Certificate Styles
 */

.certificate-container.special-commendation {
    width: 1000px;
    height: 700px;
    background-color: #f7f1e3;
    padding: 25px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
    overflow: hidden;
}

.certificate-container.special-commendation .decorative-border {
    width: 100%;
    height: 100%;
    border: 3px solid #5d4037;
    position: relative;
    padding: 10px;
    box-sizing: border-box;
}

/* Decorative Scalloped Corners */
.certificate-container.special-commendation .decorative-border::before,
.certificate-container.special-commendation .decorative-border::after,
.certificate-container.special-commendation .inner-content::before,
.certificate-container.special-commendation .inner-content::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: #fcfaf5;
    /* Matches the background of the preview container roughly or the cert outer bg */
    border: 3px solid #5d4037;
    border-radius: 50%;
    z-index: 1;
}

/* Outer background of the cert container (outside the border) is same as inner */
.certificate-container.special-commendation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f7f1e3;
    z-index: 0;
}

.certificate-container.special-commendation .decorative-border::before {
    top: -33px;
    left: -33px;
}

.certificate-container.special-commendation .decorative-border::after {
    top: -33px;
    right: -33px;
}

.certificate-container.special-commendation .inner-content::before {
    bottom: -33px;
    left: -33px;
}

.certificate-container.special-commendation .inner-content::after {
    bottom: -33px;
    right: -33px;
}

.certificate-container.special-commendation .inner-content {
    width: 100%;
    height: 100%;
    border: 1px solid #5d4037;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    box-sizing: border-box;
    z-index: 2;
}

/* Seal Container */
.certificate-container.special-commendation .seal-container {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.certificate-container.special-commendation .seal {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fbc02d 0%, #f9a825 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Wavy edge for seal */
.certificate-container.special-commendation .seal::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: inherit;
    border-radius: 50%;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    /* Using a simpler star shape for the wavy effect */
    mask: radial-gradient(circle, transparent 70%, black 71%);
    display: none;
    /* clip-path is tricky for complex wavy edges, using border instead */
}

/* Wavy border simulation */
.certificate-container.special-commendation .seal {
    border: 4px double #ffd54f;
}

.certificate-container.special-commendation .seal-inner {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.certificate-container.special-commendation .ribbons {
    position: absolute;
    top: 60px;
    display: flex;
    gap: 10px;
    z-index: 4;
}

.certificate-container.special-commendation .ribbon {
    width: 15px;
    height: 40px;
    background-color: #303f9f;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 50% 85%, 0% 100%);
}

.certificate-container.special-commendation .ribbon-left {
    transform: rotate(10deg);
}

.certificate-container.special-commendation .ribbon-right {
    transform: rotate(-10deg);
}

/* Content Text */
.certificate-container.special-commendation .content-body {
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.certificate-container.special-commendation .title {
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 5px;
    color: #000;
    letter-spacing: 2px;
}

.certificate-container.special-commendation .subtitle {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 25px;
    color: #444;
    letter-spacing: 1px;
}

.certificate-container.special-commendation .recipient-name {
    font-family: 'Great Vibes', cursive;
    font-size: 72px;
    color: #1a1a1a;
    margin-bottom: 40px;
    line-height: 1.2;
}

.certificate-container.special-commendation .description-text {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    max-width: 80%;
    margin: 0 auto 50px;
    font-weight: 400;
}

/* Footer Section */
.certificate-container.special-commendation .footer-section {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    padding: 0 40px;
    box-sizing: border-box;
}

.certificate-container.special-commendation .footer-item {
    width: 280px;
    text-align: center;
}

.certificate-container.special-commendation .signature-line {
    border-top: 2px solid #5d4037;
    margin-bottom: 8px;
}

.certificate-container.special-commendation .footer-label {
    font-size: 14px;
    font-weight: 600;
    color: #5d4037;
    text-transform: capitalize;
}

/* Ensure editable text looks right */
.certificate-container.special-commendation .editable-text {
    padding: 2px 5px;
    transition: background-color 0.2s;
}

.certificate-container.special-commendation .editable-text:hover {
    background-color: rgba(93, 64, 55, 0.05);
}