/* Dimitrios P. Tsomocos — matches Webflow draft design tokens */

:root {
  --oxford-blue: #002147;
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-muted: #333333;
  --color-border: #000000;
  --color-border-light: #eeeeee;
  --font-sans: "Open Sans", Arial, sans-serif;
  --container-max: 80rem;
  --content-max: 60rem;
  --padding-global: 5%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Keep header/full-width nav from shifting when a page does/does not scroll */
  scrollbar-gutter: stable;
}

@supports not (scrollbar-gutter: stable) {
  html {
    overflow-y: scroll;
  }
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--oxford-blue);
  text-decoration: underline;
}

a:hover {
  color: var(--oxford-blue);
}

/* Webflow link style */
.oxfordlink {
  color: var(--oxford-blue);
  text-decoration: underline;
  font-weight: inherit;
}

.oxfordlink:hover {
  text-decoration: underline;
}

.oxfordlink.belowlist {
  margin-top: 2rem;
  font-weight: 600;
  display: block;
}

/* Typography — Open Sans, bold headings (not serif) */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

.smallheading {
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 400;
  margin: 0;
}

.smallheading.sub {
  font-size: 0.75rem;
  font-weight: 400;
  margin: 0;
}

.bold-text {
  line-height: 1.4;
}

.heading {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  font-weight: 700;
}

/* In-page subheading (e.g. Education on About Me — plain h2 on Webflow) */
.content-area .subheading {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  font-weight: 700;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.35rem;
}

/* Layout utilities (Webflow) */
.page-wrapper {
  overflow: clip;
}

.main-wrapper {
  display: block;
}

/* Space between nav and page content (name lives in header on home) */
.main-wrapper > .section-block:first-child {
  padding-top: 2.5rem;
}

.main-wrapper > .section-block:first-child > .padding-global > .container-large > .padding-top.padding-small {
  padding-top: 0;
}

.padding-global {
  padding-left: var(--padding-global);
  padding-right: var(--padding-global);
}

