:root {
    --font-sans: 'Open Sans', Arial, sans-serif;
    --font-serif: 'Palatino', sans-serif;
}



body {
  font-family: "Palatino Linotype", Palatino, serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: #0a0a10;
  color: #e8e8e8;
}

h1, h2, h3, h4 {
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 600;
  color: #f5f5f5;
}

h1 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
}

h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
}

h4 {
  font-size: 1.2rem;
  margin-top: 2rem;
}


.site-header {
  margin-bottom: 2rem;
}


/* Image container */
.header-image {
  position: relative;
  height: 220px;              /* academic banner height */
  background-image: url("../assets/el-rio-de-luz.jpg");
  background-size: cover;
  background-position: center 60%;
}

/* Dark overlay for text contrast */
.header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #f5f5f5;
  text-align: center;
}

/* Title styling */
.header-overlay h1 {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.header-subtitle {
  font-size: 1rem;
  opacity: 0.9;
}

.art-credit {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.5rem;
  text-align: left;
}


.page-header {
  margin: 3rem 0 2.5rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.page-intro {
  color: #b0b0b0;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}


footer {
    padding: 20px;
    background-color: #121212;
    color: #aaa;
    border-top: 1px solid #2a2a2a;
}

article {
  margin: 3rem 0;
}

.pub-title {
  font-weight: 600;
  color: #ffffff;
}

.pub-list {
  list-style: none;
  padding-left: 0;
}

.pub-list em {
  color: #b0b0b0;
}

.pub-list a {
  font-size: 0.9em;
  margin-left: 0.4em;
}

.pub-list li {
  margin-bottom: 1.5rem;
}

nav {
text-align: left;
}

.navbar {
  background-color: #121212 !important;
  border-bottom: 1px solid #5a5a5a;
}

.nav-link {
  font-weight: 500;
}

.nav-item.active .nav-link {
  border-bottom: 2px solid #ddd;
}

a {
  color: #8ab4f8;
}

a:hover {
  color: #a9c7ff;
}

strong {
  font-weight: bold;
}

.ref {
  padding-top: 5%;
}

.gif-figure {
    text-align: center;
    margin: 20px 0;
}

.gif-figure figcaption {
    font-size: 0.85em;        /* smaller than body text */
    color: #e8e8e8;              /* light grey */
    margin-top: 4px;          /* small gap from image */
}

.gif-figure figcaption a {
    color: inherit;           /* match caption text color */
    text-decoration: none;    /* remove underline */
}

.gif-figure figcaption a:hover {
    text-decoration: underline;
}

/* scrollbox properties */
#scrollbox {
    overflow-y: scroll;
    height:200px;
    width:100%;
}

::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 7px;
}

::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(0, 0, 0, .5);
  box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
  padding-top: 7%;
}

.t-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding-top: 2%;
}

.space {
  padding-top: 3%;
}


.news {
  background-color: #161617;
  border-bottom: 1px solid #2a2a2a;
  border-left: 4px solid #ccc;
}

.col2 {
  padding-right: 3%;
  padding-left: 3%;
}

.info {
  text-align: justify;
}

.sidebar_info {
    display: flex;           /* icon + text in one line */
    align-items: center;     /* vertical alignment */
    gap: 8px;                /* space between icon and text */
    margin: 4px 0;           /* small spacing between each row */
}

.sidebar_info i {
    width: 18px;             /* force fixed width for icon box */
    text-align: center;      /* center icon inside that width */
    flex-shrink: 0;          /* icon won't get squeezed */
}

infobox h1 {
  padding:0%;
}

.title {
  padding-top:3%;
}


month {
  font-style: italic;
}

.paper-title {
  font-style: italic;
}

.container {
  max-width: 900px;
}

#teaching {
  margin-top: 5%;
  margin-left: 5%;
  margin-right: 5%;
}

.teaching-entry {
  margin-bottom: 3%;
  padding-bottom: 2%;
  margin-left: 5%;
  margin-left: 5%;
  background-color: #0a0a10;
  border-bottom: 1px solid #2a2a2a;
}

.teaching-entry h4 {
  margin-bottom: 0.5em;
}

.teaching-entry .info {
  text-align: justify;
}



.main-content {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.project {
  margin: 4rem 0;
}

.project h2 {
  margin-bottom: 0.3rem;
}

.project-subtitle {
  color: #b0b0b0;
  margin-bottom: 1rem;
}

.project-ref {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 1.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
}

.gallery figure {
  background-color: #161617;
  padding: 12px;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.gallery figure:hover {
  transform: translateY(-3px);
}

.gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
}

.gallery figcaption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #aaa;
}

@media (min-width: 1200px) {
  .container {
    max-width: 900px;
  }
}