/* =========================================================
   Edulane design-system CSS beyond theme.json.
   Figma: "Edulane (Copy)" → Ready to Development.
   ========================================================= */

/* ---------- Buttons: teal solid (default) + orange outline variant ---------- */
.wp-block-button.is-style-outline .wp-block-button__link,
.edulane-btn-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--orange);
	border: 2px solid var(--wp--preset--color--orange);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.edulane-btn-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--surface);
}

/* ---------- Hero ---------- */
.edulane-hero { overflow: hidden; }
.edulane-hero .edulane-hero-highlight-teal { color: var(--wp--preset--color--keppel); }
.edulane-hero .edulane-hero-highlight-orange { color: var(--wp--preset--color--orange); }

/* Rounded photo panels: asymmetric radii + brand edge, per Figma */
.edulane-photo-teal img,
.edulane-photo-teal {
	border-radius: 32px 120px 32px 120px;
}
.edulane-photo-teal img { border-bottom: 5px solid var(--wp--preset--color--keppel); border-left: 5px solid var(--wp--preset--color--keppel); }
.edulane-photo-orange img,
.edulane-photo-orange {
	border-radius: 120px 32px 120px 32px;
}
.edulane-photo-orange img { border-bottom: 5px solid var(--wp--preset--color--orange); border-right: 5px solid var(--wp--preset--color--orange); }

/* Check bullets */
.edulane-checklist { list-style: none; padding-left: 0; }
.edulane-checklist li {
	padding-left: 1.75rem;
	position: relative;
	margin-bottom: 0.5rem;
}
.edulane-checklist li::before {
	content: "";
	position: absolute;
	left: 0; top: 0.2em;
	width: 1.1em; height: 1.1em;
	border-radius: 50%;
	border: 2px solid var(--wp--preset--color--keppel);
	background:
		no-repeat center/70% url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='%2300B59A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3 8.5 6.5 12 13 4.5'/></svg>");
}

/* ---------- Teal band + CTA band ---------- */
.edulane-band {
	border-radius: var(--wp--custom--radius--large);
	box-shadow: 0 6px 0 rgba(0, 129, 110, 0.35);
}
.edulane-band h2, .edulane-band h3, .edulane-band p { color: var(--wp--preset--color--surface); }

/* ---------- Category tiles ---------- */
.edulane-tile {
	position: relative;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--large);
	min-height: 260px;
}
.edulane-tile img { object-fit: cover; width: 100%; height: 100%; }
.edulane-tile .edulane-tile-label {
	position: absolute;
	top: 0; right: 0; bottom: 0;
	width: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	writing-mode: vertical-rl;
	border-radius: 0 var(--wp--custom--radius--large) var(--wp--custom--radius--large) 0;
	color: var(--wp--preset--color--surface);
	font-family: var(--wp--preset--font-family--baloo);
	font-weight: 600;
	font-size: 1.15rem;
	letter-spacing: 0.02em;
	margin: 0;
}
.edulane-tile-preschool .edulane-tile-label { background: var(--wp--preset--color--picton-blue); }
.edulane-tile-activity  .edulane-tile-label { background: var(--wp--preset--color--keppel); }
.edulane-tile-parenting .edulane-tile-label { background: var(--wp--preset--color--purpureus); }
.edulane-tile-games     .edulane-tile-label { background: var(--wp--preset--color--jonquil); }
.edulane-tile-curriculum .edulane-tile-label { background: var(--wp--preset--color--orange); }

/* ---------- Section eyebrow + two-tone headings ---------- */
.edulane-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.8rem;
	color: var(--wp--preset--color--body);
	text-align: center;
}
.edulane-h-teal { color: var(--wp--preset--color--keppel); }
.edulane-h-orange { color: var(--wp--preset--color--orange); }

/* ---------- Cards (course + blog) ---------- */
.edulane-card,
.wp-block-post-template .wp-block-post,
.lp-archive-courses .course-item {
	background: var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--radius--medium);
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(30, 30, 30, 0.06);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.edulane-card:hover,
.wp-block-post-template .wp-block-post:hover,
.lp-archive-courses .course-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(30, 30, 30, 0.12);
}

/* ---------- Header ---------- */
.edulane-header {
	background: var(--wp--preset--color--surface);
	box-shadow: 0 1px 0 rgba(30, 30, 30, 0.06);
}
.edulane-header .wp-block-navigation a:hover { color: var(--wp--preset--color--keppel); }
.edulane-header .edulane-btn-ghost .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--keppel);
	border: 2px solid var(--wp--preset--color--keppel);
}
.edulane-header .edulane-btn-ghost .wp-block-button__link:hover {
	background: var(--wp--preset--color--keppel);
	color: var(--wp--preset--color--surface);
}

/* ---------- Footer ---------- */
.edulane-footer { background: var(--wp--preset--color--surface); }
.edulane-footer .wp-block-navigation a { color: var(--wp--preset--color--heading); }
.edulane-footer .wp-block-navigation a:hover { color: var(--wp--preset--color--keppel); }

