/* ============================================================
   کانون سلمان — Design System
   Palette: Educational App (indigo #4F46E5 + orange #EA580C)
   Font: Vazirmatn variable, local
   ============================================================ */

:root {
	--primary: #4F46E5;
	--primary-dark: #4338CA;
	--primary-ink: #312E81;
	--accent: #EA580C;
	--accent-dark: #C2410C;
	--teal: #0D9488;
	--rose: #E11D48;
	--bg: #EEF2FF;
	--bg-soft: #F8FAFF;
	--fg: #1E1B4B;
	--muted-fg: #475569;
	--card: #FFFFFF;
	--border: #C7D2FE;
	--border-soft: #E2E8F0;
	--ring: #4F46E5;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow-sm: 0 1px 3px rgba(30, 27, 75, 0.08);
	--shadow-md: 0 8px 24px rgba(49, 46, 129, 0.12);
	--shadow-lg: 0 16px 40px rgba(49, 46, 129, 0.16);
	--container: 1200px;
	--transition: 200ms ease;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	overflow-x: hidden;
	overflow-x: clip;
}

body {
	margin: 0;
	font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.8;
	color: var(--fg);
	background: var(--bg);
	direction: rtl;
	text-align: right;
	word-wrap: break-word;
	overflow-x: hidden;
	overflow-x: clip;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--primary);
	text-decoration: none;
	transition: color var(--transition);
}

a:hover {
	color: var(--primary-dark);
}

h1, h2, h3, h4 {
	line-height: 1.4;
	font-weight: 800;
	margin: 0 0 0.6em;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
}

:focus-visible {
	outline: 3px solid var(--ring);
	outline-offset: 2px;
	border-radius: 4px;
}

.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 20px;
}

.screen-reader-text,
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -48px;
	right: 16px;
	z-index: 100;
	background: var(--primary);
	color: #fff;
	padding: 10px 18px;
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	font-weight: 700;
}

.skip-link:focus {
	top: 0;
	color: #fff;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 24px;
	border-radius: var(--radius-sm);
	font-weight: 700;
	font-size: 1rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-lg {
	font-size: 1.0625rem;
	padding: 13px 30px;
}

.btn-primary {
	background: var(--primary);
	color: #fff;
}

.btn-primary:hover {
	background: var(--primary-dark);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.btn-accent {
	background: var(--accent-dark);
	color: #fff;
}

.btn-accent:hover {
	background: var(--accent);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.btn-ghost {
	border-color: var(--primary);
	color: var(--primary);
}

.btn-ghost:hover {
	background: var(--primary);
	color: #fff;
}

.btn-ghost-light {
	border-color: rgba(255, 255, 255, 0.7);
	color: #fff;
}

.btn-ghost-light:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
	color: #fff;
}

.btn-outline {
	border-color: var(--border);
	color: var(--primary);
	background: transparent;
}

.btn-outline:hover {
	border-color: var(--primary);
	background: var(--primary);
	color: #fff;
}

.btn-block {
	width: 100%;
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.85);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 72px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--fg);
}

.brand-mark {
	display: inline-flex;
	color: var(--primary);
}

.brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.4;
}

.brand-title {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--primary-ink);
}

.brand-sub {
	font-size: 0.78rem;
	color: var(--muted-fg);
}

.custom-logo {
	max-height: 48px;
	width: auto;
}

.menu {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 14px;
	border-radius: var(--radius-sm);
	color: var(--fg);
	font-weight: 600;
}

.menu a:hover {
	background: var(--bg);
	color: var(--primary);
}

.nav-toggle {
	display: none;
	background: none;
	border: 2px solid var(--border);
	border-radius: var(--radius-sm);
	width: 44px;
	height: 44px;
	cursor: pointer;
	position: relative;
}

.nav-toggle-box,
.nav-toggle-box::before,
.nav-toggle-box::after {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--fg);
	border-radius: 2px;
	position: absolute;
	inset: 0;
	margin: auto;
	transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle-box::before,
