/* TUMCREATE homepage — scoped 1:1 port of React mockup HomeDark.tsx + HeroSlider.css */
.tumc-home {
  --tum-blue: #0065BD;
  --tum-blue-hover: #00529A;
  --tum-dark: #333333;
  --tum-grey: #F5F5F5;
  --tum-border: #E5E5E5;
  --white: #FFFFFF;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--tum-dark);
  background: var(--white);
  line-height: 1.6;
}

.tumc-home *,
.tumc-home *::before,
.tumc-home *::after { box-sizing: border-box; }

.tumc-home h1,
.tumc-home h2,
.tumc-home h3,
.tumc-home h4 {
  color: var(--tum-dark);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
}
.tumc-home h1 { font-size: 3rem; margin-bottom: 2rem; }
.tumc-home h2 { font-size: 2.25rem; margin-bottom: 1.5rem; }
.tumc-home h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.tumc-home p { margin-top: 0; }
.tumc-home a { color: var(--tum-blue); text-decoration: none; transition: color .2s; }
.tumc-home a:hover { color: var(--tum-blue-hover); }

.tumc-home .container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}
.tumc-home .section-padding { padding: 5rem 0; }
.tumc-home .bg-grey { background-color: var(--tum-grey); }
.tumc-home .grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.tumc-home .section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
}
.tumc-home .tumc-underline {
  width: 60px;
  height: 4px;
  background: var(--tum-blue);
  margin-bottom: 1.5rem;
}
.tumc-home .btn {
  display: inline-block;
  background: var(--tum-blue);
  color: var(--white);
  padding: .75rem 2rem;
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color .2s;
}
.tumc-home .btn:hover { background: var(--tum-blue-hover); color: var(--white); }
.tumc-home .btn-ghost {
  background: transparent;
  border: 2px solid var(--tum-blue);
  color: var(--tum-blue);
}
.tumc-home .btn-ghost:hover { background: var(--tum-blue); color: var(--white); }

/* Hero slider */
.tumc-home .hero-slider {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background-color: var(--tum-blue);
  display: flex;
  align-items: center;
}
.tumc-home .ken-burns-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  transform: scale(1);
  z-index: 0;
}
.tumc-home .ken-burns-bg.active {
  opacity: 1;
  z-index: 1;
  animation: tumcHomePanBackground 8s linear forwards;
}
@keyframes tumcHomePanBackground {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}
.tumc-home .video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 40%, rgba(0,0,0,0) 70%);
  z-index: 2;
}
.tumc-home .hero-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  position: relative;
  z-index: 3;
}
.tumc-home .hero-content { position: relative; z-index: 3; color: white; }
.tumc-home .slide-tagline {
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  display: block;
}
.tumc-home .slide-title { color: white; margin-bottom: 1.5rem; font-size: 3.5rem; }
.tumc-home .slide-description {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 650px;
  line-height: 1.6;
}

/* Cards */
.tumc-home .research-grid,
.tumc-home .news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.tumc-home .news-grid { gap: 2rem; }
.tumc-home .card {
  background: var(--white);
  border: 1px solid var(--tum-border);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tumc-home .card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,.05); }
