/* Основни стилови за форма */
form.wpdm-search-form {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

form.wpdm-search-form input[type="text"] {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

form.wpdm-search-form input[type="submit"] {
    padding: 10px 20px;
    background-color: #0069d9;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

form.wpdm-search-form a {
    align-self: center;
    color: #777;
    text-decoration: underline;
}

/* Картички за категории */
.wpdm-category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.wpdm-category-card {
    border: 1px solid #ddd;
    padding: 20px;
    width: 240px;
    border-radius: 8px;
    background: #f8f8f8;
    text-align: center;
    transition: 0.3s ease;
}

.wpdm-category-card:hover {
    background: #eef3ff;
    border-color: #007bff;
}

.wpdm-category-card i {
    font-size: 36px;
    color: #007bff;
    margin-bottom: 10px;
}

/* Картички за документи */
.wpdm-documents-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.wpdm-document-card {
    border: 1px solid #ccc;
    padding: 20px;
    width: 300px;
    border-radius: 8px;
    background: #fff;
    transition: 0.2s ease;
}

.wpdm-document-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wpdm-document-card h4 {
    margin-top: 0;
    font-size: 18px;
}

.wpdm-document-card p {
    font-size: 14px;
    color: #555;
    margin: 6px 0;
}

.wpdm-document-card a {
    display: inline-block;
    margin-right: 10px;
    padding: 6px 12px;
    background-color: #28a745;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.wpdm-document-card a:hover {
    background-color: #218838;
}