.nav-toggle-box::after {
	content: '';
}

.nav-toggle-box::before {
	transform: translateY(-6px);
}

.nav-toggle-box::after {
	transform: translateY(6px);
}

body.nav-open .nav-toggle-box {
	background: transparent;
}

body.nav-open .nav-toggle-box::before {
	transform: rotate(45deg);
}

body.nav-open .nav-toggle-box::after {
	transform: rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(60rem 30rem at 85% -10%, rgba(79, 70, 229, 0.14), transparent 60%),
		radial-gradient(40rem 24rem at 0% 110%, rgba(234, 88, 12, 0.08), transparent 55%),
		var(--bg-soft);
	border-bottom: 1px solid var(--border);
	padding: 72px 0 64px;
}

.hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(79, 70, 229, 0.16) 1.5px, transparent 1.5px);
	background-size: 24px 24px;
	-webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 70%);
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 70%);
	pointer-events: none;
}

.hero .container {
	position: relative;
	z-index: 1;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 48px;
	align-items: center;
}

.hero-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--border);
	color: var(--primary-dark);
	font-weight: 700;
	font-size: 0.9rem;
	padding: 7px 18px;
	border-radius: 999px;
	margin: 0 0 20px;
	box-shadow: var(--shadow-sm);
}

.chip-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #10B981;
	box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.title-accent {
	background: linear-gradient(90deg, var(--accent) 10%, var(--accent-dark) 90%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero-title {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	font-weight: 900;
	color: var(--primary-ink);
	margin-bottom: 18px;
}

.hero-sub {
	font-size: 1.06rem;
	color: var(--muted-fg);
	max-width: 56ch;
	margin-bottom: 28px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 36px;
}

.hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 36px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.hero-stats li {
	display: flex;
	flex-direction: column;
}

.hero-stats li + li {
	border-inline-start: 1px solid var(--border);
	padding-inline-start: 28px;
}

.hero-stats strong {
	font-size: 1.75rem;
	font-weight: 900;
	color: var(--primary);
	line-height: 1.2;
}

.hero-stats span {
	color: var(--muted-fg);
	font-size: 0.9rem;
}

.hero-art {
	position: relative;
	min-height: 380px;
}

.hero-rings {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 340px;
	height: 340px;
	border-radius: 50%;
	border: 1.5px dashed rgba(79, 70, 229, 0.35);
}

.hero-rings::before {
	content: '';
	position: absolute;
	inset: 38px;
	border-radius: 50%;
	border: 1.5px solid rgba(79, 70, 229, 0.16);
}

.hero-rings::after {
	content: '';
	position: absolute;
	inset: -34px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(79, 70, 229, 0.1), transparent 72%);
}

.hero-emblem {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 150px;
	height: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
	border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%;
	box-shadow: var(--shadow-lg);
	animation: blob 9s ease-in-out infinite;
}

.hero-emblem svg {
	width: 66px;
	height: 66px;
}

@keyframes blob {
	0%, 100% { border-radius: 38% 62% 55% 45% / 45% 40% 60% 55%; transform: rotate(0deg); }
	50% { border-radius: 55% 45% 40% 60% / 55% 62% 38% 45%; transform: rotate(5deg); }
}

.hero-bubble {
	position: absolute;
	width: 58px;
	height: 58px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 50%;
	box-shadow: var(--shadow-md);
	color: var(--primary);
	transition: border-color var(--transition), box-shadow var(--transition);
}

.hero-bubble:hover {
	border-color: currentColor;
	box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.08), var(--shadow-lg);
}

.hero-bubble svg {
	width: 26px;
	height: 26px;
}

/* Floating label revealed on hover — always pops toward the emblem (screen center) */
.hb-label {
	--dx: 8px;
	position: absolute;
	top: 50%;
	right: calc(100% + 10px);
	white-space: nowrap;
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 7px 16px;
	font-weight: 800;
	font-size: 0.82rem;
	color: var(--primary-ink);
	box-shadow: var(--shadow-md);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(var(--dx), -50%) scale(0.92);
	transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
	z-index: 2;
}

