/**
 * About Page Styles
 * Modern Ocean Gradient design for about page with mission, vision, and stats
 *
 * @package Techtronic_Learning
 * @since 1.0.0 (Redesigned 2025)
 */

/* ==========================================================================
   Page Hero
   ========================================================================== */

.page-hero {
	background: var(--gradient-dark-subtle);
	padding: var(--spacing-4xl) 0;
	border-bottom: 1px solid var(--gray-700);
	text-align: center;
	position: relative;
	overflow: hidden;
}

/* Decorative gradient glow */
.page-hero::before {
	content: '';
	position: absolute;
	top: -40%;
	right: -15%;
	width: 500px;
	height: 500px;
	background: radial-gradient(
		circle,
		rgba(6, 182, 212, 0.1) 0%,
		transparent 70%
	);
	border-radius: 50%;
	pointer-events: none;
}

.page-hero__title {
	font-family: var(--font-display);
	font-size: var(--text-6xl);
	font-weight: var(--weight-bold);
	line-height: var(--leading-tight);
	color: var(--gray-50);
	margin-bottom: var(--spacing-xl);
	position: relative;
	z-index: 1;

	/* Subtle text glow */
	text-shadow: 0 0 30px rgba(34, 211, 238, 0.12);
}

.page-hero__excerpt {
	font-family: var(--font-body);
	font-size: var(--text-xl);
	line-height: var(--leading-relaxed);
	color: var(--gray-200);
	max-width: 700px;
	margin: 0 auto;
	position: relative;
	z-index: 1;
}

/* Responsive page hero */
@media (max-width: 991px) {
	.page-hero {
		padding: var(--spacing-3xl) 0;
	}

	.page-hero__title {
		font-size: var(--text-5xl);
	}

	.page-hero__excerpt {
		font-size: var(--text-lg);
	}
}

@media (max-width: 767px) {
	.page-hero {
		padding: var(--spacing-4xl) 0;
	}

	.page-hero__title {
		font-size: var(--text-4xl);
	}

	.page-hero__excerpt {
		font-size: var(--text-base);
	}
}

/* ==========================================================================
   About Instructor Section
   ========================================================================== */

.about-instructor {
	background: var(--surface-0);
	padding: var(--spacing-6xl) 0;
	position: relative;
	overflow: hidden;
}

/* Decorative glow */
.about-instructor::before {
	content: '';
	position: absolute;
	top: 20%;
	right: -10%;
	width: 600px;
	height: 600px;
	background: radial-gradient(
		circle,
		rgba(6, 182, 212, 0.08) 0%,
		transparent 70%
	);
	border-radius: 50%;
	pointer-events: none;
}

.about-instructor__grid {
	display: grid;
	grid-template-columns: minmax(280px, 400px) 1fr;
	gap: var(--spacing-5xl);
	position: relative;
	z-index: 1;
}

/* Tablet - reduce gap */
@media (max-width: 991px) {
	.about-instructor__grid {
		grid-template-columns: minmax(260px, 320px) 1fr;
		gap: var(--spacing-4xl);
	}

	/* Slightly smaller badge for tablet */
	.about-instructor__badge {
		padding: 6px 12px;
		font-size: 11px;
	}

	.about-instructor__badge svg {
		width: 14px;
		height: 14px;
	}
}

/* Mobile - stack vertically */
@media (max-width: 767px) {
	.about-instructor__grid {
		grid-template-columns: 1fr;
		gap: var(--spacing-3xl);
	}
}

/* Profile Column */
.about-instructor__profile {
	text-align: center;
}

.about-instructor__image-wrapper {
	position: relative;
	display: inline-block;
	margin-bottom: var(--spacing-2xl);
}

