/*
Theme Name: Ali Sancı Eğitim
Theme URI: https://www.alisanci.com/
Author: Ali Sancı
Author URI: https://www.alisanci.com/
Description: Ali Sancı öğretmen markası için hızlı, erişilebilir, mobil öncelikli ve SEO eklentileriyle uyumlu WordPress teması.
Version: 0.1.6
Requires at least: 6.0
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: alisanci-egitim
Tags: blog, education, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, right-sidebar, accessibility-ready
*/

:root {
	--as-blue-950: #082b4f;
	--as-blue-900: #0a3764;
	--as-blue-800: #0c4f87;
	--as-blue-700: #1267a8;
	--as-blue-600: #1783c5;
	--as-blue-100: #e8f4fc;
	--as-blue-50: #f4f9fd;
	--as-orange-600: #e86f25;
	--as-orange-100: #fff0e6;
	--as-green-700: #16735c;
	--as-green-100: #e7f7f1;
	--as-violet-700: #6a4bb6;
	--as-violet-100: #f1edfb;
	--as-ink: #172435;
	--as-muted: #5b6778;
	--as-line: #dbe4ec;
	--as-surface: #ffffff;
	--as-canvas: #f7f9fc;
	--as-radius-sm: 12px;
	--as-radius: 18px;
	--as-radius-lg: 28px;
	--as-shadow: 0 16px 40px rgba(8, 43, 79, 0.09);
	--as-shadow-sm: 0 8px 22px rgba(8, 43, 79, 0.07);
	--as-container: 1180px;
	--as-content: 780px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	max-width: 100%;
	overflow-x: hidden;
}

