/*
 * HeavenDuniya Placement Site Builder frontend layout.
 * All page-layout resets are limited to pages tracked as Site Builder managed.
 */

body.hdpsb-managed-page {
	overflow-x: clip;
}

body.hdpsb-managed-page .site-content > .ast-container {
	display: block;
	width: 100%;
	max-width: none;
	padding-right: 0;
	padding-left: 0;
}

body.hdpsb-managed-page #primary,
body.hdpsb-managed-page .content-area,
body.hdpsb-managed-page .site-main,
body.hdpsb-managed-page .ast-article-single,
body.hdpsb-managed-page .entry-content {
	float: none;
	width: 100% !important;
	max-width: none;
	min-width: 0;
	margin: 0;
	padding: 0 !important;
}

body.hdpsb-managed-page .site-content #secondary,
body.hdpsb-managed-page .site-content .widget-area,
body.hdpsb-managed-page .entry-header {
	display: none !important;
}

.hdpsb-page,
.elementor .hdpsb-section,
.hdpsb-footer {
	box-sizing: border-box;
	color: var(--hdpsb-text);
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.65;
	word-break: normal;
	overflow-wrap: normal;
	hyphens: none;
}

.hdpsb-page,
.hdpsb-page *,
.hdpsb-footer,
.hdpsb-footer * {
	box-sizing: border-box;
}

.hdpsb-page,
.elementor .hdpsb-section {
	width: 100%;
	max-width: none;
	min-width: 0;
}

.hdpsb-section {
	position: relative;
	width: 100%;
	max-width: none;
	min-width: 0;
	padding: clamp(56px, 6vw, var(--hdpsb-space)) clamp(18px, 3vw, 40px);
	overflow: hidden;
}

.hdpsb-section:nth-child(even),
.elementor-section.hdpsb-section:nth-child(even) {
	background: var(--hdpsb-muted);
}

.hdpsb-container,
.elementor-section.hdpsb-section > .elementor-container {
	width: 100% !important;
	max-width: var(--hdpsb-container) !important;
	min-width: 0;
	margin-right: auto !important;
	margin-left: auto !important;
}

.elementor-section.hdpsb-section > .elementor-container > .elementor-column,
.elementor-section.hdpsb-section .elementor-column-wrap,
.elementor-section.hdpsb-section .elementor-widget-wrap,
.elementor-section.hdpsb-section .elementor-widget,
.elementor-section.hdpsb-section .elementor-widget-container {
	max-width: 100%;
	min-width: 0;
}

.elementor-section.hdpsb-section > .elementor-container > .elementor-column {
	flex: 0 0 100%;
	width: 100% !important;
}

.elementor-section.hdpsb-section .elementor-widget-wrap,
.elementor-section.hdpsb-section .elementor-widget {
	width: 100%;
}