.about-instructor__image {
	width: 240px;
	height: 240px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
	border: 4px solid var(--primary-600);
	box-shadow: var(--shadow-xl), var(--glow-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.about-instructor__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-instructor__image svg {
	width: 120px;
	height: 120px;
	color: var(--gray-600);
}

/* Certified Badge */
.about-instructor__badge {
	position: absolute;
	bottom: 10px;
	right: 10px;

	display: flex;
	align-items: center;
	gap: var(--spacing-1);
	padding: var(--spacing-2) var(--spacing-3);

	background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
	border: 2px solid #ffffff;
	border-radius: var(--radius-full);
	box-shadow: var(--shadow-lg);

	font-family: var(--font-display);
	font-size: var(--text-xs);
	font-weight: var(--weight-bold);
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	white-space: nowrap;  /* Prevent text wrapping */
}

.about-instructor__badge svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;  /* Prevent icon from shrinking */
}

.about-instructor__name {
	font-family: var(--font-display);
	font-size: var(--text-3xl);
	font-weight: var(--weight-bold);
	line-height: var(--leading-tight);
	color: var(--gray-50);
	margin-bottom: var(--spacing-2);

	background: linear-gradient(135deg, var(--gray-50) 0%, var(--primary-400) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.about-instructor__title {
	font-family: var(--font-body);
	font-size: var(--text-lg);
	color: var(--primary-400);
	margin-bottom: var(--spacing-3xl);
}

/* Typewriter Stats */
.about-instructor__stats {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-xl);
}

.stat-counter {
	background: var(--surface-2);
	border: 1px solid var(--gray-700);
	border-radius: var(--radius-lg);
	padding: var(--spacing-lg);
	text-align: center;
	transition: all var(--duration-slow) var(--ease-out);
}

.stat-counter:hover {
	background: var(--surface-3);
	border-color: var(--primary-600);
	box-shadow: var(--shadow-md), var(--glow-primary);
	transform: translateY(-2px);
}

.stat-counter__value {
	font-family: var(--font-display);
	font-size: var(--text-5xl);
	font-weight: var(--weight-extrabold);
	line-height: 1;
	color: var(--primary-500);
	display: inline-block;

	/* Typewriter animation */
	animation: pulse-glow 2s ease-in-out infinite;
}

.stat-counter__suffix {
	font-family: var(--font-display);
	font-size: var(--text-3xl);
	font-weight: var(--weight-bold);
	color: var(--primary-400);
	margin-left: var(--spacing-1);
}

.stat-counter__label {
	display: block;
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: var(--weight-medium);
	color: var(--gray-300);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-top: var(--spacing-2);
}

@keyframes pulse-glow {
	0%, 100% {
		text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
	}
	50% {
		text-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
	}
}

/* Bio Column */
.about-instructor__bio {
	padding-left: var(--spacing-2xl);
	border-left: 2px solid var(--gray-700);
}

.about-instructor__bio-title {
	font-family: var(--font-display);
	font-size: var(--text-3xl);
	font-weight: var(--weight-bold);
	color: var(--gray-50);
	margin-bottom: var(--spacing-xl);
}

.about-instructor__bio-content {
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-relaxed);
	color: var(--gray-200);
}

.about-instructor__bio-content p {
	margin-bottom: var(--spacing-lg);
}

.about-instructor__bio-content p:last-child {
	margin-bottom: 0;
}

.about-instructor__bio-content h4 {
	font-family: var(--font-display);
	font-size: var(--text-xl);
	font-weight: var(--weight-semibold);
	color: var(--gray-50);
	margin-bottom: var(--spacing-md);
}

.expertise-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md-);
}

.expertise-list li {
	font-family: var(--font-body);
	font-size: var(--text-base);
	color: var(--gray-300);
	display: flex;
	align-items: center;
	gap: var(--spacing-md-);
	padding: var(--spacing-3) var(--spacing-lg);
	background: var(--surface-2);
	border-left: 3px solid var(--primary-600);
	border-radius: var(--radius-sm);
	transition: all var(--duration-base) var(--ease-out);
}

.expertise-list li:hover {
	background: var(--surface-3);
	border-left-color: var(--primary-500);
	transform: translateX(4px);
}

.expertise-icon {
	color: var(--primary-500);
	font-size: 8px;
	flex-shrink: 0;
}

/* Responsive */
@media (max-width: 991px) {
	.about-instructor {
		padding: var(--spacing-5xl) 0;
	}

	.about-instructor__grid {
		grid-template-columns: 1fr;
		gap: var(--spacing-4xl);
	}

	.about-instructor__bio {
		padding-left: 0;
		border-left: none;
		border-top: 2px solid var(--gray-700);
		padding-top: var(--spacing-3xl);
	}
}

