<?php
/**
 * Online Programs listing + homepage — match Healing Practices / Events chrome.
 */

:root {
	--lwc-op-green: #73ab89;
	--lwc-op-purple: #a877de;
	--lwc-op-mint: #f0f5e1;
	--lwc-op-grad: linear-gradient(90deg, var(--lwc-op-green) 0%, var(--lwc-op-purple) 100%);
	--lwc-op-serif: "Cormorant Garamond", "Noto Serif TC", "Songti TC", Georgia, serif;
	--lwc-op-sans: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html:has(body.lwc-op-listing-page),
body.lwc-op-listing-page,
body.lwc-online-programs-listing,
body.lwc-op-listing-page #page,
body.lwc-op-listing-page .site,
body.lwc-op-listing-page .site-content,
body.lwc-op-listing-page #content,
body.lwc-op-listing-page .site-main {
	background-color: var(--lwc-op-mint) !important;
}

/* —— Listing page —— */
.lwc-op-listing {
	--lwc-op-max: 1440px;
	padding: 80px 120px;
	background: transparent;
	font-family: var(--lwc-op-sans);
}

.lwc-op-listing-inner {
	max-width: var(--lwc-op-max);
	width: 100%;
	margin: 0 auto;
}

.lwc-op-listing-head {
	padding: 0 0 20px;
	border-bottom: 0.8px solid #73ab89;
}

.lwc-op-listing-title {
	display: inline-block;
	margin: 0;
	padding: 0;
	font-family: var(--lwc-op-serif);
	font-size: 48px;
	font-weight: 700;
	line-height: 58px;
	color: #73ab89;
	background-image: linear-gradient(90deg, #73ab89, #a877de 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.lwc-op-listing-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 24px;
	margin: 80px 0;
	padding: 0;
	background: none;
	box-shadow: none;
}

.lwc-op-filter {
	position: relative;
	width: max-content;
	min-width: 200px;
	flex: 0 0 auto;
	z-index: 2;
}

.lwc-op-filter.is-open {
	z-index: 20;
}

.lwc-op-pill {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	box-sizing: border-box;
	width: auto;
	min-width: 200px;
	height: auto;
	min-height: 50px;
	padding: 8px 36px 10px 25px;
	border: 0.8px solid #aaaaaa;
	border-radius: 10px;
	background: linear-gradient(90deg, #73ab89 0%, #a877de 100%);
	color: #fff;
	cursor: pointer;
	text-align: left;
	overflow: visible;
}

.lwc-op-pill-face {
	display: block;
	color: #fff;
	-webkit-text-fill-color: #fff;
	font-family: var(--lwc-op-serif);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.45;
	padding: 0;
	pointer-events: none;
	white-space: nowrap;
	overflow: visible;
}

.lwc-op-pill::after {
	content: "";
	position: absolute;
	right: 18px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

.lwc-op-filter-native {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
	overflow: hidden;
}

.lwc-op-filter-drop {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: auto;
	width: max-content;
	min-width: 100%;
	max-width: none;
	z-index: 30;
	background: #fff;
	border: 1px solid #73ab89;
	border-top: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	box-sizing: border-box;
	overflow: hidden;
}

.lwc-op-filter.is-open .lwc-op-filter-drop {
	display: block;
}

.lwc-op-filter-search-wrap {
	display: block;
	padding: 8px;
	box-sizing: border-box;
}

.lwc-op-filter-search {
	display: block;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	height: auto;
	margin: 0;
	padding: 4px;
	border: 1px solid #aaa;
	border-radius: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: #18181b;
	background: #fff;
	font-family: var(--lwc-op-sans);
	box-sizing: border-box;
	box-shadow: none;
	outline: none;
}

.lwc-op-filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 280px;
	overflow-y: auto;
}

.lwc-op-filter-list li {
	margin: 0;
	padding: 14px 20px;
	font-family: var(--lwc-op-sans);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: #18181b;
	white-space: nowrap;
	cursor: pointer;
}

.lwc-op-filter-list li.is-selected,
.lwc-op-filter-list li:hover {
	background: #f0f5e1;
}

.lwc-op-filter-list li.is-hidden {
	display: none;
}

.lwc-op-filter-submit.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.lwc-op-listing-empty {
	margin: 2rem 0;
	padding: 1.5rem;
	background: #fff;
	border-radius: 16px;
	color: #52525b;
	text-align: center;
}

.lwc-op-listing-grid,
.lwc-op-home-grid,
.lwdp-cards.lwdp-practices-grid.lwc-op-listing-grid,
.lwdp-cards.lwdp-practices-grid.lwc-op-home-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}

/* Practice/Event loop card: gradient name bar + white body */
.lwc-op-listing-grid .lwc-op-public-card,
.lwc-op-home-grid .lwc-op-public-card,
.lwc-op-public-card {
	height: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	cursor: pointer;
}

.lwc-op-public-card::before {
	display: none;
}

.lwc-op-public-card .lwc-op-card-author {
	display: block;
	margin: 0;
	padding: 14px 16px;
	text-align: center;
	background: linear-gradient(90deg, #73ab89 0%, #a877de 100%);
	color: #f7f3fa;
	-webkit-text-fill-color: #f7f3fa;
	font-family: var(--lwc-op-serif);
	font-size: 32px;
	font-weight: 700;
	text-shadow: 0 1px 3px rgba(24, 24, 27, 0.28);
}

.lwc-op-public-card .lwc-op-card-author a {
	color: #f7f3fa;
	-webkit-text-fill-color: #f7f3fa;
	text-decoration: none;
}

.lwc-op-public-card .lwc-op-card-author a:hover {
	text-decoration: underline;
}

.lwc-op-public-card .lwc-op-public-card-thumb {
	width: 100%;
	aspect-ratio: 16 / 10;
	background: #1a1520;
	overflow: hidden;
	flex: 0 0 auto;
}

.lwc-op-public-card .lwc-op-public-card-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.lwc-op-public-card .lwdp-card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 22px 22px 20px;
	background: #fff;
}

.lwc-op-public-card .lwc-op-loop-title,
.lwc-op-public-card .lwdp-card-title {
	margin: 0 0 0.45rem;
	font-family: var(--lwc-op-serif);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.25;
	color: #73ab89;
	background-image: linear-gradient(90deg, #73ab89, #a877de 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.lwc-op-public-card .lwc-op-loop-title a,
.lwc-op-public-card .lwdp-card-title a {
	text-decoration: none;
	color: #73ab89;
	background-image: linear-gradient(90deg, #73ab89, #a877de 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.lwc-op-public-card .lwdp-card-meta {
	padding-top: 0.15rem;
	margin-bottom: 0.35rem;
	color: #18181b;
}

.lwc-op-public-card .lwdp-card-desc {
	margin: 0.35rem 0 1rem;
	padding: 0;
	font-size: 16px;
	line-height: 1.5;
	color: #18181b;
	font-family: var(--lwc-op-sans);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.lwc-op-public-card .lwdp-card-sep {
	margin-top: auto;
	margin-bottom: 14px;
	padding-top: 0.25rem;
	border-top: 0;
	border-bottom: 1px dashed #cfcfcf;
}

.lwc-op-public-card .lwdp-card-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem 0.75rem;
}

.lwc-op-public-card .lwdp-card-price {
	flex: 1 1 auto;
	min-width: 4.5rem;
}

.lwc-op-public-card .lwdp-btn-register {
	flex: 0 0 auto;
	margin-left: auto;
	white-space: nowrap;
	background: #ffcd12;
	color: #fff;
	-webkit-text-fill-color: #fff;
	border-radius: 11px;
	padding: 8px 18px;
}

.lwc-op-public-card .lwdp-icon-bookmark svg {
	stroke: #8b5cf6;
}

.lwc-op-public-card .lwdp-card-bookmark:hover .lwdp-icon-bookmark svg {
	stroke: #22c55e;
}

.lwc-op-public-card .yith-wcwl-add-to-wishlist.exists .lwdp-icon-bookmark svg path,
.lwc-op-public-card .exists .lwdp-icon-bookmark svg path {
	fill: #8b5cf6;
	stroke: #8b5cf6;
}

.lwc-op-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.45rem;
	margin: 2.25rem 0 0;
}

.lwc-op-page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	min-height: 2.4rem;
	padding: 0.35rem 0.7rem;
	border-radius: 8px;
	background: #fff;
	color: #18181b;
	text-decoration: none;
	font-weight: 650;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.lwc-op-page-link.is-current {
	background: #ffcd12;
}

.lwc-op-page-link:hover {
	opacity: 0.9;
}

/* —— Homepage section: match Healing Practices Elementor block —— */
#lwc-op-home.lwc-op-home-section {
	--lwc-op-serif: "Cormorant Garamond", "Noto Serif TC", "Songti TC", Georgia, serif;
	--lwc-op-sans: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 80px 120px;
	background: #f7f3fa;
	font-family: "Lato", sans-serif;
}

#lwc-op-home .lwc-op-home-inner {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

#lwc-op-home .lwc-op-home-title {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	text-align: center;
	font-family: "Cormorant Garamond", "Noto Serif TC", Georgia, serif;
	font-size: 48px;
	font-weight: 700;
	line-height: 58px;
	color: #000;
	-webkit-text-fill-color: #000;
}

#lwc-op-home .lwc-op-home-sub {
	margin: 20px 0 0;
	padding: 0;
	text-align: center;
	font-family: Lato, sans-serif;
	font-size: 20px;
	font-weight: 400;
	line-height: 28px;
	color: #000;
}

#lwc-op-home .lwc-op-home-grid,
#lwc-op-home .lwdp-cards.lwdp-practices-grid.lwc-op-home-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 50px 60px;
	margin-top: 70px;
	align-items: stretch;
}