.hb-3 .hb-label,
.hb-5 .hb-label {
	--dx: -8px;
	right: auto;
	left: calc(100% + 10px);
}

.hero-bubble:hover .hb-label,
.hero-bubble:focus-visible .hb-label {
	opacity: 1;
	visibility: visible;
	transform: translate(0, -50%) scale(1);
}

@media (hover: none) {
	.hb-label {
		display: none;
	}

	.hero-bubble:active .hb-label {
		display: block;
		opacity: 1;
		visibility: visible;
		transform: translate(0, -50%) scale(1);
	}
}

.hb-1 { top: 4%; right: 22%; color: var(--teal); animation: float-a 6s ease-in-out infinite; }
.hb-2 { top: 36%; right: 0; color: var(--accent-dark); animation: float-b 7s ease-in-out infinite; }
.hb-3 { bottom: 24%; left: 4%; color: var(--primary); animation: float-a 8s ease-in-out infinite reverse; }
.hb-4 { bottom: 2%; right: 30%; color: var(--rose); animation: float-b 9s ease-in-out infinite reverse; }
.hb-5 { top: 26%; left: 2%; color: #7C3AED; animation: float-b 7.5s ease-in-out infinite; }
.hb-6 { bottom: 27%; right: 4%; color: var(--teal); animation: float-a 7.2s ease-in-out infinite reverse; }
.hb-7 { top: 3%; right: 0; color: var(--primary-dark); animation: float-a 8.5s ease-in-out infinite; }

@keyframes float-a {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

@keyframes float-b {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(10px); }
}

/* ---------- Sections ---------- */

.section {
	padding: 64px 0;
}

.section-title {
	position: relative;
	font-size: clamp(1.4rem, 3vw, 2rem);
	color: var(--primary-ink);
	text-align: center;
	margin-bottom: 48px;
	padding-bottom: 14px;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	right: 50%;
	transform: translateX(50%);
	width: 64px;
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--accent), var(--primary));
}

.section-cats {
	background: var(--bg-soft);
	border-block: 1px solid var(--border-soft);
}

.section-soft {
	background: var(--bg-soft);
	border-block: 1px solid var(--border-soft);
}

/* ---------- Category cards ---------- */

.cats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
}

.cat-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	background: var(--card);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	padding: 28px 20px;
	text-align: center;
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.cat-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: var(--border);
}

.cat-card strong {
	color: var(--fg);
	font-size: 1.05rem;
}

.cat-count {
	color: var(--muted-fg);
	font-size: 0.88rem;
}

.cat-icon {
	display: inline-flex;
	width: 64px;
	height: 64px;
	align-items: center;
	justify-content: center;
	border-radius: 18px;
	transition: transform var(--transition);
}

.cat-card:hover .cat-icon {
	transform: scale(1.12) rotate(-4deg);
}

.cat-icon svg {
	width: 32px;
	height: 32px;
}

