/* CISL Website - Academic Design System */
/* Colors derived from watercolor accent banner: Lavender, Peach, Sky Blue */

/* ========== CSS Custom Properties ========== */
:root {
  /* Colors - Soft Pastel Banner Theme */
  --color-bg-body: #faf9f8;
  --color-bg-header: #6070a0;
  --color-bg-footer: #6070a0;
  --color-bg-section-alt: #f5f3f0;

  --color-text-primary: #2a2530;
  --color-text-secondary: #5a5060;
  --color-text-muted: #7a7085;
  --color-text-inverse: #faf9f8;

  --color-border: #d5d0e0;
  --color-border-light: #e8e5f0;
  --color-accent: #6070a0;
  --color-accent-hover: #7080b0;
  --color-accent-light: #8090c0;

  /* Accent Colors from New Banner */
  --color-lavender: #a090c0;
  --color-lavender-light: #c0b0d8;
  --color-peach: #e8a080;
  --color-peach-light: #f0c0a0;
  --color-sky: #90b0d0;
  --color-sky-light: #b0d0e8;
  --color-cream: #f0e8e0;
  --color-cream-light: #f8f5f0;

  /* Constraint Theme Colors (banner-matched) */
  --color-theme-physical: #e8a080;
  --color-theme-semantic: #90b0d0;
  --color-theme-safety: #a090c0;

  /* Typography */
  --font-serif: 'Source Serif Pro', 'Georgia', 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', 'Consolas', monospace;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.375rem;
  --font-size-2xl: 1.75rem;
  --font-size-3xl: 2.25rem;

  --line-height-tight: 1.3;
  --line-height-body: 1.65;
  --line-height-relaxed: 1.8;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width-content: 1000px;
  --max-width-text: 60ch;
  --border-radius: 3px;
}

/* ========== Base Reset ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-serif);
  font-size: var(--font-size-base);
  line-height: var(--line-height-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg-body);
}

/* ========== Typography ========== */
h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
}

h1 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-md);
  margin-top: var(--space-2xl);
}

h4 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-md);
  max-width: var(--max-width-text);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

a:hover {
  border-bottom-color: var(--color-accent);
}

strong {
  font-weight: 600;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--color-bg-section-alt);
  padding: 0.1em 0.3em;
  border-radius: 2px;
}

ul,
ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

li {
  margin-bottom: var(--space-xs);
}

