@charset "utf-8";

body {
	margin-left: auto;
	margin-right: auto;
	width: 92%;
	max-width: 960px;
	padding-left: 2.275%;
	padding-right: 2.275%;
}
/* Header */
header {
	text-align: center;
	display: inline-block;
}
header .profileLogo .logoPlaceholder {
	background-color: rgba(208,207,207,1.00);
	width: 187px;
	text-align: center;
}
header .logoPlaceholder span {
	width: 80px;
	height: 22px;
	font-family: 'Montserrat', sans-serif;
	color: rgba(255,255,255,1.00);
	font-size: 30px;
	font-weight: 700;
	line-height: 53px;
}
header .profilePhoto {
	width: 259px;
	border-radius: 50%;
	height: 259px;
	clear: both;
}
header .profileHeader h1 {
	font-family: 'Montserrat', sans-serif;
	color: rgba(146,146,146,1.00);
	font-size: 30px;
	font-weight: 700;
	line-height: 24px;
}
header .profileHeader h3 {
	font-family: sans-serif;
	color: rgba(146,146,146,1.00);
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
}
hr {
	background-color: rgba(208,207,207,1.00);
	height: 1px;
}

.footerDivider {
	border: 0;
	height: 1px;
	background: linear-gradient(90deg, rgba(200,200,200,0), rgba(180,180,180,0.7), rgba(200,200,200,0));
	margin: 10px 0 18px 0;
}
header .profileHeader p {
	font-family: sans-serif;
	color: rgba(146,146,146,1.00);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.8;
	overflow-y: auto;
}
header .socialNetworkNavBar {
	text-align: center;
	display: block;
	margin-top: 30px;
	clear: both;
}
header .socialNetworkNavBar .socialNetworkNav {
	border-radius: 30%;
	cursor: pointer;
}
header .socialNetworkNavBar .socialNetworkNav img:hover {
	opacity: 0.5;
}
/* Main Content sections */
.mainContent .section1 {
	display: inline-block;
}
.section1 .sectionTitle, .section2 .sectionTitle {
	font-family: 'Montserrat', sans-serif;
	color: rgba(146,146,146,1.00);
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
}
.section1 .sectionTitleRule, .section2 .sectionTitleRule {
	margin: 0 3% 0 0;
	float: left;
	clear: both;
}
.section1 .sectionTitleRule2, .section2 .sectionTitleRule2 {
	background-color: rgba(208,207,207,1.00);
	height: 1px;
	padding: 0px;
}
.mainContent .section1 .section1Content {
	font-family: ProximaNova;
	font-size: 14px;
	font-weight: 100;
	color: rgba(208,207,207,1.00);
}
.mainContent .section1 .section1Content span {
	color: rgba(146,146,146,1.00);
	font-family: sans-serif;
}
.section2 .sectionContentTitle {
	font-family: sans-serif;
	color: rgba(146,146,146,1.00);
	font-size: 18px;
	font-weight: 700;
}
.section2 .sectionContentSubTitle {
	font-family: sans-serif;
	color: rgba(68,67,67,1.00);
	font-size: 14px;
	font-weight: 400;
}
.mainContent {
	display: block;
}
.mainContent .externalResourcesNav .externalResources {
	background-color: rgba(208,207,207,1.00);
	display: inline-block;
	text-align: center;
	margin-top: 0px;
	padding-top: 3%;
	cursor: pointer;
}
.mainContent .externalResourcesNav .externalResources:hover {
    background-color: rgba(153,153,153,1.00);
}
.externalResourcesNav .externalResources a {
	font-family: 'Montserrat', sans-serif;
	color: rgba(255,255,255,1.00);
	font-size: 14px;
	font-weight: 400;
	text-decoration: none;
}
.mainContent .externalResourcesNav .dropdown {
    position: static;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    background-color: rgba(190,190,190,1.00);
    cursor: pointer;
    color: rgba(255,255,255,1.00);
}

.mainContent .externalResourcesNav .dropdown:hover {
    background-color: rgba(153,153,153,1.00);
}
.externalResourcesNav .dropdown span {
	font-size: 11pt;

}

.externalResourcesNav .dropdown a {
	font-family: 'Montserrat', sans-serif;
	color: rgba(255,255,255,1.00);
	font-size: 14px;
	font-weight: 400;
	text-decoration: none;
}
.mainContent .externalResourcesNav .dropdown-content {
  display: none;
  font-family: 'Montserrat', sans-serif;
  position: absolute;
  background-color: #f9f9f9;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  padding: 12px 16px;
  z-index: 1;
  max-width: 45%;
  color: rgba(0,0,0,1.00);
}
.mainContent .externalResourcesNav .dropdown:hover .dropdown-content {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
}