.accent-indigo { background: #EEF2FF; color: var(--primary); }
.accent-orange { background: #FFF7ED; color: var(--accent-dark); }
.accent-teal   { background: #F0FDFA; color: var(--teal); }
.accent-rose   { background: #FFF1F2; color: var(--rose); }
.accent-violet { background: #F5F3FF; color: #7C3AED; }

/* ---------- Class cards ---------- */

.class-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}

.class-card {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: var(--card);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	padding: 24px;
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition), box-shadow var(--transition);
}

.class-card::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	background: var(--primary);
}

.class-card.accent-orange::before { background: var(--accent); }
.class-card.accent-teal::before { background: var(--teal); }
.class-card.accent-rose::before { background: var(--rose); }
.class-card.accent-violet::before { background: #7C3AED; }

.class-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.class-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.class-title {
	font-size: 1.15rem;
	margin: 0;
}

.class-title a {
	color: var(--fg);
}

.class-title a:hover {
	color: var(--primary);
}

.badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.6;
	white-space: nowrap;
}

.badge-open {
	background: #ECFDF5;
	color: #047857;
}

.badge-closed {
	background: #FEF2F2;
	color: #B91C1C;
}

.badge-cat.accent-indigo { background: #EEF2FF; color: var(--primary-dark); }
.badge-cat.accent-orange { background: #FFF7ED; color: var(--accent-dark); }
.badge-cat.accent-teal   { background: #F0FDFA; color: #0F766E; }
.badge-cat.accent-rose   { background: #FFF1F2; color: #BE123C; }
.badge-cat.accent-violet { background: #F5F3FF; color: #6D28D9; }

.class-meta {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cm-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 0.94rem;
	border-bottom: 1px dashed var(--border-soft);
	padding-bottom: 8px;
}

.cm-row dt {
	color: var(--muted-fg);
	flex: none;
}

.cm-row dd {
	margin: 0;
	font-weight: 600;
}

.tuition {
	color: var(--accent-dark);
	font-weight: 800;
}

.class-link {
	margin-top: auto;
}

/* ---------- Schedule table ---------- */

.section-schedule {
	background: var(--bg-soft);
	border-block: 1px solid var(--border-soft);
}

.table-wrap {
	overflow-x: auto;
	contain: paint;
	background: var(--card);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
}

.schedule-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 720px;
}

.schedule-table th,
.schedule-table td {
	padding: 14px 16px;
	text-align: center;
	border-bottom: 1px solid var(--border-soft);
}

.schedule-table thead th {
	background: #EEF2FF;
	color: var(--primary-ink);
	font-size: 0.92rem;
}

.schedule-table tbody th {
	text-align: right;
	font-weight: 700;
}

.schedule-table tbody th a {
	color: var(--fg);
}

.schedule-table tbody tr:last-child th,
.schedule-table tbody tr:last-child td {
	border-bottom: 0;
}

.dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--primary);
	box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.schedule-table tbody tr:nth-child(even) td {
	background: #FAFBFF;
}

.schedule-table th.today,
.schedule-table td.today {
	background: #EEF2FF;
}

.schedule-table thead th.today {
	color: var(--primary-dark);
}

.today-pill {
	display: inline-block;
	margin-inline-start: 6px;
	background: var(--accent);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	padding: 1px 9px;
	border-radius: 999px;
	vertical-align: middle;
}

.table-hint {
	text-align: center;
	color: var(--muted-fg);
	font-size: 0.85rem;
	margin: 14px 0 0;
}

/* ---------- About ---------- */

.about-grid {
	display: grid;
	grid-template-columns: 1.4fr 0.6fr;
	gap: 40px;
	align-items: center;
}

.about-grid .section-title {
	text-align: right;
}

.about-grid .section-title::after {
	right: 0;
	transform: none;
}

.about-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
}

.about-list li {
	position: relative;
	padding: 12px 44px 12px 16px;
	color: var(--fg);
	background: #fff;
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-sm);
}

.about-list li::before {
	content: '';
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--primary);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / contain no-repeat, linear-gradient(var(--primary), var(--primary));
}

.about-note blockquote {
	margin: 0;
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
	color: #fff;
	border-radius: var(--radius);
	padding: 36px 28px;
	box-shadow: var(--shadow-lg);
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 2;
}

/* ---------- News / post cards ---------- */

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}

.post-card {
	background: var(--card);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition), box-shadow var(--transition);
}

.post-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.post-thumb img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.post-card-body {
	padding: 20px 22px 24px;
}

.post-date {
	display: block;
	color: var(--muted-fg);
	font-size: 0.84rem;
	margin-bottom: 8px;
}

.post-card-title {
	font-size: 1.1rem;
	margin-bottom: 8px;
}

.post-card-title a {
	color: var(--fg);
}

.post-card-title a:hover {
	color: var(--primary);
}

.post-excerpt {
	color: var(--muted-fg);
	font-size: 0.94rem;
	margin-bottom: 12px;
}

