:root {
  --blue-dark: #003a73;
  --blue-mid: #0b4c97;
  --red-main: #8b1e1e;
  --bg-page: #f3f4f6;
  --bg-card: #ffffff;
  --text-main: #1f2933;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.12);
  --radius-card: 14px;
}

/* ------------------------------
   Global
------------------------------ */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
}

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

a {
  color: var(--blue-mid);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  color: var(--blue-dark);
  margin-top: 0;
}

/* ------------------------------
   Accessibility
------------------------------ */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--blue-dark);
  color: #fff;
  z-index: 2000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ------------------------------
   HEADER
------------------------------ */

.site-header {
  color: #fff;
  background-color: var(--blue-dark);
  border-bottom: 4px solid var(--red-main);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

/* Banner background */
.header-banner {
  background-color: #013d83;
  background-image: url("../img/header-banner.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: contain;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 16px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.header-text {
  max-width: 720px;
}

/* Decorative line with gradient */
.header-divider {
  height: 4px;
  border: none;
  width: clamp(220px, 40vw, 520px);
  margin: 0 0 0.75rem;
  background: linear-gradient(to right, #ffffff, rgba(255,255,255,0));
  opacity: 0.95;
}

/* 2Dtronics and title — unified sizes */
.header-subtitle,
.header-title {
  font-size: 2.2rem;
  margin: 0 0 0.4rem;
  font-weight: 600;
  color: white;
}

/* Affiliation lines */
.header-university {
  margin: 0;
  font-size: 0.98rem;
  opacity: 0.92;
}

/* ------------------------------
   NAVIGATION
------------------------------ */

/* ------------------------------
   NAVIGATION
------------------------------ */

.nav-wrapper {
  background: var(--red-main);
  border-top: 2px solid #ffffff; /* thin white line between blue header and red menu */
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  margin-top: 4px;
  z-index: 1000;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.9);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  opacity: 0;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(15, 23, 42, 0.22);
  transform: translateY(-1px);
  outline: none;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-link.active {
  background: rgba(15, 23, 42, 0.32);
  font-weight: 600;
}

/* Language switcher – pill-style toggle */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.45);
  background: rgba(248, 250, 252, 0.08);
  backdrop-filter: blur(4px);
  font-size: 0.85rem;
  color: #fee2e2;
}

.lang-switcher > span {
  display: none; /* hide the "|" because we have the pill now */
}

.lang-btn {
  min-width: 40px;
  border: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  background: transparent;
  color: inherit;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.lang-btn.is-active {
  background: #f9fafb;
  color: var(--red-main);
  font-weight: 600;
  box-shadow:
    0 0 0 1px rgba(248, 250, 252, 0.9),
    0 6px 16px rgba(15, 23, 42, 0.35);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin-bottom: 4px;
  background: #fee2e2;
  border-radius: 999px;
}


/* ------------------------------
   LAYOUT
------------------------------ */

.page-wrapper {
  max-width: 1200px;
  margin: 26px auto 40px;
  padding: 0 16px;
}

.page-main {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1.2fr);
  gap: 24px;
}


.page-main-wide {
  display: block;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1.2fr);
  gap: 24px;
}


.content-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  box-shadow: var(--shadow-soft);
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-box {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}

.sidebar-box h3 {
  margin-bottom: 0.75rem;
  font-size: 1.02rem;
}




.sidebar-links {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.sidebar-links li + li {
  margin-top: 0.35rem;
}

.sidebar-links a {
  text-decoration: none;
  color: var(--blue-dark);
}

.sidebar-links a:hover {
  text-decoration: underline;
}

/* ------------------------------
   HOME LAYOUT & COMPONENTS
------------------------------ */

/* leader + intro */
.home-intro {
  margin-top: 1.3rem;
}

.home-leader {
  display: flex;
  gap: 20px;
  margin-top: 1.3rem;
  padding: 18px 20px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.08),
    rgba(248, 250, 252, 1)
  );
}

.home-leader-photo {
  flex: 0 0 auto;
}

.home-leader-photo img {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.home-leader-text h3 {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
}

.home-leader-text p {
  margin: 0.25rem 0 0.5rem;
}

/* grid for news + publications */
.home-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 5px;
}

.home-section {
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  padding: 18px 6px 14px;
  background: #f9fafb;
}

.home-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.section-link {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--blue-mid);
}

.section-link:hover {
  text-decoration: underline;
}