body {
	margin: 0;
	max-width: 100%;
	overflow-x: hidden;
	color: var(--as-ink);
	background: var(--as-surface);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

body.menu-open {
	overflow: hidden;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

figure {
	margin: 0;
}

a {
	color: var(--as-blue-700);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover,
a:focus {
	color: var(--as-blue-900);
}

button,
input,
textarea,
select {
	font: inherit;
}

button,
.button,
a {
	-webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.7em;
	color: var(--as-blue-950);
	font-weight: 780;
	line-height: 1.18;
	letter-spacing: -0.025em;
}

h1 {
	font-size: clamp(2.15rem, 5vw, 4.25rem);
}

h2 {
	font-size: clamp(1.75rem, 3vw, 2.55rem);
}

h3 {
	font-size: clamp(1.2rem, 2vw, 1.45rem);
}

p {
	margin: 0 0 1.35em;
}

ul,
ol {
	margin-top: 0;
}

blockquote {
	margin: 2rem 0;
	padding: 1.35rem 1.5rem;
	border-left: 4px solid var(--as-blue-600);
	border-radius: 0 var(--as-radius-sm) var(--as-radius-sm) 0;
	background: var(--as-blue-50);
	color: var(--as-blue-950);
	font-size: 1.08em;
}

table {
	width: 100%;
	margin: 1.5rem 0;
	border-collapse: collapse;
	font-size: 0.96em;
}

th,
td {
	padding: 0.8rem;
	border: 1px solid var(--as-line);
	text-align: left;
	vertical-align: top;
}

th {
	background: var(--as-blue-50);
	color: var(--as-blue-950);
}

.container {
	width: min(calc(100% - 40px), var(--as-container));
	margin-inline: auto;
	min-width: 0;
}

.section-space {
	padding-block: clamp(3.75rem, 7vw, 6.5rem);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 99999;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: #fff;
	color: #000;
	box-shadow: var(--as-shadow);
}

:focus-visible {
	outline: 3px solid #ffad5b;
	outline-offset: 3px;
}

/* Header */
.site-header {
	position: relative;
	z-index: 100;
	background: rgba(255, 255, 255, 0.98);
	border-bottom: 1px solid rgba(219, 228, 236, 0.9);
}

.site-header__inner {
	display: grid;
	grid-template-columns: minmax(220px, auto) 1fr auto;
	gap: 1.75rem;
	align-items: center;
	min-height: 86px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.custom-logo {
	max-width: min(280px, 54vw);
	max-height: 68px;
	object-fit: contain;
}

.site-branding__mark,
.footer-mark {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 15px;
	background: linear-gradient(145deg, var(--as-blue-700), var(--as-blue-950));
	color: #fff;
	font-family: Georgia, serif;
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 8px 18px rgba(12, 79, 135, 0.2);
}

.site-branding__text {
	min-width: 0;
}

.site-title {
	display: block;
	color: var(--as-blue-950);
	font-size: 1.1rem;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
}

.site-description {
	margin: 0.15rem 0 0;
	color: var(--as-muted);
	font-size: 0.76rem;
	line-height: 1.35;
}

.primary-navigation {
	justify-self: end;
}

.primary-navigation .menu,
.footer-menu {
	display: flex;
	align-items: center;
	gap: clamp(0.8rem, 1.8vw, 1.6rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-navigation .menu li {
	position: relative;
	margin: 0;
}

.primary-navigation .menu a {
	display: block;
	padding: 0.55rem 0;
	color: var(--as-ink);
	font-size: 0.92rem;
	font-weight: 650;
	line-height: 1.3;
	text-decoration: none;
}

.primary-navigation .menu a:hover,
.primary-navigation .menu a:focus,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a {
	color: var(--as-blue-700);
}

.primary-navigation .sub-menu {
	position: absolute;
	top: 100%;
	left: -1rem;
	display: none;
	min-width: 230px;
	margin: 0;
	padding: 0.6rem;
	border: 1px solid var(--as-line);
	border-radius: var(--as-radius-sm);
	background: #fff;
	box-shadow: var(--as-shadow);
	list-style: none;
}

.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu {
	display: block;
}

.primary-navigation .sub-menu a {
	padding: 0.65rem 0.75rem;
	border-radius: 8px;
}

.primary-navigation .sub-menu a:hover {
	background: var(--as-blue-50);
}

.search-toggle,
.menu-toggle {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--as-line);
	border-radius: 12px;
	background: var(--as-surface);
	color: var(--as-blue-950);
	cursor: pointer;
}

.search-toggle {
	font-size: 1.65rem;
	line-height: 1;
}

.menu-toggle {
	display: none;
}

.menu-toggle__bars {
	display: grid;
	gap: 4px;
}

.menu-toggle__bars span {
	display: block;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.header-search {
	padding: 1rem 0;
	border-top: 1px solid var(--as-line);
	background: var(--as-blue-50);
}

.search-form {
	display: flex;
	gap: 0.6rem;
	width: 100%;
	max-width: 680px;
	margin: 0 auto;
}

.search-form label {
	flex: 1 1 auto;
}

.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
	width: 100%;
	min-height: 48px;
	padding: 0.72rem 0.9rem;
	border: 1px solid #c9d5e0;
	border-radius: 10px;
	background: #fff;
	color: var(--as-ink);
}

textarea {
	min-height: 160px;
	resize: vertical;
}

.search-submit,
input[type="submit"] {
	min-height: 48px;
	padding: 0.65rem 1.1rem;
	border: 0;
	border-radius: 10px;
	background: var(--as-blue-700);
	color: #fff;
	font-weight: 750;
	cursor: pointer;
}

/* Hero */
.hero-section {
	position: relative;
	overflow: hidden;
	padding: clamp(4.5rem, 8vw, 7.75rem) 0;
	background:
		radial-gradient(circle at 84% 12%, rgba(23, 131, 197, 0.2), transparent 31%),
		linear-gradient(135deg, #f7fbff 0%, #edf6fc 52%, #fff8f1 100%);
}

.hero-section::before {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(12, 79, 135, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 79, 135, 0.035) 1px, transparent 1px);
	background-size: 38px 38px;
	content: "";
	mask-image: linear-gradient(to right, transparent, #000 38%, #000);
}

.hero-grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(350px, 0.88fr);
	gap: clamp(3rem, 7vw, 6rem);
	align-items: center;
}

.hero-grid > *,
.teacher-grid > *,
.content-layout > *,
.quick-grid > *,
.post-card-grid > * {
	min-width: 0;
}

.eyebrow {
	margin: 0 0 0.8rem;
	color: var(--as-blue-700);
	font-size: 0.82rem;
	font-weight: 850;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.hero-copy h1 {
	max-width: 760px;
	margin-bottom: 0.35em;
}

.hero-lead {
	max-width: 660px;
	margin-bottom: 1.55rem;
	color: #3f5368;
	font-size: clamp(1.08rem, 2vw, 1.3rem);
	line-height: 1.65;
}

.hero-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-bottom: 1.75rem;
}

.hero-badges span {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0.35rem 0.75rem;
	border: 1px solid rgba(12, 79, 135, 0.16);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.74);
	color: var(--as-blue-900);
	font-size: 0.82rem;
	font-weight: 700;
}

.hero-actions,
.teacher-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	align-items: center;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0.75rem 1.25rem;
	border: 1px solid transparent;
	border-radius: 12px;
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus {
	transform: translateY(-2px);
}

.button--primary {
	background: linear-gradient(135deg, var(--as-blue-700), var(--as-blue-900));
	color: #fff;
	box-shadow: 0 10px 22px rgba(12, 79, 135, 0.22);
}

.button--primary:hover,
.button--primary:focus {
	color: #fff;
	box-shadow: 0 14px 28px rgba(12, 79, 135, 0.28);
}

.button--secondary {
	border-color: rgba(12, 79, 135, 0.24);
	background: rgba(255, 255, 255, 0.86);
	color: var(--as-blue-900);
}

.hero-board {
	position: relative;
	padding: 1.4rem;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--as-radius-lg);
	background: linear-gradient(155deg, var(--as-blue-900), var(--as-blue-950));
	color: #fff;
	box-shadow: 0 28px 70px rgba(8, 43, 79, 0.25);
	transform: rotate(1deg);
}

.hero-board::after {
	position: absolute;
	right: 12%;
	bottom: -18px;
	left: 12%;
	height: 28px;
	border-radius: 50%;
	background: rgba(8, 43, 79, 0.18);
	filter: blur(12px);
	content: "";
	z-index: -1;
}

.hero-board__top {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.13);
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.hero-board__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #71e2b5;
	box-shadow: 0 0 0 5px rgba(113, 226, 181, 0.1);
}

.hero-formula {
	display: grid;
	place-items: center;
	min-height: 210px;
	padding: 1.7rem 1rem 1.2rem;
	background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
	background-size: 27px 27px;
}

.formula-main {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.1rem, 5vw, 3.4rem);
	font-style: italic;
	letter-spacing: 0.03em;
}

.formula-line {
	width: 72%;
	height: 3px;
	margin-top: -1.3rem;
	border-radius: 50%;
	background: var(--as-orange-600);
	transform: rotate(-2deg);
}

.formula-note {
	color: #ffdbc4;
	font-family: "Segoe Print", "Bradley Hand", cursive;
	font-size: 0.94rem;
	transform: rotate(-1deg);
}

.hero-board__list {
	display: grid;
	gap: 0.65rem;
	margin: 0;
	padding: 1rem 0.4rem 0.25rem;
	list-style: none;
}

.hero-board__list li {
	display: flex;
	gap: 0.65rem;
	align-items: center;
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.88rem;
}

.hero-board__list span {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(113, 226, 181, 0.14);
	color: #71e2b5;
	font-size: 0.72rem;
}

.hero-math span {
	position: absolute;
	color: rgba(12, 79, 135, 0.075);
	font-family: Georgia, serif;
	font-size: clamp(2rem, 5vw, 5rem);
	font-weight: 700;
	pointer-events: none;
}

.hero-math span:nth-child(1) { top: 9%; left: 4%; transform: rotate(-12deg); }
.hero-math span:nth-child(2) { right: 3%; bottom: 8%; transform: rotate(13deg); }
.hero-math span:nth-child(3) { top: 14%; right: 34%; transform: rotate(7deg); }
.hero-math span:nth-child(4) { bottom: 5%; left: 45%; transform: rotate(-7deg); }
.hero-math span:nth-child(5) { top: 50%; left: 1%; transform: rotate(8deg); }

/* Section headings */
.section-heading {
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-heading h2 {
	margin-bottom: 0.45rem;
}

.section-heading > p:last-child {
	max-width: 680px;
	margin: 0;
	color: var(--as-muted);
}

.section-heading--center {
	text-align: center;
}

.section-heading--center > p:last-child {
	margin-inline: auto;
}

.section-heading--split {
	display: flex;
	gap: 1.5rem;
	align-items: end;
	justify-content: space-between;
}

.text-link,
.post-card__link {
	display: inline-flex;
	gap: 0.35rem;
	align-items: center;
	color: var(--as-blue-700);
	font-size: 0.9rem;
	font-weight: 800;
	text-decoration: none;
}

.text-link span,
.post-card__link span {
	transition: transform 160ms ease;
}

.text-link:hover span,
.post-card__link:hover span {
	transform: translateX(4px);
}

/* Quick links */
.quick-section {
	background: #fff;
}

.quick-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.quick-card {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 0.85rem;
	align-items: center;
	min-height: 130px;
	padding: 1.15rem;
	border: 1px solid transparent;
	border-radius: var(--as-radius);
	color: var(--as-ink);
	text-decoration: none;
	transition: transform 170ms ease, box-shadow 170ms ease;
}

.quick-card:hover,
.quick-card:focus {
	color: var(--as-ink);
	transform: translateY(-4px);
	box-shadow: var(--as-shadow-sm);
}

.quick-card--blue { background: var(--as-blue-100); border-color: #cce5f6; }
.quick-card--orange { background: var(--as-orange-100); border-color: #ffdcc5; }
.quick-card--green { background: var(--as-green-100); border-color: #c8ebde; }
.quick-card--violet { background: var(--as-violet-100); border-color: #ded4f5; }

.quick-card__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.76);
	color: var(--as-blue-900);
	font-family: Georgia, serif;
	font-size: 1.22rem;
	font-weight: 800;
	box-shadow: 0 6px 14px rgba(8, 43, 79, 0.06);
}

.quick-card--orange .quick-card__icon { color: #a7470c; }
.quick-card--green .quick-card__icon { color: var(--as-green-700); }
.quick-card--violet .quick-card__icon { color: var(--as-violet-700); font-family: inherit; font-size: 0.8rem; }

.quick-card__content {
	display: grid;
	gap: 0.15rem;
}

.quick-card__content strong {
	color: var(--as-blue-950);
	font-size: 0.94rem;
	line-height: 1.25;
}

.quick-card__content small {
	color: var(--as-muted);
	font-size: 0.72rem;
	line-height: 1.45;
}

.quick-card__arrow {
	font-size: 1.15rem;
	font-weight: 800;
}

/* Post cards */
.latest-section {
	background: var(--as-canvas);
}

.post-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.35rem;
}

.post-card {
	overflow: hidden;
	border: 1px solid var(--as-line);
	border-radius: var(--as-radius);
	background: #fff;
	box-shadow: 0 4px 14px rgba(8, 43, 79, 0.035);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--as-shadow-sm);
}

.post-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--as-blue-100);
	text-decoration: none;
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 260ms ease;
}

.post-card:hover .post-card__media img {
	transform: scale(1.025);
}

.post-card__fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 75% 20%, rgba(232, 111, 37, 0.24), transparent 27%),
		linear-gradient(145deg, var(--as-blue-800), var(--as-blue-950));
}

