* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
	/* Adjust the value as needed */
	/* font-size: 0.2em;  */

}

body {
	margin: 0;
	padding: 0;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	/* font-size: 20; */
	background-color: #f2f2f2;
	color: #333;
}


/* ************************************************************* */
/* headr */
/* ********************************************

/* General header styling */
header {
	background-color: #003366;
	color: white;
	text-align: center;
	padding: 40px 0;
	font-size: 1.2em;
}

/* Shared styles for all header variants */
header[class^="header-"],
header[class*=" header-"] {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: scroll;
	height: 400px;
	color: white;
	font-size: 1.4em;
	padding: 0 20px;
	box-sizing: border-box;
}

/* Overlay for better text contrast */
header[class^="header-"]::before,
header[class*=" header-"]::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 1;
}

header[class^="header-"] h1,
header[class^="header-"] p,
header[class*=" header-"] h1,
header[class*=" header-"] p {
	position: relative;
	z-index: 2;
	margin: 0.3em 0;
}

/* Header image sources and custom overrides */
header.header-home {
	background-image: url("../images/header/home.jpg");
}

header.header-publications {
	background-image: url("../images/header/publications.jpg");
	height: 300px;
	background-position: center bottom;
}

header.header-contact {
	background-image: url("../images/header/contact.jpg");
}

header.header-talks {
	background-image: url("../images/talks/2024/4.jpg");
}

header.header-teaching {
	background-image: url("../images/talks/2023/2.jpg");
	background-position: center top;
	height: 600px;

}

header.header-project {
	background-image: url("../images/circuit/6.jpg");
	height: 300px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	header[class^="header-"],
	header[class*=" header-"] {
		height: 250px;
		font-size: 1.1em;
		padding: 0 16px;
	}
}
/* ************************************************************* */

/* Shared image credit style */
.image-credit {
	position: absolute;
	bottom: 5px;
	left: 10px;
	font-size: 0.75em;
	color: rgba(255, 255, 255, 0.8);
	background: rgba(0, 0, 0, 0.4);
	padding: 3px 6px;
	border-radius: 4px;
	z-index: 2;
}

.image-credit a {
	color: inherit;
	text-decoration: none;
}

.image-credit a:hover {
	text-decoration: underline;
}

/* ************************************************************* */

nav {
	background-color: #005599;
	display: flex;
	flex-wrap: wrap;              /* allow wrapping on small screens */
	justify-content: center;
	align-items: center;
	padding: 10px;
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100vw;                /* force full screen width */
	box-sizing: border-box;
	overflow-x: hidden;          /* hide potential overflow */
}


nav a {
	color: white;
	text-decoration: none;
	margin: 0 15px;
	font-weight: bold;
	white-space: nowrap; /* prevent breaking mid-word */

}


nav a:hover {
	text-decoration: underline;
}

nav ul {
	display: flex;
	flex-wrap: wrap;        /* <-- helps on smaller screens */
	justify-content: center;
	padding: 0;
	margin: 0;
	list-style: none;
	width: 100%;
}

nav li {
	margin: 0 10px;
}

/* ************************************************************* */

.content {
	max-width: 900px;
	margin: auto;
	padding: 30px 20px;
}

/* ************************************************************* */

.section {
	background-color: white;
	color: black;
	margin-bottom: 20px;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.section h2 {
	color: #005599;
}

.section-alt {
	background-color: #005599;
	color: white;
}

.section-alt h2 {
	color: white;
}

.section-alt a {
	color: #ffdd57;
	/* gold-ish for links on dark background */
}

/* ************************************************************* */

footer {
	background-color: #003366;
	color: white;
	text-align: center;
	padding: 20px 0;
}

/* ************************************************************* */

/* For link preview: */
.link-preview {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	background-color: #f9f9f9;
	padding: 16px;
	border-radius: 10px;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
	max-width: 800px;
	margin: 1rem auto;
	text-decoration: none;
	color: inherit;
}

.link-preview img {
	width: 200px;
	height: auto;  /* Keeps the aspect ratio intact */
	max-height: 150px;  /* Optional: Limits the maximum height */
	border-radius: 8px;
	margin-right: 10px; /* Adds space to the right of the image */
	object-fit: cover;  /* Ensures the image is cropped if needed */
}


.link-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.1rem; /* Add spacing between text elements */
}


.link-preview .link-info {
	flex: 1;
	color: black;
}

.link-preview a {
	display: flex;
	text-decoration: none;
	color: inherit;
}

/* ************************************************************* */
/* paper */
/* paper */
.paper-preview {
	display: flex;
	flex-direction: column;
	/* Stack content vertically */
	gap: 12px;
	background: white;
	border-radius: 8px;
	padding: 12px;
	margin-top: 15px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
	font-size: 0.95em;
	cursor: pointer;
	/* Makes the entire block clickable */
}

.paper-preview .paper-info {
	flex: 1;
	color: black;
}

