/*=================================================
  GLOBAL LAYOUT & UTILITIES
=================================================*/

.main-content {
  width: 100%;
  max-width: calc(var(--layout-max-width) + 2 * var(--space-lg));
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  gap: 0;
}

@media (max-width: 992px) {
  .main-content {
    padding: 0 var(--space-md);
  }
}

@media (max-width: 576px) {
  .main-content {
    padding: 0 var(--space-sm);
  }
}

.page-wrapper {
  background: var(--color-white);
}

.bg-porcelain,
.bg-light-bg {
  background: var(--color-porcelain);
}

.bg-white {
  background: var(--color-white);
}

.text-accent {
  color: var(--color-sage) !important;
}

.text-accent:hover {
  text-decoration-color: var(--color-blush);
  text-decoration-thickness: 2px;
}

.text-slate {
  color: var(--color-slate) !important;
}

.border-default {
  border: var(--border-width) solid var(--color-silver);
}

.stack-md > * + * {
  margin-top: var(--space-md);
}

.stack-lg > * + * {
  margin-top: var(--space-lg);
}

.grid-gap {
  gap: var(--grid-gap);
}

.card-grid {
  display: grid;
  gap: var(--grid-gap);
}

.hero-section {
  position: relative;
  background-image: url('../images/bg/bg-3-2560.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  color: var(--color-sage-dark);
  overflow: hidden;
  min-height: clamp(140px, 18vh, 220px);
  height: clamp(140px, 18vh, 220px);
}

@media (min-width: 768px) {
  .hero-section {
    min-height: clamp(160px, 22vh, 250px);
    height: clamp(160px, 22vh, 250px);
  }
}

@media (min-width: 1200px) {
  .hero-section {
    min-height: clamp(180px, 25vh, 280px);
    height: clamp(180px, 25vh, 280px);
  }
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 225, 215, 0.2) 50%, rgba(255, 255, 255, 0.05) 100%);
}

.hero-section .hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--layout-max-width);
  padding: var(--space-md);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

@media (min-width: 768px) {
  .hero-section .hero-content {
    padding: var(--space-lg);
  }
}

.hero-section .hero-title {
  margin-bottom: 0.5rem;
  color: var(--color-sage-dark);
  font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.6rem);
}

@media (min-width: 768px) {
  .hero-section .hero-title {
    margin-bottom: 0.625rem;
    font-size: clamp(2.2rem, 1.8rem + 2vw, 3rem);
  }
}

.hero-section .hero-subtitle {
  max-width: 56ch;
  margin: 0 auto;
  /* color: rgba(39, 49, 52, 0.85); */
  color: var(--color-slate);
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.125rem);
}

@media (min-width: 768px) {
  .hero-section .hero-subtitle {
    font-size: var(--font-size-base);
  }
}

.hero-section .hero-text {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.125rem);
}

@media (min-width: 768px) {
  .hero-section .hero-text {
    font-size: var(--font-size-base);
  }
}

.hero-title-inline {
  color: var(--color-sage-dark);
  font-weight: var(--weight-regular);
}

.section-band {
  display: grid;
  gap: var(--space-lg);
  border-radius: 0;
  background: var(--color-white);
  padding: var(--section-padding-mobile) var(--space-lg);
  box-shadow: none;
}

@media (min-width: 768px) {
  .section-band {
    padding: var(--section-padding-top) var(--space-lg) var(--section-padding-bottom);
  }
}

