/* Girlpower custom homepage — colors match the official brand palette in
   Kleurencodes.docx (Primary Magenta #D41E66, Deep Berry #8F0F43, etc). */

/* Blogsy's default page background is a very subtle lavender-grey tint
   (#FAF8FF) rather than pure white — override sitewide for a crisp white
   background behind every "white" section. */
:root {
	--pt-body-bg-color: #ffffff !important;
}

/* Blogsy's "Peony" homepage hero slider hardcodes a flat dark-grey photo
   overlay (rgba(25,25,29,.45)) with no Customizer control. Replace it with
   a brand-colored gradient — darker near the text at the bottom, clear
   near the top — instead of disabling the slider outright. */
.peony-slider .main-slider .image-wrapper:before {
	background: linear-gradient(0deg, rgba(143,15,67,.8) 0%, rgba(143,15,67,.25) 55%, rgba(143,15,67,0) 100%) !important;
}

.gpw-home {
	--gpw-radius: 12px;
	--gpw-shadow: 0 4px 25px rgba(28,25,36,.12);
	--gpw-accent: #D41E66;
	--gpw-accent-dark: #8F0F43;
	--gpw-tint: #FDF0F5;
	--gpw-border: #F7D5E4;
	--gpw-card-bg: #fff;
	--gpw-heading: #1C1924;
	--gpw-grey: #4A4A4A;
}

.gpw-home img { max-width: 100%; display: block; }
.gpw-home h1, .gpw-home h2, .gpw-home h3 { color: var(--gpw-heading); line-height: 1.2; }
.gpw-home a { text-decoration: none; }

.gpw-eyebrow {
	display: inline-block;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--gpw-accent);
	margin-bottom: 12px;
}
.gpw-center { text-align: center; }
.gpw-section { padding: 88px 0; }
.gpw-section--tight { padding: 56px 0; }
.gpw-section--tint { background: var(--gpw-tint); }
.gpw-section-head { max-width: 700px; margin: 0 auto 48px; }
.gpw-section-head p, .gpw-section-head.gpw-center p { color: var(--gpw-grey); }

/* "Our Four Pillars" / "Resource Library" eyebrows: sized to match the
   "Knowledge That Creates Opportunity." heading, with flanking rules that
   break around the text. */
.gpw-section-head.gpw-center h2 { font-size: 26px; }
.gpw-section-head.gpw-center .gpw-eyebrow,
.gpw-eyebrow--lined {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	font-size: 26px;
	letter-spacing: .04em;
}
.gpw-section-head.gpw-center .gpw-eyebrow::before,
.gpw-section-head.gpw-center .gpw-eyebrow::after,
.gpw-eyebrow--lined::before,
.gpw-eyebrow--lined::after {
	content: '';
	flex: 0 1 140px;
	height: 2px;
	background: var(--gpw-border);
}

