/* NewsPulse USA — main stylesheet */
:root {
	--np-accent: #cc0000;
	--np-accent-dark: #990000;
	--np-dark: #0a0a0a;
	--np-text: #111;
	--np-muted: #5f6368;
	--np-border: #e3e3e3;
	--np-bg: #fff;
	--np-soft: #f4f4f4;
	--np-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--np-serif: Georgia, "Times New Roman", Times, serif;
	--np-radius: 4px;
	--np-max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--np-font); font-size: 16px; line-height: 1.55; color: var(--np-text); background: var(--np-bg); }
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--np-accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--np-accent); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
ul, ol { padding-left: 1.2em; }
button { font: inherit; cursor: pointer; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; background: #fff; padding: 10px 14px; color: var(--np-dark); }

.container { max-width: var(--np-max); margin: 0 auto; padding: 0 16px; }

/* ---------- Top bar ---------- */
.topbar { background: #000; color: #bbb; font-size: 12px; }
.topbar-inner { display: flex; align-items: center; gap: 18px; min-height: 32px; flex-wrap: wrap; }
.topbar .today { font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; }
.topbar a:hover { color: #fff; }
.topbar .social-links { margin-left: auto; }
.social-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.social-links a { font-size: 12px; font-weight: 600; }

/* ---------- Header ---------- */
.site-header { background: var(--np-dark); color: #fff; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.site-branding { flex: 0 0 auto; }
.site-title { margin: 0; font-size: 30px; font-weight: 900; letter-spacing: -.02em; text-transform: uppercase; line-height: 1; }
.site-title a { color: #fff; background: var(--np-accent); padding: 8px 12px; display: inline-block; }
.site-title a:hover { color: #fff; background: var(--np-accent-dark); }
.custom-logo { max-height: 56px; width: auto; }
.header-ad { margin-left: auto; max-width: 728px; }
.search-toggle, .menu-toggle { background: none; border: 0; color: #fff; padding: 8px; }
.search-toggle { margin-left: auto; }
.header-ad + .search-toggle { margin-left: 0; }
.menu-toggle { display: none; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { display: block; width: 22px; height: 2px; background: #fff; position: relative; content: ""; }
.menu-toggle .bars::before { position: absolute; top: -7px; }
.menu-toggle .bars::after { position: absolute; top: 7px; }

.primary-nav { background: var(--np-dark); border-top: 1px solid #222; border-bottom: 4px solid var(--np-accent); }
.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a { display: block; padding: 12px 14px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #fff; }
.primary-nav .menu a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-cat > a { background: var(--np-accent); color: #fff; }
.primary-nav .sub-menu { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; top: 100%; min-width: 220px; background: #111; display: none; z-index: 10; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { text-transform: none; font-weight: 600; border-bottom: 1px solid #222; }

.header-search { background: #111; padding: 14px 0; }
.search-form { display: flex; gap: 8px; max-width: 640px; }
.search-field { flex: 1; padding: 10px 12px; border: 1px solid var(--np-border); border-radius: var(--np-radius); font-size: 16px; }
.search-submit, .btn { background: var(--np-accent); color: #fff; border: 0; padding: 10px 18px; font-weight: 700; border-radius: var(--np-radius); text-transform: uppercase; font-size: 13px; letter-spacing: .03em; display: inline-block; }
.search-submit:hover, .btn:hover { background: var(--np-accent-dark); color: #fff; }

/* ---------- Ticker ---------- */
.ticker { background: var(--np-soft); border-bottom: 1px solid var(--np-border); }
.ticker-inner { display: flex; align-items: center; min-height: 40px; overflow: hidden; }
.ticker-label { background: var(--np-accent); color: #fff; font-weight: 800; text-transform: uppercase; font-size: 12px; padding: 6px 10px; letter-spacing: .05em; white-space: nowrap; flex: 0 0 auto; position: relative; z-index: 1; }
.ticker-label::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #fff; margin-right: 6px; animation: np-pulse 1.2s infinite; vertical-align: 1px; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 2%, #000 96%, transparent); }
.ticker-list { list-style: none; margin: 0; padding: 0 0 0 16px; display: flex; gap: 40px; white-space: nowrap; width: max-content; animation: np-scroll 60s linear infinite; }
.ticker-list li { font-size: 14px; font-weight: 600; }
.ticker-list li::before { content: "■"; color: var(--np-accent); font-size: 8px; margin-right: 10px; vertical-align: 2px; }
.ticker:hover .ticker-list, .ticker:focus-within .ticker-list { animation-play-state: paused; }
@keyframes np-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes np-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .ticker-list { animation: none; } .ticker-label::before { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Layout ---------- */
.site-main { padding-bottom: 40px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; margin-top: 24px; }
.content-area { min-width: 0; }

.section-title { font-size: 20px; text-transform: uppercase; letter-spacing: .02em; border-bottom: 3px solid var(--np-dark); margin: 0 0 18px; padding-bottom: 0; }
.section-title span { display: inline-block; background: var(--np-dark); color: #fff; padding: 6px 12px; }
.section-title a:hover span { background: var(--np-accent); color: #fff; }

.cat-label { display: inline-block; color: var(--np-accent); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.cat-label:hover { text-decoration: underline; }
.card-meta { font-size: 13px; color: var(--np-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.card-author { font-weight: 600; color: var(--np-text); }
.thumb-placeholder { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #222, #444); }
.card-thumb, .hero-thumb { display: block; overflow: hidden; background: var(--np-soft); }
.card-thumb img, .hero-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s ease; }
.card:hover img, .card-list:hover img, .hero-lead:hover img, .card-mini:hover img { transform: scale(1.03); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--np-border); }
.hero-title { font-size: clamp(26px, 3.2vw, 40px); font-family: var(--np-serif); font-weight: 700; margin: 4px 0 10px; }
.hero-excerpt { font-size: 17px; color: #333; margin: 0 0 10px; }
.hero-body { padding-top: 14px; }
.hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: start; }
.hero-side .card-title { font-size: 15px; }
.archive-lead { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--np-border); }

/* ---------- Cards ---------- */
.card-title { font-size: 18px; margin: 0 0 6px; font-weight: 800; }
.card-body { padding-top: 10px; }
.grid { display: grid; gap: 22px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.list { display: flex; flex-direction: column; }
.card-list { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--np-border); }
.card-list:first-child { padding-top: 0; }
.card-list .card-body { padding-top: 0; }
.card-list .card-title { font-size: 21px; font-family: var(--np-serif); font-weight: 700; }
.card-excerpt { margin: 0 0 8px; color: #333; font-size: 15px; }

.card-mini { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--np-border); align-items: start; }
.card-mini:last-child { border-bottom: 0; }
.card-mini .card-title { font-size: 15px; margin: 0; }

.more-news { margin-top: 20px; }
.more-link { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--np-accent); }

/* ---------- Category blocks ---------- */
.cat-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.cat-block-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }

/* ---------- Sidebar ---------- */
.sidebar .widget { margin-bottom: 32px; }
.widget-title { font-size: 16px; text-transform: uppercase; border-bottom: 3px solid var(--np-accent); margin-bottom: 14px; }
.widget-title span { display: inline-block; background: var(--np-accent); color: #fff; padding: 5px 10px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--np-border); }
.numbered-list { counter-reset: np; list-style: none; padding: 0; margin: 0; }
.numbered-list li { counter-increment: np; display: grid; grid-template-columns: 38px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--np-border); font-weight: 700; font-size: 15px; line-height: 1.35; }
.numbered-list li::before { content: counter(np); font-size: 28px; font-weight: 900; color: var(--np-accent); line-height: 1; font-family: var(--np-serif); }
.tag-cloud { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud li { padding: 0; border: 0; }
.tag-cloud a { display: inline-block; padding: 5px 10px; background: var(--np-soft); border-radius: 999px; font-size: 13px; font-weight: 600; }
.tag-cloud a:hover { background: var(--np-accent); color: #fff; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 13px; color: var(--np-muted); margin-top: 18px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: #aaa; }
.breadcrumbs a { color: var(--np-accent); font-weight: 600; }
.breadcrumbs li[aria-current] { color: var(--np-muted); max-width: 50ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Archive ---------- */
.archive-header { margin-bottom: 22px; padding-bottom: 14px; border-bottom: 3px solid var(--np-dark); }
.archive-title { font-size: clamp(28px, 3.5vw, 42px); text-transform: none; margin: 0; }
.archive-title .page-num { color: var(--np-muted); font-weight: 600; font-size: .6em; }
.archive-desc { color: #333; margin: 8px 0 0; }
.archive-header .search-form { margin-top: 12px; }

/* ---------- Single article ---------- */
.article-title { font-size: clamp(30px, 4vw, 46px); font-family: var(--np-serif); font-weight: 700; line-height: 1.12; margin: 6px 0 12px; }
.article-dek { font-size: 20px; color: #333; margin: 0 0 16px; line-height: 1.45; }
.byline { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--np-border); border-bottom: 1px solid var(--np-border); margin-bottom: 14px; }
.byline img { border-radius: 50%; width: 40px; height: 40px; }
.byline .author { font-weight: 700; display: block; }
.byline .author a { color: var(--np-accent); }
.byline .meta-line { font-size: 13px; color: var(--np-muted); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.share-btn { font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: var(--np-radius); color: #fff; background: #333; border: 0; text-transform: uppercase; letter-spacing: .03em; }
.share-btn:hover { color: #fff; opacity: .88; }
.share-facebook { background: #1877f2; }
.share-x { background: #000; }
.share-linkedin { background: #0a66c2; }
.share-whatsapp { background: #128c3e; }
.share-email, .share-copy { background: #555; }

.article-featured { margin: 0 0 24px; }
.article-featured img { width: 100%; }
.article-featured figcaption, .wp-caption-text, .wp-element-caption { font-size: 13px; color: var(--np-muted); padding: 8px 0; border-bottom: 1px solid var(--np-border); }

.entry-content { font-family: var(--np-serif); font-size: 19px; line-height: 1.7; color: #1a1a1a; }
.entry-content > * { margin: 0 0 1.25em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--np-font); margin-top: 1.6em; }
.entry-content h2 { font-size: 26px; }
.entry-content h3 { font-size: 21px; }
.entry-content a { color: var(--np-accent); text-decoration: underline; text-underline-offset: 2px; }
.entry-content blockquote { border-left: 4px solid var(--np-accent); margin-left: 0; padding: 4px 0 4px 20px; font-size: 22px; font-style: italic; }
.entry-content img { margin: 0 auto; }
.entry-content table { width: 100%; border-collapse: collapse; font-family: var(--np-font); font-size: 15px; }
.entry-content th, .entry-content td { border: 1px solid var(--np-border); padding: 8px 10px; text-align: left; }
.entry-content th { background: var(--np-soft); }
.alignwide { margin-left: -40px; margin-right: -40px; max-width: none; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-left: auto; margin-right: auto; }

.article-footer { margin-top: 30px; }
.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.article-tags .label { font-weight: 800; text-transform: uppercase; font-size: 13px; }
.author-box { display: flex; gap: 16px; align-items: flex-start; background: var(--np-soft); padding: 18px; margin-top: 20px; border-left: 4px solid var(--np-accent); }
.author-box img { border-radius: 50%; flex: 0 0 auto; }
.author-name { font-weight: 800; font-size: 18px; margin: 0 0 4px; }
.author-bio { margin: 0; color: #333; font-size: 15px; }
.archive-header .author-box { margin: 0; }

.post-navigation { margin: 30px 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-navigation .nav-next { text-align: right; }
.post-navigation a { display: block; padding: 14px; border: 1px solid var(--np-border); }
.post-navigation .nav-label { display: block; font-size: 12px; text-transform: uppercase; color: var(--np-accent); font-weight: 800; }
.post-navigation .nav-title { font-weight: 700; }

.related { margin-top: 40px; }

/* ---------- Pagination ---------- */
.pagination { margin: 30px 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { display: inline-block; min-width: 40px; text-align: center; padding: 8px 12px; border: 1px solid var(--np-border); font-weight: 700; }
.page-numbers.current, .page-numbers:hover { background: var(--np-accent); border-color: var(--np-accent); color: #fff; }

/* ---------- Comments ---------- */
.comments-area { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 30px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--np-border); }
.comment-author img { float: left; margin-right: 12px; border-radius: 50%; }
.comment-meta { font-size: 13px; color: var(--np-muted); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 10px; border: 1px solid var(--np-border); border-radius: var(--np-radius); font: inherit; }
.comment-form .submit { background: var(--np-accent); color: #fff; border: 0; padding: 10px 20px; font-weight: 700; border-radius: var(--np-radius); }

/* ---------- 404 / no results ---------- */
.error-404 { text-align: center; padding: 60px 0 30px; }
.error-code { font-size: 120px; font-weight: 900; color: var(--np-accent); margin: 0; line-height: 1; }
.error-404 .search-form { margin: 20px auto 0; }
.no-results { padding: 20px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--np-dark); color: #ccc; padding: 40px 0 20px; border-top: 4px solid var(--np-accent); font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding-bottom: 30px; border-bottom: 1px solid #222; }
.footer-about { margin: 14px 0; max-width: 40ch; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 30px; }
.site-footer .widget-title { border-color: #333; }
.site-footer .widget li { border-color: #222; }
.footer-sections ul { list-style: none; padding: 0; margin: 0; columns: 3; column-gap: 30px; }
.footer-sections li { padding: 5px 0; font-weight: 700; text-transform: uppercase; font-size: 13px; break-inside: avoid; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 18px; font-size: 13px; }
.footer-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.copyright { margin: 0; color: #888; }

.back-to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--np-accent); color: #fff; border: 0; font-size: 20px; box-shadow: 0 4px 12px rgba(0,0,0,.25); z-index: 90; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
}
@media (max-width: 900px) {
	.layout, .hero, .cat-blocks, .footer-top { grid-template-columns: 1fr; }
	.header-ad { display: none; }
	.menu-toggle { display: block; }
	.header-inner { min-height: 60px; }
	.site-title { font-size: 22px; }
	.primary-nav { display: none; }
	.primary-nav.is-open { display: block; }
	.primary-nav .menu { flex-direction: column; }
	.primary-nav .menu a { border-bottom: 1px solid #222; }
	.primary-nav .sub-menu { position: static; display: block; background: #151515; }
	.primary-nav .sub-menu a { padding-left: 28px; }
	.alignwide { margin-left: 0; margin-right: 0; }
}
@media (max-width: 600px) {
	.topbar .topbar-nav { display: none; }
	.hero-side, .grid-4, .cat-block-inner { grid-template-columns: 1fr; }
	.card-list { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
	.card-list .card-title { font-size: 17px; }
	.card-list .card-excerpt { display: none; }
	.entry-content { font-size: 18px; }
	.article-dek { font-size: 18px; }
	.footer-sections ul { columns: 2; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { text-align: left; }
}

@media print {
	.topbar, .site-header, .ticker, .sidebar, .share, .site-footer, .related, .comments-area, .post-navigation, .back-to-top { display: none !important; }
	.layout { display: block; }
}
