/**
 * SMM News — єдиний стиль для архіву новин і окремих публікацій.
 */

/* Прибираємо службове фото й хлібні крихти теми на цих сторінках */
body.category-news .intro,
body.single .intro,
body.category-news .header__bottom-content,
body.single .header__bottom-content {
    display: none !important;
}

body.category-news main,
body.single main {
    padding-top: 24px;
}

/* ---------- Архів ---------- */

.smm-news {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 64px;
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #16241b;
}

.smm-news__head {
    padding: 26px 0 22px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(15, 41, 18, 0.12);
}

.smm-news__eyebrow {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #478f29;
}

.smm-news__title {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #25603c;
}

.smm-news__lead {
    margin: 0;
    max-width: 640px;
    font-size: 15.5px;
    line-height: 1.7;
    color: #5f6f66;
}

.smm-news__count {
    margin: 12px 0 0;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7c8b82;
}

.smm-news__count b {
    color: #25603c;
}

.smm-news__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.smm-news-card {
    display: flex;
    min-width: 0;
}

.smm-news-card__link {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid rgba(15, 41, 18, 0.12);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    color: #16241b;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.smm-news-card__link:hover,
.smm-news-card__link:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(37, 96, 60, 0.35);
    box-shadow: 0 18px 34px -26px rgba(15, 41, 18, 0.55);
}

.smm-news-card__media {
    display: block;
    aspect-ratio: 16 / 10;
    background: #e7efe8;
    overflow: hidden;
}

.smm-news-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.smm-news-card__link:hover .smm-news-card__media img {
    transform: scale(1.04);
}

.smm-news-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px 18px;
}

.smm-news-card__date {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #7c8b82;
}

.smm-news-card__title {
    margin: 0;
    font-size: 16.5px;
    line-height: 1.35;
    font-weight: 600;
    color: #16241b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.smm-news-card__excerpt {
    font-size: 13px;
    line-height: 1.55;
    color: #5f6f66;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.smm-news-card__more {
    margin-top: auto;
    padding-top: 6px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #478f29;
}

/* пагінація */

.smm-news__pagination {
    margin-top: 34px;
}

.smm-news__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    margin: 0 4px;
    padding: 0 10px;
    border: 1px solid rgba(15, 41, 18, 0.14);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #25603c;
    list-style: none;
}

.smm-news__pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.smm-news__pagination .page-numbers.current {
    background: #25603c;
    border-color: #25603c;
    color: #fff;
}

.smm-news__pagination .page-numbers:hover {
    border-color: #25603c;
}

.smm-news__empty {
    padding: 40px 0;
    color: #5f6f66;
}

/* ---------- Окрема публікація ---------- */

.smm-post {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px 40px;
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #16241b;
}

.smm-post__crumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin: 0 0 18px;
    font-size: 12.5px;
    color: #7c8b82;
}

.smm-post__crumbs a {
    color: #7c8b82;
}

.smm-post__crumbs a:hover {
    color: #25603c;
}

.smm-post__head {
    margin-bottom: 22px;
}

.smm-post__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7c8b82;
}

.smm-post__cat {
    color: #478f29;
    font-weight: 700;
}

.smm-post__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c3cec7;
}

.smm-post__title {
    margin: 0;
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #25603c;
}

.smm-post__hero {
    margin: 0 0 26px;
    border-radius: 18px;
    overflow: hidden;
    background: #e7efe8;
}

.smm-post__hero img {
    display: block;
    width: 100%;
    height: auto;
}

.smm-post__content {
    font-size: 17px;
    line-height: 1.75;
    color: #26362c;
}

.smm-post__content p {
    margin: 0 0 18px;
}

.smm-post__content h2 {
    margin: 34px 0 14px;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
    color: #25603c;
}

.smm-post__content h3 {
    margin: 28px 0 12px;
    font-size: 21px;
    font-weight: 700;
    color: #16241b;
}

.smm-post__content ul,
.smm-post__content ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.smm-post__content li {
    margin-bottom: 8px;
}

.smm-post__content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 8px 0 18px;
}

.smm-post__content blockquote {
    margin: 22px 0;
    padding: 16px 22px;
    border-left: 3px solid #478f29;
    background: #f4f8f4;
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

.smm-post__content a {
    color: #25603c;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.smm-post__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 18px;
    font-size: 15px;
}

.smm-post__content th,
.smm-post__content td {
    border: 1px solid rgba(15, 41, 18, 0.14);
    padding: 8px 10px;
    text-align: left;
}

.smm-post__share {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid rgba(15, 41, 18, 0.12);
}

.smm-post__share-label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7c8b82;
}

.smm-post__share a,
.smm-post__copy {
    padding: 7px 14px;
    border: 1px solid rgba(15, 41, 18, 0.14);
    border-radius: 999px;
    background: #fff;
    font-size: 12.5px;
    font-weight: 600;
    color: #25603c;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.smm-post__share a:hover,
.smm-post__copy:hover {
    background: #25603c;
    border-color: #25603c;
    color: #fff;
}

.smm-post__related {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 24px 64px;
    border-top: 1px solid rgba(15, 41, 18, 0.12);
}

.smm-post__related-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.smm-post__related-head h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #25603c;
}

.smm-post__related-head a {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #25603c;
    border-bottom: 1px solid rgba(37, 96, 60, 0.35);
    padding-bottom: 2px;
}

@media (max-width: 980px) {
    .smm-news__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .smm-news,
    .smm-post,
    .smm-post__related {
        padding-left: 16px;
        padding-right: 16px;
    }

    .smm-news__grid {
        grid-template-columns: 1fr;
    }

    .smm-post__content {
        font-size: 16px;
    }
}

/* Шапка архіву без опису — тримаємо компактно */
.smm-news__head {
    padding: 18px 0 16px;
}

.smm-news__head .smm-news__title:last-child {
    margin-bottom: 0;
}
