/**
 * Home page preset styles.
 *
 * @package Technologist
 */

.th-home-wrapper {
	width: 100%;
}

.th-home-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
}

.th-home-section {
	padding: 64px 0;
}

.th-home-section__head {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 40px;
}

.th-home-section__head h2,
.th-home-enrollment__content h2,
.th-home-welcome__content h2,
.th-home-faq h2,
.th-home-contact h2 {
	font-size: 32px;
	line-height: 1.25;
	margin-bottom: 12px;
	color: var(--th-text, #1f2937);
}

.th-home-section__head p,
.th-home-enrollment__content p,
.th-home-welcome__content p,
.th-home-card p,
.th-home-program p,
.th-home-news__body p {
	color: #4b5563;
	line-height: 1.7;
}

.th-home-hero {
	position: relative;
	color: #fff;
	padding: 96px 0 88px;
	background: linear-gradient(135deg, var(--th-primary, #2563eb), var(--th-secondary, #1e40af));
	background-size: cover;
	background-position: center;
}

.th-home-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(37, 99, 235, .88), rgba(30, 64, 175, .88));
}

.th-home-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 760px;
}

.th-home-hero__welcome {
	display: inline-block;
	margin-bottom: 16px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .16);
	font-weight: 600;
}

.th-home-hero__title {
	font-size: var(--th-hero-title, 42px);
	line-height: 1.15;
	margin-bottom: 16px;
}

.th-home-hero__subtitle {
	font-size: var(--th-hero-subtitle, 18px);
	line-height: 1.7;
	margin-bottom: 28px;
	opacity: .95;
}

.th-home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.th-home-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease;
}

.th-home-btn--primary {
	background: var(--th-accent, #f59e0b);
	color: #111827;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

.th-home-btn--ghost {
	border: 1px solid rgba(255, 255, 255, .65);
	color: #fff;
}

.th-home-btn:hover {
	transform: translateY(-1px);
}

.th-home-enrollment {
	background: #f8fafc;
}

.th-home-enrollment__grid {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 24px;
	align-items: center;
}

.th-home-enrollment__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	padding: 16px;
	border-radius: 16px;
	background: var(--th-primary, #2563eb);
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	text-align: center;
}

.th-home-features__grid,
.th-home-programs__grid,
.th-home-news__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.th-home-card,
.th-home-program,
.th-home-news__item {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.th-home-card__icon,
.th-home-program__icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	background: rgba(37, 99, 235, .1);
	color: var(--th-primary, #2563eb);
	font-size: 22px;
}

.th-home-card h3,
.th-home-program h3,
.th-home-news__body h3 {
	font-size: 20px;
	margin-bottom: 10px;
	color: var(--th-text, #1f2937);
}

.th-home-welcome {
	background: #fff;
}

.th-home-welcome__grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 32px;
	align-items: center;
}

.th-home-welcome__photo img,
.th-home-welcome__photo-placeholder {
	width: 100%;
	border-radius: 20px;
	display: block;
}

.th-home-welcome__photo-placeholder {
	min-height: 280px;
	background: #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 72px;
	color: #9ca3af;
}

.th-home-kicker {
	color: var(--th-primary, #2563eb);
	font-weight: 700;
	margin-bottom: 8px;
}

.th-home-welcome__role {
	color: #6b7280;
	margin-bottom: 16px;
}

.th-home-programs {
	background: #f8fafc;
}

.th-home-stats {
	background: var(--th-secondary, #1e40af);
	color: #fff;
	padding: 48px 0;
}

.th-home-stats__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	text-align: center;
}

.th-home-stat strong {
	display: block;
	font-size: 36px;
	margin-bottom: 8px;
}

.th-home-faq__list {
	max-width: 820px;
	margin: 0 auto;
}

.th-home-faq__item {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 16px 18px;
	margin-bottom: 12px;
	background: #fff;
}

.th-home-faq__item summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--th-text, #1f2937);
}

.th-home-faq__item p {
	margin-top: 12px;
}

.th-home-contact__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.th-home-contact__list li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 14px;
}

.th-home-contact__list i {
	color: var(--th-primary, #2563eb);
	margin-top: 4px;
}

.th-home-news__thumb {
	display: block;
	margin: -24px -24px 16px;
	overflow: hidden;
	border-radius: 16px 16px 0 0;
}

.th-home-news__thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.th-home-news__body time {
	display: block;
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 8px;
}

.th-home-news__body h3 a {
	color: inherit;
	text-decoration: none;
}

.th-home-news__more {
	text-align: center;
	margin-top: 32px;
}

@media (max-width: 960px) {
	.th-home-features__grid,
	.th-home-programs__grid,
	.th-home-news__grid,
	.th-home-stats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.th-home-enrollment__grid,
	.th-home-welcome__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.th-home-hero {
		padding: 72px 0 64px;
	}

	.th-home-hero__title {
		font-size: calc(var(--th-hero-title, 42px) * .78);
	}

	.th-home-features__grid,
	.th-home-programs__grid,
	.th-home-news__grid,
	.th-home-stats__grid {
		grid-template-columns: 1fr;
	}
}
