/*
Theme Name: Newsup Harmony
Template: newsup
Description: Child theme for Radio Nigeria Harmony FM. Brand colours from the station logo, footer logo sizing, and single-post layout tweaks. The Newsup parent theme is not edited.
Author: Graphics Sense
Version: 1.0.1
Text Domain: newsup-harmony
*/

/* -------------------------------------------------------------------------
   Brand tokens extracted from the Harmony FM logo
   Blue ring:  #105098
   Script red: #E83030 (body/badge uses #C62828 for WCAG AA)
   Charcoal:   #303030
   Header/footer navy is a darkened logo blue for contrast
   ------------------------------------------------------------------------- */
:root {
	--pri-color: #105098;
	--grady-color: #105098;
	--harmony-navy: #0A2744;
	--harmony-navy-deep: #071C31;
	--harmony-hover: #0A3A70;
	--harmony-red: #C62828;
	--harmony-charcoal: #303030;
	--harmony-muted: #C5CDD8;
}

/* Header / nav */
.mg-headwidget .mg-head-detail,
.mg-headwidget .navbar-wp {
	background: var(--harmony-navy);
}

.mg-headwidget .navbar-wp .navbar-nav > li > a:hover,
.mg-headwidget .navbar-wp .navbar-nav > li > a:focus,
.mg-headwidget .navbar-wp .navbar-nav > .active > a,
.mg-headwidget .navbar-wp .navbar-nav > .active > a:hover,
.mg-headwidget .navbar-wp .navbar-nav > .active > a:focus,
.mg-headwidget.center .navbar-wp {
	background: var(--pri-color);
	color: #fff;
}

/* Links, buttons, forms */
a {
	color: var(--pri-color);
}
a:hover,
a:focus {
	color: var(--harmony-hover);
}

input[type="submit"],
input[type="reset"],
button,
.btn-theme,
.wp-block-button__link,
.wp-block-file__button,
.mg-search-modal .mg-search .btn,
.mg-widget.widget_search .btn,
.mg-sidebar .mg-widget.widget_search .btn {
	background: var(--pri-color);
	border-color: var(--pri-color);
	color: #fff;
}

input[type="submit"]:hover,
input[type="reset"]:hover,
button:hover,
input[type="submit"]:focus,
input[type="reset"]:focus,
button:focus,
.btn:hover,
.btn:focus,
.wp-block-button__link:hover,
.mg-search-modal .mg-search .btn:hover,
.mg-widget.widget_search .btn:hover,
.mg-widget.widget_search .btn:focus,
.mg-sidebar .mg-widget.widget_search .btn:hover {
	background: var(--harmony-hover);
	border-color: var(--harmony-hover);
	color: #fff;
}

/* Category badges */
.mg-blog-category a {
	background: var(--pri-color);
	color: #fff;
}
.mg-blog-category a:hover,
.mg-blog-category a:focus {
	background: var(--harmony-hover);
	color: #fff;
}