#lwc-op-home .lwc-op-public-card {
	border-radius: 14px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	background: #fff;
	overflow: hidden;
	min-width: 0;
	max-width: 100%;
}

#lwc-op-home .lwc-op-card-author,
#lwc-op-home .lwc-op-card-author a {
	font-family: "Cormorant Garamond", "Noto Serif TC", Georgia, serif;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	color: #f7f3fa;
	-webkit-text-fill-color: #f7f3fa;
}

#lwc-op-home .lwc-op-card-author {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80px;
	padding: 10px 16px 0;
	text-align: center;
	background: linear-gradient(90deg, rgb(178, 212, 171) 0%, rgba(194, 160, 232, 0.73) 100%);
}

#lwc-op-home .lwc-op-loop-title,
#lwc-op-home .lwc-op-loop-title a,
#lwc-op-home .lwdp-card-title,
#lwc-op-home .lwdp-card-title a {
	margin: 0 0 0.45rem;
	font-family: "Cormorant Garamond", "Noto Serif TC", Georgia, serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 38px;
	background-image: linear-gradient(90deg, #73ab89, #a877de 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: #73ab89;
}

#lwc-op-home .lwdp-card-meta {
	font-family: Lato, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	color: #000;
}

#lwc-op-home .lwdp-card-desc {
	font-family: Lato, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
	color: #000;
	margin-bottom: 1rem;
}

