/*!
Theme Name: LabTheme
Theme URI: https://github.com/yourusername/labtheme
Author: Your Name
Author URI: https://yourwebsite.com
Description: A custom WordPress theme for academic laboratory websites, based on Underscores starter theme.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: labtheme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

LabTheme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Footer
# Utilities
	- Accessibility
	- Alignments
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
}

main {
	display: block;
}

h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

a {
	background-color: transparent;
}

abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

b,
strong {
	font-weight: bolder;
}

code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

small {
	font-size: 80%;
}

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

img {
	border-style: none;
}

button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

button,
input {
	overflow: visible;
}

button,
select {
	text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

fieldset {
	padding: 0.35em 0.75em 0.625em;
}

legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

progress {
	vertical-align: baseline;
}

textarea {
	overflow: auto;
}

[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

details {
	display: block;
}

summary {
	display: list-item;
}

template {
	display: none;
}

[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
:root {
	--color-primary: #3a9a7d;
	--color-primary-dark: #08553F;
	--color-accent: #4ab344;
	--color-accent-light: #a9d3a9;
	--color-text: #333333;
	--color-text-light: #666666;
	--color-background: #ffffff;
	--color-gray-light: #f5f5f5;
	--color-border: #e6e6e6;

	--font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--container-width: 1200px;
	--spacing-small: 1rem;
	--spacing-medium: 2rem;
	--spacing-large: 3rem;
	--header-height: 80px;
}

body {
	background-color: var(--color-background);
	color: var(--color-text);
	font-family: var(--font-main);
	font-size: 16px;
	line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	line-height: 1.3;
	margin-top: 0;
	margin-bottom: 1rem;
	font-weight: 600;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.75em; }
h4 { font-size: 1.5em; }
h5 { font-size: 1.25em; }
h6 { font-size: 1em; }

p {
	margin-top: 0;
	margin-bottom: 1.5em;
}

/* Elements
--------------------------------------------- */
ul, ol {
	margin: 0 0 1.5em;
	padding-left: 2em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
	border-collapse: collapse;
}

th, td {
	padding: 0.5em;
	border: 1px solid var(--color-border);
}

/* Links
--------------------------------------------- */
a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover,
a:focus,
a:active {
	color: #004499;
	text-decoration: underline;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/*--------------------------------------------------------------
## Layouts
--------------------------------------------------------------*/
.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-content {
	flex: 1;
	padding: var(--spacing-medium) 0;
}

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 var(--spacing-small);
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.site-header {
	background-color: var(--color-background);
	border-bottom: 1px solid var(--color-border);
	padding: 0;
	position: relative;
	z-index: 100;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-height);
}

.site-branding {
	display: flex;
	align-items: center;
	margin-bottom: 0;
}

.custom-logo-link {
	display: flex;
	align-items: center;
	margin-right: 15px;
}

.custom-logo {
	width: 64px;
	height: 64px;
	object-fit: contain;
}

.site-title {
	font-size: 2.125rem;
	font-weight: 700;
	letter-spacing: 2.8px;
	margin: 0;
	line-height: 1;
}

.site-title a {
	color: var(--color-text);
	text-decoration: none;
	transition: color 0.3s ease;
}

.site-title a:hover {
	color: var(--color-primary);
	text-decoration: none;
}

.site-title-logo {
	display: inline-flex;
	align-items: baseline;
	text-decoration: none;
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1;
}

.site-title-he {
	color: var(--color-primary);
}

.site-title-lab {
	color: var(--color-text);
}

.site-description {
	display: none;
}

.main-navigation {
	display: flex;
	align-items: center;
	height: 100%;
}

.main-navigation ul {
	display: flex;
	flex-wrap: nowrap;
	list-style: none;
	margin: 0;
	padding: 0;
	height: 100%;
	align-items: center;
}

.main-navigation ul li {
	margin: 0;
	height: 100%;
	display: flex;
	align-items: center;
}

.main-navigation a {
	display: block;
	padding: 0 24px;
	color: var(--color-text);
	text-decoration: none;
	font-size: 17px;
	height: 100%;
	display: flex;
	align-items: center;
	border-top: 5px solid transparent;
	transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	color: var(--color-primary);
	border-top-color: var(--color-accent);
	text-decoration: none;
}

