/* TechVash Home: scoped under .tvh, flat BEM-style selectors. */
body.tvh-home { overflow-x: clip; }
body.tvh-home .entry-header,
body.tvh-home .page-header,
body.tvh-home #right-sidebar,
body.tvh-home #left-sidebar { display: none; }
body.tvh-home .content-area { width: 100%; }
body.tvh-home .site-content { padding: 0; }
body.tvh-home .inside-article { padding: 0; background: transparent; }
body.tvh-home .entry-content { margin: 0; }

.tvh {
	--tvh-blue: #2563eb;
	--tvh-blue-dark: #1d4ed8;
	--tvh-navy: #0f172a;
	--tvh-text: #475569;
	--tvh-line: #e5eaf3;
	--tvh-soft: #eef4ff;
	color: var(--tvh-text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	line-height: 1.55;
}
.tvh *, .tvh *::before, .tvh *::after { box-sizing: border-box; }
.tvh a { color: inherit; text-decoration: none; }
.tvh h1, .tvh h2, .tvh h3 { color: var(--tvh-navy); line-height: 1.2; margin: 0; }
.tvh ul, .tvh ol { list-style: none; margin: 0; padding: 0; }
.tvh p { margin: 0; }
.tvh img { max-width: 100%; height: auto; display: block; }
.tvh-container { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.tvh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Hero (full-bleed) */
.tvh-hero { width: 100vw; margin-left: calc(50% - 50vw); background: linear-gradient(180deg, var(--tvh-soft), #f7faff); padding-block: 48px; }
.tvh-hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.tvh-eyebrow { color: var(--tvh-blue); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: 14px; margin-bottom: 12px; }
.tvh-hero h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; margin-bottom: 16px; }
.tvh-hero__lead { font-size: 18px; max-width: 520px; margin-bottom: 28px; }
.tvh-hero__art img { margin-inline: auto; }

.tvh-search { display: flex; max-width: 560px; background: #fff; border: 1px solid #cfd9ea; border-radius: 10px; overflow: hidden; }
.tvh-search input { flex: 1; min-width: 0; border: 0; padding: 14px 16px; font-size: 16px; background: transparent; outline-offset: -2px; }
.tvh-search button { border: 0; background: var(--tvh-blue); color: #fff; font-weight: 700; font-size: 16px; padding: 0 28px; cursor: pointer; }
.tvh-search button:hover { background: var(--tvh-blue-dark); }

/* Category cards */
.tvh-cards { margin-top: 28px; }
.tvh-cards__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tvh-card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px; background: #fff; border: 1px solid var(--tvh-line); border-radius: 12px; transition: box-shadow .2s, transform .2s; }
.tvh-card:hover { box-shadow: 0 8px 24px rgba(15, 23, 42, .08); transform: translateY(-2px); }
.tvh-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; }
.tvh-card__icon--grid { background: #e3edff; color: #2563eb; }
.tvh-card__icon--star { background: #efe6ff; color: #7c3aed; }
.tvh-card__icon--scale { background: #dff6e8; color: #16a34a; }
.tvh-card__icon--nodes { background: #ffe9dc; color: #ea580c; }
.tvh-card__title { color: var(--tvh-navy); font-weight: 700; font-size: 18px; margin-top: 6px; }
.tvh-card__text { font-size: 15px; flex: 1; }
.tvh-card__arrow { color: var(--tvh-blue); font-size: 20px; }

/* Main area */
.tvh-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; margin-top: 44px; margin-bottom: 48px; align-items: start; }
.tvh-section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.tvh-section-head h2 { font-size: 28px; font-weight: 800; }
.tvh-section-head a { color: var(--tvh-blue); font-weight: 600; font-size: 14px; }
.tvh-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.tvh-post { display: flex; gap: 16px; padding: 16px; background: #fff; border: 1px solid var(--tvh-line); border-radius: 12px; }
.tvh-post__media { flex: 0 0 38%; max-width: 38%; }
.tvh-post__media img, .tvh-post__ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.tvh-post__ph { background: linear-gradient(135deg, #dbe7ff, #efe6ff); }
.tvh-post__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tvh-post h3 { font-size: 17px; font-weight: 700; }
.tvh-post h3 a:hover { color: var(--tvh-blue); }
.tvh-post__body > p:not(.tvh-meta) { font-size: 14px; }

.tvh-pill { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 6px; }
.tvh-pill--blue { background: #e3edff; color: #1d4ed8; }
.tvh-pill--violet { background: #efe6ff; color: #6d28d9; }
.tvh-pill--green { background: #dff6e8; color: #15803d; }
.tvh-pill--orange { background: #ffe9dc; color: #c2410c; }
.tvh-meta { font-size: 13px; color: #64748b; margin-top: auto; }
.tvh-dot { margin-inline: 4px; }

/* Sidebar */
.tvh-side { display: grid; gap: 20px; }
.tvh-box { background: #fff; border: 1px solid var(--tvh-line); border-radius: 12px; padding: 20px; }
.tvh-box h2 { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.tvh-popular { counter-reset: tvh; display: grid; gap: 16px; }
.tvh-popular li { counter-increment: tvh; position: relative; padding-left: 40px; display: grid; gap: 4px; }
.tvh-popular li::before { content: counter(tvh); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--tvh-blue); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.tvh-popular a { color: var(--tvh-navy); font-weight: 600; font-size: 15px; }
.tvh-popular a:hover { color: var(--tvh-blue); }
.tvh-popular .tvh-meta { margin-top: 0; }
.tvh-news { background: var(--tvh-soft); }
.tvh-news p { font-size: 14px; margin-bottom: 12px; }

/* Responsive */
@media (max-width: 1024px) {
	.tvh-cards__list { grid-template-columns: repeat(2, 1fr); }
	.tvh-main { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	.tvh-hero__grid { grid-template-columns: 1fr; }
	.tvh-hero__art { display: none; }
	.tvh-grid { grid-template-columns: 1fr; }
	.tvh-cards__list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.tvh-card { transition: none; }
}
