.praktikapaevad-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.praktikapaevad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.add-new-btn {
    background-color: #6EC1E4;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.add-new-btn:hover {
    background-color: #5aaacc;
    color: #fff;
}

.praktikapaevad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.praktikapaev-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.praktikapaev-card:hover {
    transform: translateY(-5px);
}

.card-image {
    height: 200px;
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image-placeholder {
    color: #999;
    font-size: 14px;
}

.card-content {
    padding: 20px;
}

.card-date {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
}

.card-title a {
    color: #333;
    text-decoration: none;
}

.card-meta {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    font-size: 14px;
    color: #6EC1E4;
    text-decoration: none;
    font-weight: 600;
}

.no-posts-message {
    text-align: center;
    padding: 50px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

/* Popup */
.praktikapaev-popup {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.popup-content {
    background-color: #fefefe;
    margin: 4% auto;
    padding: 40px;
    border-radius: 8px;
    width: 85%;
    max-width: 860px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
    max-height: 88vh;
    overflow-y: auto;
}

.close-popup {
    color: #aaa;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    line-height: 1;
}

.close-popup:hover {
    color: #333;
}

/* Meta info tabel */
.popup-meta-info {
    background: #f7f9fc;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 16px 0 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popup-meta-row {
    display: flex;
    gap: 12px;
    font-size: 15px;
    border-bottom: 1px solid #eef0f3;
    padding-bottom: 8px;
}

.popup-meta-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popup-meta-label {
    font-weight: 700;
    color: #555;
    min-width: 140px;
}

.popup-meta-value {
    color: #222;
}

/* Galerii */
.gallery-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.gallery-grid img {
    height: 130px;
    width: auto;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.content-body {
    margin: 20px 0;
    line-height: 1.7;
    color: #333;
}

/* Actions wrapper */
.popup-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.edit-post-btn, .delete-post-btn {
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
}

.edit-post-btn {
    background-color: #6EC1E4;
    color: #fff;
}

.edit-post-btn:hover {
    background-color: #5aaacc;
}

.delete-post-btn {
    background-color: #fff;
    color: #d9534f;
    border: 1px solid #d9534f;
}

.delete-post-btn:hover {
    background-color: #d9534f;
    color: #fff;
}

.delete-post-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        padding: 20px;
    }
    .popup-meta-row {
        flex-direction: column;
        gap: 2px;
    }
    .popup-meta-label {
        min-width: unset;
    }
    .popup-actions {
        flex-direction: column;
    }
    .edit-post-btn, .delete-post-btn {
        width: 100%;
        text-align: center;
    }
}