/* ========== Layout ========== */
.container {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.page-content {
  padding: var(--space-3xl) 0 var(--space-4xl);
  min-height: calc(100vh - 200px);
}

/* ========== Header (Dark Compact - Navy) ========== */
header {
  background: var(--color-bg-header);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.site-branding:hover {
  border-bottom: none;
}

.site-icon {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

.site-title {
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-inverse);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: rgba(245, 247, 249, 0.7);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: none;
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: var(--color-text-inverse);
}

/* ========== Footer with Banner Background ========== */
footer {
  position: relative;
  background: url('../assets/images/banners/Accent_Banner_CISL_3.png') center/cover no-repeat;
  padding: var(--space-2xl) 0;
  margin-top: var(--space-3xl);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(96, 112, 160, 0.92) 0%, rgba(96, 112, 160, 0.95) 100%);
  z-index: 0;
}

footer .container {
  position: relative;
  z-index: 1;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

footer p {
  margin: 0;
  color: rgba(245, 247, 249, 0.6);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  max-width: none;
}

footer a {
  color: rgba(245, 247, 249, 0.8);
}

footer a:hover {
  color: var(--color-text-inverse);
  border-bottom-color: rgba(245, 247, 249, 0.8);
}

/* ========== Logo ========== */
.logo {
  max-width: 450px;
  margin-bottom: var(--space-2xl);
}

.logo img {
  width: 100%;
  height: auto;
}

/* ========== Section Styles ========== */
.section-intro {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: var(--max-width-text);
  line-height: var(--line-height-relaxed);
}

.section-divider {
  border: none;
  border-top: 1px solid var(--color-border-light);
  margin: var(--space-3xl) 0;
}

/* ========== People Styles ========== */
.people-section {
  margin-bottom: var(--space-3xl);
}

.people-grid {
  display: grid;
  gap: var(--space-xl);
}

.people-grid--leads {
  grid-template-columns: repeat(2, 1fr);
  max-width: 700px;
}

.people-grid--fellows {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.person {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.person--lead {
  align-items: center;
  text-align: center;
}

.person__photo {
  width: 200px;
  height: 250px;
  object-fit: cover;
  filter: grayscale(100%);
  margin-bottom: var(--space-md);
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
}

.person--fellow .person__photo {
  width: 150px;
  height: 180px;
}

.person__name {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.person__role {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.person__keywords {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-style: italic;
}

.person__links {
  margin-top: var(--space-sm);
  font-size: var(--font-size-sm);
}

.person__links a {
  margin-right: var(--space-sm);
}

/* ========== Projects Styles ========== */
.theme-section {
  margin-bottom: var(--space-3xl);
}

.theme-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.theme-label {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
  background: transparent;
}

.theme-label--physical {
  color: var(--color-theme-physical);
  border: 1px solid var(--color-theme-physical);
}

.theme-label--semantic {
  color: var(--color-theme-semantic);
  border: 1px solid var(--color-theme-semantic);
}

.theme-label--safety {
  color: var(--color-theme-safety);
  border: 1px solid var(--color-theme-safety);
}

.theme-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.project {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--color-border-light);
}

.project:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project__title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xs);
}

.project__subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.project__section {
  margin-bottom: var(--space-md);
}

.project__section-title {
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.project__links {
  margin-top: var(--space-lg);
  font-size: var(--font-size-sm);
}

.project__links a {
  margin-right: var(--space-lg);
}

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

/* BibTeX */
.bibtex {
  margin-top: var(--space-lg);
  background: var(--color-bg-section-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  position: relative;
}

.bibtex__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.bibtex__label {
  font-family: var(--font-sans);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bibtex__copy {
  font-family: var(--font-sans);
  font-size: var(--font-size-xs);
  color: var(--color-accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

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

.bibtex pre {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
  color: var(--color-text-secondary);
}

.project--placeholder {
  padding: var(--space-lg);
  background: var(--color-bg-section-alt);
  border: 1px dashed var(--color-border);
  border-radius: var(--border-radius);
}

.project--placeholder p {
  margin: 0;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ========== Opportunities Styles ========== */
.opportunity-card {
  background: var(--color-bg-section-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.opportunity-card h3 {
  margin-top: 0;
  color: var(--color-accent);
}

.download-btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-text-inverse);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--border-radius);
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  transition: background 0.2s ease;
}

.download-btn:hover {
  background: var(--color-accent-hover);
  border-bottom: none;
}

.screening-questions {
  background: var(--color-bg-body);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  margin-top: var(--space-xl);
}

.screening-questions h4 {
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
}

.screening-questions ol {
  margin: 0;
}

.screening-questions li {
  margin-bottom: var(--space-md);
}

.ideal-answer {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

/* ========== Footer with Contact Form ========== */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
  width: 100%;
}

.footer-info {
  flex: 1;
  text-align: right;
}

.contact-form {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.contact-form input {
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-inverse);
  width: 140px;
}

.contact-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.contact-form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.contact-form button {
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: 600;
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-bg-header);
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form button:hover {
  background: #fff;
}

/* ========== News Ticker ========== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-2xl);
  align-items: start;
}

.about-main {
  min-width: 0;
}

.news-ticker {
  position: sticky;
  top: 80px;
  background: var(--color-bg-section-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  max-height: 400px;
  overflow-y: auto;
}

.news-ticker__header {
  font-family: var(--font-sans);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border-light);
  position: sticky;
  top: 0;
  background: var(--color-bg-section-alt);
}

.news-ticker__content {
  display: block;
}

.news-ticker__item {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border-light);
}

.news-ticker__item:last-child {
  border-bottom: none;
}

.news-ticker__date {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  display: block;
  margin-bottom: var(--space-xs);
}

.news-ticker__text {
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--color-text-secondary);
}

@keyframes ticker {

  0%,
  15% {
    transform: translateY(0);
  }

  20%,
  35% {
    transform: translateY(-25%);
  }

  40%,
  55% {
    transform: translateY(-50%);
  }

  60%,
  75% {
    transform: translateY(-75%);
  }

  80%,
  95% {
    transform: translateY(-50%);
  }

  100% {
    transform: translateY(0);
  }
}

/* ========== Research Areas ========== */
.research-area {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--color-border-light);
}

.research-area:last-child {
  border-bottom: none;
}

.research-area h3 {
  margin-top: 0;
  color: var(--color-accent);
}

.research-area__subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-md);
}

.research-area__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.research-area__keywords span {
  font-family: var(--font-sans);
  font-size: var(--font-size-xs);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-bg-section-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  color: var(--color-text-secondary);
}

/* ========== Open Call Box ========== */
.open-call {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  color: var(--color-text-inverse);
  padding: var(--space-xl);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-2xl);
}

.open-call h2 {
  color: var(--color-text-inverse);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: var(--space-md);
}

.open-call p {
  max-width: none;
  opacity: 0.95;
}

.open-call a {
  color: var(--color-text-inverse);
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.open-call a:hover {
  border-bottom-color: var(--color-text-inverse);
}

/* ========== Private Citation Box ========== */
.bibtex--private {
  background: var(--color-bg-section-alt);
  border-style: dashed;
}

.bibtex__notice {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin: 0;
}

.bibtex--preprint .bibtex__status {
  font-size: var(--font-size-xs);
  color: var(--color-theme-safety);
  background: rgba(122, 106, 58, 0.1);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius);
}

/* ========== Contact Page ========== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-page-form {
  background: var(--color-bg-section-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
}

.google-form-container {
  background: var(--color-bg-body);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  min-height: 600px;
}

.google-form-container iframe {
  display: block;
  border: none;
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.form-group .required {
  color: var(--color-theme-physical);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-serif);
  font-size: var(--font-size-base);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: var(--color-bg-body);
  color: var(--color-text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-text-inverse);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--border-radius);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.submit-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.contact-info {
  position: sticky;
  top: 80px;
}

.contact-info h3 {
  font-size: var(--font-size-base);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.contact-info h3:first-child {
  margin-top: 0;
}

.contact-info p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.contact-info a {
  color: var(--color-accent);
  font-weight: 600;
}

.contact-info p a[href*="linkedin"] {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-text-inverse);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius);
  border-bottom: none;
  transition: background 0.2s ease;
}

.contact-info p a[href*="linkedin"]:hover {
  background: var(--color-accent-hover);
  border-bottom: none;
}

.form-message {
  padding: var(--space-lg);
  border-radius: var(--border-radius);
  margin-top: var(--space-xl);
}

.form-message--success {
  background: rgba(58, 106, 100, 0.1);
  border: 1px solid var(--color-theme-semantic);
  color: var(--color-theme-semantic);
}

.form-message--error {
  background: rgba(139, 74, 74, 0.1);
  border: 1px solid var(--color-theme-physical);
  color: var(--color-theme-physical);
}

/* ========== Hero Banner Strip ========== */
.hero-strip {
  position: relative;
  height: 80px;
  background: url('../assets/images/banners/Accent_Banner_CISL_3.png') center/cover no-repeat;
  margin-bottom: var(--space-xl);
}

.hero-strip::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(45, 74, 90, 0.3) 0%, transparent 50%, rgba(90, 90, 122, 0.3) 100%);
}

/* ========== Section Dividers ========== */
.section-divider {
  position: relative;
  height: 4px;
  border: none;
  background: url('../assets/images/banners/Accent_Banner_CISL_3.png') center/cover no-repeat;
  margin: var(--space-2xl) 0;
  opacity: 0.6;
}

.section-divider--thick {
  height: 12px;
  opacity: 0.5;
  border-radius: 2px;
}

.section-divider--gradient {
  height: 2px;
  background: linear-gradient(90deg,
      var(--color-sky) 0%,
      var(--color-lavender) 50%,
      var(--color-peach) 100%);
  opacity: 1;
}

/* ========== Card Accents ========== */
.card-accent {
  position: relative;
  overflow: hidden;
}

.card-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  background: url('../assets/images/banners/Accent_Banner_CISL_3.png') top left/200px no-repeat;
  opacity: 0.4;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.card-accent::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: url('../assets/images/banners/Accent_Banner_CISL_3.png') bottom right/200px no-repeat;
  opacity: 0.4;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* Subtle gradient border for cards */
.card-gradient-border {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--color-bg-body), var(--color-bg-body)) padding-box,
    linear-gradient(135deg, var(--color-sage), var(--color-violet), var(--color-plum)) border-box;
}