.main-navigation ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--color-background);
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	min-width: 200px;
	flex-direction: column;
	height: auto;
}

.main-navigation ul li:hover > ul {
	display: flex;
}

.main-navigation ul ul li {
	width: 100%;
	height: auto;
}

.main-navigation ul ul a {
	padding: 10px 20px;
	border-top: none;
	font-size: 16px;
	height: auto;
}

.main-navigation ul ul a:hover {
	background: #f2f2f2;
	border-top: none;
}

.menu-toggle {
	display: none;
}

/* Posts and pages
--------------------------------------------- */
.entry-header {
	margin-bottom: var(--spacing-medium);
}

.entry-title {
	margin-bottom: 0.5rem;
}

.entry-meta {
	color: var(--color-text-light);
	font-size: 0.9em;
}

.entry-content {
	margin-bottom: var(--spacing-medium);
}

/* Front Page Sections
--------------------------------------------- */
.front-page section {
	padding: var(--spacing-small) 0;
}

/* Hero Banner Section */
.hero-banner-section {
	padding: var(--spacing-small) 0 0;
	line-height: 0;
}

.hero-banner-section .container {
	padding: 0 var(--spacing-small);
}

.hero-banner-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	width: 100%;
	text-decoration: none;
	color: inherit;
	gap: 0.75rem;
}

.hero-banner-image {
	border-radius: 4px;
	overflow: hidden;
	aspect-ratio: 1312 / 816;
}

.hero-banner-image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.hero-banner-image img:hover {
	transform: scale(1.04);
}

/* Research Section */
.research-section {
	background-color: #ffffff;
}

.section-title {
	text-align: center;
	margin-bottom: 1.25rem;
	position: relative;
}

.section-title h2 {
	font-size: 2rem;
	color: var(--color-primary-dark);
	font-weight: 700;
	display: inline-block;
	position: relative;
	padding-bottom: 0.75rem;
}

.section-title h2::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 112px;
	height: 2px;
	background-color: rgba(43, 159, 43, 0.36);
}

.section-title .amp {
	color: var(--color-accent-light);
	font-size: 3.75rem;
	margin: 0 0.5rem;
}

.section-description {
	margin: 0 auto;
	text-align: justify;
}

.section-description p {
	font-size: 1rem;
	line-height: 1.8;
	color: var(--color-text);
	margin-bottom: 0.75rem;
}

.research-items {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.research-item {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	aspect-ratio: 1;
}

.research-item a {
	display: block;
	width: 100%;
	height: 100%;
	position: relative;
}

.research-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.research-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #e8f5f1 0%, #d4e9e2 100%);
}

.research-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(132, 166, 194, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	transition: background 0.3s ease;
}

.research-item:hover .research-overlay {
	background: rgba(132, 166, 194, 0.7);
}

.research-item:hover img {
	transform: scale(1.05);
}

.research-overlay h3 {
	color: #ffffff;
	font-size: 1.625rem;
	text-align: center;
	text-shadow: 1px -5px 1px #46c3f3;
	margin: 0;
}

/* Publications Section */
.publications-section {
	background-color: var(--color-gray-light);
}

.publications-list {
	margin: 0 auto;
}

.publication-item {
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 2rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	display: flex;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.publication-image {
	flex: 0 0 250px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.publication-image img,
.pub-placeholder {
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
}

.pub-placeholder {
	background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-primary) 100%);
	min-height: 200px;
}

.publication-content {
	flex: 1;
	padding: 2rem;
}

.publication-authors {
	color: var(--color-text-light);
	font-size: 0.875rem;
	margin: 0 0 0.5rem;
}

.publication-date {
	color: var(--color-text-light);
	font-size: 0.875rem;
	margin: 0 0 0.5rem;
}

.publication-title {
	font-size: 1.5rem;
	margin: 0 0 0.5rem;
}

.publication-title a {
	color: var(--color-text);
	text-decoration: none;
}

.publication-title a:hover {
	color: var(--color-primary);
}

.publication-meta {
	color: var(--color-text-light);
	font-size: 0.9rem;
	margin: 0 0 1rem;
}

.publication-excerpt {
	color: var(--color-text);
	line-height: 1.8;
}

