/* TechEdu homepage sections ================================================== */

.te-home .te-hero { margin-top: 0; }

.te-wrap { max-width: 84rem; margin: 0 auto; padding-inline: clamp(1.25rem, .5rem + 3vw, 3rem); }
.te-sec { padding: clamp(3.5rem, 2rem + 6vw, 7rem) 0; }

.te-em { color: var(--te-red); font-style: italic; }
.te-kicker--center { justify-content: center; }
.te-kicker--center::before { display: none; }

.te-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 13px 24px; border-radius: var(--te-radius-pill);
	font-weight: 600; font-size: 15px; text-decoration: none;
	transition: transform .18s var(--te-ease), filter .2s, background .2s, color .2s;
}
.te-btn svg { width: 16px; height: 16px; transition: transform .2s; }
.te-btn--dark { background: var(--te-ink); color: #fff; }
.te-btn--dark:hover { transform: translateY(-2px); filter: brightness(1.15); }
.te-btn--dark:hover svg { transform: translate(2px,-2px); }

/* ---- Intro + stats --------------------------------------------------------- */
.te-intro__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
@media (max-width: 860px) { .te-intro__grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.te-intro__title {
	margin: 18px 0 0;
	font-size: var(--te-display-size);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -.02em;
}
.te-intro__text { margin: 20px 0 28px; font-size: 1.1rem; line-height: 1.7; color: var(--te-muted); max-width: 40ch; }

.te-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.te-stat {
	background: var(--te-surface);
	border: 1px solid var(--te-line);
	border-radius: var(--te-radius);
	padding: 26px 24px;
	box-shadow: var(--te-shadow);
}
.te-stat__num {
	display: block;
	font-family: var(--te-display);
	font-weight: 800;
	font-size: clamp(2.2rem, 1.4rem + 2vw, 3.2rem);
	line-height: 1;
	color: var(--te-red);
	letter-spacing: -.02em;
}
.te-stat__label { display: block; margin-top: 8px; font-size: .95rem; color: var(--te-muted); }

/* ---- Section heads --------------------------------------------------------- */
.te-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.4rem; }
.te-sec__head--center { flex-direction: column; align-items: center; text-align: center; }
.te-sec__title { margin: 12px 0 0; font-size: var(--te-title); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; max-width: 22ch; }
.te-sec__head--center .te-sec__title { max-width: 26ch; }
.te-sec__link { font-weight: 600; color: var(--te-red); text-decoration: none; white-space: nowrap; }
.te-sec__link:hover { text-decoration: underline; }

/* ---- Course cards ---------------------------------------------------------- */
.te-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .te-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .te-cards { grid-template-columns: 1fr; } }

.te-card {
	display: flex; flex-direction: column;
	background: var(--te-surface);
	border: 1px solid var(--te-line);
	border-radius: var(--te-radius);
	overflow: hidden;
	text-decoration: none;
	box-shadow: var(--te-shadow);
	transition: transform .2s var(--te-ease), box-shadow .2s var(--te-ease);
}
.te-card:hover { transform: translateY(-6px); box-shadow: var(--te-shadow-lift); }
.te-card__media { position: relative; overflow: hidden; }
.te-card__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .4s var(--te-ease); }
.te-card:hover .te-card__media img { transform: scale(1.06); }
.te-card__tag {
	position: absolute; top: 12px; left: 12px;
	background: rgba(20,16,15,.72); color: #fff;
	backdrop-filter: blur(6px);
	font-size: 11.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
	padding: 5px 11px; border-radius: 999px;
}
.te-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.te-card__title { margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.3; color: var(--te-ink); }
.te-card:hover .te-card__title { color: var(--te-red); }
.te-card__meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.te-card__author { font-size: .9rem; color: var(--te-muted); }
.te-card__go {
	width: 34px; height: 34px; border-radius: 50%;
	display: grid; place-items: center;
	background: rgba(176,30,30,.08); color: var(--te-red);
	transition: background .2s, color .2s, transform .2s;
}
.te-card__go svg { width: 15px; height: 15px; }
.te-card:hover .te-card__go { background: var(--te-red); color: #fff; transform: translate(2px,-2px); }

/* ---- About / Vision / Mission ---------------------------------------------- */
.te-about__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .te-about__grid { grid-template-columns: 1fr; } }
.te-pillar {
	background: var(--te-surface);
	border: 1px solid var(--te-line);
	border-radius: var(--te-radius);
	padding: 32px 28px;
	box-shadow: var(--te-shadow);
}
.te-pillar__icon {
	display: inline-grid; place-items: center;
	width: 50px; height: 50px; border-radius: 14px;
	background: rgba(176,30,30,.08); color: var(--te-red);
	margin-bottom: 18px;
}
.te-pillar__icon svg { width: 24px; height: 24px; }
.te-pillar__title { margin: 0 0 10px; font-size: 1.3rem; font-weight: 700; }
.te-pillar__text { margin: 0; color: var(--te-muted); line-height: 1.7; }