.mainContent .externalResourcesNav .externalResources2 {
	background-color: rgba(208,207,207,1.00);
	display: inline-block;
	text-align: center;
	font-family: 'Montserrat', sans-serif;
	font-size: 16pt;
	cursor: pointer;
}
.mainContent .externalResourcesNav .externalResources2:hover {
    background-color: rgba(153,153,153,1.00);
}
.externalResourcesNav .externalResources2 a {
	font-family: 'Montserrat', sans-serif;
	color: rgba(255,255,255,1.00);
	font-size: 12px;
	font-weight: 400;
	text-decoration: none;
}
.stretch {
	content: '';
	display: inline-block;
	margin-left: 2%;
	margin-right: 2%;
}
/* Footer */
footer .footerDisclaimer {
	font-family: sans-serif;
	font-size: 12px;
	line-height: 16px;
	color: rgba(104,103,103,1.00);
	font-weight: 600;
}
footer .footerDisclaimer span {
	color: rgba(181,178,178,1.00);
	font-weight: 400;
}
footer .footerNote {
	font-family: sans-serif;
	font-size: 14px;
	line-height: 18px;
	color: rgba(104,103,103,1.00);
	font-weight: 700;
}
footer .footerNote span {
	color: rgba(181,178,178,1.00);
	font-weight: 400;
}

/* Footer row layout for left text + right badge/map */
footer .footer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

#clustrmaps-badge {
	display: inline-block;
}

@media only screen and (max-width: 600px) {
	footer .footer-row { flex-direction: column; gap: 6px; }
	#clustrmaps-badge { display: none; }
}

/* ClustrMaps badge placeholder styling */
#clustrmaps-badge {
	display: inline-block;
	margin-left: 12px;
	vertical-align: middle;
}

@media only screen and (max-width: 600px) {
	#clustrmaps-badge { display: none; }
}

/* Media query for Mobile devices*/
@media only screen and (min-width : 285px) and (max-width : 480px) {
/* Header */
header {
	width: 100%;
	float: none;
}
header .profileLogo .logoPlaceholder {
	display: inline-block;
}
header .profilePhoto {
	display: inline-block;
}
header .profileHeader {
	text-align: center;
	margin-top: 10%;
}
header .profileHeader p {
	text-align: justify;
}
header .socialNetworkNavBar {
	text-align: center;
	display: block;
	margin-top: 30px;
	clear: both;
	margin-bottom: 15%;
}
header .socialNetworkNavBar .socialNetworkNav {
	width: 40px;
	height: 30px;
	display: inline-block;
}
/* Main content sections */
.mainContent .section1 {
	text-align: center;
	margin-bottom: 10%;
}
.section1 .section1Title, .section2 .section1Title {
	text-align: center;
}
.section1 .sectionTitleRule, .section2 .sectionTitleRule {
	width: 100%;
}
.section1 .sectionTitleRule2, .section2 .sectionTitleRule2 {
	display: none;
}
.mainContent .section1 .section1Content {
	display: inline-block;
	text-align: left;
	font-family: sans-serif;
}
.mainContent .section2 {
	display: inline-block;
	text-align: center;
}
.section2 .section2Content {
	margin-top: 10%;
	text-align: justify;
	margin-bottom: 10%;
	width: 100%;
}
.section2 .sectionContent {
	margin-top: 10%;
	text-align: justify;
	margin-bottom: 10%;
}
.mainContent .externalResourcesNav {
	margin-bottom: 10px;
	padding-top: 5px;
}
.mainContent .externalResourcesNav .externalResources {
	width: 50%;
	height: 25px;
}

.sectionMisc .sectionContent, .sectionMisc .sectionContent p, .sectionMisc .sectionContent li {
	color: rgba(146,146,146,1.00);
}

/* Ensure #miscellaneous text color overrides conflicting rules */
#miscellaneous, #miscellaneous p, #miscellaneous li {
  color: rgba(146,146,146,1.00) !important;
}
.mainContent .externalResourcesNav .externalResources2 {
	width: 100px;
	height: 25px;
	padding-top: 5px;
	margin-bottom: 10px;
	margin-left: 20%;
	margin-right: 20%;
}
.mainContent .externalResourcesNav .dropdown {
	width: 100px;
	height: 25px;
	padding-top: 5px;
	margin-bottom: 10px;
	text-align: center;
/*
	margin-left: 20%;
	margin-right: 20%;
*/
}
.mainContent .externalResourcesNav .dropdown-content {
}
.mainContent .externalResourcesNav .dropdown:hover .dropdown-content {

}
	