/* publications list */
.pub-list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
}

.pub-item {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.pub-item:last-child {
  border-bottom: none;
}

.pub-title {
  margin: 0 0 0.15rem;
  font-size: 0.96rem;
}

.pub-title a {
  color: var(--blue-dark);
  text-decoration: none;
}

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

.pub-meta {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.pub-separator {
  margin: 0 0.25rem;
}

.pub-list--compact .pub-item {
  padding: 0.5rem 0;
}

/* upcoming seminars / conferences box */
.upcoming-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
}

.upcoming-item {
  display: flex;
  gap: 10px;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--border-soft);
}

.upcoming-item:last-child {
  border-bottom: none;
}

.upcoming-date {
  min-width: 80px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--blue-mid);
}

.upcoming-label {
  font-size: 0.9rem;
}

.upcoming-type {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.55rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: #fee2e2;
  color: var(--red-main);
  font-size: 0.7rem;
  text-transform: uppercase;
}

/* generic button (used e.g. on contact page) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: none;
  background: var(--red-main);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.btn:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn:focus-visible {
  outline: 2px solid #facc15;
  outline-offset: 2px;
}




/* ------------------------------
   COMPONENTS
------------------------------ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--blue-mid);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.lead {
  font-size: 1.02rem;
  text-align: justify;
}

.muted {
  color: var(--text-muted);
}

/* News list */
.news-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.news-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.news-date {
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}

