/* Blog list and article pages (Zeinet news-page / news-one / news-details). */
.zn-news-page { position: relative; padding: 120px 0 90px; }

/* Card: photo, orange date tag, white panel overlapping the photo's bottom. */
.zn-news { position: relative; z-index: 1; margin-bottom: 30px; }
.zn-news__img { position: relative; z-index: 1; overflow: hidden; }
.zn-news__img img { display: block; width: 100%; height: auto; aspect-ratio: 370 / 336; object-fit: cover; transition: all 500ms ease; }
.zn-news:hover .zn-news__img img { transform: scale(1.05); }
.zn-news__img--empty { aspect-ratio: 370 / 336; display: flex; align-items: center; justify-content: center; background: var(--secondary); color: rgba(255, 255, 255, 0.2); font-size: 64px; }
.zn-news__img > a {
    position: absolute; inset: 0; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 30px;
    transform: scale(0, 1); transform-origin: right center;
    transition: transform 900ms ease;
}
.zn-news__img > a::before { content: ''; position: absolute; inset: 0; z-index: -1; background-color: rgba(var(--navy-rgb), 0.5); }
.zn-news:hover .zn-news__img > a { transform: scale(1, 1); transform-origin: left center; }
.zn-news__box { position: relative; z-index: 2; margin: -30px 20px 0; padding: 21px 40px 0; background-color: var(--white); transition: all 500ms ease; }
.zn-news:hover .zn-news__box { box-shadow: 0 10px 60px rgba(0, 0, 0, 0.07); }
.zn-news__date { position: absolute; top: -34px; left: 0; padding: 12px 20px; background-color: var(--primary); }
.zn-news__date p { margin: 0; color: var(--white); font-size: 10px; font-weight: 800; line-height: 10px; text-transform: uppercase; }
.zn-news__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; margin: 0; padding: 0; list-style: none; }
.zn-news__meta li { display: inline-flex; align-items: center; gap: 5px; color: var(--text); font-size: 14px; font-weight: 500; }
.zn-news__meta .zn-icon { color: var(--primary); font-size: 16px; }
.zn-news__title { margin: 6px 0 25px; font-size: 24px; font-weight: 800; line-height: 29px; text-align: center; }
.zn-news__title a { color: var(--secondary); transition: all 500ms ease; }
.zn-news__title a:hover { color: var(--primary); }
.zn-news__more { display: flex; align-items: center; justify-content: center; padding: 10px 0 9px; border-top: 1px solid var(--border); color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; transition: all 500ms ease; }
.zn-news__more:hover { color: var(--primary); }

/* Round pagination buttons. */
.zn-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.zn-pagination a, .zn-pagination span {
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--secondary);
    font-size: 16px;
    transition: all 500ms ease;
}
.zn-pagination a:hover, .zn-pagination .is-current { background-color: var(--primary); border-color: var(--primary); color: var(--white); }

/* Featured article strip on the blog list. */
.zn-featured { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 50px; margin-bottom: 70px; padding: 30px; background: var(--surface); }
.zn-featured img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.zn-featured h2 { margin: 14px 0 12px; font-size: 32px; line-height: 1.25; }
.zn-featured h2 a { color: var(--secondary); }
.zn-featured h2 a:hover { color: var(--primary); }

/* Article page with sidebar. */
.zn-article-sec { padding: 120px 0; }
.zn-article__img img { display: block; width: 100%; height: auto; }
.zn-article__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 26px 0 14px; padding: 0; list-style: none; }
.zn-article__meta li { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-size: 15px; font-weight: 500; }
.zn-article__meta .zn-icon { color: var(--primary); }
.zn-article__title { margin: 0 0 24px; font-size: 34px; font-weight: 800; line-height: 1.25; }
.zn-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border); }
.zn-tags strong { margin-right: 6px; color: var(--secondary); font-size: 18px; }
.zn-tags span { padding: 5px 18px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; text-transform: uppercase; }
.zn-share { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.zn-share strong { margin-right: 6px; color: var(--secondary); }
.zn-share a { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(var(--navy-rgb), 0.1); color: var(--secondary); font-size: 17px; transition: all 0.4s; }
.zn-share a:hover { background: var(--primary); color: var(--white); }

.zn-sidebar__box { margin-bottom: 30px; padding: 45px 30px 40px; background: var(--surface); }
.zn-sidebar__title { position: relative; margin: 0 0 22px; padding-bottom: 12px; font-size: 20px; font-weight: 700; }
.zn-sidebar__title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--primary); }
.zn-sidebar__cats { margin: 0; padding: 0; list-style: none; }
.zn-sidebar__cats li + li { margin-top: 10px; }
.zn-sidebar__cats a { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; background: var(--white); color: var(--text); font-weight: 500; transition: all 0.4s; }
.zn-sidebar__cats a:hover, .zn-sidebar__cats a.is-active { background: var(--primary); color: var(--white); }
.zn-sidebar__post { display: flex; gap: 16px; align-items: center; }
.zn-sidebar__post + .zn-sidebar__post { margin-top: 20px; }
.zn-sidebar__post img { width: 76px; height: 76px; object-fit: cover; flex-shrink: 0; }
.zn-sidebar__post small { display: flex; align-items: center; gap: 5px; color: var(--text); font-size: 13px; }
.zn-sidebar__post small .zn-icon { color: var(--primary); }
.zn-sidebar__post a { color: var(--secondary); font-weight: 700; line-height: 1.35; }
.zn-sidebar__post a:hover { color: var(--primary); }

@media (max-width: 991px) {
    .zn-featured { grid-template-columns: 1fr; gap: 24px; }
    .zn-news-page, .zn-article-sec { padding: 80px 0 60px; }
}
@media (max-width: 767px) {
    .zn-news__box { padding: 21px 20px 0; }
    .zn-news__title { font-size: 20px; }
    .zn-article__title { font-size: 28px; }
}
