/* =========================================================
   FENG LAB — custom.css (RESTORED FORMAT + FIXES)
   - Keeps ALL previous formatting (fonts/sizes/layout)
   - Fixes header turning white (targeted, not wildcard)
   - Keeps Featured Pub cards stable + gold titles
   - Keeps Members text visible + large
========================================================= */


/* ===============================
   Header / Lab Caption
================================ */

.zlab_caption {
  font-size: clamp(26px, 3.0vw, 38px) !important;  /* smaller, controlled */
  margin-top: 12px !important;
  margin-bottom: 10px !important;
  line-height: 1.05 !important;
  letter-spacing: 0.6px !important;
}

/* ===============================
   Theme Link Brackets Tweaks
================================ */

a.mfn-link-1:before {
  margin-right: 0;
  content: '[';
  transform: translateX(20px);
}

a.mfn-link-1:after {
  margin-left: 0;
  content: ']';
  transform: translateX(-20px);
}


/* ===============================
   General Typography
================================ */

.project-text {
  font-size: 18px;
  line-height: 1.7;
}

.project-title {
  font-size: 24px;
  margin-bottom: 60px;
  text-align: center;
}

.section-title {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: left;
}


/* =========================================================
   GLOBAL DARK THEME (site-wide)
   IMPORTANT: Keep text sizes from theme; only recolor.
========================================================= */

html, body {
  background: #0b0b0b !important;
  color: #e0e0e0 !important;
}

/* General text */
/* Replace the global blanket rule with a scoped one */
#Content p,
#Content li,
#Content ul,
#Content ol,
#Content span,
#Content div {
  color: #e0e0e0;
}


h1, h2, h3, h4, h5, h6 {
  color: #ffffff !important;
}

/* Links */
a { color: #d4b15f; }
a:hover { color: #f2d37a; }

/* Main wrappers dark */
#Wrapper,
#Header_wrapper,
#Header,
#Top_bar,
#Subheader,
#Content,
#Footer,
.footer_copy,
.section_wrapper,
.content_wrapper {
  background: #0b0b0b !important;
  color: #e0e0e0 !important;
}

/* Rules */
hr {
  border-color: rgba(255,255,255,0.15) !important;
}

/* Slightly soften images on dark (keep your preference) */
img {
  filter: brightness(0.97) contrast(1.02);
}


/* =========================================================
   HARD FIX: Remove WHITE STRIP / WHITE HEADER BACKGROUND
   IMPORTANT: This is the safe version.
   - DO NOT use #Top_bar * {background: transparent} (too destructive)
========================================================= */

/* Force header region to dark, including theme containers */
#Header_wrapper,
#Header,
#Top_bar,
#Top_bar .container,
#Top_bar .column,
#Top_bar .top_bar_left,
#Top_bar .menu_wrapper,
#Top_bar .menu-main-menu-container,
#Top_bar .logo,
#Top_bar .menu,
#Top_bar ul,
#Top_bar li,
#Top_bar nav,
#Top_bar .search_wrapper,
#Top_bar .secondary_menu_wrapper,
#Top_bar .banner_wrapper {
  background-color: #0b0b0b !important;
}

/* Theme sometimes uses pseudo-elements for bars */
#Header_wrapper:before,
#Header_wrapper:after,
#Header:before,
#Header:after,
#Top_bar:before,
#Top_bar:after {
  background: transparent !important;
}

/* Put back one intentional divider */
#Top_bar {
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}

/* If a theme child element is injecting white bg, target common offenders */
#Top_bar .top_bar_left,
#Top_bar .top_bar_right,
#Top_bar .menu_wrapper,
#Top_bar .logo {
  background-color: transparent !important; /* allow parent dark to show through */
}


/* =========================================================
   TOP MENU — clean + restore gold hover/active
========================================================= */

#menu > ul > li > a,
#menu > ul > li > a span {
  color: #e0e0e0 !important;
  font-weight: 500;
  letter-spacing: 0.4px;
  transition: color 0.2s ease;
}

/* Remove theme hover backgrounds */
#menu > ul > li:hover > a {
  background: transparent !important;
}

