/*
Theme Name: School Blocksy Child
Theme URI: https://creativethemes.com/blocksy/
Description: A bright AI-inspired school website skin for the Blocksy parent theme.
Author: Codex
Template: blocksy
Version: 1.0.0
Text Domain: school-blocksy-child
*/

:root {
	--sbc-ink: #172033;
	--sbc-muted: #667085;
	--sbc-paper: #fffaf1;
	--sbc-surface: #ffffff;
	--sbc-sky: #1db7d8;
	--sbc-coral: #ff6b57;
	--sbc-leaf: #8cc63f;
	--sbc-violet: #6f5cff;
	--sbc-sun: #ffc845;
	--sbc-line: rgba(23, 32, 51, 0.1);
	--sbc-shadow: 0 22px 55px rgba(23, 32, 51, 0.11);
}

body.school-blocksy-child {
	color: var(--sbc-ink);
	background:
		radial-gradient(circle at 8% 14%, rgba(255, 200, 69, 0.22), transparent 22rem),
		radial-gradient(circle at 92% 8%, rgba(29, 183, 216, 0.18), transparent 26rem),
		linear-gradient(180deg, #f8fdff 0%, #fffaf1 42%, #f6fbf7 100%);
}

.school-blocksy-child #main-container {
	position: relative;
	overflow: hidden;
}

.school-blocksy-child #main-container::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(23, 32, 51, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(23, 32, 51, 0.045) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 76%);
}

.school-blocksy-child a {
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

.school-blocksy-child [data-header*="type-1"] .ct-header [data-row*="middle"],
.school-blocksy-child [data-header*="type-1"] .ct-header [data-row*="bottom"] {
	border-bottom: 1px solid rgba(23, 32, 51, 0.08);
	box-shadow: 0 10px 30px rgba(23, 32, 51, 0.06);
	backdrop-filter: blur(18px);
}

.school-blocksy-child .site-title,
.school-blocksy-child .site-description {
	letter-spacing: 0;
}

.school-blocksy-child .site-title {
	font-weight: 800;
}

.school-blocksy-child .site-description {
	color: var(--sbc-muted);
}

.school-blocksy-child [data-id="menu"] > ul > li > a,
.school-blocksy-child .ct-header-cta a,
.school-blocksy-child .wp-element-button,
.school-blocksy-child .wp-block-button__link,
.school-blocksy-child button,
.school-blocksy-child input[type="submit"] {
	border-radius: 12px;
}

.school-blocksy-child [data-id="menu"] > ul > li > a {
	font-weight: 700;
}

.school-blocksy-child .ct-header-cta a,
.school-blocksy-child .wp-element-button,
.school-blocksy-child .wp-block-button__link,
.school-blocksy-child button,
.school-blocksy-child input[type="submit"] {
	border: 0;
	color: #122033;
	background:
		linear-gradient(135deg, var(--sbc-sun), var(--sbc-coral));
	box-shadow: 0 12px 26px rgba(255, 107, 87, 0.26);
	font-weight: 800;
}

.school-blocksy-child .ct-header-cta a:hover,
.school-blocksy-child .wp-element-button:hover,
.school-blocksy-child .wp-block-button__link:hover,
.school-blocksy-child button:hover,
.school-blocksy-child input[type="submit"]:hover {
	transform: translateY(-1px);
	box-shadow: 0 16px 32px rgba(255, 107, 87, 0.3);
}

.school-blocksy-child .hero-section,
.school-blocksy-child .entry-header,
.school-blocksy-child [data-prefix="single_page"] .hero-section[data-type="type-2"],
.school-blocksy-child [data-prefix="single_post"] .hero-section[data-type="type-2"] {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: 0 0 34px 34px;
	background:
		linear-gradient(90deg, rgba(248, 253, 255, 0.94), rgba(248, 253, 255, 0.68)),
		url("assets/ai-school-hero.png") center/cover no-repeat;
}

.school-blocksy-child .hero-section::before,
.school-blocksy-child .entry-header::before {
	content: "";
	position: absolute;
	inset: 10%;
	z-index: -1;
	background:
		radial-gradient(circle at 12% 22%, rgba(29, 183, 216, 0.24) 0 2px, transparent 3px),
		radial-gradient(circle at 78% 32%, rgba(140, 198, 63, 0.28) 0 3px, transparent 4px),
		radial-gradient(circle at 54% 74%, rgba(255, 107, 87, 0.24) 0 2px, transparent 3px),
		linear-gradient(120deg, transparent 0 44%, rgba(111, 92, 255, 0.2) 45% 46%, transparent 47% 100%);
	background-size: 170px 130px, 210px 160px, 150px 190px, 260px 180px;
	opacity: 0.85;
}

.school-blocksy-child .hero-section .page-title,
.school-blocksy-child .entry-header .page-title,
.school-blocksy-child .entry-header .entry-title {
	max-width: 860px;
	color: var(--sbc-ink);
	font-weight: 900;
	letter-spacing: 0;
}

.school-blocksy-child .entry-meta,
.school-blocksy-child .ct-breadcrumbs,
.school-blocksy-child .page-description {
	color: rgba(23, 32, 51, 0.72);
	font-weight: 650;
}

.school-blocksy-child article,
.school-blocksy-child .ct-comments,
.school-blocksy-child .ct-related-posts-container,
.school-blocksy-child .wp-block-group.is-style-sbc-learning-panel,
.school-blocksy-child .wp-block-column.is-style-sbc-learning-card {
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(23, 32, 51, 0.1);
	box-shadow: var(--sbc-shadow);
	backdrop-filter: blur(16px);
}

.school-blocksy-child article,
.school-blocksy-child .ct-comments,
.school-blocksy-child .ct-related-posts-container {
	border-radius: 22px;
}

.school-blocksy-child .wp-block-group.is-style-sbc-learning-panel,
.school-blocksy-child .wp-block-column.is-style-sbc-learning-card {
	border-radius: 18px;
}

.school-blocksy-child .wp-block-group.is-style-sbc-learning-panel {
	position: relative;
	overflow: hidden;
	padding: clamp(24px, 4vw, 44px);
}

.school-blocksy-child .wp-block-group.is-style-sbc-learning-panel::after {
	content: "";
	position: absolute;
	right: -36px;
	top: -36px;
	width: 170px;
	aspect-ratio: 1;
	border-radius: 50%;
	background:
		conic-gradient(from 120deg, var(--sbc-sky), var(--sbc-leaf), var(--sbc-sun), var(--sbc-coral), var(--sbc-sky));
	opacity: 0.16;
}

.school-blocksy-child .wp-block-column.is-style-sbc-learning-card {
	padding: clamp(20px, 3vw, 30px);
}

.school-blocksy-child .wp-block-column.is-style-sbc-learning-card h1,
.school-blocksy-child .wp-block-column.is-style-sbc-learning-card h2,
.school-blocksy-child .wp-block-column.is-style-sbc-learning-card h3,
.school-blocksy-child .wp-block-column.is-style-sbc-learning-card h4 {
	margin-top: 0;
}

.school-blocksy-child .wp-block-column.is-style-sbc-learning-card:nth-child(4n + 1) {
	border-top: 5px solid var(--sbc-sky);
}

.school-blocksy-child .wp-block-column.is-style-sbc-learning-card:nth-child(4n + 2) {
	border-top: 5px solid var(--sbc-coral);
}

.school-blocksy-child .wp-block-column.is-style-sbc-learning-card:nth-child(4n + 3) {
	border-top: 5px solid var(--sbc-leaf);
}

.school-blocksy-child .wp-block-column.is-style-sbc-learning-card:nth-child(4n + 4) {
	border-top: 5px solid var(--sbc-violet);
}

.school-blocksy-child h1,
.school-blocksy-child h2,
.school-blocksy-child h3,
.school-blocksy-child h4 {
	color: var(--sbc-ink);
	letter-spacing: 0;
}

.school-blocksy-child h2 {
	position: relative;
}

.school-blocksy-child h2::after {
	content: "";
	display: block;
	width: 76px;
	height: 5px;
	margin-top: 12px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--sbc-sky), var(--sbc-leaf), var(--sbc-sun), var(--sbc-coral));
}

