/* ==========================================================================
   СТИЛІ ДЛЯ СТОРІНКИ БЛОГУ (blog.php)
   ========================================================================== */

.page-blog {
    padding: 40px 0 80px;
    background-color: #fdfdfd;
}

.blog-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.blog-header h1 {
    font-size: 36px;
    color: #1f2937;
    margin: 0 0 15px;
    font-weight: 800;
}

.blog-header p {
    font-size: 18px;
    color: #6b7280;
    margin: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.blog-card-img-wrap {
    height: 200px;
    background: #f3f4f6;
    overflow: hidden;
    position: relative;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #9ca3af;
}

.blog-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-date {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 10px;
    font-weight: 500;
}

.blog-card-title {
    font-size: 20px;
    color: #111827;
    margin: 0 0 10px;
    font-weight: 700;
    line-height: 1.3;
}

.blog-card-desc {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 20px;
    flex: 1;
}

.blog-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #0377c0;
    font-size: 14px;
    margin-top: auto;
}

/* Стан, коли статей немає */
.blog-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.blog-empty-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    color: #9ca3af;
}

.blog-empty-title {
    margin: 0 0 10px 0;
    color: #374151;
    font-size: 20px;
}

.blog-empty-text {
    margin: 0;
    font-size: 15px;
}