.no-publications {
	text-align: center;
	color: var(--color-text-light);
	font-size: 1.125rem;
	padding: 3rem 0;
}

/* News & Publications Section (front page two-column)
--------------------------------------------- */
.news-publications-section {
	background-color: #ffffff;
	padding: var(--spacing-large) 0;
	border-top: 1px solid #e8e8e8;
}

.news-publications-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
	gap: 0;
	align-items: start;
}

.np-column {
	min-width: 0;
	padding-right: 3rem;
	border-right: 1px solid #e8e8e8;
}

.np-column:last-child {
	border-right: none;
	padding-right: 0;
	padding-left: 3rem;
}

.np-column-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid #e8e8e8;
}

.np-column-title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-text);
	margin: 0;
	letter-spacing: 0.01em;
}

.np-view-all {
	font-size: 0.875rem;
	color: var(--color-primary);
	text-decoration: none;
	font-weight: 500;
	white-space: nowrap;
}

.np-view-all:hover {
	color: var(--color-primary-dark);
}

.np-empty {
	color: var(--color-text-light);
	font-size: 0.9rem;
	padding: 1rem 0;
}

/* News Items */
.news-item {
	padding: 1.25rem 0;
	border-bottom: 1px solid #f0f0f0;
}

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

.news-date {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--color-primary);
	letter-spacing: 0.05em;
	margin-bottom: 0.4rem;
}

.news-title {
	font-size: 0.975rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	line-height: 1.4;
}

.news-title a {
	color: var(--color-primary-dark);
	text-decoration: none;
}

.news-title a:hover {
	color: var(--color-primary);
	text-decoration: underline;
}

.news-excerpt {
	font-size: 0.875rem;
	color: var(--color-text-light);
	margin: 0;
	line-height: 1.6;
}

/* Front Page Publication Items */
.fp-publication-item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid #f0f0f0;
}

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

.fp-pub-body {
	flex: 1;
	min-width: 0;
}

.fp-pub-title {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	line-height: 1.4;
}

.fp-pub-title a {
	color: var(--color-text);
	text-decoration: none;
}

.fp-pub-title a:hover {
	color: var(--color-primary);
}

.fp-pub-authors {
	font-size: 0.8rem;
	color: var(--color-text-light);
	margin: 0 0 0.4rem;
	line-height: 1.5;
}

.fp-pub-meta {
	font-size: 0.8rem;
	margin: 0;
}

.fp-pub-journal {
	color: var(--color-primary);
	font-style: italic;
	font-weight: 600;
}

.fp-pub-year {
	color: var(--color-text-light);
	margin-left: 0.25rem;
}

.fp-pub-doi {
	flex-shrink: 0;
	display: inline-block;
	padding: 0.2rem 0.6rem;
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--color-primary);
	border: 1.5px solid var(--color-primary);
	border-radius: 3px;
	text-decoration: none;
	letter-spacing: 0.04em;
	margin-top: 0.2rem;
	transition: background-color 0.2s, color 0.2s;
}

.fp-pub-doi:hover {
	background-color: var(--color-primary);
	color: #ffffff;
}

@media (max-width: 680px) {
	.news-publications-grid {
		grid-template-columns: 1fr;
	}

	.np-column {
		border-right: none;
		border-bottom: 1px solid #e8e8e8;
		padding-right: 0;
		padding-left: 0;
		padding-bottom: 2.5rem;
		margin-bottom: 1rem;
	}

	.np-column:last-child {
		border-bottom: none;
		padding-bottom: 0;
		margin-bottom: 0;
	}
}

/* Single Post
--------------------------------------------- */
.single-post {
	padding: var(--spacing-large) 0;
	background-color: #ffffff;
}

.single-post article {
	max-width: 800px;
	margin: 0 auto;
}

.entry-header {
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 2px solid var(--color-gray-light);
}

.entry-title {
	font-size: 2.5rem;
	color: var(--color-primary-dark);
	margin-bottom: 1rem;
	line-height: 1.3;
}

.entry-meta {
	color: var(--color-text-light);
	font-size: 0.9rem;
}

.entry-meta .posted-on {
	margin-right: 1rem;
}

.entry-meta .cat-links a {
	color: var(--color-primary);
	text-decoration: none;
}

.entry-meta .cat-links a:hover {
	color: var(--color-primary-dark);
	text-decoration: underline;
}

