/* ==========================================================
   Drive to Rise — home page, professional design (v2)
   ========================================================== */
:root {
	--navy: #0c2350;
	--navy-2: #14306b;
	--blue: #1d5fd1;
	--blue-2: #174fb0;
	--blue-50: #eef4ff;
	--blue-100: #dbe7fd;
	--gold: #c9a13b;
	--ink: #0f172a;
	--text: #334155;
	--muted: #64748b;
	--line: #e2e8f0;
	--soft: #f6f8fb;
	--white: #fff;
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--r-sm: 10px;
	--r: 16px;
	--r-lg: 22px;
	--shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.06);
	--shadow: 0 1px 2px rgba(15,23,42,.04), 0 12px 32px -12px rgba(15,23,42,.18);
	--shadow-lg: 0 30px 60px -20px rgba(12,35,80,.35);
	--ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body.dtr {
	margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7;
	color: var(--text); background: var(--white);
	-webkit-font-smoothing: antialiased; overflow-x: hidden;
}
:where(.dtr) :where(h1, h2, h3, h4) { margin: 0; color: var(--ink); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
:where(.dtr) :where(p, ul, figure, blockquote) { margin: 0; }
.dtr img { display: block; max-width: 100%; }
:where(.dtr) a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; z-index: 200; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid rgba(29,95,209,.45); outline-offset: 2px; border-radius: 6px; }

/* buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 42px; padding: 0 18px; border-radius: var(--r-sm);
	font: 600 14.5px/1 var(--font); white-space: nowrap; cursor: pointer;
	border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn--lg { height: 52px; padding: 0 24px; font-size: 15.5px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px -6px rgba(29,95,209,.6); }
.btn--primary:hover { background: var(--blue-2); transform: translateY(-1px); }
.btn--line { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--line:hover { border-color: #cbd5e1; background: var(--soft); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--blue-50); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }

/* topbar */
.topbar { background: var(--navy); color: rgba(255,255,255,.78); font-size: 13px; }
.topbar__in { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 16px; }
.topbar__links { display: flex; gap: 22px; }
.topbar__links a { display: inline-flex; align-items: center; gap: 7px; transition: color .2s; }
.topbar__links a:hover { color: #fff; }

/* header */
.header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
.header.is-scrolled { box-shadow: 0 6px 20px -12px rgba(15,23,42,.25); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; flex: none; }
.brand img { height: 44px; width: auto; }
.brand__sep { width: 1px; height: 30px; background: var(--line); }
.brand__name { font-weight: 800; font-size: 17px; color: var(--navy); letter-spacing: -.01em; }
.menu { display: flex; align-items: center; gap: 2px; }
.menu > a { padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 600; color: var(--text); transition: color .2s, background .2s; }
.menu > a:hover { color: var(--blue); background: var(--blue-50); }
.menu__actions { display: flex; gap: 10px; margin-left: 14px; }
.burger { display: none; }

/* hero */
.hero {
	position: relative; overflow: hidden;
	padding: 72px 0 96px;
	background:
		radial-gradient(800px 420px at 100% 0%, var(--blue-50), transparent 70%),
		linear-gradient(180deg, #fbfcfe, #fff);
}
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 56px 56px; opacity: .35;
	-webkit-mask-image: radial-gradient(700px 400px at 20% 20%, #000, transparent 75%);
	mask-image: radial-gradient(700px 400px at 20% 20%, #000, transparent 75%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.tag {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 14px 6px 10px; border-radius: 999px;
	background: #fff; border: 1px solid var(--blue-100); color: var(--blue);
	font-size: 13px; font-weight: 600;
}
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-100); }
.hero h1 { margin-top: 22px; font-size: clamp(38px, 5vw, 60px); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; color: var(--navy); }
.hl { position: relative; color: var(--blue); white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .16em; background: var(--blue-100); z-index: -1; border-radius: 4px; }
.hero__lead { margin-top: 22px; font-size: 18px; color: var(--muted); max-width: 540px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__points { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points svg { color: #16a34a; }

.hero__visual { position: relative; padding: 0 0 26px 26px; }
.hero__frame {
	position: relative; aspect-ratio: 5/4; border-radius: var(--r-lg); overflow: hidden;
	background: var(--navy); box-shadow: var(--shadow-lg);
}
.hero__visual::before { content: ""; position: absolute; left: 0; bottom: 0; width: 55%; height: 60%; border-radius: var(--r-lg); background: var(--navy); z-index: -1; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero__img.is-active { opacity: 1; }
.float-card {
	position: absolute; display: flex; align-items: center; gap: 12px;
	padding: 12px 18px 12px 12px; border-radius: 14px; background: #fff;
	box-shadow: 0 18px 40px -14px rgba(15,23,42,.35); border: 1px solid var(--line);
	animation: bob 6s ease-in-out infinite;
}
.float-card small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.3; }
.float-card strong { display: block; font-size: 15px; color: var(--ink); line-height: 1.3; }
.float-card--badge { left: -6px; top: 34px; }
.float-card--badge img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.float-card--stat { right: -18px; bottom: 60px; animation-delay: -3s; }
.float-card__icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: #dcfce7; color: #16a34a; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* sections */
.section { padding: 100px 0; }
.section--soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.head { margin-bottom: 52px; }
.head h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.03em; color: var(--navy); }
.head p { margin-top: 14px; font-size: 17px; color: var(--muted); }
.head--center { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.head--row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.head--row > p, .head__side p { margin-top: 0; }
.head__side { display: flex; align-items: flex-end; gap: 24px; }
.arrows { display: flex; gap: 8px; flex: none; }
.arrow { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: all .2s; }
.arrow:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
	position: relative; padding: 34px 30px; border-radius: var(--r);
	background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
	transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.feature__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--blue-50); color: var(--blue); }
.feature__step { display: block; margin-top: 24px; font-size: 13px; font-weight: 700; color: var(--gold); letter-spacing: .06em; text-transform: uppercase; }
.feature h3 { margin-top: 6px; font-size: 21px; }
.feature__text { margin-top: 10px; color: var(--muted); }

/* videos */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.video { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .3s; }
.video:hover { box-shadow: var(--shadow); }
.video__media { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border: 0; padding: 0; cursor: pointer; background: var(--navy); overflow: hidden; }
.video__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.video__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,35,80,0) 40%, rgba(12,35,80,.45)); }
.video__media:hover img { transform: scale(1.04); }
.video__play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--blue); box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .3s var(--ease); }
.video__play svg { margin-left: 3px; }
.video__media:hover .video__play { transform: scale(1.08); }
.video__body { padding: 22px 26px 26px; }
.video__body h3 { font-size: 19px; }
.video__text { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* badges */
.badges {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 20px) / 6);
	gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 16px; scrollbar-width: none;
}
.badges::-webkit-scrollbar { display: none; }
.badge { scroll-snap-align: start; padding: 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); text-align: center; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.badge:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.badge__img { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--soft); }
.badge__img img { width: 100%; height: 100%; object-fit: cover; }
.badge figcaption { margin-top: 12px; font-weight: 700; font-size: 15px; color: var(--ink); }