.paper-preview a {
	display: block;
	text-decoration: none;
	color: inherit;
}

.paper-preview h3 {
	margin: 0;
	font-size: 1.2em;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	color: #005599;
	/* Title color */
}

.paper-preview .details {
	font-size: 1em;
	font-style: italic;
	color: #151414;
	/* Lighter color for details */
	word-break: break-word;
	overflow-wrap: anywhere;
}

.paper-preview .link {
	font-size: 1em;
	color: #0077cc;
	/* Link color */
	text-align: center;
	/* Centers the link text */
	font-weight: bold;
}

.paper-preview .link:hover {
	text-decoration: underline;
}

/* ************************************************************* */
/* Talks styled like paper-preview */

/* Wrapper for both slideshow and talks */
.talks-with-figure {
    display: flex;
    flex-direction: column; /* Stack slideshow and talks vertically */
    gap: 2rem; /* Space between slideshow and talks */
    align-items: center; /* Center content */
    width: 100%; /* Ensure it's using full width */
}

.slideshow {
	position: relative;
	width: 90%;
	max-width: 800px;  /* Increased from 600px */
	aspect-ratio: 16 / 9;  /* Was 16/9 → now less tall */
	margin: 0 auto;
	overflow: hidden;
}

.slideshow .slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}

.slideshow .slide.active {
	opacity: 1;
	position: absolute;
	z-index: 1;
}


/* Dots placed below slideshow */
.slideshow-dots {
	max-width: 600px; /* Same as slideshow max-width */
	margin: 10px auto 0 auto;
	display: flex;
	justify-content: center;
	gap: 8px;
}


.slideshow-dots .dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: #ccc;
	cursor: pointer;
	transition: background-color 0.3s;
}

.slideshow-dots .dot.active {
	background-color: #333;
}

/* Dots container placed below the slideshow */
.dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px; /* Ensures space between slideshow and dots */
}


.dots span {
    display: block;
    width: 12px;
    height: 12px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dots span.active {
    background-color: #717171;
}

/* Talks list styling */
.talks-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
    max-width: 800px; /* Same max-width to align with slideshow */
}

/* Talk styling */
.talks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: white;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 15px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer; /* Makes the entire block clickable */
}

.talks-alt {
	display: flex;
    flex-direction: column;
    gap: 12px;
    background: white;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 15px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer; /* Makes the entire block clickable */
	background-color: #005599;
	color: white;
}

/* Make the entire talk container clickable */
.talk-link {
    display: block;
    text-decoration: none; /* Remove default link styles */
    color: inherit; /* Inherit text color */
}

/* Talks text */
.talks h3 {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #005599;
}

.talks .details {
    font-size: 1em;
	display: inline;

    font-style: italic;
    color: #151414;
}

.talks-alt .details a {
    display: inline;
    margin: 0; /* Optional: Remove any margins around the <a> tags */
	color: #ffdd57;

}
.talks-alt h3 {
	margin-bottom: 0;
	
}

.talks-alt .details {
	margin-top: 0;
	display: inline-block;
	font-size: 0.95em;
}

/* Ensure the pointer cursor appears only on actual links */
.talks-alt a {
    cursor: pointer;
}

/* No pointer cursor for non-link talks */
.talks-alt:not(a) {
    cursor: default;
}

/* Ensure the pointer cursor appears only on actual links */
.talks a {
    cursor: pointer;
}

/* No pointer cursor for non-link talks */
.talks:not(a) {
    cursor: default;
}

/* ************************************************************* */
/* list */
#contact ul li {
	margin-bottom: 6px;
	font-size: 1.05em;
}

#contact a {
	text-decoration: none;
	color: #0077cc;
}

#contact a:hover {
	text-decoration: underline;
}


/* ************************************************************* */
.google-sheet-embed iframe {
    width: 100%; /* Makes iframe width 100% of the parent container */
    height: 60vh; /* Adjusts height dynamically based on viewport height */
    border: none; /* Removes the default iframe border */
    border-radius: 8px; /* Optional: Adds rounded corners */
}

/* ************************************************************* */
/* footer */
.custom-footer {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	flex-wrap: wrap;
	padding: 2rem;
	font-size: 0.95rem;
	color: white;
}

.footer-left {
	position: absolute;
	bottom: 0;
	left: 1.5rem;
	color: white;
}

.footer-right {
	position: absolute;
	bottom: 0;
	right: 1.5rem;
	color: white;
}

.footer-center {
	text-align: center;
	color: white;
}

.footer-center p {
	margin: 0 0 0.5rem;
	font-weight: 500;
	color: white;
}

.social-links a {
	margin: 0 0.4rem;
}

.icon {
	width: 20px;
	height: 20px;
	vertical-align: middle;
	filter: invert(100%);
	transition: filter 0.3s ease;
}

.icon:hover {
	filter: invert(80%);
}