/*
Theme Name: Voice of Sindh News
Theme URI: https://voiceofsindh.live
Author: Veritas Technologies
Description: Lightweight news theme for Voice of Sindh. Works in English (LTR) and in Urdu / Sindhi (RTL) automatically based on the site language.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: vos
Tags: news, blog, rtl-language-support, custom-logo, custom-menu
*/

:root {
	--vos-red: #d1191f;
	--vos-blue: #165caf;
	--vos-navy: #0d2f5f;
	--vos-dark: #111418;
	--vos-text: #1d2127;
	--vos-muted: #6b7280;
	--vos-line: #e5e7eb;
	--vos-bg: #f4f5f7;
	--vos-card: #ffffff;
	--vos-radius: 6px;
	--vos-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--vos-max: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--vos-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--vos-text);
	background: var(--vos-bg);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--vos-red); }
img { max-width: 100%; height: auto; display: block; }

.vos-wrap { max-width: var(--vos-max); margin-inline: auto; padding-inline: 16px; }

/* ---------- Top bar ---------- */
.vos-topbar { background: var(--vos-navy); color: #cbd5e1; font-size: 13px; }
.vos-topbar .vos-wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 36px; flex-wrap: wrap; }
.vos-langs { display: flex; gap: 6px; }
.vos-langs a { padding: 2px 10px; border: 1px solid #374151; border-radius: 999px; color: #e5e7eb; }
.vos-langs a.is-current, .vos-langs a:hover { background: var(--vos-red); border-color: var(--vos-red); color: #fff; }

/* ---------- Header ---------- */
.vos-header { background: var(--vos-card); border-bottom: 4px solid transparent; border-image: linear-gradient(90deg, var(--vos-red), var(--vos-blue)) 1; }
.vos-header .vos-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.vos-brand { display: flex; align-items: center; gap: 12px; }
.vos-brand img { max-height: 72px; width: auto; }
.vos-site-title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.1; }
.vos-site-title span { color: var(--vos-red); }
.vos-tagline { margin: 2px 0 0; color: var(--vos-muted); font-size: 13px; }
.vos-search input[type=search] { padding: 8px 12px; border: 1px solid var(--vos-line); border-radius: var(--vos-radius); min-width: 220px; font: inherit; }

/* ---------- Nav ---------- */
.vos-nav { background: var(--vos-blue); }
.vos-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.vos-nav li { position: relative; }
.vos-nav a { display: block; padding: 11px 14px; color: #fff; font-weight: 600; font-size: 15px; }
.vos-nav a:hover, .vos-nav .current-menu-item > a, .vos-nav .current-cat > a { background: rgba(0,0,0,.18); color: #fff; }
.vos-nav ul ul { display: none; position: absolute; inset-inline-start: 0; top: 100%; background: var(--vos-navy); min-width: 200px; z-index: 50; flex-direction: column; }
.vos-nav li:hover > ul { display: flex; }
.vos-menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 22px; padding: 8px 0; cursor: pointer; }

/* ---------- Breaking ticker ---------- */
.vos-ticker { background: var(--vos-card); border-bottom: 1px solid var(--vos-line); }
.vos-ticker .vos-wrap { display: flex; align-items: center; gap: 12px; min-height: 42px; overflow: hidden; }
.vos-ticker-label { background: var(--vos-red); color: #fff; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 4px; white-space: nowrap; flex-shrink: 0; }
.vos-ticker-track { overflow: hidden; flex: 1; position: relative; }
.vos-ticker-items { display: inline-flex; gap: 40px; white-space: nowrap; animation: vos-scroll 45s linear infinite; }
.vos-ticker-items:hover { animation-play-state: paused; }
.vos-ticker-items a { font-weight: 600; font-size: 14px; }
@keyframes vos-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .vos-ticker-items { animation: none; } }

/* ---------- Layout ---------- */
.vos-main { padding-block: 24px 40px; }
.vos-grid-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
.vos-section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 20px; font-weight: 800; }
.vos-section-title::before { content: ""; width: 6px; height: 22px; background: var(--vos-red); border-radius: 2px; }
.vos-section + .vos-section { margin-top: 32px; }

/* ---------- Lead story ---------- */
.vos-lead { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; background: var(--vos-card); border-radius: var(--vos-radius); overflow: hidden; border: 1px solid var(--vos-line); }
.vos-lead .vos-thumb { aspect-ratio: 16/10; height: 100%; }
.vos-lead-body { padding: 20px 20px 20px 0; display: flex; flex-direction: column; justify-content: center; }
.vos-lead h2 { margin: 6px 0 10px; font-size: 26px; line-height: 1.25; }

/* ---------- Cards ---------- */
.vos-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.vos-card { background: var(--vos-card); border: 1px solid var(--vos-line); border-radius: var(--vos-radius); overflow: hidden; display: flex; flex-direction: column; }
.vos-card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vos-card h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.vos-excerpt { color: #4b5563; font-size: 14.5px; margin: 0; }
.vos-meta { color: var(--vos-muted); font-size: 12.5px; }
.vos-cat { display: inline-block; color: var(--vos-red); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }

/* Thumbnail / placeholder */
.vos-thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--vos-blue), var(--vos-red)); position: relative; overflow: hidden; }
.vos-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vos-thumb .vos-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.9); font-weight: 800; font-size: 20px; padding: 12px; text-align: center; }

