.articles-page {
    background: #ffffff;
    overflow-x: clip;
}

.articles-main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 132px 48px 96px;
    box-sizing: border-box;
}

.articles-main__title {
    margin: 0 0 64px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 80px;
    line-height: 0.9;
    text-align: center;
    color: #373737;
}

.articles-main__empty {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    color: #64748b;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 24px;
}

.article-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.article-card__link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    height: 100%;
    padding-bottom: 24px;
    text-decoration: none;
    color: inherit;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(80, 59, 58, 0.18);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card__link:hover {
    background: #FEF5F0;
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(80, 59, 58, 0.32);
}

/* .article-card__link:hover .article-card__media {
    border-radius: 18px 18px 0 0;
} */

.article-card--featured .article-card__link {
    background: #FEF5F0;
}

.article-card__media {
    align-self: stretch;
    overflow: hidden;
    border-radius: 18px;
}

.article-card__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 314 / 176.62;
    object-fit: cover;
}

.article-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    gap: 12px;
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
    background: transparent;
}

.article-card__title {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    color: #503B3A;
    align-self: stretch;
    width: 100%;
    height: 50px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.article-card__excerpt {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0;
    color: #503B3A;
    align-self: stretch;
    width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.article-card__date {
    margin-top: auto;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    color: #503B3A;
}

.articles-main__actions {
    display: flex;
    justify-content: center;
    margin-top: 56px;
}

.articles-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 32px;
    border: 1px solid rgba(55, 55, 55, 0.2);
    border-radius: 50px;
    background: transparent;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    line-height: 0.9;
    color: #503B3A;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.articles-load-more:hover {
    border-color: #FF7A95;
    color: #FF7A95;
}

.articles-load-more:active {
    transform: scale(0.98);
}

.articles__pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding-top: 30px;
    gap: 12px;
}

.articles__empty {
    margin: 0;
    padding: 48px 24px;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    color: #ffffff;
}

.articles__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 20px;
    box-sizing: border-box;
    border: 1px solid #E9E9E9;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.2px;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.articles__page--pill {
    padding: 0 25px;
    border-color: #ffffff;
}

.articles__page--active {
    background: #ffffff;
    border-color: #E9E9E9;
    color: #FF7A95;
}

.articles__page:hover:not(.articles__page--active):not(.articles__page--disabled) {
    background: rgba(255, 255, 255, 0.12);
}

.articles__page--disabled {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

/*  */

.articles__page {
    color: #373737;
    border-color: #E9E9E9;
}

.articles__page--pill {
    border-color: #FF7A95;
}

.articles__page--active {
    background: #FF7A95;
    border-color: #FF7A95;
    color: #FFFFFF;
}

.articles__page:hover:not(.articles__page--active):not(.articles__page--disabled) {
    background: rgba(255, 122, 149, 0.1);
}

@media (max-width: 1200px) {
    .articles-main {
        padding: 56px 32px 80px;
    }

    .articles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {

    .articles-main {
        padding: 108px 24px 72px;
    }

    .articles-main__title {
        margin-bottom: 48px;
        font-size: 64px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
    }
}

@media (max-width: 640px) {
    .articles-main {
        padding: 96px 16px 64px;
    }

    .articles-main__title {
        margin-bottom: 36px;
        font-size: 48px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .article-card__image {
        aspect-ratio: 314 / 176.62;
    }

    .article-card__title {
        font-size: 24px;
    }

    .article-card__excerpt {
        font-size: 16px;
    }

    .article-card__date {
        font-size: 16px;
    }

    .articles-main__actions {
        margin-top: 40px;
    }

    .articles-load-more {
        width: 100%;
        max-width: 280px;
    }

    .articles__page.articles__page__number {
        padding: 0 13px;
    }
}

/* Article detail */
.article-detail {
    max-width: 1440px;
    margin: 0 auto;
    padding: 132px 48px 96px;
    box-sizing: border-box;
    color: #373737;
}

.article-detail__main {
    max-width: 800px;
    margin: 0 auto;
}

.article-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    color: #373737;
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-detail__back svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.article-detail__back:hover {
    color: #FF7A95;
}

.article-detail__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    text-align: center;
}

.article-detail__title {
    margin: 0;
    max-width: 820px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 60px;
    line-height: 0.95;
    color: #373737;
    text-align: left;
    /* text-wrap: balance; */
}

.article-detail__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: left;
    gap: 20px;
}

.article-detail__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    color: #9CA3AF;
}