#lwc-op-home .lwdp-card-price,
#lwc-op-home .lwdp-card-price .woocommerce-Price-amount,
#lwc-op-home .lwdp-card-price .woocommerce-Price-currencySymbol {
	font-family: "Cormorant Garamond", "Noto Serif TC", Georgia, serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
	color: #000;
	-webkit-text-fill-color: #000;
}

#lwc-op-home .lwc-op-public-card .lwdp-btn-register {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	padding: 8px 15px;
	border-radius: 11px;
	background: #ffcd12;
	color: #fff;
	-webkit-text-fill-color: #fff;
	font-family: Lato, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}

#lwc-op-home .lwc-op-home-more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 48px;
}

#lwc-op-home .lwc-op-home-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 15px;
	border-radius: 10px;
	background: #cecdce;
	background-image: none;
	color: #fff;
	-webkit-text-fill-color: #fff;
	font-family: Lato, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	text-align: center;
	text-decoration: none;
}

#lwc-op-home .lwc-op-home-more:hover {
	opacity: 0.92;
}

@media (max-width: 1200px) {
	.lwc-op-listing {
		padding: 56px 40px 64px;
	}
}

/* Laptop (Elementor additional breakpoint): keep 3 cards, tighten side padding like Practices */
@media (max-width: 1366px) {
	#lwc-op-home.lwc-op-home-section {
		padding: 60px 15px 80px;
	}
}

