/* Apply Poppins font sitewide */
body, h1, h2, h3, h4, h5, h6, p, a, li, nav, .navbar, .quarto-title-banner, .sidebar, .footer {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 400;
}

/* Optional: tweak heading weights for balance */
h1, h2, h3, .navbar-brand {
  font-weight: 600;
}

.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  margin-bottom: 30px;
  background-color:  #ffc425 !important;
}

.navbar .navbar-brand img {
  height: 60px;
  max-height: 20px;
  width: auto;
  object-fit: contain;
  padding: 0;
  margin: 0;
  display: block;
}

.navbar a.nav-link:hover,
.navbar .navbar-brand:hover {
  color: #000000 !important;   /* change to any hover color */
  text-decoration: underline;  /* adds underline */
  text-underline-offset: 4px;  /* optional: lower the underline */
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.navbar .nav-link.active,
.navbar .nav-item > .nav-link.active {
  background-color: rgba(42, 62, 96, 0.5) !important; /* translucent background */
  color: #ffffff !important;  /* white text */
  border-radius: 6px;
  font-weight: 600;
}

.quarto-title-banner {
  width: 100vw;
  min-height: 200px;
  margin-top: 60px;
  background-image: url("images/title_banner_frontpage.png");
  background-repeat: no-repeat;
  background-size: cover;       /* fill width completely */
  background-position: center center;
  padding-top: 60px;
  box-sizing: border-box;
  margin-bottom: 0;
}

.quarto-title-banner h1,
.quarto-title-banner .page-header {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure inner content stays centered */
.quarto-title-banner .container {
  max-width: 100% !important;   /* remove Bootstrap container max-width */
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  height: 100%;
}


.quarto-listing a {
  pointer-events: none;
  color: inherit;         /* Remove link color */
  text-decoration: none;  /* Remove underline */
  cursor: default;        /* Normal cursor instead of pointer */
}

/* Remove hover shadow/animation */
.quarto-listing .listing-item:hover {
  box-shadow: none !important;
  transform: none !important;
}

body, main, .content, .page-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* --- Hide the first column (labels like "name" and "research") --- */
.card-other-values td:first-child {
  display: none !important;
}

/* --- Make the table behave like a vertical list --- */
.card-other-values {
  display: block !important;
}

.card-other-values tr {
  display: block !important;
  margin-bottom: 0.4em;
}

/* --- Name row --- */
.card-other-values tr:first-child td.name {
  display: block !important;
  font-weight: bold !important;
  margin-bottom: 0.2em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Research row --- */
.card-other-values tr td.research {
  display: block !important;
  font-weight: normal !important;
  white-space: normal !important;
  margin-top: 0;
}

/* --- Add bottom border to the image --- */
.card-img,
.card-img-top,
.quarto-grid-item img {
  border-bottom: 4px solid #ffc425 !important;
}

.quarto-grid-item .card-body.post-contents {
  padding: 0.25rem 0.5rem !important; /* 0.25rem top/bottom, 0.5rem left/right */
}


/* --- Frontpage announcement--- */
/* --- Frontpage announcement --- */
/* Frontpage Giving Day callout */
.callout.givingday {
  border-left: 4px solid #ffc425;   /* gold left border */
  background-color: #fffbe6;        /* soft yellow background */
  padding: 1em;
  border-radius: 0.5em;
}

/* Gold top bar for the title */
.callout.givingday .callout-title {
  background-color: #ffc425;        /* gold bar */
  color: #000;                      /* black text */
  font-weight: bold;
  padding: 0.5em 1em;
  border-top-left-radius: 0.5em;
  border-top-right-radius: 0.5em;
  margin: -1em -1em 1em -1em;       /* extend the bar full width of callout */
}

.callout.testimonial {
  border-left: 4px solid #ffc425;      /* green accent */
  background-color: #f0f8f5;           /* soft background */
  padding: 1em 1.5em;
  border-radius: 0.5em;
  font-style: italic;
  color: #333;
  margin: 1em 0;
}

.callout.testimonial blockquote {
  margin: 0;
}
