/*
Theme Name: آوان — Avan
Theme URI: https://avan.ir
Author: Avan Team
Author URI: https://avan.ir
Description: قالب اختصاصی سامانه آوان — طراحی مدرن و مینیمال برای مجموعه‌های خلاق کودک و نوجوان. این قالب به‌صورت یکپارچه با پلاگین «سامانه آوان» کار می‌کند و از تمام ماژول‌های آن شامل خانواده، مالی، کارگاه‌ها، گزارش رشد و پیامک پشتیبانی می‌کند.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: avan
Domain Path: /languages
*/

:root {
	--bg: #f3f5f7;
	--bg-2: #e9edf2;
	--surface: rgba(255, 255, 255, 0.72);
	--surface-strong: rgba(255, 255, 255, 0.92);
	--surface-dark: rgba(19, 25, 33, 0.82);
	--border: rgba(29, 35, 42, 0.08);
	--border-strong: rgba(29, 35, 42, 0.14);
	--text: #111827;
	--text-soft: #5c6675;
	--text-faint: #8a93a3;
	--blue: #3b82f6;
	--blue-deep: #2457e5;
	--cyan: #39c6d6;
	--mint: #2ec4b6;
	--gold: #d9b56d;
	--gold-2: #f0d6a1;
	--rose: #ef7f70;
	--shadow-lg: 0 24px 80px rgba(17, 24, 39, 0.14);
	--shadow-md: 0 16px 40px rgba(17, 24, 39, 0.1);
	--shadow-sm: 0 10px 28px rgba(17, 24, 39, 0.08);
	--radius-xl: 34px;
	--radius-lg: 24px;
	--radius-md: 18px;
	--radius-sm: 14px;
	--container: 1200px;
}

html { scroll-behavior: smooth; }

body.avan-public,
body.page-template-login-page,
body.page-template-full-avan,
body.page-template-workshops,
body.page-template-single-workshop,
body.page-template-register,
body.page-template-parent-panel,
body.page-template-admin-dashboard {
	font-family: Vazirmatn, IRANSans, Tahoma, Arial, sans-serif;
	background:
		radial-gradient(circle at top right, rgba(61, 111, 255, 0.12), transparent 30%),
		radial-gradient(circle at bottom left, rgba(46, 196, 182, 0.12), transparent 28%),
		linear-gradient(180deg, #fbfcfd 0%, var(--bg) 100%);
	color: var(--text);
	line-height: 1.9;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "ss01" 1, "cv01" 1;
	font-optical-sizing: auto;
	overflow-x: hidden;
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(rgba(255, 255, 255, 0.34) 1px, transparent 1px);
	background-size: 26px 26px;
	opacity: .18;
	z-index: 0;
}

.wrap {
	width: min(calc(100% - 32px), var(--container));
	margin-inline: auto;
	position: relative;
	z-index: 1;
}

.nav {
	position: sticky;
	top: 0;
	backdrop-filter: blur(22px);
	-webkit-backdrop-filter: blur(22px);
	background: rgba(250, 251, 253, 0.72);
	border-bottom: 1px solid rgba(17, 24, 39, 0.06);
	z-index: 100;
	transition: box-shadow .25s ease, background .25s ease, transform .25s ease;
}

.nav-scrolled {
	box-shadow: 0 12px 40px rgba(17, 24, 39, 0.08);
	background: rgba(250, 251, 253, 0.88);
}

.nav-inner,
.hero-grid,
.about-grid,
.header, .section-head,
.cta-banner,
.panel,
.card, .why-card, .hero-card,
.wcard, .mentor-card,
.avan-public .panel,
.avan-public .section-head,
.avan-public .card,
.avan-public .cta-banner {
	animation: fadeUp .7s ease both;
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	min-height: 76px;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -.02em;
	text-decoration: none;
	color: var(--text);
}

.logo .mark {
	width: 40px;
	height: 40px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, rgba(59, 130, 246, .18), rgba(46, 196, 182, .18));
	box-shadow: var(--shadow-sm);
}