/* ---- What you'll learn (photo-backed dark band) ---------------------------- */
.te-learn {
	position: relative; isolation: isolate; overflow: hidden;
	border-radius: var(--te-radius-lg);
	background: #120d16;
}
.te-learn::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background-image: url("../hero/learn-bg.jpg");
	background-size: cover; background-position: center;
	transform: scale(1.02);
}
.te-learn::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(115deg, rgba(16,12,20,.92) 0%, rgba(16,12,20,.72) 55%, rgba(16,12,20,.5) 100%),
		linear-gradient(to top, rgba(16,12,20,.8), transparent 62%);
}
.te-learn .te-kicker { color: var(--te-red-soft); }
.te-learn .te-sec__title { color: #fff; }
.te-learn .te-sec__link { color: #fff; }
.te-learn__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .te-learn__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .te-learn__grid { grid-template-columns: 1fr; } }
.te-track {
	display: flex; align-items: flex-start; gap: 16px;
	background: rgba(255,255,255,.92);
	border: 1px solid rgba(255,255,255,.7);
	border-radius: var(--te-radius);
	padding: 24px 22px;
	backdrop-filter: blur(14px) saturate(150%);
	-webkit-backdrop-filter: blur(14px) saturate(150%);
	box-shadow: 0 20px 50px -30px rgba(0,0,0,.5);
	transition: transform .2s var(--te-ease), box-shadow .2s var(--te-ease);
}
.te-track:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); }
.te-track__num { font-family: var(--te-display); font-weight: 800; font-size: 1.4rem; color: var(--te-red); line-height: 1; }
.te-track__title { margin: 0 0 6px; font-size: 1.1rem; font-weight: 700; color: var(--te-ink); }
.te-track__text { margin: 0; font-size: .95rem; color: var(--te-muted); line-height: 1.55; }

/* ---- Become a student CTA -------------------------------------------------- */
.te-cta { padding: clamp(2.5rem,1.5rem + 4vw,5rem) 0 clamp(4rem,2.5rem + 5vw,7.5rem); }
.te-cta__panel {
	position: relative; isolation: isolate; overflow: hidden;
	border-radius: var(--te-radius-lg);
	padding: clamp(2.5rem, 1.5rem + 4vw, 5rem);
	text-align: center;
	background: radial-gradient(120% 120% at 50% 0%, #2a1e2e 0%, #1a1420 55%, #120d16 100%);
	color: #fff;
}
.te-cta__glow {
	position: absolute; left: 50%; top: -30%;
	width: min(40rem, 100vw); height: 24rem; transform: translateX(-50%);
	background: rgba(176,30,30,.34); filter: blur(120px); z-index: -1; pointer-events: none;
}
.te-kicker--light { color: var(--te-red-soft); justify-content: center; }
.te-kicker--light::before { background: linear-gradient(to right, transparent, var(--te-red-soft)); }
.te-cta__title {
	margin: 18px auto 0; max-width: 20ch;
	font-family: var(--te-display); font-weight: 800; color: #fff;
	font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); line-height: 1.05; letter-spacing: -.02em;
}
.te-cta__title em { font-style: italic; color: var(--te-red-bright); }
.te-cta__text { margin: 18px auto 0; max-width: 46ch; color: rgba(255,255,255,.75); font-size: 1.1rem; line-height: 1.6; }
.te-cta__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.te-btn--white { background: #fff; color: #14100f; }
.te-btn--white:hover { background: var(--te-red-bright); color: #fff; transform: translateY(-2px); }
.te-btn--white:hover svg { transform: translate(2px,-2px); }
.te-btn--outline { border: 1px solid rgba(255,255,255,.3); color: #fff; }
.te-btn--outline:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

/* ---- Feature band ---------------------------------------------------------- */
.te-features { background: var(--te-base-2); border-radius: var(--te-radius-lg) var(--te-radius-lg) 0 0; }
.te-feat__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .te-feat__grid { grid-template-columns: 1fr; } }
.te-feat {
	background: var(--te-surface);
	border: 1px solid var(--te-line);
	border-radius: var(--te-radius);
	padding: 32px 28px;
	box-shadow: var(--te-shadow);
}
.te-feat__icon {
	display: inline-grid; place-items: center;
	width: 52px; height: 52px; border-radius: 14px;
	background: linear-gradient(135deg, var(--te-red), var(--te-red-deep));
	color: #fff; margin-bottom: 18px;
}
.te-feat__icon svg { width: 24px; height: 24px; }
.te-feat__title { margin: 0 0 10px; font-size: 1.25rem; font-weight: 700; }
.te-feat__text { margin: 0; color: var(--te-muted); line-height: 1.65; }