@media (max-width: 767px) {
	.about-instructor {
		padding: var(--spacing-4xl) 0;
	}

	.about-instructor__image {
		width: 180px;
		height: 180px;
	}

	.about-instructor__image svg {
		width: 90px;
		height: 90px;
	}

	/* Smaller badge for smaller avatar */
	.about-instructor__badge {
		bottom: 5px;
		right: 5px;
		padding: 4px 10px;
		font-size: 10px;
		gap: 4px;
	}

	.about-instructor__badge svg {
		width: 12px;
		height: 12px;
	}

	.about-instructor__name {
		font-size: var(--text-2xl);
	}

	.about-instructor__title {
		font-size: var(--text-base);
	}

	.stat-counter__value {
		font-size: var(--text-4xl);
	}

	.about-instructor__bio-title {
		font-size: var(--text-2xl);
	}
}

/* ==========================================================================
   Main Content Section
   ========================================================================== */

.page-content {
	padding: var(--spacing-5xl) 0 calc(var(--spacing-5xl) + 60px);
	background: var(--surface-0);
	position: relative;
}

/* Stunning smooth gradient transition to light section */
.page-content::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 200px;
	background: linear-gradient(
		to bottom,
		rgba(2, 6, 23, 0) 0%,
		rgba(15, 23, 42, 0.05) 25%,
		rgba(6, 182, 212, 0.04) 50%,
		rgba(224, 242, 254, 0.7) 80%,
		var(--surface-light-0) 100%
	);
	pointer-events: none;
	z-index: 2;
}

.page-content__inner {
	max-width: 800px;
	margin: 0 auto;
	position: relative;
	z-index: 3;
}

.page-content__text {
	font-family: var(--font-body);
	font-size: var(--text-lg);
	line-height: var(--leading-loose);
	color: var(--gray-200);
}

.page-content__text p {
	margin-bottom: var(--spacing-lg);
}

.page-content__text p:last-child {
	margin-bottom: 0;
}

.page-content__text h2 {
	font-family: var(--font-display);
	font-size: var(--text-3xl);
	font-weight: var(--weight-semibold);
	line-height: var(--leading-snug);
	color: var(--gray-50);
	margin: var(--spacing-3xl) 0 var(--spacing-lg);
}

.page-content__text h2:first-child {
	margin-top: 0;
}

.page-content__text h3 {
	font-family: var(--font-display);
	font-size: var(--text-2xl);
	font-weight: var(--weight-semibold);
	line-height: var(--leading-snug);
	color: var(--gray-50);
	margin: var(--spacing-4xl) 0 var(--spacing-xl);
}

.page-content__text ul,
.page-content__text ol {
	margin: var(--spacing-lg) 0;
	padding-left: var(--spacing-2xl);
}

.page-content__text li {
	margin-bottom: var(--spacing-md-);
	color: var(--gray-200);
}

.page-content__text a {
	color: var(--primary-400);
	text-decoration: underline;
	transition: color var(--duration-base) var(--ease-out);
}

.page-content__text a:hover {
	color: var(--primary-300);
}

/* Responsive content */
@media (max-width: 767px) {
	.page-content {
		padding: var(--spacing-4xl) 0;
	}

	.page-content__text {
		font-size: var(--text-base);
	}

	.page-content__text h2 {
		font-size: var(--text-3xl);
		margin: var(--spacing-4xl) 0 var(--spacing-xl);
	}

	.page-content__text h3 {
		font-size: var(--text-xl);
		margin: var(--spacing-2xl) 0 var(--spacing-md);
	}
}

/* ==========================================================================
   Mission & Vision Cards
   ========================================================================== */

.about-values {
	background: var(--surface-1);
	padding: var(--spacing-5xl) 0;
	position: relative;
}

.about-values__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--spacing-2xl);
	position: relative;
	z-index: 1;
}

