/* Join / Subscription template (page-subscription.php)
   Goal: minimal, modern, easy-to-scan, trustworthy.
*/

/* Header: match Advanced Search */
body.page-template-page-subscription .pd-single-header {
	background: #fff;
	border-bottom: 1px solid #e2e8f0;
	position: relative;
	z-index: 3000;
}

body.page-template-page-subscription .pd-single-header__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px;
}

body.page-template-page-subscription .pd-single-header__menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 18px;
}

body.page-template-page-subscription .pd-single-header__link {
	color: #0f172a;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
	font-weight: 600;
	text-decoration: none;
}

body.page-template-page-subscription .pd-single-header__link:hover,
body.page-template-page-subscription .pd-single-header__link:focus {
	text-decoration: underline;
}

body.page-template-page-subscription .pd-single-header__item {
	position: relative;
}

body.page-template-page-subscription .pd-single-header__submenu {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 10px;
	min-width: 220px;
	box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
	z-index: 3001;
	list-style: none;
	margin: 0;
}

body.page-template-page-subscription .pd-single-header__item--has-submenu.pd-menu-open .pd-single-header__submenu {
	display: block;
}

body.page-template-page-subscription .pd-single-header__submenu-link {
	display: block;
	padding: 8px 10px;
	border-radius: 10px;
	color: #0f172a;
	font-weight: 700;
	text-decoration: none;
}

body.page-template-page-subscription .pd-single-header__submenu-link:hover,
body.page-template-page-subscription .pd-single-header__submenu-link:focus {
	background: #f8fafc;
}

/* Logo (header-single-listing.php uses a CSS background logo) */
body.page-template-page-subscription a.custom-header {
	width: 173px;
	height: 50px !important;
	background-image: url(/wp-content/uploads/2023/11/Group-56132.svg);
	background-repeat: no-repeat;
	background-size: contain;
}

body.page-template-page-subscription a.custom-header img {
	display: none;
}

/* Hero */
body.page-template-page-subscription .pd-subscription-hero {
	position: relative;
	text-align: center;
	background-size: cover;
	background-position: center;
	padding: 92px 0 90px;
	margin-bottom: 18px;
}

body.page-template-page-subscription .pd-subscription-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(2, 8, 36, 0.62) 0%, rgba(2, 8, 36, 0.42) 100%);
	pointer-events: none;
}

body.page-template-page-subscription .pd-subscription-hero .page-title {
	position: relative;
	z-index: 1;
	color: #fff;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
	font-weight: 700;
	font-size: 44px;
	line-height: 1.1;
	margin: 0;
}

body.page-template-page-subscription .pd-join-hero-subheading {
	position: relative;
	z-index: 1;
	color: rgba(255, 255, 255, 0.94);
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
	max-width: 860px;
	margin: 16px auto 0;
	font-size: 15px;
	line-height: 1.6;
	padding: 0 20px;
}

body.page-template-page-subscription .pd-join-hero-supporting {
	position: relative;
	z-index: 1;
	color: rgba(255, 255, 255, 0.82);
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
	max-width: 860px;
	margin: 10px auto 0;
	font-size: 12px;
	line-height: 1.65;
	padding: 0 20px;
}

body.page-template-page-subscription .pd-join-hero-footnote {
	position: relative;
	z-index: 1;
	color: rgba(255, 255, 255, 0.72);
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
	max-width: 860px;
	margin: 6px auto 0;
	font-size: 11px;
	line-height: 1.6;
	padding: 0 20px;
}

body.page-template-page-subscription .pd-subscription-hero-lead {
	position: relative;
	z-index: 1;
	color: rgba(255, 255, 255, 0.92);
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
	max-width: 820px;
	margin: 14px auto 0;
	font-size: 14px;
	line-height: 1.55;
	padding: 0 20px;
}

/* Layout */
body.page-template-page-subscription .mainsection.container {
	max-width: 1120px;
	padding: 86px 20px 96px;
}

body.page-template-page-subscription .innermain {
	padding-bottom: 0;
}

body.page-template-page-subscription .upperheading {
	margin: 0 0 10px;
	color: #060668;
	text-align: center;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
	font-size: 24px;
	font-weight: 700;
}

body.page-template-page-subscription .pd-subscription-upperheadingpara {
	text-align: center;
	margin: 0 auto 44px;
	max-width: 760px;
}

/* Desktop: benefits as 1x4 row, packages centered underneath */
@media (min-width: 992px) {
	body.page-template-page-subscription .pd-join .row {
		flex-direction: column;
		align-items: center;
		row-gap: 36px;
	}

	body.page-template-page-subscription .pd-join .row > .col-lg-6:first-child {
		flex: 0 0 auto;
		max-width: 100%;
		width: 100%;
	}

	body.page-template-page-subscription .pd-join .row > .col-lg-6:last-child {
		flex: 0 0 auto;
		width: 100%;
		max-width: 100%;
	}
}

/* Section cohesion: shared max-width for benefits + pricing */
body.page-template-page-subscription .pd-join__compose {
	max-width: 1040px;
	margin: 0 auto;
	width: 100%;
}

body.page-template-page-subscription .upperheadingpara {
	color: #64748b;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
	font-size: 13px;
	line-height: 1.7;
}