/* ---------- List ---------- */
.vos-list { background: var(--vos-card); border: 1px solid var(--vos-line); border-radius: var(--vos-radius); }
.vos-list-item { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--vos-line); }
.vos-list-item:last-child { border-bottom: 0; }
.vos-list-num { font-size: 22px; font-weight: 800; color: var(--vos-red); min-width: 28px; line-height: 1.2; }
.vos-list-item h4 { margin: 0 0 2px; font-size: 15px; line-height: 1.4; }

/* ---------- Sidebar ---------- */
.vos-sidebar .widget { background: var(--vos-card); border: 1px solid var(--vos-line); border-radius: var(--vos-radius); padding: 14px; margin-bottom: 20px; }
.vos-sidebar .widget-title { margin: 0 0 10px; font-size: 17px; font-weight: 800; border-bottom: 2px solid var(--vos-red); padding-bottom: 6px; }
.vos-sidebar ul { list-style: none; margin: 0; padding: 0; }
.vos-sidebar li { padding: 7px 0; border-bottom: 1px dashed var(--vos-line); }
.vos-sidebar li:last-child { border-bottom: 0; }

/* ---------- Single ---------- */
.vos-article { background: var(--vos-card); border: 1px solid var(--vos-line); border-radius: var(--vos-radius); padding: 24px; }
.vos-article h1 { font-size: 32px; line-height: 1.25; margin: 6px 0 10px; }
.vos-article .vos-thumb { margin: 16px 0; border-radius: var(--vos-radius); }
.vos-content { font-size: 17.5px; line-height: 1.8; }
.vos-content p { margin: 0 0 1.1em; }
.vos-content a { color: var(--vos-red); text-decoration: underline; }
.vos-source { margin-top: 20px; padding: 12px 14px; background: #fef2f2; border-inline-start: 4px solid var(--vos-red); border-radius: 4px; font-size: 14.5px; }
.vos-share { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.vos-share a { padding: 6px 12px; border-radius: 4px; color: #fff; font-size: 13px; font-weight: 600; }
.vos-share .fb { background: #1877f2; } .vos-share .x { background: #000; } .vos-share .wa { background: #25d366; }
.vos-share a:hover { color: #fff; opacity: .9; }

/* ---------- Pagination ---------- */
.vos-pagination { margin-top: 24px; display: flex; gap: 6px; flex-wrap: wrap; }
.vos-pagination .page-numbers { padding: 6px 12px; background: var(--vos-card); border: 1px solid var(--vos-line); border-radius: 4px; }
.vos-pagination .current { background: var(--vos-red); color: #fff; border-color: var(--vos-red); }

/* ---------- Footer ---------- */
.vos-footer { background: var(--vos-navy); color: #c7d2e0; font-size: 14.5px; margin-top: 20px; border-top: 4px solid transparent; border-image: linear-gradient(90deg, var(--vos-red), var(--vos-blue)) 1; }
.vos-footer a { color: #e5e7eb; }
.vos-footer a:hover { color: #fff; text-decoration: underline; }
.vos-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr 1fr; gap: 32px; padding-block: 40px 32px; }
.vos-footer-logo { max-height: 72px; width: auto; margin-bottom: 12px; }
.vos-footer-about p { margin: 0; line-height: 1.7; color: #aebbd0; }
.vos-footer-title { margin: 0 0 14px; font-size: 16px; font-weight: 800; color: #fff; padding-bottom: 8px; border-bottom: 2px solid var(--vos-red); display: inline-block; }
.vos-footer-title-sm { margin-top: 22px; font-size: 14px; }
.vos-footer-links { list-style: none; margin: 0; padding: 0; }
.vos-footer-links li { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.08); line-height: 1.5; }
.vos-footer-links li:last-child { border-bottom: 0; }
.vos-social { display: flex; flex-wrap: wrap; gap: 8px; }
.vos-social a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 6px; background: rgba(255,255,255,.08); font-size: 13px; font-weight: 700; }
.vos-social a:hover { background: var(--vos-red); text-decoration: none; }
.vos-social-empty { margin: 0; color: #8a99b3; font-size: 13px; }
.vos-footer .vos-langs a { border-color: rgba(255,255,255,.25); }
.vos-footer-bottom { background: rgba(0,0,0,.25); font-size: 13px; }
.vos-footer-bottom .vos-wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 52px; padding-block: 10px; }
.vos-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 980px) { .vos-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .vos-footer-grid { grid-template-columns: 1fr; gap: 26px; } .vos-footer-bottom .vos-wrap { justify-content: center; text-align: center; } }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.vos-grid-layout { grid-template-columns: 1fr; }
	.vos-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vos-lead { grid-template-columns: 1fr; }
	.vos-lead-body { padding: 0 16px 18px; }
}
@media (max-width: 640px) {
	.vos-cards { grid-template-columns: 1fr; }
	.vos-site-title { font-size: 22px; }
	.vos-search { width: 100%; }
	.vos-search input[type=search] { width: 100%; min-width: 0; }
	.vos-menu-toggle { display: block; }
	.vos-nav ul.vos-menu { display: none; flex-direction: column; }
	.vos-nav.is-open ul.vos-menu { display: flex; }
	.vos-nav ul ul { position: static; display: flex; background: rgba(0,0,0,.15); }
	.vos-article { padding: 16px; }
	.vos-article h1 { font-size: 24px; }
}