/* Footer */
footer {
	display: block;
	text-align: center;
	font-family: sans-serif;
}
}

/* Media Query for Tablets */
@media only screen and (min-width : 481px) and (max-width : 1024px) {
/* Header */
header {
	width: 100%;
	float: none;
}
header .profileLogo .logoPlaceholder {
	display: inline-block;
	font-family: 'Montserrat', sans-serif;
}
header .profilePhoto {
	float: left;
	clear: both;
	margin-right: 3%;
	margin-top: 5%;
}
header .profileHeader {
	text-align: left;
	margin-top: 7%;
}
header .socialNetworkNavBar {
	margin-left: 259px;
}
header .socialNetworkNavBar .socialNetworkNav {
	width: 40px;
	height: 30px;
	display: inline-block;
}
/* Main content and sections */
.section1 .section1Title, .section2 .section1Title {
	text-align: center;
}
.section1 .sectionTitleRule, .section2 .sectionTitleRule {
	width: 100%;
}
.section1 .sectionTitleRule2, .section2 .sectionTitleRule2 {
	display: none;
}
.mainContent .section1 .section1Content {
	display: inline-block;
	margin: 0% 0% 0% 0%;
	font-family: sans-serif;
	margin-top: 5%;
	margin-bottom: 5%;
}
.mainContent .section2 {
	clear: both;
}


#miscellaneous, #miscellaneous p, #miscellaneous li, #miscellaneous .sectionContent {
  color: rgba(146,146,146,1.00);
}


.sectionMisc .sectionTitle {
	font-family: 'Montserrat', sans-serif;
	color: rgba(146,146,146,1.00);
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
}
.sectionMisc .sectionTitleRule {
	margin: 0 3% 0 0;
	float: left;
	clear: both;
}
.sectionMisc .sectionTitleRule2 {
	background-color: rgba(208,207,207,1.00);
	height: 1px;
	padding: 0px;
}
.section2 .section2Content {
	padding: 0px;
	font-family: sans-serif;
	padding-right: 10px;
    padding-left: 5px;
    padding-bottom: 0px;
	margin-top: 5%;
	margin-bottom: 0%;
	margin-left: 40%;
	width: 60%;
}
	
.section2 .sectionContent {
	padding: 0px;
	margin-left: 0%;
	font-family: sans-serif;
	margin-top: 5%;
	margin-bottom: 0%;
	width: 40%;
    float: left;
}
	
	
.mainContent .externalResourcesNav {
	margin-left: 0%;
	margin-top: 30px;
	margin-bottom: 00px;
	text-align: left;
	padding-top: 0px;
	padding-left: 5px;
/*	clear: both;*/
    margin-left: 40%;
}
.mainContent .externalResourcesNav .externalResources {
	width: 25%;
	height: 25px;
}
	
.mainContent .externalResourcesNav .externalResources2 {
	width: 100px;
	height: 25px;
	padding-top: 5px;
	margin-bottom: 10px;
}

.mainContent .externalResourcesNav .dropdown {
	width: 100px;
	height: 25px;
	padding-top: 5px;
	text-align: center;
}
.mainContent .externalResourcesNav .dropdown-content {

}
.mainContent .externalResourcesNav .dropdown:hover .dropdown-content {

}
/* Footer */
footer .footerDisclaimer {
	float: left;
	margin-left: 3%;
	font-family: sans-serif;
}
footer .footerNote {
	float: right;
	margin-right: 3%;
	font-family: sans-serif;
}
}

