
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");
:root { --tum-blue: #0065BD; --tum-blue-hover: #00529A; --tum-dark: #333333; --tum-grey: #F5F5F5; --tum-border: #E5E5E5; --white: #FFFFFF; }
body { font-family: "Roboto", sans-serif; color: var(--tum-dark); background-color: var(--white); line-height: 1.6; }
h1, h2, h3, h4 { color: var(--tum-dark); font-weight: 700; line-height: 1.2; }
h1 { font-size: 3rem; margin-bottom: 2rem; }
h2 { font-size: 2.25rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
a { text-decoration: none; color: var(--tum-blue); transition: color 0.2s; }
a:hover { color: var(--tum-blue-hover); }
.tum-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 5rem 0; }
.bg-grey { background-color: var(--tum-grey); }
.section-accent { width: 60px; height: 4px; background-color: var(--tum-blue); margin-bottom: 2rem; }
.btn { display: inline-block; background-color: var(--tum-blue); color: var(--white); padding: 0.75rem 2rem; font-weight: 500; font-size: 1rem;  border: none; border-radius: 0; cursor: pointer; transition: background-color 0.2s; text-decoration: none; }
.btn:hover { background-color: var(--tum-blue-hover); color: var(--white); }
.btn-ghost { background-color: transparent; border: 2px solid var(--tum-blue); color: var(--tum-blue); }
.btn-ghost:hover { background-color: var(--tum-blue); color: var(--white); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.card { background: var(--white); border: 1px solid var(--tum-border); transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; height: 100%; }
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.card-img { height: 200px; background-color: #ddd; object-fit: cover; width: 100%; }
.card-content { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.25rem; margin-bottom: 1rem; }
.card-text { color: #666; margin-bottom: 2rem; flex-grow: 1; }
.card-link { font-weight: 500; display: flex; align-items: center; gap: 0.5rem; margin-top: auto; }
.hero-slider { position: relative; min-height: 600px; overflow: hidden; background-color: var(--tum-blue); display: flex; align-items: center; }
.hero-content { position: relative; z-index: 3; color: white; }
.slide-tagline { color: #fff; font-weight: 600;  letter-spacing: 2px; margin-bottom: 1rem; display: block; opacity: 0.9; }
.slide-title { color: white; margin-bottom: 1.5rem; }
.slide-description { font-size: 1.25rem; margin-bottom: 2.5rem; max-width: 650px; line-height: 1.6; color: rgba(255,255,255,0.9); }
.slide-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.slide-btn-ghost { border-color: white !important; color: white !important; background-color: transparent !important; }
.slide-btn-ghost:hover { background-color: white !important; color: var(--tum-blue) !important; }
.partner-strip { padding: 3rem 0; background-color: var(--white); border-bottom: 1px solid var(--tum-border); }
.partner-label { text-align: center; color: #666; font-size: 0.9rem;  letter-spacing: 1px; margin-bottom: 2rem; }
.partner-logos { display: flex; justify-content: center; align-items: center; gap: 4rem; flex-wrap: wrap; opacity: 0.7; }
.site-footer { background-color: var(--tum-dark); color: var(--white); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.site-footer h4 { color: var(--white); font-size: 1.2rem; margin-bottom: 1.5rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: #ccc; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; justify-content: space-between; color: #999; font-size: 0.9rem; }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; gap: 2rem; } .grid-3 { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: 1fr; } h1 { font-size: 2.25rem; } .hero-slider { min-height: 500px; } .slide-description { font-size: 1.1rem; } .slide-actions { flex-direction: column; } }
/* ============================================================
   TUMCREATE Staging Fixes — 2026-06-07
   Additional CSS fixes for audit issues
   ============================================================ */

/* Fix 5: Hide Astra entry-title breadcrumbs on inner pages */
.ast-title-bar-active .entry-title,
body:not(.home) .entry-title {
  display: none !important;
}

/* Also hide the Astra title bar wrapper on non-homepage pages */
body:not(.home) .ast-archive-description,
body:not(.home) .ast-breadcrumbs-wrapper {
  display: none !important;
}

/* Fix: Ensure partner logos container shows all logos */
.elementor-widget-image img[src*="logo"] {
  max-width: 120px !important;
  height: auto !important;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.elementor-widget-image img[src*="logo"]:hover {
  opacity: 1;
}

/* Ensure Elementor footer shows on all pages */
.elementor-location-footer {
  display: block !important;
}

/* Fix: Publication excerpt text overflow */
.tum_publication .entry-summary,
.post-type-archive-tum_publication .entry-summary,
article.type-tum_publication .entry-summary {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-height: 150px;
  overflow: hidden;
}

/* Clean up raw JSON/BibTeX display in publications */
article.type-tum_publication .entry-content pre,
article.type-tum_publication .entry-content code {
  display: none;
}

/* Fix: Research overview programme card grid → 3 columns */
.page-id-2050 .elementor-container {
  flex-wrap: wrap !important;
}

/* Key Facts Section styling */
.elementor-element-efdd650 {
  background-color: #0065BD !important;
  color: white !important;
  padding: 4rem 2rem !important;
  border-radius: 4px !important;
}

.elementor-element-efdd650 .elementor-heading-title,
.elementor-element-efdd650 p {
  color: white !important;
  text-align: center !important;
}

.elementor-element-efdd650 .elementor-container {
  display: flex !important;
  justify-content: space-around !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

.elementor-element-8673f4e,
.elementor-element-3b50826,
.elementor-element-7066d27,
.elementor-element-e657b75 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.elementor-element-8673f4e .elementor-heading-title::before,
.elementor-element-3b50826 .elementor-heading-title::before,
.elementor-element-7066d27 .elementor-heading-title::before,
.elementor-element-e657b75 .elementor-heading-title::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: invert(1);
}

.elementor-element-8673f4e .elementor-heading-title::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='2' y1='12' x2='22' y2='12'%3E%3C/line%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'%3E%3C/path%3E%3C/svg%3E");
}

.elementor-element-3b50826 .elementor-heading-title::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='7'%3E%3C/circle%3E%3Cpolyline points='8.21 13.89 7 23 12 20 17 23 15.79 13.88'%3E%3C/polyline%3E%3C/svg%3E");
}

.elementor-element-7066d27 .elementor-heading-title::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='9' cy='7' r='4'%3E%3C/circle%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'%3E%3C/path%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'%3E%3C/path%3E%3C/svg%3E");
}

.elementor-element-e657b75 .elementor-heading-title::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Ccircle cx='12' cy='12' r='6'%3E%3C/circle%3E%3Ccircle cx='12' cy='12' r='2'%3E%3C/circle%3E%3C/svg%3E");
}


/* Fix: Ensure page is scrollable — set explicit overflow on html element
   to prevent body overflow-x:hidden from breaking viewport scroll */
html {
  overflow-x: hidden;
  overflow-y: scroll;
}