/* Gold hover + current */
#menu > ul > li > a:hover,
#menu > ul > li.current_page_item > a,
#menu > ul > li.current_page_item > a span {
  color: #d4b15f !important;
}

/* Underline animation */
#menu > ul > li > a span {
  position: relative;
  display: inline-block;
}

#menu > ul > li > a span:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #d4b15f;
  transition: width 0.25s ease;
}

#menu > ul > li > a:hover span:after,
#menu > ul > li.current_page_item > a span:after {
  width: 100%;
}

/* Menu padding */
#menu > ul > li > a {
  padding: 18px 14px !important;
}

.responsive-menu-toggle i {
  color: #e0e0e0 !important;
}


/* =========================================================
   SITE WIDTH CONTROL (safe)
========================================================= */

.container,
.section_wrapper,
.content_wrapper {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}


/* =========================================================
   FEATURED PUBLICATIONS (SIMPLIFIED HTML VERSION)
   Assumes you changed HTML to:
   .featured-grid > .featured-item > a.featured-link > .featured-card
========================================================= */

.featured-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  align-items: stretch;
}

.featured-item {
  display: flex;
  align-items: stretch;
}

.featured-link {
  display: flex;
  width: 100%;
  text-decoration: none !important;
  align-items: stretch;
}

.featured-card {
  background: #ffffff !important;
  padding: 26px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;

  display: flex;
  flex-direction: column;

  width: 100%;
  height: 100%;
}

.featured-link:hover .featured-card {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.14);
}

/* Cover image */
.featured-card .cover {
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: #fff;
  display: block;
  border-radius: 14px;
  margin-bottom: 18px;

  filter: none !important; /* do not dim inside white card */
}

/* Gold title (RESTORED) */
.featured-card .pub-title {
  font-size: 1.35em;
  line-height: 1.3;
  font-weight: 700;
  color: #c89a2b !important;
  margin: 0 0 14px 0;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-link:hover .pub-title {
  color: #a87f1f !important;
}

/* Authors / meta */
.featured-card .pub-authors {
  font-size: 1.1em;
  line-height: 1.6;
  margin: 0 0 10px 0;
  color: #555 !important;
}

.featured-card .pub-meta {
  font-size: 1.1em;
  font-weight: 600;
  color: #333 !important;
  margin-top: auto;
}

/* Prevent “chopped” cards (safe) */
.featured-pubs,
.featured-pubs .section_wrapper,
.featured-pubs .items_group {
  overflow: visible !important;
}

/* Responsive */
@media (max-width: 1100px) {
  .featured-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .featured-grid {
    grid-template-columns: 1fr !important;
  }
  .featured-card .cover {
    height: 280px;
  }
}

/* Make either .featured-item OR theme columns behave the same */
.featured-grid > .featured-item,
.featured-grid > .column {
  display: flex !important;
  align-items: stretch !important;
}

/* =========================================================
   MEMBERS PAGE: wider columns + bigger photos + readable text
   (Keep your previous working behavior)
========================================================= */

.column_our_team {
  width: 42% !important;
  margin-left: 4% !important;
  margin-right: 4% !important;
  float: left !important;
}

/* Make sure row can contain floated children */
.items_group:after {
  content: "";
  display: block;
  clear: both;
}

/* Smaller screens: one per row */
@media (max-width: 1100px) {
  .column_our_team {
    width: 80% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
  }
}

/* Photo frame larger */
.column_our_team .image_frame {
  transform: none !important;
  width: 280px !important;
  height: 280px !important;
  margin: 0 auto !important;
}

/* Image fill */
.column_our_team .image_wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  margin-left: 0 !important;
  max-width: none !important;
}

/* Ensure truly circular */
.column_our_team .image_frame,
.column_our_team .image_wrapper,
.column_our_team img {
  border-radius: 50% !important;
}

