/*
Theme Name: Learnhaven
Theme URI: https://wordpress.templates.codememory.com/learnhaven/
Author: Code Memory
Author URI: https://codememory.com
Description: Learnhaven is a WordPress theme for schools and education: private schools, colleges, kindergartens, language schools, online academies and music and arts schools. Six demos, admission enquiries saved in your dashboard, an events calendar, teacher profiles, courses with fees, office hours with an Open now badge and a fee estimator. Works with the block editor and with Elementor.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: learnhaven
Tags: blog, one-column, two-columns, right-sidebar, left-sidebar, custom-colors, custom-logo, custom-menu, custom-header, custom-background, editor-style, featured-images, footer-widgets, full-width-template, block-styles, wide-blocks, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

/*
 * Contents
 * 1. Base   2. Layout   3. Buttons and forms   4. Top bar and header   5. Page header band
 * 6. Posts and cards   7. Single post   8. Comments   9. Widgets   10. Footer
 * 11. Mobile bar and back to top   12. 404   13. WordPress classes   14. Small screens
 * Colours and fonts come from CSS variables set in the Customizer (inc/customizer-css.php).
 */

/* 1. Base */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--lh-paper, #fbf6ec);
	color: var(--lh-ink, #14342b);
	font-family: var(--lh-font-body, system-ui, sans-serif);
	font-size: var(--lh-size, 17px);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-variant-numeric: lining-nums;
}

h1, h2, h3, h4, h5, h6 {
	margin: 1.6em 0 0.6em;
	font-family: var(--lh-font-head, Georgia, serif);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--lh-ink);
}
h1 em,
h2 em,
h3 em { font-style: normal; background: linear-gradient(transparent 62%, rgba(242, 179, 61, 0.45) 62%, rgba(242, 179, 61, 0.45) 92%, transparent 92%); }
h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.8rem); }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.075rem; }
h6 { font-size: 0.95rem; font-family: var(--lh-font-body); font-weight: 700; letter-spacing: 0.02em; }

p, ul, ol, dl, figure, blockquote, pre, table { margin: 0 0 1.25em; }
ul, ol { padding-inline-start: 1.3em; }
li > ul, li > ol { margin-bottom: 0; }
dt { font-weight: 700; }
dd { margin: 0 0 1em; margin-inline-start: 1.25em; }

a { color: var(--lh-link); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--lh-accent); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--lh-accent);
	outline-offset: 2px;
}

img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; vertical-align: middle; }

hr { border: 0; border-top: 1px solid var(--lh-line); margin: 2.5em 0; }

