/* =========================================
   360 News Theme — Main Stylesheet
   ========================================= */

:root {
	--news360-accent: #bb1919;
	--news360-dark: #1a1a1a;
	--news360-text: #222222;
	--news360-muted: #6b6b6b;
	--news360-border: #e2e2e2;
	--news360-bg: #ffffff;
	--font-serif: Georgia, 'Times New Roman', serif;
	--font-sans: 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--news360-text);
	background: #f6f6f6;
	line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Breaking Ticker ---------- */
.breaking-ticker {
	background: var(--news360-dark);
	color: #fff;
	overflow: hidden;
}
.ticker-wrap {
	display: flex;
	align-items: center;
	height: 40px;
}
.ticker-label {
	background: var(--news360-accent);
	color: #fff;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.5px;
	padding: 4px 12px;
	margin-right: 12px;
	flex-shrink: 0;
	white-space: nowrap;
}
.ticker-track { overflow: hidden; flex: 1; }
.ticker-inner {
	display: flex;
	gap: 40px;
	white-space: nowrap;
	animation: ticker-scroll 40s linear infinite;
}
.ticker-item { font-size: 13px; color: #eee; }
.ticker-item:hover { color: #fff; text-decoration: underline; }
@keyframes ticker-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--news360-border); }
.header-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	font-size: 12px;
	color: var(--news360-muted);
	border-bottom: 1px solid var(--news360-border);
}
.header-social { display: flex; gap: 10px; }
.social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px; height: 24px;
	border-radius: 50%;
	background: var(--news360-dark);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
}

.header-main {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 0;
}
.site-title {
	font-family: var(--font-serif);
	font-size: 30px;
	font-weight: 700;
	color: var(--news360-dark);
}
.custom-logo { max-height: 56px; width: auto; }

.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 26px; height: 20px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}
.menu-toggle span { display: block; height: 3px; background: var(--news360-dark); border-radius: 2px; }

.main-navigation { background: var(--news360-dark); }
.main-navigation .container { display: flex; align-items: center; justify-content: space-between; }
#primary-menu {
	display: flex;
	flex-wrap: wrap;
}
#primary-menu > li > a {
	display: block;
	padding: 12px 16px;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a {
	background: var(--news360-accent);
}
.header-search { display: flex; align-items: center; }
.header-search input {
	background: rgba(255,255,255,0.1);
	border: 1px solid rgba(255,255,255,0.25);
	color: #fff;
	padding: 6px 10px;
	font-size: 13px;
	border-radius: 3px 0 0 3px;
	width: 160px;
}
.header-search input::placeholder { color: #ccc; }
.header-search button {
	background: var(--news360-accent);
	border: none;
	color: #fff;
	padding: 7px 12px;
	border-radius: 0 3px 3px 0;
	cursor: pointer;
}

/* ---------- Hero Grid ---------- */
.hero-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 20px;
	padding: 24px 20px;
	max-width: 1240px;
	margin: 0 auto;
}
.hero-main { grid-row: span 2; }
.hero-side + .hero-side { border-top: 1px solid var(--news360-border); padding-top: 14px; }
.hero-side:nth-child(2) { grid-column: 2; grid-row: 1; }