/* Members text must be visible on dark */
.column_our_team,
.column_our_team * {
  color: #e0e0e0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Typography scale similar to Home rules */
.column_our_team h4 {
  font-size: calc(22px + (30 - 22) * ((100vw - 400px) / (1200 - 400))) !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
}

.column_our_team .subtitle {
  font-size: calc(16px + (20 - 16) * ((100vw - 400px) / (1200 - 400))) !important;
  line-height: 1.45 !important;
  color: #cfcfcf !important;
}

.column_our_team .desc {
  font-size: calc(16px + (19 - 16) * ((100vw - 400px) / (1200 - 400))) !important;
  line-height: 1.6 !important;
  color: #e0e0e0 !important;
}

/* Divider line */
.column_our_team .hr_color {
  border-color: rgba(255,255,255,0.18) !important;
  margin: 14px 0 !important;
}

/* Alumni / Join Us blocks (use .column_attr.big) */
.column_attr.big,
.column_attr.big p,
.column_attr.big ul,
.column_attr.big li {
  font-size: calc(16px + (19 - 16) * ((100vw - 400px) / (1200 - 400))) !important;
  line-height: 1.7 !important;
  color: #e0e0e0 !important;
}

/* Those blocks use <ul> with <br> */
.column_attr.big ul {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}


/* =========================================================
   HOME: Premium headline (NO box badge)
   Keep your final preferred look
========================================================= */

#Subheader .container .column.one {
  position: relative !important;
}

#Subheader h4.title {
  margin-top: 26px !important;
  margin-bottom: 18px !important;

  font-size: clamp(26px, 2.6vw, 40px) !important;
  font-weight: 850 !important;
  letter-spacing: 0.6px !important;
  line-height: 1.12 !important;
  text-align: center !important;

  color: #ffffff !important;
  text-shadow:
    0 2px 0 rgba(0,0,0,0.55),
    0 10px 26px rgba(0,0,0,0.45) !important;

  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;

  position: relative !important;
}

#Subheader h4.title::after {
  content: "";
  display: block;
  width: min(420px, 72%);
  height: 2px;
  margin: 14px auto 0 auto;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(212,177,95,0),
    rgba(212,177,95,0.95),
    rgba(212,177,95,0)
  );
  opacity: 0.95;
}

#Subheader h4.title::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  width: min(780px, 95%);
  height: 120%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255,255,255,0.08),
    rgba(212,177,95,0.06),
    transparent 70%
  );
  filter: blur(18px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

#Subheader img {
  margin-bottom: 10px !important;
}

/* =========================================================
   HEADER PREMIUM POLISH (ADD-ON, SAFE)
   - keeps your previous menu + underline + gold hover
   - adds subtle premium hover (not flashy)
   - reduces logo size + tightens spacing
   Paste at VERY END of custom.css
========================================================= */

/* --- 1) Make the header feel tighter + cleaner --- */
#Top_bar .top_bar_left {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* If you have a tagline line under the caption, keep it subtle (optional) */
.logo p:not(.zlab_caption) {
  margin: 6px 0 0 0 !important;
  font-size: 14px !important;
  color: rgba(255,255,255,0.70) !important;
}

/* --- 2) Premium menu hover: subtle "pill" highlight + gentle lift --- */
/* Keep your current gold hover color; add background + motion */
#menu > ul > li > a {
  border-radius: 12px !important;
  transition: color 0.18s ease, background-color 0.18s ease, transform 0.15s ease;
}

/* Default: slightly softer than full white */
#menu > ul > li > a,
#menu > ul > li > a span {
  color: rgba(255,255,255,0.88) !important;
}

/* Hover: gold + subtle translucent gold pill background */
#menu > ul > li > a:hover,
#menu > ul > li.current_page_item > a {
  background-color: rgba(212,177,95,0.10) !important;
}

/* Tiny lift on hover (feels premium but not distracting) */
@media (hover: hover) {
  #menu > ul > li > a:hover {
    transform: translateY(-1px);
  }
}

/* --- 3) Give the header a soft “depth” line (very subtle) --- */
#Top_bar {
  box-shadow: 0 10px 24px rgba(0,0,0,0.28) !important; /* subtle depth */
}

/* --- 4) Improve underline animation slightly (keep your old underline) --- */
/* Your underline is already there; this only smooths it */
#menu > ul > li > a span:after {
  transition: width 0.22s ease, opacity 0.22s ease !important;
  opacity: 0.95 !important;
}