.post-thumbnail {
	margin-bottom: 2rem;
	border-radius: 8px;
	overflow: hidden;
}

.post-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
}

.entry-content {
	font-size: 1.125rem;
	line-height: 1.8;
	color: var(--color-text);
}

.entry-content p {
	margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--color-primary-dark);
	margin-top: 2rem;
	margin-bottom: 1rem;
}

.entry-content h2 {
	font-size: 2rem;
}

.entry-content h3 {
	font-size: 1.5rem;
}

.entry-content a {
	color: var(--color-primary);
	text-decoration: underline;
}

.entry-content a:hover {
	color: var(--color-primary-dark);
}

.entry-footer {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--color-gray-light);
}

.tags-links {
	color: var(--color-text);
}

.tags-links a {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	margin: 0.25rem;
	background-color: var(--color-gray-light);
	color: var(--color-text);
	text-decoration: none;
	border-radius: 4px;
	font-size: 0.875rem;
	transition: background-color 0.3s ease;
}

.tags-links a:hover {
	background-color: var(--color-primary);
	color: #ffffff;
}

/* Post Navigation */
.post-navigation {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 2px solid var(--color-gray-light);
}

.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	flex: 1;
}

.post-navigation .nav-subtitle {
	display: block;
	font-size: 0.875rem;
	color: var(--color-text-light);
	margin-bottom: 0.5rem;
}

.post-navigation .nav-title {
	display: block;
	font-size: 1.125rem;
	color: var(--color-primary);
	font-weight: 600;
}

.post-navigation a {
	text-decoration: none;
	display: block;
	padding: 1rem;
	background-color: var(--color-gray-light);
	border-radius: 8px;
	transition: all 0.3s ease;
}

.post-navigation a:hover {
	background-color: var(--color-primary);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(58, 154, 125, 0.3);
}

.post-navigation a:hover .nav-subtitle {
	color: rgba(255, 255, 255, 0.8);
}

.post-navigation a:hover .nav-title {
	color: #ffffff;
}

/* Blog Archive/List
--------------------------------------------- */
.blog .site-main,
.archive .site-main {
	padding: var(--spacing-large) 0;
	background-color: #ffffff;
}

.blog .container,
.archive .container {
	max-width: 900px;
}

.blog-post {
	margin-bottom: 3rem;
	padding-bottom: 3rem;
	border-bottom: 2px solid var(--color-gray-light);
}

.blog-post:last-child {
	border-bottom: none;
}

.blog-post .post-thumbnail {
	margin-bottom: 1.5rem;
	border-radius: 8px;
	overflow: hidden;
}

.blog-post .post-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

.blog-post .post-thumbnail:hover img {
	transform: scale(1.05);
}

.blog-post .entry-title {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.blog-post .entry-title a {
	color: var(--color-primary-dark);
	text-decoration: none;
	transition: color 0.3s ease;
}

.blog-post .entry-title a:hover {
	color: var(--color-primary);
}

.blog-post .entry-summary {
	font-size: 1.125rem;
	line-height: 1.8;
	color: var(--color-text);
}

.blog-post .read-more {
	display: inline-block;
	margin-top: 1rem;
	color: var(--color-primary);
	font-weight: 600;
	text-decoration: none;
	transition: color 0.3s ease;
}

.blog-post .read-more:hover {
	color: var(--color-primary-dark);
}

/* Posts Navigation (Pagination) */
.posts-navigation {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 2px solid var(--color-gray-light);
}

.nav-links {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
}

.nav-previous a,
.nav-next a {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background-color: var(--color-primary);
	color: #ffffff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
	background-color: var(--color-primary-dark);
	transform: translateY(-2px);
}

/* Footer
--------------------------------------------- */
.site-footer {
	background-color: var(--color-primary-dark);
	padding: var(--spacing-medium) 0;
	margin-top: auto;
	color: #f9f9f9;
}

.site-footer .container {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	padding-top: var(--spacing-small);
}

.site-info {
	text-align: center;
	color: #f9f9f9;
	font-size: 0.75rem;
	line-height: 1.8;
}

.site-info p {
	margin: 0;
}

.site-info a {
	color: #f9f9f9;
	font-weight: 700;
	text-decoration: none;
}

.site-info a:hover {
	color: var(--color-accent-light);
	text-decoration: underline;
}

.site-info .sep {
	margin: 0 0.5em;
}

/*--------------------------------------------------------------
# Page Templates
--------------------------------------------------------------*/

/* Common Page Styles */
.page-header {
	text-align: center;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--color-border);
}

