/*
  GFC Sermons Archive — redesign styles
  Enqueue this on the sermons archive template, or paste into
  Elementor > Site Settings > Custom CSS if that's easier for now.

  Brand tokens (from GFC brand standards):
  Orange/Red  #e44826   Midnight   #0a1422   Off White  #f7f9ff
  Light Blue  #1578ff   Dark Blue  #143976   Grey       #c2c6ca
  Fonts: DM Serif Display (display), DM Sans (body/UI)

  Note: the mockup Tony shared used placeholder blue (#1877f2) and Poppins.
  This stylesheet swaps those for the real GFC tokens/fonts throughout.
*/

/*
  Desktop/mobile toggle — both are rendered in the page by archive.php,
  this is the only thing deciding which one shows. Change 768px here if
  you want the switch to happen at a different width; nothing else needs
  to change to move the breakpoint.
*/
.gfc-mobile-only { display: none; }

@media (max-width: 768px) {
	.gfc-desktop-only { display: none; }
	.gfc-mobile-only  { display: block; }
}

/*
  Scoping guard: nothing in this stylesheet should ever touch
  .gfc-desktop-only content, since that block is the plugin's
  original, untouched markup. All real rules below are written
  under .gfc-sermons, which only wraps the mobile block.
*/

.gfc-sermons {
	--gfc-orange: #e44826;
	--gfc-midnight: #0a1422;
	--gfc-offwhite: #f7f9ff;
	--gfc-blue: #1578ff;
	--gfc-blue-dark: #143976;
	--gfc-grey: #c2c6ca;

	font-family: "DM Sans", system-ui, sans-serif !important;
	color: var(--gfc-midnight) !important;
	max-width: 720px;
	margin: 0 auto;
	padding: 24px 16px 48px;
}

/*
  The !importants below aren't sloppiness — Elementor's Global Colors,
  Global Fonts, and button/heading defaults are themselves set with
  !important site-wide, so plain rules here lose to them silently.
  This is the standard way to win that fight without touching
  Elementor's site settings — but scoped to OUR classes only, never a
  blanket wildcard, so we don't break things we don't own (like the
  plugin's own icon font on the Filter/Search controls below).
*/

.gfc-sermons__title {
	font-family: "DM Serif Display", serif !important;
	color: var(--gfc-midnight) !important;
}

.gfc-sermons__kicker {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gfc-blue);
	margin-bottom: 6px;
}

.gfc-sermons__title {
	font-family: "DM Serif Display", serif;
	font-size: 34px;
	line-height: 1.15;
	margin: 0 0 4px;
}

.gfc-sermons__sub {
	font-size: 14px;
	color: #6b7683;
	margin-bottom: 20px;
}

/* Tab pills */
.gfc-sermons__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: #e8ebf2;
	border-radius: 999px;
	padding: 4px;
	margin-bottom: 16px;
	overflow: hidden;
}

.gfc-sermons__tab {
	border: 0 !important;
	outline: none !important;
	background: transparent;
	font-family: "DM Sans", system-ui, sans-serif !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 11px 16px;
	min-height: 44px;
	border-radius: 999px !important;
	color: #6b7683 !important;
	cursor: pointer;
	box-shadow: none !important;
}

.gfc-sermons__tab.is-active {
	background: var(--gfc-blue) !important;
	color: #fff !important;
}

.gfc-sermons__toolbar {
	margin-bottom: 20px;
}

/*
  The Filter button itself belongs to the plugin (class cpl-filter--toggle--button),
  not to us — it never set its own text color, so it was inheriting the site's
  global orange link color. This is the one targeted exception to "never touch
  plugin classes": we're only fixing color/font here, nothing structural.
*/
.gfc-sermons .cpl-filter--toggle--button {
	color: #fff !important;
	font-family: "DM Sans", system-ui, sans-serif !important;
}

.gfc-sermons__panel {
	display: none;
}

.gfc-sermons__panel.is-active {
	display: block;
}

/* Sermon list + cards */
.gfc-sermons__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.gfc-scard {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(10, 20, 34, 0.07);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.gfc-scard__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	flex: none;
	border-radius: 0;
	overflow: hidden;
	background: var(--gfc-grey);
}

