/*
Theme Name: TrendVista
Theme URI: https://wordpress.org/themes/
Author: TrendVista
Description: An eye-catching magazine blogging theme for guest-post sites. A hero mosaic (one big story and two stacked stories with titles over the images), then a three-column grid of Latest Articles, with a full-width band of shuffled posts, Categories and Pages. Self-hosted font, no theme JavaScript.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 7.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trendvista
Update URI: false
Tags: blog, news, one-column, grid-layout, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, theme-options
*/

/* Fonts (self-hosted, no Google requests) */
@font-face {
	font-family: "Urbanist";
	src: url("assets/fonts/urbanist.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

/* ==========================================================================
   Base (shared structure; the theme section below sets the look)
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--tv-bg);
	color: var(--tv-ink);
	font-family: var(--tv-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, video, svg, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	font-family: var(--tv-display);
	line-height: 1.15;
	text-wrap: balance;
}

:focus-visible { outline: 3px solid var(--tv-focus, currentColor); outline-offset: 3px; border-radius: 4px; }

.tv-wrap { width: min(100% - 32px, var(--tv-wrap)); margin-inline: auto; }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus,
.skip-link:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	width: auto;
	left: 12px;
	top: 12px;
	z-index: 1000;
	padding: 12px 18px;
	background: var(--tv-accent);
	color: var(--tv-on-accent);
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
}

/* Buttons */
.tv-btn,
.comment-form .submit {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.7em 1.25em;
	background: var(--tv-accent);
	color: var(--tv-on-accent);
	border: 0;
	border-radius: var(--tv-btn-radius, 8px);
	font-family: var(--tv-display);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.tv-btn:hover,
.comment-form .submit:hover { transform: translateY(-2px); }

/* Mobile menu toggle (pure CSS checkbox) */
.tv-nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tv-nav-button { display: none; }
.tv-burger { position: relative; width: 18px; height: 12px; }
.tv-burger::before,
.tv-burger::after,
.tv-burger span {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.tv-burger::before { top: 0; }
.tv-burger span { top: 5px; }
.tv-burger::after { top: 10px; }
.tv-nav-toggle:checked + .tv-nav-button .tv-burger::before { transform: translateY(5px) rotate(45deg); }
.tv-nav-toggle:checked + .tv-nav-button .tv-burger span { opacity: 0; }
.tv-nav-toggle:checked + .tv-nav-button .tv-burger::after { transform: translateY(-5px) rotate(-45deg); }
.tv-nav-toggle:focus-visible + .tv-nav-button { outline: 3px solid currentColor; outline-offset: 3px; }

.tv-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tv-menu li { position: relative; }
.tv-menu a { display: block; text-decoration: none; }
.tv-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 60;
	min-width: 210px;
	margin: 0;
	padding: 8px;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.tv-menu li:hover > .sub-menu,
.tv-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

/* Thumbnails */
.tv-thumb {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	text-decoration: none;
	background: var(--tv-soft);
}
.tv-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
a.tv-thumb:hover img { transform: scale(1.04); }
.tv-thumb__fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: var(--tv-tone, var(--tv-soft));
	font-family: var(--tv-display);
	font-weight: 700;
	font-size: clamp(2.6rem, 7vw, 4.2rem);
	line-height: 1;
	color: var(--tv-tone-ink, var(--tv-ink));
}

/* Chips + meta */
.tv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tv-chip { text-decoration: none; }
.tv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; color: var(--tv-muted); font-size: 0.88rem; }
.tv-meta__item + .tv-meta__item::before { content: "·"; margin: 0 8px; }
.tv-meta a { color: var(--tv-ink); font-weight: 700; text-decoration: none; }
.tv-meta a:hover { text-decoration: underline; }
.tv-meta__avatar { width: 40px; height: 40px; margin-right: 10px; border-radius: 50%; }

/* Lists in boxes */
.tv-catlist,
.tv-pagelist,
.tv-randlist { margin: 0; padding: 0; list-style: none; }
.tv-pagelist .children { display: none; }
.tv-cat,
.tv-pagelist a { text-decoration: none; }
.tv-randlist,
.tv-rand,
.tv-rand__media { position: relative; }
.tv-rand__title { margin: 0 0 6px; }
.tv-rand__title a,
.tv-card__title a,
.tv-full__title a { text-decoration: none; }
.tv-rand__text { margin: 0 0 8px; }
.tv-rand__more { font-weight: 700; }
.widget.tv-box > :not(.tv-box__title) { margin: 16px 18px; }
.widget.tv-box ul { padding-left: 1.1em; }

/* Article content */
.tv-entry { font-size: 1.075rem; line-height: 1.78; overflow-wrap: break-word; }
.tv-entry > * { margin-block: 0 1.15em; }
.tv-entry > *:last-child { margin-bottom: 0; }
.tv-entry h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-top: 1.6em; }
.tv-entry h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin-top: 1.5em; }
.tv-entry h4 { font-size: 1.15rem; margin-top: 1.4em; }
.tv-entry a { color: var(--tv-link, var(--tv-ink)); font-weight: 600; text-decoration: underline; text-decoration-color: var(--tv-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tv-entry a:hover { text-decoration-thickness: 4px; }
.tv-entry ul,
.tv-entry ol { padding-left: 1.4em; }
.tv-entry li { margin-bottom: 0.4em; }
.tv-entry li::marker { color: var(--tv-accent); }
.tv-entry blockquote { margin-inline: 0; }
.tv-entry blockquote p:last-child { margin-bottom: 0; }
.tv-entry blockquote cite { display: block; margin-top: 10px; font-size: 0.9rem; font-style: normal; color: var(--tv-muted); }
.tv-entry img { border-radius: var(--tv-img-radius, 8px); }
.tv-entry figure { margin-inline: 0; }
.tv-entry figcaption,
.wp-caption-text,
.wp-element-caption { margin-top: 8px; color: var(--tv-muted); font-size: 0.88rem; text-align: center; }
.tv-entry code,
.tv-entry kbd { padding: 0.12em 0.4em; background: var(--tv-soft); border-radius: 6px; font-family: var(--tv-mono); font-size: 0.88em; }
.tv-entry pre { padding: 20px 22px; background: #15131c; color: #f3f0e8; border-radius: 10px; overflow-x: auto; font-family: var(--tv-mono); font-size: 0.9rem; line-height: 1.6; }
.tv-entry pre code { padding: 0; background: none; color: inherit; }
.tv-entry table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tv-entry th,
.tv-entry td { padding: 10px 12px; border: 1px solid var(--tv-line); text-align: left; }
.tv-entry th { background: var(--tv-soft); }
.tv-entry .wp-block-table { overflow-x: auto; }
.tv-entry hr { border: 0; height: 1px; background: var(--tv-line); margin: 2.4em 0; }
.tv-entry .more-link { display: inline-block; margin-top: 4px; font-family: var(--tv-display); font-weight: 700; }
.tv-pagelinks { margin-top: 22px; font-weight: 700; }
.tv-pagelinks a,
.tv-pagelinks > span:not(:first-child) { margin-left: 6px; }

.tv-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tv-tags a { padding: 0.3em 0.75em; border-radius: 6px; background: var(--tv-soft); font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.tv-tags a::before { content: "#"; color: var(--tv-accent); margin-right: 1px; }

/* WordPress core classes */
.alignleft { float: left; margin: 0.3em 1.4em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.4em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide,
.alignfull { width: 100%; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery-caption { font-size: 0.85rem; }
.sticky { position: relative; }
.bypostauthor > .comment-body { outline: 2px solid var(--tv-accent); }

/* Single post */
.tv-single__thumb { margin: 0; }
.tv-single__thumb img { display: block; width: 100%; height: auto; }
.tv-single .tv-tags { margin-top: 30px; }
.tv-author { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; margin-top: 32px; padding: 22px; }
.tv-author__avatar { width: 88px; height: 88px; border-radius: 50%; }
.tv-author__label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tv-muted); }
.tv-author__name { margin: 2px 0 6px; font-size: 1.35rem; }
.tv-author__name a { text-decoration: none; }
.tv-author__bio { margin: 0 0 8px; font-size: 0.98rem; color: var(--tv-muted); }
.tv-author__site { font-weight: 700; font-size: 0.92rem; }
@media (max-width: 520px) {
	.tv-author { grid-template-columns: 1fr; }
	.tv-author__avatar { width: 64px; height: 64px; }
}

.tv-postnav { margin-top: 36px; }
.tv-postnav .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tv-postnav .nav-next { grid-column: 2; text-align: right; }
.tv-postnav a { display: block; height: 100%; padding: 18px 20px; text-decoration: none; }
.tv-postnav__label { display: block; margin-bottom: 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tv-muted); }
.tv-postnav__title { font-family: var(--tv-display); font-weight: 700; line-height: 1.3; }
@media (max-width: 640px) {
	.tv-postnav .nav-links { grid-template-columns: 1fr; }
	.tv-postnav .nav-next { grid-column: auto; }
}

/* Pagination */
.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 12px;
	font-family: var(--tv-display);
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.page-numbers.dots { background: transparent !important; border-color: transparent !important; }

/* Archive header */
.tv-archive-head { margin-bottom: 32px; }
.tv-archive-head__title { margin: 10px 0 8px; font-size: clamp(2.1rem, 5vw, 3.2rem); }
.tv-archive-head__desc { color: var(--tv-muted); max-width: 60ch; }
.tv-archive-head .tv-search { margin-top: 18px; max-width: 520px; }

/* Search + comments */
.tv-search { display: flex; gap: 8px; }
.tv-search__input,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	background: var(--tv-paper);
	color: var(--tv-ink);
	border: 1px solid var(--tv-line);
	border-radius: var(--tv-input-radius, 8px);
	font: inherit;
	font-size: 1rem;
}
.tv-search__input:focus,
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--tv-accent); box-shadow: 0 0 0 3px var(--tv-ring, rgba(0, 0, 0, 0.12)); }
.tv-search__btn {
	flex: none;
	display: grid;
	place-items: center;
	width: 50px;
	background: var(--tv-accent);
	color: var(--tv-on-accent);
	border: 0;
	border-radius: var(--tv-input-radius, 8px);
	cursor: pointer;
}

