/* ====== Base styles & variables ====== */

:root {
  --bg: #f5f5f7;
  --bg-alt: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --radius-lg: 18px;
  --radius-md: 10px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: radial-gradient(circle at top, #e5edff 0, #f5f5f7 40%, #f9fafb 100%);
  -webkit-font-smoothing: antialiased;
}

/* Layout helpers */

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ====== Header & navigation ====== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 0.7));
  border-bottom: 1px solid rgba(209, 213, 219, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--accent-soft);
  padding: 6px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-title {
  font-size: 1.85rem;
  margin: 0;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.92rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.site-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ====== Main content ====== */

.site-main {
  flex: 1;
  padding: 2rem 0 2.5rem;
}

/* Generic section styling */

.section {
  margin-bottom: 2rem;
}

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

.section-header h2 {
  font-size: 1.2rem;
  margin: 0;
}

/* Intro section (hero-like) */

.intro {
  margin-bottom: 2.4rem;
}

.intro-text {
  background: var(--bg-alt);
  border-radius: 24px;
  padding: 1.5rem 1.7rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229, 231, 235, 0.8);
}

.intro-text h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
}

.intro-text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Cards (used for news) */

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

.card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.card-title {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}

.card-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Publications */

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.pub-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-md);
  border: 1px solid rgba(229, 231, 235, 0.9);
}

.pub-year {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

.pub-details {
  font-size: 0.9rem;
}

.pub-authors {
  margin: 0 0 0.15rem;
}

.pub-title {
  margin: 0 0 0.15rem;
  font-weight: 500;
}

.pub-venue {
  margin: 0 0 0.2rem;
  color: var(--muted);
}

.pub-links {
  margin: 0;
  font-size: 0.85rem;
}

.pub-links a {
  color: var(--accent);
  text-decoration: none;
}

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

/* Partners */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.partner {
  background: var(--bg-alt);
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(209, 213, 219, 0.9);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-start;
}

.partner-logo-placeholder {
  width: 100%;
  height: 70px;               /* The maximum visible height */
  display: flex;
  align-items: left;
  justify-content: left;
  background: #ffffff;        /* or var(--bg-alt) */
  padding: 6px;
  border-radius: 10px;
  overflow: hidden;    
}

.partner-logo-placeholder img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;        /* key: keeps aspect ratio */
}

.partner-name {
  margin: 0;
  font-weight: 500;
}

.partner-location {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}



/* Footer */

.site-footer {
  border-top: 1px solid rgba(209, 213, 219, 0.9);
  background: #f9fafb;
}

.footer-inner {
  padding: 0.9rem 1.5rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  justify-content: space-between;
}

.footer-inner p {
  margin: 0;
}

/* ===== Kick-off page specific styles ===== */

.kickoff-photo-box {
  background: var(--bg-alt);
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.kickoff-photo {
  width: 100%;
  max-height: 800px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.kickoff-photo-placeholder {
  padding: 2.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
  background: #f9fafb;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Agenda list */

.agenda-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.agenda-list li + li {
  margin-top: 0.15rem;
}

/* Participants */

.participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
}

.participant {
  background: var(--bg-alt);
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

.participant strong {
  color: var(--text);
}

/* Highlights */

.highlights-box {
  background: var(--bg-alt);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.highlights-box ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

/* Materials */

.materials-box {
  background: var(--bg-alt);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--muted);
}

.materials-box ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

.materials-box a {
  text-decoration: none;
}

.materials-box a:hover {
  text-decoration: underline;
}


/* ====== Responsive tweaks ====== */

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

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .site-nav a {
    padding-inline: 0.55rem;
  }

  .intro-text {
    padding: 1.2rem 1.3rem;
  }

  .pub-item {
    grid-template-columns: 50px minmax(0, 1fr);
  }
}



@media (max-width: 480px) {
  .brand-title {
    font-size: 1.05rem;
  }

  .brand-subtitle {
    font-size: 0.8rem;
  }

  .section-header h2 {
    font-size: 1.05rem;
  }
}

/* Two-column layout for funding + contact */

.two-col-section {
  margin-top: 2rem;
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.two-col-box {
  background: var(--bg-alt);
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

/* Contact box inside the two-column layout */
.contact-box {
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-box strong {
  color: var(--text);
}

/* Funding logo simplified */
.funder-logo-placeholder {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: left;
  justify-content: left;
  overflow: hidden;
  padding: 5px;
  background: none;
  border-radius: 10px;
}

.funder-logo-placeholder img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

/* Mobile layout: stack into one column */
@media (max-width: 780px) {
  .two-col-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== End of styles.css ===== */