.post-card__fallback span {
	color: rgba(255, 255, 255, 0.94);
	font-family: Georgia, serif;
	font-size: 3.2rem;
	font-weight: 700;
}

.post-card__body {
	padding: 1.2rem 1.25rem 1.35rem;
}

.post-card__meta {
	display: flex;
	gap: 0.65rem;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.65rem;
	font-size: 0.7rem;
	line-height: 1.4;
}

.post-card__category {
	color: var(--as-blue-700);
	font-weight: 800;
	text-decoration: none;
}

.post-card__meta time {
	color: var(--as-muted);
}

.post-card__title {
	margin-bottom: 0.6rem;
	font-size: 1.08rem;
	line-height: 1.36;
}

.post-card__title a {
	color: var(--as-blue-950);
	text-decoration: none;
}

.post-card__excerpt {
	color: var(--as-muted);
	font-size: 0.84rem;
	line-height: 1.62;
}

.post-card__excerpt p {
	margin-bottom: 0.9rem;
}

/* Teacher section */
.teacher-section {
	background: #fff;
}

.teacher-grid {
	display: grid;
	grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
	gap: clamp(3rem, 7vw, 6rem);
	align-items: center;
}

.teacher-card {
	position: relative;
	min-height: 430px;
	padding: 2rem;
	border-radius: var(--as-radius-lg);
	background:
		linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
		linear-gradient(145deg, var(--as-blue-800), var(--as-blue-950));
	background-size: 32px 32px, 32px 32px, auto;
	color: #fff;
	box-shadow: var(--as-shadow);
}

