body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px;
}

.description {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.search-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

#search-input {
    width: 340px;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    margin-right: 10px;
}

.buttons {
    display: flex;
}

.search-btn, .view-list-btn {
    padding: 8px 15px;
    background-color: #0099cc;
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
    margin-right: 5px;
}

.certificate-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.certificate-details {
    display: flex;
    background-color: transparent;
}

.photo-column {
    width: 200px;
    margin-right: 40px;
}

.photo-column img {
    width: 100%;
    border: 1px solid #ccc;
}

.info-column {
    flex: 1;
}

.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 15px;
}

.label {
    color: #666;
    font-weight: normal;
    width: 180px;
    text-align: left;
    vertical-align: top;
    padding-right: 10px;
    font-size: 15px;
}

.value {
    color: #333;
    font-size: 15px;
    line-height: 1.4;
    vertical-align: top;
}

.red-text {
    color: #cc0000;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .search-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #search-input {
        width: 90%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    .search-btn, .view-list-btn {
        flex: 1;
        text-align: center;
    }
    
    .certificate-details {
        flex-direction: column;
    }
    
    .photo-column {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .photo-column img {
        max-width: 200px;
    }
    
    /* Move date fields to the end on mobile */
    .info-table {
        display: flex;
        flex-direction: column;
    }
    
    .date-row {
        order: 10;
    }
    
    /* Stack the table rows */
    .info-table tr {
        display: flex;
        flex-direction: column;
        margin-bottom: 15px;
    }
    
    .info-table td {
        width: 100%;
        display: block;
    }
    
    .label {
        margin-bottom: 5px;
    }
}