/*
Theme Name:  Maven Sales Group
Theme URI:   https://mavensalesgroup.com
Description: Child theme of Polite News for Maven Sales Group — Business, Sales & Marketing Insights.
Author:      Maven Sales Group
Author URI:  https://mavensalesgroup.com
Template:    polite-news
Version:     1.4.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maven-sales-group
*/

/* ============================================================
   MAVEN SALES GROUP — BRAND TOKENS
   Primary  : #1a1f5e  (navy)
   Accent   : #c6f135  (lime green)
   ============================================================ */

:root {
	--ts-primary:       #1a1f5e;
	--ts-primary-hover: #141852;
	--ts-primary-soft:  #eef0fb;
	--ts-secondary:     #c6f135;

	/* Override the indigo accent throughout the theme */
	--ts-accent:        #c6f135;
	--ts-accent-hover:  #b5e020;
}

/* ── SELECTION ────────────────────────────────────────────── */
::selection {
	background-color: #1a1f5e;
	color: #c6f135;
}

/* ── LINKS ────────────────────────────────────────────────── */
a {
	color: #1a1f5e;
}
a:hover {
	color: #141852;
}

/* ============================================================
   HEADER — navy background, lime nav hover, white text
   Broad selector list to catch Polite News regardless of
   which wrapper class the theme version outputs.
   ============================================================ */
.site-header,
#masthead,
.ts-header-wrap,
.ts-header-inner,
.ts-nav-wrap,
.ts-nav-wrap > div,
.ts-primary-nav-wrap,
header.site-header,
body > header {
	background-color: #1a1f5e !important;
	color: #ffffff;
}

/* Nav links — white by default */
.main-navigation a,
.ts-nav-wrap .main-navigation a,
.ts-primary-nav a,
.site-header .main-navigation a,
#masthead .main-navigation a,
.ts-nav-wrap a {
	color: #ffffff !important;
}

/* Active + hover = lime */
.main-navigation a:hover,
.ts-nav-wrap .main-navigation a:hover,
.ts-primary-nav a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.ts-nav-wrap .current-menu-item > a {
	color: #c6f135 !important;
}

/* "Home" page title in nav — force white */
.site-header .page-title,
.site-header .entry-title,
.ts-header-wrap .page-title {
	color: #ffffff !important;
}

/* Sticky header */
.ts-sticky-nav,
.ts-sticky-nav.is-stuck {
	background-color: #1a1f5e !important;
}

/* Dark/light toggle + search icons */
.ts-dark-toggle svg,
.ts-search-toggle svg,
.ts-header-actions a svg,
.ts-header-actions svg,
.site-header svg {
	stroke: #ffffff;
}

/* Dropdown menus */
.main-navigation .sub-menu,
.ts-nav-wrap .sub-menu {
	background-color: #1a1f5e;
	border-top: 2px solid #c6f135;
}
.main-navigation .sub-menu a,
.ts-nav-wrap .sub-menu a {
	color: #ffffff !important;
	border-bottom: 1px solid rgba(255,255,255,0.08);
}
.main-navigation .sub-menu a:hover,
.ts-nav-wrap .sub-menu a:hover {
	background-color: rgba(198,241,53,0.12);
	color: #c6f135 !important;
}

/* Mobile hamburger */
.ts-menu-toggle,
.menu-toggle {
	color: #ffffff !important;
}
.ts-menu-toggle svg,
.menu-toggle svg {
	stroke: #ffffff;
}

/* ── TOP HEADER BAR ──────────────────────────────────────── */
.ts-top-header {
	background-color: #141852;
	border-bottom: 1px solid rgba(198,241,53,0.2);
}
.ts-top-header a,
.ts-top-header .ts-top-menu a {
	color: rgba(255,255,255,0.8) !important;
}
.ts-top-header a:hover {
	color: #c6f135 !important;
}

/* ── BREAKING NEWS TICKER ────────────────────────────────── */
.ts-ticker-label {
	background-color: #c6f135;
	color: #1a1f5e;
}
.ts-ticker-wrap {
	border-color: rgba(26,31,94,0.15);
}

/* ============================================================
   CATEGORY LABELS / CHIPS
   ============================================================ */
.ts-entry-category a,
.ts-cat-label,
.ts-box-cat a,
.ts-catcol-cat a {
	background-color: #1a1f5e !important;
	color: #ffffff !important;
}
.ts-entry-category a:hover,
.ts-cat-label:hover,
.ts-box-cat a:hover {
	background-color: #c6f135 !important;
	color: #1a1f5e !important;
}

