@charset "UTF-8";

:root {
	--primary-color: #0080f5;
	--primary-hover: #0056b3;
	--text-color: #333333;
	--text-muted: #666666;
	--bg-color: #f8f9fa;
	--card-bg: #ffffff;
	--sidebar-bg: #ffffff;
	--font-family: 'Outfit', sans-serif;
	--sidebar-width: 240px;
	--border-radius: 12px;
	--shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

html {
	height: 100%;
	box-sizing: border-box;
	scroll-behavior: smooth;
}

*,
*:before,
*:after {
	box-sizing: inherit;
}

body {
	font-family: var(--font-family);
	background-color: var(--bg-color);
	margin: 0;
	padding: 0;
	color: var(--text-color);
	line-height: 1.6;
	min-height: 100vh;
}

.personal-image {
	width: 280px !important;
	height: 280px !important;
	object-fit: cover !important;
	flex-shrink: 0;
	/* Prevent squishing */
	border-radius: 50%;
	/* Circle image looks more modern usually, or rounded rect */
	border: 3px solid white;
	box-shadow: var(--shadow-md);
	max-width: 100%;
}

/* About Section */
.about {
	background-color: var(--card-bg);
	border-radius: var(--border-radius);
	box-shadow: var(--shadow-md);
	padding: 3rem;
	margin-bottom: 2rem;
	width: 100%;
	max-width: 1000px;
	/* Constrain the card width */
}

.about-basic {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 2rem;
	gap: 2rem;
}

.personal-basic-info {
	text-align: left;
	flex-grow: 1;
}

.personal-basic-info h1 {
	font-size: 2.5rem;
	margin: 0 0 0.5rem 0;
	font-weight: 700;
	letter-spacing: -0.5px;
}

.role-title {
	display: block;
	font-size: 1.2rem;
	color: var(--text-muted);
	margin-bottom: 1.5rem;
}

.contact-details {
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
}

.contact-row {
	margin-bottom: 0.5rem;
	display: flex;
	align-items: center;
	color: var(--text-muted);
}

.contact-label {
	font-weight: 600;
	margin-right: 0.5rem;
	color: var(--text-color);
}

/* Navigation */
header {
	width: var(--sidebar-width);
	background-color: var(--sidebar-bg);
	height: 100vh;
	position: fixed;
	left: 0;
	top: 0;
	padding: 2rem 1rem;
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
	z-index: 100;
}

header a {
	display: block;
	color: var(--text-muted);
	padding: 12px 16px;
	text-decoration: none;
	border-radius: var(--border-radius);
	margin-bottom: 8px;
	font-weight: 500;
	transition: all 0.2s ease;
}

header a:hover {
	background-color: rgba(0, 128, 245, 0.1);
	color: var(--primary-color);
}

header a.active {
	background-color: var(--primary-color);
	color: white;
	font-weight: 600;
}

/* Main Content Area */
.container {
	margin-left: var(--sidebar-width);
	width: calc(100% - var(--sidebar-width));
	padding: 3rem 2rem;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	/* Center the content horizontally */
}

/* ... (About Section and others remain the same) ... */

/* Social media icons */
.social-links {
	display: flex;
	gap: 10px;
	align-items: center;
}

.social-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #f0f0f0;
	color: var(--text-muted);
	transition: all 0.2s ease;
	text-decoration: none;
	font-size: 1.2rem;
}

.social-btn:hover {
	background-color: var(--primary-color);
	color: white;
	transform: translateY(-2px);
}

.cv-text-btn {
	width: auto;
	padding: 0 16px;
	border-radius: 20px;
	font-size: 0.9rem;
	font-weight: 700;
	font-family: var(--font-family);
	letter-spacing: 0.5px;
}

/* Bio Text */
.bio-text {
	font-size: 1.05rem;
	color: #444;
	line-height: 1.8;
}

.bio-text p {
	margin-bottom: 1.5rem;
}

.bio-text a {
	color: var(--primary-color);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s;
}

.bio-text a:hover {
	border-bottom-color: var(--primary-color);
}

/* Tags/Badges */
.badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	min-width: 100px;
	text-align: center;
}

.tag-academic {
	background-color: #fff8c5;
	color: #8a6d3b;
}

.tag-general {
	background-color: #dbeafe;
	color: #1e40af;
}

.tag-teaching {
	background-color: #ffedd5;
	color: #9a3412;
}

/* News Items */
.news-item {
	display: flex;
	align-items: baseline;
	padding: 1rem 0;
	border-bottom: 1px solid #eee;
	gap: 1.5rem;
}

.news-item:last-child {
	border-bottom: none;
}

.news-date {
	font-family: 'Outfit', monospace;
	/* Use outfit but monospace style if needed, or just normal */
	font-variant-numeric: tabular-nums;
	color: var(--text-muted);
	font-size: 0.9rem;
	min-width: 100px;
	font-weight: 500;
}

.news-content {
	color: var(--text-color);
	font-size: 0.95rem;
}

/* Latest News Section */
.latest-news {
	background-color: var(--card-bg);
	border-radius: var(--border-radius);
	box-shadow: var(--shadow-md);
	padding: 2rem;
	margin-bottom: 2rem;
	width: 100%;
	max-width: 1000px;
}

.latest-news h3 {
	margin: 0 0 1.5rem 0;
	font-size: 1.5rem;
	font-weight: 700;
}

/* Footer */
footer {
	text-align: center;
	padding: 2rem 0;
	color: var(--text-muted);
	font-size: 0.9rem;
	border-top: 1px solid #eee;
	margin-top: auto;
	width: 100%;
}

/* Responsive */
@media screen and (max-width: 900px) {
	.about-basic {
		flex-direction: column-reverse;
		align-items: center;
		text-align: center;
	}

	.personal-basic-info {
		text-align: center;
	}

	.contact-row {
		justify-content: center;
	}

	.social-links {
		justify-content: center;
		margin-top: 1rem;
	}
}

@media screen and (max-width: 768px) {
	body {
		flex-direction: column;
	}

	header {
		position: relative;
		width: 100%;
		height: auto;
		flex-direction: row;
		overflow-x: auto;
		/* Scrollable nav on mobile */
		padding: 1rem;
		box-shadow: none;
		border-bottom: 1px solid #eee;
		background-color: white;
	}

	header a {
		white-space: nowrap;
		margin-right: 10px;
		margin-bottom: 0;
	}

	.container {
		margin-left: 0;
		width: 100%;
		padding: 1.5rem 1rem;
	}

	.about {
		padding: 1.5rem;
	}

	.news-item {
		flex-direction: column;
	}

	.news-date {
		margin-bottom: 0.5rem;
	}
}