.hero-thumb { position: relative; overflow: hidden; border-radius: 4px; margin-bottom: 10px; background: #ddd; }
.hero-main .hero-thumb img { aspect-ratio: 16/9; object-fit: cover; }
.hero-side .hero-thumb img { aspect-ratio: 16/10; object-fit: cover; }
.thumb-placeholder { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg,#ddd,#eee); }
.thumb-placeholder.small { aspect-ratio: 1/1; }

.cat-badge {
	position: absolute;
	top: 10px; left: 10px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 4px 8px;
	border-radius: 2px;
}
.breaking-badge {
	position: absolute;
	top: 10px; right: 10px;
	background: var(--news360-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: 2px;
}

.hero-main .hero-title { font-family: var(--font-serif); font-size: 30px; line-height: 1.25; margin: 0 0 8px; color: var(--news360-dark); }
.hero-side .hero-title { font-family: var(--font-serif); font-size: 17px; line-height: 1.3; margin: 0 0 6px; color: var(--news360-dark); }
.hero-excerpt { color: var(--news360-muted); font-size: 15px; margin-bottom: 8px; }
.hero-meta { font-size: 12px; color: var(--news360-muted); }
.hero-link:hover .hero-title { color: var(--news360-accent); }

/* ---------- Content Columns ---------- */
.content-columns {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 30px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px 40px;
}
.main-column { min-width: 0; }

/* ---------- Category Sections ---------- */
.category-section { margin-bottom: 36px; background: #fff; padding: 20px; border-radius: 6px; }
.section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 3px solid var(--news360-accent);
	padding-bottom: 8px;
	margin-bottom: 16px;
}
.section-header h2 { font-family: var(--font-serif); font-size: 21px; margin: 0; color: var(--news360-dark); }
.see-all { font-size: 13px; color: var(--news360-accent); font-weight: 600; }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card-featured { grid-column: span 2; grid-row: span 2; }
.card-thumb { overflow: hidden; border-radius: 4px; margin-bottom: 8px; background: #ddd; }
.card-thumb img { aspect-ratio: 16/10; object-fit: cover; transition: transform .3s; }
.news-card:hover .card-thumb img { transform: scale(1.04); }
.card-title { font-family: var(--font-serif); font-size: 15px; line-height: 1.3; margin: 0 0 4px; color: var(--news360-dark); }
.card-featured .card-title { font-size: 19px; }
.card-meta { font-size: 12px; color: var(--news360-muted); }

/* ---------- Latest List ---------- */
.latest-list { display: flex; flex-direction: column; gap: 16px; }
.latest-item { display: flex; gap: 14px; border-bottom: 1px solid var(--news360-border); padding-bottom: 16px; }
.latest-thumb { flex-shrink: 0; width: 120px; border-radius: 4px; overflow: hidden; background: #ddd; }
.latest-thumb img { width: 120px; height: 84px; object-fit: cover; }
.cat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--news360-accent); }
.latest-body h3 { font-family: var(--font-serif); font-size: 16px; margin: 4px 0; }
.latest-body p { font-size: 13px; color: var(--news360-muted); margin: 4px 0; }
.latest-meta { font-size: 12px; color: var(--news360-muted); }

/* ---------- Sidebar ---------- */
.widget-area { display: flex; flex-direction: column; gap: 20px; }
.widget { background: #fff; padding: 18px; border-radius: 6px; }
.widget-title { font-family: var(--font-serif); font-size: 17px; border-bottom: 2px solid var(--news360-accent); padding-bottom: 8px; margin: 0 0 12px; }
.popular-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--news360-border); }
.popular-rank { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--news360-accent); }
.popular-item a { font-size: 14px; line-height: 1.3; }
.popular-item a:hover { color: var(--news360-accent); }

/* ---------- Single Article ---------- */
.single-article { background: #fff; padding: 28px; border-radius: 6px; margin-bottom: 24px; }
.article-title { font-family: var(--font-serif); font-size: 34px; line-height: 1.25; margin: 14px 0; color: var(--news360-dark); }
.article-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; }
.author-name a { color: var(--news360-accent); font-weight: 600; }
.article-date { font-size: 13px; color: var(--news360-muted); }
.article-featured-image { margin: 0 0 20px; }
.article-featured-image figcaption { font-size: 12px; color: var(--news360-muted); margin-top: 6px; }
.article-content { font-size: 18px; line-height: 1.75; color: #1c1c1c; }
.article-content p { margin: 0 0 20px; }
.article-content h2, .article-content h3 { font-family: var(--font-serif); margin: 28px 0 12px; }
.article-content blockquote { border-left: 4px solid var(--news360-accent); padding-left: 16px; font-style: italic; color: var(--news360-muted); margin: 20px 0; }
.article-content img { border-radius: 4px; margin: 16px 0; }

.article-share { display: flex; gap: 10px; align-items: center; margin: 24px 0; padding: 14px 0; border-top: 1px solid var(--news360-border); border-bottom: 1px solid var(--news360-border); }
.article-share a { background: var(--news360-dark); color: #fff; padding: 6px 14px; border-radius: 3px; font-size: 13px; }
.article-share a:hover { background: var(--news360-accent); }

.article-tags { margin-top: 16px; }
.tag-link { display: inline-block; background: #f0f0f0; padding: 5px 10px; border-radius: 3px; font-size: 12px; margin: 0 6px 6px 0; }

.related-posts { background: #fff; padding: 20px; border-radius: 6px; margin-bottom: 24px; }
.related-posts h2 { font-family: var(--font-serif); font-size: 20px; margin: 0 0 16px; }

/* ---------- Archive / Search ---------- */
.archive-header { background: #fff; padding: 20px; border-radius: 6px; margin-bottom: 20px; }
.archive-title { font-family: var(--font-serif); font-size: 28px; margin: 0; }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 80px 20px; }
.error-404 h1 { font-family: var(--font-serif); font-size: 90px; color: var(--news360-accent); margin: 0; }
.btn-home { display: inline-block; background: var(--news360-accent); color: #fff; padding: 10px 22px; border-radius: 4px; margin: 16px 0; }
.error-search { margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--news360-dark); color: #ccc; margin-top: 30px; }
.footer-widgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 40px 20px; }
.footer-col .widget-title { color: #fff; border-color: var(--news360-accent); }
.footer-col a { color: #bbb; }
.footer-col a:hover { color: #fff; }
.footer-col ul li { padding: 4px 0; }
.footer-menu li { display: block; padding: 4px 0; }
.footer-social-link { display: inline-block; margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0; text-align: center; font-size: 13px; color: #888; }

/* ---------- Comments ---------- */
.comments-area { background: #fff; padding: 24px; border-radius: 6px; }
.comments-title { font-family: var(--font-serif); }

/* ---------- Search Form ---------- */
.search-form { display: flex; }
.search-form input { flex: 1; padding: 8px; border: 1px solid var(--news360-border); border-radius: 3px 0 0 3px; }
.search-form button { background: var(--news360-accent); color: #fff; border: none; padding: 0 16px; border-radius: 0 3px 3px 0; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.content-columns { grid-template-columns: 1fr; }
	.hero-grid { grid-template-columns: 1fr; }
	.hero-main { grid-row: auto; }
	.hero-side:nth-child(2) { grid-column: auto; grid-row: auto; }
	.card-grid { grid-template-columns: repeat(2, 1fr); }
	.card-featured { grid-column: span 2; }
	.footer-widgets { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
	.menu-toggle { display: flex; }
	.main-navigation { display: none; }
	.main-navigation.is-open { display: block; }
	.main-navigation .container { flex-direction: column; align-items: stretch; padding: 10px 20px; }
	#primary-menu { flex-direction: column; }
	.header-search { margin-top: 10px; }
	.header-search input { width: 100%; }
	.card-grid { grid-template-columns: 1fr; }
	.card-featured { grid-column: span 1; }
	.latest-item { flex-direction: column; }
	.latest-thumb { width: 100%; }
	.latest-thumb img { width: 100%; height: 180px; }
	.footer-widgets { grid-template-columns: 1fr; }
	.article-title { font-size: 26px; }
	.article-content { font-size: 16px; }
	.header-top { flex-direction: column; gap: 4px; align-items: flex-start; }
}