.site-footer {
  margin-top: 40px;
  padding: 14px 16px 18px;
  border-top: none;
  background: linear-gradient(90deg, #020617, var(--blue-dark));
  color: #e5e7eb;
  font-size: 0.86rem;

  /* NEW: always centered */
  text-align: center;
}

.site-footer span {
  display: block;      /* each line under the previous one */
  margin: 2px 0;
}

/* remove the left alignment on large screens */
@media (min-width: 768px) {
  .site-footer {
    text-align: center;
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* Back-to-top button */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  z-index: 9999;
}

.back-to-top:hover {
  background: rgba(37, 99, 235, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
}

/* ------------------------------
   RESPONSIVE
------------------------------ */

@media (max-width: 960px) {
  .page-main {
    grid-template-columns: 1fr;
  }

  .home-leader {
    flex-direction: column;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-subtitle,
  .header-title {
    font-size: 1.7rem;
  }

  /* Mobile nav */
  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    background: var(--red-main);
    transition: max-height 0.23s ease;
  }

  .nav-inner.nav-open .nav-links {
    max-height: 480px;
  }

  .nav-link {
    padding: 11px 18px;
  }
}

@media (min-width: 1200px) {
  .header-subtitle,
  .header-title {
    font-size: 2.6rem;
  }
}




/* logo of amu in the mobile mode */

/* Hide logo on desktop */
.header-logo-mobile {
  display: none;
}

/* MOBILE: show AMU logo and make sure it stays visible */
@media (max-width: 768px) {

  .header-banner {
    background-image: none !important;
    background-color: var(--blue-dark) !important;
    position: relative;
    min-height: 130px; /* ensures space for the logo */
  }

  .header-logo-mobile {
    display: block;
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5000; /* ensures it stays above EVERYTHING */
    pointer-events: none; /* prevents blocking menu button */
  }

  .header-logo-mobile img {
    height: 80px;
    width: auto;
  }
}




/* ==========================================
   NEWS CARDS (news.html + home snippet)
========================================== */

.news-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 16px;
}

.news-item {
  padding: 0;
  border-bottom: none;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: 16px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.news-image {
  position: relative;
  min-height: 120px;
  max-height: 180px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.08);
}

.news-content {
  padding: 14px 16px 12px;
}

.news-date {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.news-title {
  margin: 0.3rem 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--blue-dark);
}

.news-excerpt {
  margin: 0;
  font-size: 0.9rem;
}

/* ===== READ MORE BUTTON – MORE GRAPHICAL ===== */

.news-readmore,
.news-readmore-btn {

  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  padding: 0.32rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.75);
  background: radial-gradient(circle at 0 0, #eff6ff, #ffffff);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  text-decoration: none;
  color: var(--blue-mid);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.news-readmore::after,
.news-readmore-btn::after {

  content: "➜";
  font-size: 0.9rem;
  opacity: 0.9;
  transform: translateX(0);
  transition: transform 0.18s ease;
}

.news-card:hover .news-readmore,
.news-readmore:hover {

  text-decoration: none;
}

.news-card:hover .news-readmore,
.news-card:hover .news-readmore-btn,
.news-readmore:hover,
.news-readmore-btn:hover {

  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
  border-color: var(--blue-mid);
  background: linear-gradient(145deg, #eff6ff, #ffffff);
  color: var(--blue-dark);
}

.news-card:hover .news-readmore::after,
.news-card:hover .news-readmore-btn::after,
.news-readmore:hover::after,
.news-readmore-btn:hover::after {

  transform: translateX(3px);
}

@media (max-width: 768px) {
  .news-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-image {
    max-height: 200px;
  }
}

/* ==========================================
   UPCOMING SEMINARS BOX (home sidebar)
========================================== */

.upcoming-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upcoming-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  border-bottom: none;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.upcoming-date {
  min-width: 78px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--blue-mid);
}

.upcoming-label {
  font-size: 0.9rem;
}

/* ==========================================
   PUBLICATIONS – FULL LIST & HOME SNIPPET
========================================== */

.pub-list {
  list-style: none;
  margin: 1.0rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pub-item {
  padding: 0.9rem 0.95rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.pub-title {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
}

.pub-meta {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.pub-list--compact {
  margin-top: 0.7rem;
}

.pub-list--compact .pub-item {
  padding: 0.6rem 0.35rem;
  border-radius: 0;
  border: none;
  border-left: 3px solid var(--blue-mid);
  box-shadow: none;
  background: transparent;
}

/* ==========================================
   PEOPLE PAGE
========================================== */

.people-section {
  margin-top: 1.6rem;
}

.people-section + .people-section {
  margin-top: 2rem;
}

.people-section h3 {
  margin-bottom: 0.4rem;
}

.people-grid {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.person-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.person-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
  border-color: rgba(148, 163, 184, 0.8);
}

.person-photo {
  flex: 0 0 auto;
}

.person-photo img {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.person-body {
  flex: 1;
  min-width: 0;
}

.person-name {
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 0.15rem;
}

.person-role {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.person-contact {
  font-size: 0.9rem;
}

.person-contact a {
  color: inherit;
  text-decoration: none;
}

.person-contact a:hover {
  text-decoration: underline;
}

.person-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.person-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #ffffff;
  color: var(--blue-dark);
  text-decoration: none;
}

.person-social-link:hover {
  background: #eff6ff;
  border-color: var(--blue-mid);
}

.person-social-link.icon-orcid {
  background: #065f46;
  border-color: #065f46;
  color: #ecfdf5;
}

.person-social-link.icon-linkedin {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #eff6ff;
}

.person-social-link.icon-researchgate {
  background: #14a3a3;
  border-color: #14a3a3;
  color: #ecfeff;
}

.person-social-link.icon-scholar {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #eff6ff;
}

/* ==========================================
   EVENTS PAGE
========================================== */

.events-section {
  margin-top: 1.6rem;
}

.events-section + .events-section {
  margin-top: 2.0rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--border-soft);
}

.events-section h3 {
  margin-bottom: 0.6rem;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.event-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.event-card--upcoming {
  border-left: 4px solid var(--red-main);
}

.event-card--past {
  border-left: 4px solid var(--blue-mid);
}

.event-media {
  position: relative;
  overflow: hidden;
  max-height: 180px;
}

.event-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 0.3s ease;
}

.event-card:hover .event-media img {
  transform: scale(1.08);
}

.event-body {
  padding: 12px 16px 14px;
}

.event-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  background: #fee2e2;
  color: var(--red-main);
  margin-bottom: 0.4rem;
}

.event-title {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 600;
}

.event-date {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.event-location {
  font-size: 0.9rem;
  margin: 0.3rem 0 0.4rem;
}

.event-description {
  font-size: 0.9rem;
  margin: 0;
}

/* ==========================================
   SEMINARS PAGE
========================================== */

.seminar-list {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.seminar-card {
  display: flex;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.seminar-date-badge {
  flex: 0 0 64px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--red-main), #b91c1c);
  color: #fef2f2;
  text-align: center;
  padding: 6px 4px;
}

.seminar-date-day {
  display: block;
  font-size: 1.2rem;
  line-height: 1.1;
  font-weight: 700;
}

.seminar-date-month {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.seminar-content {
  flex: 1;
  min-width: 0;
}

.seminar-title {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.seminar-speaker,
.seminar-meta {
  margin: 0.15rem 0;
  font-size: 0.9rem;
}

.seminar-meta {
  color: var(--text-muted);
}

/* ==========================================
   CONTACT PAGE
========================================== */

.contact-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: flex-start;
}

.contact-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 16px 18px 18px;
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.contact-form p {
  margin: 0 0 0.85rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  padding: 0.5rem 0.65rem;
  font-size: 0.94rem;
  font-family: inherit;
  resize: vertical;
}


/* Enhanced contact cards */
.contact-card--info {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.contact-meta-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contact-meta-item {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
}

.contact-meta-bullet {
  margin-top: 0.2rem;
  font-size: 0.7rem;
}

/* Route assistant highlight card */
.contact-card--route {
  position: relative;
  overflow: hidden;
  border-color: rgba(129, 140, 248, 0.85);
  background: radial-gradient(circle at 0 0, rgba(239, 246, 255, 0.95), #ffffff);
  box-shadow: var(--shadow-soft);
}

.contact-card--route::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: radial-gradient(
    circle at top right,
    rgba(248, 113, 113, 0.18),
    transparent 60%
  );
  opacity: 0.8;
  pointer-events: none;
}

.contact-card--route h3,
.contact-card--route p,
.contact-card--route .contact-pill-row {
  position: relative;
}

/* Pills with selling points */
.contact-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.7rem 0 1rem;
}

.contact-pill {
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.78rem;
  font-weight: 500;
}

/* Message card spacing */
.contact-card--message {
  margin-top: 1.4rem;
}

.contact-route-note {
  margin-top: 0.7rem;
  font-size: 0.88rem;
}

.contact-route-status {
  margin-top: 0.4rem;
  font-size: 0.85rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.contact-form textarea {
  min-height: 120px;
}

/* responsive tweaks */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .seminar-card {
    flex-direction: row;
  }
}








/* ==========================================
   UPCOMING SEMINARS & CONFERENCES (sidebar)
========================================== */

.upcoming-list {
  list-style: none;
  margin: 1.0rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upcoming-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-card);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.9), #ffffff);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
  position: relative;
  overflow: hidden;
}

.upcoming-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(185, 28, 28, 0.16), transparent);
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

.upcoming-item:hover::before {
  opacity: 1;
}

.upcoming-date {
  min-width: 82px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-mid);
}

.upcoming-label {
  font-size: 0.92rem;
}

.upcoming-label strong {
  display: block;
  margin-bottom: 0.1rem;
}

.upcoming-type {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.6rem;
  margin-left: 0.15rem;
  border-radius: 999px;
  background: #fee2e2;
  color: var(--red-main);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

/* ==========================================
   SEMINARS PAGE – CALENDAR UI
========================================== */

.badge-soft {
  background: rgba(239, 246, 255, 0.7);
  color: var(--blue-mid);
}

.seminar-calendar-wrapper {
  margin-top: 1.5rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.04),
    rgba(191, 219, 254, 0.35)
  );
  box-shadow: var(--shadow-soft);
}

.seminar-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.seminar-calendar-title {
  margin: 0.2rem 0 0;
  font-size: 1.15rem;
}

.seminar-calendar-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-calendar {
  border: none;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  background: rgba(248, 250, 252, 0.95);
  color: var(--blue-dark);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
}

.btn-calendar:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.25);
  background: #ffffff;
}

.seminar-calendar-current {
  min-width: 140px;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--blue-dark);
}