.read-more {
	font-weight: 700;
	font-size: 0.94rem;
}

/* ---------- CTA ---------- */

.section-cta {
	padding: 24px 0 72px;
}

.cta-box {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(40rem 20rem at 90% -20%, rgba(255, 255, 255, 0.18), transparent 55%),
		linear-gradient(135deg, var(--primary-ink) 0%, var(--primary) 60%, var(--primary-dark) 100%);
	color: #fff;
	border-radius: 24px;
	padding: 56px 40px;
	text-align: center;
	box-shadow: var(--shadow-lg);
}

.cta-box::before,
.cta-box::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.cta-box::before {
	width: 240px;
	height: 240px;
	border: 30px solid rgba(255, 255, 255, 0.08);
	top: -90px;
	inset-inline-start: -70px;
}

.cta-box::after {
	width: 170px;
	height: 170px;
	border: 24px solid rgba(255, 255, 255, 0.07);
	bottom: -80px;
	inset-inline-end: -50px;
}

.cta-box > * {
	position: relative;
	z-index: 1;
}

.cta-box h2 {
	color: #fff;
	font-size: clamp(1.3rem, 3vw, 1.9rem);
}

.cta-box p {
	color: rgba(255, 255, 255, 0.85);
	max-width: 60ch;
	margin-inline: auto;
}

.cta-box .hero-actions {
	justify-content: center;
	margin-bottom: 0;
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--primary-ink);
	color: #C7D2FE;
	margin-top: 0;
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
	padding: 56px 20px 40px;
}

.footer-title {
	display: block;
	color: #fff;
	font-size: 1.05rem;
	margin-bottom: 14px;
}

.site-footer p {
	color: #C7D2FE;
	font-size: 0.94rem;
	margin: 0;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer-menu a {
	color: #C7D2FE;
	display: inline-flex;
	min-height: 32px;
	align-items: center;
}

.footer-menu a:hover {
	color: #fff;
}

.footer-bottom {
	border-top: 1px solid rgba(199, 210, 254, 0.15);
	padding: 18px 0;
	font-size: 0.88rem;
}

.footer-bottom p {
	margin: 0;
	text-align: center;
}

/* ---------- Class gallery & card thumbs ---------- */

.card-thumb {
	display: block;
	border-radius: var(--radius-sm);
	overflow: hidden;
	margin-bottom: 6px;
}

.card-thumb img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.class-card:hover .card-thumb img {
	transform: scale(1.04);
}

.class-gallery-section {
	margin-top: 40px;
	border-top: 1px solid var(--border-soft);
	padding-top: 28px;
}

.gallery-title {
	font-size: 1.2rem;
	color: var(--primary-ink);
	margin-bottom: 18px;
}

.class-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 14px;
}

.gallery-item {
	margin: 0;
	border-radius: var(--radius-sm);
	overflow: hidden;
	border: 1px solid var(--border-soft);
	background: var(--card);
	box-shadow: var(--shadow-sm);
}

.gallery-item img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.gallery-item a:hover img {
	transform: scale(1.06);
}

/* ---------- Teachers ---------- */

.teacher-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}

.teacher-card {
	background: var(--card);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform var(--transition), box-shadow var(--transition);
	display: flex;
	flex-direction: column;
}

.teacher-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

.teacher-photo {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #EEF2FF;
}

.teacher-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	display: block;
	transition: transform 0.35s ease;
}

.teacher-card:hover .teacher-photo img {
	transform: scale(1.04);
}

.teacher-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--primary);
}

.teacher-avatar svg {
	width: 72px;
	height: 72px;
}

.teacher-body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.teacher-name {
	font-size: 1.15rem;
	margin: 0;
}

.teacher-name a {
	color: var(--fg);
}

.teacher-name a:hover {
	color: var(--primary);
}

.teacher-rank {
	color: var(--accent-dark);
	font-weight: 700;
	font-size: 0.9rem;
	margin: 0;
}