.nav-links a,
.btn,
.mini-btn,
.page-title-action,
.button,
.button-primary {
	transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}

.nav-links a:hover,
.btn:hover,
.mini-btn:hover,
.button:hover,
.button-primary:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm);
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.nav-links a {
	color: var(--text);
	text-decoration: none;
	padding: 11px 16px;
	border-radius: 999px;
	font-weight: 600;
	background: transparent;
}

.nav-links a.active,
.nav-links a.nav-cta,
.btn-primary,
.mini-btn,
.button-primary {
	background: linear-gradient(135deg, var(--blue), var(--cyan));
	color: #fff !important;
	border: none;
	box-shadow: 0 14px 34px rgba(59, 130, 246, .22);
}

.nav-links a.nav-cta {
	padding-inline: 18px;
}

.section {
	position: relative;
	padding: 84px 0;
}

.section-head {
	max-width: 700px;
	margin-bottom: 34px;
}

.kicker,
.plugin-tag,
.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(59, 130, 246, 0.08);
	color: var(--blue-deep);
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .01em;
}

h1, h2, h3, h4 {
	margin: 0;
	line-height: 1.15;
	letter-spacing: -.03em;
	font-weight: 800;
}

h1 {
	font-size: clamp(2.6rem, 6vw, 5rem);
	margin-top: 18px;
	margin-bottom: 18px;
}

h2 {
	font-size: clamp(1.8rem, 4vw, 3.2rem);
	margin-top: 12px;
	margin-bottom: 10px;
}

p, li {
	color: var(--text-soft);
}

.lead {
	font-size: clamp(1rem, 2.1vw, 1.18rem);
	max-width: 58ch;
	color: #4f5a69;
}

.hero,
.hero-grid,
.about-grid,
.cards,
.why-grid,
.gal,
.mentors,
.form-row,
.step-bar {
	position: relative;
	z-index: 1;
}

.hero {
	padding-top: 58px !important;
	padding-bottom: 92px;
}

.hero-grid,
.about-grid {
	display: grid;
	grid-template-columns: 1.12fr .88fr;
	gap: 36px;
	align-items: center;
}

.hero-art {
	position: relative;
	min-height: 540px;
}

.hero-photo,
.hero-card,
.panel,
.why-card,
.wcard,
.mentor-card,
.cta-banner,
.card,
.avan-public .panel {
	background: var(--surface);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	border: 1px solid rgba(255, 255, 255, 0.55);
	box-shadow: var(--shadow-lg);
}

.hero-photo {
	position: absolute;
	inset: 20px 0 0 60px;
	border-radius: var(--radius-xl);
	background:
		linear-gradient(145deg, rgba(17, 24, 39, .1), rgba(17, 24, 39, .04)),
		url('https://images.unsplash.com/photo-1503676260728-1c00da094a0b?w=1200&q=80') center/cover;
	box-shadow: 0 28px 80px rgba(17, 24, 39, .18);
}

.hero-card {
	position: absolute;
	min-width: 220px;
	padding: 18px 20px;
	border-radius: 24px;
	animation: float 6s ease-in-out infinite;
}

.hc1 { right: 0; top: 48px; }
.hc2 { left: 20px; top: 220px; animation-delay: .8s; }
.hc3 { right: 36px; bottom: 12px; animation-delay: 1.4s; }

.hc-emoji,
.why-ic {
	width: 46px;
	height: 46px;
	border-radius: 16px;
	display: grid;
	place-items: center;
	margin-bottom: 12px;
	font-size: 1.25rem;
}

.cards,
.why-grid,
.mentors,
.gal {
	display: grid;
	gap: 18px;
}

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

.mentors {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

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

.gal {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: 220px;
}

.gal .tall {
	grid-row: span 2;
}

.gal .wide {
	grid-column: span 2;
}

.gal > div,
.cards > * {
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.why-card,
.wcard,
.mentor-card,
.panel,
.cta-banner,
.card {
	border-radius: var(--radius-lg);
	padding: 24px;
	position: relative;
	overflow: hidden;
}

.why-card::before,
.wcard::before,
.mentor-card::before,
.panel::before,
.cta-banner::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(255,255,255,.7), rgba(255,255,255,.18));
	opacity: .55;
	pointer-events: none;
}

