a:link { text-decoration: none;
    font-weight: 600; }



/* Research area grid - 3 cards in one row */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Exactly 3 columns */
  gap: 30px;
  margin: 40px 0;
}

.navbar {
  position: sticky;
  width: 100%;
}

.navbar-nav {
  margin: 0 auto; /* Centers the nav items */
}

/* Make navbar text bigger */
.navbar-nav .nav-link {
  margin: 0 auto; /* Centers the menu */
  font-size: 1.05rem; /* Increase from default ~1rem */
}

/* Also increase the logo/title text if you have it */
.navbar-brand {
  font-size: 1.1rem;
}

.top-banner {
  background: linear-gradient(135deg, #4a5568, #2d3748);
  padding: 0.2rem 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* Space between logo and text */
}

.banner-content img {
  height: 150px; /* Adjust logo size */
  width: auto;
}

.banner-text {
  text-align: left;
}

.banner-text h1 {
  color: white;
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0;
}

.banner-text .subtitle {
  color: white;
  font-size: 1.2rem;
  opacity: 0.95;
  margin: 0.5rem 0 0 0;
}

/* Adjust body padding for banner height */
body {
  padding-top: 150px; /* Adjust based on banner height */
}

/* Research area grid - responsive */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
  gap: 30px;
  margin: 40px 0;
}

/* Tablets - 2 columns */
@media (max-width: 992px) {
  .research-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile - 1 column */
@media (max-width: 768px) {
  .research-grid {
    grid-template-columns: 1fr;
  }
  
  .research-card img,
  .research-card video {
    height: 250px; /* Taller on mobile */
  }
}

.research-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  background: white;
}

.research-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.research-card img,
.research-card video {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 15px;
}

.research-card h4 {
  margin-top: 0;
  color: #333;
  font-size: 1.3rem;
}

.research-card p {
  color: #666;
  line-height: 1.6;
}

.research-card a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.research-card a:hover {
  text-decoration: underline;
}

div.quarto-post .thumbnail img {
  width: 100%;
  object-fit: contain;
  max-height: 250px;
}

.quarto-listing-category .category {
  font-weight: 500;
  font-size: .825rem;
}

div.quarto-post a {
  color: black;
  font-weight: 500;
}

div.quarto-post .listing-title {
    color: rgb(0, 0, 0); #rgb(110, 22, 12);
    font-size: 1em;
}

div.quarto-post .listing-description {
  font-size: 0.8em;
  margin-bottom: 0em;
}

div.quarto-post .listing-author {
  font-size: 0.9em;
  padding: 0em;
  font-weight: 100;
  text-transform: uppercase;
}


div.quarto-container .quarto-title-meta-contents p{
  font-size: 0.9em;
  font-weight: 100;
}

/* Research section layout */
.research-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin: 30px 0;
  padding: 20px 0;
}

.research-text {
  padding-right: 20px;
}

.research-image {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.research-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Section headers */
.research-section h4 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: #333;
  font-size: 1.2rem;
}

/* Horizontal rules between sections */
hr {
  margin: 50px 0;
  border: none;
  border-top: 2px solid #e0e0e0;
}

/* Responsive layout */
@media (max-width: 768px) {
  .research-section {
    grid-template-columns: 1fr;
  }
  
  .research-image {
    margin-top: 20px;
  }
}

/* Adjust scroll position for fixed navbar */
html {
  scroll-padding-top: 20px; /* Adjust this value based on your navbar + banner height */
}

/* Or target specific anchor sections */
[id] {
  scroll-margin-top: 100px;
}