:root {
  --color-teal-dark: #2B5C63;   /* darker teal for header – stronger contrast */
  --color-teal-light: #7FC1C5;  /* lighter teal for tabs – still in same hue family */
  --color-beige: #F4E6D2;       /* unchanged pale yellow / soft gold accent */
  --color-coral: #E06C4B;       /* unchanged accent for hover */
  --color-accent: #F4E6D2;      /* pale yellow */
  --color-bg: #FAF6F1;          /* page background */
  --color-text: #000000;        /* main text color */
  --color-border:#BFD6D2;       /* border color */
}

body {
   background-color: var(--color-border); /* pale gray background for page border */
  color: var(--color-text);
  font-family: Helvetica, Arial, Verdana, sans-serif;
  margin: 0; /* let content wrapper handle centering */
  padding: 0;
  margin-left: 0;
}

body, html {
    background-color: #D8DDE0; /* gray page frame */
    margin: 0;
  padding: 0;
}

.pageWrapper {
    background-color: #FFFFFF; /* white content area */
    margin: 20px auto;
    padding: 20px;
    border-radius: 12px;
}

#Tabs ul#MainTabs a.current:link,
#Tabs ul#MainTabs a.current:visited {
    background-color: #E5E5E5;  /* match the gray page background */
    border-bottom: 1px solid #E5E5E5;
    color: #222222;
    font-weight: bold;
    text-decoration: none;
}

td { 
	font-family: "Lucinda Grande" , verdana, arial, helvetica, serif; 
}

a {
	padding: 1px;
	text-decoration: underline;
}

a:link {
	color: 	#2554C7;
}

a:visited {
	color: 	#571B7e;
}

a:hover {
	/*background-color: #3300CC;*/
	color: var(--color-coral);
	text-decoration: none;
}

a.image:link,a.image:visited,a.image:hover {
	background: transparent none repeat scroll 0%;
	padding: 0pt;
}

/**/
ul li {
	list-style-type: square;
}

li {
	padding: 3px 0pt;
}

h1 {
	border-bottom: 0pt none;
	color: #333333;
	/*font-family: "Lucida Grande", arial, sans-serif;*/
	font-size: 18px;
	font-weight: bold;
	margin: 0pt;
	padding: 0pt;
}

h1, h2, h3 {
  border-bottom: 2px solid var(--color-beige);
}
h1 {
  color: var(--color-teal-dark);
}
h2 {
  color: var(--color-teal-light);
}

h2 {
	color: #333333;
	/*font-family: "Lucida Grande", arial, sans-serif;*/
	font-size: 16px; //
	margin: 20px 0pt 5px 0px;
	padding: 0pt;
}

h2.subheader {
	border-bottom: 1px solid #000000;
	color: #000000;
	font-size: 12px;
	margin: 15px 0pt 5px;
	padding: 0pt 0pt 2px;
}

h3 {
	color: #666666;
	font-family: "Lucida Grande", arial, sans-serif;
	font-size: 14px;
	margin: 20px 0pt 0pt;
	padding: 0pt;
}

#Header {
	background: var(--color-teal-dark) none repeat scroll 0%;
	margin: 0pt;
	padding: 1px 0pt 0pt;
	position: relative;
	text-align: left;
	font-family: "Sylfaen";
}

#Header h1 {
	color: #FFFFFF;
	font-size: 22px;
	font-weight: bold;
	margin: 7px 0pt 0pt 30px;
	padding: 0pt 0pt 0px;
	text-align: left;
	font-family: Helvetica, Arial, Verdana, sans-serif; /* ADD THIS LINE */

}

#Header h2 {
	/*font-family: verdana;*/
	color: #FFFFFF;
	font-size: 18px;
	font-weight: normal;
	margin: 7px 0pt 0pt;
	padding: 0pt 30px 0pt 32px;
	text-align: left;
	font-style:italic;
}

#Header h3 {
	/*font-family: verdana;*/
	font-size: 14px;
	font-weight: normal;
	margin: 7px 0pt 0pt;
	padding: 0pt 30px 0pt 32px;
	text-align: left;
}

#Header h3.global {
	float: right;
	position: relative;
	text-align: right;
	width: 325px;
}

#Header h3 span.pipe {
	opacity: 0.6;
}

#Header h3,#Header h3 a:link,#Header h3 a:visited {
	color: #fff;
}