/* Section headings */
.mg-sec-title {
	border-color: var(--pri-color);
}
.mg-sec-title h4 {
	background: var(--pri-color);
	color: #fff;
}
.mg-sec-title h4::before {
	border-color: transparent transparent transparent var(--pri-color);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.mg-blog-post-box h4.title,
.mg-blog-inner h4.title {
	color: var(--harmony-charcoal);
}

/* Footer */
footer .overlay,
footer[style*="background-image"] .overlay {
	background: var(--harmony-navy);
}
footer .mg-footer-copyright {
	background: var(--harmony-navy-deep);
}
footer .mg-footer-copyright p,
footer .mg-footer-copyright a {
	color: var(--harmony-muted);
}
footer .mg-footer-copyright a:hover,
footer .mg-footer-copyright a:focus {
	color: #fff;
}
footer .mg-widget ul li a:hover,
footer .mg-widget ul li a:focus,
footer .mg-social li span.icon-soci a:hover,
footer .site-title-footer a:hover {
	color: #fff;
}

/* Scroll-to-top */
.ta_upscr {
	background: var(--pri-color);
	color: #fff;
}
.ta_upscr:hover,
.ta_upscr:focus {
	background: var(--harmony-hover);
	color: #fff;
}

/* Header logo sizing */
.mg-headwidget .site-logo .custom-logo,
.mg-headwidget .custom-logo-link img,
.navbar-header .custom-logo,
.site-logo .custom-logo {
	max-height: 72px;
	max-width: 240px;
	width: auto;
	height: auto;
	object-fit: contain;
}
@media (max-width: 575.98px) {
	.mg-headwidget .site-logo .custom-logo,
	.mg-headwidget .custom-logo-link img,
	.navbar-header .custom-logo,
	.site-logo .custom-logo {
		max-height: 56px;
		max-width: 180px;
	}
}

/* Footer logo: keep the white oval readable on the navy bar */
footer .mg-footer-bottom-area .site-logo {
	display: flex;
	align-items: center;
}
footer .mg-footer-bottom-area .custom-logo,
footer .mg-footer-bottom-area .custom-logo-link img {
	max-height: 80px;
	max-width: 260px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}
@media (max-width: 767.98px) {
	footer .mg-footer-bottom-area .col-md-6 {
		text-align: center;
	}
	footer .mg-footer-bottom-area .site-logo {
		justify-content: center;
		margin: 0 auto 12px;
	}
	footer .mg-footer-bottom-area .custom-logo,
	footer .mg-footer-bottom-area .custom-logo-link img {
		max-height: 64px;
		max-width: 200px;
		margin: 0 auto;
	}
	footer .mg-footer-bottom-area .text-right,
	footer .mg-footer-bottom-area .text-xs {
		text-align: center !important;
	}
}

/* Sidebar Latest News (core latest-posts block with thumbnails) */
.mg-sidebar .wp-block-latest-posts .wp-block-latest-posts__featured-image {
	margin: 0 12px 0 0;
}
.mg-sidebar .wp-block-latest-posts .wp-block-latest-posts__featured-image img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 4px;
}
.mg-sidebar .wp-block-latest-posts li {
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e6e6e6;
	overflow: hidden;
}
.mg-sidebar .wp-block-latest-posts li:last-child {
	border-bottom: 0;
	margin-bottom: 0;
	padding-bottom: 0;
}
.mg-sidebar .wp-block-latest-posts li a {
	color: var(--harmony-charcoal);
	font-weight: 600;
}
.mg-sidebar .wp-block-latest-posts li a:hover,
.mg-sidebar .wp-block-latest-posts li a:focus {
	color: var(--pri-color);
}
.mg-sidebar .wp-block-latest-posts__post-date {
	display: block;
	color: #666;
	font-size: 12px;
	margin-top: 4px;
}

/* Related posts cards under the article */
.mg-featured-slider .mg-blog-post-3.minh {
	min-height: 220px;
}

/* Keep body text readable */
body {
	color: #222;
}

/* WhatsApp share (alongside existing bars; network-coloured like the other icons) */
.post-share-icons a.whatsapp,
.post-share-icons a.harmonyfm-whatsapp-icon {
	background: #25D366;
	color: #fff;
}
.post-share-icons a.whatsapp:hover,
.post-share-icons a.whatsapp:focus,
.post-share-icons a.harmonyfm-whatsapp-icon:hover,
.post-share-icons a.harmonyfm-whatsapp-icon:focus {
	background: #128C7E;
	color: #fff;
}
.sswfb-button-whatsapp .sswfb-button-inner {
	background: #25D366;
	color: #fff;
}
.sswfb-button-whatsapp .sswfb-icon {
	color: #fff;
}
.sswfb-button-whatsapp:hover .sswfb-button-inner,
.sswfb-button-whatsapp:focus .sswfb-button-inner,
.sswfb-button-whatsapp:active .sswfb-button-inner {
	background: #128C7E;
	color: #fff;
}
.harmonyfm-whatsapp-fallback {
	margin: 1rem 0 0;
}
.harmonyfm-whatsapp-fallback-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #25D366;
	color: #fff !important;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 4px;
	text-decoration: none;
}
.harmonyfm-whatsapp-fallback-btn:hover,
.harmonyfm-whatsapp-fallback-btn:focus {
	background: #128C7E;
	color: #fff !important;
}