/* Benefits */
body.page-template-page-subscription .pd-join__benefits {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	width: 100%;
}

@media (min-width: 768px) {
	body.page-template-page-subscription .pd-join__benefits {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	body.page-template-page-subscription .pd-join__benefits {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

body.page-template-page-subscription .pd-join__plans {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

@media (min-width: 992px) {
	body.page-template-page-subscription .pd-join__plans {
		grid-template-columns: 1fr 1fr;
	}
}

body.page-template-page-subscription .pd-join__plan {
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	background: #fff;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
	padding: 28px 24px;
}

body.page-template-page-subscription .pd-join__plan--recommended {
	border-color: rgba(99, 178, 255, 0.7);
	padding: 32px 26px;
}

body.page-template-page-subscription .pd-join__plan-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
}

body.page-template-page-subscription .pd-join__plan-title {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
	font-weight: 700;
	font-size: 16px;
	color: #0f172a;
}

body.page-template-page-subscription .pd-join__plan-price {
	margin: 10px 0 0;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
	font-weight: 700;
	font-size: 22px;
	color: #0f172a;
}

body.page-template-page-subscription .pd-join__plan-price-note {
	font-weight: 500;
	font-size: 12px;
	color: #64748b;
}

body.page-template-page-subscription .pd-join__plan-note {
	margin: 10px 0 0;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
	font-size: 12px;
	line-height: 1.6;
	color: #64748b;
}

body.page-template-page-subscription .pd-join__plan-badge {
	flex: 0 0 auto;
	align-self: flex-start;
	border-radius: 999px;
	padding: 6px 10px;
	background: #f8fafc;
	border: 1px solid rgba(99, 178, 255, 0.45);
	color: #060668;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
	font-weight: 700;
	font-size: 11px;
	line-height: 1;
}

body.page-template-page-subscription .pd-join__plan-cta {
	margin-top: 26px;
}

body.page-template-page-subscription .pd-join__plan--recommended .pd-join__plan-cta {
	margin-top: 34px;
}

body.page-template-page-subscription a.btntrail.btntrail--secondary,
body.page-template-page-subscription a.btntrail.btntrail--secondary:visited {
	background: #f8fafc;
	color: #0f172a;
	box-shadow: none;
	border: 1px solid #e2e8f0;
}

body.page-template-page-subscription a.btntrail.btntrail--secondary:hover,
body.page-template-page-subscription a.btntrail.btntrail--secondary:focus {
	background: #f1f5f9;
	color: #0f172a;
}

body.page-template-page-subscription .pd-join__benefit {
	display: flex;
	gap: 10px;
	padding: 14px 14px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.page-template-page-subscription .pd-join__benefit-icon {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: #f8fafc;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #63b2ff;
}

body.page-template-page-subscription .pd-join__benefit-title {
	margin: 0 0 4px;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: #0f172a;
}

body.page-template-page-subscription .pd-join__benefit-text {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
	font-size: 13px;
	line-height: 1.6;
	color: #64748b;
}

/* Plans */
body.page-template-page-subscription .pd-subscription-plan {
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	background: #fff;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
	padding: 26px;
	margin-bottom: 18px;
}

body.page-template-page-subscription .pd-subscription-plan.is-prominent-plan {
	border-color: rgba(99, 178, 255, 0.7);
}

body.page-template-page-subscription .outerstyleheading {
	margin: 0 0 12px;
	text-align: left;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: #060668;
}

body.page-template-page-subscription .bigheading {
	margin: 0;
	text-align: left;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
	font-weight: 700;
	font-size: 28px;
	color: #0f172a;
}

body.page-template-page-subscription .smallbold {
	margin: 8px 0 0;
	text-align: left;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
	font-weight: 500;
	font-size: 13px;
	color: #64748b;
}

body.page-template-page-subscription .pd-join__features {
	list-style: none;
	padding: 0;
	margin: 18px 0 0;
	display: grid;
	gap: 14px;
}

body.page-template-page-subscription .pd-join__feature {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	color: #0f172a;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
	font-size: 13px;
	line-height: 1.5;
}

body.page-template-page-subscription .pd-join__feature-icon {
	flex: 0 0 auto;
	color: #63b2ff;
	margin-top: 2px;
}

body.page-template-page-subscription .pd-join__icon {
	display: block;
}

body.page-template-page-subscription .pd-subscription-plan hr {
	border: 0;
	border-top: 1px solid #e2e8f0;
	margin: 16px 0;
	opacity: 1;
}

body.page-template-page-subscription a.btntrail,
body.page-template-page-subscription a.btntrail:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 3px;
	background: #63b2ff;
	box-shadow: 0px -3px 0px 0px rgba(0, 0, 0, 0.10) inset;
	padding: 18px 30px;
	color: #fff;
	text-decoration: none;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
	font-weight: 500;
}

body.page-template-page-subscription a.btntrail:hover,
body.page-template-page-subscription a.btntrail:focus {
	color: #fff;
	text-decoration: none;
}

body.page-template-page-subscription .pd-subscription-cta-wrap {
	text-align: left;
}

@media (max-width: 991px) {
	body.page-template-page-subscription .pd-subscription-hero .page-title {
		font-size: 36px;
	}
}

@media (max-width: 600px) {
	body.page-template-page-subscription .mainsection.container {
		padding-top: 44px;
	}
}