#Header h3 a:hover {
	color: #fff;
	background-color: #1D64AD;
}

#Header h3 a.current:link,#Header h3 a.current:visited {
	color: #fc0;
}

#Header h3 a.current:hover {
	color: #fc0;
	background-color: #036;
}

#Tabs {
	height: 26px;
	margin: 0pt 0pt 0pt 30px;
	padding: 0pt;
}

#Tabs ul {
	margin: 0pt;
	padding: 0pt;
}

#Tabs li {
	border: medium none;
	display: inline;
	list-style-image: none;
	list-style-position: outside;
	list-style-type: none;
	margin: 0pt;
	padding: 0pt;
}

#Tabs ul#MainTabs {
	
}

div#Tabs a:link,div#Tabs a:visited {
	text-decoration: none;
}

#Tabs a:hover {
	background: #333333 none repeat scroll 0%;
	color: #000000;
}

#Tabs a {
  border-bottom: 1px solid var(--color-teal-dark);
  transition: background-color 0.2s, border-color 0.2s;
}

#Tabs ul#MainTabs a:link,#Tabs ul#MainTabs a:visited {
	float: left;
	font-size: 12px;
	font-family: "Lucinda Grande", verdana, arial, sans-serif;
	font-weight: normal;
	margin: 0pt;
	padding: 4px 8px 6px;
}


#Tabs a:link, #Tabs a:visited {
  background-color: var(--color-teal-light);
  color: #000000;
  border: 1px solid var(--color-teal-dark);
  border-bottom: 1px solid var(--color-teal-light);
}

#Tabs ul#MainTabs a:link .current {
	color: #0A0A0A;
}

#Tabs a:hover {
	color: #fff;
	background-color: var(--color-coral);
  	color: #FFFFFF;
}


/*div.content {
	background: var(color-bg); /* url(../images/right-drop.gif) repeat-y scroll right */
		center;
	padding-right: 8px;
	/*position: relative;*/
	text-align: left;
	min-width: 750px;
	/*font-size: calc(10px + 0.390625vw);*/
/*
	margin: 20px auto;   /* adds gray space around it */
  /*padding: 20px;
  min-width: 750px;
  text-align: left;
  box-sizing: border-box;
  border-radius: 12px; /* optional 
}*/ 

div.shadow {
	background: transparent url(../images/bottom-drop.gif) no-repeat scroll
		right top;
	font-size: 8px;
	height: 8px;
}

div.footer {
	font-size: 10px;
	height: 20px;
	vertical-align: text-bottom;
}

div.restriction {
	float: right;
	padding-right: 30px;
	color: #FAFAFA;
	font: 10pt verdana
}

div.pageHeader {
	background-color: var(--color-accent);
	padding: 12px 20px 12px 20px
}

/* --- Page Contents aligned with header --- */
div.pageContents {
    width: 100%;           /* stretch to full width of container */
    max-width: none;       /* remove restrictive max-width */
    margin: 0;             /* no extra centering margin */
    padding: 12px 20px 12px 20px; /* match header’s vertical & horizontal padding */
    background-color: white;
    box-sizing: border-box;
    border-radius: 0;      /* same as header (no rounding) */
}

/* Optional: If you want a centered max width like pageWrapper, wrap header + contents */
.pageWrapper {
    max-width: 1000px;     /* or whatever width fits your design */
    margin: 0 auto;        /* center on page */
    background-color: white;
    border-radius: 8px;    /* optional rounding */
    overflow: hidden;
}

div.pagePopupHeader {
	background-color: #FFFFCC;
	padding: 6px 20px 6px 20px
}

div.pagePopupHeader h1 {
	font-size: 15px;
	    padding-bottom: 2cm;
}

div.subHeading {
	font-size: 14px;
	font-weight: bold;
	color: #333333;
}

div.messageDiv {
	cursor: pointer;
	padding: 5px 10px 5px 30px;
	margin-bottom: 5px;
	color: #333333;
	font: bold 10pt Arial;
	text-align: center;
	border: 1px solid var(--color-beige);
	background: #E2F9E3;
	
}

div.errorDiv {
	cursor: pointer;
	display: none;
	padding: 5px 10px 5px 30px;
	margin-bottom: 5px;
	color: #333333;
	font: bold 10pt Arial;
	text-align: left;
	border: 1px solid #var(--color-beige);
	background: #FFCCBB url(../images/icons/errorcross.gif) no-repeat scroll
		left center;
}