code, kbd, pre, samp { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; }
code, kbd { background: var(--lh-accent-soft); padding: 0.1em 0.35em; border-radius: 4px; }
pre { overflow-x: auto; padding: 1.25em; background: var(--lh-ink-2); color: #f2f5f7; border-radius: var(--lh-radius); }
pre code { background: none; padding: 0; color: inherit; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.7em 0.9em; border-bottom: 1px solid var(--lh-line); text-align: start; }
th { font-weight: 700; }

blockquote { margin-inline: 0; padding: 1em 1.25em; border-inline-start: 5px solid #f2b33d; border-radius: 0 var(--lh-radius) var(--lh-radius) 0; background: var(--lh-surface); font-family: var(--lh-font-head); font-size: 1.2em; line-height: 1.5; }
blockquote cite { display: block; margin-top: 0.6em; font-size: 0.85em; font-style: normal; color: var(--lh-muted); }

mark, ins { background: var(--lh-accent-soft); color: inherit; text-decoration: none; padding: 0 0.15em; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
small { font-size: 0.85em; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }

.lh-icon { display: inline-block; flex: none; vertical-align: middle; }

/* 2. Layout */
.lh-container {
	width: 100%;
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: 20px;
}

.site { display: flex; flex-direction: column; min-height: 100vh; }
.site > .site-footer { margin-top: auto; }

.lh-layout {
	display: grid;
	gap: 48px;
	padding-block: 56px 80px;
}
.has-sidebar .lh-layout { grid-template-columns: minmax(0, 1fr) 320px; }
.has-sidebar.sidebar-left .lh-layout { grid-template-columns: 320px minmax(0, 1fr); }
.has-sidebar.sidebar-left .lh-layout .site-main { order: 2; }

.lh-page { padding-block: 56px 80px; max-width: 1240px; margin-inline: auto; }
.lh-full { padding: 0; }
.lh-full > .entry-content,
.lh-page .entry-content { min-height: 1px; }

/* Readable column for posts and pages, with wide and full blocks breaking out. */
.entry-content > * { max-width: 760px; margin-inline: auto; }
.entry-content > .alignwide { max-width: 1240px; }
.entry-content > .alignfull { max-width: none; }
.lh-layout .entry-content > *,
.lh-layout .entry-content > .alignwide { max-width: 100%; }
.lh-full > * { max-width: none; }

/* 3. Buttons and forms */
.lh-btn,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.95em 1.8em;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--lh-ink);
	color: var(--lh-on-ink);
	font: inherit;
	font-weight: 700;
	font-size: 0.98rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.lh-btn:hover,
button:hover,
input[type="submit"]:hover { color: var(--lh-on-accent); background: var(--lh-accent); }
.lh-btn--accent,
input[type="submit"],
.comment-form .submit {
	background: var(--lh-accent);
	color: var(--lh-on-accent);
}
.lh-btn--accent:hover,
input[type="submit"]:hover { color: var(--lh-on-ink); background: var(--lh-ink); }
.lh-btn--ghost { background: transparent; color: var(--lh-ink); border-color: currentColor; }
.lh-btn--ghost:hover { color: var(--lh-accent); }

.lh-icon-btn {
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
	background: var(--lh-paper);
	color: var(--lh-ink);
	border: 0;
}
.lh-icon-btn:hover { color: var(--lh-accent); background: var(--lh-accent-soft); transform: none; }

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea {
	width: 100%;
	padding: 0.75em 0.95em;
	border: 2px solid var(--lh-line);
	border-radius: 14px;
	background: var(--lh-surface);
	color: var(--lh-ink);
	font: inherit;
	line-height: 1.4;
}
input:focus,
select:focus,
textarea:focus { border-color: var(--lh-accent); outline: none; box-shadow: 0 0 0 3px var(--lh-accent-soft); }
textarea { min-height: 140px; resize: vertical; }
label { font-weight: 600; }
fieldset { border: 1px solid var(--lh-line); border-radius: var(--lh-radius); padding: 1em 1.25em; margin: 0 0 1.25em; }

.search-form { display: flex; gap: 8px; }
.search-form .search-field { flex: 1; }
.search-form .search-submit { flex: none; width: 52px; height: 52px; padding: 0; background: var(--lh-accent); color: var(--lh-on-accent); }

/* 4. Top bar and header */
.lh-topbar {
	background: var(--lh-ink-2);
	color: #e9e6e1;
	font-size: 0.875rem;
}
.lh-topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 42px; }
.lh-topbar__text { display: flex; align-items: center; gap: 8px; margin: 0; }
.lh-topbar__text .lh-icon { width: 16px; height: 16px; color: var(--lh-link-on-ink); }
.lh-topbar__nav ul { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.lh-topbar a { color: inherit; text-decoration: none; }
.lh-topbar a:hover { color: var(--lh-link-on-ink); }
.lh-topbar__phone { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lh-topbar__phone strong { color: #fff; font-size: 0.95rem; }
.lh-topbar__phone .lh-icon { width: 16px; height: 16px; }
.lh-topbar__label { padding: 2px 10px; border-radius: 999px; background: #f2b33d; color: #14342b; font-weight: 700; font-size: 0.75rem; }
.lh-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #f2b33d; }
.lh-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #f2b33d; animation: lh-pulse 1.8s infinite; }
@keyframes lh-pulse {
	0% { transform: scale(1); opacity: 0.6; }
	70%,
	100% { transform: scale(3); opacity: 0; }
}

.site-header {
	position: relative;
	z-index: 50;
	background: var(--lh-surface);
	border-bottom: 0;
	box-shadow: 0 1px 0 var(--lh-line);
}
.lh-sticky .site-header { position: sticky; top: 0; }
.admin-bar.lh-sticky .site-header { top: 32px; }
.site-header.is-stuck { box-shadow: 0 10px 30px -18px rgba(4, 16, 12, 0.45); }
.site-header__inner { display: flex; align-items: center; gap: 32px; min-height: 84px; }

.site-branding { flex: none; }
.site-title { margin: 0; font-family: var(--lh-font-head); font-size: 1.65rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.site-title a { color: var(--lh-ink); text-decoration: none; }
.site-description { margin: 2px 0 0; font-size: 0.8rem; color: var(--lh-muted); }
.custom-logo { max-height: 56px; width: auto; }

.site-header__actions { display: flex; align-items: center; gap: 20px; flex: 1; justify-content: flex-end; }
.site-header__tools { display: flex; align-items: center; gap: 10px; }

.main-navigation ul { margin: 0; padding: 0; list-style: none; }
.main-navigation > ul { display: flex; align-items: center; gap: 4px; }
.main-navigation li { position: relative; }
.main-navigation a {
	display: block;
	padding: 9px 15px;
	border-radius: 999px;
	color: var(--lh-ink);
	font-size: 0.97rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.main-navigation a:hover { background: var(--lh-paper); color: var(--lh-ink); }
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a { background: var(--lh-accent-soft); color: var(--lh-ink); }
.main-navigation .menu-item-has-children > a { padding-inline-end: 4px; }
.main-navigation .menu-item-has-children { display: flex; align-items: center; }
.sub-toggle { width: 26px; height: 26px; padding: 0; background: none; color: var(--lh-ink); border: 0; }
.sub-toggle:hover { color: var(--lh-accent); background: none; transform: none; }
.sub-toggle .lh-icon { width: 16px; height: 16px; }
.main-navigation .sub-menu {
	position: absolute;
	top: 100%;
	inset-inline-start: 0;
	min-width: 230px;
	padding: 8px;
	background: var(--lh-surface);
	border: 0;
	border-radius: var(--lh-radius);
	box-shadow: 0 24px 50px -24px rgba(4, 16, 12, 0.45);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.main-navigation .sub-menu .sub-menu { top: 0; inset-inline-start: 100%; }
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu,
.main-navigation li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-navigation .sub-menu a { padding: 9px 14px; border-radius: 12px; font-size: 0.95rem; font-weight: 600; background: none; }
.main-navigation .sub-menu a:hover { background: var(--lh-accent-soft); }

.lh-menu-toggle { display: none; }
.lh-menu-toggle .lh-icon-close,
.lh-menu-toggle[aria-expanded="true"] .lh-icon-menu { display: none; }
.lh-menu-toggle[aria-expanded="true"] .lh-icon-close { display: inline-block; }

.lh-scheme-toggle .lh-icon-sun { display: none; }
html[data-lh-scheme="dark"] .lh-scheme-toggle .lh-icon-sun,
.lh-scheme-dark .lh-scheme-toggle .lh-icon-sun { display: inline-block; }
html[data-lh-scheme="dark"] .lh-scheme-toggle .lh-icon-moon,
.lh-scheme-dark .lh-scheme-toggle .lh-icon-moon { display: none; }
html[data-lh-scheme="light"] .lh-scheme-dark .lh-scheme-toggle .lh-icon-sun { display: none; }
html[data-lh-scheme="light"] .lh-scheme-dark .lh-scheme-toggle .lh-icon-moon { display: inline-block; }

/* Centered layout */
.lh-header-centered .site-header__inner { flex-direction: column; gap: 10px; padding-block: 18px 10px; }
.lh-header-centered .site-header__actions { justify-content: center; width: 100%; }

/* Contact layout: logo + phone + hours, then the menu in its own bar */
.lh-head-contact { display: flex; gap: 28px; margin-inline-start: auto; }
.lh-header-contact__item { display: flex; align-items: center; gap: 12px; color: var(--lh-ink); text-decoration: none; }
.lh-header-contact__item small { display: block; color: var(--lh-muted); font-size: 0.8rem; }
.lh-header-contact__item strong { display: block; font-family: var(--lh-font-head); font-size: 1.1rem; }
.lh-header-contact__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--lh-accent-soft); color: var(--lh-link); }
.lh-head-contact .lh-header-contact__item:first-child .lh-header-contact__icon { background: var(--lh-accent); color: var(--lh-on-accent); }
.lh-header-contact .site-header__inner { flex-wrap: wrap; gap: 0 32px; }
.lh-header-contact .site-header__actions { flex-basis: 100%; justify-content: space-between; border-top: 1px solid var(--lh-line); padding-block: 8px; }

.lh-search-panel { background: var(--lh-surface); border-bottom: 1px solid var(--lh-line); padding-block: 20px; }
.lh-search-panel .search-form { max-width: 640px; margin-inline: auto; }

/* 5. Page header band */
.lh-page-header {
	position: relative;
	overflow: hidden;
	padding-block: 76px 70px;
	background: var(--lh-accent-soft);
	color: var(--lh-ink);
}
.lh-page-header::after {
	content: "";
	position: absolute;
	width: 340px;
	aspect-ratio: 1;
	inset-inline-end: -90px;
	top: -120px;
	border-radius: 50%;
	background: #f2b33d;
	opacity: 0.9;
}
.lh-page-header::before {
	content: "";
	position: absolute;
	width: 200px;
	height: 110px;
	inset-inline-end: 22%;
	bottom: 14px;
	background-image: radial-gradient(var(--lh-link) 2px, transparent 2.5px);
	background-size: 18px 18px;
	opacity: 0.25;
}
.lh-page-header .lh-page-title { color: var(--lh-ink); }
.lh-page-header__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.lh-page-header.has-image { background: var(--lh-ink-2); color: #fff; }
.lh-page-header.has-image .lh-page-title { color: #fff; }
.lh-page-header.has-image::before { display: none; }
.lh-page-header .lh-container { position: relative; z-index: 1; }
.lh-page-title { margin: 8px 0 0; color: inherit; max-width: 880px; }
.lh-page-subtitle { margin-top: 14px; max-width: 680px; color: var(--lh-muted); font-size: 1.1rem; }
.lh-page-header.has-image .lh-page-subtitle { color: #e4ebe8; }
.lh-page-subtitle p:last-child { margin: 0; }
.lh-breadcrumbs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 999px; background: var(--lh-surface); font-size: 0.85rem; color: var(--lh-muted); }
.lh-breadcrumbs a { color: var(--lh-ink); font-weight: 600; text-decoration: none; }
.lh-breadcrumbs a:hover { color: var(--lh-link); }
.lh-page-header.has-image .lh-breadcrumbs { background: rgba(255, 255, 255, 0.14); color: #fff; }
.lh-page-header.has-image .lh-breadcrumbs a { color: #fff; }
.lh-breadcrumbs .sep { opacity: 0.5; }

/* 6. Posts and cards */
.lh-posts { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.has-sidebar .lh-posts { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.lh-related .lh-posts--three { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }

.lh-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--lh-surface);
	border: 0;
	border-radius: var(--lh-radius);
	box-shadow: 0 22px 44px -32px rgba(20, 52, 43, 0.4);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lh-card:hover { transform: translateY(-4px); box-shadow: 0 30px 54px -30px rgba(20, 52, 43, 0.5); }
.lh-card .post-thumbnail { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--lh-line); }
.lh-card .post-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.lh-card:hover .post-thumbnail img { transform: scale(1.04); }
.lh-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 22px; }
.lh-card .entry-title { margin: 10px 0 10px; font-size: 1.35rem; line-height: 1.25; overflow-wrap: anywhere; }
.lh-card .entry-title a { color: var(--lh-ink); text-decoration: none; }
.lh-card .entry-title a:hover { color: var(--lh-accent); }
.lh-card .entry-summary { color: var(--lh-muted); font-size: 0.97rem; }
.lh-card .entry-summary > :last-child { margin-bottom: 0; }
.lh-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; font-weight: 700; color: var(--lh-ink); text-decoration: none; }
.lh-more .lh-icon { width: 18px; height: 18px; color: var(--lh-accent); transition: transform 0.15s ease; }
.lh-more:hover .lh-icon { transform: translateX(4px); }
.lh-card.sticky { box-shadow: inset 0 5px 0 #f2b33d, 0 22px 44px -32px rgba(20, 52, 43, 0.4); }
.lh-sticky-badge { align-self: flex-start; margin-top: 8px; padding: 3px 12px; border-radius: 999px; background: var(--lh-accent); color: var(--lh-on-accent); font-size: 0.78rem; font-weight: 700; }
.lh-card--result .lh-card__body { padding: 22px 24px; }
.lh-result-type { margin: 0; font-size: 0.8rem; font-weight: 700; color: var(--lh-link); }

.lh-list-list .lh-posts { grid-template-columns: 1fr; }
.lh-list-list .lh-card:not(.lh-card--result) { flex-direction: row; }
.lh-list-list .lh-card .post-thumbnail { flex: 0 0 38%; aspect-ratio: auto; min-height: 220px; }

.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 0.85rem; color: var(--lh-muted); }
.entry-meta a { color: inherit; text-decoration: none; }
.entry-meta a:hover { color: var(--lh-accent); }
.entry-meta .lh-icon { width: 15px; height: 15px; margin-inline-end: 6px; color: var(--lh-accent); }
.lh-label { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--lh-accent-soft); color: var(--lh-ink) !important; font-size: 0.8rem; font-weight: 700; }

.pagination,
.comments-pagination,
.posts-navigation { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding-inline: 14px;
	border: 0;
	border-radius: 999px;
	background: var(--lh-surface);
	color: var(--lh-ink);
	font-weight: 700;
	text-decoration: none;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--lh-accent); border-color: var(--lh-accent); color: var(--lh-on-accent); }
.pagination .dots:hover { background: var(--lh-surface); color: var(--lh-ink); border-color: var(--lh-line); }

.lh-empty { padding: 40px; background: var(--lh-surface); border: 1px dashed var(--lh-line); border-radius: var(--lh-radius); }
.lh-empty__title { margin-top: 0; }

/* 6b. Courses, teachers, events and department areas (Learnhaven Core post types) */
.lh-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; padding-block: 56px 80px; align-items: start; }
.lh-detail--teacher { grid-template-columns: 360px minmax(0, 1fr); }
.lh-detail__main .post-thumbnail { margin: 0 0 32px; border-radius: var(--lh-radius); overflow: hidden; }
.lh-detail__main .post-thumbnail img { width: 100%; }
.lh-detail__main .entry-content > * { max-width: none; }
.lh-detail__aside { position: sticky; top: 120px; display: grid; gap: 20px; }
.lh-side-card { display: grid; gap: 12px; padding: 28px; background: var(--lh-surface); border: 0; border-top: 6px solid #f2b33d; border-radius: var(--lh-radius); box-shadow: 0 30px 50px -40px rgba(4, 16, 12, 0.5); }
.lh-side-card .lh-btn { width: 100%; }
.lh-side-card__label { margin: 0; font-size: 0.85rem; font-weight: 700; color: var(--lh-muted); }
.lh-side-card__price { margin: 0; font-family: var(--lh-font-head); font-size: 2.3rem; font-weight: 600; line-height: 1.05; color: var(--lh-ink); }
.lh-side-card__note { margin: -4px 0 4px; color: var(--lh-muted); font-size: 0.9rem; }
.lh-side-card__row { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; }
.lh-side-card__row .lh-icon,
.lh-facts .lh-icon { color: var(--lh-link); }
.lh-facts { display: grid; gap: 12px; margin: 0 0 8px; padding: 0; list-style: none; }
.lh-facts li { display: flex; gap: 12px; align-items: flex-start; }
.lh-side-list { padding: 24px 28px; background: var(--lh-surface); border: 0; border-radius: var(--lh-radius); box-shadow: 0 22px 44px -36px rgba(20, 52, 43, 0.4); }
.lh-side-list ul { margin: 12px 0 0; padding: 0; list-style: none; }
.lh-side-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-block: 10px; border-bottom: 2px dotted var(--lh-line); color: var(--lh-ink); font-weight: 600; text-decoration: none; }
.lh-side-list li:last-child a { border-bottom: 0; }
.lh-side-list a .lh-icon { width: 16px; height: 16px; color: var(--lh-accent); }
.lh-side-list a:hover { color: var(--lh-accent); }
.lh-included { margin-top: 40px; padding: 30px 32px; background: var(--lh-accent-soft); border-radius: var(--lh-radius); }
.lh-included h2 { margin-top: 0; font-size: 1.4rem; }
.lh-included ul { margin: 0; }
.lh-teacher-photo { margin: 0; border-radius: var(--lh-radius); overflow: hidden; background: var(--lh-accent-soft); }
.lh-teacher-photo img { width: 100%; aspect-ratio: 4 / 4.8; object-fit: cover; object-position: center 25%; }
.lh-schedule__title { margin: 40px 0 16px; font-size: 1.5rem; }
.lh-schedule { margin: 0; padding: 0; list-style: none; }
.lh-schedule li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: baseline; margin-bottom: 10px; padding: 14px 18px; border-radius: 14px; background: var(--lh-surface); }
.lh-schedule__time { font-family: var(--lh-font-head); font-weight: 700; color: var(--lh-link); }
.lh-side-team a { justify-content: flex-start; gap: 14px; }
.lh-side-team img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.lh-side-team strong { display: block; }
.lh-side-team small { display: block; color: var(--lh-muted); font-weight: 500; }
.lh-archive-grid { padding-block: 56px 80px; }
.post-navigation.lh-container { margin-bottom: 64px; }

/* 7. Single post */
.lh-single { min-width: 0; }
.lh-single .entry-header { margin-bottom: 28px; }
.lh-single .lh-breadcrumbs { color: var(--lh-muted); margin-bottom: 18px; }
.lh-single .lh-breadcrumbs a { color: var(--lh-ink); }
.lh-single .entry-title { margin: 12px 0 16px; overflow-wrap: anywhere; }
.entry-meta--line { padding-block: 14px; border-block: 1px solid var(--lh-line); }
.lh-single .post-thumbnail { margin: 0 0 36px; border-radius: var(--lh-radius); overflow: hidden; }
.lh-single .post-thumbnail img { width: 100%; }
.entry-content { overflow-wrap: break-word; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content > h2:first-child,
.entry-content > h3:first-child { margin-top: 0; }
.entry-footer { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 36px; font-size: 0.9rem; color: var(--lh-muted); }
.entry-footer .lh-icon { width: 15px; height: 15px; margin-inline-end: 6px; color: var(--lh-accent); }
.entry-footer a { color: var(--lh-ink); }
.tags-links a { display: inline-block; margin: 2px 2px 2px 0; padding: 2px 12px; border: 2px solid var(--lh-line); border-radius: 999px; text-decoration: none; }
.lh-meta-label { font-weight: 700; }
.page-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; font-weight: 700; }
.page-links a,
.page-links > .post-page-numbers { display: inline-grid; place-items: center; min-width: 38px; height: 38px; border: 1px solid var(--lh-line); border-radius: 8px; text-decoration: none; }
.page-links .current { background: var(--lh-accent); color: var(--lh-on-accent); border-color: var(--lh-accent); }

.lh-author-box { display: flex; gap: 20px; margin-top: 44px; padding: 26px; background: var(--lh-surface); border: 0; border-radius: var(--lh-radius); }
.lh-author-box img { border-radius: 50%; }
.lh-author-box__name { margin: 0 0 6px; font-family: var(--lh-font-head); font-size: 1.15rem; font-weight: 700; }
.lh-author-box__name a { color: var(--lh-ink); text-decoration: none; }
.lh-author-box p:last-child { margin: 0; color: var(--lh-muted); }

.post-navigation { margin-top: 44px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; height: 100%; padding: 20px 22px; background: var(--lh-surface); border: 2px solid transparent; border-radius: var(--lh-radius); text-decoration: none; color: var(--lh-ink); }
.post-navigation a:hover { border-color: var(--lh-accent); }
.post-navigation .nav-next { text-align: end; grid-column: 2; }
.nav-label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--lh-link); }
.nav-title { display: block; margin-top: 4px; font-family: var(--lh-font-head); font-weight: 700; overflow-wrap: anywhere; }

.lh-related { margin-top: 56px; }
.lh-related__title { margin-top: 0; font-size: 1.5rem; }

/* 8. Comments */
.comments-area { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--lh-line); }
.comments-title,
.comment-reply-title { margin-top: 0; font-size: 1.5rem; }
.comment-list,
.comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-inline-start: clamp(14px, 4vw, 44px); }
.comment-body { position: relative; margin-bottom: 18px; padding: 22px 24px; background: var(--lh-surface); border: 2px solid transparent; border-radius: var(--lh-radius); }
.bypostauthor > .comment-body { border-color: var(--lh-accent); box-shadow: inset 4px 0 0 var(--lh-accent); }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { margin: 4px 0 12px; font-size: 0.82rem; }
.comment-metadata a { color: var(--lh-muted); text-decoration: none; }
.comment-content { overflow-wrap: anywhere; }
.comment-content > :last-child { margin-bottom: 0; }
.reply { margin-top: 10px; font-size: 0.875rem; font-weight: 700; }
.comment-awaiting-moderation { display: block; margin-top: 8px; color: var(--lh-link); font-style: italic; }
.pingback .comment-body,
.trackback .comment-body { padding-block: 14px; }
.comment-respond { margin-top: 36px; }
.comment-list .comment-respond { margin: 0 0 18px; padding: 22px; background: var(--lh-surface); border-radius: var(--lh-radius); }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; margin-bottom: 6px; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-notes,
.logged-in-as { color: var(--lh-muted); font-size: 0.9rem; }
#cancel-comment-reply-link { margin-inline-start: 10px; font-size: 0.85rem; }

