/* =========================================================
   FINAL OVERRIDES – keep at VERY END of main.css
   ========================================================= */

/* Header stays fixed at the top visually */
.header {
  width: 100%;
}

/* Footer behaves consistently on all pages */
.footer {
  width: 100%;
  flex-shrink: 0;
}

/* Main page container spacing */
.content {
  flex: 1 0 auto;
  width: 100%;
}

/* Global container width */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.hero--profile {
  padding: 3.5rem 0 2rem;
}

.hero-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 0 1.75rem;
}

.hero-photo {
  flex: 0 0 auto;
}

.hero-photo img,
.hero-photo--round img,
.profile-photo {
  width: 180px !important;
  height: 180px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.hero-heading {
  min-width: 0;
}

.hero-name {
  font-family: Roboto, sans-serif !important;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: #1A202C;
}

.hero-title {
  font-size: 1.35rem;
  margin: 0 0 0.25rem;
  opacity: 0.9;
}

.hero-tags {
  margin: 0;
  opacity: 0.85;
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-top: 1.25rem;
}

.meta-line {
  margin: 0 0 0.6rem;
  opacity: 0.95;
}

/* Buttons on homepage */
.pill-row {
  margin-top: 1.25rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background-color: #1f2937;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn:hover {
  background-color: #111827;
  color: #fff;
  text-decoration: none;
}

.btn--ghost {
  background-color: transparent;
  color: #1f2937;
  border: 2px solid #1f2937;
}

.btn--ghost:hover {
  background-color: #1f2937;
  color: #fff;
}

/* =========================
   HEADER NAV
   ========================= */

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav .menu {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 24px;
}

.main-nav .header-search {
  display: flex;
  align-items: center;
}

.main-nav .menu .nav-link {
  text-decoration: none;
}

.main-nav .nav-link.active {
  color: #667EEA;
  font-weight: 600;
}

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

.site-footer,
.site-footer * {
  font-family: Roboto, sans-serif !important;
}

.site-footer {
  background: #434190;
  color: #fff;
  padding: 56px 1.5rem 24px;
}

.site-footer .container {
  max-width: 1080px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.footer-col h3,
.footer-col h4 {
  font-family: Roboto, sans-serif !important;
  font-weight: 700 !important;
  margin: 0 0 14px 0;
}

.footer-col p {
  margin: 0 0 14px 0;
  line-height: 1.6;
  opacity: 0.95;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer .footer-col a {
  display: block;
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.footer-socials a:hover {
  background: rgba(255,255,255,0.28);
}

.site-footer .orcid-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #fff;
}

.site-footer .orcid-badge:hover {
  background: rgba(255,255,255,0.28);
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.25);
  font-size: 14px;
  opacity: 0.85;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 850px) {
  .main-nav .menu,
  .main-nav .header-search {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-top {
    flex-direction: column;
    text-align: center;
  }

  .hero-name {
    font-size: 2.25rem;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-photo img,
  .hero-photo--round img,
  .profile-photo {
    width: 150px !important;
    height: 150px !important;
  }
}
/* ===== CLEAN HEADER FIX ===== */
.main-nav {
  display: flex;
  align-items: center;
  min-height: 80px;
  background: #1A202C !important;
}

.main-nav .menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 24px;
}

.main-nav .header-search {
  display: flex;
  align-items: center;
}

.main-nav .logo {
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav .nav-link {
  color: #fff;
  text-decoration: none;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: #667EEA;
}

#header .form-control {
  min-width: 280px;
}

@media (max-width: 850px) {
  .main-nav .menu,
  .main-nav .header-search {
    display: none;
  }
}
.site-footer .footer-contact span {
  display: inline-block;
  margin-right: 10px;
  font-size: 18px;
  line-height: 1;
}

.site-footer .footer-socials a {
  font-family: Roboto, sans-serif !important;
  font-weight: 700;
  font-size: 18px;
}