/* ============================================================
   SECTION HEADINGS (shared across all custom sections)
   ============================================================ */
.ts-catcol-title::after,
.ts-section-title::before,
.ts-maven-section-bar {
	background-color: #c6f135 !important;
}

.ts-catcol-title a:hover,
.ts-section-title a:hover {
	color: #1a1f5e;
}

/* View More links */
.ts-view-more,
a.ts-view-more {
	color: #1a1f5e;
	font-weight: 700;
}
.ts-view-more:hover {
	color: #c6f135;
}

/* ============================================================
   HERO / SLIDER SECTION
   ============================================================ */
.ts-hero-wrap .ts-entry-category a {
	background-color: #c6f135 !important;
	color: #1a1f5e !important;
}

/* ============================================================
   CATEGORY ICON BAR (custom section)
   ============================================================ */
.mvn-cat-bar {
	background-color: #1a1f5e;
	padding: 28px 0;
}
.mvn-cat-bar-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
}
.mvn-cat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	flex: 1;
	padding: 18px 12px;
	text-decoration: none;
	border-right: 1px solid rgba(198,241,53,0.15);
	transition: background 0.2s;
}
.mvn-cat-item:last-child {
	border-right: none;
}
.mvn-cat-item:hover {
	background-color: rgba(198,241,53,0.08);
}
.mvn-cat-item-icon {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.mvn-cat-item-icon svg {
	width: 32px;
	height: 32px;
	stroke: #c6f135;
	fill: none;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.mvn-cat-item-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #ffffff;
	text-align: center;
	line-height: 1.3;
}
.mvn-cat-item:hover .mvn-cat-item-label {
	color: #c6f135;
}

/* ============================================================
   TRENDING ARTICLES STRIP (custom section)
   ============================================================ */
.mvn-trending-section {
	padding: 40px 0;
	background: var(--ts-bg-soft);
}
.mvn-trending-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}
.mvn-trending-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #1a1f5e;
}
.mvn-trending-label::before {
	content: "";
	display: block;
	width: 4px;
	height: 20px;
	background: #c6f135;
	border-radius: 2px;
}
.mvn-trending-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.mvn-trending-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-decoration: none;
}
.mvn-trending-card-media {
	aspect-ratio: 16/9;
	overflow: hidden;
	border-radius: var(--ts-radius);
	background: var(--ts-neutral-200);
}
.mvn-trending-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}
.mvn-trending-card:hover .mvn-trending-card-media img {
	transform: scale(1.05);
}
.mvn-trending-card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
}
.mvn-trending-card-cat {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	background: #1a1f5e;
	color: #fff;
	padding: 2px 8px;
	border-radius: 2px;
}
.mvn-trending-card-read {
	font-size: 11px;
	color: var(--ts-muted);
}
.mvn-trending-card-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--ts-heading);
	line-height: 1.4;
}
.mvn-trending-card:hover .mvn-trending-card-title {
	color: #1a1f5e;
}

/* ============================================================
   INSIGHTS THAT MATTER — dark band (custom section)
   ============================================================ */
.mvn-insights-section {
	background-color: #1a1f5e;
	padding: 50px 0;
}
.mvn-insights-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 28px;
}
.mvn-insights-title {
	font-size: 24px;
	font-weight: 800;
	color: #ffffff;
	margin: 0;
}
.mvn-insights-title span {
	color: #c6f135;
}
.mvn-insights-link {
	font-size: 13px;
	font-weight: 700;
	color: #c6f135;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.mvn-insights-link:hover {
	color: #ffffff;
}
.mvn-insights-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.mvn-insight-card {
	background: rgba(255,255,255,0.06);
	border: 1px solid rgba(198,241,53,0.15);
	border-radius: var(--ts-radius);
	overflow: hidden;
	text-decoration: none;
	transition: border-color .2s, background .2s;
}
.mvn-insight-card:hover {
	background: rgba(255,255,255,0.1);
	border-color: rgba(198,241,53,0.4);
}
.mvn-insight-card-media {
	aspect-ratio: 16/9;
	overflow: hidden;
}
.mvn-insight-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}
.mvn-insight-card:hover .mvn-insight-card-media img {
	transform: scale(1.04);
}
.mvn-insight-card-body {
	padding: 18px;
}
.mvn-insight-card-cat {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #c6f135;
	margin-bottom: 8px;
	display: block;
}
.mvn-insight-card-title {
	font-size: 16px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.4;
	margin: 0 0 8px;
}
.mvn-insight-card-date {
	font-size: 12px;
	color: rgba(255,255,255,0.5);
}