.page-title {
	font-size: 2rem;
	color: var(--color-primary-dark);
	margin-bottom: 0.25rem;
}

.page-intro {
	max-width: 800px;
	margin: 1.5rem auto 0;
	font-size: 1.125rem;
	line-height: 1.8;
	color: var(--color-text);
}

/* Members Page — redesigned
--------------------------------------------- */

/* Group hero photo */
.members-hero {
	margin-top: 2.5rem;
	margin-bottom: 4rem;
}

.members-hero-img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
}

/* ── Principal Investigator section ── */
.pi-section {
	margin-bottom: 4rem;
}

.pi-card {
	display: flex;
	gap: 3rem;
	background: #ffffff;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 2.5rem;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
	align-items: flex-start;
}

/* Photo column */
.pi-photo-col {
	flex: 0 0 220px;
}

.pi-photo-img {
	width: 220px;
	height: 280px;
	object-fit: cover;
	object-position: top center;
	border-radius: 8px;
	display: block;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.pi-photo-placeholder {
	width: 220px;
	height: 280px;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-primary) 100%);
}

/* Info column */
.pi-info-col {
	flex: 1;
	min-width: 0;
}

.pi-name {
	font-size: 2rem;
	font-weight: 700;
	color: var(--color-primary-dark);
	margin: 0 0 0.4rem;
}

.pi-position {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--color-primary);
	margin: 0 0 0.3rem;
}

.pi-institution {
	font-size: 0.95rem;
	color: var(--color-text);
	margin: 0 0 0.25rem;
}

.pi-role-desc {
	font-size: 0.95rem;
	color: var(--color-text-light);
	font-style: italic;
	margin: 0 0 1.5rem;
}

/* Appointments + Education side by side */
.pi-cv-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem 2rem;
	margin-bottom: 1.5rem;
}

.pi-cv-heading {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-primary-dark);
	margin: 0 0 0.6rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--color-accent-light);
}

.pi-cv-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pi-cv-list li {
	font-size: 0.875rem;
	color: var(--color-text);
	line-height: 1.6;
	padding: 0.2rem 0;
	padding-left: 0.9rem;
	position: relative;
}

.pi-cv-list li::before {
	content: '–';
	position: absolute;
	left: 0;
	color: var(--color-primary);
}

/* Contact row */
.pi-contact {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--color-border);
}

.pi-email-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.9rem;
	color: var(--color-text);
	text-decoration: none;
	transition: color 0.2s;
}

.pi-email-link:hover {
	color: var(--color-primary);
	text-decoration: none;
}

.pi-profile-links {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.pi-link-btn {
	display: inline-block;
	padding: 0.3rem 0.9rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--color-primary-dark);
	border: 1.5px solid var(--color-primary);
	border-radius: 4px;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.pi-link-btn:hover {
	background: var(--color-primary);
	color: #ffffff;
	text-decoration: none;
}

/* ── Group section heading ── */
.member-group-section {
	margin-bottom: 3.5rem;
}

.group-heading {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 1rem;
	margin-bottom: 1.25rem;
}

.group-heading-line {
	flex: 1;
	height: 1px;
	background: var(--color-border);
}

.group-heading-text {
	font-size: 1.1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-primary-dark);
	white-space: nowrap;
	margin: 0;
}

/* ── Member cards grid ── */
.members-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.member-card {
	background: #ffffff;
	border: 1px solid var(--color-border);
	border-radius: 10px;
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.member-card:hover {
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
	transform: translateY(-3px);
}

.member-card-photo {
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--color-gray-light);
}

.member-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	transition: transform 0.3s ease;
}

.member-card:hover .member-card-img {
	transform: scale(1.04);
}

.member-card-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-primary) 100%);
}

.member-card-body {
	padding: 1rem 1.1rem 1.2rem;
}

.member-card-name {
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-primary-dark);
	margin: 0 0 0.25rem;
}

.member-card-position {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--color-primary);
	margin: 0 0 0.5rem;
}

