/* FM News — base stylesheet, loaded on every page. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: "Mukta", "Noto Sans Devanagari", -apple-system, sans-serif;
	color: var(--fmnews-text);
	background: var(--fmnews-bg);
	line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fmnews-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.fmnews-container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: var(--fmnews-surface); color: var(--fmnews-text); padding: 8px 12px; z-index: 999; }
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.site-main { padding: 24px 0 48px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--fmnews-surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; max-width: 1100px; margin: 0 auto; }
.site-header .custom-logo { max-height: 40px; width: auto; }
.site-header__site-name { font-size: 1.3rem; font-weight: 800; color: var(--fmnews-text); }
.site-header__actions { display: flex; gap: 8px; margin-left: auto; }
.search-toggle, .menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background: none;
	border: 1px solid var(--fmnews-border);
	border-radius: 6px;
	cursor: pointer;
	color: var(--fmnews-text);
}
.search-toggle:hover, .menu-toggle:hover, .theme-toggle:hover { background: var(--fmnews-subtle); }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
	display: block; width: 18px; height: 2px; background: var(--fmnews-text); border-radius: 1px;
}
.menu-toggle__bars::before { content: ""; margin-bottom: 4px; }
.menu-toggle__bars::after { content: ""; margin-top: 4px; }

/* Search overlay */
.site-search { max-height: 0; overflow: hidden; background: var(--fmnews-bg); transition: max-height .2s ease; }
.site-search.is-open { max-height: 80px; }
.site-search .fmnews-container { padding-top: 12px; padding-bottom: 12px; }
.search-form { display: flex; gap: 8px; }
.search-field {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 1rem;
	font-family: inherit;
}
.search-submit {
	background: var(--fmnews-primary);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 0 20px;
	font-weight: 700;
	cursor: pointer;
}

/* Category nav */
.site-nav { display: none; background: #111; }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 0; }
.site-nav li { border-top: 1px solid rgba(255, 255, 255, .1); }
.site-nav a { display: block; padding: 10px 16px; color: #fff; font-size: 0.9rem; }
.site-nav .current-menu-item > a, .site-nav .current-menu-parent > a {
	color: var(--fmnews-primary);
	font-weight: 700;
}
@media (min-width: 782px) {
	.menu-toggle { display: none; }
	.site-nav { display: block; }
	.site-nav .fmnews-container { padding: 0 16px; }
	.site-nav ul { display: flex; gap: 4px; padding: 0; overflow-x: auto; }
	.site-nav li { border-top: 0; flex: none; }
	.site-nav a { padding: 12px 14px; font-weight: 600; white-space: nowrap; }
	.site-nav a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
}

/* Breaking news ticker — pure CSS marquee, no JS */
.breaking-ticker { display: flex; align-items: center; background: var(--fmnews-primary); color: #fff; overflow: hidden; }
.breaking-ticker__label {
	flex: none;
	font-weight: 700;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 8px 12px;
	background: rgba(0, 0, 0, 0.15);
}
.breaking-ticker__track { flex: 1; overflow: hidden; }
.breaking-ticker__list {
	display: flex;
	gap: 40px;
	list-style: none;
	margin: 0;
	padding: 8px 16px;
	white-space: nowrap;
	width: max-content;
	animation: fmnews-ticker 30s linear infinite;
}
.breaking-ticker__list a { color: #fff; font-size: 0.9rem; }
@keyframes fmnews-ticker {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.breaking-ticker__list { animation: none; overflow-x: auto; }
}

/* Load More */
.load-more-wrap { text-align: center; margin: 24px 0 40px; }
.load-more-btn {
	display: inline-block;
	background: var(--fmnews-primary);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 12px 28px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: transform .15s ease;
}
.load-more-btn:hover { transform: translateY(-1px); }
.load-more-btn:disabled { opacity: 0.6; cursor: default; transform: none; }

/* Footer */
.site-footer { background: #111; color: #cfcfcf; margin-top: 40px; }
.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 32px;
	padding: 40px 16px;
}
.site-footer__brand { color: #fff; font-size: 1.25rem; font-weight: 800; margin: 0 0 8px; }
.site-footer__tagline { font-size: 0.9rem; color: #9a9a9a; margin: 0 0 16px; }
.site-footer__follow-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .04em; color: #9a9a9a; margin: 0 0 8px; }
.site-footer__heading { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: 8px; }
.site-footer__col a { color: #cfcfcf; font-size: 0.9rem; }
.site-footer__col a:hover { color: #fff; }
.social-icons { display: flex; gap: 8px; }
.social-icons a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	font-weight: 700;
	font-size: 0.8rem;
}
.social-icons a:hover { background: var(--fmnews-primary); text-decoration: none; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px; font-size: 0.85rem; color: #9a9a9a; }