/* =========================================================
   LearnPress — style the classic/block output to the Figma
   ========================================================= */

/* Archive: cards grid. LearnPress's own flex CSS sets a fixed width on
   li.course — neutralise it or the cards collapse into narrow strips. */
.lp-archive-courses ul.learn-press-courses,
ul.learn-press-courses {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
	list-style: none;
	padding: 0;
	margin: 2rem 0 0;
}
ul.learn-press-courses li.course,
.lp-archive-courses ul.learn-press-courses .course {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	background: var(--wp--preset--color--surface);
	border-radius: var(--wp--custom--radius--medium);
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(30, 30, 30, 0.06);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
ul.learn-press-courses li.course:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(30, 30, 30, 0.12);
}
.lp-archive-courses .course-item .course-content { padding: 16px; }
.lp-archive-courses .course-item .course-title {
	font-family: var(--wp--preset--font-family--baloo);
	font-size: 1.1rem;
	color: var(--wp--preset--color--heading);
}
.lp-archive-courses .course-item .course-price .price,
.course-item .course-price .free {
	color: var(--wp--preset--color--keppel);
	font-weight: 700;
}
.lp-archive-courses .course-item img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }

/* Buttons LearnPress renders itself — covers the archive "Enrol Now"
   (shipped as a yellow fill with white text, a contrast failure), the
   homepage shortcode cards, filter Apply/Reset, and course-page CTAs. */
.lp-button, button.lp-button,
.course-item .course-readmore a,
.lp-archive-courses .course-item .lp-btn-enroll,
.lp-archive-courses .btn-read-more,
.lp-form-course-filter button,
.course-summary .lp-btn-purchase,
.course-summary .btn-retake-course,
ul.learn-press-courses .course .course-content a.button,
ul.learn-press-courses .course button {
	background: var(--wp--preset--color--keppel) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px !important;
	font-family: var(--wp--preset--font-family--baloo) !important;
	font-weight: 600;
	padding: 10px 26px;
	line-height: 1.4;
}
.lp-button:hover, button.lp-button:hover,
.course-item .course-readmore a:hover,
ul.learn-press-courses .course button:hover {
	background: var(--wp--preset--color--orange) !important;
	color: #fff !important;
}
/* Secondary (Reset) as orange outline */
.lp-form-course-filter button[type="reset"],
.lp-form-course-filter .lp-course-filter-reset {
	background: transparent !important;
	color: var(--wp--preset--color--orange) !important;
	border: 2px solid var(--wp--preset--color--orange) !important;
}

/* Hide the empty 5-star row on courses with no reviews */
.course-item .review-stars-rated:not(:has(.filled)) { display: none; }

/* Spectra contact form: pill submit + softer inputs, per design system */
.uagb-forms-main-submit-button {
	border-radius: 999px !important;
	font-family: var(--wp--preset--font-family--baloo) !important;
	font-weight: 600;
	padding: 12px 32px !important;
	background: var(--wp--preset--color--keppel) !important;
	color: #fff !important;
	border: 0 !important;
}
.uagb-forms-main-submit-button:hover { background: var(--wp--preset--color--orange) !important; }
.uagb-forms-input, .uagb-forms-textarea-input {
	border-radius: 10px !important;
	border: 1px solid rgba(30,30,30,0.15) !important;
	padding: 10px 14px !important;
}

/* Page background: enforce the Figma #F6F6F6 (parent theme paints white) */
body { background: var(--wp--preset--color--background) !important; }

/* Mixed-direction strings like "in <arabic category>" read correctly */
.course-item .course-categories, .course-cate, .course-count-student { unicode-bidi: isolate; }

/* Single course: tab strip per Figma */
.learn-press-nav-tabs {
	border-bottom: 1px solid rgba(30,30,30,0.1);
	gap: 8px;
}
.learn-press-nav-tabs .course-nav a {
	font-family: var(--wp--preset--font-family--baloo);
	font-weight: 600;
	color: var(--wp--preset--color--body);
}
.learn-press-nav-tabs .course-nav.active a,
.learn-press-nav-tabs .course-nav a:hover {
	color: var(--wp--preset--color--keppel);
	box-shadow: inset 0 -3px 0 var(--wp--preset--color--keppel);
}

/* Course curriculum accordion */
.curriculum-sections .section-title {
	font-family: var(--wp--preset--font-family--baloo);
	color: var(--wp--preset--color--heading);
}

/* Review stars */
.review-stars-rated .review-stars li, .review-star { color: var(--wp--preset--color--jonquil); }

/* ---------- Utility ---------- */
.edulane-rounded { border-radius: var(--wp--custom--radius--medium); overflow: hidden; }
.edulane-rounded-lg { border-radius: var(--wp--custom--radius--large); overflow: hidden; }

@media (max-width: 781px) {
	.edulane-tile { min-height: 200px; }
	.edulane-tile .edulane-tile-label { width: 48px; font-size: 1rem; }
}