@media (max-width: 1024px) {
	.lwc-op-listing-grid,
	.lwdp-cards.lwdp-practices-grid.lwc-op-listing-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.lwc-op-listing {
		padding: 48px 24px 56px;
	}

	.lwc-op-listing-title {
		font-size: 40px;
		line-height: 48px;
	}

	.lwc-op-listing-filters {
		margin: 48px 0;
		gap: 16px;
	}

	#lwc-op-home.lwc-op-home-section {
		padding: 48px 15px 64px;
	}

	#lwc-op-home .lwc-op-home-title {
		font-size: 34px;
		line-height: 44px;
	}

	#lwc-op-home .lwc-op-home-sub {
		font-size: 16px;
		line-height: 22px;
	}

	#lwc-op-home .lwc-op-home-grid,
	#lwc-op-home .lwdp-cards.lwdp-practices-grid.lwc-op-home-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 36px;
		margin-top: 50px;
	}

	#lwc-op-home .lwc-op-card-author,
	#lwc-op-home .lwc-op-card-author a {
		font-size: 30px;
	}

	#lwc-op-home .lwc-op-loop-title,
	#lwc-op-home .lwc-op-loop-title a,
	#lwc-op-home .lwdp-card-title,
	#lwc-op-home .lwdp-card-title a {
		font-size: 24px;
		line-height: 32px;
	}

	#lwc-op-home .lwc-op-home-more {
		font-size: 18px;
	}
}

@media (max-width: 767px) {
	.lwc-op-listing-grid,
	.lwdp-cards.lwdp-practices-grid.lwc-op-listing-grid {
		grid-template-columns: 1fr;
	}

	.lwc-op-listing-filters {
		justify-content: stretch;
		margin: 32px 0 40px;
		gap: 12px;
	}

	.lwc-op-listing {
		padding: 32px 20px 48px;
	}

	.lwc-op-listing-title {
		font-size: 32px;
		line-height: 40px;
	}

	#lwc-op-home.lwc-op-home-section {
		padding: 40px 15px 56px;
	}

	#lwc-op-home .lwc-op-home-title {
		font-size: 28px;
		line-height: 38px;
	}

	#lwc-op-home .lwc-op-home-sub {
		font-size: 16px;
		line-height: 22px;
	}

	#lwc-op-home .lwc-op-home-grid,
	#lwc-op-home .lwdp-cards.lwdp-practices-grid.lwc-op-home-grid {
		grid-template-columns: minmax(0, 1fr);
		margin-top: 36px;
		gap: 36px;
	}

	#lwc-op-home .lwc-op-card-author,
	#lwc-op-home .lwc-op-card-author a {
		font-size: 24px;
	}

	#lwc-op-home .lwc-op-card-author {
		min-height: 64px;
	}

	#lwc-op-home .lwc-op-loop-title,
	#lwc-op-home .lwc-op-loop-title a,
	#lwc-op-home .lwdp-card-title,
	#lwc-op-home .lwdp-card-title a {
		font-size: 20px;
		line-height: 28px;
	}

	.lwc-op-pill {
		width: 100%;
		min-width: 0;
	}

	.lwc-op-filter {
		width: 100%;
		min-width: 0;
		flex: 1 1 100%;
	}

	.lwc-op-listing-grid .lwc-op-public-card .lwdp-card-footer .lwdp-btn-register {
		width: 100%;
		margin-left: 0;
		text-align: center;
		justify-content: center;
	}
}