.tv-comments { margin-top: 44px; }
.tv-comments__title { font-size: 1.6rem; margin-bottom: 20px; }
.tv-comment-list,
.tv-comment-list .children { margin: 0; padding: 0; list-style: none; }
.tv-comment-list .children { margin-left: clamp(14px, 4vw, 34px); }
.comment-body { margin-bottom: 16px; padding: 18px 20px; background: var(--tv-paper); border: 1px solid var(--tv-line); border-radius: var(--tv-radius); }
.comment-author { display: flex; align-items: center; gap: 10px; font-family: var(--tv-display); font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { margin: 4px 0 10px; font-size: 0.82rem; }
.comment-metadata a { color: var(--tv-muted); text-decoration: none; }
.comment-content { font-size: 1rem; }
.reply a { font-size: 0.85rem; font-weight: 700; }
.comment-respond { padding: clamp(20px, 4vw, 30px); background: var(--tv-paper); border: 1px solid var(--tv-line); border-radius: var(--tv-radius); }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; margin-bottom: 4px; font-weight: 600; font-size: 0.92rem; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-reply-title small { margin-left: 10px; font-size: 0.85rem; }

/* 404 + empty */
.tv-404,
.tv-empty { padding: clamp(28px, 5vw, 48px); text-align: center; background: var(--tv-paper); border-radius: var(--tv-radius); }
.tv-404__num { margin: 0; font-family: var(--tv-display); font-weight: 800; font-size: clamp(5rem, 18vw, 9rem); line-height: 1; color: var(--tv-accent); }
.tv-404 .tv-search,
.tv-empty .tv-search { max-width: 460px; margin: 18px auto 22px; }

/* Footer widgets */
.tv-footer__widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; padding-bottom: 32px; margin-bottom: 32px; }
.tv-footer-widget ul { padding-left: 1.1em; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after { transition: none !important; animation: none !important; }
}