.section-band.section-band--full {
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

.section-band--soft-sage {
  background: var(--tint-sage-12);
}

.section-band--soft-blush {
  background: var(--tint-blush-12);
}

.section-band--plain {
  background: var(--color-white);
}

.section-band--image {
  background: transparent;
  padding: 0;
  border-radius: 0;
  display: block;
}
@media (min-width: 768px) {
  .card-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/*=================================================
  NAVIGATION
=================================================*/

.navbar {
  background: var(--color-white) !important;
  border-bottom: var(--border-width) solid var(--color-silver);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  transition: background-color var(--transition-base);
}

.navbar .container,
.navbar .container-fluid {
  max-width: 1180px;
}

.navbar-brand {
  font-family: var(--font-family-heading);
  font-weight: var(--weight-regular);
  font-size: 1.25rem;
  color: var(--color-charcoal) !important;
  letter-spacing: var(--letter-spacing-tight);
}

.navbar-brand .separator {
  font-weight: var(--weight-regular);
  opacity: 0.6;
  margin: 0 0.4rem;
}

.navbar-nav {
  gap: 0.75rem;
  align-items: center;
}

.nav-link {
  position: relative;
  padding: 0.25rem 0;
  font-weight: var(--weight-regular);
  color: var(--color-charcoal) !important;
  transition: color var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 1px;
  background: var(--color-sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.nav-link:hover {
  color: var(--color-sage) !important;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--color-sage) !important;
}

.navbar-toggler {
  border: var(--border-width) solid var(--color-silver);
  border-radius: var(--border-radius-md);
  padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

/*=================================================
  HERO
=================================================*/

/*=================================================
  BUTTONS
=================================================*/

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: var(--font-family-body);
  font-weight: var(--weight-regular);
  font-size: 1rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--border-radius-btn);
  border: var(--border-width) solid var(--color-sage);
  background: transparent;
  color: var(--color-sage);
  text-decoration: none;
  transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}

.btn:hover {
  background: var(--tint-sage-08);
  color: var(--color-sage);
  text-decoration: none;
}

.btn-outline-sage,
.btn-outline-primary {
  background: transparent;
  color: var(--color-sage);
  border-color: var(--color-sage);
}

.btn-outline-sage:hover,
.btn-outline-primary:hover {
  background: var(--tint-sage-08);
  color: var(--color-sage);
}

.btn-outline-accent {
  background: transparent;
  color: var(--color-blush);
  border-color: var(--color-blush);
}

.btn-outline-accent:hover {
  background: var(--tint-blush-08);
  color: var(--color-blush);
}

.btn-solid-sage,
.btn-primary,
.btn-cta {
  background: var(--color-sage);
  border-color: var(--color-sage);
  color: var(--color-white);
}

.btn-solid-sage:hover,
.btn-primary:hover,
.btn-cta:hover {
  background: var(--color-mist);
  border-color: var(--color-mist);
  color: var(--color-white);
}

.btn-accent {
  background: var(--color-blush);
  border-color: var(--color-blush);
  color: var(--color-sage-dark);
}

.btn-accent:hover {
  background: var(--color-blush-soft);
  border-color: var(--color-blush-soft);
  color: var(--color-sage-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--color-sage);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--tint-sage-08);
  border-color: var(--color-sage);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.95rem;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}

.btn + .btn {
  margin-left: 0.75rem;
}

/*=================================================
  CARDS & PANELS
=================================================*/

.card,
.section-card,
.panel {
  background: var(--color-white);
  border: var(--border-width) solid var(--border-color-card);
  border-radius: var(--border-radius-md);
  padding: var(--card-padding);
  box-shadow: none;
  transform: translateY(0);
  transition: transform var(--transition-base), border-color var(--transition-base), background-color var(--transition-base);
}

.stat-card,
.course-card,
.area-card,
.publication-card,
.research-card,
.service-card,
.news-card,
.testimonial-card,
.skill-category,
.education-item,
.interest-card,
.role-item,
.sleq-summary,
.timeline-section,
.media-card {
  background: var(--color-white);
  border: var(--border-width) solid var(--border-color-card);
  border-radius: var(--border-radius-md);
  padding: var(--card-padding);
  box-shadow: none;
  transform: translateY(0);
  transition: transform var(--transition-base), border-color var(--transition-base), background-color var(--transition-base);
}

.card:hover,
.section-card:hover,
.panel:hover,
.stat-card:hover,
.course-card:hover,
.area-card:hover,
.publication-card:hover,
.research-card:hover,
.service-card:hover,
.news-card:hover,
.testimonial-card:hover,
.skill-category:hover,
.education-item:hover,
.interest-card:hover,
.role-item:hover,
.sleq-summary:hover,
.timeline-section:hover,
.media-card:hover {
  border-color: var(--color-sage);
  transform: translateY(-2px);
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .section-card,
  .panel,
  .stat-card,
  .course-card,
  .area-card,
  .publication-card,
  .research-card,
  .service-card,
  .news-card,
  .testimonial-card,
  .skill-category,
  .education-item,
  .interest-card,
  .role-item,
  .sleq-summary,
  .timeline-section,
  .media-card {
    transition: none;
  }

  .card:hover,
  .section-card:hover,
  .panel:hover,
  .stat-card:hover,
  .course-card:hover,
  .area-card:hover,
  .publication-card:hover,
  .research-card:hover,
  .service-card:hover,
  .news-card:hover,
  .testimonial-card:hover,
  .skill-category:hover,
  .education-item:hover,
  .interest-card:hover,
  .role-item:hover,
  .sleq-summary:hover,
  .timeline-section:hover,
  .media-card:hover {
    transform: none;
  }
}

.card h3,
.card h4,
.card h5,
.card-title {
  font-family: var(--font-family-heading);
  font-weight: var(--weight-regular);
  margin-bottom: 0.85rem;
}

.card p,
.card-body p {
  font-family: var(--font-family-body);
}

.card-footer {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: var(--border-width) solid var(--color-silver);
  background: transparent;
}

.card-footer .text-accent {
  font-weight: var(--weight-regular);
}

.section-header {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.section-header h2 {
  font-weight: var(--weight-regular);
}

/*=================================================
  CHIPS & BADGES
=================================================*/

.chip,
.tag,
.badge,
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: var(--border-width) solid rgba(237, 175, 184, 0.2);
  background: var(--tint-blush-08);
  color: var(--color-sage-dark);
  font-family: var(--font-family-meta);
  font-size: var(--font-size-xs);
  letter-spacing: 0;
}

.chip--sage,
.badge--sage {
  border-color: rgba(176, 196, 177, 0.2);
  background: var(--tint-sage-08);
  color: var(--color-sage);
}

.chip--neutral {
  border-color: var(--color-silver);
  background: var(--color-porcelain);
  color: var(--color-charcoal);
}

/* Highlight ribbon - micro blush accent */
.highlight-ribbon {
  position: relative;
  padding-left: 1rem;
}

.highlight-ribbon::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-blush);
  border-radius: 999px;
}