/* --- 5) Optional: make the mobile hamburger feel consistent --- */
.responsive-menu-toggle {
  border-radius: 10px !important;
  padding: 8px 10px !important;
}
.responsive-menu-toggle:hover {
  background: rgba(212,177,95,0.10) !important;
}

/* Center the gold divider in Members (hr_color) */
.column_our_team .hr_color {
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
}

/* ===============================
   NEWS PAGE — increase date + description size
================================ */

/* The whole timeline item title line */
.timeline_items li h3 {
  font-size: 26px !important;
  line-height: 1.35 !important;
}

/* The date part (inside <span>) */
.timeline_items li h3 span {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #d4b15f !important;   /* keep it gold for hierarchy */
  margin-right: 10px;
}

/* The description paragraph */
.timeline_items li .desc {
  font-size: 18px !important;
  line-height: 1.7 !important;
  margin-top: 6px;
  color: #e0e0e0 !important;
}

/* ===============================
   Full-width News banner (no crop)
================================ */

.news-banner {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  background: #0b0b0b;
  overflow: hidden;
}

.news-banner img {
  display: block;
  width: 100%;        /* stretch across page */
  height: auto;       /* keep full image */
  object-fit: contain;
}

/* =========================================================
   NEWS timeline: restore the SEGMENTED center line (per item)
   - matches the earlier screenshot look
========================================================= */

/* Turn OFF the continuous line if you added it earlier */
.timeline_items:before {
  content: none !important;
}

/* Make sure timeline is positioning context */
.timeline_items {
  position: relative !important;
}

/* Each item draws its own segment on the center axis */
.timeline_items li {
  position: relative !important;
}

/* Segment line for each item (the “broken” look) */
.timeline_items li:after {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 14px !important;            /* start a bit below the marker */
  bottom: 14px !important;         /* end a bit above next marker */
  width: 2px !important;
  transform: translateX(-50%) !important;
  background: rgba(255,255,255,0.14) !important;  /* subtle on dark */
  pointer-events: none !important;
}

/* Keep the gold marker/connector visible */
.timeline_items li:before {
  background: #d4b15f !important;
  border-color: #d4b15f !important;
}

/* If any wrapper is clipping pseudo-elements */
.timeline_items,
.timeline_items li {
  overflow: visible !important;
}

/* =========================================================
   PHOTOS PAGE — clean grid + equal-height cards (FINAL)
   - keeps aspect ratio (no cropping)
   - aligned cards + captions + titles
========================================================= */

.photo-grid{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  column-gap: 28px;
  row-gap: 36px;                    /* real vertical spacing */
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  align-items: stretch !important;  /* equal-height rows */
}

/* Neutralize theme columns inside grid */
.photo-grid > .photo-item{
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;

  display: flex !important;
  align-items: stretch !important;
}

/* Card */
.photo-grid .photo-card{
  width: 100% !important;
  height: 100% !important;

  display: flex !important;
  flex-direction: column !important;

  background: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 16px !important;
  padding: 14px !important;

  box-shadow: 0 16px 40px rgba(0,0,0,0.35) !important;
}

/* Image frame (same height, keep full image) */
.photo-grid .photo-card img{
  width: 100% !important;
  height: 260px !important;         /* adjust: 220 / 240 / 280 if desired */
  object-fit: contain !important;   /* preserve aspect ratio */
  background: #0b0b0b !important;
  border-radius: 12px !important;
  display: block !important;
}

/* Caption block */
.photo-grid .photo-caption{
  margin-top: auto !important;      /* pin caption to bottom */
  padding-top: 12px !important;

  display: flex !important;
  flex-direction: column !important;

  font-size: 18px !important;
  line-height: 1.55 !important;
  color: rgba(255,255,255,0.88) !important;
}

/* Title line aligned across cards */
.photo-grid .photo-caption strong{
  display: block !important;
  font-size: 20px !important;
  color: #ffffff !important;
  line-height: 1.3 !important;

  min-height: 2.6em;   /* key: aligns titles across cards */
}

