body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
  }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}
.blog-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}
.blog-card:hover {
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.1);
}
.blog-image {
    width: 100%;
    height: 130px; /* Фіксована висота */
    object-fit: contain; /* Зміна на contain, щоб не обрізати */
    padding: 5px;
}
.blog-content {
    padding: 15px;
}
.blog-content h2 {
    font-size: 1rem;
    margin-bottom: 0;
    font-weight: 600;
}
.blog-content h2 a {
    color: #333;
    text-decoration: none;
}
.blog-content h2 a:hover {
    color: #007bff;
}
.blog-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 10px;
}
.blog-meta i {
    margin-right: 5px;
}
.blog-summary {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.5;
}
.btn-read-more {
    display: inline-block;
    padding: 5px 15px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
        margin-left: 20px;
}
.btn-read-more:hover {
    background-color: #0056b3;
}
.empty-message {
    text-align: center;
    color: #6c757d;
    padding: 20px;
}

.blog-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-bottom {
    margin-top: auto;
}



.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* додай фіксовану або мінімальну висоту, якщо потрібно */
}

.blog-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    height: 100%;
}

.blog-bottom {
    margin-top: auto;
}
.footer-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}
.blog-card {
    position: relative; /* щоб працювало absolute позиціонування */
}
.blog-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}



.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.news-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    position: relative;
    padding-bottom: 10px;
    margin: 0;
}

.title-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #00c4b4);
    border-radius: 2px;
}

.sort-buttons {
    display: flex;
    gap: 10px;
}

.sort-button {
    padding: 8px 16px;
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.sort-button:hover {
    background-color: #e0e0e0;
}

.sort-button.active {
    background-color: #007bff;
    color: #fff;
}

/* Пагінація */
.pagination-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 20px;
}

.pagination .page-item {
    display: flex;
    align-items: center;
}

.pagination .page-link {
    color: #007bff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: transparent;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.pagination .page-link:hover {
    background-color: #f9fafa;
    color: #0056b3;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 50% !important;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: transparent;
    cursor: not-allowed;
    box-shadow: none;
}

.pagination .page-link i {
    font-size: 1.2rem;
}

.pagination .page-link:focus,
.pagination .page-link:active {
    outline: none !important;
    box-shadow: none !important;
    border-radius: 50% !important;
    background-color: transparent !important;
}


.fa-calendar-alt {
 
    color: #aeaeaf;
   
}