.teacher-card__mark {
	display: grid;
	place-items: center;
	width: 92px;
	height: 92px;
	margin: 2rem auto 1.5rem;
	border: 2px solid rgba(255, 255, 255, 0.72);
	border-radius: 50%;
	font-family: Georgia, serif;
	font-size: 3.4rem;
	font-weight: 700;
}

.teacher-card__lines {
	display: grid;
	gap: 0.6rem;
	width: 68%;
	margin: 0 auto 2rem;
}

.teacher-card__lines span {
	height: 2px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.28);
	transform: rotate(-1deg);
}

.teacher-card__lines span:nth-child(2) { width: 82%; margin-left: auto; }
.teacher-card__lines span:nth-child(3) { width: 91%; }

.teacher-card p {
	max-width: 310px;
	margin: 0 auto;
	color: rgba(255, 255, 255, 0.92);
	font-family: "Segoe Print", "Bradley Hand", cursive;
	font-size: 1.1rem;
	line-height: 1.7;
	text-align: center;
	transform: rotate(-1deg);
}

.teacher-copy > p:not(.eyebrow) {
	color: var(--as-muted);
	font-size: 1.05rem;
}

.check-list {
	display: grid;
	gap: 0.75rem;
	margin: 1.6rem 0 2rem;
	padding: 0;
	list-style: none;
}