/* Subtle premium hover */
@media (hover: hover){
  .photo-grid .photo-card{
    transition: transform 0.18s ease,
                box-shadow 0.18s ease,
                border-color 0.18s ease;
  }

  .photo-grid .photo-card:hover{
    transform: translateY(-3px);
    box-shadow: 0 22px 60px rgba(0,0,0,0.45) !important;
    border-color: rgba(212,177,95,0.22) !important;
  }
}

/* Responsive */
@media (max-width: 1100px){
  .photo-grid{
    grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
  }
}

@media (max-width: 720px){
  .photo-grid{
    grid-template-columns: 1fr !important;
  }

  .photo-grid .photo-card img{
    height: 240px !important;
  }
}

/* =========================================================
   CONTACT PAGE ONLY — text sizing + icon blocks (scoped)
   Requires: <body class="... contact-page">
========================================================= */

/* Main contact text (address, phone, email) */
.contact-page .get_in_touch,
.contact-page .get_in_touch p,
.contact-page .get_in_touch li,
.contact-page .get_in_touch .address_wrapper {
  font-size: 18px !important;
  line-height: 1.65 !important;
  color: #e0e0e0 !important;
}

/* Bold labels like "Office Address" */
.contact-page .get_in_touch strong {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

/* Icon gold blocks */
.contact-page .get_in_touch .icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #d4b15f !important;
  border-radius: 10px;
  margin-right: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.45);
}

/* Dark icon inside the gold block */
.contact-page .get_in_touch .icon i {
  font-size: 22px !important;
  color: #111 !important;
}

/* Layout: icon block + text aligned nicely */
.contact-page .get_in_touch li{
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 14px !important;
  margin-bottom: 18px !important;
}

/* Keep the icon column fixed (prevents icon sitting above text) */
.contact-page .get_in_touch .icon{
  flex: 0 0 50px !important;
  width: 50px !important;
  height: 50px !important;
  margin-right: 0 !important; /* gap handles spacing now */
}

/* Make the text area a proper right column */
.contact-page .get_in_touch .address_wrapper,
.contact-page .get_in_touch .phone p,
.contact-page .get_in_touch .mail p{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: block !important;
}


/* Remove extra spacing that can push things weirdly */
.contact-page .get_in_touch .address_wrapper,
.contact-page .get_in_touch .phone p,
.contact-page .get_in_touch .mail p {
  margin: 0 !important;
}

/* IMPORTANT: do NOT touch subheader title sizing globally.
   If you accidentally changed it earlier elsewhere in custom.css,
   remove that rule instead of overriding it here. */

.contact-page .get_in_touch ul,
.contact-page .get_in_touch li{
  width: 100% !important;
}

@media (max-width: 767px){
  .timeline_items li:after{
    left: 20px !important;   /* match theme’s mobile axis position */
    transform: none !important;
  }
}

/* =========================================================
   CONTACT PAGE — STOP ICON/TEXT OVERLAP (FINAL HOTFIX)
   Requires: <body class="... contact-page">
   Paste at VERY END of custom.css
========================================================= */

/* Make each row a true 2-column layout */
.contact-page .get_in_touch ul li {
  display: grid !important;
  grid-template-columns: 56px 1fr !important;  /* icon | text */
  column-gap: 16px !important;
  align-items: start !important;
  margin-bottom: 18px !important;

  /* kill weird theme positioning */
  position: relative !important;
  padding: 0 !important;
}

/* Gold icon block */
.contact-page .get_in_touch ul li .icon {
  width: 56px !important;
  height: 56px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: #d4b15f !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.45) !important;

  /* ensure it stays in the left column */
  margin: 0 !important;
}

/* Dark icon inside */
.contact-page .get_in_touch ul li .icon i {
  font-size: 22px !important;
  color: #111 !important;
  line-height: 1 !important;
}

/* FORCE text wrappers into the second column and remove theme offsets */
.contact-page .get_in_touch ul li .address_wrapper,
.contact-page .get_in_touch ul li p {
  grid-column: 2 !important;

  /* theme often adds padding/position that causes overlap */
  padding-left: 0 !important;
  margin: 0 !important;
  position: static !important;

  min-width: 0 !important;
  width: 100% !important;
  display: block !important;
}