/* 9. Widgets */
.widget-area .widget {
	margin-bottom: 28px;
	padding: 26px;
	background: var(--lh-surface);
	border: 0;
	border-radius: var(--lh-radius);
	overflow-wrap: anywhere;
}
.widget-title,
.widget .wp-block-heading { margin: 0 0 16px; font-size: 1.15rem; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding-block: 8px; border-bottom: 1px solid var(--lh-line); }
.widget li:last-child { border-bottom: 0; }
.widget li ul { margin-top: 8px; padding-inline-start: 14px; }
.widget li li:last-child { padding-bottom: 0; }
.widget a { color: var(--lh-ink); text-decoration: none; }
.widget a:hover { color: var(--lh-accent); }
.widget select { max-width: 100%; }

/* 10. Footer */
.site-footer {
	--lh-link: var(--lh-link-on-ink);
	position: relative;
	border-radius: 40px 40px 0 0;
	background: var(--lh-ink-2);
	color: #cddad8;
	font-size: 0.95rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--lh-link); }
.site-footer__widgets { padding-block: 72px 40px; }
.lh-footer-grid { display: grid; gap: 40px; }
.lh-cols-2 { grid-template-columns: repeat(2, 1fr); }
.lh-cols-3 { grid-template-columns: repeat(3, 1fr); }
.lh-cols-4 { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
.site-footer .widget { margin-bottom: 28px; }
.site-footer .widget-title,
.site-footer .wp-block-heading { margin: 0 0 18px; color: #fff; font-size: 1.2rem; }
.site-footer .widget-title::after { content: ""; display: block; width: 34px; height: 4px; margin-top: 10px; border-radius: 4px; background: #f2b33d; }
.site-footer .widget li { padding-block: 6px; border: 0; }
.site-footer .widget input { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.site-footer .wp-block-social-links { margin-top: 16px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 24px; }
.site-footer__text { margin: 0; }
.site-footer__nav ul,
.lh-social ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.site-footer__nav { margin-inline-start: auto; }

/* 11. Mobile bar and back to top */
.lh-mobile-bar { display: none; }
.lh-to-top {
	position: fixed;
	inset-inline-end: 22px;
	bottom: 22px;
	z-index: 40;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--lh-accent);
	color: var(--lh-on-accent);
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.lh-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.lh-to-top:hover { color: var(--lh-on-accent); }

/* 12. 404 */
.lh-404 { padding-block: 90px 110px; text-align: center; }
.lh-404__inner { max-width: 680px; }
.lh-404__code {
	margin: 0;
	font-family: var(--lh-font-head);
	font-size: clamp(6rem, 18vw, 11rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--lh-link);
}
.lh-404 .search-form { max-width: 460px; margin: 28px auto; }

/* 13. WordPress classes */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: var(--lh-surface);
	border-radius: 4px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: var(--lh-ink);
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	inset-inline-start: 8px;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 8px;
	width: auto;
	z-index: 100000;
}
.skip-link:focus { position: fixed !important; }

.alignleft { float: left; margin: 0.4em 1.6em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.6em; }
.aligncenter { display: block; margin-inline: auto; clear: both; }
.alignnone { margin-block: 0.4em 1.2em; }

.wp-caption { max-width: 100%; margin-bottom: 1.5em; }
.wp-caption img { display: block; }
.wp-caption-text,
.gallery-caption,
figcaption { margin-top: 0.6em; font-size: 0.85rem; color: var(--lh-muted); text-align: center; }

.gallery { display: grid; gap: 12px; margin-bottom: 1.5em; }
.gallery-item { margin: 0; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }
.gallery-columns-7 { grid-template-columns: repeat(7, 1fr); }
.gallery-columns-8 { grid-template-columns: repeat(8, 1fr); }
.gallery-columns-9 { grid-template-columns: repeat(9, 1fr); }
.gallery-item img { width: 100%; border-radius: 8px; }

.sticky { position: relative; }
.bypostauthor { position: relative; }
.post-password-form { padding: 24px; background: var(--lh-surface); border: 1px solid var(--lh-line); border-radius: var(--lh-radius); }
.post-password-form input[type="password"] { max-width: 280px; margin-inline-end: 8px; }

/* 14. Small screens */
@media (max-width: 1080px) {
	.lh-menu-toggle { display: inline-flex; }
	.main-navigation {
		position: absolute;
		top: 100%;
		inset-inline: 0;
		display: none;
		max-height: calc(100vh - 120px);
		overflow-y: auto;
		padding: 12px 20px 24px;
		background: var(--lh-surface);
		border-bottom: 1px solid var(--lh-line);
		box-shadow: 0 30px 40px -30px rgba(4, 16, 12, 0.5);
	}
	.main-navigation.is-open { display: block; }
	.main-navigation > ul { flex-direction: column; align-items: stretch; gap: 0; }
	.main-navigation li { flex-wrap: wrap; border-bottom: 1px solid var(--lh-line); }
	.main-navigation .menu-item-has-children > a { flex: 1; }
	.main-navigation a { padding: 14px 4px; }
	.sub-toggle { width: 44px; height: 44px; }
	.main-navigation .sub-menu,
	.main-navigation .sub-menu .sub-menu {
		position: static;
		display: none;
		flex-basis: 100%;
		min-width: 0;
		padding: 0 0 8px;
		padding-inline-start: 14px;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	.main-navigation li.is-open > .sub-menu { display: block; }
	.main-navigation .sub-menu li { border: 0; }
	.has-sidebar .lh-layout,
	.has-sidebar.sidebar-left .lh-layout { grid-template-columns: 1fr; }
	.has-sidebar.sidebar-left .lh-layout .site-main { order: 0; }
	.lh-head-contact { display: none; }
	.lh-header-contact .site-header__actions { border: 0; flex-basis: auto; }
	.lh-detail,
	.lh-detail--teacher { grid-template-columns: 1fr; }
	.lh-detail__aside { position: static; }
	.lh-header-centered .site-header__inner { flex-direction: row; padding: 0; }
	.lh-header-centered .site-header__actions { justify-content: flex-end; }
	.lh-cols-4,
	.lh-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 782px) {
	.admin-bar.lh-sticky .site-header { top: 46px; }
}

@media (max-width: 640px) {
	.lh-page-header::after { width: 170px; inset-inline-end: -70px; top: -90px; }
	.lh-page-header::before { display: none; }
	.lh-topbar__text { display: none; }
	.lh-topbar__nav { display: none; }
	.site-header__inner { min-height: 70px; gap: 12px; }
	.site-header__cta { display: none; }
	.custom-logo { max-height: 44px; }
	.lh-layout,
	.lh-page { padding-block: 40px 56px; }
	.lh-page-header { padding-block: 44px 40px; }
	.lh-page-header::after { width: 60%; }
	.lh-posts { grid-template-columns: 1fr; }
	.lh-list-list .lh-card:not(.lh-card--result) { flex-direction: column; }
	.lh-list-list .lh-card .post-thumbnail { min-height: 0; aspect-ratio: 3 / 2; }
	.lh-cols-4,
	.lh-cols-3,
	.lh-cols-2 { grid-template-columns: 1fr; }
	.site-footer__nav { margin-inline-start: 0; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: 1; }
	.lh-author-box { flex-direction: column; }
	.alignleft,
	.alignright { float: none; margin-inline: 0; }
	.has-mobile-bar { padding-bottom: 64px; }
	.has-mobile-bar .lh-to-top { bottom: 80px; }
	.lh-mobile-bar {
		position: fixed;
		inset-inline: 0;
		bottom: 0;
		z-index: 60;
		display: flex;
		background: var(--lh-ink-2);
		box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, 0.5);
	}
	.lh-mobile-bar a {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 60px;
		color: #fff;
		font-weight: 700;
		text-decoration: none;
	}
	.lh-mobile-bar__cta { background: var(--lh-accent); color: var(--lh-on-accent) !important; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