.check-list li {
	position: relative;
	padding-left: 2rem;
	color: var(--as-ink);
	font-weight: 650;
}

.check-list li::before {
	position: absolute;
	top: 0.16rem;
	left: 0;
	display: grid;
	place-items: center;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 50%;
	background: var(--as-green-100);
	color: var(--as-green-700);
	font-size: 0.72rem;
	font-weight: 900;
	content: "✓";
}

.front-widgets {
	background: var(--as-canvas);
}

.front-widgets__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
	align-items: start;
}

/* Desktop front-page widgets must keep their natural content height.
 * Without this, the shorter column stretches to the height of the taller
 * column and CSS Grid distributes the extra space between its widget rows,
 * producing large empty white areas. */
.front-widget-column {
	align-content: start;
	grid-auto-rows: max-content;
}

/* Content layouts */
.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: clamp(2.5rem, 5vw, 4.5rem);
	align-items: start;
}

.content-layout--full {
	grid-template-columns: minmax(0, 1fr);
	max-width: 940px;
}

.article-container {
	max-width: 940px;
}

.archive-header {
	margin-bottom: 2.5rem;
	padding-bottom: 1.6rem;
	border-bottom: 1px solid var(--as-line);
}

.archive-header h1 {
	margin-bottom: 0.35rem;
	font-size: clamp(2rem, 4vw, 3.1rem);
}

.archive-header p,
.archive-description {
	margin: 0;
	color: var(--as-muted);
}

.archive-description p:last-child {
	margin-bottom: 0;
}

.post-list {
	display: grid;
	gap: 1.4rem;
}

.post-row {
	display: grid;
	grid-template-columns: minmax(180px, 0.36fr) minmax(0, 0.64fr);
	gap: 1.35rem;
	padding: 1.15rem;
	border: 1px solid var(--as-line);
	border-radius: var(--as-radius);
	background: #fff;
}

.post-row:not(:has(.post-row__media)) {
	grid-template-columns: 1fr;
}

.post-row__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--as-radius-sm);
}

.post-row__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-row__content {
	align-self: center;
}

.post-row__meta,
.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem 1rem;
	color: var(--as-muted);
	font-size: 0.8rem;
}

.post-row__title {
	margin: 0.35rem 0 0.55rem;
	font-size: 1.3rem;
}

.post-row__title a {
	color: var(--as-blue-950);
	text-decoration: none;
}

.post-row__excerpt {
	color: var(--as-muted);
	font-size: 0.9rem;
}

.post-row__excerpt p {
	margin-bottom: 0.6rem;
}

.entry-article {
	min-width: 0;
}

.entry-header {
	margin-bottom: 2rem;
}

.entry-categories {
	margin-bottom: 0.75rem;
	font-size: 0.78rem;
	font-weight: 800;
}

.entry-categories a {
	display: inline-flex;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	background: var(--as-blue-100);
	text-decoration: none;
}

.entry-title {
	margin-bottom: 0.45rem;
	font-size: clamp(2rem, 4.5vw, 3.35rem);
}

.entry-featured-image {
	margin: 0 0 2.2rem;
	overflow: hidden;
	border-radius: var(--as-radius);
	background: var(--as-blue-50);
}

.entry-featured-image img {
	width: 100%;
}

.entry-content {
	font-size: 1rem;
}

.entry-content > * {
	max-width: 100%;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	scroll-margin-top: 2rem;
	margin-top: 1.65em;
}

.entry-content h2 {
	padding-bottom: 0.35rem;
	border-bottom: 1px solid var(--as-line);
}