/* Mission/Vision Card */
/* Mission/Vision Card - Elegant Dark Glassmorphism (matches landing value cards) */
.mission-card {
	/* Dark glassmorphic background */
	background: rgba(30, 41, 59, 0.4);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(148, 163, 184, 0.15);
	border-radius: var(--radius-lg);
	padding: var(--spacing-3xl) var(--spacing-4xl);
	box-shadow:
		var(--shadow-base),
		0 0 0 1px rgba(6, 182, 212, 0.1),
		inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
	transition: all var(--duration-slow) var(--ease-out);
	position: relative;
	overflow: hidden;
}

.mission-card:hover {
	background: rgba(30, 41, 59, 0.6);
	border-color: rgba(6, 182, 212, 0.4);
	box-shadow:
		var(--shadow-lg),
		0 0 0 1px rgba(6, 182, 212, 0.3),
		0 0 24px rgba(6, 182, 212, 0.15),
		inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
	transform: translateY(-4px);
}

/* Subtle shimmer effect on hover */
.mission-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(6, 182, 212, 0.08) 50%,
		transparent 100%
	);
	transition: left 0.6s ease;
	pointer-events: none;
}

.mission-card:hover::before {
	left: 100%;
}

.mission-card__icon {
	width: 64px;
	height: 64px;
	margin-bottom: var(--spacing-lg);
	display: flex;
	align-items: center;
	justify-content: center;

	/* Dark with teal accent */
	background: var(--surface-2);
	border: 2px solid rgba(6, 182, 212, 0.3);
	border-radius: var(--radius-lg);
	color: var(--primary-400);

	box-shadow: var(--shadow-sm);
	transition: all var(--duration-slow) var(--ease-out);
	position: relative;
	z-index: 1;
}

.mission-card:hover .mission-card__icon {
	/* Ocean Gradient on hover */
	background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
	border-color: var(--primary-500);
	color: #ffffff;
	box-shadow: var(--shadow-md), var(--glow-primary);
	transform: scale(1.05);
}

.mission-card__icon svg {
	width: 32px;
	height: 32px;
}

.mission-card__icon--vision {
	/* Same style - removed different background */
}

.mission-card__title {
	font-family: var(--font-display);
	font-size: var(--text-3xl);
	font-weight: var(--weight-semibold);
	line-height: var(--leading-snug);
	color: var(--gray-50);
	margin-bottom: var(--spacing-xl);
	position: relative;
	z-index: 1;
}

.mission-card__text,
.mission-card__description {
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-relaxed);
	color: var(--gray-300);
	position: relative;
	z-index: 1;
}

/* Responsive values */
@media (max-width: 991px) {
	.about-values {
		padding: var(--spacing-4xl) 0;
	}

	.about-values__grid {
		gap: var(--spacing-lg);
	}

	.mission-card {
		padding: var(--spacing-4xl) var(--spacing-2xl);
	}
}

@media (max-width: 767px) {
	.about-values {
		padding: var(--spacing-3xl) 0;
	}

	.about-values__grid {
		grid-template-columns: 1fr;
		gap: var(--spacing-lg);
	}

	.mission-card {
		padding: var(--spacing-2xl) var(--spacing-lg);
	}

	.mission-card__title {
		font-size: var(--text-2xl);
	}
}

/* ==========================================================================
   Stats Section
   ========================================================================== */

.about-stats {
	background: var(--surface-1);
	padding: var(--spacing-5xl) 0;
	position: relative;
}

/* Decorative glow */
.about-stats::before {
	content: '';
	position: absolute;
	bottom: -30%;
	left: -10%;
	width: 500px;
	height: 500px;
	background: radial-gradient(
		circle,
		rgba(6, 182, 212, 0.08) 0%,
		transparent 70%
	);
	border-radius: 50%;
	pointer-events: none;
}

.about-stats__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--spacing-3xl);
	position: relative;
	z-index: 1;
}

/* Stat Card */
.stat-card {
	text-align: center;
	padding: var(--spacing-2xl) var(--spacing-lg);
	background: var(--surface-2);
	border: 1px solid var(--gray-700);
	border-radius: var(--radius-lg);
	transition: all var(--duration-slow) var(--ease-out);
}

.stat-card:hover {
	background: var(--surface-3);
	border-color: var(--primary-600);
	box-shadow: var(--shadow-md), var(--glow-primary);
	transform: translateY(-2px);
}