/* ==========================================================================
   News kit (shared structure for the news-style themes)
   ========================================================================== */
body { font-size: 1.02rem; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.012em; }
.tv-icon { flex: none; }

/* Badge / dot tones */
.tv-t0 { --tv-tone: #1f4fae; --tv-tone-bg: #e3ecfb; }
.tv-t1 { --tv-tone: #2b7a3d; --tv-tone-bg: #e2f3e6; }
.tv-t2 { --tv-tone: #b5591a; --tv-tone-bg: #fdeedd; }
.tv-t3 { --tv-tone: #b23a55; --tv-tone-bg: #fbe7ea; }
.tv-t4 { --tv-tone: #5b45a8; --tv-tone-bg: #ece8f8; }
.tv-thumb__fallback { background: var(--tv-tone-bg); color: var(--tv-tone); font-family: var(--tv-display); }

.tv-badge,
.tv-chip {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 3px;
	background: var(--tv-tone-bg);
	color: var(--tv-tone);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.4;
	text-transform: uppercase;
	text-decoration: none;
}
.tv-badge:hover,
.tv-chip:hover { background: var(--tv-tone); color: #ffffff; }

.tv-dateline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; color: var(--tv-muted); font-size: 0.85rem; }
.tv-dateline span,
.tv-dateline a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.tv-dateline a:hover { color: var(--tv-accent); }

.tv-btn { font-family: var(--tv-body); font-weight: 600; font-size: 0.95rem; padding: 0.75em 1.4em; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.tv-btn:hover { background: var(--tv-accent-dark, var(--tv-ink)); color: #ffffff; transform: none; }
.tv-btn .tv-icon { transition: transform 0.15s ease; }
.tv-btn:hover .tv-icon { transform: translateX(3px); }

/* Header */
.tv-header { background: var(--tv-paper); border-bottom: 1px solid var(--tv-line); position: relative; z-index: 50; }
.tv-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; min-height: 72px; padding-block: 10px; }
.tv-brand { flex: none; }
.tv-brand__title { margin: 0; font-family: var(--tv-display); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.15rem); line-height: 1; letter-spacing: -0.03em; color: var(--tv-ink); }
.tv-brand__title a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.tv-brand__mark { display: grid; flex: none; color: var(--tv-accent); }
.tv-brand__tagline { margin: 3px 0 0 var(--tv-logo-gap, 50px); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; color: var(--tv-muted); }
.custom-logo { max-height: 56px; width: auto; }

.tv-header__panel { flex: 1; display: flex; align-items: center; gap: 20px; }
.tv-nav { margin-inline: auto; }
.tv-menu { gap: 2px 6px; }
.tv-menu > li > a { position: relative; padding: 12px 13px; white-space: nowrap; font-weight: 500; font-size: 0.95rem; color: var(--tv-ink); }
.tv-menu > .current-menu-item > a,
.tv-menu > .current_page_item > a { color: var(--tv-accent); }
.tv-menu a { display: inline-flex; align-items: center; gap: 4px; }
.tv-menu > li > a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--tv-accent); transform: scaleX(0); transition: transform 0.2s ease; }
.tv-menu > li > a:hover::after,
.tv-menu > .current-menu-item > a::after,
.tv-menu > .current_page_item > a::after,
.tv-menu > .current-menu-ancestor > a::after { transform: scaleX(1); }
.tv-menu > .current-menu-item > a { color: var(--tv-ink); }
.tv-menu .sub-menu { background: var(--tv-paper); border: 1px solid var(--tv-line); border-radius: var(--tv-radius); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
.tv-menu .sub-menu a { display: block; padding: 8px 12px; border-radius: 4px; font-size: 0.92rem; }
.tv-menu .sub-menu a:hover { background: var(--tv-soft); }
.tv-menu .sub-menu .sub-menu { top: 0; left: 100%; }

.tv-header__tools { display: flex; align-items: center; gap: 10px; }
.tv-cta { white-space: nowrap; background: transparent; color: var(--tv-accent); border: 1px solid var(--tv-accent); box-shadow: none; font-family: var(--tv-body); font-size: 0.85rem; padding: 0.55em 1em; }
.tv-cta:hover { background: var(--tv-accent); color: #ffffff; transform: none; }
.tv-searchbox { position: relative; }
.tv-searchbox summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--tv-ink); cursor: pointer; list-style: none; }
.tv-searchbox summary::-webkit-details-marker { display: none; }
.tv-searchbox summary:hover,
.tv-searchbox[open] summary { background: var(--tv-soft); }
.tv-searchbox summary svg { width: 22px; height: 22px; }
.tv-searchbox__panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(360px, 88vw); padding: 12px; background: var(--tv-paper); border: 1px solid var(--tv-line); border-radius: var(--tv-radius); box-shadow: 0 16px 40px rgba(22, 32, 58, 0.12); }
.tv-mobile-search { display: none; }

@media (max-width: 1180px) {
	.tv-header__inner { justify-content: space-between; flex-wrap: wrap; }
	.tv-brand { flex: 1 1 0; min-width: 0; }
	.tv-nav-button { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1px solid var(--tv-line); border-radius: 4px; font-weight: 600; cursor: pointer; }
	.tv-header__panel { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 8px; }
	.tv-nav-toggle:checked ~ .tv-header__panel { display: flex; }
	.tv-nav { margin: 0; }
	.tv-menu { flex-direction: column; align-items: stretch; }
	.tv-menu > li > a { display: flex; padding: 10px 4px; border-bottom: 1px solid var(--tv-line); }
	.tv-menu > li > a::after { display: none; }
	.tv-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 14px; }
	.tv-header__tools { flex-wrap: wrap; }
	.tv-searchbox { display: none; }
	.tv-mobile-search { display: block; flex: 1 1 240px; }
}

@media (min-width: 1181px) and (max-width: 1360px) {
	.tv-header__inner { gap: 12px 18px; }
	.tv-menu > li > a { padding-inline: 9px; font-size: 0.92rem; }
	.tv-menu > li > a::after { left: 9px; right: 9px; }
	.tv-brand__title { font-size: 1.8rem; }
}

/* Layout */
.tv-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 400px;
	gap: 28px;
	align-items: start;
	padding-block: 26px 60px;
}
.tv-main,
.tv-box { background: var(--tv-paper); border: 1px solid var(--tv-line); border-radius: var(--tv-radius); box-shadow: var(--tv-panel-shadow); }
.tv-main { min-width: 0; padding: clamp(16px, 2vw, 24px) clamp(16px, 2vw, 24px) 28px; }
.tv-sidebar { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

@media (max-width: 1080px) {
	.tv-layout { grid-template-columns: minmax(0, 1fr); padding-block: 18px 48px; }
}
@media (max-width: 560px) {
	.tv-sidebar__pair { grid-template-columns: minmax(0, 1fr); }
}

/* Post rows */
.tv-feed--cards { display: flex; flex-direction: column; }
.tv-card {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
	gap: 26px;
	padding-bottom: 14px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--tv-line);
}
.tv-card:last-child { margin-bottom: 0; border-bottom: 0; }
.tv-card__thumb { aspect-ratio: 16 / 8.4; border-radius: var(--tv-radius); }
.tv-card__title { margin: 8px 0 6px; font-size: 1.32rem; font-weight: 600; line-height: 1.25; color: var(--tv-ink); }
.tv-card__title a:hover { color: var(--tv-accent); }
.tv-card__excerpt { margin: 0 0 10px; color: var(--tv-muted); font-size: 0.98rem; line-height: 1.5; }
@media (max-width: 640px) {
	.tv-card { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.tv-card__thumb { aspect-ratio: 16 / 9; }
}

/* Full posts (Customizer option) */
.tv-feed--full { display: flex; flex-direction: column; gap: 34px; }
.tv-full { padding-bottom: 30px; border-bottom: 1px solid var(--tv-line); }
.tv-full:last-child { border-bottom: 0; }
.tv-full__thumb { border-radius: var(--tv-radius); margin-bottom: 18px; }
.tv-full__title { margin: 6px 0 10px; font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; }
.tv-full__title a:hover { color: var(--tv-accent); }
.tv-full .tv-meta { margin-bottom: 18px; }
.tv-full__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; }
.tv-btn--ghost { background: transparent; color: var(--tv-accent); border: 1px solid var(--tv-accent); box-shadow: none; font-size: 0.85rem; }

