/* =============================================================
   SIFA FM NEWS — Kenya Times-inspired design system
   ============================================================= */

/* Slider: fade effect */
.sifa-hero-slider.is-fade { position: relative; }
.sifa-hero-slider.is-fade .sifa-slide {
	position: absolute;
	top: 0; left: 0; right: 0;
	display: block !important;
	opacity: 0;
	transition: opacity 0.75s ease;
	pointer-events: none;
	z-index: 1;
}
.sifa-hero-slider.is-fade .sifa-slide.is-active {
	opacity: 1;
	position: relative;
	pointer-events: auto;
	z-index: 2;
}
/* Slide effect (default) */
.sifa-slide { display: none; }
.sifa-slide.is-active { display: block; }

/* ---- Site wrapper ---- */
.wp-site-blocks { min-height:100vh; background:#fff; }
.wp-site-blocks > main { padding-bottom: 2.5rem; }
.wp-site-blocks > main > * { margin-block: 0; }
.wp-site-blocks > main > * + * { margin-top: 1rem; }

/* =============================================================
   AUDIO TOP BAR
   ============================================================= */
.sifa-audio-topbar {
	background: #1a1a1a;
	color: #ccc;
}
.sifa-audio-topbar .alignwide { gap: 0.75rem; }
.sifa-audio-topbar p { color: #ccc; margin: 0; }
.sifa-audio-topbar .wp-block-search__input {
	background: rgba(255,255,255,0.1);
	border-color: rgba(255,255,255,0.2);
	color: #fff;
	font-size: 0.78rem;
	padding: 3px 8px;
}
.sifa-audio-topbar .wp-block-search__button {
	background: transparent;
	border-color: rgba(255,255,255,0.3);
	color: #fff;
}

/* Stream links in audio bar */
.sifa-audio-topbar .sifa-stream-links { gap: 0.35rem; }
.sifa-audio-topbar .sifa-stream-link {
	padding: 2px 8px;
	border: 1px solid rgba(255,255,255,0.25);
	background: transparent;
	color: #ccc;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	border-radius: 0;
	transition: background 0.15s, color 0.15s;
}
.sifa-audio-topbar .sifa-stream-link:hover { background: #cc0000; color: #fff; border-color: #cc0000; }

/* =============================================================
   MASTHEAD — centered, elegant
   ============================================================= */
.sifa-masthead {
	background: #fff;
	text-align: center;
}
.sifa-masthead .wp-block-site-title {
	font-family: Merriweather, "Times New Roman", Georgia, serif;
	text-align: center;
	letter-spacing: -0.02em;
}
.sifa-masthead .wp-block-site-title a {
	color: #111 !important;
	text-decoration: none !important;
}
.sifa-masthead .wp-block-site-tagline {
	text-align: center;
	font-style: italic;
	color: #888;
	font-size: 0.78rem;
	margin-top: 2px;
}

/* =============================================================
   NAVBAR — sticky, full-width category links
   ============================================================= */
.sifa-navbar {
	position: sticky;
	top: 0;
	z-index: 90;
	background: #fff;
}
.sifa-navbar .alignwide { justify-content: center; }

.sifa-primary-links {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: 0;
	flex-wrap: wrap;
	justify-content: center;
}
.sifa-primary-links .menu-item a,
.sifa-primary-links a {
	display: block;
	padding: 10px 12px;
	text-decoration: none;
	text-transform: capitalize;
	font-size: 0.82rem;
	font-weight: 600;
	color: #222;
	letter-spacing: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	transition: color 0.15s, background 0.15s;
	white-space: nowrap;
}
.sifa-primary-links .menu-item a:hover,
.sifa-primary-links a:hover {
	color: #cc0000;
	background: transparent;
}

/* =============================================================
   BREAKING TICKER BAR
   ============================================================= */
.sifa-ticker-bar {
	background: #cc0000;
}
.sifa-ticker-bar .alignwide { gap: 0.6rem; overflow: hidden; }

.sifa-ticker-bar .wp-block-shortcode:first-child {
	display: inline-flex;
	align-items: center;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	background: #900;
	padding: 2px 8px;
	white-space: nowrap;
	flex-shrink: 0;
}

.sifa-breaking-ticker {
	flex: 1;
	overflow: hidden;
	background: transparent;
	border: none;
	padding: 0;
	border-radius: 0;
}
.sifa-ticker-track {
	display: inline-flex;
	gap: 0.5rem;
	align-items: center;
	white-space: nowrap;
	animation: sifaTicker 30s linear infinite;
}
.sifa-ticker-item { color: #fff; text-decoration: none; font-size: 0.78rem; font-weight: 500; }
.sifa-ticker-item:hover { text-decoration: underline; }
.sifa-ticker-sep { color: rgba(255,255,255,0.5); }
@keyframes sifaTicker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =============================================================
   LAYOUT CONSTRAINTS
   ============================================================= */
.wp-block-group.alignwide,
.wp-block-columns.alignwide,
.wp-block-query.alignwide { max-width: 1240px; }
.wp-block-columns.alignwide { gap: 1.5rem; }
.wp-block-column .wp-block-columns.alignwide,
.wp-block-column .wp-block-group.alignwide,
.wp-block-column .wp-block-query.alignwide {
	max-width: 100%; margin-left: 0 !important; margin-right: 0 !important;
}

/* =============================================================
   SECTION TITLES — bold bottom-border, Kenya Times style
   ============================================================= */
.is-style-sifa-section-title {
	border-left: none !important;
	padding-left: 0 !important;
	border-bottom: 3px solid #111;
	border-top: none;
	padding-bottom: 8px;
	margin-bottom: 1rem !important;
	display: block;
	font-size: 1.05rem !important;
	font-weight: 800;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: #111;
	font-family: Roboto, "Segoe UI", Arial, sans-serif;
}

/* Sidebar section titles use red border */
.sifa-sidebar-widget .is-style-sifa-section-title {
	border-bottom-color: #cc0000;
	font-size: 0.9rem !important;
}

/* =============================================================
   CATEGORY BADGES — red pills on every article
   ============================================================= */
.wp-block-post-terms a,
.wp-block-post-terms {
	font-size: 0.65rem !important;
	font-weight: 700 !important;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
}
.wp-block-post-terms a {
	display: inline-block;
	background: #cc0000;
	color: #fff !important;
	padding: 2px 6px;
	border-radius: 0;
	line-height: 1.5;
	margin-bottom: 4px;
}
.wp-block-post-terms a:hover { background: #990000; }

/* =============================================================
   ARTICLE LIST — horizontal (Kenya Times style)
   ============================================================= */
.sifa-news-list .wp-block-post-template {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sifa-news-list .wp-block-post-template > li { margin: 0 !important; }

/* Each article item: flex row */
.sifa-article-item {
	display: flex !important;
	flex-direction: row !important;
	gap: 0.85rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid #e8e8e8;
	align-items: flex-start;
}

/* Thumbnail */
.sifa-article-item .wp-block-post-featured-image { flex-shrink: 0; }
.sifa-article-item .wp-block-post-featured-image img {
	display: block;
	object-fit: cover;
	border-radius: 0;
}

/* Content side */
.sifa-article-item-body { flex: 1; min-width: 0; }
.sifa-article-item-body .wp-block-post-title { margin: 3px 0 5px; line-height: 1.25; }
.sifa-article-item-body .wp-block-post-date { font-size: 0.72rem; color: #888; }
.sifa-article-item-body .wp-block-post-excerpt p { font-size: 0.82rem; color: #555; margin: 4px 0; line-height: 1.45; }

/* Read More button */
.sifa-read-more-btn a,
.wp-block-read-more.sifa-read-more-btn {
	display: inline-block !important;
	margin-top: 6px;
	padding: 3px 10px !important;
	background: #222 !important;
	color: #fff !important;
	font-size: 0.68rem !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none !important;
	border-radius: 0 !important;
	border: none !important;
}
.sifa-read-more-btn a:hover { background: #cc0000 !important; }

/* =============================================================
   POST TITLES
   ============================================================= */
.wp-block-post-title {
	font-family: Merriweather, "Liberation Serif", Georgia, serif;
	margin-top: 0.3rem;
	margin-bottom: 0.4rem;
	line-height: 1.2;
}
.wp-block-post-title a {
	text-decoration: none;
	color: #111 !important;
}
.wp-block-post-title a:hover { color: #cc0000 !important; }

/* Site title */
.wp-block-site-title { font-family: Merriweather, Georgia, serif; }
.wp-block-site-title a { color: #111 !important; text-decoration: none !important; }

/* =============================================================
   HERO SLIDER
   ============================================================= */
.sifa-hero-slider {
	position: relative;
	max-width: 1240px;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 0;
	border: none;
}
.sifa-slide { display: none; position: relative; }
.sifa-slide.is-active { display: block; }
.sifa-slide img {
	width: 100%;
	height: clamp(260px, 44vw, 500px);
	object-fit: cover;
}
.sifa-slide-cat {
	display: inline-block;
	background: #cc0000;
	color: #fff;
	font-size: 0.65rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	padding: 3px 8px;
	margin-bottom: 8px;
}
.sifa-slide-content {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: 3rem 1.5rem 1.2rem;
	background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
}
.sifa-slide-content h2 {
	margin: 0;
	font-size: clamp(1.4rem, 3vw, 2.4rem);
	line-height: 1.12;
	font-family: Merriweather, Georgia, serif;
	font-weight: 800;
	color: #fff;
}
.sifa-slide-content a { color: #fff; text-decoration: none; }
.sifa-slide-content a:hover { text-decoration: underline; }
.sifa-slider-control {
	position: absolute;
	top: 50%; transform: translateY(-50%);
	border: 2px solid rgba(255,255,255,0.6);
	background: rgba(0,0,0,0.4);
	color: #fff;
	width: 38px; height: 38px;
	cursor: pointer; border-radius: 0;
	display: flex; align-items: center; justify-content: center;
	transition: background 0.15s;
}
.sifa-slider-control:hover { background: rgba(0,0,0,0.7); }
.sifa-slider-control.is-prev { left: 12px; }
.sifa-slider-control.is-next { right: 12px; }
.sifa-slider-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; }
.sifa-slider-dot { width: 7px; height: 7px; border: 2px solid rgba(255,255,255,0.7); background: transparent; cursor: pointer; border-radius: 0; }
.sifa-slider-dot.is-active { background: #fff; }

/* =============================================================
   HOME HERO PATTERN (68/32 featured + breaking)
   ============================================================= */
.wp-block-post-featured-image img { border-radius: 0; }

/* =============================================================
   CARD STYLE — flat, no shadow (used sparingly now)
   ============================================================= */
.is-style-sifa-card {
	border: 1px solid #e8e8e8;
	border-radius: 0;
	padding: 1rem;
	background: #fff;
	box-shadow: none;
	height: 100%;
}

/* =============================================================
   SIDEBAR WIDGETS
   ============================================================= */
.sifa-sidebar-widget {
	border-top: 3px solid #cc0000;
	padding: 0.85rem !important;
	border-left: 1px solid #e8e8e8;
	border-right: 1px solid #e8e8e8;
	border-bottom: 1px solid #e8e8e8;
	background: #fff;
}
.sifa-sidebar-widget .wp-block-post-template > li + li {
	margin-top: 0.6rem;
	padding-top: 0.6rem;
	border-top: 1px solid #eee;
}
.sifa-sidebar-widget .wp-block-separator { display: none; }

/* =============================================================
   RADIO HUB
   ============================================================= */
.sifa-radio-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0,1fr));
	gap: 0.7rem;
	margin-top: 0.6rem;
}
.sifa-radio-card {
	border: 1px solid #e8e8e8;
	border-top: 3px solid #cc0000;
	border-radius: 0;
	padding: 0.8rem;
	background: #fff;
}
.sifa-radio-card h3 { margin: 0 0 0.6rem; font-size: 1rem; }
.sifa-radio-play {
	border: none;
	background: #cc0000;
	color: #fff;
	padding: 4px 12px;
	text-transform: uppercase;
	cursor: pointer;
	border-radius: 0;
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.04em;
}
.sifa-stream-links { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.sifa-stream-link {
	display: inline-flex; align-items: center;
	padding: 3px 8px;
	border: 1px solid #555;
	background: transparent;
	color: #555;
	font-size: 0.72rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.04em;
	text-decoration: none; border-radius: 0;
	transition: background 0.15s, color 0.15s;
}
.sifa-stream-link:hover { background: #cc0000; color: #fff; border-color: #cc0000; }
.sifa-stream-player {
	margin-top: 0.5rem;
	border: 1px solid #ddd;
	padding: 0.5rem;
	background: #fff;
	border-radius: 0;
}
.sifa-stream-player-info { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.3rem; }
.sifa-stream-close { border: 1px solid #ccc; background: transparent; color: #555; padding: 2px 6px; cursor: pointer; }
.sifa-stream-player audio { width: 100%; }

/* =============================================================
   AD SLOTS
   ============================================================= */
.sifa-ad-slot { max-width: 1240px; margin: 0 auto; padding: 0 1rem; }
.sifa-ad-slot > * { border: 1px solid #e8e8e8; padding: 0.7rem; background: #f9f9f9; }

/* =============================================================
   EDITOR'S PICKS
   ============================================================= */
.sifa-editor-picks { max-width: 1240px; margin: 0 auto; padding: 0 1rem; }
.sifa-editor-picks-wrap {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 1.2rem;
	border-top: 3px solid #cc0000;
	border-left: 1px solid #e8e8e8;
	border-right: 1px solid #e8e8e8;
	border-bottom: 1px solid #e8e8e8;
	padding: 1rem;
	background: #fff;
}
.sifa-editor-lead img { width: 100%; height: 240px; object-fit: cover; }
.sifa-editor-lead h3 { margin: 0.5rem 0 0; font-size: 1.4rem; font-family: Merriweather, Georgia, serif; line-height: 1.2; }
.sifa-editor-list p { margin: 0 0 0.6rem; padding-bottom: 0.5rem; border-bottom: 1px solid #eee; font-size: 0.88rem; line-height: 1.4; }
.sifa-editor-list p:last-child { margin: 0; padding: 0; border: 0; }

/* =============================================================
   PAGINATION
   ============================================================= */
.wp-block-query-pagination { margin-top: 1rem; }
.wp-block-query-pagination-next,
.wp-block-query-pagination-previous {
	background: #222;
	color: #fff;
	padding: 6px 14px;
	text-decoration: none;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: 0;
}
.wp-block-query-pagination-next:hover,
.wp-block-query-pagination-previous:hover { background: #cc0000; }

/* =============================================================
   BUTTONS (global)
   ============================================================= */
.wp-element-button, .wp-block-button__link {
	border-radius: 0 !important;
	border: none;
	background: #222;
	color: #fff !important;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 700;
	font-size: 0.78rem;
}
.wp-element-button:hover, .wp-block-button__link:hover { background: #cc0000 !important; }

/* =============================================================
   NEWSLETTER STRIP
   ============================================================= */
.wp-block-group.alignfull { background: #111; }

/* =============================================================
   SINGLE ARTICLE
   ============================================================= */
.sifa-format-badge {
	display: inline-block; padding: 3px 10px;
	border-radius: 0; font-size: 0.68rem; font-weight: 700;
	letter-spacing: 0.07em; text-transform: uppercase;
	text-decoration: none; background: #cc0000; color: #fff !important; margin-right: 8px;
}
.sifa-format-opinion  { background: #7c3aed; }
.sifa-format-analysis { background: #0369a1; }
.sifa-format-breaking { background: #cc0000; }
.sifa-format-sponsored{ background: #92400e; }

.sifa-reading-time { font-size: 0.78rem; color: #888; font-weight: 500; }
.sifa-article-dek { font-size: 1.15rem; line-height: 1.5; color: #555; font-style: italic; margin: 0.3rem 0 0.8rem; font-family: Merriweather, Georgia, serif; }
.sifa-byline { gap: 0.6rem; font-size: 0.8rem; color: #888; border-top: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; padding: 0.45rem 0; }
.sifa-source-credit { font-size: 0.75rem; color: #888; }

/* Share buttons */
.sifa-share-buttons { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; padding: 0.75rem 0; border-top: 1px solid #e8e8e8; border-bottom: 1px solid #e8e8e8; }
.sifa-share-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #888; margin-right: 4px; }
.sifa-share-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 0; font-size: 0.82rem; font-weight: 700; text-decoration: none; border: 1px solid #ddd; background: #f5f5f5; color: #333; cursor: pointer; transition: background 0.15s, color 0.15s; }
.sifa-share-btn:hover { background: #222; color: #fff; }
.sifa-share-twitter:hover  { background: #000; color: #fff; border-color: #000; }
.sifa-share-facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.sifa-share-whatsapp:hover { background: #25d366; color: #fff; border-color: #25d366; }

/* Author bio */
.sifa-author-bio { border: 1px solid #e8e8e8; border-top: 3px solid #cc0000; padding: 1.2rem; background: #f9f9f9; }
.sifa-author-bio-inner { display: flex; gap: 1rem; align-items: flex-start; }
.sifa-author-avatar-link img, .sifa-author-avatar { border-radius: 50%; width: 68px; height: 68px; object-fit: cover; flex-shrink: 0; }
.sifa-author-bio-text { flex: 1; }
.sifa-author-bio-label { display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #888; margin-bottom: 2px; }
.sifa-author-bio-name { display: block; font-size: 1rem; font-weight: 700; color: #111 !important; text-decoration: none; margin-bottom: 5px; font-family: Merriweather, Georgia, serif; }
.sifa-author-bio-desc { font-size: 0.85rem; line-height: 1.5; color: #555; margin: 0; }

/* Related posts */
.sifa-related-posts { margin-top: 2rem; }
.sifa-related-title { margin-bottom: 1rem !important; }
.sifa-related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.sifa-related-card { border: 1px solid #e8e8e8; background: #fff; }
.sifa-related-card img { width: 100%; height: 130px; object-fit: cover; display: block; }
.sifa-related-card h4 { margin: 0.4rem 0.6rem 0.25rem; font-size: 0.85rem; line-height: 1.3; font-family: Merriweather, Georgia, serif; }
.sifa-related-card h4 a { color: #111 !important; text-decoration: none; }
.sifa-related-card h4 a:hover { color: #cc0000 !important; }
.sifa-related-date { display: block; font-size: 0.68rem; color: #888; padding: 0 0.6rem 0.5rem; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 960px) {
	.sifa-navbar { position: static; }
	.sifa-primary-links { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
	.sifa-primary-links .menu-item a, .sifa-primary-links a { padding: 8px 10px; font-size: 0.78rem; }
	.sifa-radio-grid { grid-template-columns: 1fr; }
	.sifa-editor-picks-wrap { grid-template-columns: 1fr; }
	.sifa-stream-player { width: 100%; }
	.sifa-masthead .wp-block-site-title { font-size: 1.8rem !important; }
}

@media (max-width: 640px) {
	.sifa-article-item { flex-direction: column; }
	.sifa-article-item .wp-block-post-featured-image { width: 100% !important; }
	.sifa-article-item .wp-block-post-featured-image img { width: 100% !important; height: 180px !important; }
	.sifa-related-grid { grid-template-columns: 1fr; }
	.sifa-author-bio-inner { flex-direction: column; }
}