.school-blocksy-child .wp-block-cover.is-style-sbc-ai-hero {
	position: relative;
	min-height: clamp(460px, 70vh, 740px);
	overflow: hidden;
	border-radius: 0 0 34px 34px;
	background-position: center;
}

.school-blocksy-child .wp-block-cover.is-style-sbc-ai-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(8, 18, 35, 0.72), rgba(8, 18, 35, 0.16)),
		radial-gradient(circle at 84% 18%, rgba(255, 200, 69, 0.2), transparent 18rem);
	pointer-events: none;
}

.school-blocksy-child .wp-block-cover.is-style-sbc-ai-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 1;
	max-width: 1180px;
}

.school-blocksy-child .wp-block-cover.is-style-sbc-ai-hero h1,
.school-blocksy-child .wp-block-cover.is-style-sbc-ai-hero p {
	max-width: 760px;
	color: #ffffff;
}

.school-blocksy-child .wp-block-cover.is-style-sbc-ai-hero h1 {
	font-weight: 900;
}

.school-blocksy-child .wp-block-cover.is-style-sbc-ai-hero h1::after {
	content: "";
	display: block;
	width: 92px;
	height: 6px;
	margin-top: 18px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--sbc-sun), var(--sbc-coral), var(--sbc-sky));
}

.school-blocksy-child .wp-block-cover.is-style-sbc-ai-hero .wp-block-button__link {
	color: #122033;
	background: #ffffff;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}

.school-blocksy-child .ct-sidebar .ct-widget,
.school-blocksy-child .widget {
	border-radius: 18px;
	border: 1px solid rgba(23, 32, 51, 0.1);
	background: rgba(255, 255, 255, 0.86);
	box-shadow: 0 16px 38px rgba(23, 32, 51, 0.08);
}

.school-blocksy-child .ct-footer {
	background:
		linear-gradient(135deg, #122033, #143b4b 48%, #26335f);
	color: rgba(255, 255, 255, 0.84);
}

.school-blocksy-child .ct-footer a,
.school-blocksy-child .ct-footer h1,
.school-blocksy-child .ct-footer h2,
.school-blocksy-child .ct-footer h3,
.school-blocksy-child .ct-footer h4 {
	color: #ffffff;
}

@media (max-width: 689px) {
	.school-blocksy-child .hero-section,
	.school-blocksy-child .entry-header,
	.school-blocksy-child .wp-block-cover.is-style-sbc-ai-hero {
		border-radius: 0 0 22px 22px;
	}

	.school-blocksy-child .wp-block-cover.is-style-sbc-ai-hero {
		min-height: 520px;
	}
}