/* why */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.why h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.03em; color: var(--navy); }
.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: var(--blue-100); box-shadow: var(--shadow-sm); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 700; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--soft); transition: background .2s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 2px; margin: -1px 0 0 -5.5px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), background .2s; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--blue); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: #fff; }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__body { padding: 0 20px 20px; color: var(--muted); }
.why__media { position: relative; }
.why__media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.why__media::after { content: ""; position: absolute; right: -18px; top: -18px; width: 120px; height: 120px; border-radius: 20px; z-index: -1; background-image: radial-gradient(var(--blue) 2px, transparent 2px); background-size: 14px 14px; opacity: .35; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery__item { position: relative; border-radius: 14px; overflow: hidden; background: var(--soft); }
.gallery__item--lg { grid-column: span 2; grid-row: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: rgba(12,35,80,0); transition: background .3s; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item:hover::after { background: rgba(12,35,80,.18); }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.quote { display: flex; flex-direction: column; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.quote__mark { color: var(--blue-100); }
.quote blockquote { flex: 1; margin-top: 14px; font-size: 16.5px; color: var(--ink); line-height: 1.7; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote__av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; }
.quote figcaption strong { display: block; color: var(--ink); font-size: 15px; line-height: 1.3; }
.quote figcaption small { display: block; color: var(--muted); font-size: 13.5px; }

/* CTA */
.section--cta { padding: 90px 0; }
.cta {
	position: relative; overflow: hidden;
	display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
	padding: 56px 60px; border-radius: 24px; color: #fff;
	background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, var(--blue) 130%);
}
.cta::after { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 60px solid rgba(255,255,255,.06); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.cta p { margin-top: 8px; color: rgba(255,255,255,.78); font-size: 17px; }
.cta__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* footer */
.footer { background: var(--navy); color: rgba(255,255,255,.7); padding-top: 72px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: 40px; }
.footer__logo { height: 48px; width: auto; border-radius: 8px; background: #fff; padding: 6px 10px; margin-bottom: 18px; box-sizing: content-box; }
.footer__about p { max-width: 340px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; }
.footer li + li { margin-top: 10px; }
.footer a { transition: color .2s; word-break: break-word; }
.footer a:hover { color: #fff; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; background: rgba(8,20,45,.88); animation: fade .2s ease; }
.modal[hidden] { display: none; }
.modal__frame { width: min(1080px, 100%); }
.modal__frame iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; background: #000; }
.modal__frame img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: 12px; }
.modal__close { position: absolute; top: 16px; right: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.modal__close:hover { background: #fff; color: var(--navy); }
@keyframes fade { from { opacity: 0; } }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1100px) {
	.menu > a { padding: 8px 9px; font-size: 14px; }
	.badges { grid-auto-columns: calc((100% - 3 * 20px) / 4); }
}
@media (max-width: 960px) {
	.burger { display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
	.burger span { width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
	.header.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.header.is-open .burger span:nth-child(2) { opacity: 0; }
	.header.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
	.menu {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 2px;
		background: #fff; border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
		box-shadow: 0 20px 30px -20px rgba(15,23,42,.3);
		display: none;
	}
	.header.is-open .menu { display: flex; }
	.menu > a { padding: 12px 10px; font-size: 16px; }
	.menu__actions { margin: 10px 0 0; }
	.menu__actions .btn { flex: 1; height: 46px; }
	.hero { padding: 48px 0 80px; }
	.hero__grid { grid-template-columns: 1fr; gap: 56px; }
	.hero__visual { max-width: 620px; }
	.head--row { grid-template-columns: 1fr; gap: 14px; }
	.features { grid-template-columns: 1fr; }
	.why { grid-template-columns: 1fr; gap: 48px; }
	.why__media { max-width: 560px; }
	.gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.cta { padding: 44px 36px; }
}
@media (max-width: 600px) {
	.topbar__in > span { display: none; }
	.topbar__in { justify-content: center; }
	.header__in { height: 66px; }
	.brand img { height: 36px; }
	.brand__sep, .brand__name { display: none; }
	.section { padding: 72px 0; }
	.hero__btns .btn { width: 100%; }
	.hero__visual { padding: 0 0 18px 18px; }
	.float-card { padding: 9px 14px 9px 9px; }
	.float-card--badge img, .float-card__icon { width: 36px; height: 36px; }
	.float-card--stat { right: -6px; bottom: 40px; }
	.float-card--badge { top: 18px; }
	.videos { grid-template-columns: 1fr; }
	.badges { grid-auto-columns: 44%; }
	.head__side { flex-direction: column; align-items: flex-start; gap: 16px; }
	.gallery { grid-auto-rows: 140px; gap: 10px; }
	.cta { padding: 36px 24px; }
	.cta__btns, .cta__btns .btn { width: 100%; }
	.footer__grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   Auth pages (login / register)
   ========================================================== */
body.auth { display: grid; grid-template-columns: 5fr 7fr; min-height: 100vh; background: linear-gradient(90deg, var(--navy) 41.66%, var(--soft) 41.66%); }
.btn--block { width: 100%; }

.auth__side {
	position: sticky; top: 0; height: 100vh; overflow: hidden;
	display: flex; flex-direction: column; padding: 40px 48px;
	color: rgba(255,255,255,.8);
	background:
		radial-gradient(600px 400px at 100% 0%, rgba(29,95,209,.45), transparent 70%),
		linear-gradient(160deg, var(--navy-2), var(--navy) 60%);
}
.auth__side::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.auth__side > * { position: relative; }
.auth__logo img { height: 44px; width: auto; background: #fff; padding: 6px 10px; border-radius: 10px; box-sizing: content-box; }
.auth__pitch { margin: auto 0; padding: 40px 0 120px; max-width: 440px; }
.auth__kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.auth__pitch h2 { color: #fff; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.auth__pitch ul { list-style: none; padding: 0; margin-top: 30px; display: grid; gap: 14px; }
.auth__pitch ul li { position: relative; padding-left: 34px; font-weight: 500; }
.auth__pitch ul li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: rgba(201,161,59,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23e2c46f' stroke-width='2.6'/%3E%3C/svg%3E") center/14px no-repeat; }
.auth__steps { list-style: none; padding: 0; margin-top: 30px; display: grid; gap: 20px; }
.auth__steps li { display: flex; gap: 16px; align-items: flex-start; }
.auth__steps b { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: var(--gold); font-weight: 800; }
.auth__steps strong { display: block; color: #fff; font-weight: 700; line-height: 1.4; }
.auth__steps span { font-size: 14.5px; line-height: 1.5; }
.auth__art { position: absolute !important; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; }
.auth__foot { position: absolute !important; left: 48px; bottom: 28px; font-size: 13px; color: rgba(255,255,255,.6); }

.auth__main { display: flex; flex-direction: column; align-items: center; padding: 28px 24px 24px; min-width: 0; }
.auth__top { width: 100%; max-width: 560px; display: flex; justify-content: space-between; align-items: center; }
.auth__back { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color .2s; }
.auth__back:hover { color: var(--blue); }
.auth__logo-sm { display: none; }
.auth__logo-sm img { height: 36px; width: auto; mix-blend-mode: multiply; }

.auth__card {
	width: 100%; max-width: 460px; margin: auto 0; padding: 40px 40px 32px;
	background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.auth__card--wide { max-width: 560px; }
.auth__card h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: var(--navy); }
.auth__sub { margin-top: 8px; color: var(--muted); font-size: 15px; }
.auth__card form { margin-top: 28px; display: grid; gap: 18px; }
.auth__switch { margin-top: 24px; text-align: center; font-size: 14.5px; color: var(--muted); }
.auth__switch a, .field__link { color: var(--blue); font-weight: 600; }
.auth__switch a:hover, .field__link:hover { text-decoration: underline; }
.auth__legal { margin-top: 24px; font-size: 13px; color: var(--muted); }

.alert { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500; line-height: 1.5; }
.alert svg { flex: none; margin-top: 1px; }
.alert--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert--success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field { display: grid; gap: 7px; align-content: start; }
.field__label { padding: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field__link { font-size: 13.5px; }
.field__error { font-size: 13px; font-weight: 500; color: #dc2626; }
.field__error p { margin: 0; }
.input {
	width: 100%; height: 48px; padding: 0 14px;
	font: 500 15px var(--font); color: var(--ink);
	background: #fff; border: 1px solid #cbd5e1; border-radius: 10px;
	transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #94a3b8; font-weight: 400; }
.input:hover { border-color: #94a3b8; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29,95,209,.14); }
.input.is-invalid { border-color: #f87171; background: #fffafa; }
.input.is-invalid:focus { box-shadow: 0 0 0 4px rgba(220,38,38,.12); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid2[hidden] { display: none; }

.pw { position: relative; }
.pw .input { padding-right: 70px; }
.pw__toggle { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 600 13px var(--font); cursor: pointer; }
.pw__toggle:hover { background: var(--soft); color: var(--ink); }

.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role { position: relative; cursor: pointer; }
.role input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.role__box {
	display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px;
	border: 1.5px solid #cbd5e1; border-radius: 12px; color: var(--muted); background: #fff;
	transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.role__box strong { color: var(--ink); font-size: 15px; }
.role:hover .role__box { border-color: #94a3b8; }
.role input:checked + .role__box { border-color: var(--blue); background: var(--blue-50); color: var(--blue); box-shadow: 0 0 0 3px rgba(29,95,209,.12); }
.role input:checked + .role__box strong { color: var(--navy); }
.role input:focus-visible + .role__box { outline: 3px solid rgba(29,95,209,.45); outline-offset: 2px; }

@media (max-width: 900px) {
	body.auth { grid-template-columns: 1fr; background: var(--soft); }
	.auth__side { display: none; }
	.auth__logo-sm { display: block; }
	.auth__card { margin: 28px 0 0; }
}
@media (max-width: 520px) {
	.auth__main { padding: 18px 14px 20px; }
	.auth__card { padding: 28px 20px 24px; border-radius: 16px; }
	.auth__card h1 { font-size: 24px; }
	.grid2 { grid-template-columns: 1fr; }
}

/* ==========================================================
   Inner pages (blog, article, reviews)
   ========================================================== */
.menu > a.is-active { color: var(--blue); background: var(--blue-50); }
.wrap--narrow { max-width: 880px; }
.muted { color: var(--muted); }

.page-hero {
	position: relative; overflow: hidden; padding: 56px 0 48px;
	background: radial-gradient(700px 300px at 100% 0%, var(--blue-50), transparent 70%), linear-gradient(180deg, #fbfcfe, var(--soft));
	border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-top: 14px; font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.035em; color: var(--navy); line-height: 1.12; max-width: 820px; text-wrap: balance; }
.page-hero > .wrap > p { margin-top: 12px; font-size: 17px; color: var(--muted); max-width: 640px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.crumbs a { color: var(--blue); }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { color: #cbd5e1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--text); transition: all .2s; }
.chip:hover { border-color: var(--blue-100); color: var(--blue); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.section--tight { padding: 56px 0 90px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.layout__side { position: sticky; top: 100px; display: grid; gap: 20px; }

/* post list */
.posts { display: grid; gap: 22px; }
.post {
	display: grid; grid-template-columns: 280px minmax(0, 1fr); overflow: hidden;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm);
	transition: box-shadow .3s, border-color .3s, transform .3s var(--ease);
}
.post:hover { box-shadow: var(--shadow); border-color: var(--blue-100); transform: translateY(-2px); }
.post__img { display: block; background: var(--soft); min-height: 210px; overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .post__img img { transform: scale(1.04); }
.post__body { padding: 24px 28px; display: flex; flex-direction: column; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.post__cat { padding: 3px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-size: 12.5px; font-weight: 700; }
.post__cat:hover { background: var(--blue-100); }
.post h2 { margin-top: 10px; font-size: 21px; line-height: 1.3; }
.post h2 a:hover { color: var(--blue); }
.post__body > p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.post__more { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--blue); }
.post__more svg { transition: transform .2s; }
.post__more:hover svg { transform: translateX(3px); }

.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.pager a, .pager strong, .pager span, .pager b {
	min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center;
	border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14.5px; color: var(--ink);
}
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager .current, .pager strong, .pager b { background: var(--blue); border-color: var(--blue); color: #fff; }

.empty { text-align: center; padding: 64px 24px; border: 1px dashed #cbd5e1; border-radius: var(--r); background: #fff; color: var(--muted); }
.empty svg { margin: 0 auto 14px; color: #94a3b8; }
.empty h2 { font-size: 22px; }
.empty p { margin: 8px auto 22px; max-width: 420px; }

/* sidebar */
.side-card { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.side-card h3 { font-size: 16px; margin-bottom: 14px; }
.cat-list { list-style: none; padding: 0; margin: 0 -10px; display: grid; gap: 2px; }
.cat-list a { display: block; padding: 10px; border-radius: 10px; transition: background .2s; }
.cat-list a:hover { background: var(--soft); }
.cat-list a.is-active { background: var(--blue-50); }
.cat-list strong { display: block; font-size: 15px; color: var(--ink); }
.cat-list a.is-active strong { color: var(--blue); }
.cat-list small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.side-card--cta { color: rgba(255,255,255,.8); border: 0; background: linear-gradient(140deg, var(--navy), var(--navy-2) 60%, var(--blue) 140%); }
.side-card--cta h3 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.side-card--cta p { font-size: 14.5px; margin-bottom: 18px; }

/* article */
.page-hero--article { padding-bottom: 40px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.byline strong { color: var(--ink); }
.byline__av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; }
.article { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.article__img { display: block; background: var(--soft); }
.article__img img { width: 100%; max-height: 460px; object-fit: cover; }
.prose { padding: 36px 40px 40px; font-size: 17px; line-height: 1.8; color: var(--text); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--navy); margin-top: 1.6em; line-height: 1.3; }
.prose h2 { font-size: 26px; } .prose h3 { font-size: 21px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose img { height: auto !important; max-width: 100% !important; border-radius: 12px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose blockquote { border-left: 4px solid var(--gold); padding: 6px 0 6px 18px; color: var(--ink); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.prose iframe, .prose video { max-width: 100%; }

.author { display: flex; gap: 18px; align-items: center; margin-top: 24px; padding: 22px 24px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); }
.author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: #fff; }
.author small { display: block; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.author strong { display: block; color: var(--ink); font-size: 17px; }
.author p { margin-top: 4px; color: var(--muted); font-size: 15px; }

.block { margin-top: 48px; }
.block__title { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; color: var(--navy); margin-bottom: 20px; }
.count { min-width: 28px; height: 28px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-size: 14px; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related__item { display: flex; flex-direction: column; gap: 6px; padding-bottom: 6px; }
.related__img { display: block; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; background: var(--soft); margin-bottom: 6px; }
.related__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.related__item:hover img { transform: scale(1.05); }
.related__item time { font-size: 13px; color: var(--muted); }
.related__item strong { color: var(--ink); line-height: 1.4; }
.related__item:hover strong { color: var(--blue); }

.comments { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.comment { display: flex; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.comment__av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-weight: 800; }
.comment__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.comment__meta strong { color: var(--ink); }
.comment__meta time { font-size: 13px; color: var(--muted); }
.comment__text { margin-top: 4px; color: var(--text); overflow-wrap: anywhere; }
.comment-form { display: grid; gap: 16px; margin-top: 8px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.comment-form h3 { font-size: 19px; }
.comment-form .btn { justify-self: start; }
.input--area { height: auto; min-height: 130px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.form-msg { font-size: 14.5px; font-weight: 600; }
.form-msg:empty { display: none; }
.form-msg.is-error { color: #dc2626; }
.form-msg.is-ok { color: #15803d; }

/* reviews */
.reviews { columns: 3 300px; column-gap: 24px; }
.review { break-inside: avoid; margin: 0 0 24px; display: flex; flex-direction: column; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.review blockquote { margin-top: 12px; font-size: 16px; color: var(--ink); line-height: 1.7; }
.review blockquote p + p { margin-top: .6em; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.review figcaption strong { display: block; color: var(--ink); font-size: 15px; line-height: 1.3; }
.review figcaption small { display: block; color: var(--muted); font-size: 13.5px; }
.review__av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: var(--soft); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }

@media (max-width: 960px) {
	.layout { grid-template-columns: 1fr; }
	.layout__side { position: static; }
	.post { grid-template-columns: 1fr; }
	.post__img { min-height: 0; aspect-ratio: 16/9; }
	.related { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.page-hero { padding: 36px 0 32px; }
	.prose { padding: 24px 20px 28px; font-size: 16px; }
	.post__body { padding: 20px; }
	.related { grid-template-columns: 1fr; }
	.comment-form { padding: 20px; }
	.author { align-items: flex-start; }
}
.comment-form { margin: 0 0 28px; }
#more-comments { margin-top: -12px; }
.comment[hidden] { display: none; }

/* ==========================================================
   Older inner pages (dashboards, profile, videos, students,
   personal bests, password, contact) — wrapped in .legacy
   by views/template_front.php
   ========================================================== */
.legacy { background: #fff; color: var(--text); font-size: 16px; }
.legacy img { max-width: 100%; height: auto; }
.legacy p { margin: 0 0 1em; }
.legacy ul { margin: 0; }
.legacy a { color: var(--blue); }
.legacy a:hover { color: var(--blue-2); }
.legacy h1, .legacy h2, .legacy h3, .legacy h4 { color: var(--navy); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; text-transform: none; }
.legacy h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 14px; }
.legacy h3 { font-size: 21px; margin: 32px 0 14px; }
.legacy h4 { font-size: 17px; margin: 18px 0 10px; }
.legacy h2 strong, .legacy h3 strong, .legacy h4 strong { color: var(--blue); font-weight: 800; }
.legacy .container { max-width: 1200px; margin: 0 auto; padding: 0 12px; }
.legacy .row { margin: 0 -12px; }
.legacy .row::after, .legacy .container::after, .legacy .clearfix::after { content: ""; display: table; clear: both; }
.legacy .envor-section { padding: 48px 0; }
.legacy .envor-section + .envor-section { padding-top: 0; }
.legacy .envor-section-align-center { text-align: center; }
.legacy .envor-section-align-center form, .legacy .envor-section-align-center table { text-align: left; }
.legacy .align-left, .legacy .envor-section-align-left { text-align: left; }
.legacy .blog-cat { color: var(--muted); }
.legacy .blog-cat strong { color: var(--ink); }
.legacy .icon-ok, .legacy .halflings-icon, .legacy .break, .legacy .fa-rss,
.legacy .envor-navigation, .legacy .envor-controls, .legacy .rivaslider-navigation, .legacy .rivaslider-controls,
.legacy .envor-mobile-breadscrubs { display: none !important; }

/* page title + breadcrumbs → same band as the new pages */
.legacy .envor-page-title-1, .legacy .envor-desktop-breadscrubs {
	background: radial-gradient(700px 300px at 100% 0%, var(--blue-50), transparent 70%), linear-gradient(180deg, #fbfcfe, var(--soft));
}
.legacy .envor-page-title-1 { padding: 48px 0 6px; }
.legacy .envor-page-title-1 h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.035em; }
.legacy .envor-desktop-breadscrubs { padding: 4px 0 34px; border-bottom: 1px solid var(--line); }
.legacy .envor-desktop-breadscrubs-inner { font-size: 14px; font-weight: 500; color: var(--muted); }
.legacy .envor-desktop-breadscrubs-inner .fa { margin: 0 8px; color: #cbd5e1; font-size: 12px; }

/* forms */
.legacy label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ink); text-align: left; }
.legacy input[type="text"], .legacy input[type="email"], .legacy input[type="password"], .legacy input[type="number"],
.legacy input[type="file"], .legacy select, .legacy textarea, .legacy .form-control {
	display: block; width: 100%; height: 46px; padding: 0 14px; margin: 0;
	font: 500 15px var(--font); color: var(--ink); background: #fff;
	border: 1px solid #cbd5e1; border-radius: 10px; box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
}
.legacy input[type="file"] { height: auto; padding: 10px 12px; font-size: 14px; }
.legacy textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.legacy select[multiple] { height: auto; min-height: 110px; padding: 6px; }
.legacy input:focus, .legacy select:focus, .legacy textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29,95,209,.14); }
.legacy input[disabled], .legacy .form-control[disabled] { background: var(--soft); color: var(--muted); }
.legacy .form-group, .legacy form > p { margin: 0 0 16px; }
.legacy .help-inline { display: block; margin: -8px 0 14px; font-size: 13px; color: #dc2626; text-align: left; }
.legacy .help-inline p { margin: 0; }
.legacy .form-group .help-inline { margin: 6px 0 0; }
.legacy .envor-reg, .legacy .envor-regcont, .legacy .azadforms {
	max-width: 640px; margin: 8px auto 0; padding: 32px; text-align: left;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm);
}

/* buttons */
.legacy .envor-btn, .legacy .btn, .legacy input[type="submit"], .legacy input[type="reset"], .legacy input[type="button"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 20px; margin: 4px 8px 4px 0; width: auto;
	font: 600 15px/1 var(--font); text-transform: none; letter-spacing: 0; cursor: pointer;
	border-radius: 10px; border: 1px solid var(--blue); background: var(--blue); color: #fff; text-decoration: none;
	box-shadow: 0 6px 16px -8px rgba(29,95,209,.6); transition: background .2s, border-color .2s, color .2s;
}
.legacy .envor-btn:hover, .legacy .btn:hover, .legacy input[type="submit"]:hover { background: var(--blue-2); border-color: var(--blue-2); color: #fff; }
.legacy input[type="reset"], .legacy .btn-default { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: none; }
.legacy input[type="reset"]:hover, .legacy .btn-default:hover { background: var(--soft); color: var(--ink); border-color: #cbd5e1; }
.legacy .btn-info { background: var(--blue-50); color: var(--blue); border-color: var(--blue-100); box-shadow: none; }
.legacy .btn-info:hover { background: var(--blue-100); color: var(--blue-2); border-color: var(--blue-100); }
.legacy .btn-block { display: flex; width: 100%; margin-right: 0; }
.legacy .margin-left-0 { margin-left: 0; }

/* alerts */
.legacy .alert {
	position: relative; max-width: 1176px; margin: 0 auto 20px; padding: 13px 44px 13px 16px;
	border: 1px solid; border-radius: 10px; font-size: 15px; text-align: left;
}
.legacy .alert strong { font-weight: 700; }
.legacy .alert-success { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.legacy .alert-danger { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.legacy .alert-info { background: var(--blue-50); color: var(--blue-2); border-color: var(--blue-100); }
.legacy .alert-warning { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.legacy .alert .close { position: absolute; right: 10px; top: 8px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: inherit; font-size: 20px; line-height: 1; opacity: .6; cursor: pointer; box-shadow: none; }
.legacy .alert .close:hover { opacity: 1; background: rgba(0,0,0,.05); }
.legacy section > .alert { margin-top: 0; }

/* video cards (dashboards) */
.legacy .envor-sorting-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0 8px; }
.legacy .envor-sorting-filters span { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; transition: all .2s; }
.legacy .envor-sorting-filters span:hover { border-color: var(--blue-100); color: var(--blue); }
.legacy .envor-sorting-filters span.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.legacy .envor-projects-listing { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin-top: 24px; text-align: left; }
.legacy .envor-project { padding: 0 !important; }
.legacy .envor-project[hidden] { display: none; }
.legacy .envor-project-inner { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .3s, transform .3s var(--ease), border-color .3s; }
.legacy .envor-project-inner:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--blue-100); }
.legacy .envor-project figure { position: relative; margin: 0; aspect-ratio: 16/9; background: var(--navy); overflow: hidden; }
.legacy .envor-project figure img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .5s var(--ease); }
.legacy .envor-project-inner:hover figure img { transform: scale(1.05); }
.legacy .envor-project figcaption { position: absolute; inset: 0; }
.legacy .envor-project figcaption a { position: absolute; inset: 0; display: grid; place-items: center; }
.legacy .envor-project figcaption .fa { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--blue); font-size: 20px; padding-left: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.legacy .envor-project-details { padding: 16px 20px 18px; }
.legacy .envor-project-details p { margin: 0; }
.legacy .envor-project-details .link a { font-size: 17px; font-weight: 700; color: var(--ink); }
.legacy .envor-project-details .link a:hover { color: var(--blue); }
.legacy .envor-project-details .filter, .legacy .envor-project-details p + p { margin-top: 6px !important; font-size: 14px; color: var(--muted); }

/* posts, video page, records */
.legacy .envor-post { position: relative; margin: 0 0 20px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); text-align: left; }
.legacy .envor-post figure { margin: 0 0 16px; }
.legacy .envor-post video, .legacy .video-js { display: block; width: 100% !important; max-width: 100%; height: auto !important; aspect-ratio: 16/9; border-radius: 12px; background: #000; }
.legacy .envor-post header h3 { margin: 6px 0 6px; font-size: 22px; }
.legacy .envor-post header h3 .fa { display: none; }
.legacy .envor-post header p { color: var(--muted); font-size: 14px; }
.legacy .date { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 13px; font-weight: 500; }
.legacy .date .day { font-weight: 700; color: var(--ink); }
.legacy .envor-post-author { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r); text-align: left; }
.legacy .envor-post-author figure { flex: none; margin: 0; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #fff; }
.legacy .envor-post-author figure img { width: 100%; height: 100%; object-fit: cover; }
.legacy .envor-post-author p { margin: 0; color: var(--muted); }
.legacy .envor-post-author .name { color: var(--ink); font-weight: 700; font-size: 17px; }
.legacy .envor-relative { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.legacy .envor-post-preview { padding: 0 !important; }
.legacy .envor-post-preview-inner { height: 100%; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-align: left; }
.legacy .envor-post-preview-inner header a { display: block; margin-top: 8px; font-weight: 700; color: var(--ink); }
.legacy .envor-post-preview-inner p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* comments + status updates */
.legacy .envor-comments-list { display: grid; gap: 12px; text-align: left; }
.legacy .envor-comment { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.legacy .envor-comment .envor-comment { margin: 0 14px 12px 56px; background: var(--soft); }
.legacy .envor-comment .inner, .legacy .user-record .envor-comment .inner {
	position: relative; display: block; width: auto; min-height: 0; padding: 16px 18px 14px 70px; color: var(--text); font-size: 15px;
}
.legacy .envor-comment figure, .legacy .user-record .envor-comment figure { position: absolute; left: 16px; top: 16px; width: 40px; height: 40px; margin: 0; border: 0; border-radius: 50%; overflow: hidden; background: var(--blue-50); }
.legacy .envor-comment figure img { width: 100%; height: 100%; object-fit: cover; }
.legacy .envor-comment .meta, .legacy .user-record .envor-comment p.meta { display: block; width: auto; margin: 0 0 4px; padding: 0; border: 0; font-size: 13px; color: var(--muted); }
.legacy .envor-comment .meta .author a { color: var(--ink); font-weight: 700; font-size: 15px; pointer-events: none; }
.legacy .envor-comment .entry { color: var(--text); overflow-wrap: anywhere; }
.legacy .clicktocall { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--blue) !important; }
.legacy .envor-comment form { padding: 0 18px 16px 70px; }
.legacy .envor-comment form p { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.legacy .envor-comment form textarea { min-height: 46px !important; }
.legacy .envor-comment form input[type="submit"] { margin: 0 !important; flex: none; }
.legacy .envor-add-comment, .legacy .update-status-area { margin: 0 0 28px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); text-align: left; }
.legacy .envor-add-comment span { display: block; margin: -4px 0 10px; color: var(--muted); font-size: 14px; }
.legacy .update-status-area textarea { margin-bottom: 12px; }
.legacy .newstatus { display: none; color: #15803d; font-weight: 600; }

/* sidebar widgets (badges, categories) */
.legacy .envor-widget { margin-bottom: 20px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); text-align: left; }
.legacy .envor-widget h3 { margin: 0 0 14px; font-size: 17px; }
.legacy .envor-widget ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.legacy .envor-widget li p { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; }
.legacy .envor-widget li p a { color: var(--ink); }
.legacy .envor-widget li p span { margin-left: auto; width: auto !important; }
.legacy .envor-widget li p img { width: 44px !important; height: 44px; object-fit: cover; border-radius: 10px; margin: 0 !important; }
.legacy .envor-widget li small { display: block; width: auto !important; margin-top: 4px; font-size: 13px; color: var(--muted); }

/* tables (My students, personal bests) */
.legacy .box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; text-align: left; }
.legacy .box-header { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.legacy .box-header h2 { margin: 0; font-size: 20px; }
.legacy .box-content { overflow: auto; }
.legacy .table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legacy .table th { padding: 12px 16px; background: var(--soft); color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; text-align: left; border-bottom: 1px solid var(--line); }
.legacy .table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.legacy .table tbody tr:last-child td { border-bottom: 0; }
.legacy .table tbody tr:hover td { background: #fbfcfe; }
.legacy .table td img { border-radius: 50%; object-fit: cover; }
.legacy .table td form { display: flex; gap: 8px; align-items: flex-start; }
.legacy .table td select[multiple] { min-width: 170px; min-height: 92px; }
.legacy .table td .btn, .legacy .table td input[type="submit"] { height: 38px; padding: 0 14px; margin: 0; }

/* pagination */
.legacy .envor-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.legacy .envor-pagination a, .legacy .envor-pagination strong, .legacy .envor-pagination .page-numbers {
	min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center;
	border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; color: var(--ink);
}
.legacy .envor-pagination strong, .legacy .envor-pagination .current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* misc theme blocks */
.legacy .envor-testimonials-3-inner { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-align: left; }
.legacy .envor-testimonials-3 .arrow { display: none; }
.legacy .envor-testimonials-3 .text .fa { color: var(--blue-100); margin: 0 4px; }
.legacy .envor-testimonials-3 .author { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.legacy .envor-testimonials-3 .avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); }
.legacy .envor-testimonials-3 .author p { margin: 0; font-weight: 700; color: var(--ink); }
.legacy .envor-tabs > header { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.legacy .envor-tabs > header span { padding: 8px 14px; border-radius: 8px; background: var(--soft); font-weight: 600; cursor: pointer; }
.legacy .envor-tabs > header span.is-active { background: var(--navy); color: #fff; }
.legacy .envor-tabs > article[hidden] { display: none; }
.legacy .envor-toggle article { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.legacy .envor-toggle article header { padding: 14px 16px; font-weight: 700; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.legacy .envor-toggle article p { padding: 0 16px 14px; margin: 0; color: var(--muted); }
.legacy .envor-toggle article:not(.is-open) p { display: none; }
.legacy .e-color-list { list-style: none; padding: 0; }
.legacy .e-color-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.legacy .contact-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; text-align: left; }
.legacy .contact-item .fa { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--blue-50); color: var(--blue); font-size: 18px; }

/* Glyphicons used by the older pages */
@font-face { font-family: "Glyphicons Halflings"; src: url("../fonts/glyphicons-halflings-regular.woff") format("woff"), url("../fonts/glyphicons-halflings-regular.ttf") format("truetype"); }
.legacy .glyphicon { position: relative; top: 1px; display: inline-block; font-family: "Glyphicons Halflings"; font-style: normal; font-weight: 400; line-height: 1; -webkit-font-smoothing: antialiased; margin-right: 6px; color: var(--blue); }
.legacy .glyphicon-star-empty::before { content: "\e007"; }
.legacy .glyphicon-flag::before { content: "\e034"; }
.legacy .glyphicon-check::before { content: "\e067"; }
.legacy .glyphicon-chevron-left::before { content: "\e079"; }
.legacy .glyphicon-chevron-right::before { content: "\e080"; }
.legacy .glyphicon-folder-open::before { content: "\e118"; }
.legacy .glyphicon-globe::before { content: "\e135"; }
.legacy .glyphicon-certificate::before { content: "\e146"; }

@media (max-width: 767px) {
	.legacy .envor-reg, .legacy .envor-regcont, .legacy .azadforms { padding: 22px 18px; }
	.legacy .envor-comment .envor-comment { margin-left: 16px; }
	.legacy .envor-comment form { padding-left: 18px; }
	.legacy .envor-comment form p { flex-direction: column; }
	.legacy .envor-page-title-1 { padding-top: 32px; }
}
.legacy .col-xs-1, .legacy .col-xs-2, .legacy .col-xs-3, .legacy .col-xs-4, .legacy .col-xs-5, .legacy .col-xs-6, .legacy .col-xs-7, .legacy .col-xs-8, .legacy .col-xs-9, .legacy .col-xs-10, .legacy .col-xs-11, .legacy .col-xs-12, .legacy .col-sm-1, .legacy .col-sm-2, .legacy .col-sm-3, .legacy .col-sm-4, .legacy .col-sm-5, .legacy .col-sm-6, .legacy .col-sm-7, .legacy .col-sm-8, .legacy .col-sm-9, .legacy .col-sm-10, .legacy .col-sm-11, .legacy .col-sm-12, .legacy .col-md-1, .legacy .col-md-2, .legacy .col-md-3, .legacy .col-md-4, .legacy .col-md-5, .legacy .col-md-6, .legacy .col-md-7, .legacy .col-md-8, .legacy .col-md-9, .legacy .col-md-10, .legacy .col-md-11, .legacy .col-md-12, .legacy .col-lg-1, .legacy .col-lg-2, .legacy .col-lg-3, .legacy .col-lg-4, .legacy .col-lg-5, .legacy .col-lg-6, .legacy .col-lg-7, .legacy .col-lg-8, .legacy .col-lg-9, .legacy .col-lg-10, .legacy .col-lg-11, .legacy .col-lg-12 { position: relative; min-height: 1px; padding-left: 12px; padding-right: 12px; }
.legacy .col-xs-1, .legacy .col-xs-2, .legacy .col-xs-3, .legacy .col-xs-4, .legacy .col-xs-5, .legacy .col-xs-6, .legacy .col-xs-7, .legacy .col-xs-8, .legacy .col-xs-9, .legacy .col-xs-10, .legacy .col-xs-11, .legacy .col-xs-12 { float: left; }
.legacy .col-xs-1 { width: 8.33333%; }
.legacy .col-xs-2 { width: 16.6667%; }
.legacy .col-xs-3 { width: 25%; }
.legacy .col-xs-4 { width: 33.3333%; }
.legacy .col-xs-5 { width: 41.6667%; }
.legacy .col-xs-6 { width: 50%; }
.legacy .col-xs-7 { width: 58.3333%; }
.legacy .col-xs-8 { width: 66.6667%; }
.legacy .col-xs-9 { width: 75%; }
.legacy .col-xs-10 { width: 83.3333%; }
.legacy .col-xs-11 { width: 91.6667%; }
.legacy .col-xs-12 { width: 100%; }
.legacy .col-xs-offset-0 { margin-left: 0%; }
.legacy .col-xs-offset-1 { margin-left: 8.33333%; }
.legacy .col-xs-offset-2 { margin-left: 16.6667%; }
.legacy .col-xs-offset-3 { margin-left: 25%; }
.legacy .col-xs-offset-4 { margin-left: 33.3333%; }
.legacy .col-xs-offset-5 { margin-left: 41.6667%; }
.legacy .col-xs-offset-6 { margin-left: 50%; }
.legacy .col-xs-offset-7 { margin-left: 58.3333%; }
.legacy .col-xs-offset-8 { margin-left: 66.6667%; }
.legacy .col-xs-offset-9 { margin-left: 75%; }
.legacy .col-xs-offset-10 { margin-left: 83.3333%; }
.legacy .col-xs-offset-11 { margin-left: 91.6667%; }
@media (min-width: 768px) {
.legacy .col-sm-1, .legacy .col-sm-2, .legacy .col-sm-3, .legacy .col-sm-4, .legacy .col-sm-5, .legacy .col-sm-6, .legacy .col-sm-7, .legacy .col-sm-8, .legacy .col-sm-9, .legacy .col-sm-10, .legacy .col-sm-11, .legacy .col-sm-12 { float: left; }
.legacy .col-sm-1 { width: 8.33333%; }
.legacy .col-sm-2 { width: 16.6667%; }
.legacy .col-sm-3 { width: 25%; }
.legacy .col-sm-4 { width: 33.3333%; }
.legacy .col-sm-5 { width: 41.6667%; }
.legacy .col-sm-6 { width: 50%; }
.legacy .col-sm-7 { width: 58.3333%; }
.legacy .col-sm-8 { width: 66.6667%; }
.legacy .col-sm-9 { width: 75%; }
.legacy .col-sm-10 { width: 83.3333%; }
.legacy .col-sm-11 { width: 91.6667%; }
.legacy .col-sm-12 { width: 100%; }
.legacy .col-sm-offset-0 { margin-left: 0%; }
.legacy .col-sm-offset-1 { margin-left: 8.33333%; }
.legacy .col-sm-offset-2 { margin-left: 16.6667%; }
.legacy .col-sm-offset-3 { margin-left: 25%; }
.legacy .col-sm-offset-4 { margin-left: 33.3333%; }
.legacy .col-sm-offset-5 { margin-left: 41.6667%; }
.legacy .col-sm-offset-6 { margin-left: 50%; }
.legacy .col-sm-offset-7 { margin-left: 58.3333%; }
.legacy .col-sm-offset-8 { margin-left: 66.6667%; }
.legacy .col-sm-offset-9 { margin-left: 75%; }
.legacy .col-sm-offset-10 { margin-left: 83.3333%; }
.legacy .col-sm-offset-11 { margin-left: 91.6667%; }
}
@media (min-width: 992px) {
.legacy .col-md-1, .legacy .col-md-2, .legacy .col-md-3, .legacy .col-md-4, .legacy .col-md-5, .legacy .col-md-6, .legacy .col-md-7, .legacy .col-md-8, .legacy .col-md-9, .legacy .col-md-10, .legacy .col-md-11, .legacy .col-md-12 { float: left; }
.legacy .col-md-1 { width: 8.33333%; }
.legacy .col-md-2 { width: 16.6667%; }
.legacy .col-md-3 { width: 25%; }
.legacy .col-md-4 { width: 33.3333%; }
.legacy .col-md-5 { width: 41.6667%; }
.legacy .col-md-6 { width: 50%; }
.legacy .col-md-7 { width: 58.3333%; }
.legacy .col-md-8 { width: 66.6667%; }
.legacy .col-md-9 { width: 75%; }
.legacy .col-md-10 { width: 83.3333%; }
.legacy .col-md-11 { width: 91.6667%; }
.legacy .col-md-12 { width: 100%; }
.legacy .col-md-offset-0 { margin-left: 0%; }
.legacy .col-md-offset-1 { margin-left: 8.33333%; }
.legacy .col-md-offset-2 { margin-left: 16.6667%; }
.legacy .col-md-offset-3 { margin-left: 25%; }
.legacy .col-md-offset-4 { margin-left: 33.3333%; }
.legacy .col-md-offset-5 { margin-left: 41.6667%; }
.legacy .col-md-offset-6 { margin-left: 50%; }
.legacy .col-md-offset-7 { margin-left: 58.3333%; }
.legacy .col-md-offset-8 { margin-left: 66.6667%; }
.legacy .col-md-offset-9 { margin-left: 75%; }
.legacy .col-md-offset-10 { margin-left: 83.3333%; }
.legacy .col-md-offset-11 { margin-left: 91.6667%; }
}
@media (min-width: 1200px) {
.legacy .col-lg-1, .legacy .col-lg-2, .legacy .col-lg-3, .legacy .col-lg-4, .legacy .col-lg-5, .legacy .col-lg-6, .legacy .col-lg-7, .legacy .col-lg-8, .legacy .col-lg-9, .legacy .col-lg-10, .legacy .col-lg-11, .legacy .col-lg-12 { float: left; }
.legacy .col-lg-1 { width: 8.33333%; }
.legacy .col-lg-2 { width: 16.6667%; }
.legacy .col-lg-3 { width: 25%; }
.legacy .col-lg-4 { width: 33.3333%; }
.legacy .col-lg-5 { width: 41.6667%; }
.legacy .col-lg-6 { width: 50%; }
.legacy .col-lg-7 { width: 58.3333%; }
.legacy .col-lg-8 { width: 66.6667%; }
.legacy .col-lg-9 { width: 75%; }
.legacy .col-lg-10 { width: 83.3333%; }
.legacy .col-lg-11 { width: 91.6667%; }
.legacy .col-lg-12 { width: 100%; }
.legacy .col-lg-offset-0 { margin-left: 0%; }
.legacy .col-lg-offset-1 { margin-left: 8.33333%; }
.legacy .col-lg-offset-2 { margin-left: 16.6667%; }
.legacy .col-lg-offset-3 { margin-left: 25%; }
.legacy .col-lg-offset-4 { margin-left: 33.3333%; }
.legacy .col-lg-offset-5 { margin-left: 41.6667%; }
.legacy .col-lg-offset-6 { margin-left: 50%; }
.legacy .col-lg-offset-7 { margin-left: 58.3333%; }
.legacy .col-lg-offset-8 { margin-left: 66.6667%; }
.legacy .col-lg-offset-9 { margin-left: 75%; }
.legacy .col-lg-offset-10 { margin-left: 83.3333%; }
.legacy .col-lg-offset-11 { margin-left: 91.6667%; }
}/* keep the blog "author box" style from leaking into the older comment markup */
.legacy .envor-comment .meta .author { display: inline; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.legacy .envor-comment .meta .date { display: inline; padding: 0; margin-left: 6px; background: none; border-radius: 0; color: var(--muted); }
.legacy .envor-comment .meta .date::before { content: "· "; }
.legacy .container { padding: 0 24px; }
.legacy .txtcenternow { text-align: center; }
.legacy .envor-comment .meta .date::before { content: none; }
.legacy section > .alert { width: calc(100% - 48px); margin: 20px auto; }
.legacy--single-video .row > .col-lg-9 { float: none; width: 100%; max-width: 900px; margin: 0 auto; }
.legacy .envor-post-preview-inner .date { margin-bottom: 2px; }
/* My students: page bar under the table */
.legacy .pager-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 22px; border-top: 1px solid var(--line); background: #fbfcfe; }
.legacy .pager-bar__info { margin: 0; font-size: 14px; color: var(--muted); }
.legacy .pager-bar__info strong { color: var(--ink); }
.legacy .pager-bar .envor-pagination { margin: 0; gap: 6px; }
.legacy .pager-bar .envor-pagination a, .legacy .pager-bar .envor-pagination .page-numbers { min-width: 38px; height: 38px; font-size: 14px; text-decoration: none; transition: border-color .2s, color .2s; }
.legacy .pager-bar .envor-pagination a:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 600px) { .legacy .pager-bar { justify-content: center; text-align: center; } }