.entry-content a {
	overflow-wrap: anywhere;
}

.entry-content iframe {
	max-width: 100%;
}

.entry-content .alignwide {
	width: min(1060px, calc(100vw - 40px));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-content .alignfull {
	width: 100vw;
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.entry-footer {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--as-line);
}

.entry-tags {
	font-size: 0.86rem;
}

.entry-tags > span {
	font-weight: 800;
}

.post-navigation {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--as-line);
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.post-navigation a {
	display: grid;
	gap: 0.25rem;
	padding: 1rem;
	border: 1px solid var(--as-line);
	border-radius: var(--as-radius-sm);
	text-decoration: none;
}

.post-navigation .nav-next {
	text-align: right;
}

.nav-label {
	color: var(--as-muted);
	font-size: 0.72rem;
	font-weight: 750;
	text-transform: uppercase;
}

.nav-title {
	color: var(--as-blue-950);
	font-size: 0.9rem;
	font-weight: 750;
	line-height: 1.4;
}

.pagination,
.posts-navigation {
	margin-top: 2.5rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px;
	min-height: 42px;
	padding: 0.4rem 0.7rem;
	border: 1px solid var(--as-line);
	border-radius: 10px;
	background: #fff;
	text-decoration: none;
}

.pagination .current {
	border-color: var(--as-blue-700);
	background: var(--as-blue-700);
	color: #fff;
}

/* Widgets */
.content-sidebar {
	position: sticky;
	top: 24px;
	display: grid;
	gap: 1.25rem;
}

.widget-zone,
.front-widget-column {
	display: grid;
	gap: 1.1rem;
}

.widget {
	min-width: 0;
	padding: 1.15rem;
	border: 1px solid var(--as-line);
	border-radius: var(--as-radius-sm);
	background: #fff;
	font-size: 0.88rem;
}

.widget-title {
	margin-bottom: 0.8rem;
	font-size: 1rem;
}

.widget ul {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget li {
	margin: 0;
}

.widget a {
	color: var(--as-ink);
	text-decoration: none;
}

.widget a:hover {
	color: var(--as-blue-700);
}

.widget img,
.widget iframe {
	max-width: 100%;
}

.widget .search-form {
	display: grid;
}

/* Comments */
.comments-area {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--as-line);
}

.comments-title,
.comment-reply-title {
	font-size: 1.45rem;
}

.comment-list {
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.comment-list .comment {
	margin: 0 0 1rem;
	padding: 1rem;
	border: 1px solid var(--as-line);
	border-radius: var(--as-radius-sm);
}

.comment-list .children {
	margin-top: 1rem;
	padding-left: 1.5rem;
	list-style: none;
}

.comment-form label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 700;
}

/* Footer */
.footer-widgets {
	padding: 3rem 0;
	border-top: 1px solid var(--as-line);
	background: var(--as-canvas);
}

.footer-widgets__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.5rem;
}

.footer-widgets .widget {
	padding: 0;
	border: 0;
	background: transparent;
}

.site-footer__main {
	padding: 2.5rem 0;
	background: var(--as-blue-950);
	color: rgba(255, 255, 255, 0.74);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2rem;
	align-items: center;
}

.site-footer__brand {
	display: flex;
	gap: 0.9rem;
	align-items: center;
}

.site-footer__brand strong {
	display: block;
	color: #fff;
}

.site-footer__brand p {
	margin: 0.2rem 0 0;
	font-size: 0.78rem;
}

.footer-mark {
	background: rgba(255, 255, 255, 0.1);
	box-shadow: none;
}

.footer-menu {
	flex-wrap: wrap;
	justify-content: end;
	list-style: none;
}

.footer-menu a {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.84rem;
	font-weight: 650;
	text-decoration: none;
}

.footer-menu a:hover {
	color: #fff;
}

.site-info {
	padding: 0.8rem 0;
	background: #061f39;
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.72rem;
}

.site-info .container {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.2rem;
	justify-content: space-between;
}

/* Utility pages */
.no-results,
.error-page__inner {
	max-width: 720px;
	margin-inline: auto;
	text-align: center;
}

.no-results .search-form,
.error-page .search-form {
	margin: 1.5rem auto;
}

.error-page__number {
	color: var(--as-blue-100);
	font-size: clamp(5rem, 18vw, 12rem);
	font-weight: 900;
	line-height: 0.8;
}