.cta-banner {
	text-align: center;
	padding: 38px 28px;
	background: linear-gradient(135deg, rgba(59,130,246,.1), rgba(46,196,182,.08)), var(--surface-strong);
}

/* Login / Register box */
.avan-login-register-box {
	display: flex;
	align-items: center;
	gap: 0;
	max-width: 680px;
	margin: 0 auto;
}
.avan-lr-column {
	flex: 1;
	padding: 20px;
	text-align: center;
}
.avan-lr-icon {
	font-size: 36px;
	margin-bottom: 10px;
}
.avan-lr-column h3 {
	font-size: 17px;
	font-weight: 700;
	color: var(--ink);
	margin: 0 0 6px;
}
.avan-lr-column p {
	font-size: 13px;
	color: var(--ink-soft);
	margin: 0 0 14px;
}
.avan-lr-divider {
	width: 1px;
	height: 100px;
	background: #dde4f0;
	flex-shrink: 0;
}
.avan-lr-column .btn {
	padding: 12px 24px;
	font-size: 14px;
}
@media (max-width: 560px) {
	.avan-login-register-box {
		flex-direction: column;
		gap: 8px;
	}
	.avan-lr-divider {
		width: 80%;
		height: 1px;
	}
}

.btn,
.mini-btn,
.button,
.button-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 22px;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid transparent;
}

.btn-ghost,
.mini-btn.wait,
.button {
	background: rgba(255, 255, 255, .72);
	color: var(--text) !important;
	border-color: rgba(17, 24, 39, .08);
}

.field input,
.field select,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
	width: 100%;
	border-radius: 18px;
	border: 1px solid rgba(17, 24, 39, .08);
	background: rgba(255, 255, 255, .78);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
	padding: 14px 16px;
	font: inherit;
	color: var(--text);
	outline: none;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

input:focus,
textarea:focus,
select:focus {
	border-color: rgba(59,130,246,.45);
	box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}

.form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.step-bar {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 18px 0 24px;
}

.step {
	padding: 10px 14px;
	border-radius: 999px;
	background: rgba(255,255,255,.66);
	border: 1px solid rgba(17,24,39,.08);
	font-weight: 700;
	color: var(--text-soft);
}

.step.on,
.step.done {
	background: linear-gradient(135deg, rgba(59,130,246,.12), rgba(46,196,182,.12));
	color: var(--blue-deep);
}

.nav-links.open {
	box-shadow: var(--shadow-lg);
}

.public-hero,
.login-hero,
.glass-shell {
	position: relative;
	overflow: hidden;
}

.public-hero::after,
.login-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.4));
	pointer-events: none;
}

/* Login page */
.login-shell {
	min-height: calc(100vh - 90px);
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 28px;
	align-items: center;
	padding: 34px 0 80px;
}

.login-hero {
	min-height: 720px;
	border-radius: 40px;
	background:
		linear-gradient(140deg, rgba(10, 14, 22, .58), rgba(18, 25, 35, .28)),
		url('https://images.unsplash.com/photo-1513151233558-d860c5398176?w=1400&q=80') center/cover;
	box-shadow: var(--shadow-lg);
	padding: 40px;
	display: flex;
	align-items: flex-end;
	color: #fff;
}

.login-hero h1,
.login-hero p {
	color: #fff;
}

.glass-card {
	background: rgba(255,255,255,.18);
	backdrop-filter: blur(28px);
	-webkit-backdrop-filter: blur(28px);
	border: 1px solid rgba(255,255,255,.35);
	box-shadow: 0 24px 80px rgba(17,24,39,.16);
	border-radius: 36px;
	padding: 28px;
}

.otp-visual {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
	margin-top: 12px;
}