.gfc-scard__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gfc-scard__thumb iframe,
.gfc-scard__thumb video {
	width: 100%;
	height: 100%;
	display: block;
	border: 0;
}

.gfc-scard__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 14px 16px;
}

.gfc-scard__kicker {
	font-size: 10px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--gfc-blue) !important;
	font-family: "DM Sans", system-ui, sans-serif !important;
}

.gfc-scard__title {
	margin: 0 !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	font-family: "DM Sans", system-ui, sans-serif !important;
}

.gfc-scard__title a {
	color: var(--gfc-midnight) !important;
	text-decoration: none !important;
}

.gfc-scard__meta {
	font-size: 12px !important;
	color: #6b7683 !important;
	line-height: 1.4;
	font-family: "DM Sans", system-ui, sans-serif !important;
}

.gfc-scard__actions {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-top: 4px;
	padding-top: 10px;
	border-top: 1px solid #eef1f6;
}

.gfc-scard__icon-btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px !important;
	border: 1.5px solid #e0e5ee !important;
	background: #fff !important;
	color: #98a2b0 !important;
	flex: none;
}

.gfc-scard__icon-btn--listen {
	border-color: var(--gfc-blue) !important;
	color: var(--gfc-blue) !important;
}

.gfc-scard__icon-btn--notes {
	border-color: #d9e0ea !important;
	color: #6b7683 !important;
}

.gfc-scard__audio-slot {
	margin-top: 10px;
}

.gfc-scard__audio-slot audio {
	width: 100%;
	height: 36px;
}

/* Series grid + cards */
.gfc-sermons__series-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.gfc-sercard {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(10, 20, 34, 0.07);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.gfc-sercard__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	flex: none;
	overflow: hidden;
	background: var(--gfc-grey);
}

.gfc-sercard__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gfc-sercard__body {
	flex: 1;
	min-width: 0;
	padding: 14px 14px 16px;
}

.gfc-sercard__title {
	margin: 0 0 4px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	font-family: "DM Sans", system-ui, sans-serif !important;
}

.gfc-sercard__title a {
	color: var(--gfc-midnight) !important;
	text-decoration: none !important;
}

.gfc-sercard__meta {
	font-size: 12px;
	color: #6b7683;
	margin-bottom: 6px;
}

.gfc-sercard__cta {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gfc-blue);
	text-decoration: none;
}

.gfc-sermons__empty {
	color: #6b7683;
	font-size: 14px;
}

/* Series single page — mobile redesign */
.gfc-series-single__back {
	display: inline-block;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: var(--gfc-blue) !important;
	text-decoration: none !important;
	margin-bottom: 16px;
	font-family: "DM Sans", system-ui, sans-serif !important;
}

.gfc-series-single__hero {
	width: calc(100% + 32px);
	aspect-ratio: 16 / 9;
	margin-left: -16px;
	margin-right: -16px;
	margin-bottom: 20px;
	border-radius: 0;
	overflow: hidden;
}

.gfc-series-single__hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gfc-series-single__title {
	font-family: "DM Serif Display", serif !important;
	font-size: 28px !important;
	line-height: 1.2 !important;
	color: var(--gfc-midnight) !important;
	margin: 0 0 6px !important;
}

.gfc-series-single__meta {
	font-size: 13px;
	color: #6b7683;
	margin-bottom: 20px;
}

.gfc-sermons__pagination {
	margin-top: 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.gfc-sermons__pagination .page-numbers {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 12px;
	border-radius: 999px !important;
	margin-right: 0 !important;
	background: #fff !important;
	color: var(--gfc-midnight) !important;
	text-decoration: none !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	font-family: "DM Sans", system-ui, sans-serif !important;
	box-shadow: 0 1px 4px rgba(10, 20, 34, 0.08);
	border: 1px solid #e0e5ee !important;
}

.gfc-sermons__pagination .page-numbers.current {
	background: var(--gfc-blue) !important;
	color: #fff !important;
	border-color: var(--gfc-blue) !important;
}

.gfc-sermons__pagination .page-numbers.next,
.gfc-sermons__pagination .page-numbers.prev {
	padding: 0 16px;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gfc-blue) !important;
	border-color: var(--gfc-blue) !important;
}
