/* ModernCV Banking Style - Screen Stylesheet (TeX Gyre Pagella / Palatino) */

* {
	box-sizing: border-box;
}

html, body, div, span, h1, h2, h3, h4, p, a, code, em, strong, ul, li {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

body {
	font-family: "Palatino", "Palatino Linotype", "TeX Gyre Pagella", "URW Palladio L", "Book Antiqua", Georgia, serif;
	font-size: 10.5pt;
	line-height: 1.5;
	color: #1a1a1a;
	background: #ffffff;
	margin: 0;
	padding: 0;
	-webkit-font-smoothing: antialiased;
}

/* Global Sticky Header & Navigation */
.site-header {
	width: 100%;
	border-bottom: 1px solid #eaeaea;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.site-nav-container {
	max-width: 820px;
	margin: 0 auto;
	padding: 0.9em 1.5em;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.site-brand {
	font-family: "Palatino", "Palatino Linotype", "TeX Gyre Pagella", Georgia, serif;
	font-size: 1.15em;
	font-weight: bold;
	color: #000000;
	text-decoration: none;
	letter-spacing: 0.2px;
	transition: color 0.15s ease;
}

.site-brand:hover {
	color: #0056b3;
	text-decoration: none;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 1.5em;
}

.nav-link {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.92em;
	color: #555555;
	text-decoration: none;
	font-weight: 500;
	padding-bottom: 2px;
	transition: color 0.15s ease;
}

.nav-link:hover {
	color: #000000;
	text-decoration: none;
}

.nav-link.active {
	color: #000000;
	font-weight: 600;
	border-bottom: 2px solid #000000;
}

.nav-pdf-btn {
	background: #f1f3f5;
	padding: 0.3em 0.75em;
	border-radius: 4px;
	color: #333333;
	font-size: 0.85em;
	font-weight: 600;
	border-bottom: none !important;
	transition: all 0.15s ease;
}

.nav-pdf-btn:hover {
	background: #e2e6ea;
	color: #000000;
}

/* Main Content Container - Flows smoothly without artificial box border */
#main {
	max-width: 820px;
	margin: 0 auto;
	padding: 2.5em 1.5em 5em 1.5em;
}

#content {
	width: 100%;
}

/* CV Header: Name on left, Contact info on right */
#cv-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 12pt;
	padding-bottom: 4pt;
	flex-wrap: wrap;
	gap: 10px;
}

#cv-title {
	text-align: left;
}

#cv-title h1, h1 {
	font-size: 24pt;
	font-weight: bold;
	color: #000000;
	margin: 0;
	line-height: 1.1;
	text-align: left;
}

#cv-title .subtitle {
	font-size: 10.5pt;
	font-style: italic;
	color: #444444;
	margin-top: 3pt;
}

#webaddress {
	text-align: right;
	font-family: "Palatino", "Palatino Linotype", "TeX Gyre Pagella", Georgia, serif;
	font-size: 9pt;
	line-height: 1.45;
	color: #333333;
	margin: 0;
}

#webaddress a {
	color: #004b99;
	text-decoration: none;
}

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

/* Sections */
h2 {
	font-size: 11pt;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #000000;
	border-bottom: 1.2pt solid #000000;
	padding-bottom: 2pt;
	margin-top: 16pt;
	margin-bottom: 6pt;
}

h3 {
	font-size: 10pt;
	font-weight: bold;
	margin-top: 6pt;
	margin-bottom: 2pt;
}

/* Entries and Paragraphs */
p {
	margin-top: 3pt;
	margin-bottom: 2pt;
	line-height: 1.4;
	width: 100%;
}

/* Dates */
code {
	background: none;
	font-family: "Palatino", "Palatino Linotype", "TeX Gyre Pagella", Georgia, serif;
	font-size: 9.5pt;
	font-weight: normal;
	color: #222222;
}

p code, li code {
	float: right;
	margin-left: 1em;
}

/* Text styles */
strong {
	font-weight: bold;
}

em {
	font-style: italic;
}

/* Lists */
ul {
	width: 100%;
	margin-top: 2pt;
	margin-bottom: 6pt;
	padding-left: 1.25em;
	list-style-type: disc;
}

li {
	font-size: 9.5pt;
	line-height: 1.4;
	margin-bottom: 2pt;
}

li::marker {
	color: #000000;
	font-size: 0.8em;
}