/* ============================================================
   FOOTER
   Lime green background, navy text
   ============================================================ */
.site-footer,
.ts-footer-inner,
.ts-footer-widgets {
	background-color: #c6f135 !important;
	color: #1a1f5e !important;
}
.site-footer a,
.ts-footer-inner a,
.ts-footer-nav a,
.ts-footer-nav .footer-menu a {
	color: #1a1f5e !important;
}
.site-footer a:hover,
.ts-footer-nav a:hover {
	color: #141852 !important;
	opacity: 0.75;
}
.ts-footer-inner .copyright,
.ts-footer-inner .site-info {
	color: #1a1f5e;
}

/* Widget titles in footer */
.ts-footer-widgets .widget-title {
	color: #1a1f5e;
	border-color: #1a1f5e;
}

/* ============================================================
   BUTTON STYLES
   ============================================================ */
.ts-button,
.wp-block-button__link,
button[type="submit"] {
	background-color: #1a1f5e;
	color: #c6f135;
}
.ts-button:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover {
	background-color: #c6f135;
	color: #1a1f5e;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
	.mvn-trending-grid { grid-template-columns: repeat(2, 1fr); }
	.mvn-insights-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
	.mvn-slide {
		grid-template-columns: 1fr;
		min-height: auto;
	}
	.mvn-image {
		height: 240px;
		min-height: 240px;
		order: -1;
	}
	.mvn-text {
		padding: 32px 24px 64px;
		gap: 16px;
	}
	.mvn-controls {
		bottom: 16px;
		left: 24px;
	}
}
@media (max-width: 640px) {
	.mvn-cat-bar-inner { flex-wrap: wrap; }
	.mvn-cat-item { flex: 0 0 33.33%; border-right: none; border-bottom: 1px solid rgba(198,241,53,0.15); }
	.mvn-trending-grid { grid-template-columns: 1fr; }
	.mvn-insights-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.mvn-track, .mvn-image img, .mvn-text { transition: none !important; }
}


/* ============================================================
   EVERGREEN READING LIST
   ============================================================ */

.mvn-evergreen-section {
	background: #f5f2eb;
	border-top: 1px solid #e0d8c8;
	border-bottom: 1px solid #e0d8c8;
	padding: 32px 0;
}

.mvn-evergreen-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
	padding-bottom: 14px;
	border-bottom: 1px solid #d4cbb8;
}

.mvn-evergreen-heading {
	font-family: var(--ts-font-primary, Georgia, serif);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #1a1a1a;
}

.mvn-evergreen-tagline {
	font-size: 13px;
	color: #7a7060;
	font-style: italic;
	white-space: nowrap;
}

.mvn-evergreen-list {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0;
}

.mvn-evergreen-item {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0 24px 0 0;
	margin: 0 24px 0 0;
	border-right: 1px solid #d4cbb8;
	text-decoration: none;
	color: inherit;
	transition: opacity .2s;
}
.mvn-evergreen-item:last-child {
	border-right: none;
	padding-right: 0;
	margin-right: 0;
}
.mvn-evergreen-item:hover { opacity: .72; }

.mvn-evergreen-num {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 38px;
	font-weight: 700;
	line-height: 1;
	color: #b8922a;
	display: block;
}

.mvn-evergreen-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	color: #1a1a1a;
}

@media (max-width: 860px) {
	.mvn-evergreen-list {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}
	.mvn-evergreen-item {
		border-right: none;
		padding-right: 0;
		margin-right: 0;
		border-bottom: 1px solid #d4cbb8;
		padding-bottom: 20px;
	}
	.mvn-evergreen-item:last-child { border-bottom: none; padding-bottom: 0; }
	.mvn-evergreen-tagline { display: none; }
}

@media (max-width: 480px) {
	.mvn-evergreen-list { grid-template-columns: 1fr; }
}


/* ============================================================
   CATEGORY PHOTO GRID
   ============================================================ */

.mvn-catgrid-section {
	padding: 56px 0;
	background: #fff;
}

.mvn-catgrid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: auto auto;
	gap: 16px;
}

