/* ===============================
   General site style
   =============================== */

body {
  color: #1f2933;
  font-size: 1rem;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: #0b1f3a;
}

a {
  color: #1f5f99;
}

a:hover {
  color: #0b3d66;
}

/* ===============================
   Navbar
   =============================== */

.navbar {
  background-color: #0b1f3a;
}

.navbar-brand,
.navbar-nav .nav-link {
  color: #ffffff !important;
}

.navbar-nav .nav-link:hover {
  color: #d8e6f5 !important;
}

/* ===============================
   General images
   =============================== */

img {
  border-radius: 10px;
}

/* ===============================
   Hide automatic Quarto title block
   =============================== */

.quarto-title-block {
  display: none !important;
}

/* ===============================
   Homepage hero banner
   =============================== */

.hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  max-width: 1320px;
  margin: 1.8rem auto 2.6rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 18px 18px;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.18)
    ),
    linear-gradient(
      rgba(7, 24, 48, 0.10),
      rgba(7, 24, 48, 0.22)
    ),
    url("images/banner.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: saturate(0.58) brightness(1.18) contrast(0.90);
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 980px;
  padding: 2.2rem 2rem;
}

.hero-title {
  display: block;
  color: #ffffff;
  font-size: 2.35rem;
  font-weight: 650;
  line-height: 1.18;
  margin-bottom: 0.75rem;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.30);
}

.hero-subtitle {
  display: block;
  color: #eef4fb;
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}
/* ===============================
   Home content wrapper
   =============================== */

.home-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===============================
   Homepage research theme cards
   =============================== */

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin: 1.6rem 0 2.7rem 0;
}

.theme-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: 4px solid #1f5f99;
  border-radius: 14px;
  padding: 1.5rem 1.35rem 1.45rem 1.35rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.055);
  min-height: 250px;
}

.theme-card h3 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  color: #0b1f3a;
  font-size: 1.35rem;
  line-height: 1.25;
}

.theme-card p {
  font-size: 0.98rem;
  line-height: 1.62;
  color: #374151;
  margin-bottom: 0;
}

.theme-blue {
  border-top-color: #1f5f99;
}

.theme-green {
  border-top-color: #2f7d4c;
}

.theme-red {
  border-top-color: #b23a3a;
}

@media (max-width: 992px) {
  .theme-grid {
    grid-template-columns: 1fr;
  }

  .theme-card {
    min-height: auto;
  }
}
/* ===============================
   Research page layout
   Image left + description right
   =============================== */

.research-row {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e5e7eb;
}

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

.research-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  background-color: #ffffff;
}

.research-text h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: #0b1f3a;
}

.research-text p {
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 0.8rem;
}

/* ===============================
   Footer
   =============================== */

.footer {
  font-size: 0.9rem;
  color: #6b7280;
}

/* ===============================
   Responsive layout
   =============================== */

@media (max-width: 992px) {
  .hero-banner {
    min-height: 340px;
    margin: 0 0 2rem 0;
  }

  .hero-title,
  .hero-content h1 {
    font-size: 2.35rem;
  }

  .hero-subtitle,
  .hero-content h2 {
    font-size: 1.2rem;
  }

  .research-row {
    grid-template-columns: 42% 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    min-height: 300px;
    margin: 0 0 2rem 0;
    background-position: center top;
  }

  .hero-content {
    padding: 2.2rem 1.2rem;
  }

  .hero-title,
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-subtitle,
  .hero-content h2 {
    font-size: 1.05rem;
  }

  .research-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.25rem 0;
  }

  .research-image img {
    max-width: 100%;
  }
}