/* Links */
a {
	color: #004b99;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

a::after {
	display: none;
}

/* 3-Column Skills Grid */
.skills-grid {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 8px;
	margin-bottom: 14px;
	width: 100%;
}

.skills-col {
	flex: 1;
	min-width: 0;
}

.skills-title {
	font-weight: bold;
	font-size: 10pt;
	color: #000000;
	margin-bottom: 4px;
	padding-bottom: 2px;
	border-bottom: 1px solid #444444;
}

.skills-col ul {
	margin-top: 4px;
	margin-bottom: 0;
	padding-left: 1.1em;
	list-style-type: disc;
}

.skills-col li {
	font-size: 9.5pt;
	line-height: 1.4;
	margin-bottom: 2px;
}

/* Timeline Styles (for News Page) */
.timeline {
	position: relative;
	margin: 1.5em 0 2em 0.5em;
	padding-left: 1.8em;
	border-left: 2px solid #e0e0e0;
}

.timeline-item {
	position: relative;
	margin-bottom: 1.8em;
}

.timeline-item:last-child {
	margin-bottom: 0;
}

.timeline-marker {
	position: absolute;
	left: -2.35em;
	top: 0.25em;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #000000;
	border: 2px solid #ffffff;
	box-shadow: 0 0 0 2px #000000;
}

.timeline-date {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.85em;
	font-weight: 600;
	color: #666666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 0.2em;
}

.timeline-title {
	font-size: 1.05em;
	font-weight: bold;
	color: #000000;
	margin-bottom: 0.25em;
}

.timeline-desc {
	font-size: 0.95em;
	color: #333333;
	line-height: 1.45;
}

/* Blog / Journal Preview Cards */
.blog-placeholder-notice {
	background: #f8f9fa;
	border-left: 3px solid #004b99;
	padding: 0.9em 1.2em;
	margin: 1.2em 0 2em 0;
	font-size: 0.92em;
	color: #444444;
}

.blog-list {
	display: flex;
	flex-direction: column;
	gap: 1.5em;
	margin-top: 1.5em;
}

.blog-card {
	padding: 1.2em 0;
	border-bottom: 1px solid #eeeeee;
}

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

.blog-meta {
	display: flex;
	align-items: center;
	gap: 0.8em;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.82em;
	color: #777777;
	margin-bottom: 0.35em;
}

.blog-tag {
	background: #e9ecef;
	color: #495057;
	padding: 0.15em 0.5em;
	border-radius: 3px;
	font-size: 0.85em;
	font-weight: 500;
}

.blog-card h3 {
	font-size: 1.2em;
	font-weight: bold;
	color: #000000;
	margin-bottom: 0.35em;
}

.blog-desc {
	font-size: 0.95em;
	color: #444444;
	line-height: 1.45;
}

.blog-status {
	display: inline-block;
	font-size: 0.82em;
	color: #888888;
	font-style: italic;
	margin-top: 0.35em;
}

/* News Timelines & Menu Switcher */
.news-menu-wrapper {
	margin: 1.5em 0 2em 0;
}

.news-menu {
	display: inline-flex;
	background: #f1f3f5;
	padding: 4px;
	border-radius: 8px;
	gap: 4px;
	border: 1px solid #e9ecef;
}

.news-menu-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 18px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.9em;
	font-weight: 600;
	color: #495057;
	background: transparent;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	text-decoration: none;
}

.news-menu-btn:hover {
	color: #000000;
	background: rgba(255, 255, 255, 0.6);
}

.news-menu-btn.active {
	background: #ffffff;
	color: #004b99;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.news-menu-icon {
	width: 15px;
	height: 15px;
	stroke: currentColor;
	vertical-align: -2px;
}

.timeline-pane {
	display: none;
	animation: timelineFadeIn 0.25s ease-out forwards;
}

.timeline-pane.active {
	display: block;
}

@keyframes timelineFadeIn {
	from {
		opacity: 0;
		transform: translateY(4px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.timeline-list {
	position: relative;
	padding-left: 28px;
	margin: 1.5em 0 3em 0;
}

.timeline-list::before {
	content: "";
	position: absolute;
	left: 7px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: #e2e6ea;
}

.timeline-item {
	position: relative;
	margin-bottom: 2em;
}

.timeline-item:last-child {
	margin-bottom: 0;
}

.timeline-dot {
	position: absolute;
	left: -28px;
	top: 4px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #ffffff;
	border: 3px solid #004b99;
	box-sizing: border-box;
	transition: transform 0.2s ease, background 0.2s ease;
}

.timeline-item:hover .timeline-dot {
	background: #004b99;
	transform: scale(1.15);
}

.timeline-header {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 0.3em;
}

.timeline-date {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.8em;
	font-weight: 600;
	color: #004b99;
	background: #eef4fc;
	padding: 2px 8px;
	border-radius: 4px;
	letter-spacing: 0.3px;
	display: inline-block;
}

.timeline-title {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 1.05em;
	font-weight: 600;
	color: #111111;
	line-height: 1.35;
	margin: 0;
}

.timeline-desc {
	font-size: 0.95em;
	color: #495057;
	line-height: 1.5;
	margin: 0.25em 0 0 0;
}

/* Photo Gallery Grid */
.photo-intro {
	margin-bottom: 1.5em;
	color: #555555;
	font-size: 0.95em;
}

#main.main-photos {
	max-width: 1280px;
	width: 100%;
}

.photo-grid {
	column-count: 3;
	column-gap: 8px;
	margin-top: 1.8em;
	width: 100%;
}

.photo-item {
	display: inline-block;
	width: 100%;
	margin-bottom: 8px;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	cursor: pointer;
	background: #18191a;
	transform: translateZ(0);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.25s ease;
}

.photo-item:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.photo-item img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1);
}