/* Desktops and laptops  */
@media only screen and (min-width:1025px) {
/* Header */
header .profileLogo .logoPlaceholder {
	float: left;
	margin-bottom: 50px;
}
header .profilePhoto {
	float: left;
	clear: both;
	margin-right: 3%;
	padding-top: 5%;
}
header .profileHeader {
	text-align: left;
	padding-top: 5%;
}
	
header .socialNetworkNavBar {
	margin-left: 259px;
}
header .socialNetworkNavBar .socialNetworkNav {
	width: 40px;
	height: 30px;
	display: inline-block;
}
/* Main content sections */
.section1 .sectionTitleRule, .section2 .sectionTitleRule {
	width: 37%;
}
.mainContent .section1 .section1Content {
	display: inline-block;
	margin-top: 0%;
	margin-right: 0%;
	margin-left: 30%;
	margin-bottom: 0%;
	font-family: sans-serif;
}
.mainContent .section2 {
    clear: both;
}
.section2 .section2Content {
    padding-top: 0px;
    padding-right: 10px;
    padding-left: 5px;
    padding-bottom: 0px;
    margin-left: 40%;
	width: 60%;
    font-family: sans-serif;
/*    float: left;*/
/*    clear:both;*/
/*    display: inline-block;*/
	}
	
.section2 .sectionContent {
    padding-top: 20px;
    padding-right: 5px;
    padding-left: 0px;
    padding-bottom: 10px;
/*    margin-right: 33%;*/
	width: 37%;
    float: left;
}
.mainContent .externalResourcesNav {
    margin-top: 30px;
    margin-bottom: 0px;
	padding-left: 5px;
    text-align: left;
    padding-top: 0px;
/*    clear: both;*/
    margin-left: 40%;
}
.mainContent .externalResourcesNav .externalResources {
	width: 25%;
	height: 35px;
}
	
.mainContent .externalResourcesNav .externalResources2 {
	width: 150px;
	height: 25px;
	padding-top: 5px;
	margin-bottom: 10px;

}
.mainContent .externalResourcesNav .dropdown {
	width: 100px;
	height: 25px;
	padding-top: 5px;
	text-align: center;
}
.mainContent .externalResourcesNav .dropdown-content {

}
.mainContent .externalResourcesNav .dropdown:hover .dropdown-content {

}
/* Footer */
footer .footerDisclaimer {
	float: left;
	margin-left: 3%;
	font-family: sans-serif;
}
footer .footerNote {
	float: right;
	margin-right: 3%;
	font-family: sans-serif;
}
}

.one {
/*
  width: 160px;
  height: 160px;
*/
  position: relative;
}

.two {
/*
  width: 160px;
  height: 160px;
*/
  position: absolute;
  transition: opacity .2s ease-in-out;
  -moz-transition: opacity .2s ease-in-out;
  -webkit-transition: opacity .2s ease-in-out;
}
/*
Section for theme toggle button
*/
/* Dark Theme Toggle Button */
.topBar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,250,0.95));
	border-bottom: 1px solid rgba(200,200,200,0.6);
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	z-index: 2000;
}

.topBar-inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 6px 14px; /* slimmer top bar */
	display: flex;
	align-items: center;
	gap: 14px;
}

.topBar .siteTitle {
	font-family: 'Montserrat', sans-serif;
	font-size: 26px;
	color: rgba(120,120,120,1);
}

.topBar .topNav {
	margin-left: 20px;
	display: flex;
	gap: 22px;
	align-items: center;
	flex: 1 1 auto;
}

.topBar .topNav a {
	color: rgba(110,110,110,1);
	text-decoration: none;
	font-size: 16px;
}

.topBar .topNav a:hover {
	color: rgba(80,80,80,1);
}

/* Smooth scroll behavior */
html {
	scroll-behavior: smooth;
}

/* Animated underline for top nav links */
.topBar .topNav a {
	position: relative;
	padding-bottom: 6px;
}
.topBar .topNav a::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	width: 0%;
	background: linear-gradient(90deg, #d39a6c, #b86f50);
	border-radius: 3px;
	transition: width 220ms cubic-bezier(.2,.9,.2,1);
}
.topBar .topNav a:hover::after,
.topBar .topNav a:focus::after {
	width: 100%;
}

/* Active styling when link target is in view (optional class to toggle via script) */
.topBar .topNav a.active::after {
		/* active should not show the hover underline; keep width 0 */
		width: 0%;
}

/* Active state visual styling (selected tab) */
.topBar .topNav a.active {
	color: rgba(60,60,60,1);
	background: linear-gradient(180deg, rgba(211,154,108,0.08), rgba(184,111,80,0.04));
	padding: 6px 8px;
	border-radius: 6px;
}
body.dark-theme .topBar .topNav a.active {
	background: linear-gradient(180deg, rgba(80,100,130,0.06), rgba(70,90,120,0.03));
}