/* Sidebar boxes */
.tv-box { padding: 20px 20px 18px; }
.tv-box__title { position: relative; display: block; margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px solid var(--tv-line); font-size: 1.3rem; font-weight: 700; color: var(--tv-ink); }
.tv-box__title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 40px; height: 3px; border-radius: 2px; background: var(--tv-accent); }
.tv-box--cats .tv-box__title,
.tv-box--pages .tv-box__title { margin-bottom: 12px; }
.tv-pagelist li:first-child,
.tv-catlist li:first-child { border-top: 0 !important; }
.tv-pagelist li,
.tv-catlist li { border-bottom: 1px solid var(--tv-line); }
.tv-pagelist li:first-child,
.tv-catlist li:first-child { border-top: 1px solid var(--tv-line); }
.tv-pagelist a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 2px; font-size: 0.94rem; color: var(--tv-ink); }
.tv-pagelist a::after { content: ""; flex: none; width: 7px; height: 7px; border-right: 1.6px solid var(--tv-muted); border-top: 1.6px solid var(--tv-muted); transform: rotate(45deg); margin-right: 4px; transition: transform 0.15s ease; }
.tv-pagelist a:hover,
.tv-pagelist .current_page_item > a { color: var(--tv-accent); }
.tv-pagelist a:hover::after { transform: translateX(3px) rotate(45deg); border-color: var(--tv-accent); }

