﻿:root {
  --bg-dark: #23262d;
  --bg-light: #dcdcdc;
  --text: rgb(20, 20, 20);
  --accent: rgb(3, 126, 85);
  --white: #ffffff;
  --container: 1140px;
  --radius: 7px;
  --shadow: 4px 0 20px -5px rgba(0, 0, 0, 0.1);
  --gap: 2rem;
  --header-height: 82px;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Quicksand', Arial, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: .3s all ease;
}

img, video, canvas { display: block; max-width: 100%; }
.container {
  width: min(var(--container), calc(100% - 30px));
  margin: 0 auto;
}
.site-wrap { position: relative; }
.site-section { padding: 5em 0; }
.bg-light { background: var(--bg-light); }
.mb-5 { margin-bottom: 3rem; }

.t { display: none; }
html[data-lang="hu"] .t-hu,
html[data-lang="en"] .t-en,
html[data-lang="de"] .t-de { display: inline; }
html[data-lang="hu"] .t-hu.block,
html[data-lang="en"] .t-en.block,
html[data-lang="de"] .t-de.block { display: block; }

.section-heading {
  margin: 0 0 0.8rem;
  color: #000;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
}

.section-copy {
  width: min(760px, 100%);
  margin: 0 auto 3.5rem;
  text-align: center;
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 2rem;
  font-size: 1.1rem;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.btn:hover,
.btn:focus {
  border-color: #fff;
  color: #fff;
}

.site-navbar {
  z-index: 1999;
  position: fixed;
  top: 0;
  width: 100%;
  transition: .3s all ease;
  background: transparent;
}

.nav-container {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  min-height: var(--header-height);
  column-gap: 2rem;
}

.site-logo {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.site-logo a { color: #fff; }
.text-bg-color { color: var(--bg-dark); }

.site-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .15rem;
}

.site-menu > li > a {
  padding: 20px 16px;
  color: rgba(255, 255, 255, 0.78);
  display: inline-block;
}

.site-menu > li > a:hover,
.site-menu > li > a.active { color: #fff; }

.site-menu > li > a.menu-button,
.mobile-nav-list a.menu-button {
  color: #121212;
  background: #fff;
  border: 1px solid rgba(20, 20, 20, 0.7);
  border-radius: 999px;
  box-shadow: 0 8px 20px -18px rgba(0, 0, 0, 0.8);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease, color .25s ease, background .25s ease;
}

.site-menu > li > a.menu-button {
  padding: 11px 18px;
  margin-left: 10px;
  line-height: 1.25;
  white-space: nowrap;
}

.site-menu > li > a.menu-button:hover,
.site-menu > li > a.menu-button:focus,
.site-menu > li > a.menu-button.active,
.mobile-nav-list a.menu-button:hover,
.mobile-nav-list a.menu-button:focus,
.mobile-nav-list a.menu-button.active {
  color: #121212;
  border-color: var(--accent);
  box-shadow: 0 12px 24px -18px rgba(3, 126, 85, 0.55);
  transform: translateY(-1px);
}

.lang-switch,
.mobile-lang-switch {
  display: inline-flex;
  gap: .35rem;
  align-items: center;
}

.lang-pill {
  appearance: none;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.82);
  font: inherit;
  font-weight: 600;
  padding: .35rem .72rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}

.lang-pill:hover,
.lang-pill.is-active {
  color: #fff;
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.12);
}

.site-menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 48px;
  height: 48px;
}

.site-navbar.is-sticky {
  background: #fff;
  box-shadow: var(--shadow);
}

.site-navbar.is-sticky .site-logo a,
.site-navbar.is-sticky .site-menu-toggle,
.site-navbar.is-sticky .site-menu > li > a { color: #000; }

.site-navbar.is-sticky .site-menu > li > a:hover,
.site-navbar.is-sticky .site-menu > li > a.active { color: var(--bg-dark); }

.site-navbar.is-sticky .site-menu > li > a.menu-button {
  color: #121212;
  border-color: rgba(20, 20, 20, 0.7);
  background: #fff;
}

.site-navbar.is-sticky .site-menu > li > a.menu-button:hover,
.site-navbar.is-sticky .site-menu > li > a.menu-button:focus,
.site-navbar.is-sticky .site-menu > li > a.menu-button.active {
  color: #121212;
  border-color: var(--accent);
}

.site-navbar.is-sticky .lang-pill {
  color: #000;
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.14);
}