.hdpsb-hero {
	min-height: clamp(520px, 62vh, 680px);
	display: flex;
	align-items: center;
	background: linear-gradient(135deg, var(--hdpsb-primary), var(--hdpsb-secondary));
	background: linear-gradient(135deg, color-mix(in srgb, var(--hdpsb-primary) 96%, #000), color-mix(in srgb, var(--hdpsb-secondary) 84%, #fff));
	color: #fff;
}

.hdpsb-hero::after {
	content: "";
	position: absolute;
	width: min(34vw, 520px);
	aspect-ratio: 1;
	right: max(-130px, -8vw);
	top: -160px;
	border-radius: 50%;
	background: rgba(245, 158, 11, .22);
	background: color-mix(in srgb, var(--hdpsb-accent) 25%, transparent);
}

.hdpsb-hero .hdpsb-container,
.hdpsb-hero > .elementor-container {
	position: relative;
	z-index: 1;
}

.hdpsb-section h1,
.hdpsb-section h2 {
	max-width: 980px;
	margin: 0 0 20px;
	line-height: 1.08;
	letter-spacing: -.035em;
	color: var(--hdpsb-heading);
	word-break: normal;
	overflow-wrap: normal;
}

.hdpsb-hero h1,
.hdpsb-hero h2 { color: #fff; }
.hdpsb-section h1 { font-size: clamp(2.65rem, 4.8vw, 5.25rem); }
.hdpsb-section h2 { font-size: clamp(2rem, 3.3vw, 3.4rem); }

.hdpsb-section .hdpsb-lead,
.hdpsb-section .elementor-widget-text-editor > .elementor-widget-container > p {
	max-width: 820px;
	font-size: clamp(1rem, 1.25vw, 1.22rem);
	line-height: 1.72;
}

.hdpsb-section .elementor-widget-text-editor {
	width: 100%;
	max-width: none;
}

.hdpsb-eyebrow {
	margin: 0 0 12px !important;
	color: var(--hdpsb-secondary);
	font-size: .82rem !important;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
}

.hdpsb-hero .hdpsb-eyebrow { color: #d9fff8; }

.hdpsb-cards,
.hdpsb-offers {
	display: grid;
	width: 100%;
	max-width: none;
	min-width: 0;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--hdpsb-card-space);
	margin-top: 34px;
}

.hdpsb-card,
.hdpsb-offer {
	min-width: 0;
	height: 100%;
	padding: clamp(22px, 2.2vw, 30px);
	border: 1px solid var(--hdpsb-border);
	border-radius: var(--hdpsb-radius);
	background: #fff;
	box-shadow: 0 10px 32px rgba(18, 59, 102, .07);
	word-break: normal;
	overflow-wrap: normal;
}

.hdpsb-card h3,
.hdpsb-offer h3 {
	margin: 0 0 10px;
	font-size: 1.18rem;
	line-height: 1.35;
	color: var(--hdpsb-heading);
	word-break: normal;
	overflow-wrap: normal;
}

.hdpsb-card p,
.hdpsb-offer p,
.hdpsb-offer li {
	color: #536174;
	line-height: 1.65;
}

.hdpsb-offer ul { padding-left: 20px; }

.hdpsb-steps {
	counter-reset: step;
	display: grid;
	width: 100%;
	max-width: none;
	min-width: 0;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
	gap: clamp(12px, 1.4vw, 18px);
	padding: 0;
	margin: 34px 0 0;
	list-style: none;
}

.hdpsb-steps li {
	counter-increment: step;
	position: relative;
	min-width: 0;
	min-height: 138px;
	padding: 58px 18px 22px;
	border: 1px solid var(--hdpsb-border);
	border-radius: var(--hdpsb-radius);
	background: #fff;
	font-weight: 700;
	line-height: 1.45;
	word-break: normal;
	overflow-wrap: normal;
	white-space: normal;
}

.hdpsb-steps li::before {
	content: counter(step);
	position: absolute;
	top: 16px;
	left: 18px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--hdpsb-primary);
	color: #fff;
}

.hdpsb-actions {
	display: flex;
	width: 100%;
	min-width: 0;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 30px;
}

.hdpsb-button,
.elementor .hdpsb-button-primary .elementor-button,
.elementor .hdpsb-button-secondary .elementor-button {
	display: inline-flex;
	min-width: 0;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 13px 22px;
	border-radius: var(--hdpsb-button-radius);
	font-weight: 750;
	line-height: 1.35;
	text-align: center;
	text-decoration: none !important;
	white-space: normal;
	word-break: normal;
	overflow-wrap: normal;
	transition: transform .15s ease, box-shadow .15s ease;
}

.hdpsb-button.is-primary,
.elementor .hdpsb-button-primary .elementor-button {
	background: var(--hdpsb-accent);
	color: #201600;
}

.hdpsb-button.is-secondary,
.elementor .hdpsb-button-secondary .elementor-button {
	background: #fff;
	color: var(--hdpsb-primary);
	border: 1px solid var(--hdpsb-border);
}

.hdpsb-button:hover,
.hdpsb-button:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
}

.hdpsb-core-message,
.hdpsb-placeholder,
.hdpsb-legal-placeholder {
	width: 100%;
	max-width: none;
	min-width: 0;
	padding: 20px;
	border: 1px solid #f0c36a;
	border-radius: var(--hdpsb-radius);
	background: #fff9e9;
}

.hdpsb-login-help { margin-top: 12px; }

.hdpsb-faq {
	width: 100%;
	max-width: 960px;
}

.hdpsb-faq details {
	margin: 12px 0;
	padding: 18px;
	border: 1px solid var(--hdpsb-border);
	border-radius: 12px;
	background: #fff;
}

.hdpsb-faq summary { cursor: pointer; font-weight: 750; }

/* Astra Free desktop navigation: readable without requiring Pro header modules. */
@media (min-width: 922px) {
	.ast-desktop .main-header-menu {
		flex-wrap: wrap;
		justify-content: flex-end;
		row-gap: 4px;
	}

	.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item > .menu-link,
	.ast-desktop .main-header-menu > .menu-item > .menu-link,
	.ast-desktop .ast-builder-menu-1 .menu-item > .menu-link {
		min-height: 52px;
		padding-right: clamp(10px, 1vw, 16px);
		padding-left: clamp(10px, 1vw, 16px);
		font-size: clamp(.94rem, 1vw, 1.02rem);
		font-weight: 650;
		line-height: 1.35;
		white-space: nowrap;
	}

	.ast-primary-header-bar .ast-builder-grid-row-container-inner,
	.main-header-bar .ast-container {
		width: calc(100% - 40px);
		max-width: var(--hdpsb-container);
	}
}

.main-header-menu .hdpsb-menu-cta > a,
.ast-builder-menu .hdpsb-menu-cta > a {
	background: var(--hdpsb-accent);
	color: #201600 !important;
	border-radius: var(--hdpsb-button-radius);
	padding-right: 18px !important;
	padding-left: 18px !important;
}

.hdpsb-footer {
	width: 100%;
	max-width: none;
	padding: 64px clamp(18px, 3vw, 40px) 24px;
	background: #0d2237;
	color: #d8e3ed;
}

.hdpsb-footer-grid {
	display: grid;
	width: 100%;
	max-width: var(--hdpsb-container);
	min-width: 0;
	grid-template-columns: minmax(220px, 1.55fr) repeat(5, minmax(130px, 1fr));
	gap: clamp(26px, 3vw, 44px);
	margin: 0 auto;
}

.hdpsb-footer-brand,
.hdpsb-footer-nav {
	min-width: 0;
}

.hdpsb-footer-brand p {
	max-width: 310px;
}

.hdpsb-footer h2,
.hdpsb-footer h3 {
	margin-top: 0;
	color: #fff;
}

.hdpsb-footer h2 { font-size: clamp(1.4rem, 1.8vw, 1.8rem); }
.hdpsb-footer h3 { margin-bottom: 16px; font-size: 1rem; }
.hdpsb-footer ul { padding: 0; margin: 0; list-style: none; }
.hdpsb-footer li { margin: 10px 0; }
.hdpsb-footer a { color: #d8e3ed; line-height: 1.45; }
.hdpsb-footer address { font-style: normal; white-space: pre-line; }
.hdpsb-social-links a { overflow-wrap: anywhere; }

.hdpsb-footer-bottom {
	width: 100%;
	max-width: var(--hdpsb-container);
	margin: 42px auto 0;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, .16);
	font-size: .92rem;
}

.hdpsb-section :focus-visible,
.hdpsb-footer :focus-visible {
	outline: 3px solid var(--hdpsb-accent);
	outline-offset: 3px;
}

@media (max-width: 1199px) {
	.hdpsb-footer-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.hdpsb-footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 900px) {
	.hdpsb-cards,
	.hdpsb-offers {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hdpsb-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.hdpsb-section {
		padding: 50px 18px;
	}

	.hdpsb-hero {
		min-height: 480px;
	}

	.hdpsb-section h1 {
		font-size: clamp(2.25rem, 12vw, 3.25rem);
	}

	.hdpsb-cards,
	.hdpsb-offers,
	.hdpsb-footer-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hdpsb-footer-brand {
		grid-column: auto;
	}

	.hdpsb-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.hdpsb-button {
		width: 100%;
	}

	.hdpsb-card,
	.hdpsb-offer {
		padding: 22px;
	}

	.hdpsb-footer {
		padding-right: 18px;
		padding-left: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hdpsb-button { transition: none; }
}