.stat-card__number {
	font-family: var(--font-display);
	font-size: var(--text-7xl);
	font-weight: var(--weight-extrabold);
	line-height: var(--leading-none);
	color: var(--accent-700);
	margin-bottom: var(--spacing-md-);
	display: block;

	/* Subtle glow */
	text-shadow: 0 0 20px rgba(249, 115, 22, 0.15);
}

.stat-card__label {
	font-family: var(--font-display);
	font-size: var(--text-lg);
	font-weight: var(--weight-semibold);
	color: var(--gray-50);
	margin-bottom: var(--spacing-sm);
}

.stat-card__description {
	font-family: var(--font-body);
	font-size: var(--text-sm);
	line-height: var(--leading-relaxed);
	color: var(--gray-400);
}

/* Responsive stats */
@media (max-width: 991px) {
	.about-stats {
		padding: var(--spacing-4xl) 0;
	}

	.about-stats__grid {
		gap: var(--spacing-2xl);
	}

	.stat-card__number {
		font-size: var(--text-6xl);
	}
}

@media (max-width: 767px) {
	.about-stats {
		padding: var(--spacing-3xl) 0;
	}

	.about-stats__grid {
		grid-template-columns: 1fr;
		gap: var(--spacing-lg);
	}

	.stat-card {
		padding: var(--spacing-lg) var(--spacing-xl);
	}

	.stat-card__number {
		font-size: var(--text-5xl);
	}

	.stat-card__label {
		font-size: var(--text-base);
	}
}

/* ==========================================================================
   About CTA Section
   ========================================================================== */

.about-cta {
	background: var(--gradient-dark-subtle);
	padding: var(--spacing-6xl) 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}

/* Decorative gradient glow */
.about-cta::before {
	content: '';
	position: absolute;
	top: -40%;
	left: 50%;
	transform: translateX(-50%);
	width: 600px;
	height: 600px;
	background: radial-gradient(
		circle,
		rgba(6, 182, 212, 0.12) 0%,
		rgba(34, 211, 238, 0.06) 40%,
		transparent 70%
	);
	border-radius: 50%;
	pointer-events: none;
}

.about-cta__title {
	font-family: var(--font-display);
	font-size: var(--text-4xl);
	font-weight: var(--weight-bold);
	line-height: var(--leading-tight);
	color: var(--gray-50);
	margin-bottom: var(--spacing-lg);
	position: relative;
	z-index: 1;

	/* Subtle text glow */
	text-shadow: 0 0 25px rgba(34, 211, 238, 0.12);
}

.about-cta__subtitle {
	font-family: var(--font-body);
	font-size: var(--text-lg);
	line-height: var(--leading-relaxed);
	color: var(--gray-300);
	max-width: 600px;
	margin: 0 auto var(--spacing-4xl);
	position: relative;
	z-index: 1;
}

.about-cta__actions {
	display: flex;
	gap: var(--spacing-md);
	justify-content: center;
	align-items: center;  /* Ensure vertical alignment */
	flex-wrap: wrap;
	position: relative;
	z-index: 1;
}

/* Responsive about CTA */
@media (max-width: 991px) {
	.about-cta {
		padding: var(--spacing-5xl) 0;
	}

	.about-cta__title {
		font-size: var(--text-4xl);
	}
}

@media (max-width: 767px) {
	.about-cta {
		padding: var(--spacing-4xl) 0;
	}

	.about-cta__title {
		font-size: var(--text-3xl);
	}

	.about-cta__subtitle {
		font-size: var(--text-base);
	}

	.about-cta__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.about-cta__actions .btn-primary,
	.about-cta__actions .btn-ghost {
		width: 100%;
	}
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
	.page-hero,
	.page-content,
	.about-values,
	.about-stats,
	.about-cta {
		background: #fff !important;
	}

	.page-hero::before,
	.about-stats::before,
	.about-cta::before {
		display: none;
	}

	.about-cta__actions {
		display: none;
	}

	.mission-card,
	.stat-card {
		border: 1px solid #000;
		box-shadow: none;
		page-break-inside: avoid;
	}

	.mission-card:hover,
	.stat-card:hover {
		transform: none;
	}
}