.member-card-org {
	font-size: 0.78rem;
	color: var(--color-text-light);
	font-style: italic;
	margin: 0 0 0.5rem;
	line-height: 1.4;
}

.member-card-edu {
	list-style: none;
	margin: 0 0 0.6rem;
	padding: 0;
}

.member-card-edu li {
	font-size: 0.78rem;
	color: var(--color-text-light);
	line-height: 1.55;
	padding: 0.1rem 0 0.1rem 0.75rem;
	position: relative;
}

.member-card-edu li::before {
	content: '·';
	position: absolute;
	left: 0;
	color: var(--color-primary);
	font-weight: 700;
}

.member-card-email {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.75rem;
	color: var(--color-text-light);
	text-decoration: none;
	word-break: break-all;
	transition: color 0.2s;
}

.member-card-email:hover {
	color: var(--color-primary);
	text-decoration: none;
}

.no-members {
	text-align: center;
	padding: 3rem 0;
	color: var(--color-text-light);
}

/* ── Responsive: Members ── */
@media screen and (max-width: 1100px) {
	.members-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (max-width: 768px) {
	.pi-card {
		flex-direction: column;
		gap: 1.5rem;
		padding: 1.5rem;
	}

	.pi-photo-col {
		flex: none;
		display: flex;
		justify-content: center;
	}

	.pi-photo-img,
	.pi-photo-placeholder {
		width: 160px;
		height: 200px;
	}

	.pi-cv-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.pi-name {
		font-size: 1.5rem;
	}

	.members-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 480px) {
	.members-grid {
		grid-template-columns: 1fr;
	}
}

/* Publications Page */
.publications-page .section-heading {
	font-size: 2rem;
	color: var(--color-primary-dark);
	margin: 3rem 0 2rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--color-accent-light);
}

.publications-list {
	max-width: 100%;
}

.publication-entry {
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 2rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	display: flex;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-entry:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.publication-thumbnail {
	flex: 0 0 200px;
	background: var(--color-gray-light);
	display: flex;
	align-items: center;
	justify-content: center;
}

.publication-thumbnail img {
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
}

.pub-thumb-placeholder {
	min-height: 200px;
}

.pub-thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-primary) 100%);
}

.pub-thumb-placeholder .dashicons {
	font-size: 60px;
	width: 60px;
	height: 60px;
	color: #ffffff;
	opacity: 0.6;
}

.publication-details {
	flex: 1;
	padding: 1.5rem 2rem;
}

.pub-year {
	display: inline-block;
	background: var(--color-primary);
	color: #ffffff;
	padding: 0.25rem 0.75rem;
	border-radius: 4px;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.pub-title {
	font-size: 1.375rem;
	margin: 0 0 0.75rem;
}

.pub-title a {
	color: var(--color-text);
	text-decoration: none;
	transition: color 0.3s ease;
}

.pub-title a:hover {
	color: var(--color-primary);
}

.pub-authors {
	color: var(--color-text);
	margin: 0 0 0.5rem;
	font-size: 0.9375rem;
}

.pub-journal {
	color: var(--color-text-light);
	margin: 0 0 1rem;
	font-size: 0.9375rem;
}

.pub-excerpt {
	margin-bottom: 1rem;
	line-height: 1.6;
}

.pub-links {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.pub-external-link,
.pub-doi-link {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: var(--color-primary);
	color: #ffffff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 0.875rem;
	font-weight: 600;
	transition: background 0.3s ease;
}

.pub-external-link:hover,
.pub-doi-link:hover {
	background: var(--color-primary-dark);
	text-decoration: none;
}

.pub-doi-link {
	background: var(--color-accent);
}

/* Research Page */

/* Intro section */
.research-intro-section {
	padding: var(--spacing-large) 0;
	background: #fff;
	border-bottom: 1px solid var(--color-border);
}

.research-intro-title {
	font-size: 1.5rem;
	color: var(--color-primary-dark);
	margin: 0 0 1.25rem;
	font-weight: 700;
	text-align: center;
}

.research-intro-text {
	margin-bottom: 2rem;
}

.research-intro-text p {
	line-height: 2;
	color: var(--color-text);
	margin: 0;
	font-size: 0.95rem;
}

.research-intro-image {
	text-align: center;
}

.research-intro-image img {
	max-width: 700px;
	width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
	margin: 0 auto;
}

/* Topic sections */
.research-topic-section {
	padding: var(--spacing-small) 0;
	border-bottom: 1px solid var(--color-border);
}

.research-topic-section:last-child {
	border-bottom: none;
}

.research-topic-grid {
	display: grid;
	grid-template-columns: 1fr 240px;
	gap: 2rem;
	align-items: center;
}


.research-topic-title {
	font-size: 1.3rem;
	color: var(--color-primary-dark);
	font-weight: 700;
	margin: 0 0 1.25rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--color-accent);
	display: inline-block;
}

.research-topic-text p {
	line-height: 2.1;
	color: var(--color-text);
	margin: 0;
	font-size: 0.95rem;
}

.research-topic-images {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.research-topic-images img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	display: block;
}

/* Responsive */
@media (max-width: 900px) {
	.research-topic-grid {
		grid-template-columns: 1fr;
	}

	.research-topic-images img {
		max-height: 260px;
	}
}

/* Life Page */
.life-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
}