/* First two cards fill row 1 (equal halves) */
.mvn-catgrid-card:nth-child(1),
.mvn-catgrid-card:nth-child(2) {
	aspect-ratio: 16 / 9;
}

/* Last three cards sit in a 3-column row 2 */
.mvn-catgrid-card:nth-child(3),
.mvn-catgrid-card:nth-child(4),
.mvn-catgrid-card:nth-child(5) {
	aspect-ratio: 4 / 3;
}

/* Row 2 spans the full 2-column grid as a nested grid */
.mvn-catgrid::after {
	content: '';
	display: none;
}

/* Override: make the bottom three sit in a sub-grid-like row */
.mvn-catgrid {
	grid-template-columns: repeat(6, 1fr);
}

.mvn-catgrid-card:nth-child(1) { grid-column: span 3; }
.mvn-catgrid-card:nth-child(2) { grid-column: span 3; }
.mvn-catgrid-card:nth-child(3) { grid-column: span 2; }
.mvn-catgrid-card:nth-child(4) { grid-column: span 2; }
.mvn-catgrid-card:nth-child(5) { grid-column: span 2; }

.mvn-catgrid-card {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 8px;
	text-decoration: none;
	/* When a photo is set via --catgrid-bg it shows; without one the gradient fallback shows */
	background: var(--catgrid-bg, none) center / cover no-repeat;
	min-height: 200px;
	transition: transform .3s ease;
}
.mvn-catgrid-card:hover { transform: scale(1.015); }

/* ── Per-card navy gradient fallbacks (shows when no photo is set) ── */
.mvn-catgrid-card:nth-child(1) { --catgrid-fallback: linear-gradient(135deg, #1a1f5e 0%, #2d3494 100%); }
.mvn-catgrid-card:nth-child(2) { --catgrid-fallback: linear-gradient(135deg, #141852 0%, #1a1f5e 60%, #3a1f6e 100%); }
.mvn-catgrid-card:nth-child(3) { --catgrid-fallback: linear-gradient(135deg, #0d1240 0%, #1a1f5e 100%); }
.mvn-catgrid-card:nth-child(4) { --catgrid-fallback: linear-gradient(135deg, #1a1f5e 0%, #0f1a3a 100%); }
.mvn-catgrid-card:nth-child(5) { --catgrid-fallback: linear-gradient(135deg, #24285e 0%, #1a1f5e 50%, #0a0e2a 100%); }

/* Overlay: blends the photo down to dark navy at the bottom for legibility.
   When no photo, sits on top of the gradient fallback to add depth. */
.mvn-catgrid-overlay {
	position: absolute;
	inset: 0;
	background: var(--catgrid-fallback, linear-gradient(135deg, #1a1f5e 0%, #0d1240 100%));
	transition: opacity .3s;
}
/* When a photo IS set, the overlay becomes a semi-transparent scrim instead */
.mvn-catgrid-card[style] .mvn-catgrid-overlay {
	background: linear-gradient(
		to top,
		rgba(10, 14, 40, .85) 0%,
		rgba(10, 14, 40, .30) 55%,
		rgba(10, 14, 40, .10) 100%
	);
}
.mvn-catgrid-card:hover .mvn-catgrid-overlay {
	opacity: .9;
}

/* Lime accent bar at the bottom of each card on hover */
.mvn-catgrid-card::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: #c6f135;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s ease;
}
.mvn-catgrid-card:hover::after {
	transform: scaleX(1);
}

.mvn-catgrid-body {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mvn-catgrid-name {
	font-family: var(--ts-font-primary, Georgia, serif);
	font-size: 20px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.2;
}

.mvn-catgrid-count {
	font-size: 12px;
	color: rgba(255, 255, 255, .72);
	font-weight: 500;
	letter-spacing: .03em;
}

@media (max-width: 860px) {
	.mvn-catgrid {
		grid-template-columns: repeat(2, 1fr);
	}
	.mvn-catgrid-card:nth-child(1),
	.mvn-catgrid-card:nth-child(2),
	.mvn-catgrid-card:nth-child(3),
	.mvn-catgrid-card:nth-child(4),
	.mvn-catgrid-card:nth-child(5) {
		grid-column: span 1;
		aspect-ratio: 4 / 3;
	}
}

@media (max-width: 480px) {
	.mvn-catgrid { grid-template-columns: 1fr; }
	.mvn-catgrid-card:nth-child(n) { grid-column: span 1; }
}
