/* =========================================================
   Последние публикации
   ========================================================= */

.publications {
    width: 100%;

}


.publications-container {
    width: 1040px;

    margin: 0 auto;
    padding: 42px 0 44px;
}

/* =========================================================
   Заголовок
   ========================================================= */

.publications-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.publications-head h2 {
    margin: 0;

    font-size: 40px;
    font-weight: 600;
    line-height: 1.15;

}


/* Смотреть все */

.publications-all {
    display: inline-flex;
    align-items: center;
    gap: 20px;

    padding-bottom: 10px;
    border-bottom: 1px solid var(--gold);

    text-decoration: none;
}

.publications-all-arrow {
    display: block;
    width: 40px;
    height: 10px;

    background-image: url('../../images/base/arrow.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;

    flex-shrink: 0;
}


/* =========================================================
   Вкладки
   ========================================================= */

.publications-tabs {
    display: flex;
    align-items: flex-end;

    gap: 42px;

    margin-top: 32px;
    margin-bottom: 18px;
}


.publications-tab {
    position: relative;

    padding: 0 8px 10px;

    text-decoration: none;

    font-size: 15px;
    font-weight: 400;
}


.publications-tab.active {
    
    font-weight: 600;
}


.publications-tab.active::after {
    content: '';

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 2px;

    background: var(--gold);
}


/* =========================================================
   Карточки
   ========================================================= */

.publications-list {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}


.publication-card {
    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border: 1px solid var(--gray-300);
    border-radius: 8px;

    background: var(--cream-20);

    text-decoration: none;
}


/* =========================================================
   Картинка
   ========================================================= */

.publication-img {
    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;
}


.publication-img img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   Текст карточки
   ========================================================= */

.publication-info {
    display: flex;
    flex-direction: column;

    flex: 1;

    min-height: 180px;

    padding: 20px 20px 17px;
}


.publication-category {
    margin-bottom: 10px;

    color: var(--gold);

    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;

    text-transform: uppercase;
}


.publication-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.17;
    padding-top: 10px;

}


/* =========================================================
   Дата и время чтения
   ========================================================= */

.publication-meta {
    display: flex;
    align-items: center;

    margin-top: auto;
    padding-top: 20px;

    color: var(--gray-500);

    font-size: 12px;
    font-weight: 400;
    line-height: 1;
}


.publications-all-mobile {
    display: none;
}