.life-item {
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.life-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.life-link {
	display: block;
	text-decoration: none;
}

.life-image {
	position: relative;
	aspect-ratio: 1.33;
	overflow: hidden;
	background: var(--color-gray-light);
}

.life-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.life-item:hover .life-image img {
	transform: scale(1.05);
}

.life-image-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-primary) 100%);
}

.life-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1.5rem;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
	color: #ffffff;
}

.life-title {
	font-size: 1.25rem;
	margin: 0 0 0.5rem;
	color: #ffffff;
}

.life-date {
	font-size: 0.875rem;
	opacity: 0.9;
}

.no-life-posts {
	text-align: center;
	padding: 3rem 0;
	color: var(--color-text-light);
}

/* Activities Page */
.activities-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 1.5rem;
	margin-top: 2rem;
}

.activity-card {
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.activity-cover-btn {
	display: block;
	width: 100%;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	position: relative;
}

.activity-cover-img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}

.activity-cover-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1.25rem 1rem 1rem;
	background: linear-gradient(to top, rgba(0,0,0,0.72), transparent);
	text-align: left;
}

.activity-cover-title {
	display: block;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 0.2rem;
}

.activity-cover-date {
	display: block;
	color: rgba(255,255,255,0.8);
	font-size: 0.8rem;
}

/* Lightbox modal */
.activity-modal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.88);
	z-index: 9999;
	align-items: center;
	justify-content: center;
}

.activity-modal.is-open {
	display: flex;
}

.activity-modal-inner {
	background: #fff;
	border-radius: 12px;
	width: 90vw;
	max-width: 1100px;
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
}

.activity-modal-close {
	position: absolute;
	top: 0.75rem;
	right: 1rem;
	background: none;
	border: none;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
	color: var(--color-text-light);
	z-index: 2;
}

.activity-modal-close:hover {
	color: var(--color-text);
}

.activity-modal-header {
	padding: 1.25rem 1.5rem 0.75rem;
	border-bottom: 1px solid var(--color-border);
}

.activity-modal-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--color-primary-dark);
	margin: 0 0 0.2rem;
}

.activity-modal-date {
	font-size: 0.825rem;
	color: var(--color-text-light);
	margin: 0;
}

.activity-modal-viewer {
	display: flex;
	align-items: center;
	flex: 1;
	min-height: 0;
	position: relative;
	background: #f5f5f5;
}

.activity-modal-img-wrap {
	flex: 1;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem 0.5rem;
}

.activity-modal-img {
	display: none;
	max-width: 100%;
	max-height: calc(92vh - 140px);
	height: auto;
	width: auto;
	border-radius: 6px;
	object-fit: contain;
}

.activity-modal-img.is-active {
	display: block;
}

.activity-nav {
	background: none;
	border: none;
	font-size: 3.5rem;
	line-height: 1;
	color: var(--color-text-light);
	cursor: pointer;
	padding: 0 1rem;
	flex-shrink: 0;
	transition: color 0.2s;
	user-select: none;
}

.activity-nav:hover {
	color: var(--color-primary);
}

.activity-modal-counter {
	text-align: center;
	padding: 0.6rem;
	font-size: 0.85rem;
	color: var(--color-text-light);
	border-top: 1px solid var(--color-border);
}