/* WordPress core */
.alignleft {
	float: left;
	margin: 0.4rem 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0.4rem 0 1rem 1.5rem;
}

.aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
	margin-top: 0.45rem;
	color: var(--as-muted);
	font-size: 0.78rem;
	text-align: center;
}

.sticky {
	border-color: var(--as-orange-600);
}

.bypostauthor {
	outline: 1px solid var(--as-blue-100);
}

/* Responsive */
@media (max-width: 1080px) {
	.site-header__inner {
		grid-template-columns: 1fr auto auto;
	}

	.menu-toggle {
		display: inline-grid;
	}

	.primary-navigation {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		padding: 0 20px 20px;
		border-bottom: 1px solid var(--as-line);
		background: #fff;
		box-shadow: 0 18px 30px rgba(8, 43, 79, 0.08);
	}

	.primary-navigation.is-open {
		display: block;
	}

	.primary-navigation .menu {
		display: grid;
		gap: 0;
		width: min(100%, var(--as-container));
		margin-inline: auto;
	}

	.primary-navigation .menu a {
		padding: 0.8rem 0;
		border-bottom: 1px solid var(--as-line);
	}

	.primary-navigation .sub-menu {
		position: static;
		display: grid;
		margin-left: 1rem;
		padding: 0;
		border: 0;
		box-shadow: none;
	}

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

	.content-layout {
		grid-template-columns: minmax(0, 1fr) 270px;
		gap: 2.25rem;
	}
}

@media (max-width: 840px) {
	.hero-grid,
	.teacher-grid,
	.content-layout {
		grid-template-columns: 1fr;
	}

	.hero-grid {
		gap: 3.25rem;
	}

	.hero-board {
		width: min(100%, 560px);
		margin-inline: auto;
	}

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

	.content-sidebar {
		position: static;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-top: 2rem;
		padding-top: 2rem;
		border-top: 1px solid var(--as-line);
	}

	.teacher-card {
		width: min(100%, 560px);
		min-height: 380px;
		margin-inline: auto;
	}
}

@media (max-width: 620px) {
	body {
		font-size: 16px;
		padding-bottom: 70px;
	}

	.container {
		width: min(calc(100% - 32px), var(--as-container));
	}

	.site-header__inner {
		grid-template-columns: minmax(0, 1fr) auto auto;
		gap: 0.45rem;
		min-height: 70px;
	}

	.site-branding,
	.site-branding__text {
		min-width: 0;
	}

	.site-branding__mark {
		width: 40px;
		height: 40px;
		border-radius: 12px;
		font-size: 1.36rem;
	}

	.site-title {
		font-size: 0.83rem;
		line-height: 1.06;
		overflow-wrap: normal;
	}

	.site-description {
		display: none;
	}

	.search-toggle,
	.menu-toggle {
		width: 38px;
		height: 38px;
	}

	.hero-section {
		padding-block: 2.55rem 3.5rem;
	}

	.hero-grid {
		gap: 2.4rem;
	}

	.hero-copy .eyebrow {
		margin-bottom: 0.55rem;
		font-size: 0.78rem;
	}

	.hero-copy h1 {
		margin-bottom: 0.45em;
		font-size: clamp(2rem, 9.4vw, 2.35rem);
		line-height: 1.08;
		overflow-wrap: normal;
	}

	.hero-lead {
		margin-bottom: 1.1rem;
		font-size: 1rem;
		line-height: 1.52;
	}

	.hero-badges {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.45rem;
		margin-bottom: 1.2rem;
	}

	.hero-badges > span {
		justify-content: center;
		width: 100%;
		max-width: 100%;
		min-height: 38px;
		padding: 0.38rem 0.55rem;
		font-size: 0.78rem;
		line-height: 1.2;
		text-align: center;
		white-space: normal;
	}

	.hero-badges > span:last-child {
		grid-column: 1 / -1;
	}

	/* Keep the main CTA clear of the two fixed assistant controls. */
	.hero-actions {
		width: 100%;
		padding-inline: 52px;
	}

	.hero-actions .button {
		width: 100%;
		min-height: 48px;
		padding-inline: 0.75rem;
		font-size: 0.9rem;
		text-align: center;
	}

	.hero-board {
		padding: 1rem;
		border-radius: 22px;
		transform: none;
	}

	.hero-formula {
		min-height: 175px;
	}

	.quick-grid,
	.post-card-grid,
	.front-widgets__grid,
	.content-sidebar,
	.post-navigation .nav-links,
	.site-footer__grid {
		grid-template-columns: 1fr;
	}

	.section-heading--split {
		align-items: start;
		flex-direction: column;
	}

	.quick-card {
		min-height: 110px;
	}

	.post-row,
	.post-row:not(:has(.post-row__media)) {
		grid-template-columns: 1fr;
	}

	.post-row__media {
		aspect-ratio: 16 / 9;
	}

	.entry-content table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.entry-content .alignwide,
	.entry-content .alignfull {
		width: calc(100vw - 28px);
	}

	.footer-navigation {
		width: 100%;
	}

	.footer-menu {
		justify-content: start;
	}

	.site-info .container {
		justify-content: center;
		text-align: center;
	}

	/* Existing floating plugins: keep both controls inside the mobile viewport. */
	#ask-floating-wrapper {
		right: auto !important;
		bottom: 10px !important;
		left: 10px !important;
		max-width: calc(100vw - 20px) !important;
	}

	#ahoda-float-wrap {
		right: 10px !important;
		bottom: 10px !important;
		left: auto !important;
		max-width: calc(100vw - 20px) !important;
	}

	#ask-trigger-btn,
	#ahoda-float-button {
		width: 46px !important;
		max-width: 46px !important;
		min-width: 46px !important;
		height: 46px !important;
		max-height: 46px !important;
		min-height: 46px !important;
		padding: 0 !important;
		overflow: hidden !important;
		border-radius: 50% !important;
	}

	#ahoda-float-button .ahoda-float-label {
		display: none !important;
	}

	#ask-popup,
	#ahoda-float-panel {
		max-width: calc(100vw - 24px) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}