.seminar-calendar-grid {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.seminar-calendar-weekday {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--text-muted);
  padding-bottom: 0.25rem;
}

.seminar-calendar-day {
  min-height: 60px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(248, 250, 252, 0.95);
  padding: 4px 5px;
  font-size: 0.8rem;
  text-align: left;
  position: relative;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease, background 0.15s ease;
}

.seminar-calendar-day.is-empty {
  visibility: hidden;
  cursor: default;
}

.seminar-calendar-day-number {
  display: inline-block;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--blue-dark);
}

.seminar-calendar-day.has-seminar {
  border-color: var(--red-main);
  background: linear-gradient(
    145deg,
    #fef2f2,
    rgba(254, 249, 195, 0.6),
    #eff6ff
  );
}

.seminar-calendar-day.is-today {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.6);
}

.seminar-calendar-day.has-seminar:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.28);
}

.seminar-calendar-day-events {
  margin-top: 0.15rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.seminar-calendar-day-pill {
  display: inline-block;
  padding: 0.08rem 0.3rem;
  border-radius: 999px;
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
}

.seminar-calendar-day-more {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.seminar-calendar-hint {
  margin: 0.6rem 0 0.4rem;
  font-size: 0.82rem;
}

.seminar-calendar-details {
  margin-top: 0.6rem;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.7);
}

.seminar-calendar-details-title {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
}

/* Slightly tighten the seminar cards inside the details panel */
.seminar-calendar-details .seminar-card {
  margin-top: 0.4rem;
}

/* ==========================================
   PUBLICATION STATS (publications sidebar)
========================================== */

.pub-stats {
  background: radial-gradient(circle at 0 0, #fef3c7, #fee2e2);
  border: none;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.25);
}

.pub-stats-grid {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.6rem;
}

.pub-stat {
  padding: 0.45rem 0.55rem;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.9);
  text-align: center;
}