.no-activities {
	text-align: center;
	padding: 3rem 0;
	color: var(--color-text-light);
}

/* Join Us Page */
.join-page .page-subtitle {
	font-size: 1rem;
	color: var(--color-text-light);
	margin-top: 0;
	margin-bottom: 0;
}

.join-content {
	max-width: 800px;
	margin: 0 auto;
}

.position-section {
	margin-bottom: 0.75rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--color-gray-light);
}

.position-section:last-of-type {
	border-bottom: none;
}

.position-title {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--color-primary-dark);
	margin-bottom: 0.75rem;
}

.position-intro {
	line-height: 1.7;
	margin-bottom: 0.75rem;
	color: var(--color-text);
}

.position-block {
	margin-bottom: 0.75rem;
}

.position-block h3 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--color-text);
	margin-bottom: 0.5rem;
}

.position-block ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.position-block ul li {
	padding-left: 1.2em;
	position: relative;
	line-height: 1.8;
	color: var(--color-text);
}

.position-block ul li::before {
	content: "•";
	position: absolute;
	left: 0;
	color: var(--color-primary);
}

.apply-section {
	background: var(--color-gray-light);
	padding: 2rem;
	border-radius: 8px;
	margin-top: 1rem;
}

.apply-section h2 {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--color-primary-dark);
	margin-bottom: 0.75rem;
}

.apply-section p {
	line-height: 1.8;
	margin: 0;
}

.apply-section a {
	color: var(--color-primary);
	font-weight: 600;
	text-decoration: none;
}

.apply-section a:hover {
	text-decoration: underline;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Alignments
--------------------------------------------- */
.alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/*--------------------------------------------------------------
# Media Queries (Responsive)
--------------------------------------------------------------*/
@media screen and (max-width: 1200px) {
	:root {
		--container-width: 960px;
	}
}

@media screen and (max-width: 992px) {
	:root {
		--container-width: 720px;
	}

	.site-header .container {
		flex-wrap: wrap;
		height: auto;
	}

	.menu-toggle {
		display: block;
		background: transparent;
		border: 2px solid var(--color-primary);
		color: var(--color-primary);
		padding: 0.5em 1em;
		cursor: pointer;
		font-size: 1rem;
	}

	.main-navigation {
		width: 100%;
		order: 3;
	}

	.main-navigation ul {
		display: none;
		flex-direction: column;
		width: 100%;
		height: auto;
	}

	.main-navigation.toggled ul {
		display: flex;
	}

	.main-navigation ul li {
		width: 100%;
		height: auto;
	}

	.main-navigation a {
		padding: 1em;
		border-top: none;
		border-left: 5px solid transparent;
		height: auto;
	}

	.main-navigation a:hover,
	.main-navigation .current-menu-item > a {
		border-left-color: var(--color-accent);
		border-top-color: transparent;
	}

	.main-navigation ul ul {
		position: static;
		box-shadow: none;
	}
}

@media screen and (max-width: 768px) {
	:root {
		--container-width: 100%;
	}

	h1 { font-size: 2em; }
	h2 { font-size: 1.75em; }
	h3 { font-size: 1.5em; }

	.site-title {
		font-size: 1.5rem;
	}

	.custom-logo {
		width: 48px;
		height: 48px;
	}

	/* Front page responsive */
	.hero-banner-grid {
		grid-template-columns: 1fr;
	}

	.hero-banner-image {
		aspect-ratio: 16 / 9;
	}

	.research-items {
		grid-template-columns: 1fr;
	}

	.section-title h2 {
		font-size: 1.75rem;
	}

	.section-title .amp {
		font-size: 2.5rem;
	}

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

	.publication-image {
		flex: 0 0 200px;
	}

	/* Page templates responsive */
	.page-title {
		font-size: 2rem;
	}

	.team-members-grid {
		grid-template-columns: 1fr;
	}


	.life-gallery {
		grid-template-columns: 1fr;
	}

	.activities-gallery {
		grid-template-columns: 1fr;
	}

	.publication-entry {
		flex-direction: column;
	}

	.publication-thumbnail {
		flex: 0 0 200px;
	}

	.contact-details {
		grid-template-columns: 1fr;
	}
}