.otp-visual span {
	height: 56px;
	border-radius: 16px;
	background: rgba(255,255,255,.2);
	border: 1px solid rgba(255,255,255,.35);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.28);
}

.panel #avanLoginPanel,
.panel[id="avanLoginPanel"] {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 0;
}

#avanLoginStep1,
#avanLoginStep2 {
	position: relative;
	z-index: 1;
}

.avan-login-input {
	font-family: inherit;
	letter-spacing: .14em;
	font-weight: 700;
}

@keyframes fadeUp {
	from { opacity: 0; transform: translateY(22px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

@media (max-width: 1100px) {
	.hero-grid,
	.about-grid,
	.login-shell {
		grid-template-columns: 1fr;
	}
	.hero-art,
	.login-hero {
		min-height: 420px;
	}
	.cards,
	.why-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.gal {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.section {
		padding: 64px 0;
	}
	.nav-inner {
		min-height: 68px;
	}
	.nav-links {
		position: absolute;
		top: 100%;
		left: 16px;
		right: 16px;
		padding: 16px;
		border-radius: 26px;
		background: rgba(255,255,255,.96);
		backdrop-filter: blur(24px);
		-webkit-backdrop-filter: blur(24px);
		display: none;
		flex-direction: column;
		align-items: stretch;
	}
	.nav-links.open { display: flex; }
	.cards,
	.why-grid,
	.gal,
	.form-row {
		grid-template-columns: 1fr;
	}
	.gal .wide,
	.gal .tall {
		grid-column: auto;
		grid-row: auto;
	}
	.hero-photo {
		inset: 40px 0 0 18px;
	}
	.hero-card {
		min-width: 180px;
	}
	.hc1 { right: 8px; top: 18px; }
	.hc2 { left: 8px; top: 180px; }
	.hc3 { right: 8px; bottom: 8px; }
	.login-hero {
		min-height: 340px;
		padding: 24px;
		border-radius: 28px;
	}
	.glass-card {
		padding: 20px;
		border-radius: 28px;
	}
	.otp-visual {
		gap: 8px;
	}
	.otp-visual span {
		height: 46px;
		border-radius: 14px;
	}
}

/* Workshop / product pages */
.workshop-page-hero,
.workshop-detail-hero {
	position: relative;
	overflow: hidden;
	border-radius: 40px;
	background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(255,255,255,.54));
	border: 1px solid rgba(255,255,255,.7);
	box-shadow: var(--shadow-lg);
	backdrop-filter: blur(28px);
	-webkit-backdrop-filter: blur(28px);
}

.workshop-page-hero {
	padding: 34px;
	margin-bottom: 28px;
}

.workshop-page-hero::after,
.workshop-detail-hero::after {
	content: '';
	position: absolute;
	inset: auto -10% -35% auto;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(59,130,246,.18), transparent 65%);
	pointer-events: none;
}

.workshop-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-top: 24px;
}

.workshop-stat {
	padding: 16px 18px;
	border-radius: 22px;
	background: rgba(255,255,255,.72);
	border: 1px solid rgba(17,24,39,.08);
	box-shadow: var(--shadow-sm);
	min-height: 96px;
}

.workshop-stat .value {
	font-size: 1.4rem;
	font-weight: 900;
	color: var(--text);
	margin-bottom: 4px;
}

.workshop-stat .label {
	font-size: .9rem;
	color: var(--text-soft);
}

.workshop-filters {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 26px 0 30px;
}

.workshop-filters .btn {
	padding: 11px 18px;
	font-size: .94rem;
}

.avan-ws-item .wcard {
	height: 100%;
}

.avan-ws-item .wcard .top {
	position: relative;
	min-height: 140px;
	padding: 20px;
	border-radius: 22px 22px 0 0;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-direction: column;
	gap: 12px;
	overflow: hidden;
}

.avan-ws-item .wcard .top::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.02));
}

.avan-ws-item .wcard .top .cap {
	position: relative;
	align-self: flex-start;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255,255,255,.24);
	color: #fff;
	font-weight: 800;
	font-size: .82rem;
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