/*=================================================
  LISTS & TIMELINES
=================================================*/

.timeline {
  position: relative;
  margin: 0;
  padding-left: 1.5rem;
  border-left: var(--border-width) solid var(--color-silver);
}

.timeline-item {
  margin-bottom: var(--space-lg);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -0.58rem;
  top: 0.15rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--color-white);
  border: var(--border-width) solid var(--color-sage);
}

/*=================================================
  TABLES
=================================================*/

.table-ledger {
  background: var(--color-white);
  border: var(--border-width) solid var(--color-silver);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.table-ledger table {
  border: none;
}

.table-ledger tbody tr:hover td {
  background: var(--tint-sage-08);
}

/*=================================================
  FORMS
=================================================*/

.form-section {
  background: var(--color-white);
  border: var(--border-width) solid var(--color-silver);
  border-radius: var(--border-radius-md);
  padding: var(--card-padding);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/*=================================================
  PAGINATION
=================================================*/

.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--border-radius-md);
  border: var(--border-width) solid transparent;
  color: var(--color-charcoal);
  text-decoration: none;
  transition: border-color var(--transition-base), color var(--transition-base);
}

.pagination a:hover {
  border-color: var(--color-sage);
  color: var(--color-sage);
}

.pagination .active a,
.pagination .active span {
  color: var(--color-sage);
  border-color: var(--color-sage);
  border-bottom-width: 2px;
}

/*=================================================
  ALERTS
=================================================*/

.alert {
  display: flex;
  gap: 0.75rem;
  padding: var(--card-padding);
  border-radius: var(--border-radius-md);
  border: var(--border-width) solid var(--color-silver);
  background: var(--color-white);
  color: var(--color-charcoal);
}

.alert--info {
  border-left: 4px solid var(--info-color);
  background: var(--tint-taupe-16);
}

.alert--warning {
  border-left: 4px solid var(--emphasis-color);
  background: var(--tint-blush-16);
  color: var(--color-sage-dark);
}

.alert--error {
  border-left: 4px solid var(--critical-color);
  color: var(--color-sage-dark);
}

/*=================================================
  FOOTER
=================================================*/

footer {
  margin-top: var(--space-2xl);
  padding: var(--space-xl) 0;
  border-top: var(--border-width) solid var(--color-silver);
  background: var(--color-white);
  text-align: center;
  color: var(--color-slate);
  font-size: var(--font-size-sm);
}

footer a {
  color: inherit;
}

footer a:hover {
  color: var(--color-sage);
}

/*=================================================
  MEDIA
=================================================*/

.media-card {
  border: var(--border-width) solid var(--border-color-card);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background: var(--color-white);
}

.media-card__body {
  padding: var(--card-padding);
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(176, 196, 177, 0.032);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.media-card:hover .media-overlay {
  opacity: 1;
}

/*=================================================
  MISC UTILS
=================================================*/

.shadow-none {
  box-shadow: none !important;
}

.border-radius-md {
  border-radius: var(--border-radius-md);
}

.no-list-style {
  list-style: none;
  padding-left: 0;
}
/* Hero sections without page-specific overrides can inherit defaults from hero-split */

/* Teaching page specific: keep hero compact and centered */
.teaching-page .hero-section .hero-content {
  align-items: center;
  justify-content: center;
  text-align: center;
}