.photo-item:hover img {
	transform: scale(1.025);
}

.photo-caption-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1.25em 1em;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.82) 0%,
		rgba(0, 0, 0, 0.38) 55%,
		rgba(0, 0, 0, 0) 100%
	);
	color: #ffffff;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
}

.photo-item:hover .photo-caption-overlay,
.photo-item:focus .photo-caption-overlay {
	opacity: 1;
}

.overlay-title {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.96em;
	font-weight: 600;
	line-height: 1.25;
	margin-bottom: 0.25em;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.overlay-caption {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.82em;
	line-height: 1.35;
	color: #e4e6eb;
	margin-bottom: 0.3em;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.overlay-meta {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.75em;
	color: #b0b3b8;
	display: flex;
	gap: 6px;
	align-items: center;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

@media (max-width: 850px) {
	.photo-grid {
		column-count: 2;
		column-gap: 6px;
	}
	.photo-item {
		margin-bottom: 6px;
	}
}

@media (max-width: 500px) {
	.photo-grid {
		column-count: 1;
		column-gap: 0;
	}
	.photo-item {
		margin-bottom: 8px;
	}
	.photo-caption-overlay {
		opacity: 1;
		background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 60%);
	}
}

/* Lightbox Modal */
.photo-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 2000;
	display: none;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.photo-lightbox.active {
	display: flex;
	opacity: 1;
}

.lightbox-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(10, 10, 10, 0.88);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.lightbox-dialog {
	position: relative;
	z-index: 2001;
	max-width: 90vw;
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
	border-radius: 8px;
	overflow: hidden;
	background: #18191a;
	animation: lbScale 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lbScale {
	from {
		transform: scale(0.96);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

.lightbox-btn {
	position: absolute;
	z-index: 2002;
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #ffffff;
	font-size: 1.4em;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	line-height: 1;
	transition: background 0.15s ease, transform 0.15s ease;
}

.lightbox-btn:hover {
	background: rgba(255, 255, 255, 0.25);
	transform: scale(1.08);
}

.lightbox-close {
	top: 16px;
	right: 18px;
}

.lightbox-prev {
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
}

.lightbox-prev:hover {
	transform: translateY(-50%) scale(1.08);
}

.lightbox-next {
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
}

.lightbox-next:hover {
	transform: translateY(-50%) scale(1.08);
}

@media (max-width: 600px) {
	.lightbox-prev, .lightbox-next {
		display: none;
	}
}

.lightbox-media {
	max-height: 72vh;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #0d0e0f;
}

.lightbox-media img {
	max-width: 100%;
	max-height: 72vh;
	width: auto;
	height: auto;
	display: block;
	object-fit: contain;
}

.lightbox-details {
	width: 100%;
	padding: 1em 1.4em;
	background: #18191a;
	color: #e4e6eb;
	box-sizing: border-box;
}

.lightbox-title {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 1.1em;
	font-weight: 600;
	color: #ffffff;
	margin-bottom: 0.3em;
}

.lightbox-caption {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.9em;
	line-height: 1.4;
	color: #b0b3b8;
	margin-bottom: 0.3em;
}

.lightbox-meta {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.78em;
	color: #8a8d91;
}

/* Site Footer */
.site-footer {
	border-top: 1px solid #eaeaea;
	padding: 2em 1.5em 3em 1.5em;
	color: #777777;
	font-size: 0.85em;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.footer-container {
	max-width: 820px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.footer-container a {
	color: #555555;
	text-decoration: none;
}

.footer-container a:hover {
	color: #000000;
	text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 600px) {
	.site-nav-container {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.6em;
	}
	.site-nav {
		gap: 1em;
		flex-wrap: wrap;
	}
	.skills-grid {
		flex-direction: column;
		gap: 12px;
	}
	#cv-header {
		flex-direction: column;
		align-items: flex-start;
	}
	#webaddress {
		text-align: left;
	}
}
