.main-wrapper {
        display: flex;
        gap: 30px;
        max-width: 1600px;
        margin: 30px auto;
        padding: 0 15px;
    }
    
    .news-feed {
        flex: 3;
        min-width: 0; 
    }
    
    .sidebar-ads {
        flex: 1;
    }

    .news-item {
        display: flex;
        background: #fff;
        margin-top: 20px;
        margin-bottom: 30px;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }

    .news-image-wrap {
        position: relative;
        width: 320px; 
        flex-shrink: 0;
        margin-right: 20px;
    }

    .news-image-wrap img {
        width: 100%;
        height: 100%; 
        object-fit: cover;
        display: block;
        border-radius: 4px;
    }

    /* Синя плашка дати */
    .date-badge {
        position: absolute;
        top: 10px;
        left: 10px;
        background-color: #337ab7;
        color: white;
        padding: 5px 10px;
        text-align: center;
        min-width: 60px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    .date-badge .day { font-size: 20px; font-weight: bold; display: block; line-height: 1; }
    .date-badge .month { font-size: 11px; display: block; text-transform: lowercase; margin-top: 2px; }
    .date-badge .year { font-size: 11px; display: block; }

    /* Текст новини */
    .news-content {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 100%;
    }

    .news-title {
        font-size: 20px;
        color: #0056b3;
        text-decoration: none;
        font-weight: 600;
        margin: 0 0 10px 0;
        line-height: 1.3;
    }
    .news-title:hover { color: #23527c; text-decoration: underline; }

    .news-excerpt {
        color: #555;
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .btn-read-more {
        align-self: flex-start;
        background-color: #337ab7;
        color: white;
        padding: 8px 15px;
        text-decoration: none;
        font-size: 14px;
        border-radius: 3px;
        transition: background 0.2s;
    }
    .btn-read-more:hover { background-color: #286090; }

    .all-news-link-block {
        text-align: center;
        margin-top: 20px;
    }
    .all-news-btn {
        display: inline-block;
        padding: 10px 30px;
        background-color: #f8f9fa;
        border: 1px solid #ddd;
        color: #333;
        text-decoration: none;
        font-weight: bold;
    }
    .all-news-btn:hover { background-color: #e2e6ea; }

    /* Мобільна адаптивність */
    @media (max-width: 768px) {
        .main-wrapper { flex-direction: column; }
        .news-item { flex-direction: column; }
        .news-image-wrap { width: 100%; margin-right: 0; margin-bottom: 15px; }
        .news-image-wrap img { height: auto; max-height: 250px; }
    }

    .news-detail-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Заголовок новини */
.article-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.2;
}

/* Дата публікації */
.article-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Зображення */
.article-image-wrap {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.article-image-wrap img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Текст новини */
.article-content {
    font-size: 1.05rem; /* Трохи більший шрифт для читання */
    line-height: 1.7;   /* Більший міжрядковий інтервал */
    color: #444;
    margin-bottom: 40px;
}

.article-content p {
    margin-bottom: 20px;
    text-align: justify; /* Вирівнювання тексту (опціонально) */
}

/* Кнопка "Назад" */
.article-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.btn-back {
    display: inline-block;
    color: var(--primary-color); /* Ваш синій */
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s, color 0.2s;
}

.btn-back:hover {
    color: var(--accent-color); /* Ваш салатовий */
    transform: translateX(-5px); /* Ефект руху вліво */
}

/* Адаптація для мобільних */
@media (max-width: 768px) {
    .news-detail-container {
        padding: 20px; /* Менші відступи на телефоні */
    }
    .article-title {
        font-size: 1.6rem;
    }
    .article-content {
        font-size: 1rem;
    }
}