/* ========== Sidebar with Banner Background ========== */
.sidebar-banner {
  position: relative;
  background: url('../assets/images/banners/Accent_Banner_CISL_3.png') center/cover no-repeat;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.sidebar-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(245, 247, 245, 0.88);
}

.sidebar-banner>* {
  position: relative;
  z-index: 1;
}

/* News ticker with subtle banner background */
.news-ticker--banner {
  background: url('../assets/images/banners/Accent_Banner_CISL_3.png') center/cover no-repeat;
}

.news-ticker--banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(232, 237, 232, 0.92);
  border-radius: var(--border-radius);
}

.news-ticker--banner>* {
  position: relative;
  z-index: 1;
}

/* ========== People Card Enhancements ========== */
.person--lead.card-accent::before,
.person--lead.card-accent::after {
  width: 50px;
  height: 50px;
  opacity: 0.3;
}

.person--fellow.card-accent::before,
.person--fellow.card-accent::after {
  width: 30px;
  height: 30px;
  opacity: 0.25;
}

/* ========== Project Card Enhancements ========== */
.project-card.card-accent {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card.card-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(45, 74, 90, 0.15);
}

/* ========== Hero Section on About Page ========== */
.hero-section {
  position: relative;
  padding: var(--space-2xl) 0;
  margin-bottom: var(--space-xl);
  background: url('../assets/images/banners/Accent_Banner_CISL_3.png') center/cover no-repeat;
  border-radius: var(--border-radius);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 247, 245, 0.88) 100%);
  border-radius: var(--border-radius);
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section .logo {
  filter: drop-shadow(0 4px 12px rgba(45, 74, 90, 0.15));
}

