.category-description-block {
  margin-bottom: 40px;
  font-family: "Clear Sans", sans-serif;
  font-size: 40px;
  line-height: 1.1;
  color: #333;
  max-width: 800px;
}

/* --- СЕТКА КАРТОЧЕК --- */
.pop-sections-row {
  display: flex;
  flex-wrap: wrap;
  margin: 10px -20px;
}

.pop-section-col {
  width: 33.333%;
  padding: 0 20px;
  box-sizing: border-box;
  margin-bottom: 80px;

  /* --- !!! ДОБАВЛЕНО: Делаем колонку флекс-контейнером --- */
  display: flex;
  flex-direction: column;
}

@media (max-width: 1200px) {
  .pop-section-col {
    width: 50%;
  }
}
@media (max-width: 600px) {
  .pop-section-col {
    width: 100%;
  }
}

.pop-card {
  /* --- !!! ИЗМЕНЕНО: Заменяем block на flex --- */
  display: flex;
  flex-direction: column; /* Выстраиваем элементы вертикально */
  height: 100%; /* Растягиваем ссылку-карточку на всю высоту колонки */

  text-decoration: none;
  cursor: pointer;
}

/* ЗАГОЛОВОК */
.pop-card-title {
  font-family: "Clear Sans", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  color: rgb(40, 40, 40);
  display: block;
  text-align: left;

  margin-bottom: 20px;
}

/* Обертка картинки */
.pop-img-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;

  /* --- !!! ДОБАВЛЕНО: Ключевое свойство! --- */
  margin-top: auto; /* Это свойство "отталкивает" картинку в самый низ карточки */
}

.pop-img-wrapper::before {
  content: "";
  display: block;
  padding-top: 100%; /* Квадрат 1:1 */
}

/* Картинка */
.pop-img-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: all 0.6s ease;
  filter: brightness(1);
}

/* Контейнер для текста (Шторка) */
.pop-slide-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 30px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  z-index: 2;
}

/* ТЕКСТ В ШТОРКЕ */
.pop-desc-text {
  font-family: "Clear Sans", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #fff;
  text-align: left;

  /* Анимация */
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-out;
}

/* ЭФФЕКТЫ ПРИ НАВЕДЕНИИ */
.pop-card:hover .pop-img-bg {
  filter: brightness(0.4);
  transform: scale(1.05);
}

.pop-card:hover .pop-desc-text {
  opacity: 1;
  transform: translateY(0);
}


/* --- ИСПРАВЛЕННАЯ СТРОГАЯ ПАГИНАЦИЯ --- */

/* 1. Настройки контейнера */
.verbamed-pagination-wrapper {
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: left; /* Или center, как вам нужно */
    
    /* Хак: обнуляем шрифт у родителя, чтобы скрыть "палочки" и лишний текст */
    font-size: 0;
    line-height: 0;
    color: transparent;
}

/* 2. ВАЖНО: Разрешаем отображение тега font, но наследуем нулевой размер шрифта */
.verbamed-pagination-wrapper font.text {
    display: inline !important; /* Было none, из-за этого все пропадало */
    font-size: 0;
}

/* 3. Скрываем самую первую строку статистики "1 - 15 из 103" */
.verbamed-pagination-wrapper > font.text:first-child {
    display: none !important;
}

/* 4. Стилизация кнопок (ссылок a и активной b) */
.verbamed-pagination-wrapper a,
.verbamed-pagination-wrapper b {
    /* Делаем их видимыми блоками */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    
    /* Восстанавливаем видимость текста внутри кнопок */
    font-size: 16px; 
    line-height: 1;
    color: #000;      /* Черный текст */
    
    /* Размеры и рамки */
    min-width: 45px;
    height: 45px;
    padding: 0 10px; /* Чтобы слова "След." влезали */
    margin: 0 5px 5px 0; /* Отступы между кнопками */
    
    background: #fff;
    border: 1px solid #ccc;
    
    /* Прямые углы */
    border-radius: 0 !important;
    text-decoration: none !important;
    font-weight: 500;
    
    transition: all 0.3s ease;
}

/* 5. Активная страница (цифра 1 в вашем примере) */
.verbamed-pagination-wrapper b {
    background: #191e29;
    border-color: #191e29;
    color: #fff;
    cursor: default;
}

/* 6. Ховер эффект для ссылок */
.verbamed-pagination-wrapper a:hover {
    background: #191e29;
    border-color: #191e29;
    color: #fff;
}

/* 7. Если слова "След" или "Конец" не нужны, а нужны только цифры, 
   раскомментируйте код ниже. Но обычно навигация текстом полезна. */
/*
.verbamed-pagination-wrapper a[href*="PAGEN"] {
    font-size: 14px; 
    text-transform: uppercase;
}
*/