/* keep your text sizing */
.contact-page .get_in_touch,
.contact-page .get_in_touch p,
.contact-page .get_in_touch li,
.contact-page .get_in_touch .address_wrapper {
  font-size: 18px !important;
  line-height: 1.65 !important;
  color: #e0e0e0 !important;
}

/* Bold label line */
.contact-page .get_in_touch strong {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

/* =========================================================
   CONTACT PAGE — FINAL OVERRIDE (wins over flex + theme)
   Put this as the LAST block in custom.css
========================================================= */

.contact-page .get_in_touch ul li{
  display: grid !important;
  grid-template-columns: 56px 1fr !important;
  column-gap: 16px !important;
  align-items: start !important;
  padding: 0 !important;
}

/* kill any theme offsets applied to children */
.contact-page .get_in_touch ul li *{
  float: none !important;
}

.contact-page .get_in_touch ul li .icon{
  grid-column: 1 !important;
  margin: 0 !important;
  width: 56px !important;
  height: 56px !important;
}

.contact-page .get_in_touch ul li .address_wrapper,
.contact-page .get_in_touch ul li p{
  grid-column: 2 !important;
  padding: 0 !important;
  margin: 0 !important;
  position: static !important;
}

/* =========================================================
   CONTACT PAGE — center icon glyphs perfectly
========================================================= */

.contact-page .get_in_touch ul li .icon{
  display: grid !important;
  place-items: center !important;   /* perfect center */
}

.contact-page .get_in_touch ul li .icon i{
  display: block !important;
  line-height: 1 !important;
  margin: 0 !important;
  transform: translateY(0) !important;
}

/* Phone icon tends to sit low in many icon fonts */
.contact-page .get_in_touch ul li.phone .icon i{
  transform: translateY(-1px) !important;   /* tweak: try -2px if needed */
}

/* CONTACT — force phone glyph centering (even if icon font has weird baseline) */
body.contact-page .get_in_touch li.phone span.icon i.icon-phone{
  position: relative !important;
  top: -2px !important;          /* try -3px if still low */
  line-height: 1 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* ===============================
   FEATURED PAPERS — spacing + tagline color
================================ */

/* Reduce space between authors and journal */
.featured-card .pub-authors {
  margin-bottom: 4px !important;   /* was larger before */
}

/* Reduce space between journal and tagline */
.featured-card .pub-meta {
  margin-bottom: 2px !important;
}

/* Tagline styling: black, clean, tight */
/* Larger, still elegant */
.featured-card .pub-tagline {
  font-size: 1.2em !important;   /* increased from 1.05em */
  line-height: 1.55 !important;
  margin: 2px 0 0 0 !important;
  color: #000000 !important;
  font-style: italic;
}

/* ==========================================
   FEATURED CARDS — align Journal + 2-line tagline
========================================== */

/* 1) Force the journal line to a consistent height */
.featured-card .pub-meta{
  display: block !important;
  line-height: 1.25 !important;
  min-height: 1.25em !important;   /* reserves one line */
  margin-bottom: 4px !important;
}

/* 2) Force the tagline to always take TWO lines */
.featured-card .pub-tagline{
  font-size: 1.2em !important;
  line-height: 1.55 !important;
  min-height: calc(1.55em * 2) !important;  /* exactly 2 lines of space */
  margin: 0 !important;
  color: #000000 !important;

  /* optional: keeps it clean if someone writes a long tagline */
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* =========================================================
   HEADER — FINAL CLEAN CONTROL
   Only adjusts spacing between logo and title/menu
   Does NOT affect header position, font size, or layout
========================================================= */

#Top_bar .top_bar_left{
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;          /* ← ADJUST ONLY THIS (4–16px typical) */
}

/* Logo wrapper: no mystery margins */
#Top_bar .header-logo-col{
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
}

/* Logo image: stable size, no weird stretching */
#Top_bar img.lab-logo-tall{
  height: 100% !important;
  max-height: 120px !important;   /* safety cap */
  width: auto !important;
  display: block !important;
  object-fit: contain !important;
  filter: none !important;
}