.tv-cat { display: flex; align-items: center; gap: 12px; padding: 7px 2px; font-size: 0.94rem; color: var(--tv-ink); }
.tv-cat::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--tv-tone); }
.tv-cat__name { flex: 1; }
.tv-cat:hover .tv-cat__name,
.tv-cat.is-current .tv-cat__name { color: var(--tv-accent); }
.tv-count { min-width: 30px; padding: 1px 7px; border-radius: 3px; background: var(--tv-soft); color: var(--tv-muted); font-size: 0.8rem; text-align: center; }

.tv-box__head { position: relative; margin-bottom: 4px; }
.tv-box__head .tv-box__link { position: absolute; right: 0; top: 6px; }
.tv-box__head .tv-box__title { margin: 0; }
.tv-box__link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--tv-ink); text-decoration: none; }
.tv-box__link:hover { color: var(--tv-accent); }
.tv-postlist { margin: 0; padding: 0; list-style: none; }
.tv-mini { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; padding-block: 10px; border-bottom: 1px solid var(--tv-line); }
.tv-mini:last-child { border-bottom: 0; padding-bottom: 0; }
.tv-mini__thumb { aspect-ratio: 16 / 10; border-radius: var(--tv-radius); }
.tv-mini__thumb .tv-thumb__fallback { font-size: 2rem; }
.tv-mini__title { margin: 0 0 6px; font-size: 0.98rem; font-weight: 500; line-height: 1.35; }
.tv-mini__title a { text-decoration: none; }
.tv-mini__title a:hover { color: var(--tv-accent); }
.tv-mini__text { margin: 0 0 6px; color: var(--tv-muted); font-size: 0.88rem; line-height: 1.5; }
.tv-mini__date { display: inline-flex; align-items: center; gap: 5px; color: var(--tv-muted); font-size: 0.8rem; }
.widget.tv-box > :not(.tv-box__title) { margin: 10px 0 0; }