.tumc-home .card-img { height: 200px; background-color: #ddd; background-size: cover; background-position: center; width: 100%; }
.tumc-home .card-content { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.tumc-home .card-title { font-size: 1.25rem; margin-bottom: 1rem; }
.tumc-home .card-text { color: #666; margin-bottom: 2rem; flex-grow: 1; }
.tumc-home .card-link { font-weight: 500; display: inline-flex; align-items: center; gap: .5rem; margin-top: auto; }
.tumc-home .card-link svg { width: 16px; height: 16px; }

.tumc-home .intro-image-wrap { position: relative; }
.tumc-home .intro-image-wrap img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0,0,0,.1);
  display: block;
}
.tumc-home .intro-blue-block {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  background: var(--tum-blue);
  z-index: -1;
}

/* News cards */
.tumc-home .news-card { display: flex; flex-direction: column; }
.tumc-home .news-image { position: relative; height: 200px; margin-bottom: 1rem; overflow: hidden; }
.tumc-home .news-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tumc-home .news-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--tum-blue);
  color: #fff;
  padding: .3rem .8rem;
  font-size: .8rem;
  font-weight: 600;
}
.tumc-home .news-title { font-size: 1.15rem; color: var(--tum-dark); margin-bottom: .75rem; line-height: 1.4; font-weight: 700; }
.tumc-home .news-excerpt { color: #555; font-size: .95rem; margin-bottom: 1.5rem; flex-grow: 1; }
.tumc-home .news-meta {
  display: flex;
  justify-content: space-between;
  color: #888;
  font-size: .8rem;
  border-top: 1px solid #eee;
  padding-top: 1rem;
  gap: 1rem;
}

.tumc-home .partner-section { padding: 3rem 0; background: var(--white); }
.tumc-home .partner-label {
  text-align: center;
  color: #666;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}
.tumc-home .partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
  opacity: .7;
}
.tumc-home .partner-logos img { max-width: 180px; object-fit: contain; }

@media (max-width: 1100px) {
  .tumc-home .research-grid,
  .tumc-home .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .tumc-home .container { padding: 0 1.25rem; }
  .tumc-home .section-padding { padding: 3.5rem 0; }
  .tumc-home .hero-slider { min-height: 500px; }
  .tumc-home .slide-title { font-size: 2rem; line-height: 1.2; margin-bottom: 1rem; }
  .tumc-home .slide-tagline { font-size: .75rem; margin-bottom: .5rem; }
  .tumc-home .slide-description { font-size: 1rem; margin-bottom: 1.5rem; max-width: 100%; }
  .tumc-home .grid-2 { grid-template-columns: 1fr; gap: 2.5rem; }
  .tumc-home .section-header-flex { flex-direction: column; align-items: flex-start; }
  .tumc-home .research-grid,
  .tumc-home .news-grid { grid-template-columns: 1fr; }
  .tumc-home .partner-logos { gap: 2rem; }
}

/* ─── Elementor container mobile overrides ─── */
@media (max-width: 767px) {
  /* Force Elementor flex-row containers to stack on mobile */
  .tumc-home .e-con.e-con--row,
  .tumc-home .elementor-element[style*="flex-direction: row"],
  .tumc-home .e-con--row {
    flex-direction: column !important;
  }

  /* Also catch inline-styled grids (Elementor text-editor grids) */
  .tumc-home [style*="grid-template-columns: repeat(4"],
  .tumc-home [style*="grid-template-columns: repeat(3"],
  .tumc-home [style*="grid-template-columns:repeat(4"],
  .tumc-home [style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
  }

  /* News grid cards on homepage */
  .tumc-home .news-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===== B4: research programmes slider + equal card images (PSB 2026-07-25 v2) ===== */
.elementor-element-a1b502b > .e-con-inner{display:flex;flex-wrap:nowrap !important;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
.elementor-element-a1b502b > .e-con-inner::-webkit-scrollbar{display:none;}
.elementor-element-a1b502b > .e-con-inner > .e-con{flex:0 0 calc(25% - 21px) !important;min-width:calc(25% - 21px);scroll-snap-align:start;}
.elementor-element-a1b502b .elementor-widget-image img{width:100%;height:210px !important;object-fit:cover;}
.elementor-element-9800136 .elementor-post__thumbnail{padding-bottom:0 !important;height:200px;}
.elementor-element-9800136 .elementor-post__thumbnail img{height:200px !important;width:100%;object-fit:cover;}
.tumc-progslider-wrap{position:relative;}
.tumc-progslider-btn{position:absolute;top:34%;transform:translateY(-50%);width:42px;height:42px;border-radius:50%;border:1px solid #d5dbe2;background:#fff;color:#072140;font-size:22px;line-height:1;cursor:pointer;z-index:5;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px rgba(20,40,70,.12);padding:0;}
.tumc-progslider-btn:hover{background:#0065BD;color:#fff;border-color:#0065BD;}
.tumc-progslider-prev{left:-10px;}
.tumc-progslider-next{right:-10px;}
@media (max-width:1024px){.elementor-element-a1b502b > .e-con-inner > .e-con{flex-basis:calc(50% - 14px) !important;min-width:calc(50% - 14px);}}
