.home-blog-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}
.home-blog-swiper {
    position: relative;
    margin: 0 auto;
    padding: 0 20px;
}
.home-blog-container {
  position: relative;    /* базовый контейнер для абсолютных потомков */
  overflow: hidden;      /* чтобы ничего не вылезало */
  padding: 10px 0;
}
.swiper-slide {
    width: 100% !important;
    height: auto;
    max-width: 420px;
    flex-shrink: 0;
}
.home-blog-card {
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    width: 100%;
}
.home-blog-card:hover {
    transform: translateY(-5px);
}
.home-blog-cover {
    height: 200px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.home-blog-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.home-blog-card:hover .home-blog-cover img {
    transform: scale(1.05);
}
.home-blog-no-cover {
    height: 200px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}
.home-blog-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.home-blog-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3.6em;
    line-height: 1.2;
}
.home-blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
}
.home-blog-meta a{
    border-radius: 0;
}

.home-blog-date {
    font-size: 0.85rem;
    color: #6c757d;
    white-space: nowrap;
}
.home-blog-nav {
  position: absolute;    /* поверх всего слайдера */
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between; /* стрелки по краям */
  align-items: center;            /* строго по центру по вертикали */
  pointer-events: none;           /* чтобы клики «пропускались» к слайду за пределами кнопок */
}
.home-blog-prev,
.home-blog-next {
  pointer-events: all;  /* вернуть кликабельность самим кнопкам */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 2px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 10px;      /* небольшой отступ от краёв */
  z-index: 10;
}
.home-blog-prev:hover,
.home-blog-next:hover {
  background: #ffd700;
}
.home-blog-prev:hover svg, 
.home-blog-next:hover svg {
    stroke: white;
}
@media (max-width: 1400px) {
    .swiper-slide {
        max-width: 380px;
    }
}
@media (max-width: 1200px) {
    .swiper-slide {
        max-width: 340px;
    }
    .home-blog-card-title {
        -webkit-line-clamp: 2;
        min-height: 2.4em;
    }
}
@media (max-width: 992px) {
    .swiper-slide {
        max-width: 320px;
    }
    .home-blog-cover {
        height: 180px;
    }
    .home-blog-info {
        padding: 15px;
    }
}
@media (max-width: 768px) {
    .swiper-slide {
        max-width: 300px;
    }
    .home-blog-title {
        margin-bottom: 0;
    }
    .home-blog-cover {
        height: 160px;
    }
    .home-blog-card-title {
        font-size: 1.1rem;
    }
}
@media (max-width: 576px) {
    .swiper-slide {
        max-width: 280px;
    }
    .home-blog-swiper {
        padding: 0 10px;
    }
    .home-blog-cover {
        height: 150px;
    }
    .home-blog-info {
        padding: 12px;
    }
    .home-blog-card-title {
        -webkit-line-clamp: 2;
        min-height: 2.4em;
        font-size: 1rem;
    }
    .home-blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}