.teacher-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	color: var(--muted-fg);
	font-size: 0.88rem;
	margin: 0;
}

.teacher-link {
	margin-top: auto;
	justify-content: center;
}

/* single teacher hero */
.teacher-hero {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 28px;
	align-items: center;
}

.teacher-hero-photo {
	width: 220px;
	height: 220px;
	border-radius: 24px;
	overflow: hidden;
	border: 4px solid #fff;
	box-shadow: var(--shadow-md);
	background: #EEF2FF;
}

.teacher-hero-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	display: block;
}

.teacher-hero-rank {
	color: var(--accent-dark);
	font-weight: 700;
	margin: 4px 0 8px;
}

.teacher-hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	color: var(--muted-fg);
	margin: 0;
}

.teacher-classes,
.teacher-certs {
	margin-top: 36px;
	border-top: 1px solid var(--border-soft);
	padding-top: 28px;
}

.certs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}

.cert-card {
	margin: 0;
	background: var(--card);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-sm);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.cert-card img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

.cert-card figcaption {
	padding: 10px 14px;
	font-weight: 700;
	font-size: 0.88rem;
	color: var(--fg);
}

@media (max-width: 760px) {
	.teacher-hero {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
	}

	.teacher-hero-photo {
		width: 170px;
		height: 170px;
	}
}

/* ---------- Payment form ---------- */

.pay-wrap {
	background: var(--card);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	padding: 36px 32px;
	box-shadow: var(--shadow-sm);
	max-width: 720px;
	margin-inline: auto;
}

.pay-title {
	color: var(--primary-ink);
	text-align: center;
	margin-bottom: 8px;
}

.pay-title::after {
	content: '';
	display: block;
	width: 64px;
	height: 4px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--accent), var(--primary));
	margin: 12px auto 0;
}

.pay-sub {
	color: var(--muted-fg);
	text-align: center;
	max-width: 52ch;
	margin: 14px auto 28px;
}

.pay-notice {
	border-radius: var(--radius-sm);
	padding: 12px 18px;
	font-weight: 600;
	font-size: 0.94rem;
	margin-bottom: 20px;
}

.pay-notice-error {
	background: #FEF2F2;
	color: #B91C1C;
	border: 1px solid #FECACA;
}

.pay-notice-warn {
	background: #FFFBEB;
	color: #92400E;
	border: 1px solid #FDE68A;
}

.pay-empty {
	text-align: center;
	color: var(--muted-fg);
	padding: 24px 0;
}

.pay-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.pf-row label {
	display: block;
	font-weight: 700;
	font-size: 0.92rem;
	margin-bottom: 6px;
}

.pf-row label em {
	color: var(--accent-dark);
	font-style: normal;
}

.pf-row input,
.pf-row select {
	width: 100%;
	min-height: 48px;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 10px 14px;
	font-family: inherit;
	font-size: 1rem;
	background: var(--bg-soft);
	transition: border-color var(--transition), box-shadow var(--transition);
}

.pf-row input:focus,
.pf-row select:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
	outline: none;
}

