/**
 * Scholarship landing: full-width shell + styles outside Tailwind utilities.
 */

/* Sticky / Elementor headers above landing content (transforms can create high stacking). */
body.cst-scholarship-page #masthead,
body.cst-scholarship-page .site-header,
body.cst-scholarship-page .ast-primary-header-bar,
body.cst-scholarship-page .ast-above-header,
body.cst-scholarship-page .ast-above-header-bar,
body.cst-scholarship-page .ast-main-header-wrap,
body.cst-scholarship-page .elementor-location-header {
	z-index: 100002 !important;
}

/* Contain landing visuals under the header plane when scrolling */
body.cst-scholarship-page #cst-landing {
	position: relative;
	z-index: 0;
	isolation: isolate;
}

body.cst-scholarship-page #primary,
body.cst-scholarship-page .ast-container,
body.cst-scholarship-page .ast-container-fluid,
body.cst-scholarship-page .site-content .content-area,
body.cst-scholarship-page #primary .entry-content {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.cst-scholarship-page .sidebar,
body.cst-scholarship-page .widget-area {
	display: none !important;
}

#cst-landing {
	font-family: Inter, system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

/* Dark bands: override theme heading/body colors on navy (Tailwind alone was too dim). */
#cst-landing .cst-dark-band h2,
#cst-landing .cst-dark-band h3 {
	color: #f8fafc !important;
}

/* Only lift slate-400 body copy; leave .text-white captions (e.g. video tiles) alone */
#cst-landing .cst-dark-band p.text-slate-400 {
	color: #cbd5e1 !important;
}

#cst-landing *,
#cst-landing *::before,
#cst-landing *::after {
	box-sizing: border-box;
}

#cst-landing .font-headline {
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

#cst-landing .material-symbols-outlined {
	font-family: "Material Symbols Outlined", sans-serif;
	font-weight: normal;
	font-style: normal;
	font-size: 1.25em;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	font-feature-settings: "liga";
	-webkit-font-smoothing: antialiased;
	font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

#cst-landing .bg-glass {
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(12px);
}

/* Hero background: colorful, engaging brand gradients */
#cst-landing .cst-hero-bg {
	background-image:
		radial-gradient(1100px 480px at 6% 8%, rgba(0, 92, 202, 0.30) 0%, rgba(0, 92, 202, 0.12) 24%, rgba(0, 92, 202, 0) 62%),
		radial-gradient(760px 360px at 92% 16%, rgba(255, 215, 0, 0.34) 0%, rgba(255, 215, 0, 0.16) 30%, rgba(255, 215, 0, 0) 64%),
		radial-gradient(720px 320px at 85% 88%, rgba(0, 92, 202, 0.22) 0%, rgba(0, 92, 202, 0.08) 28%, rgba(0, 92, 202, 0) 62%),
		radial-gradient(720px 280px at 22% 94%, rgba(22, 22, 63, 0.16) 0%, rgba(22, 22, 63, 0.06) 30%, rgba(22, 22, 63, 0) 62%),
		linear-gradient(128deg, #fffdf3 0%, #f6f9ff 42%, #edf4ff 100%);
	background-repeat: no-repeat;
}

#cst-landing .cst-hero-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(22, 22, 63, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 22, 63, 0.03) 1px, transparent 1px);
	background-size: 36px 36px;
	mix-blend-mode: multiply;
	opacity: 0.55;
	pointer-events: none;
}

#cst-landing .cst-badge-highlight {
	background: linear-gradient(135deg, #ffd84d 0%, #ffb703 55%, #ff9800 100%);
	color: #16163f;
	box-shadow: 0 6px 18px rgba(255, 167, 38, 0.35);
}

/* Premium secondary surfaces across the landing template */
#cst-landing .bg-secondary {
	background: linear-gradient(135deg, #ffe978 0%, #ffd700 55%, #ffbe0b 100%) !important;
	box-shadow: 0 8px 22px rgba(255, 193, 7, 0.25);
}

#cst-landing .bg-secondary.text-on-secondary,
#cst-landing .bg-secondary .text-on-secondary {
	color: #16163f !important;
}

#cst-landing .cta-gradient {
	background: #005cca;
	transition: all 0.2s ease-in-out;
	color: #fff;
	border: 0;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

#cst-landing .cta-gradient:hover {
	background: #0047a3;
	color: #fff;
}

#cst-landing .secondary-cta {
	background: #ffd700;
	color: #16163f;
	border: 0;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

#cst-landing .secondary-cta:hover {
	background: #e6c200;
	color: #16163f;
}

/* Anchor offset below sticky theme headers */
#cst-landing #eligibility,
#cst-landing #pattern,
#cst-landing #toppers,
#cst-landing #faqs,
#cst-landing #cst-register {
	scroll-margin-top: 120px;
}

/* FAQ accordion */
#cst-landing .cst-faq-item.is-open .cst-faq-panel {
	display: block;
}

#cst-landing .cst-faq-item:not(.is-open) .cst-faq-panel {
	display: none;
}

#cst-landing .cst-faq-toggle {
	background: none;
	border: 0;
	cursor: pointer;
	font: inherit;
	padding: 0;
}

#cst-landing .cst-faq-question {
	line-height: 1.45;
}

#cst-landing .cst-faq-panel {
	padding-left: 0;
	max-width: 100%;
}

#cst-landing .cst-video-embed iframe {
	border: 0;
	display: block;
}

/* Featured tier card: beat theme/Elementor heading & paragraph colors on primary blue */
#cst-landing .cst-tier-featured h3 {
	color: #ffffff !important;
}

#cst-landing .cst-tier-featured p {
	color: rgba(255, 255, 255, 0.95) !important;
}

#cst-landing .cst-tier-featured .cst-tier-label {
	color: #ffd700 !important;
}

/* Optional block editor content below landing */
.cst-scholarship-wp-content {
	max-width: 768px;
	margin: 0 auto;
	padding: 3rem 1.5rem 4rem;
	font-family: Inter, system-ui, sans-serif;
	line-height: 1.75;
	color: #334155;
}

.cst-scholarship-wp-content h2,
.cst-scholarship-wp-content h3 {
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	color: #0f172a;
}

/* Mobile-first polish */
#cst-landing section {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

#cst-landing h2.font-headline {
	font-size: 1.875rem;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

#cst-landing .cst-feature-card {
	border: 1px solid rgba(0, 92, 202, 0.12);
	background: #ffffff;
	border-radius: 0.85rem;
	padding: 1.25rem;
	box-shadow: 0 8px 24px rgba(22, 22, 63, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#cst-landing .cst-feature-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(22, 22, 63, 0.1);
}

#cst-landing .cst-telegram-card {
	background: linear-gradient(135deg, #16163f 0%, #1d2d74 100%);
	border-radius: 1rem;
	padding: 1.5rem;
	color: #fff;
	box-shadow: 0 20px 40px rgba(22, 22, 63, 0.24);
}

@media (min-width: 768px) {
	#cst-landing section {
		padding-top: 6rem;
		padding-bottom: 6rem;
	}

	#cst-landing h2.font-headline {
		font-size: 2.25rem;
	}
}