body.dark-theme .topBar .topNav a::after {
	background: linear-gradient(90deg, #6b8fb8, #4f7aa0);
}

.theme-toggle-wrapper {
		position: relative;
		top: 0;
		right: 0;
		z-index: 2100;
		margin-left: auto;
}

.theme-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.theme-switch::before {
    content: '☀️';
    position: absolute;
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-switch.active {
    background: rgba(52, 73, 94, 0.8);
    border-color: rgba(52, 73, 94, 0.5);
}

.theme-switch.active::before {
    content: '🌙';
    left: calc(100% - 24px);
    background: #2c3e50;
}

/* Menu button and dropdown (elegant appearance) */
.menu-wrapper {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin-left: 12px;
}

.menu-button {
	background: rgba(255,255,255,0.92);
	border: 1px solid rgba(200,200,200,0.6);
	padding: 6px 8px;
	border-radius: 8px;
	display: inline-flex;
	flex-direction: column;
	gap: 3px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

.menu-button:focus { outline: none; box-shadow: 0 0 0 3px rgba(200,170,140,0.12); }

.menu-line {
	width: 18px;
	height: 2px;
	background: rgba(90,90,90,0.9);
	display: block;
	border-radius: 2px;
}

.menu-dropdown {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	min-width: 160px;
	background: linear-gradient(180deg, #fff, #fafafa);
	border: 1px solid rgba(200,200,200,0.7);
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.08);
	padding: 8px 8px;
	display: none;
	flex-direction: column;
	gap: 6px;
	z-index: 2200;
}

.menu-dropdown a {
	color: rgba(70,70,70,1);
	text-decoration: none;
	padding: 8px 10px;
	border-radius: 6px;
	font-size: 14px;
}

.menu-dropdown a:hover { background: rgba(240,240,240,0.9); }

body.dark-theme .menu-button { background: rgba(30,30,46,0.9); border-color: rgba(60,60,80,0.6); }
body.dark-theme .menu-line { background: rgba(200,200,200,0.9); }
body.dark-theme .menu-dropdown { background: linear-gradient(180deg, rgba(22,24,38,0.95), rgba(20,22,34,0.95)); border-color: rgba(60,60,80,0.6); }
body.dark-theme .menu-dropdown a { color: #d7dbe0 }

/* Back-to-top floating button (hidden until near page bottom) */
.back-to-top {
	position: fixed;
	right: 22px;
	bottom: 28px;
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,245,245,0.95));
	border: 1px solid rgba(200,200,200,0.6);
	box-shadow: 0 8px 24px rgba(14,20,30,0.12);
	color: rgba(60,60,60,1);
	text-decoration: none;
	opacity: 0;
	transform: translateY(12px) scale(0.98);
	transition: opacity 260ms ease, transform 260ms cubic-bezier(.2,.9,.2,1);
	z-index: 2300;
	pointer-events: none;
}
.back-to-top i { font-size: 18px; }
.back-to-top.visible {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

body.dark-theme .back-to-top {
	background: linear-gradient(180deg, rgba(30,30,46,0.95), rgba(22,24,38,0.95));
	border: 1px solid rgba(70,70,90,0.6);
	color: #e8eef6;
	box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

/* Slight hover feedback */
.back-to-top:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 36px rgba(14,20,30,0.16); }

/* Dark Theme Styles */
body.dark-theme {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    transition: all 0.4s ease;
}


body, header {
	padding-top: 36px; /*top gap */
}

body.dark-theme header {
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(10px);
}

body.dark-theme .profileHeader h1 {
    color: #ffffff;
}

body.dark-theme .profileHeader h3 {
    color: #b0b0b0;
}

body.dark-theme .profileHeader p {
    color: #b0b0b0;
}

body.dark-theme .profileHeader hr {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .sectionTitle {
    color: #ffffff;
}

body.dark-theme .sectionTitleRule,
body.dark-theme .sectionTitleRule2 {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-theme .sectionContentTitle {
    color: #ffffff;
}

body.dark-theme .sectionContentSubTitle {
    color: #b0b0b0;
}

body.dark-theme .sectionContentSubTitle b {
    color: #ffffff;
}

body.dark-theme .section2 {
    background: rgba(30, 30, 46, 0.5);
}

body.dark-theme .section2Content {
    background: transparent;
}

body.dark-theme .dropdown {
    background: rgba(52, 73, 94, 0.9);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .dropdown span {
    color: #ffffff;
}

/* Publication / action buttons (Abstract / Paper / Code) - dark theme */
body.dark-theme .externalResourcesNav .dropdown,
body.dark-theme .externalResourcesNav .externalResources2,
body.dark-theme .externalResourcesNav .externalResources {
	background-color: rgba(60,70,90,0.9);
	color: #c0c6cc; /* readable default */
	border-color: rgba(255,255,255,0.06);
}

body.dark-theme .externalResourcesNav .dropdown a,
body.dark-theme .externalResourcesNav .externalResources a {
	color: #c0c6cc; /* default text color for the buttons */
}

body.dark-theme .externalResourcesNav .dropdown a:hover,
body.dark-theme .externalResourcesNav .externalResources a:hover {
	color: #90caf9; /* keep bright hover */
}

body.dark-theme .dropdown-content {
	background: rgba(30, 30, 46, 0.98);
	/* slightly dim text for better contrast balance */
	color: #b0b0b0;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-theme .dropdown-content p {
	color: #b0b0b0;
}

body.dark-theme .footerDisclaimer,
body.dark-theme .footerNote {
    color: #b0b0b0;
}

body.dark-theme .footerDisclaimer a {
    color: #64b5f6;
}

body.dark-theme .footerDisclaimer a:hover {
    color: #90caf9;
}

body.dark-theme a {
    color: #64b5f6;
}

body.dark-theme a:hover {
    color: #90caf9;
}

body.dark-theme .socialNetworkNav img {
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

body.dark-theme .socialNetworkNav img:hover {
    filter: brightness(1.1);
}

body.dark-theme .mainContent {
    background: transparent;
}

body.dark-theme .externalResourcesNav {
    background: transparent;
}

body.dark-theme hr {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Structure: left column (photo + email + icons), right column (text) */
.profileSection {
	display: flex;
	align-items: flex-start;
	gap: 40px;
	margin-top: 8px; /* reduced so content sits closer to top bar */
}

.profileLeft {
	/* Stack photo -> email -> icons vertically and center them under the photo */
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Email just below photo */
.profileEmail p {
  font-size: 15px;
	color: rgba(146,146,146,1.00);
  margin: 10px 0 5px 0;
}

.profileEmail a {
	color: rgba(146,146,146,1.00);
  text-decoration: none;
}

.profileEmail a:hover {
  text-decoration: underline;
}

 
.profileLeft .socialNetworkNavBar,
.socialNetworkNavBar {
	 
	display: flex;
	flex-direction: row;
	gap: 10px;
	margin-top: 8px;
		justify-content: center;
		margin-left: 0 !important;
		width: 100%;
}

/* Ensure the photo doesn't float (overrides earlier float rules for tablet/desktop) */
.profileSection .profilePhoto {
	float: none !important;
	margin: 0 0 8px 0;
}

/* Make email and icons centered and full-width inside the left column */
.profileLeft .profileEmail {
	width: 100%;
	text-align: center;
}

.socialNetworkNavBar img {
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.socialNetworkNavBar img:hover {
  transform: scale(1.1);
}

/* Right content section */
.profileHeader {
  max-width: 600px;
}

.profileHeader h1 {
  margin-bottom: 5px;
}

.profileHeader h3 {
  margin-top: 0;
  font-weight: normal;
}

/* Research interests boxed panel */
.researchBox {
	background: linear-gradient(180deg, rgba(250,250,250,1), rgba(245,245,245,1));
	border-left: 4px solid rgba(200,150,120,0.25);
	padding: 18px 20px;
	margin-top: 14px;
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(30,30,30,0.06);
	transition: background 0.25s ease, box-shadow 0.25s ease;
}

.researchBox p {
	margin: 0;
	color: #4b4b4b;
	line-height: 1.6;
}

body.dark-theme .researchBox {
	background: linear-gradient(180deg, rgba(26,26,40,0.7), rgba(22,24,38,0.6));
	border-left: 4px solid rgba(200,150,120,0.12);
	box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

body.dark-theme .researchBox p {
	color: #cfd8dc;
}

/* Strong overrides to prevent email/icons overlapping the profile image */
.profileLeft {
	position: relative; /* create local stacking context */
}

.profileLeft .profilePhoto {
	float: none !important;
	position: relative !important;
	display: block !important;
	margin: 0 0 12px 0 !important; /* ensure space below the photo */
	width: 259px;
	height: auto;
	border-radius: 50%;
	overflow: visible;
	z-index: 1;
}

.profileLeft .profilePhoto img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 50%;
}

.profileLeft .profileEmail {
	position: relative !important;
	z-index: 2 !important;
	margin-top: 6px !important;
	background: transparent !important;
}

.profileLeft .socialNetworkNavBar {
	position: relative !important;
	z-index: 2 !important;
	margin-top: 8px !important;
	gap: 12px;
	justify-content: center;
}

/* Defensive: make sure no earlier rule absolutely positions children */
.profileLeft * {
	top: auto !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
}