/* Buttons */
.gpw-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	font-size: 15px;
	padding: 14px 28px;
	border-radius: 999px;
	border: 2px solid transparent;
	transition: transform .15s ease, opacity .15s ease;
}
.gpw-btn:hover { transform: translateY(-2px); }
.gpw-btn--primary { background: var(--gpw-accent); color: #fff; }
.gpw-btn--outline { background: transparent; border-color: var(--gpw-heading); color: var(--gpw-heading); }

/* Hero */
.gpw-hero { padding: 64px 0 48px; overflow: hidden; }
.gpw-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.gpw-hero h1 { font-size: clamp(35px, 4.2vw, 51px); letter-spacing: -.02em; margin: 0 0 .5em; }
.gpw-hero h1 em { font-style: normal; color: var(--gpw-accent); }
.gpw-hero__subhead { font-weight: 600; color: var(--gpw-accent); font-size: 18px; margin-bottom: .6em; }
.gpw-hero__lead { color: var(--gpw-grey); max-width: 520px; margin-bottom: 32px; }
.gpw-hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.gpw-hero__art { position: relative; }
.gpw-hero__art img { border-radius: var(--gpw-radius); box-shadow: var(--gpw-shadow); aspect-ratio: 3/2; object-fit: cover; }
.gpw-hero__badge {
	position: absolute; bottom: -20px; left: -20px;
	background: var(--gpw-card-bg); border-radius: 10px; box-shadow: var(--gpw-shadow);
	padding: 14px 18px; max-width: 220px;
}
.gpw-hero__badge strong { display: block; color: var(--gpw-accent); font-size: 21px; }
.gpw-hero__badge span { display: block; font-size: 13px; color: var(--gpw-grey); margin-top: 2px; }

/* Sitewide accent: Blogsy's default blue (#216be9) -> brand pink. Uses
   !important because Blogsy's generated dynamic-styles.css redeclares it. */
:root {
	--pt-accent-color: #D41E66 !important;
}

/* Social icons (header + footer) in brand pink instead of platform blue/pink */
.pt-header-widget:not(.pt-header-widget__button) .blogsy-svg-icon,
.pt-header-widget:not(.pt-header-widget__button) .linkedin,
.pt-header-widget:not(.pt-header-widget__button) .instagram {
	color: #D41E66 !important;
	fill: #D41E66 !important;
}
.wp-block-social-links .wp-social-link.wp-social-link-linkedin,
.wp-block-social-links .wp-social-link.wp-social-link-instagram {
	background-color: #D41E66 !important;
}

/* Sidebar: Resource Library types list ([gpw_resource_types]) */
.gpw-side-types__title { margin: 0 0 14px; }
.gpw-side-types__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gpw-side-types__list a {
	display: flex; align-items: center; gap: 12px;
	padding: 10px 14px; border-radius: 12px; background: #FDF0F5; color: inherit; text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
.gpw-side-types__list a:hover { background: #D41E66; color: #fff; }
.gpw-side-types__icon { font-size: 18px; line-height: 1; }
.gpw-side-types__label { flex: 1; font-weight: 600; font-size: 15px; }
.gpw-side-types__count {
	font-size: 12px; font-weight: 700; min-width: 24px; text-align: center;
	padding: 2px 8px; border-radius: 999px; background: #fff; color: #D41E66;
}

/* The Events Calendar: brand pink instead of its default blue */
.tribe-common,
.tribe-events {
	--tec-color-accent-primary: #D41E66 !important;
	--tec-color-accent-primary-hover: #8F0F43 !important;
	--tec-color-accent-primary-active: #8F0F43 !important;
	--tec-color-accent-primary-background: #FDF0F5 !important;
	--tec-color-accent-secondary: #D41E66 !important;
	--tec-color-button-primary: #D41E66 !important;
	--tec-color-button-primary-hover: #8F0F43 !important;
	--tec-color-button-primary-active: #8F0F43 !important;
	--tec-color-link-accent: #D41E66 !important;
	--tec-color-link-accent-hover: #8F0F43 !important;
}
.tribe-events .tribe-events-c-search__button,
.tribe-common .tribe-common-c-btn {
	background-color: #D41E66 !important;
	border-color: #D41E66 !important;
}

/* Homepage "Upcoming Events" list */
.gpw-events__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gpw-event {
	display: flex; gap: 16px; align-items: flex-start;
	background: var(--gpw-card-bg); border: 1px solid var(--gpw-border);
	border-radius: var(--gpw-radius); padding: 20px; color: inherit; text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}
.gpw-event:hover { transform: translateY(-3px); box-shadow: var(--gpw-shadow); }
.gpw-event__date {
	flex: 0 0 64px; text-align: center; border-radius: 12px; background: #D41E66; color: #fff;
	padding: 8px 4px; line-height: 1.1;
}
.gpw-event__day { display: block; font-size: 26px; font-weight: 800; }
.gpw-event__month { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.gpw-event h3 { font-size: 17px; margin: 0 0 6px; line-height: 1.3; }
.gpw-event__meta { color: var(--gpw-grey); font-size: 14px; margin: 0; }
.gpw-events__more { text-align: center; margin-top: 28px; }
@media (max-width: 1024px) { .gpw-events__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gpw-events__grid { grid-template-columns: 1fr; } }

/* Simple pages (Community / Webinars) with the optional right sidebar */
.gpw-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.gpw-with-sidebar__main .pt-container { max-width: none; padding-left: 0; padding-right: 0; }
.gpw-with-sidebar__main .gpw-pillars__grid { grid-template-columns: repeat(2, 1fr); }
.gpw-with-sidebar__main .gpw-hero__copy, .gpw-with-sidebar__main .gpw-center { text-align: left; }
@media (max-width: 1024px) { .gpw-with-sidebar { grid-template-columns: 1fr; } }

/* Header "Subscribe" button: Blogsy's default blue -> brand pink */
.pt-header-widget__button .blogsy-btn.button {
	background-color: #D41E66 !important;
	border-color: #D41E66 !important;
}
.pt-header-widget__button .blogsy-btn.button .blogsy-svg-icon,
.pt-header-widget__button .blogsy-btn.button svg {
	color: #fff !important;
	fill: #fff !important;
}
.pt-header-widget__button .blogsy-btn.button:hover {
	background-color: #8F0F43 !important;
	border-color: #8F0F43 !important;
}

/* Photo-backed cards: Pillars, Resource Library homepage squares, and
   individual Resource cards. Each can set its own background photo /
   colour treatment / transparency via ACF, or fall back to a shared group
   default set in Customizer > Card Photo Backgrounds — see gpw_card_bg()
   and gpw_render_card_bg() in functions.php. The photo sits behind the
   card's normal background/text, so transparency blends it with the card
   colour rather than affecting text legibility. */
.gpw-card--photo { position: relative; overflow: hidden; }
.gpw-card-bg {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	z-index: 0; pointer-events: none;
}
.gpw-card-bg--sepia { filter: sepia(1); }
.gpw-card-bg--bw { filter: grayscale(1); }
.gpw-card-content { position: relative; z-index: 1; }

/* Four pillars */
#pillars { padding-top: 56px; padding-bottom: 56px; }
.gpw-pillars__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.gpw-pillar {
	background: var(--gpw-card-bg); border: 1px solid var(--gpw-border);
	border-radius: var(--gpw-radius); padding: 32px 24px; text-align: center;
}
.gpw-pillar__icon {
	width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%;
	background: var(--gpw-tint); color: var(--gpw-accent); display: flex; align-items: center; justify-content: center;
	font-size: 26px;
}
.gpw-pillar h3 { font-size: 18px; margin-bottom: 8px; }
.gpw-pillar p { color: var(--gpw-grey); font-size: 15px; margin-bottom: 14px; }
.gpw-pillar__link { color: var(--gpw-accent); font-weight: 700; font-size: 14px; letter-spacing: .03em; text-transform: uppercase; }

/* Resource library */
#resource-library { padding-top: 56px; padding-bottom: 56px; }
.gpw-resources__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 40px; }
.gpw-resource {
	background: var(--gpw-card-bg); border-radius: var(--gpw-radius); padding: 28px 20px;
	text-align: center; box-shadow: var(--gpw-shadow);
}
.gpw-resource__icon {
	width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
	background: var(--gpw-tint); color: var(--gpw-accent);
	display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.gpw-resource h3 { font-size: 16px; margin-bottom: 8px; }
.gpw-resource p { color: var(--gpw-grey); font-size: 15px; margin-bottom: 12px; }
.gpw-resource__link { color: var(--gpw-accent); font-weight: 700; font-size: 14px; letter-spacing: .03em; text-transform: uppercase; }

.gpw-inside {
	display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
	background: var(--gpw-card-bg); border-radius: var(--gpw-radius); padding: 20px 26px;
}
.gpw-inside__label { font-weight: 700; color: var(--gpw-heading); }
.gpw-inside__tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.gpw-inside__tags li a {
	display: inline-flex; align-items: center; gap: 7px;
	background: var(--gpw-tint); color: var(--gpw-accent);
	font-size: 14px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
	cursor: pointer; user-select: none; text-decoration: none;
	box-shadow: 0 1px 0 rgba(212,30,102,.15);
	transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.gpw-inside__tags li a:hover {
	transform: scale(0.94) translateY(1px);
	box-shadow: inset 0 2px 4px rgba(143,15,67,.35);
	background: var(--gpw-accent);
	color: #fff;
}
.gpw-inside__tags li a:active {
	transform: scale(0.9) translateY(1px);
}
.gpw-inside__icon { font-size: 15px; line-height: 1; }

/* Mission & vision */
.gpw-mv__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: center; }
.gpw-mv__card h2 { font-size: 26px; }
.gpw-mv__card p { color: var(--gpw-grey); font-size: 19px; }
.gpw-mv__card .gpw-eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	font-size: 26px;
	letter-spacing: .04em;
}
.gpw-mv__card .gpw-eyebrow::before,
.gpw-mv__card .gpw-eyebrow::after {
	content: '';
	flex: 0 1 40px;
	height: 2px;
	background: var(--gpw-border);
}
.gpw-mv__art img { border-radius: var(--gpw-radius); box-shadow: var(--gpw-shadow); aspect-ratio: 4/5; object-fit: cover; }
.gpw-quote {
	position: relative;
	background: var(--gpw-tint);
	border-radius: 16px;
	padding: 16px 46px;
	margin: 24px auto 0;
	width: fit-content;
	max-width: 100%;
	text-align: center;
}
.gpw-quote::before,
.gpw-quote::after {
	content: '\201C';
	position: absolute;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 30px;
	font-weight: 700;
	color: var(--gpw-accent);
	line-height: 1;
}
.gpw-quote::before { left: 14px; top: 14px; }
.gpw-quote::after { content: '\201D'; right: 14px; bottom: 6px; }
.gpw-quote p { color: var(--gpw-accent); font-weight: 700; font-size: 19px; margin: 0; }
.gpw-quote span { color: var(--gpw-accent); }

/* Bottom card row — split photo/colour-panel cards */
.gpw-bottom__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gpw-bottom-card {
	display: grid; grid-template-columns: 1.1fr 1fr;
	border-radius: var(--gpw-radius); overflow: hidden; min-height: 190px;
	box-shadow: var(--gpw-shadow);
}
.gpw-bottom-card__panel {
	background: var(--gpw-panel-color);
	display: flex; flex-direction: column; justify-content: center;
	padding: 20px 16px;
}
.gpw-bottom-card__icon { font-size: 20px; margin-bottom: 8px; line-height: 1; opacity: .9; }
.gpw-bottom-card__label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; line-height: 1.25; }
.gpw-bottom-card p { opacity: .85; font-size: 13px; margin-bottom: 10px; line-height: 1.4; }
.gpw-bottom-card__cta { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.gpw-bottom-card__photo { background-size: cover; background-position: center; min-height: 100%; }

/* Featured image on regular Pages (Blogsy's page.php doesn't show one by default) */
.single-page-thumbnail { margin: 20px 0 32px; }
.single-page-thumbnail img { width: 100%; height: auto; border-radius: 12px; display: block; }

/* Resource Library */
.gpw-reslib__filter-label { text-align: center; font-weight: 700; color: var(--gpw-heading); margin-bottom: 12px; }
.gpw-reslib__filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.gpw-reslib__filter {
	display: inline-flex; align-items: center; gap: 7px;
	background: var(--gpw-card-bg); border: 1px solid var(--gpw-border); color: var(--gpw-heading);
	font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 999px;
	cursor: pointer; text-decoration: none;
	transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
.gpw-reslib__filter:hover { background: var(--gpw-tint); }
.gpw-reslib__filter.is-active {
	background: var(--gpw-accent); border-color: var(--gpw-accent); color: #fff;
	transform: scale(0.97);
}
.gpw-reslib__active-note {
	text-align: center; color: var(--gpw-grey); font-size: 14px; margin: 16px 0 0;
}
.gpw-reslib__active-note strong { color: var(--gpw-heading); }
.gpw-reslib__active-note a { color: var(--gpw-accent); font-weight: 700; margin-left: 6px; }
.gpw-reslib__group { margin-bottom: 56px; }
.gpw-reslib__group:last-child { margin-bottom: 0; }
.gpw-reslib__group-title {
	display: flex; align-items: center; gap: 10px;
	font-size: 20px; margin-bottom: 20px; padding-bottom: 12px;
	border-bottom: 1px solid var(--gpw-border);
}
.gpw-reslib__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gpw-reslib__card {
	display: block; background: var(--gpw-card-bg); border: 1px solid var(--gpw-border);
	border-radius: var(--gpw-radius); padding: 22px 20px; color: inherit;
	transition: transform .15s ease, box-shadow .15s ease;
}
.gpw-reslib__card:hover { transform: translateY(-3px); box-shadow: var(--gpw-shadow); }
.gpw-reslib__card-icon {
	display: flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 50%; background: var(--gpw-tint);
	font-size: 19px; margin-bottom: 14px;
}
.gpw-reslib__card h3 { font-size: 16px; margin-bottom: 8px; line-height: 1.3; }
.gpw-reslib__card p { color: var(--gpw-grey); font-size: 14px; margin-bottom: 12px; }
.gpw-reslib__card-source { color: var(--gpw-accent); font-weight: 700; font-size: 13px; }

@media (max-width: 1024px) { .gpw-reslib__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gpw-reslib__grid { grid-template-columns: 1fr; } }

/* About page */
.gpw-hero--about h1 { font-size: 26px; }
.gpw-pillars__grid--3 { grid-template-columns: repeat(3, 1fr); }
.gpw-about-vision { background: var(--gpw-accent-dark); }
.gpw-about-vision .gpw-eyebrow { color: #fff; }
.gpw-about-vision .gpw-eyebrow--lined::before,
.gpw-about-vision .gpw-eyebrow--lined::after { background: rgba(255,255,255,.3); }
.gpw-about-vision h2 { color: #fff; font-size: 30px; margin-bottom: 20px; }
.gpw-about-vision .gpw-hero__lead { color: rgba(255,255,255,.85); }
.gpw-about-belief {
	background: #fff; border-radius: var(--gpw-radius); box-shadow: var(--gpw-shadow);
	padding: 32px 30px; margin-top: 40px;
}
.gpw-about-belief .gpw-eyebrow { color: var(--gpw-accent) !important; }
.gpw-about-belief p { color: var(--gpw-grey); margin-bottom: 8px; }
.gpw-about-belief__question {
	font-style: italic; font-weight: 700; color: var(--gpw-heading) !important;
	font-size: 19px; margin-bottom: 0 !important;
}
.gpw-quote--card {
	background: #fff; box-shadow: var(--gpw-shadow);
}
.gpw-quote--card::before,
.gpw-quote--card::after { color: var(--gpw-accent); }
.gpw-quote--card p { color: var(--gpw-accent-dark); }

/* Simple content pages (Webinars, Community) */
.gpw-hero--simple { padding: 72px 0 56px; text-align: center; }
.gpw-hero--simple .gpw-hero__lead { max-width: 640px; }
.gpw-simple__form { margin-top: 28px; text-align: left; }
.gpw-simple__form .wpforms-container { max-width: 460px; margin: 0 auto; }
.gpw-simple__form .wpforms-submit {
	background: var(--gpw-accent) !important;
	border-color: var(--gpw-accent) !important;
}
.gpw-simple__form .wpforms-submit:hover {
	background: var(--gpw-accent-dark) !important;
	border-color: var(--gpw-accent-dark) !important;
}
.gpw-simple__form .wpforms-field-label {
	color: var(--gpw-heading);
}

/* Responsive */
@media (max-width: 1024px) {
	.gpw-pillars__grid { grid-template-columns: repeat(2, 1fr); }
	.gpw-resources__grid { grid-template-columns: repeat(3, 1fr); }
	.gpw-mv__grid { grid-template-columns: 1fr; }
	.gpw-mv__art { order: -1; max-width: 420px; margin: 0 auto; }
	.gpw-bottom__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
	.gpw-hero__grid { grid-template-columns: 1fr; }
	.gpw-hero__art { order: -1; }
	.gpw-pillars__grid { grid-template-columns: 1fr; }
	.gpw-resources__grid { grid-template-columns: repeat(2, 1fr); }
	.gpw-bottom__grid { grid-template-columns: 1fr; }
	/* Mobile: photo fills the whole card, text panel sits below/over it with adjustable transparency */
	.gpw-bottom-card { display: flex; flex-direction: column; justify-content: flex-end; position: relative; min-height: 300px; }
	.gpw-bottom-card__photo { position: absolute; inset: 0; min-height: 0; z-index: 0; }
	.gpw-bottom-card__panel {
		position: relative; z-index: 1; padding: 20px 18px;
		background: color-mix(in srgb, var(--gpw-panel-color) var(--gpw-panel-opacity, 100%), transparent);
	}
	.gpw-hero__badge { position: static; margin-top: 16px; max-width: none; }
}

/* "Our Four Pillars" page: pillar headings styled like the homepage
   "Our Mission" / "Our Vision" eyebrows — centred, with a short rule on
   either side. Resets Blogsy's heading style-4 decorations (blue dot,
   blue bar and bottom border). */
.gpw-page-our-four-pillars .single-content-inner h2.wp-block-heading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	text-align: center;
	font-size: 26px !important; /* beats the editor's has-medium-font-size */
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #D41E66;
	line-height: 1.2;
	padding: 0;
	border-bottom: 0;
	margin-top: 56px;
}
.gpw-page-our-four-pillars .single-content-inner h2.wp-block-heading br { display: none; }
.gpw-page-our-four-pillars .single-content-inner h2.wp-block-heading::before,
.gpw-page-our-four-pillars .single-content-inner h2.wp-block-heading::after {
	content: '';
	position: static;
	flex: 0 1 40px;
	width: auto;
	height: 2px;
	border-radius: 0;
	transform: none;
	background: #F7D5E4;
}
.gpw-pillars-quote { margin: 40px 0 8px; }
.gpw-pillars-quote .gpw-quote p { margin: 0; }

/* Webinars page — full-width recording rows: video preview (opens the
   video in a new tab) on the left, date / logo / title / text on the
   right. Photo background + border come from the Resource's own fields. */
.gpw-webinar-list { display: flex; flex-direction: column; gap: 32px; }
/* The row itself is transparent; the white bordered box is a separate
   .gpw-webinar__panel layer that is inset top and bottom, so the video
   preview overhangs it above and below. */
.gpw-webinar {
	position: relative;
	display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 28px; align-items: stretch;
	padding: 0 20px 0 18px;
	transition: transform .2s ease;
}
.gpw-webinar__panel {
	position: absolute; top: 28px; bottom: 28px; left: 0; right: 0; z-index: 0;
	background: var(--gpw-card-bg); border-radius: 22px;
	box-shadow: 0 2px 12px rgba(28,25,36,.06);
	transition: box-shadow .2s ease;
}
.gpw-webinar:hover { transform: translateY(-3px); }
/* "New" label, straddling the top edge of the panel at the right. */
.gpw-webinar__new {
	position: absolute; top: 14px; right: 28px; z-index: 2;
	background: #D41E66; color: #fff; border-radius: 999px; padding: 6px 16px;
	font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2;
	box-shadow: 0 4px 12px rgba(212,30,102,.35);
}
.gpw-webinar:hover .gpw-webinar__panel { box-shadow: 0 12px 32px rgba(28,25,36,.14); }
/* Video preview: at least 16:9, and stretched to the full row height when
   the text is taller — so it always overhangs the panel by the same amount. */
.gpw-webinar__media {
	position: relative; z-index: 1; display: block; border-radius: 18px; overflow: hidden;
	background: linear-gradient(135deg, #8F0F43 0%, #D41E66 100%);
	box-shadow: 0 6px 20px rgba(28,25,36,.18);
}
/* Text column: the Resource's background photo is confined to this area.
   The vertical margin keeps it inside the (inset) white panel. */
.gpw-webinar__body {
	position: relative; z-index: 1;
	display: flex; flex-direction: column; justify-content: center;
	border-radius: 14px; padding: 16px 20px; margin: 44px 0;
}
.gpw-webinar__media::before { content: ''; display: block; padding-top: 56.25%; }
.gpw-webinar__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.gpw-webinar__media:hover img { transform: scale(1.04); }
.gpw-webinar__media::after {
	content: ''; position: absolute; inset: 0; background: rgba(28,25,36,.18); transition: background .2s ease;
}
.gpw-webinar__media:hover::after { background: rgba(28,25,36,.05); }
.gpw-webinar__play {
	position: absolute; top: 50%; left: 50%; z-index: 1; width: 68px; height: 68px; margin: -34px 0 0 -34px;
	border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 4px 18px rgba(0,0,0,.25);
	transition: transform .2s ease;
}
.gpw-webinar__play::before {
	content: ''; position: absolute; top: 50%; left: 50%; margin: -12px 0 0 -7px;
	border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #D41E66;
}
.gpw-webinar__media:hover .gpw-webinar__play { transform: scale(1.08); }
.gpw-webinar__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; min-height: 24px; }
.gpw-webinar__date { font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gpw-grey); }
.gpw-webinar__logo { max-height: 44px; max-width: 150px; width: auto; object-fit: contain; margin-left: auto; }
.gpw-home .gpw-webinar__title { color: #D41E66; font-size: 24px; margin: 0 0 10px; }
.gpw-webinar__text { color: var(--gpw-grey); font-size: 16px; margin-bottom: 20px; }
.gpw-webinar__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.gpw-webinar__source { color: var(--gpw-grey); font-size: 14px; }

@media (max-width: 860px) {
	/* Stacked: video overhangs the top of the panel only. */
	.gpw-webinar { grid-template-columns: 1fr; gap: 0; padding: 0 14px; }
	.gpw-webinar__panel { top: 48px; bottom: 0; }
	.gpw-webinar__body { margin: 8px 0 14px; padding: 12px 6px; }
	.gpw-home .gpw-webinar__title { font-size: 20px; }
}

/* Webinars page — sort / page-size toolbar above the recordings, and
   pagination below. Pill "segmented" buttons in the brand pinks. */
.gpw-wtoolbar {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	margin: 0 0 36px; padding: 12px 16px;
	background: #fff; border: 1px solid var(--gpw-border); border-radius: 999px;
	box-shadow: 0 4px 18px rgba(212,30,102,.08);
}
.gpw-wtoolbar__group { display: flex; align-items: center; gap: 12px; }
.gpw-wtoolbar__label {
	font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gpw-accent-dark);
	padding-left: 6px; white-space: nowrap;
}
.gpw-wtoolbar__seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--gpw-tint); border-radius: 999px; }
.gpw-wtoolbar__btn {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px;
	padding: 8px 16px; border-radius: 999px;
	font-weight: 600; font-size: 14px; line-height: 1.2; color: var(--gpw-accent-dark);
	transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.gpw-home a.gpw-wtoolbar__btn:hover { background: #fff; color: var(--gpw-accent); }
.gpw-home a.gpw-wtoolbar__btn.is-active {
	background: linear-gradient(135deg, #D41E66 0%, #8F0F43 100%); color: #fff;
	box-shadow: 0 4px 12px rgba(212,30,102,.35);
}

.gpw-wpager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.gpw-wpager__btn {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px;
	border-radius: 999px; background: #fff; border: 1px solid var(--gpw-border);
	font-weight: 700; font-size: 15px; color: var(--gpw-accent-dark);
	transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.gpw-home a.gpw-wpager__btn:hover { transform: translateY(-2px); color: var(--gpw-accent); box-shadow: 0 6px 14px rgba(212,30,102,.18); }
.gpw-home a.gpw-wpager__btn.is-active {
	background: linear-gradient(135deg, #D41E66 0%, #8F0F43 100%); border-color: transparent; color: #fff;
	box-shadow: 0 4px 12px rgba(212,30,102,.35);
}
.gpw-wpager__btn--nav { padding: 0 20px; }
.gpw-wpager__info { text-align: center; color: var(--gpw-grey); font-size: 14px; margin: 14px 0 0; }

@media (max-width: 700px) {
	.gpw-wtoolbar { border-radius: 22px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
	.gpw-wtoolbar__group { flex-direction: column; align-items: stretch; gap: 8px; }
	.gpw-wtoolbar__seg { display: flex; }
	.gpw-wtoolbar__btn { flex: 1; min-width: 0; padding: 8px 6px; }
}

/* Webinars toolbar — search field in the middle. */
.gpw-wsearch {
	flex: 1 1 220px; max-width: 380px; position: relative;
	display: flex; align-items: center; gap: 4px;
	background: var(--gpw-tint); border: 2px solid transparent; border-radius: 999px; padding: 4px 4px 4px 14px;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.gpw-wsearch:focus-within { background: #fff; border-color: #D41E66; box-shadow: 0 0 0 4px rgba(212,30,102,.12); }
.gpw-wsearch__icon { flex: none; color: var(--gpw-accent); }
.gpw-home .gpw-wsearch__input {
	flex: 1; min-width: 0; width: 100%; height: 36px; margin: 0; padding: 0 6px;
	background: transparent; border: 0; box-shadow: none; outline: none;
	font-size: 14px; color: var(--gpw-heading);
}
.gpw-wsearch__input::placeholder { color: #9b7d8a; }
.gpw-wsearch__input::-webkit-search-cancel-button { display: none; }
.gpw-home a.gpw-wsearch__clear {
	flex: none; display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; border-radius: 50%; font-size: 18px; line-height: 1;
	color: var(--gpw-accent-dark); background: rgba(212,30,102,.1);
}
.gpw-home a.gpw-wsearch__clear:hover { background: rgba(212,30,102,.2); }
.gpw-home .gpw-wsearch__btn {
	flex: none; height: 36px; margin: 0; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
	background: linear-gradient(135deg, #D41E66 0%, #8F0F43 100%); color: #fff;
	font-weight: 600; font-size: 14px; line-height: 1;
	box-shadow: 0 4px 12px rgba(212,30,102,.3); transition: transform .15s ease;
}
.gpw-home .gpw-wsearch__btn:hover { transform: translateY(-1px); }
.gpw-wsearch__summary { text-align: center; color: var(--gpw-grey); margin: -16px 0 28px; }
.gpw-wsearch__summary strong { color: var(--gpw-heading); }
.gpw-wsearch__summary a { color: var(--gpw-accent); font-weight: 700; margin-left: 8px; }

@media (max-width: 1239px) {
	/* Not enough room for three in a row: search takes its own full row on top. */
	.gpw-wtoolbar { border-radius: 26px; }
	.gpw-wsearch { order: -1; flex-basis: 100%; max-width: none; }
}
@media (min-width: 1240px) {
	/* Wide screens: sort | search | show, with the search exactly centred. */
	.gpw-wtoolbar { display: grid; grid-template-columns: 1fr minmax(200px, 340px) 1fr; }
	.gpw-wtoolbar > .gpw-wtoolbar__group:last-child { justify-self: end; }
	.gpw-wsearch { max-width: none; }
}

/* Sponsors bar — above the footer on every page (inc/sponsors.php).
   Colours are hard-coded because it sits outside the .gpw-home wrapper. */
.gpw-sponsors {
	padding: 64px 0 72px; background: linear-gradient(180deg, #fff 0%, #FDF0F5 100%);
	border-top: 1px solid #F7D5E4;
}
.gpw-sponsors__head { max-width: 640px; margin: 0 auto 36px; text-align: center; }
.gpw-sponsors__title {
	display: flex; align-items: center; justify-content: center; gap: 18px;
	margin: 0 0 10px; color: #D41E66; font-size: 24px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.2;
}
.gpw-sponsors__title::before,
.gpw-sponsors__title::after { content: ''; flex: 0 1 110px; height: 2px; background: #F7D5E4; }
.gpw-sponsors__text { margin: 0; color: #4A4A4A; font-size: 16px; }
.gpw-sponsors__list {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
	list-style: none; margin: 0; padding: 0;
}
.gpw-sponsors__item { margin: 0; padding: 0; }
.gpw-sponsors__card {
	display: flex; align-items: center; justify-content: center;
	width: var(--gpw-sp-w, 190px); height: var(--gpw-sp-h, 100px); padding: var(--gpw-sp-pad, 18px 22px);
	background: #fff; border: 1px solid #F7D5E4; border-radius: 18px;
	box-shadow: 0 2px 10px rgba(28,25,36,.05);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.gpw-sponsors__card:hover { transform: translateY(-3px); border-color: #D41E66; box-shadow: 0 10px 24px rgba(212,30,102,.16); }
.gpw-sponsors__logo { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: filter .25s ease, opacity .25s ease; }
.gpw-sponsors--grey .gpw-sponsors__logo { filter: grayscale(1); opacity: .75; }
.gpw-sponsors--grey .gpw-sponsors__card:hover .gpw-sponsors__logo { filter: none; opacity: 1; }

@media (max-width: 600px) {
	.gpw-sponsors { padding: 48px 0 56px; }
	.gpw-sponsors__title { font-size: 20px; gap: 12px; }
	.gpw-sponsors__title::before, .gpw-sponsors__title::after { flex-basis: 40px; }
	.gpw-sponsors__list { gap: 12px; }
	.gpw-sponsors--wrap .gpw-sponsors__card { width: calc(50vw - 30px); max-width: var(--gpw-sp-w, 190px); height: calc(var(--gpw-sp-h, 100px) * .84); padding: 14px; }
}

/* Sponsors bar — logo sizes (Customizer > Sponsors Bar > Logo size). */
.gpw-sponsors--size-l { --gpw-sp-w: 190px; --gpw-sp-h: 100px; --gpw-sp-pad: 18px 22px; --gpw-sp-gap: 20px; }
.gpw-sponsors--size-m { --gpw-sp-w: 150px; --gpw-sp-h: 80px;  --gpw-sp-pad: 14px 18px; --gpw-sp-gap: 16px; }
.gpw-sponsors--size-s { --gpw-sp-w: 112px; --gpw-sp-h: 60px;  --gpw-sp-pad: 10px 14px; --gpw-sp-gap: 12px; }
.gpw-sponsors--size-s .gpw-sponsors__card { border-radius: 14px; }
.gpw-sponsors__list { gap: var(--gpw-sp-gap, 20px); }

/* Sponsors bar — endless scrolling strip (many sponsors). The track holds
   the logo set twice and slides left by exactly one set, then loops.
   Pauses on hover/focus; soft fade at both edges. */
.gpw-sponsors__viewport {
	overflow: hidden; padding: 8px 0 12px;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.gpw-sponsors__track {
	display: flex; gap: var(--gpw-sp-gap, 20px); width: max-content;
	list-style: none; margin: 0; padding: 0;
	animation: gpw-sponsors-slide var(--gpw-sponsors-duration, 36s) linear infinite;
}
/* The gap after the last item keeps the loop seamless: pad the track end. */
.gpw-sponsors__track { padding-right: var(--gpw-sp-gap, 20px); }
.gpw-sponsors__viewport:hover .gpw-sponsors__track,
.gpw-sponsors__viewport:focus-within .gpw-sponsors__track { animation-play-state: paused; }
.gpw-sponsors--scroll .gpw-sponsors__item { flex: none; }
@keyframes gpw-sponsors-slide {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
/* Visitors who prefer less motion get a strip they can swipe/scroll instead. */
@media (prefers-reduced-motion: reduce) {
	.gpw-sponsors__viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.gpw-sponsors__track { animation: none; }
}