.avan-ws-item .wcard .top .cap.full {
	background: rgba(239,127,112,.9);
}

.avan-ws-item .wcard .body {
	padding: 24px;
}

.avan-ws-item .wcard .body h3 {
	font-size: 1.2rem;
	margin-bottom: 12px;
}

.avan-ws-item .wcard .meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.avan-ws-item .wcard .chip {
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(59,130,246,.08);
	color: var(--blue-deep);
	font-size: .84rem;
	font-weight: 700;
}

.avan-ws-item .wcard .foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.avan-ws-item .wcard .price {
	font-size: 1.05rem;
	font-weight: 900;
	color: var(--text);
}

.workshop-detail-grid {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 24px;
}

.workshop-detail-hero {
	padding: 28px;
	margin-bottom: 24px;
}

.workshop-hero-media {
	min-height: 360px;
	border-radius: 30px;
	background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(46,196,182,.12));
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow-md);
}

.workshop-hero-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

.detail-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 18px 0;
}

.detail-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 999px;
	background: rgba(255,255,255,.72);
	border: 1px solid rgba(17,24,39,.08);
	font-size: .92rem;
	font-weight: 700;
	color: var(--text);
}

.slot-stack {
	display: grid;
	gap: 12px;
}

.slot-card {
	padding: 18px;
	border-radius: 22px;
	background: rgba(255,255,255,.72);
	border: 1px solid rgba(17,24,39,.08);
	box-shadow: var(--shadow-sm);
	position: relative;
	overflow: hidden;
}

.slot-card.full {
	border-color: rgba(239,127,112,.18);
	background: rgba(239,127,112,.08);
}

.slot-card .slot-top {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
}

.slot-card .slot-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.slot-card .slot-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 16px;
}

.slot-card .slot-actions .mini-btn {
	padding: 11px 16px;
	min-height: 46px;
	border-radius: 16px;
}

@media (max-width: 1100px) {
	.workshop-stats,
	.workshop-detail-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 760px) {
	.workshop-page-hero,
	.workshop-detail-hero {
		border-radius: 28px;
	}
	.workshop-stats,
	.workshop-detail-grid {
		grid-template-columns: 1fr;
	}
	.workshop-page-hero,
	.workshop-detail-hero {
		padding: 22px;
	}
	.workshop-filters {
		gap: 8px;
	}
	.workshop-filters .btn,
	.workshop-stats .workshop-stat {
		width: 100%;
	}
	.avan-ws-item .wcard .foot {
		flex-direction: column;
		align-items: stretch;
	}
	.avan-ws-item .wcard .foot .mini-btn {
		width: 100%;
	}
	.slot-card .slot-top {
		align-items: flex-start;
	}
	.slot-card .slot-actions .mini-btn {
		width: 100%;
	}
}

/* ====== پنل والدین — ویرایش پروفایل ====== */
.profile-tab {
	transition: all .2s;
}
.profile-tab.active {
	background: var(--teal);
	color: #fff !important;
}
.avan-field {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 15px;
	margin-top: 4px;
	box-sizing: border-box;
	font-family: inherit;
}
.avan-field:focus {
	border-color: var(--teal);
	outline: none;
	box-shadow: 0 0 0 3px rgba(78,183,181,.15);
}
.avan-save-btn {
	background: var(--teal);
	color: #fff;
	padding: 12px 28px;
	font-size: 14px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-family: inherit;
	transition: all .2s;
}
.avan-save-btn:hover {
	background: var(--teal-deep);
}
.avan-save-btn:disabled {
	opacity: .6;
	cursor: not-allowed;
}
.avan-msg {
	display: inline-block;
	margin-right: 12px;
	font-size: 13px;
	vertical-align: middle;
}
.avan-doc-upload {
	font-size: 12px;
	margin-top: 4px;
	max-width: 180px;
}
.avan-doc-msg {
	display: block;
	margin-top: 2px;
}
/* Mentor & facilitator avatar — always circular */
.mentor .ph {
    border-radius: 50% !important;
}