/* Single + page */
.tv-single__head { margin-bottom: 20px; }
.tv-single__title { margin: 10px 0 14px; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--tv-ink); }
.tv-single__thumb { margin-bottom: 26px; }
.tv-single__thumb img { border-radius: var(--tv-radius); }
.tv-entry { font-size: 1.06rem; color: var(--tv-text, var(--tv-ink)); }
.tv-entry h2,
.tv-entry h3,
.tv-entry h4 { color: var(--tv-ink); }
.tv-entry blockquote,
.tv-entry .wp-block-quote { padding: 18px 22px; background: var(--tv-soft); border-radius: var(--tv-radius); font-size: 1.15rem; font-weight: 500; line-height: 1.55; }
.tv-author { background: var(--tv-soft); border-radius: var(--tv-radius); }
.tv-postnav a { background: var(--tv-paper); border: 1px solid var(--tv-line); border-radius: var(--tv-radius); transition: border-color 0.15s ease; }
.tv-postnav a:hover { border-color: var(--tv-accent); }
.tv-tags a:hover { background: var(--tv-accent); color: #ffffff; }
.tv-tags a:hover::before { color: #ffffff; }

.page-numbers { border: 1px solid var(--tv-line); border-radius: 4px; font-family: var(--tv-body); font-weight: 600; color: var(--tv-ink); }
a.page-numbers:hover { border-color: var(--tv-accent); color: var(--tv-accent); }
.page-numbers.current { background: var(--tv-accent); border-color: var(--tv-accent); color: #ffffff; }

.tv-kicker { display: inline-block; padding: 3px 8px; border-radius: 3px; background: var(--tv-soft); color: var(--tv-accent); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.tv-archive-head { padding-bottom: 18px; border-bottom: 1px solid var(--tv-line); margin-bottom: 22px; }
.tv-archive-head__title { color: var(--tv-ink); }
.tv-404,
.tv-empty { padding: 30px 10px; }

/* Footer */
.tv-footer { background: var(--tv-foot-bg, #121a2f); color: var(--tv-foot-ink, #e7ece9); padding-block: 40px 30px; }
.tv-footer a { color: inherit; text-decoration: none; }
.tv-footer__widgets { border-bottom: 1px solid rgba(231, 236, 233, 0.15); }
.tv-footer-widget__title { font-size: 1.15rem; color: #ffffff; }
.tv-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.tv-footer__brand { font-family: var(--tv-display); font-weight: 800; font-size: 1.8rem; letter-spacing: -0.03em; }
.tv-footer__brand .tv-brand__hl { color: var(--tv-foot-hl, #9db8ff); }
.tv-footer__credit { margin: 8px 0 0; opacity: 0.78; font-size: 0.88rem; }
.tv-footer__menu { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-size: 0.92rem; }
.tv-footer__menu a:hover,
.tv-footer__top:hover { color: var(--tv-foot-hl, #9db8ff); }
.tv-footer__top { font-size: 0.88rem; font-weight: 600; }

@media (max-width: 560px) {
	.tv-brand__title { font-size: 1.55rem; }
	.tv-brand__tagline { display: none; }
}

.tv-featured__body > .tv-badge,
.tv-card__body > .tv-badge { align-self: flex-start; }


/* ==========================================================================
   TrendVista look (Design 2: magazine grid)
   ========================================================================== */
:root {
	--tv-bg: #f5f7fb;
	--tv-paper: #ffffff;
	--tv-ink: #0f1b3d;
	--tv-text: #27324f;
	--tv-muted: #56607a;
	--tv-soft: #eef2fa;
	--tv-line: #e3e8f2;
	--tv-accent: #1d4ed8;
	--tv-accent-dark: #1e3a8a;
	--tv-on-accent: #ffffff;
	--tv-link: #1d4ed8;
	--tv-radius: 10px;
	--tv-btn-radius: 6px;
	--tv-input-radius: 6px;
	--tv-img-radius: 8px;
	--tv-focus: #1d4ed8;
	--tv-ring: rgba(29, 78, 216, 0.18);
	--tv-panel-shadow: 0 1px 3px rgba(15, 27, 61, 0.06);
	--tv-foot-bg: #0f1b3d;
	--tv-foot-hl: #7dd3fc;
	--tv-logo-gap: 54px;
	--tv-display: "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--tv-body: "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--tv-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
	--tv-wrap: 1320px;
}

body { font-size: 1.04rem; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.015em; }
.tv-brand__title { font-weight: 800; color: var(--tv-ink); }
.tv-brand__tagline { font-size: 0.72rem; letter-spacing: 0.06em; }

/* Single column: no side panel, band below */
.tv-layout { display: block; padding-top: 26px; }
.tv-main { padding: 0; background: transparent; border: 0; box-shadow: none; }

/* Hero mosaic */
.tv-mosaic { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; margin-bottom: 40px; }
.tv-mosaic__side { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.tv-hero { position: relative; min-height: 250px; border-radius: var(--tv-radius); overflow: hidden; background: var(--tv-ink); isolation: isolate; }
.tv-hero--big { min-height: 520px; }
.tv-hero__thumb { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; height: 100%; }
.tv-hero__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 14, 33, 0) 30%, rgba(8, 14, 33, 0.9) 100%); }
.tv-hero:hover .tv-hero__thumb img { transform: scale(1.04); }
.tv-hero__over { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; color: #ffffff; }
.tv-hero--big .tv-hero__over { padding: 28px 30px; }
.tv-hero .tv-badge { position: relative; z-index: 1; }
.tv-hero__title { margin: 10px 0 8px; font-size: 1.25rem; font-weight: 700; line-height: 1.2; color: #ffffff; }
.tv-hero--big .tv-hero__title { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.1; }
.tv-hero__title a { text-decoration: none; }
.tv-hero__title a::after { content: ""; position: absolute; inset: 0; }
.tv-hero__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.85); }
.tv-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.tv-hero__text { max-width: 620px; margin: 10px 0 0; font-size: 0.95rem; line-height: 1.55; color: rgba(255, 255, 255, 0.85); }
@media (max-width: 860px) {
	.tv-mosaic { grid-template-columns: minmax(0, 1fr); }
	.tv-mosaic__side { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tv-hero--big { min-height: 400px; }
}
@media (max-width: 560px) {
	.tv-mosaic__side { grid-template-columns: minmax(0, 1fr); }
}

/* Latest Articles grid */
.tv-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tv-section-title { margin: 0; font-size: 1.6rem; }
.tv-section-head__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--tv-link); text-decoration: none; }
.tv-section-head__link:hover { text-decoration: underline; }
.tv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tv-tile { display: flex; flex-direction: column; background: var(--tv-paper); border: 1px solid var(--tv-line); border-radius: var(--tv-radius); overflow: hidden; box-shadow: var(--tv-panel-shadow); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.tv-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 27, 61, 0.1); }
.tv-tile__thumb { aspect-ratio: 16 / 10; }
.tv-tile__body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 16px 18px 18px; }
.tv-tile__body > .tv-badge { align-self: flex-start; }
.tv-tile__title { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.tv-tile__title a { text-decoration: none; }
.tv-tile__title a:hover { color: var(--tv-link); }
.tv-tile__date { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 0.85rem; color: var(--tv-muted); }
@media (max-width: 1000px) {
	.tv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.tv-grid { grid-template-columns: minmax(0, 1fr); }
}
.tv-feed--full { max-width: 860px; }

/* Band below the content */
.tv-band { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; margin-top: 50px; align-items: start; }
.tv-band__side { display: flex; flex-direction: column; gap: 24px; }
.tv-band .tv-postlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
.tv-band .tv-mini:last-child { border-bottom: 1px solid var(--tv-line); padding-bottom: 10px; }
.tv-band__widgets { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
@media (max-width: 900px) {
	.tv-band { grid-template-columns: minmax(0, 1fr); }
	.tv-band__side { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 640px) {
	.tv-band .tv-postlist { grid-template-columns: minmax(0, 1fr); }
}

/* Single post, centred */
.tv-single,
.tv-postnav,
.tv-comments { max-width: 860px; margin-inline: auto; }
.tv-single { padding: clamp(20px, 4vw, 40px); background: var(--tv-paper); border: 1px solid var(--tv-line); border-radius: var(--tv-radius); }
.tv-404,
.tv-empty { max-width: 860px; margin-inline: auto; background: var(--tv-paper); border: 1px solid var(--tv-line); }

/* A lone last card stretches across the row as a wide card */
@media (min-width: 1001px) {
	.tv-grid > .tv-tile:last-child:nth-child(3n + 1) { grid-column: 1 / -1; flex-direction: row; }
	.tv-grid > .tv-tile:last-child:nth-child(3n + 1) .tv-tile__thumb { flex: 0 0 38%; aspect-ratio: 16 / 9; }
	.tv-grid > .tv-tile:last-child:nth-child(3n + 1) .tv-tile__body { justify-content: center; padding: 24px 30px; }
	.tv-grid > .tv-tile:last-child:nth-child(3n + 1) .tv-tile__title { font-size: 1.5rem; }
	.tv-grid > .tv-tile:last-child:nth-child(3n + 1) .tv-tile__date { margin-top: 4px; }
}
@media (min-width: 601px) and (max-width: 1000px) {
	.tv-grid > .tv-tile:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; }
	.tv-grid > .tv-tile:last-child:nth-child(odd) .tv-tile__thumb { flex: 0 0 45%; }
	.tv-grid > .tv-tile:last-child:nth-child(odd) .tv-tile__body { justify-content: center; }
	.tv-grid > .tv-tile:last-child:nth-child(odd) .tv-tile__date { margin-top: 4px; }
}