/* v0.1.5 — mobile hero fine tuning based on real 400px viewport test. */
@media (max-width: 620px) {
	/* Keep the first screen calm and ensure the primary CTA clears floating tools. */
	.site-header__inner {
		min-height: 66px;
	}

	.site-branding {
		gap: 0.6rem;
	}

	.site-branding__mark {
		width: 38px;
		height: 38px;
		border-radius: 11px;
		font-size: 1.28rem;
	}

	.site-title {
		font-size: 0.8rem;
		line-height: 1.02;
	}

	.search-toggle,
	.menu-toggle {
		width: 36px;
		height: 36px;
	}

	.hero-section {
		padding-block: 1.85rem 2.7rem;
	}

	.hero-copy .eyebrow {
		margin-bottom: 0.35rem;
		font-size: 0.75rem;
	}

	.hero-copy h1 {
		margin-bottom: 0.25em;
		font-size: clamp(1.95rem, 8.8vw, 2.16rem);
		line-height: 1.03;
		letter-spacing: -0.035em;
	}

	.hero-lead {
		margin-bottom: 0.72rem;
		font-size: 0.96rem;
		line-height: 1.45;
	}

	.hero-badges {
		gap: 0.38rem;
		margin-bottom: 0.72rem;
	}

	.hero-badges > span {
		min-height: 34px;
		padding: 0.3rem 0.48rem;
		font-size: 0.74rem;
	}

	.hero-actions {
		display: grid;
		gap: 0.48rem;
		width: 100%;
		padding-inline: 50px;
	}

	.hero-actions .button {
		min-height: 44px;
		padding-block: 0.55rem;
		font-size: 0.84rem;
		line-height: 1.15;
	}

	/* The two plugin launchers remain available, but use less visual space. */
	#ask-trigger-btn,
	#ahoda-float-button {
		width: 42px !important;
		max-width: 42px !important;
		min-width: 42px !important;
		height: 42px !important;
		max-height: 42px !important;
		min-height: 42px !important;
	}

	#ask-floating-wrapper {
		bottom: 8px !important;
		left: 8px !important;
	}

	#ahoda-float-wrap {
		right: 8px !important;
		bottom: 8px !important;
	}
}

/* Extra compaction for short mobile viewports such as 400 × 650 previews. */
@media (max-width: 620px) and (max-height: 700px) {
	.hero-section {
		padding-top: 1.55rem;
	}

	.hero-copy h1 {
		font-size: clamp(1.86rem, 8.4vw, 2.06rem);
	}

	.hero-lead {
		font-size: 0.93rem;
		line-height: 1.4;
	}

	.hero-badges > span {
		min-height: 32px;
	}

	.hero-actions .button {
		min-height: 42px;
	}
}