div.searchPane {
	border: var(--color-beige) 1px solid;
	padding: 5px;
	background-color: #EEEEEE;
}

table.searchTable {
	
}

table.searchTable tr td.fieldLabel {
	font: bold 10pt Arial;
	text-align: left;
	color: #484848;
}

table.searchTable tr td {
	padding: 5px 7px;
}
.navlist
{
margin: 10px 0px;
padding: 0 0 20px 10px;
border-bottom: 1px solid #222254;
}

.navlist ul, .navlist li
{
margin: 0;
padding: 0;
display: inline;
list-style-type: none;
font-size: 12px;
}

.navlist a:link, .navlist a:visited
{
float: left;
line-height: 14px;
font-weight: bold;
margin: 0 10px 4px 10px;
text-decoration: none;
color: #999;
}

.navlist a:link.current, .navlist a:visited.current, .navlist a:hover
{
border-bottom: 4px solid #222254;
padding-bottom: 2px;
background: transparent;
color: #222254;
}

.navlist a:hover { 
	color:  #8181A1;
	border-bottom: 4px solid   #8181A1;
}

.selectionBox{
	height:300px;
	overflow:auto;
	background-color:#EFEFEF;
	padding:5px;
	border:1px solid #C0C0C0;
}
ul.noBorder{
	padding-left: 0px;
	margin-left: 0px;
	padding-left:6px;
	padding-top:0px;
	padding-bottom:2px;
	margin-top:0px;
	margin-bottom:0px;
}

ul.noBorder li{
	padding: 0px;
	margin-left: 0px;
	padding-left: 0px;
	list-style-type:none;
	list-style-image:none;
}

/* --- Base --- 
/* --- Base --- */
body, .publications {
  font-family: Helvetica, Arial, Verdana, sans-serif;
  color: #222;
  line-height: 1.4;  /* slightly tighter line spacing */
}

/* --- Section headers --- */
.pub-section-title {
  display: block;       /* block-level */
  flex-basis: 100%;     /* if parent is flex, this makes it span full width */
  font-weight: 700;
  font-size: 1.4em;
  margin-top: 1em;
  margin-bottom: 0.3em;
  padding: 0.4em 0.8em;
  border-radius: 0.4em;
  box-sizing: border-box;
}





/* CS Education section */
.pub-section-title.csed {
  background-color: #fbeee8;
  color: #a2543a;
}

/* Theory section */
.pub-section-title.theory {
  background-color: #D8DDE0;
  color: #2d3c66;
}

.pub-section-title.workshops {
  background-color: #E6F2EA;
  color: #2A6B4F;
}

/* --- Individual publication entries --- */
.pub-item {
    display: flex;
    flex-wrap: wrap;        /* allows wrapping if needed */
    align-items: baseline;  /* aligns title and meta nicely */
    margin: 0.5em 0;
    padding: 0.3em 0;
    border-bottom: 1px solid #ddd;
}

.pub-title {
    font-weight: bold;
    font-size: .95em;
    margin: 0;
    margin-right: 0.5em;    /* space between title and meta */
    flex: 0 1 auto;         /* allow title to shrink/wrap naturally */
}

.pub-title a {
    color: #2554C7;
    text-decoration: underline;
    cursor: pointer;
}

.pub-title a:hover {
    color: #a2543a;
    text-decoration: underline;
}

.pub-meta {
    font-size: .95em;
    color: #555;
    margin: 0;
    flex: 1 1 auto;         /* meta takes remaining space and wraps */
}

.pub-title {
    font-weight: normal;       /* remove bold from container */
    font-size: 0.95em;
    margin: 0;
    margin-right: 0.5em;      /* spacing between title and meta */
    flex: 0 1 auto;
}


.pub-title h3 {
    display: inline;
    margin: 0;
    font-weight: 500;      /* subtle medium */
    color: #222;           /* darker than meta, soft emphasis */
    font-size: 0.95em;
}