.pf-half {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.pf-help {
	display: block;
	color: var(--muted-fg);
	font-size: 0.82rem;
	margin-top: 6px;
}

.spay-hp {
	position: absolute;
	right: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.pay-secure {
	text-align: center;
	color: var(--muted-fg);
	font-size: 0.86rem;
	margin: 4px 0 0;
}

@media (max-width: 560px) {
	.pay-wrap {
		padding: 26px 18px;
	}

	.pf-half {
		grid-template-columns: 1fr;
	}
}

/* ---------- Page hero / content ---------- */

.page-hero {
	background: linear-gradient(135deg, #EEF2FF 0%, var(--bg-soft) 100%);
	border-bottom: 1px solid var(--border-soft);
	padding: 48px 0;
}

.page-title {
	font-size: clamp(1.5rem, 3.4vw, 2.2rem);
	color: var(--primary-ink);
	margin: 0;
}

.content-area {
	padding: 48px 20px;
}

.content-area.narrow {
	max-width: 820px;
}

.entry-title {
	font-size: clamp(1.4rem, 3vw, 2rem);
	color: var(--primary-ink);
}

.entry-meta {
	color: var(--muted-fg);
	font-size: 0.9rem;
	margin-bottom: 24px;
}

.entry-thumb {
	margin: 0 0 24px;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}

.entry-content {
	font-size: 1.02rem;
}

.entry-content h2,
.entry-content h3 {
	color: var(--primary-ink);
	margin-top: 1.6em;
}

.pagination,
.navigation.pagination {
	margin-top: 40px;
}

.nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	color: var(--fg);
	font-weight: 600;
}

.page-numbers.current {
	background: var(--primary);
	border-color: var(--primary);
	color: #fff;
}

.page-numbers:hover:not(.current) {
	border-color: var(--primary);
	color: var(--primary);
}

.no-results {
	color: var(--muted-fg);
	text-align: center;
	padding: 40px 0;
}

/* ---------- Single class layout ---------- */

.class-layout {
	display: grid;
	grid-template-columns: 1.6fr 0.9fr;
	gap: 32px;
	align-items: start;
}

.class-sidebar {
	position: sticky;
	top: 96px;
}

.info-card {
	background: var(--card);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	padding: 28px 24px;
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.info-card-title {
	font-size: 1.1rem;
	margin: 0;
}

.related-classes {
	margin-top: 48px;
	border-top: 1px solid var(--border-soft);
	padding-top: 32px;
}

.related-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.related-list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 18px;
	background: var(--card);
	border: 1px solid var(--border-soft);
	border-radius: 999px;
	color: var(--fg);
	font-weight: 600;
}

.related-list a:hover {
	border-color: var(--primary);
	color: var(--primary);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
	.hero-grid,
	.about-grid,
	.class-layout {
		grid-template-columns: 1fr;
	}

	.hero {
		padding: 48px 0;
	}

	.hero-art {
		min-height: 260px;
		order: -1;
	}

	.class-sidebar {
		position: static;
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 760px) {
	.nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.main-nav {
		order: 3;
		width: 100%;
	}

	.header-inner {
		flex-wrap: wrap;
		padding-block: 12px;
	}

	.menu {
		display: none;
		width: 100%;
		flex-direction: column;
		padding-bottom: 12px;
	}

	body.nav-open .menu {
		display: flex;
	}

	.hero-art {
		min-height: 300px;
	}

	.hero-rings {
		width: 260px;
		height: 260px;
	}

	.hero-emblem {
		width: 110px;
		height: 110px;
	}

	.hero-emblem svg {
		width: 48px;
		height: 48px;
	}

	.hero-bubble {
		width: 44px;
		height: 44px;
	}

	.hero-bubble svg {
		width: 20px;
		height: 20px;
	}

	.hb-1 { right: 10%; }
	.hb-2 { right: 0; top: 32%; }
	.hb-3 { left: 2%; }
	.hb-4 { right: 18%; }
	.hb-5 { left: 0; top: 34%; }
	.hb-6 { right: 2%; bottom: 38%; }
	.hb-7 { top: 0; right: 42%; }

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.cta-box {
		padding: 40px 24px;
	}

	.hero-actions .btn {
		flex: 1 1 100%;
	}

	.class-grid {
		grid-template-columns: 1fr;
	}

	.table-wrap {
		-webkit-overflow-scrolling: touch;
	}

	.schedule-table {
		min-width: 640px;
	}

	.schedule-table th,
	.schedule-table td {
		padding: 10px 8px;
		font-size: 0.85rem;
	}

	.section {
		padding: 44px 0;
	}

	.hero-stats {
		gap: 20px;
	}
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.hero-emblem,
	.hero-bubble {
		animation: none !important;
	}
}

/* ---------- Print ---------- */

@media print {
	.site-header,
	.site-footer,
	.hero-art,
	.section-cta,
	.btn {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
	}
}

/* --- Live Schedule & Today Session Status --- */
.schedule-status-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 0.78rem;
	font-weight: 700;
	padding: 5px 11px;
	border-radius: 999px;
	white-space: nowrap;
	line-height: 1.25;
	transition: all 0.2s ease;
}

.schedule-status-pill.badge-live {
	background: #DCFCE7;
	color: #15803D;
	border: 1px solid #86EFAC;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.schedule-status-pill.badge-canceled {
	background: #FEE2E2;
	color: #B91C1C;
	border: 1px solid #FCA5A5;
}

.schedule-status-pill.badge-upcoming {
	background: #EEF2FF;
	color: #4338CA;
	border: 1px solid #C7D2FE;
}

.schedule-status-pill.badge-passed {
	background: #F3F4F6;
	color: #4B5563;
	border: 1px solid #E5E7EB;
}

.schedule-status-pill.badge-muted {
	background: #F3F4F6;
	color: #6B7280;
	border: 1px solid #E5E7EB;
}

.schedule-status-pill.badge-scheduled {
	background: #E0E7FF;
	color: #3730A3;
	border: 1px solid #C7D2FE;
}

.live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #16A34A;
	display: inline-block;
	animation: slmPulseLive 1.5s infinite;
}

@keyframes slmPulseLive {
	0%, 100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.35;
		transform: scale(1.35);
	}
}