.container-large {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

.max-width-large {
  width: 100%;
  max-width: var(--content-max);
  min-width: 0;
}

.align-center {
  margin-left: auto;
  margin-right: auto;
}

.padding-top.padding-small {
  padding-top: 1.5rem;
}

.padding-bottom.padding-small {
  padding-bottom: 1.5rem;
}

.padding-bottom.padding-medium {
  padding-bottom: 3rem;
}

.padding-top.padding-medium {
  padding-top: 3rem;
}

.padding-vertical.padding-xxlarge {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-block {
  padding-bottom: 3rem;
}

/* ——— Header (navbar1) ——— */
.navbar1_component {
  border-top: 7px solid var(--oxford-blue);
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  box-sizing: border-box;
}

.fullwidth {
  border-bottom: 1px solid var(--color-border-light);
  width: 100%;
  padding-left: var(--padding-global);
  padding-right: var(--padding-global);
}

.fullwidth:last-of-type {
  border-bottom: none;
}

.navbar1_container {
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  min-height: 4.5rem;
  display: flex;
  gap: 1rem;
}

.navbar1_container.sub {
  min-height: 3rem;
  padding-top: 0;
  padding-bottom: 0;
}

.navbar1_logo-link {
  padding: 0.75rem 0;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.navbar1_logo-link:hover {
  text-decoration: none;
}

.navbar1_menu {
  align-items: center;
  display: flex;
}

.navbar1_menu--top {
  margin-left: auto;
}

.navbar1_menu-links {
  color: var(--oxford-blue);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar1_menu-links > li {
  margin: 0;
  padding: 0;
}


/* Desktop dropdown (hover) */
.nav-dropdown {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-dropdown-trigger::after {
  content: " ▾";
  font-size: 0.7em;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 15rem;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger {
  border-bottom-color: var(--oxford-blue);
}

.nav-dropdown-link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--oxford-blue);
  text-decoration: none;
  white-space: nowrap;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}

.nav-dropdown-link:hover {
  background: var(--color-border-light);
  text-decoration: none;
  border-bottom-color: var(--oxford-blue);
}

.nav-dropdown-link[aria-current="page"] {
  color: var(--color-text);
  border-bottom-color: var(--oxford-blue);
  background: #f5f5f5;
}


.navbar1_link {
  vertical-align: bottom;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-right: 1rem;
  padding: 0.5rem 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--oxford-blue);
  text-decoration: none;
}

.navbar1_link:hover {
  border-bottom-color: var(--oxford-blue);
  text-decoration: none;
}

.navbar1_link[aria-current="page"] {
  color: var(--color-text);
  border-bottom-color: var(--oxford-blue);
}

.navbar1_link.higher {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.hideonmobile {
  display: block;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-icon1 {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.menu-icon1_line-top,
.menu-icon1_line-bottom,
.menu-icon1_line-middle {
  background-color: var(--color-text);
  width: 24px;
  height: 2px;
  display: block;
}

.menu-icon1_line-middle {
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-icon1_line-middle-inner {
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
}

.nav-mobile-panel {
  display: none;
}

.nav-mobile-panel.is-open {
  display: block;
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-bg);
}

.navbar1_menu--mobile {
  display: block;
  padding: 0.5rem var(--padding-global) 1.25rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.nav-mobile-menu {
  width: 100%;
}

.nav-mobile-primary {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-mobile-primary > li {
  margin: 0;
  padding: 0;
}

.nav-mobile-link,
.nav-mobile-sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--oxford-blue);
  text-decoration: none;
  border: none;
  border-bottom: 1px solid var(--color-border-light);
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.nav-mobile-link:hover,
.nav-mobile-sublink:hover {
  color: var(--oxford-blue);
  text-decoration: none;
}

.nav-mobile-link[aria-current="page"],
.nav-mobile-sublink[aria-current="page"] {
  color: var(--color-text);
  border-bottom-color: var(--oxford-blue);
}

.nav-mobile-expand::after {
  content: "▾";
  font-size: 0.75rem;
  font-weight: 400;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.nav-mobile-expand[aria-expanded="true"]::after {
  content: "▴";
}

.nav-mobile-group .nav-mobile-expand {
  border-bottom: none;
}

.nav-mobile-sublist {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.5rem;
  background: var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.nav-mobile-sublist[hidden] {
  display: none;
}

.nav-mobile-sublist .nav-mobile-sublink {
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-mobile-sublist li:last-child .nav-mobile-sublink {
  border-bottom: none;
}

.nav-mobile-affiliations {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-light);
}

.nav-mobile-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.nav-mobile-link--secondary {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0;
}

/* Page content */
.page-hero {
  padding: 2rem 0 1.5rem;
}

.page-hero .heading {
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--color-muted);
  max-width: var(--content-max);
}

/* Home — bio with floated image */
.home-bio {
  margin-bottom: 0;
  padding-top: 0;
}

.home-bio .heading {
  font-size: 1.75rem;
}

.home-bio h2:not(.heading) {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.home-bio h3 {
  font-size: 1.125rem;
  margin-top: 1.25rem;
}

.home-photo-wrap {
  float: left;
  width: 32%;
  max-width: 260px;
  margin: 0 1.5rem 1rem 0;
}

.home-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.home-bio::after {
  content: "";
  display: table;
  clear: both;
}

.expertise-list {
  margin-bottom: 1rem;
}

/* Publication list — Webflow inline style */
.pub-list .div-block {
  line-height: 1.65;
  margin-bottom: 0.75rem;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.pub-list .inline {
  line-height: inherit;
  display: inline;
}

.pub-list .inline.title {
  color: var(--oxford-blue);
  font-weight: 600;
  text-decoration: underline;
}

.pub-list .inline.title:hover {
  text-decoration: underline;
}

.pub-list .inline.meta {
  color: var(--color-text);
  font-weight: 400;
  text-decoration: none;
}

.pub-list em.journal {
  font-style: italic;
}

.pub-list .inline.space-after {
  padding-right: 3px;
}

/* Legacy entry list (engagement pages) */
.entry-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

.entry-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border-light);
  line-height: 1.6;
}

.entry-item:first-child {
  padding-top: 0;
}

.entry-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--oxford-blue);
}

.entry-title a {
  color: var(--oxford-blue);
  font-weight: 600;
}

.entry-meta {
  font-size: 1rem;
  color: var(--color-text);
}

/* Conferences */
.year-block {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.year-block h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--oxford-blue);
  border-bottom: 2px solid var(--oxford-blue);
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
}

/* Students grid (matches Webflow collection-list-2 layout) */
.students-intro {
  margin-bottom: 0;
}

.students-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .students-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .students-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.student-card {
  margin-bottom: 0.5rem;
}

.student-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.student-card-link:hover {
  text-decoration: none;
}

.student-card-link:hover .student-card-name {
  color: var(--oxford-blue);
  text-decoration: underline;
}

.student-card-image {
  aspect-ratio: 1;
  object-fit: cover;
  width: 150px;
  max-width: 100%;
  height: auto;
  margin-bottom: 0.5rem;
  display: block;
}

.student-card-name {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

.student-card--no-link .student-card-name {
  color: var(--color-text);
}

/* Media page */
.media-intro {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

.media-app {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.media-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.media-filter {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--color-border-light);
  background: var(--color-bg);
  color: var(--oxford-blue);
  cursor: pointer;
}

.media-filter:hover,
.media-filter.is-active {
  background: var(--oxford-blue);
  color: #fff;
  border-color: var(--oxford-blue);
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  transition: opacity 0.25s ease;
}

@media (min-width: 768px) {
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.media-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--color-border-light);
  border-top: 4px solid var(--oxford-blue);
  overflow: hidden;
  background: var(--color-bg);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.media-card.is-filtered-out,
.media-external.is-filtered-out,
.media-external-item.is-filtered-out {
  display: none !important;
}

.media-grid.is-filtering .media-card:not(.is-filtered-out) {
  animation: media-card-in 0.4s ease both;
}

@keyframes media-card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.media-card--en {
  border-top-color: var(--oxford-blue);
}

.media-card--de {
  border-top-color: #8b6914;
}

.media-card--el {
  border-top-color: #0b6e4f;
}

.media-card-frame {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  background: #111;
  flex-shrink: 0;
}

.media-card-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-card-body {
  padding: 0.75rem 1rem 1rem;
}

.media-card-lang {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
}

.media-card-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
}

.media-card-title a {
  color: inherit;
  text-decoration: none;
}

.media-card-title a:hover {
  color: var(--oxford-blue);
  text-decoration: underline;
}

.media-external:not(.is-filtered-out) {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-light);
  transition: opacity 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .media-grid.is-filtering .media-card:not(.is-filtered-out) {
    animation: none;
  }

  .media-card {
    transition: none;
  }
}

.media-external-heading {
  font-size: 1.125rem;
  margin: 0 0 1rem;
}

.media-external-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: var(--content-max);
}

.media-external-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border-light);
  border-left: 4px solid var(--oxford-blue);
  padding-left: 0.75rem;
  margin-bottom: 0.5rem;
}

.media-external-item--de {
  border-left-color: #8b6914;
}

.media-external-item--el {
  border-left-color: #0b6e4f;
}

.media-external-item a {
  font-weight: 600;
}

.media-external-meta {
  display: block;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

/* Section hub grids (Research / Engagement landing pages) */
.hub-grid,
.engagement-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: var(--content-max);
  margin: 0 auto;
}

.hub-grid {
  max-width: var(--content-max);
  margin: 0 auto;
}

.hub-card,
.engagement-card {
  display: block;
  padding: 1.5rem;
  border: 1px solid var(--color-border-light);
  color: inherit;
  text-decoration: none;
}

.hub-card:hover,
.engagement-card:hover {
  border-color: var(--oxford-blue);
  text-decoration: none;
}

.hub-card h3,
.engagement-card h3 {
  margin: 0 0 0.5rem;
  color: var(--oxford-blue);
  font-size: 1.125rem;
}

.engagement-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
  text-decoration: none;
}

/* Contact */
.contact-section p {
  line-height: 2;
}

/* Footer */
.line-divider {
  background-color: var(--color-text);
  width: 100%;
  height: 1px;
}

.footer1_bottom-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer1_credit-text {
  font-size: 0.875rem;
  color: var(--color-text);
}

.disclaimer {
  font-size: 0.875rem;
  font-style: italic;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-light);
  color: var(--color-muted);
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

.loading {
  color: var(--color-muted);
  font-style: italic;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive */
@media (max-width: 991px) {
  .hideonmobile {
    display: none !important;
  }

  .nav-toggle {
    display: block;
  }

  .navbar1_menu--top {
    display: none;
  }

  .nav-dropdown {
    display: none;
  }

  .navbar1_container {
    min-height: 4rem;
  }

  .smallheading {
    font-size: 1.3rem;
  }
}

@media (max-width: 767px) {
  .home-photo-wrap {
    float: none;
    width: auto;
    max-width: 220px;
    margin: 0 0 1.25rem;
  }
}

@media (max-width: 479px) {
  .navbar1_link {
    font-size: 1.125rem;
  }
}
