/* ================= Header Nav Bar ================= */
.navbar {
  background: linear-gradient(135deg, #3f7cb0, #2c5d85);
  padding: 12px 0;
  text-align: center;
  box-shadow: 0 3px 12px rgba(17, 33, 51, 0.25);
  font-size: 1.05rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand,
.navbar-title {
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.navbar .nav-link,
.navbar .nav-link.active {
  color: #fff !important;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  gap: 30px;
}

.navbar li a {
  position: relative;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 10px 6px;
  border-radius: 6px;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.navbar li a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: left 0.25s ease, right 0.25s ease;
}

.navbar li a:hover {
  color: #fff;
  transform: translateY(-2px);
}

.navbar li a:hover::after {
  left: 8%;
  right: 8%;
}

.navbar li a:active {
  transform: translateY(0);
}

.navbar li a.nav-page-active {
  color: #fff;
  font-weight: 700;
}

.navbar li a.nav-page-active::after {
  left: 8%;
  right: 8%;
  background: #ffd76a;
}

/* ================= Navbar Search ================= */
.navbar .aa-DetachedSearchButton {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  padding: 6px 10px;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.navbar .aa-DetachedSearchButton:hover {
  background-color: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.navbar .aa-DetachedSearchButtonIcon svg {
  fill: currentColor;
}

.aa-DetachedOverlay .aa-Form {
  border-radius: 10px;
  border-color: #3f7cb0;
  box-shadow: 0 0 0 3px rgba(63, 124, 176, 0.18);
}

.aa-DetachedOverlay .aa-Form:focus-within {
  border-color: #2c5d85;
  box-shadow: 0 0 0 3px rgba(44, 93, 133, 0.25);
}

.aa-DetachedOverlay .aa-SubmitIcon {
  color: #3f7cb0;
}

.aa-DetachedCancelButton {
  color: #2c5d85;
  font-weight: 600;
}

.aa-Item[aria-selected="true"],
.aa-Item:hover {
  background-color: #eaf2fa !important;
}

.aa-Item mark {
  color: #2c5d85;
  background: transparent;
  font-weight: 700;
}

/* ================= Profile Section ================= */
.profile-img {
  border-radius: 50%;
  width: 220px;
  height: 220px;
  object-fit: cover;
  display: block;
  margin: 0 auto 1.25rem auto;
  border: 4px solid #fff;
  box-shadow: 0 0 0 4px #3f7cb0, 0 14px 30px rgba(24, 39, 58, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 0 4px #2c5d85, 0 18px 36px rgba(24, 39, 58, 0.28);
}

.hero-columns {
  display: flex;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-columns > .column {
    width: 100% !important;
  }

  .hero-columns > .column:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 420px) {
  .profile-img {
    width: 160px;
    height: 160px;
  }
}

.columns {
  gap: 2.5rem;
}

.hero-name {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.2rem;
  color: #1f3a52;
  position: relative;
  display: inline-block;
}

.hero-name::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 0.5rem;
  border-radius: 4px;
  background: linear-gradient(90deg, #3f7cb0, #6fb1e0);
}

.home-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem 0;
}

.home-tags span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2c5d85;
  background: #eaf2fa;
  border: 1px solid color-mix(in srgb, #3f7cb0 25%, transparent);
  padding: 4px 12px;
  border-radius: 999px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 220px;
  margin: 0 auto;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #2c5d85;
  background: #fff;
  border: 1px solid #e4e9ee;
  border-radius: 10px;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(24, 39, 58, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.social-links a:hover {
  transform: translateX(3px);
  background: #eaf2fa;
  box-shadow: 0 4px 10px rgba(24, 39, 58, 0.12);
}


/* ================= Contact Box ================= */
.contact-box {
  background-color: #f6f6f6;
  border-radius: 6px;
  padding: 0.75rem 0;
  margin-top: 1rem;
}

.contact-box a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
  color: #d5cece;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background-color 0.2s ease, border-left-color 0.2s ease;
}

.contact-box a:hover {
  background-color: #eaeaea;
  border-left-color: #555;
}

.contact-box a + a {
  margin-top: 0.1rem;
}

/* ================= Bio Section ================= */
.column p, .column {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ================= News Highlights ================= */
#news {
  margin-top: 3rem;
}

.news-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.news-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.news-timeline::before {
  content: "";
  position: absolute;
  left: 176px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, #3f7cb0, #cfe0ee);
  z-index: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 110px 84px 1fr;
  column-gap: 36px;
  align-items: center;
  padding: 0.6rem 0.6rem 0.6rem 0;
  border-radius: 16px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.news-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 22px rgba(24, 39, 58, 0.08);
}

.news-item:hover .news-icon {
  box-shadow: 0 0 0 4px #eaf2fa, 0 8px 20px rgba(63, 124, 176, 0.32);
  transform: scale(1.06);
}

.news-date {
  text-align: right;
  color: #2c5d85;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.news-icon {
  position: relative;
  z-index: 2;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 0 0 4px #eaf2fa, 0 6px 16px rgba(24, 39, 58, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-icon img {
  width: 58%;
  height: 58%;
  object-fit: contain;
}

.news-item.is-latest .news-icon {
  box-shadow: 0 0 0 4px #eaf2fa, 0 0 0 4px #eaf2fa, 0 6px 18px rgba(63, 124, 176, 0.35);
  animation: news-pulse 2.4s ease-in-out infinite;
}

@keyframes news-pulse {
  0%, 100% { box-shadow: 0 0 0 4px #eaf2fa, 0 6px 18px rgba(63, 124, 176, 0.35); }
  50% { box-shadow: 0 0 0 9px rgba(63, 124, 176, 0.12), 0 6px 18px rgba(63, 124, 176, 0.35); }
}

.news-text {
  font-size: 1.05rem;
  color: #1a1a1a;
  line-height: 1.6;
}

.news-text a {
  color: #1f3a52;
  font-weight: 600;
  text-underline-offset: 3px;
}

.news-text a:hover {
  color: #2c5d85;
}

.news-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #3f7cb0, #6fb1e0);
  padding: 2px 9px;
  border-radius: 999px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .news-timeline::before {
    left: 20px;
  }

  .news-item {
    grid-template-columns: 40px 1fr;
    grid-template-areas:
      "icon date"
      "icon text";
    row-gap: 0.25rem;
    column-gap: 16px;
  }

  .news-date {
    grid-area: date;
    text-align: left;
  }

  .news-icon {
    grid-area: icon;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.2rem;
  }

  .news-icon::after {
    display: none;
  }

  .news-text {
    grid-area: text;
  }
}

/* ================= GENERAL ================= */
body {
  font-size: 1.05rem;
  line-height: 1.7;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.page-layout-full .page-columns {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* ================= TEACHING COURSES ================= */
.courses-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: center;
}

/* ================= COURSE CARD ================= */
.course-card {
  width: 90%;
  max-width: 900px;
  margin: auto;
  border-radius: 14px;
  background: #ada3a3;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: max-width 0.4s ease, box-shadow 0.3s ease;
}

/* Expanded state using [open] */
.course-card[open] {
  max-width: 1150px;
  box-shadow: 0 12px 30px rgba(212, 194, 194, 0.15);
}

/* ================= COURSE HEADER ================= */
.course-header {
  padding: 18px 24px 18px 48px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(90deg, #f3f4f6, #e5e7eb);
  position: relative;
  user-select: none;
  white-space: normal; /* allows multi-line summary */
}

/* Arrow icon */
.course-header .arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  transition: transform 0.3s ease;
}

/* Rotate arrow when open */
.course-card[open] .arrow {
  transform: translateY(-50%) rotate(90deg);
}

/* Course term */
.course-term {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: #555;
  margin-top: 4px;
}

/* ================= COURSE BODY ================= */
.course-body {
  padding: 24px;
  font-size: 0.95rem;
  line-height: 1.7;
  font-family: Georgia, "Times New Roman", serif;
  color: #444;
}

/* ================= DIVIDER ================= */
.course-divider {
  border: none;
  border-top: 1px solid #ddd;
  width: 90%;
  margin: 1.2rem auto;
}

/* ================= HOVER EFFECT ================= */
.course-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  transform: translateY(-4px);
  transition: all 0.3s ease;
}

/* ================= MOBILE RESPONSIVENESS ================= */
@media (max-width: 768px) {
  .course-card,
  .course-card[open] {
    max-width: 100%;
    width: 100%;
  }

  .courses-container {
    gap: 1rem;
  }

  .course-header {
    padding-left: 36px;
  }
}

/* ================= LAB PAGE ================= */
.clavr-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #f4f8fc 0%, #eaf1f8 100%);
  border: 1px solid #e4e9ee;
  border-radius: 20px;
  padding: 2rem 2rem 2.5rem;
  margin: 0.5rem 0 1.5rem 0;
}

.clavr-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.clavr-content {
  position: relative;
  z-index: 1;
}

.clavr-content h2,
.clavr-content h3 {
  color: #1f3a52;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.75);
}

.clavr-content p,
.clavr-content li {
  color: #263241;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.clavr-content a {
  color: #2c5d85;
  font-weight: 600;
}

.clavr-content a:hover {
  color: #17324a;
}

.clavr-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.clavr-reveal.clavr-in-view {
  opacity: 1;
  transform: translateY(0);
}

.notes-card-reveal {
  opacity: 0;
  transform: translateY(55px) scale(0.94);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.notes-card-reveal.clavr-in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.home-reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-reveal.clavr-in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lab-hero {
  margin: 0 0 2rem 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(24, 39, 58, 0.22);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.lab-hero:hover {
  box-shadow: 0 20px 48px rgba(24, 39, 58, 0.3);
  transform: translateY(-2px);
}

.lab-hero img {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  object-position: center 35%;
}

.lab-subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c4a66;
  margin: 0 0 0.3rem 0;
}

.lab-tagline {
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.04em;
  color: #3f7cb0;
  text-transform: uppercase;
  margin: 0 0 1.1rem 0;
}

.lab-intro p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #263241;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
  max-width: 900px;
}

.lab-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 1rem;
  margin: 1.25rem 0 2rem 0;
}

.lab-focus-card {
  --accent: #3f7cb0;
  --accent-dark: #2c4a66;
  --accent-tint: #eaf2fa;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 210px;
  padding: 1.15rem 1.25rem;
  border: 1px solid #e4e9ee;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(24, 39, 58, 0.05);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.lab-focus-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

.lab-focus-card:hover {
  box-shadow: 0 8px 20px rgba(24, 39, 58, 0.12);
  transform: translateY(-3px);
}

.lab-focus-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-tint), #ffffff);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 30%, transparent),
              0 3px 8px color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent-dark);
  margin-bottom: 0.7rem;
  transition: transform 0.25s ease;
}

.lab-focus-card:hover .lab-focus-icon {
  transform: scale(1.08) rotate(-2deg);
}

.lab-focus-icon svg {
  width: 19px;
  height: 19px;
}

.lab-focus-card strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-dark);
  display: block;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.lab-focus-card p {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.5;
  margin: 0 0 0.75rem 0;
}

.lab-focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

.lab-focus-tags span {
  font-size: 0.66rem;
  font-weight: 500;
  background: var(--accent-tint);
  color: var(--accent-dark);
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}

@media (max-width: 768px) {
  .lab-focus-grid {
    grid-template-columns: 1fr;
  }
}

.lab-sponsors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  margin: 1.2rem 0 2rem 0;
}

.lab-sponsor-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 120px;
  padding: 1.2rem;
  border: 1px solid #e4e9ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(24, 39, 58, 0.06);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.lab-sponsor-card:hover {
  box-shadow: 0 8px 20px rgba(24, 39, 58, 0.12);
  transform: translateY(-2px);
}

.lab-sponsor-card img {
  max-height: 60px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