.responsive-image {
  max-width: 100%; /* never exceed container width */
  height: auto;    /* maintain aspect ratio */
  display: block;  /* removes small inline spacing issues */
 margin: 0 auto;      /* center horizontally */

}
.pageWrapper {
  background-color: #FFFFFF;  /* white content area */
  margin: 10px auto;          /* smaller gray border vertically */
  padding: 10px;              /* smaller internal padding if desired */
  max-width: 1000px;          /* keep a nice width */
  border-radius: 8px;         /* optional smaller rounding */
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, auto); /* 2 columns, width fits card */
  gap: 1.5rem;
  justify-content: center; /* center the entire grid horizontally */
  justify-items: center;   /* center each card in its column */
  margin: 0 auto;
}

/* Project Cards */
.project-card {
  display: flex;
  flex-direction: column;
  align-items: center;      /* centers image and text */
  width: 100%;
  max-width: 320px;         /* card width limit */
  border: 1px solid var(--color-beige);
  background: var(--color-bg);
  border: 1px solid #ddd;
  border-radius: 1rem;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Images inside cards */
.project-card img {
  width: 100%;              /* fill card width */
  height: auto;             /* maintain aspect ratio */
  display: block;
  object-fit: contain;      /* no cropping */
}

/* Page intro h2 */
.pageContents h2 {
  font-size: 16px;       /* matches accessibility hierarchy */
  font-weight: normal;    /* consistent with other h2s */
  margin: 20px 0 5px;
}

/* Project card h2 */
.project-card h2 {
  font-size: 16px;        /* same as page intro h2 */
  font-weight: normal;     /* match visual style */
  margin: 0.5rem 0;       /* keep some spacing inside cards */
  text-align: center;     /* center inside the button */
}

/* Hover / Focus effects */
.project-card:hover,
.project-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  outline: 2px solid #007acc;
}

.project-card:hover,
.project-card:focus {
  box-shadow: 0 4px 12px rgba(58,124,132,0.2); /* soft teal glow */
  outline: 2px solid var(--color-teal-light);
}

/* Responsive: stack cards on small screens */
@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr; /* single column */
  }
  .project-card {
    max-width: 100%;          /* fill available width */
  }
}

.project-title {
  display: block;          /* make it block-level like h2 */
  font-size: 16px;         /* same as .project-card h2 */
  font-weight: normal;     /* match visual style */
  color: #333333;          /* same color as h2 */
  text-align: center;      /* center inside the card */
  margin: 0.5rem 0;        /* spacing above and below */
  line-height: 1.2;        /* optional: tight line spacing like headings */
}

/* --- Modal Styling --- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #ffffff;
  padding: 2rem 2.5rem;
  border-radius: 1rem;
  width: min(90%, 750px);  /* slightly wider for comfort */
 width: min(90%, 750px);
  /* remove height restriction */
  max-height: none;
  height: auto;

  /* remove forced scroll */
  overflow-y: visible;
  position: relative;
  line-height: 1.6;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* improve readability */
.modal-content h2 {
  font-size: 1.4rem;
  color: var(--color-teal-dark);
  margin-bottom: 0.75rem;
}

.modal-content h3 {
  font-size: 1.1rem;
  color: var(--color-teal-dark);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.25rem;
  margin-top: 1.5rem;
}


.modal-content p {
  margin: 0.75rem 0;
  font-size: 1rem;
}

.modal .close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-teal-dark);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal .close:hover,
.modal .close:focus {
  color: var(--color-coral);
  outline: none;
}


.modal[hidden] {
  display: none;
}

/* Responsive: on very small screens, keep modal full width */
@media (max-width: 600px) {
  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }
}


/* Remove default bullets and spacing */
ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* Alternate row backgrounds */
ul li:nth-child(odd) {
  background-color: #f9f9f9;
}

ul li:nth-child(even) {
  background-color: #ffffff;
}

/* Hover effect: lift and color change */
ul li:hover {
  background-color: #FFECE4;  /* very light coral highlight */
  transform: translateY(-2px);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Style links inside list items */
ul li a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

ul li a:hover {
  color: #C14B36; /* coral accent color */
}

.modal-content ul li {
  padding: 0.75rem 0.5rem;
  border-radius: 0.25rem;
  line-height: 1.5;
}

.modal-content a {
  color: var(--color-teal-dark);
  text-decoration: underline;
  font-weight: 500;
}

.modal-content a:hover {
  color: var(--color-coral);
  text-decoration: none;
}

.modal-content {
  border-top: 6px solid var(--color-teal-dark);
}

@media (max-height: 700px) {
  .modal-content {
    max-height: 90vh;
    overflow-y: auto;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

