/* Basic layout and reset */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
	color: #222;
	line-height: 1.6;
	background-color: #f5f5f3;
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 16px;
}

/* Header / Navigation */
.site-header {
	background: #4a6b5f;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 50;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}

.logo {
	font-weight: 700;
	color: #f5f5f3;
	text-decoration: none;
	font-size: 1.1rem;
}

.logo:hover {
	text-decoration: none;
}

.main-nav ul {
	list-style: none;
	display: flex;
	gap: 20px;
	align-items: center;
}

.main-nav a {
	text-decoration: none;
	color: #f5f5f3;
	padding: 8px 12px;
	border-radius: 4px;
	border: none;
	transition: background-color 0.2s ease;
}

/* remove any visual separators (vertical bars) between items */
.main-nav li::before,
.main-nav li::after {
	display: none !important;
}

.main-nav a:hover {
	background: rgba(255, 255, 255, 0.15);
	text-decoration: none;
}

/* keep an accessible but subtle focus ring instead of default outline */
.main-nav a:focus {
	outline: 2px solid rgba(255, 255, 255, 0.4);
	outline-offset: 2px;
}

.nav-toggle {
	display: none;
	background: transparent;
	border: 1px solid #f5f5f3;
	padding: 8px 10px;
	border-radius: 6px;
	font-size: 0.95rem;
	color: #f5f5f3;
}

/* Hero */
.hero {
	position: relative;
	padding: 60px 0;
	background: linear-gradient(135deg, #5a7d70 0%, #4a6b5f 100%);
	overflow: hidden;
}

.hero .container {
	position: relative;
	z-index: 1;
}

.hero h1 {
	font-size: 2.5rem;
	margin-bottom: 16px;
	color: #f5f5f3;
}

.hero p {
	color: #e8e8e6;
	font-size: 1.1rem;
}

/* Home Page Content */
.home-content {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 40px;
	align-items: center;
	margin-bottom: 0;
}

.home-image {
	width: 300px;
	height: 400px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.home-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.home-research {
	padding: 0;
}

.home-research h2 {
	color: #f5f5f3;
	margin-bottom: 20px;
	font-size: 2rem;
}

.home-research p {
	color: #f5f5f3;
	margin-bottom: 16px;
	line-height: 1.8;
	font-size: 1rem;
}

/* Link Button */
.btn-link {
	display: inline-block;
	margin-top: 16px;
	padding: 10px 24px;
	background: #e8e8e6;
	color: #4a6b5f;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	font-size: 0.95rem;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-link:hover {
	background: #f5f5f3;
	color: #3d5650;
}

/* Social Cards */
.social-cards {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin: 40px 0 60px 0;
	flex-wrap: nowrap;
}

.social-card {
	padding: 0;
	overflow: hidden;
	text-align: center;
	flex: 0 1 auto;
	width: 120px;
	height: 120px;
}

.social-card a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 16px;
	text-decoration: none;
	color: inherit;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-card a:hover {
	background: transparent;
	text-decoration: none;
}

.social-card i {
	font-size: 2.5rem;
	color: #4a6b5f;
	margin-bottom: 12px;
	transition: color 0.2s ease;
}

.social-card a:hover i {
	color: #3d5650;
}

.social-card h3 {
	margin-top: 0;
	margin-bottom: 0;
	font-size: 1rem;
}

.social-card p {
	margin-bottom: 0;
	color: #666;
	font-size: 0.95rem;
}

@media (max-width: 768px) {
	.social-cards {
		flex-wrap: wrap;
	}

	.social-card {
		width: 100px;
		height: 100px;
	}

	.social-card i {
		font-size: 2rem;
	}
}

@media (max-width: 768px) {
	.home-content {
		grid-template-columns: 1fr;
		gap: 30px;
		align-items: start;
	}

	.home-image {
		width: 100%;
		max-width: 300px;
		height: 400px;
		margin: 0 auto;
	}

	.home-research h2 {
		font-size: 1.5rem;
	}
}

@media (max-width: 768px) {
	.home-content {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.home-image {
		width: 100%;
		max-width: 300px;
		height: 400px;
		margin: 0 auto;
	}
}

/* Page sections */
.page-section {
	padding: 32px 0 64px 0;
	background: #ffffff;
	margin-bottom: 0;
}

.page-section h2 {
	font-size: 2rem;
	margin-bottom: 24px;
	color: #4a6b5f;
}

.page-section h3 {
	font-size: 1.3rem;
	margin-top: 32px;
	margin-bottom: 24px;
	color: #5a7d70;
}

.page-section p {
	margin-bottom: 16px;
	color: #444;
}

.page-section ul,
.page-section ol {
	margin-left: 24px;
	margin-bottom: 16px;
}

.page-section li {
	margin-bottom: 8px;
}

/* Contact Form */
.contact-form {
	max-width: 600px;
}

/* Card Layout */
.cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 24px;
	margin: 0;
}

.card {
	background: #ffffff;
	border: 1px solid #e0e0dd;
	border-radius: 8px;
	padding: 28px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	position: relative;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.card h3 {
	margin-top: 0;
	margin-bottom: 12px;
	color: #4a6b5f;
	font-size: 1.2rem;
}

.card-subtitle {
	font-size: 0.95rem;
	color: #5a7d70;
	font-weight: 600;
	margin-bottom: 8px;
}

.card-date {
	font-size: 0.9rem;
	color: #ffffff !important;
	font-weight: 500;
	margin-bottom: 0;
	margin-top: 0;
	background: #4a6b5f;
	padding: 6px 12px;
	border-radius: 4px;
	white-space: nowrap;
	position: absolute;
	top: -18px;
	left: 50%;
	transform: translateX(-50%);
}

.card-header {
	display: block;
	margin-bottom: 12px;
}

.card-header h3 {
	margin: 0;
	color: #4a6b5f;
	font-size: 1.2rem;
}

.card p {
	margin-bottom: 12px;
	color: #555;
	font-size: 0.95rem;
}

.card ul {
	margin-left: 20px;
	margin-bottom: 0;
}

.card ul li {
	margin-bottom: 6px;
	font-size: 0.95rem;
	color: #555;
}

.intro-section {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 32px;
	align-items: start;
	margin-bottom: 40px;
}

.intro-image {
	width: 280px;
	height: 380px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.intro-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.intro-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.intro-section p {
	font-size: 1.05rem;
	color: #555;
	margin-bottom: 16px;
}

@media (max-width: 768px) {
	.intro-section {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.intro-image {
		width: 100%;
		height: auto;
		max-width: 300px;
		margin: 0 auto;
	}
}

/* Logos Section */
.logos-section {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 40px;
	margin: 40px 0 60px 0;
	flex-wrap: wrap;
}

.logo-item {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 80px;
}

.logo-item img {
	max-height: 80px;
	max-width: 150px;
	object-fit: contain;
	opacity: 0.8;
	transition: opacity 0.2s ease;
}

.logo-item img:hover {
	opacity: 1;
}

/* Card with Logo */
.card-with-logo {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 24px;
	position: relative;
}

.card-content {
	flex: 1;
}

.card-logo {
	flex-shrink: 0;
	height: 60px;
	width: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 50px;
}

.card-logo img {
	max-height: 60px;
	max-width: 200px;
	object-fit: contain;
	opacity: 0.9;
	transition: opacity 0.2s ease;
}

.card-logo img:hover {
	opacity: 1;
}

/* Responsive: Stack logo below text on small screens */
@media (max-width: 700px) {
	.card-with-logo {
		flex-direction: column;
		align-items: center;
	}

	.card-logo {
		margin-top: 0;
		width: auto;
		height: 50px;
	}

	.card-logo img {
		max-height: 50px;
	}
}

/* Institution Logo in Cards */
.card-institution-logo {
	margin-top: auto;
	padding-top: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 50px;
}

.card-institution-logo img {
	max-height: 50px;
	max-width: 100%;
	object-fit: contain;
	opacity: 0.8;
	transition: opacity 0.2s ease;
}

.card-institution-logo img:hover {
	opacity: 1;
}

@media (max-width: 768px) {
	.logos-section {
		gap: 20px;
		margin: 30px 0 40px 0;
	}

	.logo-item {
		height: 60px;
	}

	.logo-item img {
		max-height: 60px;
		max-width: 120px;
	}

	.form-group {
		margin-bottom: 20px;
	}

	.form-group label {
		display: block;
		margin-bottom: 8px;
		color: #4a6b5f;
		font-weight: 600;
	}

	.form-group input,
	.form-group textarea {
		width: 100%;
		padding: 10px 12px;
		border: 1px solid #ddd;
		border-radius: 4px;
		font-family: inherit;
		font-size: 1rem;
	}

	.form-group textarea {
		resize: vertical;
	}

	.form-group input:focus,
	.form-group textarea:focus {
		outline: 2px solid #5a7d70;
		outline-offset: 0;
		border-color: #5a7d70;
	}

	.btn {
		display: inline-block;
		padding: 12px 28px;
		background: #4a6b5f;
		color: #f5f5f3;
		text-decoration: none;
		border-radius: 4px;
		border: none;
		font-weight: 600;
		cursor: pointer;
		transition: background-color 0.2s ease;
	}

	.btn:hover {
		background: #3d5650;
	}

	/* Footer */
	.site-footer {
		background: #3d5650;
		color: #f5f5f3;
		padding: 24px 0;
		margin-top: 0;
		text-align: center;
	}

	.site-footer p {
		margin-bottom: 0;
		font-size: 0.95rem;
		color: #e8e8e6;
	}

	@media (max-width: 768px) {
		.site-footer {
			padding: 20px 0;
		}
	}

	.nav-toggle {
		display: inline-block;
		cursor: pointer;
		padding: 10px 14px;
	}

	.main-nav ul {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		width: 100%;
		background: #3d5650;
		flex-direction: column;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
		z-index: 100;
	}

	.header-inner {
		position: relative;
		align-items: center;
		gap: 8px;
		height: 64px;
	}

	.main-nav {
		position: absolute;
		width: 100%;
	}

	.main-nav ul li {
		width: 100%;
		border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	}

	.main-nav ul li:last-child {
		border-bottom: none;
	}

	.main-nav ul li a {
		display: block;
		padding: 14px 16px;
		text-decoration: none;
		color: #f5f5f3;
		border-radius: 0;
		transition: background-color 0.2s ease;
	}

	.main-nav ul li a:hover {
		background: rgba(255, 255, 255, 0.1);
	}

	.container {
		padding-left: 12px;
		padding-right: 12px;
	}

	.hero h1 {
		font-size: 1.8rem;
	}

	.page-section h2 {
		font-size: 1.5rem;
	}
}

/* Footer */
.site-footer {
	background: #3d5650;
	color: #f5f5f3;
	padding: 24px 0;
	margin-top: 0;
	text-align: center;
}

.site-footer p {
	margin-bottom: 0;
	font-size: 0.95rem;
	color: #e8e8e6;
}

/* Small aesthetics */
a {
	color: #4a6b5f;
}

a:hover {
	text-decoration: underline;
}

a.card:hover {
	text-decoration: none;
}

/* News Card Styles */
.news-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.news-card-image {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.news-card-content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.news-card h3 {
	margin-top: 0;
	margin-bottom: 8px;
}

.news-date {
	font-size: 0.9rem;
	color: #999;
	margin-bottom: 12px;
}

.news-link {
	margin-top: auto;
	color: #4a6b5f;
	font-weight: 500;
	text-decoration: none;
}

/* Publication Card Styles */
#publications-container {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.publication-card-link {
	text-decoration: none;
	color: inherit;
	display: flex;
}

.publication-card-link:hover {
	text-decoration: none;
}

.publication-card {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	width: 100%;
}

.publication-content {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.publication-card h3 {
	margin-top: 0;
	margin-bottom: 12px;
}

.publication-authors {
	font-size: 0.95rem;
	color: #666;
	margin-bottom: 12px;
}

.publication-details {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid #e0e0dd;
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

.publication-details p {
	margin: 0;
	font-size: 0.9rem;
	color: #666;
}

.publication-image {
	width: 200px;
	height: 200px;
	object-fit: cover;
	border-radius: 0 8px 8px 0;
	margin-left: 24px;
	flex-shrink: 0;
}

@media (max-width: 768px) {
	.publication-card {
		flex-direction: column;
	}

	.publication-image {
		width: 100%;
		height: 200px;
		border-radius: 0 0 8px 8px;
		margin-left: 0;
		margin-top: 16px;
	}

	.publication-details {
		flex-direction: column;
		gap: 8px;
	}
}

/* Contact Cards */
.contact-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
	margin: 32px 0;
}

.contact-card {
	text-align: center;
}

.contact-card a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease;
}

.contact-card a:hover {
	text-decoration: none;
	transform: translateY(-4px);
}

.contact-card i {
	font-size: 3rem;
	color: #4a6b5f;
	margin-bottom: 16px;
}

.contact-card h3 {
	margin-top: 0;
	margin-bottom: 12px;
	color: #4a6b5f;
}

.contact-card p {
	margin-bottom: 0;
	color: #666;
	font-size: 0.95rem;
}

.email-toggle {
	cursor: pointer;
}

#email-display {
	user-select: all;
}