/* Hero Title Styling */
.hero-title {
  font-family: var(--font-sans);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-accent);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

/* Hero Tagline Styling */
.hero-tagline {
  font-family: var(--font-serif);
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-text-primary);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(232, 237, 232, 0.8) 100%);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--color-plum);
  box-shadow: 0 2px 8px rgba(45, 74, 90, 0.1);
  display: inline-block;
}

/* ========== Animations ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in:nth-child(1) {
  animation-delay: 0s;
}

.fade-in:nth-child(2) {
  animation-delay: 0.1s;
}

.fade-in:nth-child(3) {
  animation-delay: 0.2s;
}

.fade-in:nth-child(4) {
  animation-delay: 0.3s;
}

.fade-in:nth-child(5) {
  animation-delay: 0.4s;
}

/* Hover effects */
.person {
  transition: transform 0.2s ease;
}

.person:hover {
  transform: translateY(-4px);
}

.person__photo {
  transition: filter 0.3s ease, box-shadow 0.3s ease;
}

.person:hover .person__photo {
  filter: grayscale(0%);
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.15);
}

.project {
  transition: background 0.2s ease;
}

.project:hover {
  background: rgba(238, 241, 244, 0.5);
  margin-left: -var(--space-md);
  margin-right: -var(--space-md);
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.bibtex__copy {
  transition: color 0.2s ease, transform 0.2s ease;
}

.bibtex__copy:hover {
  transform: scale(1.05);
}

/* ========== Project Umbrella (DMFP) ========== */
.project-umbrella {
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--color-bg-section-alt) 0%, var(--color-bg-body) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
}

.project-umbrella__header {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.project-umbrella__logo {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.project-umbrella__title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-xs);
  border: none;
  padding: 0;
}

.project-umbrella__subtitle {
  color: var(--color-text-secondary);
  margin: 0;
  font-size: var(--font-size-base);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  :root {
    --font-size-3xl: 1.75rem;
    --font-size-2xl: 1.5rem;
  }

  .container {
    padding: 0 var(--space-md);
  }

  nav ul {
    gap: var(--space-md);
  }

  .people-grid--leads {
    grid-template-columns: 1fr;
    max-width: 300px;
  }

  .people-grid--fellows {
    grid-template-columns: repeat(2, 1fr);
  }

  .person--lead {
    align-items: flex-start;
    text-align: left;
  }

  .person__photo {
    width: 150px;
    height: 180px;
  }

  .person--fellow .person__photo {
    width: 120px;
    height: 150px;
  }

  .logo {
    max-width: 280px;
  }

  .project-umbrella__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .project-umbrella__logo {
    width: 60px;
    height: 60px;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .news-ticker {
    position: static;
    max-height: none;
  }

  .contact-form {
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
  }

  .contact-form input {
    width: 100%;
  }
}

@media (max-width: 480px) {
  nav ul {
    gap: var(--space-sm);
  }

  nav a {
    font-size: var(--font-size-xs);
  }

  .people-grid--fellows {
    grid-template-columns: 1fr;
  }

  .contact-form {
    flex-direction: column;
    align-items: stretch;
  }
}