:root {
  --bg-color: #ffffff;
  --bg-alt: #f8fafc;
  --text-main: #2c3e50;
  --text-muted: #596a7a;
  --accent: #24678d;
  --accent-hover: #194b68;
  --border-color: #e2e8f0;
  --max-width: 1020px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Oxygen', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.65;
  font-size: 16px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header & Navigation */
header {
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--text-main);
  text-decoration: none;
}

.site-title:hover {
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

nav a:hover,
nav a.active {
  color: var(--accent);
  text-decoration: none;
}

/* Banner matching original Weebly header image */
.hero-banner {
  width: 100%;
  height: 150px;
  background-image: url("uploads/6/4/9/1/64916107/background-images/background-images/1776662782.jpg");
  background-repeat: no-repeat;
  background-position: 50% 46.43%;
  background-size: cover;
  border-bottom: 1px solid var(--border-color);
}

/* Main Content Layout */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

section {
  margin-bottom: 2.75rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
  border-bottom: none;
}

h1 {
  font-size: 1.95rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

h2 {
  font-size: 1.45rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text-main);
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

p {
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Grids */
.grid-home {
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 2.25rem;
  align-items: start;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.75rem;
  align-items: start;
}

.grid-pubs {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .grid-home,
  .grid-2,
  .grid-pubs {
    grid-template-columns: 1fr;
  }
}

/* Media, Captions & Galleries */
img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.figure {
  text-align: center;
  margin-bottom: 1.25rem;
}

.caption {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
  margin-bottom: 0.65rem;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.photo-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

/* Cards & Buttons */
.card {
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.btn {
  display: inline-block;
  background-color: var(--accent);
  color: #ffffff !important;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.15s ease;
  margin-top: 0.5rem;
}

.btn:hover {
  background-color: var(--accent-hover);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.social-links a {
  font-size: 0.88rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-alt);
}

/* Lists & Publications */
.feature-list {
  margin: 0.75rem 0 1.25rem 1.35rem;
}

.feature-list li {
  margin-bottom: 0.6rem;
}

.pub-item {
  margin-bottom: 1.5rem;
}

.pub-title {
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: underline;
}

/* Protocol Rows */
.protocol-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .protocol-row {
    grid-template-columns: 1fr;
  }
}

.pdf-frame {
  width: 100%;
  height: 360px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}