.pub-stat-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.pub-stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-muted);
}




/* news popup model css codes */

.news-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
}

/* POPUP CONTENT – MORE COMPRESSED & BEAUTIFUL */
.news-modal-content {
  position: relative;
  background: radial-gradient(circle at 0 0, #eff6ff, #ffffff);
  max-width: 820px;
  width: min(96%, 820px);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 18px;
  padding: 18px 22px 20px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

/* Decorative top accent bar */
.news-modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red-main), var(--blue-mid));
  opacity: 0.9;
}

/* Headings & text inside modal */
.news-modal-content h2,
.news-modal-content h3 {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

.news-modal-content p {
  margin: 0.35rem 0 0.55rem;
  font-size: 0.94rem;
  line-height: 1.55;
}

/* Optional meta line in the popup (date, tags, etc.) */
.news-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 0.25rem 0 0.65rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.news-modal-tag {
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

/* A wrapper for the body text if you use it in HTML */
.news-modal-body {
  margin-top: 0.4rem;
}

/* Improved close button */
.news-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  margin-bottom: 0;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-muted);
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease;
}

.news-modal-close:hover {
  background: rgba(15, 23, 42, 0.12);
  color: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
}

/* Small-screen tweaks for popup */
@media (max-width: 600px) {
  .news-modal {
    padding: 10px;
  }

  .news-modal-content {
    padding: 14px 14px 16px;
    border-radius: 14px;
    max-height: 90vh;
  }

  .news-modal-close {
    top: 8px;
    right: 10px;
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  .news-modal-content p {
    font-size: 0.92rem;
  }
}






/* ==========================================
   EMPTY STATE FOR UPCOMING EVENTS
========================================== */

.no-events-box {
  padding: 20px 22px;
  border-radius: var(--radius-card);
  border: 1px dashed var(--blue-mid);
  background: linear-gradient(
    145deg,
    rgba(219, 234, 254, 0.45),
    rgba(255, 255, 255, 0.85)
  );
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.no-events-box p {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-dark);
}


/* ==========================================
   SIDEBAR HIGHLIGHT BOX
========================================== */

.highlight-box {
  background: linear-gradient(
    145deg,
    rgba(254, 242, 242, 0.95),
    rgba(250, 250, 250, 1)
  );
  border: 1px solid rgba(185, 28, 28, 0.45);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.highlight-box h3 {
  color: var(--red-main);
  font-weight: 700;
}






/* Different styling for seminars shown in the "Upcoming seminar" panel */
.seminar-calendar-details .seminar-card {
  border-left: 4px solid var(--red-main);
  background: linear-gradient(
    135deg,
    rgba(254, 242, 242, 0.96),
    #ffffff
  );
}




/* CONTACT PAGE – route helper */
.contact-route-card {
  margin-top: 1.4rem;
  padding: 16px 18px 18px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  box-shadow: var(--shadow-soft);
}

.contact-route-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.contact-route-note {
  margin-top: 0.7rem;
  font-size: 0.88rem;
}

.contact-route-status {
  margin-top: 0.4rem;
  font-size: 0.85rem;
}



/* Improved route card */
.contact-route-card {
  margin-top: 1.4rem;
  padding: 20px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background: linear-gradient(135deg, #eef7ff, #ffffff);
  box-shadow: var(--shadow-soft);
}

.route-highlight {
  margin: 10px 0 14px;
  padding: 10px 14px;
  background: rgba(56, 132, 255, 0.08);
  border-left: 4px solid var(--blue-mid);
  border-radius: 6px;
  font-size: 0.92rem;
}

.contact-route-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.contact-route-note {
  margin-top: 0.7rem;
  font-size: 0.88rem;
}





/* ==========================================
   SIDEBAR – OPPORTUNITIES BOX
========================================== */

.sidebar-box--opportunities h3 {
  margin-bottom: 0.6rem;
}

/* list container */
.sidebar-pills {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* pill link */
.sidebar-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: linear-gradient(135deg, #f9fafb, #eef2ff);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--blue-dark);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.sidebar-pill:hover {
  transform: translateY(-1px);
  border-color: var(--blue-mid);
  background: linear-gradient(135deg, #eef2ff, #e0f2fe);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.2);
}

.sidebar-pill-text {
  font-weight: 500;
}

/* small round arrow on the right */
.sidebar-pill-arrow {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  line-height: 1;
}



/* ==========================================
   SIDEBAR – CONSULTATION HOURS BOX
========================================== */

.sidebar-box--consultation {
  background: radial-gradient(circle at 0 0, #fef2f2, #fff7ed);
  border: 1px solid rgba(248, 113, 113, 0.55);
}

/* title with small red dot */
.sidebar-box--consultation h3 {
  margin-bottom: 0.55rem;
  font-size: 1rem;
  color: var(--red-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sidebar-box--consultation h3::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--red-main);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.25);
}

/* inner card */
.consultation-body {
  margin-top: 0.2rem;
  padding: 0.55rem 0.7rem 0.6rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

/* name */
.consultation-name {
  margin: 0 0 0.35rem;
  font-weight: 600;
  color: var(--blue-dark);
}

/* list of slots */
.consultation-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.consultation-slot {
  position: relative;
  padding-left: 16px;
  font-size: 0.86rem;
}

/* small red bullet */
.consultation-slot::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--red-main);
}

/* main line (day + time or note) */
.consultation-main {
  display: block;
  font-weight: 500;
}

/* room / extra info */
.consultation-room {
  display: block;
  margin-top: 0.05rem;
  font-size: 0.8rem;
}

/* small screens */
@media (max-width: 480px) {
  .consultation-body {
    padding: 0.5rem 0.6rem 0.55rem;
  }
}


/* ==========================================
   INNER PAGES – PHDS, POSITIONS, PROJECTS
========================================== */

/* wrapper for stacked cards inside the main column */
.page-main-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* header card tweaks */
.page-header-card {
  padding-bottom: 18px;
}

.page-header-card h2 {
  margin-top: 0.8rem;
  margin-bottom: 0.5rem;
}

/* Generic card list used on several pages */
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-card {
  padding: 14px 16px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.info-card:hover {
  transform: translateY(-1px);
  border-color: var(--blue-mid);
  box-shadow: 0 18px 28px rgba(15, 23, 42, 0.18);
}

.info-card-title {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-dark);
}

.info-card-meta {
  margin: 0.05rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.info-card-meta strong {
  font-weight: 600;
  color: var(--text-main);
}

.info-card-description {
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

.info-card-links {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* small tag at top of card, e.g. Defended / In progress / Call open */
.info-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.6rem;
  border-radius: 999px;
  background: #eef2ff;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  color: var(--blue-mid);
}

/* pill-like links to PDF, etc. */
.link-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--blue-mid);
  background: #eff6ff;
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--blue-mid);
  font-weight: 500;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.link-chip:hover,
.link-chip:focus-visible {
  background: #dbeafe;
  border-color: var(--blue-dark);
}

.link-chip--secondary {
  border-color: var(--border-soft);
  background: #f9fafb;
  color: var(--text-main);
}

/* Open positions – helper note */
.no-positions-card {
  margin-top: 0.6rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px dashed var(--border-soft);
  background: #f9fafb;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Projects – small stats bar */
.project-stats {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.project-stats-item {
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid var(--border-soft);
  font-size: 0.86rem;
}

.project-stats-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.project-stats-value {
  display: block;
  margin-top: 0.15rem;
  font-weight: 600;
  color: var(--blue-dark);
}

/* mobile tweaks */
@media (max-width: 640px) {
  .page-main-content {
    gap: 14px;
  }
}





/* ==========================================
   PUBLICATION IMAGE CARDS (publications sidebar)
========================================== */

.pub-figures-box {
  /* slightly different background to distinguish it */
  background: radial-gradient(circle at 0 0, #eff6ff, #ffffff);
}

.pub-figures-list {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pub-figure {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.pub-figure-image {
  max-height: 170px;
  overflow: hidden;
}

.pub-figure-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 0.25s ease;
}

.pub-figure:hover .pub-figure-image img {
  transform: scale(1.07);
}

.pub-figure-body {
  padding: 10px 12px 12px;
}

.pub-figure-description {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
}

.pub-figure-doi {
  margin: 0;
  font-size: 0.82rem;
}

/* ==========================================
   PUBLICATION IMAGE CARD (publications sidebar)
========================================== */

.pub-figures-box {
  background: radial-gradient(circle at 0 0, #eff6ff, #ffffff);
}

.pub-figures-list {
  margin-top: 0.75rem;
}

.pub-figure {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.pub-figure-image {
  max-height: 170px;
  overflow: hidden;
}

.pub-figure-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform 0.25s ease;
}

.pub-figure:hover .pub-figure-image img {
  transform: scale(1.07);
}

.pub-figure-body {
  padding: 10px 12px 12px;
}

.pub-figure-description {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
}

.pub-figure-doi {
  margin: 0;
  font-size: 0.82rem;
}





/* Default desktop style */
.grieg-link {
  background-color: white;
  color: #8b1e1e;
  border-radius: 4px;
  font-weight: bold;
}

/* MOBILE VERSION (max 768px) */
@media (max-width: 768px) {
  .grieg-link {
    background-color: #8b1e1e;  /* new mobile background */
    color: white;               /* new mobile text color */
    border-radius: 6px;
    padding: 10px 14px;
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
  }
}




/* ---------------------------------------
   Awards Box Styling
---------------------------------------- */

.awards-box {
  padding: 18px 20px;
}

/* Awards list */
.awards-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Single award item */
.award-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.4);
}

.award-item:last-child {
  border-bottom: none;
}

/* Photo instead of icon */
.award-photo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

/* Award text */
.award-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.award-data a {
  font-size: 0.82rem;
}

/* Hidden awards (toggle) */
.hidden-award {
  display: none;
}

/* Toggle button */
.awards-toggle {
  margin-top: 14px;
  width: 100%;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--blue-mid);
  color: white;
  font-size: 0.85rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease;
}

.awards-toggle:hover {
  background: var(--blue-dark);
}




/* Collaboration box styling */
.collaboration-box {
  margin-top: 24px;
  padding: 18px 20px;
  background: linear-gradient(
    145deg,
    rgba(238, 247, 255, 0.95),
    rgba(225, 239, 252, 1)
  );
  border: 1px solid rgba(96, 165, 250, 0.45);
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.10);
}

.collaboration-box h3 {
  color: var(--blue-dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.collab-text {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.45;
  margin-bottom: 14px;
  text-align: justify;
}

.collab-button {
  display: inline-block;
  padding: 8px 14px;
  background: var(--blue-mid);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

.collab-button:hover {
  background: var(--blue-dark);
}


.link-chip.disabled {
  pointer-events: none;         /* disable clicking */
  opacity: 0.5;                 /* faded look */
  cursor: not-allowed;          /* disabled cursor */
  background: #d1d5db !important; /* subtle gray */
  color: #666 !important;
  border-color: #c5c5c5 !important;
}


.status-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f5f7fa;
  border-left: 4px solid #005bbb;
  border-radius: 6px;
  margin: 20px 0;
}

.status-label {
  font-weight: 600;
  color: #333;
  min-width: 150px;
}

.status-value {
  font-weight: 700;
  color: #005bbb;
}


/* Sidebar calendar icon date */
.sidebar .upcoming-date {
  position: relative;
  width: auto;
  height: 100px;
  flex: 0 0 64px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background-image: url("../img/calender-icon.png"); /* adjust if needed */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  font-weight: 900;
  color: #0f172a;
  text-align: center;
  line-height: 11px;
}

/* dd */
.sidebar .upcoming-day {
  margin-top: 16px;
  font-size: 20px;
  margin-bottom: 0.05rem;
}

/* Sep */
.sidebar .upcoming-month {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 9px;
}

/* 25 */
.sidebar .upcoming-year {
  font-size: 0.8rem;
  margin-top: 0.05rem;
  margin-top: 5px;
}





