.certificate-container {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    width: 80%;
    margin: 0 auto;
    text-align: center;
    direction: rtl;
}

.certificate-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border: 5px solid #ddd;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.detail-box {
    display: flex;
    align-items: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 10px;
    /*justify-content: flex-end;*/
    background-color: #333;
    transition: box-shadow 0.3s ease;
}

.detail-box i {
    background: #fff;
    color: #ffc107;
    padding: 14px;
    margin: -3px -3px -3px 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.detail-box i:hover {
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

.detail-box strong {
    text-align: center;
    width: 45.3%;
}

.bg-info {
    background-color: #17a2b8;
    color: #fff;
}

.bg-warning {
    background-color: #ffc107;
    color: #fff;
}

.bg-success {
    background-color: #28a745;
    color: #fff;
}

.name-value, .date-value, .notes-value {
    font-weight: bold;
    text-align: center;
    color: #fff;
    width: 48.3%;
    background-color: #00000033;
    padding: 2px 5px;
    border-radius: 5px;
}

.print-btn {
    display: inline-block;
    line-height: 0;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.print-btn:hover, .detail-box:hover {
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

.detail-box i {
    margin-left: 10px;
    color: #fff;
}

.certificate-title {
    font-size: 28px;
    color: #000;
    margin-bottom: 20px;
    font-family: inherit;
}

.certificate-details {
    text-align: right;
    margin: 20px 0;
    font-size: 16px;
    color: #fff;
}

.certificate-details p {
    margin: 5px 0;
    color: #fff;
}

.certificate-details strong {
    color: #fff;
}

@media print {
    body * {
        visibility: hidden;
    }

    .certificate-container, .certificate-container * {
        visibility: visible;
    }

    .certificate-container {
        position: absolute;
        left: 0;
        top: 0;
    }

    .print-btn-container {
        display: none;
    }
}