.article-detail__meta-item:not(:first-child) {
    border-left: 1px solid #3737371F;
}

.article-detail__meta-item:first-child {
    padding-left: 0;
}

.article-detail__meta-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #9CA3AF;
}

.article-detail__hero {
    margin-bottom: 40px;
}

.article-detail__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0px;
}

.article-detail__content {
    /* max-width: 760px; */
    margin: 0 auto;
}

.article-detail__body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    color: #373737;
}

.article-detail__body h2 {
    margin: 32px 0 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.1;
    color: #373737;
}

.article-detail__body h2:first-child {
    margin-top: 0;
}

.article-detail__body p {
    margin: 0 0 16px;
}

.article-detail__body p:last-child {
    margin-bottom: 0;
}

.article-detail__body--more {
    margin-top: 16px;
}

.article-detail__actions {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.article-detail__load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 32px;
    border: 1px solid rgba(55, 55, 55, 0.2);
    border-radius: 50px;
    background: transparent;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    line-height: 1;
    color: #373737;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.article-detail__load-more:hover {
    border-color: #FF7A95;
    color: #FF7A95;
}

.article-detail__related {
    margin-top: 96px;
    padding-top: 96px;
    border-top: 1px solid #37373712;
}

.article-detail__related-title {
    margin: 0 0 48px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 42px;
    line-height: 1;
    text-align: center;
    color: #373737;
}

.articles-grid--related {
    margin-bottom: 48px;
}

.article-detail__more-articles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.article-detail__more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 1px solid #373737;
    border-radius: 999px;
    color: #373737;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.article-detail__more-btn:hover {
    background: rgba(55, 55, 55, 0.06);
    color: #373737;
}

.article-detail__more-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid #373737;
    border-radius: 50%;
    color: #373737;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.article-detail__more-icon:hover {
    background: rgba(55, 55, 55, 0.06);
    color: #373737;
}

.article-detail__more-icon svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 992px) {
    .article-detail {
        padding: 108px 24px 72px;
    }

    .article-detail__title {
        font-size: 40px;
    }

    .article-detail__related-title {
        font-size: 32px;
        margin-bottom: 32px;
    }

    .articles-grid--related {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
    }
}

@media (max-width: 640px) {
    .article-detail {
        padding: 96px 16px 64px;
    }

    .article-detail__back {
        margin-bottom: 20px;
        font-size: 13px;
    }

    .article-detail__header {
        gap: 16px;
        margin-bottom: 24px;
    }

    .article-detail__title {
        font-size: 32px;
    }

    .article-detail__meta {
        gap: 10px;
    }

    .article-detail__meta-item {
        padding: 0 14px;
        font-size: 14px;
    }

    .article-detail__meta-item:first-child {
        padding-left: 0;
    }

    .article-detail__meta-item svg {
        width: 20px;
        height: 20px;
    }

    .article-detail__hero {
        margin-bottom: 24px;
    }

    .article-detail__body {
        font-size: 14px;
    }

    .article-detail__body h2 {
        font-size: 20px;
        margin-top: 24px;
    }

    .article-detail__related {
        margin-top: 64px;
        padding-top: 64px;
    }

    .article-detail__related-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .articles-grid--related {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .article-detail__more-articles {
        flex-direction: column;
        gap: 16px;
    }

    .article-detail__more-btn {
        width: 100%;
        max-width: 280px;
    }
}