.today-class-alert {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 0.88rem;
}

.today-class-alert.badge-live {
	background: #DCFCE7;
	border: 1px solid #86EFAC;
	color: #14532D;
}

.today-class-alert.badge-canceled {
	background: #FEE2E2;
	border: 1px solid #FCA5A5;
	color: #991B1B;
}

.today-class-alert.badge-upcoming {
	background: #EEF2FF;
	border: 1px solid #C7D2FE;
	color: #312E81;
}

.today-class-alert.badge-passed {
	background: #F3F4F6;
	border: 1px solid #E5E7EB;
	color: #374151;
}

.today-class-alert .tca-title {
	font-size: 0.78rem;
	opacity: 0.85;
}

.today-class-alert .tca-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 800;
}

/* ============================================================
   Festivals & Competitions (جشنواره‌ها و مسابقات)
   ============================================================ */
.section-festivals {
	background: var(--bg-soft);
	border-top: 1px solid var(--border-soft);
	border-bottom: 1px solid var(--border-soft);
}

.festival-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 24px;
}

.festival-card {
	background: var(--card);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform var(--transition), box-shadow var(--transition);
}

.festival-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
	border-color: var(--border);
}

.festival-thumb-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #e2e8f0;
	overflow: hidden;
}

.festival-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 300ms ease;
}

.festival-card:hover .festival-thumb {
	transform: scale(1.04);
}

.festival-thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #fef3c7, #e0e7ff);
}

.festival-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.festival-card-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.festival-title {
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.5;
	margin: 0 0 8px;
}

.festival-title a {
	color: var(--fg);
	text-decoration: none;
	transition: color var(--transition);
}

.festival-title a:hover {
	color: var(--primary);
}

.festival-excerpt {
	color: var(--muted-fg);
	font-size: 0.88rem;
	line-height: 1.7;
	margin: 0 0 16px;
	flex: 1;
}

.festival-meta-list {
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	padding: 10px 14px;
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fml-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
}

.fml-icon {
	font-size: 1rem;
	line-height: 1;
}

.fml-text {
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: wrap;
}

.fml-text small {
	color: var(--muted-fg);
	font-size: 0.78rem;
}

.fml-text strong {
	color: var(--fg);
}

.festival-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 12px;
	border-top: 1px solid var(--border-soft);
	gap: 10px;
}

.festival-fee {
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--accent);
}

.festival-fee.free {
	color: #059669;
	background: #ECFDF5;
	padding: 2px 10px;
	border-radius: 6px;
	font-size: 0.82rem;
}

.badge-closing-soon {
	background: #FFF1F2;
	border: 1px solid #FECDD3;
	color: #BE123C;
}