/* Text/menu column: no extra spacing injected */
#Top_bar .header-text-col{
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 6px !important;   /* space between title and menu */
}

/* Remove margins that inflate height */
#Top_bar .header-text-col .logo,
#Top_bar .header-text-col .menu_wrapper,
#Top_bar .header-text-col .zlab_caption{
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure menu doesn't bring its own indent */
#Top_bar #menu,
#Top_bar #menu > ul,
#Top_bar #menu-main-menu{
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* HEADER — menu font size only */
#Top_bar #menu > ul > li > a,
#Top_bar #menu > ul > li > a span {
  font-size: 20px !important;   /* ← change this number only */
  line-height: 1.2 !important;
}

/* =========================================================
   HEADER — restore centering of logo + title + menu group
========================================================= */

/* Restore theme container centering */
#Top_bar .container {
  max-width: 1400px !important;     /* same as your site width */
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;    /* restores proper centering */
  padding-right: 20px !important;
}

/* Ensure the inner column does not stretch full screen */
#Top_bar .column.one {
  width: 100% !important;
}

/* Keep your logo + text layout intact */
#Top_bar .top_bar_left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* Control logo distance from text */
#Top_bar .header-logo-col {
  margin-right: 10px !important;   /* ← adjust 4–12px only */
}

/* Menu font size (safe, isolated) */
#Top_bar #menu > ul > li > a,
#Top_bar #menu > ul > li > a span {
  font-size: 18px !important;
}

/* =========================================================
   HEADER — CLEAN RESET + CENTER (logo + title + menu together)
   Paste as the LAST header block in custom.css
========================================================= */

/* 0) Undo any earlier transforms/position nudges */
#Top_bar .header-inner,
#Top_bar .top_bar_left,
#Top_bar .header-logo-col,
#Top_bar img.lab-logo-tall{
  transform: none !important;
  left: auto !important;
  right: auto !important;
}

/* 1) Restore theme container centering (do NOT zero padding) */
#Top_bar .container{
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;

  /* IMPORTANT: prevent accidental flex layouts that pin left */
  display: block !important;
}

/* 2) Ensure column doesn't behave like a flex row */
#Top_bar .container .column.one{
  display: block !important;
  float: none !important;
  width: 100% !important;
}

/* 3) Center the whole header group */
#Top_bar .top_bar_left{
  float: none !important;
  width: 100% !important;

  display: flex !important;
  justify-content: center !important;   /* <-- centers logo+stack as a group */
  align-items: center !important;
  gap: 8px !important;                  /* <-- logo-to-text spacing (adjust 4–12) */

  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* 4) Logo column (no weird reserved space) */
#Top_bar .header-logo-col{
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

/* 5) Logo size: tall, but capped */
#Top_bar img.lab-logo-tall{
  display: block !important;
  height: 100% !important;
  max-height: 120px !important;   /* adjust 100–140 if needed */
  width: auto !important;
  object-fit: contain !important;
  filter: none !important;
}

/* 6) Title + menu stack centered */
#Top_bar .header-text-col{
  flex: 0 1 auto !important;
  min-width: 0 !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;        /* <-- centers title and menu */
  gap: 6px !important;
}

/* Remove extra margins inside stack */
#Top_bar .header-text-col .logo,
#Top_bar .header-text-col .menu_wrapper{
  margin: 0 !important;
  padding: 0 !important;
}

/* Title spacing (prevents “too close to top”) */
#Top_bar .zlab_caption{
  margin: 0 !important;
  padding-top: 4px !important;           /* adjust 0–8 */
}

/* 7) Menu: keep your old feel (font size + no left indent) */
#Top_bar .menu_wrapper,
#Top_bar #menu,
#Top_bar #menu > ul,
#Top_bar #menu-main-menu{
  margin: 0 !important;
  padding: 0 !important;
}

#Top_bar #menu > ul > li > a,
#Top_bar #menu > ul > li > a span{
  font-size: 18px !important;            /* adjust to your old look */
  line-height: 1.2 !important;
}
