/* Search box and button styles */
#certificate-wrap {
    width: 95%;
    max-width: 600px;
    min-height: 300px;
    background-color: #E2E3E5;
    border-radius: 15px;
    padding: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#certificate-search {
    width: 100%;
    max-width: 400px;
    max-height: 120px;
    margin: 20px auto;
    padding: 10px;
    background: #CACCCF;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#certificate-wrap .info {
    color: rgb(255, 0, 106);
    font-style: italic;
}

#certificate-wrap .error {
    color: rgb(240, 29, 29);
}

#registration-number {
    width: 70%;
    height: 100%;
    padding: 6px;
    margin: 0;
    margin-right: 10px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1;
    outline: none;
}

#search-certificate {
    width: 30%;
    height: 100%;
    padding: 10px 12px;
    background-color: #0066BF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 0;
    margin-right: 0;
    line-height: 1;
}

#search-certificate[disabled],
#search-certificate[disabled]:hover {
    background-color: #3f3f3f;
}

#search-certificate:hover {
    background-color: #005a88;
}

/* Certificate result styles */

#certificate-result p {
    font-size: 16px;
    color: #555;
}

#certificate-result img.pp-img {
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 300px;
}

#certificate-result a {
    display: inline-block;
    padding: 8px 12px;
    background-color: #0066BF;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
    line-height: 1;
}

#certificate-result a:hover {
    background-color: #005a88;
}



/* Trainee Information styles */
.trainee-info-container {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.trainee-photo-column {
    flex: 40%;
    padding-right: 20px;
    text-align: center;
}

.trainee-details-column {
    flex: 60%;
}

.trainee-details-column h4 {
    font-size: 20px;
    color: #0066BF;
}

.trainee-details {
    border-radius: 8px;
}

.trainee-details p {
    margin: 5px 0;
}

.download-button {
    display: inline-block;
    padding: 8px 12px;
    margin-top: 20px;
    background-color: #0066BF;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.download-button:hover {
    background-color: #005a88;
}

#certificate-result .download-button.mb{
    display: none;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .trainee-info-container {
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .trainee-photo-column {
        padding-right: 0px;
    }
    #certificate-result .download-button{
        display: none;
    }
    #certificate-result .download-button.mb{
        display: block;
        margin-top: 30px;
    }
    #certificate-result img.pp-img {
        max-height: 200px;
    }
    
}