.site-navbar.is-sticky .lang-pill.is-active,
.site-navbar.is-sticky .lang-pill:hover {
  background: rgba(0,0,0,.08);
  border-color: rgba(0,0,0,.24);
}

.site-navbar.shrink .site-menu > li > a { padding-top: 14px; padding-bottom: 14px; }

.site-mobile-menu {
  width: 300px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 2200;
  padding-top: 20px;
  background: #fff;
  height: 100vh;
  transform: translateX(110%);
  box-shadow: -10px 0 20px -10px rgba(0, 0, 0, 0.1);
  transition: .3s all ease-in-out;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transition: .3s all ease;
}

body.offcanvas-menu .site-mobile-menu { transform: translateX(0); }
body.offcanvas-menu .mobile-menu-overlay { opacity: 1; visibility: visible; }

.site-mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-inline: 20px;
  min-height: 40px;
}

.site-mobile-menu-close {
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: #000;
}

.site-mobile-menu-body {
  overflow-y: auto;
  position: relative;
  padding: 0 20px 20px;
  height: calc(100vh - 52px);
  padding-bottom: 150px;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-list li { width: 100%; }
.mobile-nav-list a {
  display: block;
  width: 100%;
  color: #212529;
  padding: 10px 20px;
  font-size: 20px;
}

.mobile-nav-list a.menu-button {
  width: calc(100% - 20px);
  margin: 10px 10px 0;
  padding: 12px 18px;
  text-align: center;
}

.mobile-lang-switch {
  margin-top: 1rem;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.mobile-lang-switch .lang-pill {
  color: #000;
  border-color: rgba(0,0,0,.15);
  background: rgba(0,0,0,.04);
}

.mobile-lang-switch .lang-pill.is-active {
  background: rgba(0,0,0,.1);
}

.site-blocks-cover {
  background: var(--bg-dark) url('images/background.png') center center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.site-blocks-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(35,38,45,.92) 0%, rgba(35,38,45,.86) 38%, rgba(35,38,45,.76) 55%, rgba(35,38,45,.80) 100%);
}

.site-blocks-cover,
.site-blocks-cover .hero-inner {
  min-height: 360px;
  height: 58vh;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(560px, 1fr) minmax(280px, .9fr);
  gap: 2rem;
  align-items: center;
  padding-top: calc(var(--header-height) + 8px);
  padding-bottom: 1.2rem;
}

.hero-copy {
  padding-left: 12px;
  max-width: 730px;
}

.hero-copy h1 {
  margin: 0 0 .45rem;
  font-size: clamp(2.6rem, 5vw, 3.5rem);
  color: #fff;
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
}

.hero-subline {
  margin: 0 0 1.2rem;
  color: #fff;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
}

.typed-line {
  margin-top: 1rem;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  min-height: 1.5em;
}

.hero-visual {
  min-height: 250px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.about-section { padding-top: 3.6rem; }
.about-stack {
  display: grid;
  gap: 1.4rem;
  align-items: start;
}

.earthquake-panel {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.video-panel {
  position: relative;
  width: 100%;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.embedded-video {
  display: block;
  width: min(100%, 700px);
  height: auto;
  margin: 0 auto;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease;
}

.embedded-video.is-ready {
  opacity: 1;
  visibility: visible;
}

.video-panel {
  min-height: auto;
  padding: 18px 0;
}

#glcanvas {
  width: min(720px, 90vw);
  height: 75px;
  margin: 0 auto;
  background: transparent;
}

.video-panel {
  min-height: auto;
  padding: 0;
  margin: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  color: rgba(35,38,45,.8);
}

.video-placeholder-card {
  display: inline-grid;
  gap: .5rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(35,38,45,.08);
  min-width: 240px;
}

.video-placeholder-card strong {
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .85rem;
}

.carousel-shell {
  --per-view: 3;
  --gap: 2rem;
  position: relative;
  overflow: hidden;
}

.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex;
  gap: var(--gap);
  transition: transform .8s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.carousel-card {
  flex: 0 0 calc((100% - (var(--gap) * (var(--per-view) - 1))) / var(--per-view));
  min-width: 0;
}

.carousel-nav {
  position: absolute;
  inset: calc(50% - 26px) 0 auto 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}

.carousel-shell:hover .carousel-nav,
.carousel-shell:focus-within .carousel-nav { opacity: 1; }

.carousel-btn {
  pointer-events: auto;
  width: 52px;
  height: 52px;
  margin-inline: -6px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.85);
  box-shadow: 0 4px 20px -5px rgba(0,0,0,.15);
  color: var(--bg-dark);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.image-placeholder {
  border-radius: 7px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(35,38,45,.12), rgba(35,38,45,.03)), linear-gradient(90deg, rgba(255,255,255,.2), rgba(255,255,255,0));
  border: 1px solid rgba(35,38,45,.09);
  position: relative;
  overflow: hidden;
}

.image-placeholder::before,
.image-placeholder::after {
  content: '';
  position: absolute;
  background: rgba(35,38,45,.09);
  border-radius: 999px;
}

.image-placeholder::before {
  width: 64%;
  height: 64%;
  left: -8%;
  bottom: -26%;
  transform: rotate(-16deg);
  border-radius: 22px;
}

.image-placeholder::after {
  width: 28%;
  aspect-ratio: 1;
  right: 11%;
  top: 16%;
}

.training-card figure { margin: 0 0 0.5rem; }
.training-card h3,
.service-card h3,

.ref-text h3 {
  margin: 0 0 .25rem;
  line-height: 1.28;
  color: #000;
  font-weight: 700;
}

.training-card h3 { font-size: 1.5rem; text-align: center; min-height: 2.0rem; }
.training-card p { margin: 0; text-align: center; font-size: 1rem; }
.service-card { background: #fff; padding: 30px; }
.service-card h3 { font-size: 1.2rem; text-align: center; }
.service-card p,
.ref-text p { margin: 0; font-size: 1rem; }

.highlight-carousel {
  padding-bottom: 6px;
}

.highlight-carousel .carousel-viewport {
  overflow: hidden;
  padding-bottom: 14px;
}
.highlight-carousel .carousel-nav {
  opacity: 1;
  z-index: 3;
}

.highlight-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(35,38,45,.08);
  box-shadow: 0 22px 44px -36px rgba(0,0,0,.28);
}

.highlight-media {
  margin: 0;
  aspect-ratio: 16 / 10;
  background: #ffffff;
  border-bottom: 1px solid rgba(35,38,45,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .75rem;
}

.highlight-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.highlight-copy {
  padding: 1.15rem 1.2rem 1.25rem;
}

.highlight-copy h3 {
  margin: 0 0 .65rem;
  color: #111;
  font-size: 1.28rem;
  line-height: 1.22;
}

.highlight-copy p {
  margin: 0;
  color: rgba(35,38,45,.84);
  font-size: 1rem;
  line-height: 1.7;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.reference-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(35,38,45,.08);
  box-shadow: 0 18px 40px -34px rgba(0,0,0,.22);
}

.reference-media,
.research-media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: transparent;
  border-bottom: 1px solid rgba(35,38,45,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.reference-image,
.research-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ref-text h3,
.research-copy h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
  color: #111;
}

.ref-text {
  padding: 1rem 1.15rem 1.15rem;
}

.ref-text h3 {
  min-height: calc(1.2em * 2);
  display: flex;
  align-items: flex-start;
}



.project-year {
  display: inline-block;
  margin-top: .45rem;
  color: rgba(35,38,45,.55);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ref-subtitle,
.research-summary {
  margin: .6rem 0 0;
  color: rgba(35,38,45,.84);
  font-size: 1rem;
  line-height: 1.65;
}

.research-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
  align-items: stretch;
}

.research-item {
  display: grid;
  grid-template-columns: minmax(180px, 38%) minmax(0, 1fr);
  gap: 0;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(35,38,45,.08);
  box-shadow: 0 18px 40px -34px rgba(0,0,0,.22);
}

.research-media {
  border-bottom: 0;
  border-right: 1px solid rgba(35,38,45,.06);
  aspect-ratio: auto;
  min-height: 100%;
}

.research-copy {
  min-width: 0;
  padding: 1rem 1.15rem 1.15rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
}

.partner-card {
  min-height: 146px;
  padding: 1.2rem;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(35,38,45,.08);
  box-shadow: 0 18px 40px -34px rgba(0,0,0,.24);
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-card-dark {
  background: #272b33;
  border-color: rgba(39,43,51,.55);
}

.partner-logo {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-logo-erbg { max-height: 58px; }
.partner-logo-st { max-height: 50px; }
.partner-logo-up { max-height: 88px; }
.partner-logo-gs { max-height: 74px; }
.partner-logo-archikon { max-height: 60px; }
.partner-logo-gl { max-height: 52px; }
.partner-logo-poka { max-height: 62px; }
.partner-logo-intercad { max-height: 54px; }
.partner-logo-bme { max-height: 64px; }

.partner-logo-mtm {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  transform: none;
}
.contact-name { margin-bottom: 0; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-card {
  min-height: 145px;
  padding: 1.4rem;
  border-radius: 7px;
  background: rgba(255,255,255,.5);
  border: 1px solid rgba(35,38,45,.08);
}

.contact-card h4 {
  margin: 0 0 .5rem;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
}

.site-footer {
  padding: 2em 0;
  background: var(--bg-dark);
  color: rgba(255,255,255,.5);
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 1.6rem;
}

.site-footer h4 {
  margin: 0 0 .75rem;
  color: #fff;
  font-size: 1rem;
}

.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: #fff; }
.site-footer .border-top {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.4rem;
  font-size: .95rem;
}

.linkedin {
  width: 42px;
  aspect-ratio: 1;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  font-weight: 700;
  font-size: .95rem;
}

.page-blog {
  background:
    radial-gradient(circle at top right, rgba(3, 126, 85, 0.12), transparent 32%),
    linear-gradient(180deg, #f5f6f2 0%, #ffffff 34%, #f3f5f3 100%);
}

.page-blog .site-navbar {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.page-blog .site-logo a,
.page-blog .site-menu-toggle,
.page-blog .site-menu > li > a {
  color: #121212;
}

.page-blog .site-menu > li > a:hover,
.page-blog .site-menu > li > a.active {
  color: var(--bg-dark);
}

.page-blog .lang-pill {
  color: #000;
  background: rgba(0,0,0,.04);
  border-color: rgba(0,0,0,.14);
}

.page-blog .lang-pill.is-active,
.page-blog .lang-pill:hover {
  background: rgba(0,0,0,.08);
  border-color: rgba(0,0,0,.24);
}

.blog-hero {
  position: relative;
  padding: calc(var(--header-height) + 70px) 0 4rem;
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.72)),
    radial-gradient(circle at 20% 20%, rgba(3, 126, 85, 0.10), transparent 42%);
  pointer-events: none;
}

.blog-hero-inner {
  position: relative;
  z-index: 1;
}

.blog-hero-copy {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.blog-eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.blog-hero h1 {
  margin: 0 0 1.1rem;
  color: #121212;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.05;
}

.blog-intro {
  width: min(760px, 100%);
  margin: 0 auto;
  font-size: 1.08rem;
  color: rgba(18, 18, 18, 0.8);
}

.blog-section {
  padding-top: 1.2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}


.blog-card-media {
  margin: -1.5rem -1.5rem 1.15rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  border-bottom: 1px solid rgba(35, 38, 45, 0.08);
  background: #f5f7f4;
}

.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card {
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(35, 38, 45, 0.10);
  box-shadow: 0 24px 50px -38px rgba(0, 0, 0, 0.35);
}

.blog-card-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: .28rem .7rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(3, 126, 85, 0.10);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.blog-card h3 {
  margin: 0 0 .75rem;
  color: #111;
  font-size: 1.28rem;
  line-height: 1.3;
}

.blog-card p {
  margin: 0;
  color: rgba(20, 20, 20, 0.76);
}

@media (max-width: 1199px) {
  .nav-container {
    grid-template-columns: 1fr auto;
  }
  .site-navigation,
  .lang-switch { display: none; }
  .site-menu-toggle { display: inline-grid; justify-self: end; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .carousel-shell { --per-view: 2; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .site-blocks-cover,
  .site-blocks-cover .hero-inner {
    min-height: 380px;
    height: auto;
  }
  .hero-inner {
    padding-top: calc(var(--header-height) + 28px);
    padding-bottom: 2rem;
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding-left: 0;
    max-width: 100%;
  }
  .hero-copy h1 {
    white-space: normal;
    font-size: 2.4rem;
  }
  .video-panel { min-height: 320px; }
  .blog-hero {
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 3rem;
  }
  .blog-hero h1 {
    font-size: 2.35rem;
  }
}

@media (max-width: 760px) {
  .site-section { padding: 4rem 0; }
  .carousel-shell { --per-view: 1; }
  .contact-grid,
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .highlight-grid,
  .partners-grid { grid-template-columns: 1fr; }
  .partner-card { min-height: 128px; padding: 1rem; }
  .partner-logo { max-height: 56px; }
  .carousel-nav { opacity: 1; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card { padding: 1.25rem; }
  .blog-card-media { margin: -1.25rem -1.25rem 1rem; }
  .blog-hero h1 { font-size: 2rem; }
  .blog-intro { font-size: 1rem; }
}

.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.blog-card-link:hover,
.blog-card-link:focus {
  color: inherit;
  transform: translateY(-4px);
  border-color: rgba(3, 126, 85, 0.45);
  box-shadow: 0 28px 60px -36px rgba(3, 126, 85, 0.38);
}

.page-article {
  background:
    radial-gradient(circle at top right, rgba(3, 126, 85, 0.10), transparent 28%),
    linear-gradient(180deg, #f7f8f5 0%, #ffffff 32%, #f3f5f3 100%);
}

.article-hero {
  padding: calc(var(--header-height) + 70px) 0 2.6rem;
}

.article-hero-inner,
.article-shell {
  position: relative;
  z-index: 1;
}

.article-hero-copy {
  max-width: 900px;
  margin: 0 auto;
}

.article-backlink {
  display: inline-flex;
  margin-bottom: 1.2rem;
  color: var(--accent);
  font-weight: 700;
}

.article-backlink:hover,
.article-backlink:focus {
  color: #025a3d;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
  margin: 1rem 0 1.2rem;
  color: rgba(18, 18, 18, 0.68);
  font-size: .95rem;
  font-weight: 600;
}

.article-meta-sep {
  color: rgba(18, 18, 18, 0.32);
}

.article-lead {
  width: min(820px, 100%);
  margin: 0;
  font-size: 1.08rem;
  color: rgba(18, 18, 18, 0.8);
  text-align: justify;
}

.article-section {
  padding-top: 1rem;
}

.article-shell {
  width: min(880px, 100%);
  margin: 0 auto;
}

.article-content {
  padding: 2rem;
  border-radius: 24px;
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(35, 38, 45, 0.08);
  box-shadow: 0 26px 60px -42px rgba(0, 0, 0, 0.3);
}

.article-content h2,
.article-content h3 {
  color: #111;
  line-height: 1.2;
}

.article-content h2 {
  margin: 0 0 .9rem;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
}

.article-content h3 {
  margin: 0 0 .6rem;
  font-size: 1.15rem;
}

.article-content p {
  margin: 0 0 1.25rem;
  color: rgba(20, 20, 20, 0.82);
  text-align: justify;
}

.article-image {
  margin: 0 0 1.6rem;
  overflow: hidden;
  border-radius: 18px;
  background: transparent;
}

.article-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.article-image-wide img {
  min-height: 240px;
}

.article-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 1.2rem 0 1.6rem;
}

.article-split > div {
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  background: rgba(3, 126, 85, 0.05);
  border: 1px solid rgba(3, 126, 85, 0.12);
}

.article-points {
  margin: 0;
  padding-left: 1.2rem;
  color: rgba(20, 20, 20, 0.82);
}

.article-points li + li {
  margin-top: .65rem;
}

@media (max-width: 1199px) {
  .article-split { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
  .article-hero {
    padding-top: calc(var(--header-height) + 48px);
  }
  .article-content {
    padding: 1.6rem;
  }
}

@media (max-width: 760px) {
  .article-content {
    padding: 1.2rem;
    border-radius: 18px;
  }
  .article-hero h1 { font-size: 2rem; }
  .article-meta { font-size: .9rem; }
}


/* Blog doctoral series additions */
.article-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.6rem;
}

.article-figure-grid .article-image {
  margin: 0;
}

.article-image figcaption {
  padding: .75rem .95rem .95rem;
  font-size: .92rem;
  line-height: 1.5;
  color: rgba(20, 20, 20, 0.72);
  background: rgba(255,255,255,0.88);
  text-align: justify;
}

.article-highlight,
.article-cta {
  margin-top: 1.5rem;
  padding: 1.2rem 1.3rem;
  border-radius: 18px;
}

.article-highlight {
  background: rgba(3, 126, 85, 0.06);
  border: 1px solid rgba(3, 126, 85, 0.12);
}

.article-highlight h3,
.article-cta h3 {
  margin-top: 0;
}

.article-cta {
  background: #ffffff;
  border: 1px solid rgba(35, 38, 45, 0.08);
  box-shadow: 0 18px 42px -34px rgba(0, 0, 0, 0.24);
}

@media (max-width: 760px) {
  .article-figure-grid {
    grid-template-columns: 1fr;
  }
}



.article-grid figure figcaption {
  text-align: justify;
}


