
@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 — REMOVED 2026-07-31 (PSB).
   The old 4-column Key Facts block (efdd650 + 8673f4e/3b50826/7066d27/e657b75)
   was replaced by the animated "TUMCREATE in figures" counter tiles, which carry
   their own colours from Elementor. The old !important background/colour/icon rules
   fought the new design. Previous version: tumcreate.css.bak-keyfacts-*  */

/* 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;
}

/* ============================================================
   TUMCREATE Layout Audited Fixes — 2026-06-16
   ============================================================ */

/* About Page: Add Blue Divider Lines on About Page Headings */
.elementor-element-cfe1bfa .elementor-heading-title,
.elementor-element-5abef4c .elementor-heading-title {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}
.elementor-element-cfe1bfa .elementor-heading-title::after,
.elementor-element-5abef4c .elementor-heading-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background-color: #0065BD;
    margin-top: 1rem;
}

/* Careers Page: Why TUMCREATE Columns borders and icons */
.elementor-element-8cc3541,
.elementor-element-98ddee9,
.elementor-element-257f5de {
    border-top: none !important;
    padding-top: 0 !important;
}

.elementor-element-be839bc .elementor-heading-title,
.elementor-element-f5750b1 .elementor-heading-title,
.elementor-element-9b78ed2 .elementor-heading-title {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.elementor-element-be839bc .elementor-heading-title::before,
.elementor-element-f5750b1 .elementor-heading-title::before,
.elementor-element-9b78ed2 .elementor-heading-title::before {
    content: "";
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 1.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #0065BD;
}

/* Globe Icon */
.elementor-element-be839bc .elementor-heading-title::before {
    -webkit-mask: 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") no-repeat center / contain;
    mask: 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") no-repeat center / contain;
}

/* Graduation Cap Icon */
.elementor-element-f5750b1 .elementor-heading-title::before {
    -webkit-mask: 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='M22 10v6M2 10l10-5 10 5-10 5z'%3E%3C/path%3E%3Cpath d='M6 12v5c0 2 2 3 6 3s6-1 6-3v-5'%3E%3C/path%3E%3C/svg%3E") no-repeat center / contain;
    mask: 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='M22 10v6M2 10l10-5 10 5-10 5z'%3E%3C/path%3E%3Cpath d='M6 12v5c0 2 2 3 6 3s6-1 6-3v-5'%3E%3C/path%3E%3C/svg%3E") no-repeat center / contain;
}

/* File Text Icon */
.elementor-element-9b78ed2 .elementor-heading-title::before {
    -webkit-mask: 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='M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cpolyline points='10 9 9 9 8 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center / contain;
    mask: 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='M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cpolyline points='10 9 9 9 8 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center / contain;
}

/* ============================================================
   TUMCREATE Layout Audited Fixes Part 2 — 2026-06-17
   ============================================================ */

/* Fix for the absolute blue accent square behind the CREATE Tower image on the homepage */
.elementor-element-9631523 {
    align-self: flex-start !important;
}
.elementor-element-9631523 .e-con-inner {
    position: relative !important;
}
.elementor-element-c19bf80 {
    position: absolute !important;
    bottom: -20px !important;
    left: -20px !important;
    top: auto !important;
    right: auto !important;
    width: 100px !important;
    height: 100px !important;
    background-color: #0065BD !important;
    z-index: 0 !important;
}
.elementor-element-52ef2b7 {
    position: relative !important;
    z-index: 2 !important;
}

/* Force research grid cards to wrap to 2 columns on tablet (max-width 1024px) */
@media (max-width: 1024px) {
    .elementor-element-a1b502b > .e-con-inner > .e-con {
        --width: 48% !important;
    }
}
@media (max-width: 767px) {
    .elementor-element-a1b502b > .e-con-inner > .e-con {
        --width: 100% !important;
    }
}

/* Prevent Proteins4Singapore card title from wrapping on desktop */
.elementor-element-9e42482 {
    width: 100% !important;
}
.elementor-element-9e42482 .elementor-heading-title {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

/* Fix: Ensure partner logos maintain aspect ratio and size */
.elementor-element-769d0a4 img {
    max-width: 120px !important;
    height: auto !important;
    object-fit: contain !important;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.elementor-element-769d0a4 img:hover {
    opacity: 1;
}

/* Hide empty top container on Research Detail pages to align section layout */
.elementor-element-4032d7f {
    display: none !important;
}

/* Force homepage hero section background to TUM Blue to align with mockup */
.elementor-element-58d0b84 {
    background-color: #0065BD !important;
}

/* 2026-07-31: removed forced-transparent override on .elementor-element-cc5bf87.
   Band background is now controlled natively in Elementor (Container > Style > Background = #FFFFFF). */

/* ============================================================
   TUMCREATE Research Overview 3-Column Grid Fix — 2026-06-18
   ============================================================ */

@media (min-width: 1024px) {
  /* Parent container: full width background, centered grid columns */
  .page-id-2050 .elementor-element-82d46b8 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 464px)) !important;
    gap: 24px !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
    margin: 0 !important;
  }
  
  /* Remove row wrappers from layout flow */
  .page-id-2050 .elementor-element-c430958,
  .page-id-2050 .elementor-element-0a7d93a {
    display: contents !important;
  }
}

@media (min-width: 1504px) {
  .page-id-2050 .elementor-element-82d46b8 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Force horizontal cards to be vertical on all viewports */
.page-id-2050 .elementor-element-2a22a1c,
.page-id-2050 .elementor-element-5d17f2c {
  flex-direction: column !important;
}

/* Reset child container widths of Proteins4Singapore & AquaCycle */
.page-id-2050 .elementor-element-2a22a1c > .elementor-widget,
.page-id-2050 .elementor-element-5d17f2c > .elementor-widget,
.page-id-2050 .elementor-element-2a22a1c > .e-con,
.page-id-2050 .elementor-element-5d17f2c > .e-con {
  width: 100% !important;
  max-width: 100% !important;
  --width: 100% !important;
}

/* Constrain More Programmes section content to 1440px centered */
.page-id-2050 .elementor-element-83886fb {
  padding-left: 32px !important;
  padding-right: 32px !important;
}

.page-id-2050 .elementor-element-83886fb > .elementor-widget,
.page-id-2050 .elementor-element-83886fb > .e-con {
  max-width: 1440px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (min-width: 1504px) {
  .page-id-2050 .elementor-element-83886fb {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-id-2050 .elementor-element-83886fb > .elementor-widget,
  .page-id-2050 .elementor-element-83886fb > .e-con {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


