:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.62);

  --nav: rgba(8, 76, 97, 0.8);
  --line: #0b5b76;

  --dot: #6c63ff;

  --card-radius: 18px;
  --card-radius-lg: 22px;
  --stroke: rgba(15, 23, 42, 0.08);

  --container-w: 1200px;
}

/* =============================================
   Content Protection - Disable Copy/Select
============================================= */
* {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input,
textarea,
[contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  /* Prevent layout shift when navigating between pages with/without a vertical scrollbar */
  scrollbar-gutter: stable both-edges;
  overflow-y: scroll;
}

body {
  overflow-y: scroll;
}

body {
  margin: 0;
  font-family: Khula, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial;
  color: var(--text);
  background: var(--bg);
}

/* ---------------------------------------------
   Global Typography (Design Text Styles)
   Ensures ALL pages share the same styles for
   Heading/Paragraph/Navigation semantic classes.
---------------------------------------------- */

/* Headings */
.HeadingHeading1\(Plus\) {
  font-family: Khula, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial !important;
  font-size: 100px !important;
  line-height: 100px !important;
  font-weight: 800 !important;
  letter-spacing: -0.13em !important;
  font-style: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
}

.HeadingHeading1 {
  font-family: Khula, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial !important;
  font-size: 35px !important;
  line-height: 40px !important;
  font-weight: 800 !important;
  letter-spacing: 0em !important;
  font-style: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
}

.HeadingHeading2 {
  font-family: Khula, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial !important;
  font-size: 21px !important;
  line-height: 28px !important;
  font-weight: 700 !important;
  letter-spacing: 0em !important;
  font-style: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
}

.HeadingHeading-3 {
  font-family: Khula, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial !important;
  font-size: 19px !important;
  line-height: 25px !important;
  font-weight: 600 !important;
  letter-spacing: 0em !important;
  font-style: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
}

.HeadingHeading-4 {
  font-family: Khula, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial !important;
  font-size: 19px !important;
  line-height: 20px !important;
  font-weight: 400 !important;
  letter-spacing: 0em !important;
  font-style: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
}

.HeadingHeading-5,
.HeadingHeading-6 {
  font-family: Khula, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial !important;
  font-size: 17px !important;
  line-height: 20px !important;
  font-weight: 400 !important;
  letter-spacing: 0em !important;
  font-style: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
}

/* Navigation */
.NavigationMainNavigation {
  font-family: Khula, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial !important;
  font-size: 16px !important;
  line-height: normal !important;
  font-weight: 600 !important;
  letter-spacing: 0em !important;
  font-style: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
}

/* Paragraphs */
.ParagraphDateTime {
  font-family: Khula, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial !important;
  font-size: 14px !important;
  line-height: normal !important;
  font-weight: 400 !important;
  letter-spacing: 0em !important;
  font-style: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
}

.ParagraphParagraph-Default {
  font-family: Khula, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial !important;
  font-size: 17px !important;
  line-height: 27px !important;
  font-weight: 400 !important;
  letter-spacing: 0em !important;
  font-style: normal !important;
  text-transform: none !important;
  text-decoration: none !important;
}

/* Responsive scaling (keeps typography consistent across pages & devices) */
@media (max-width: 768px) {
  .HeadingHeading1\(Plus\) {
    font-size: 56px !important;
    line-height: 56px !important;
    letter-spacing: -0.08em !important;
  }

  .HeadingHeading1 {
    font-size: 28px !important;
    line-height: 32px !important;
  }

  .HeadingHeading2 {
    font-size: 19px !important;
    line-height: 25px !important;
  }

  .ParagraphParagraph-Default {
    font-size: 16px !important;
    line-height: 26px !important;
  }
}

@media (max-width: 480px) {
  .HeadingHeading1\(Plus\) {
    font-size: 44px !important;
    line-height: 44px !important;
    letter-spacing: -0.07em !important;
  }

  .HeadingHeading1 {
    font-size: 24px !important;
    line-height: 30px !important;
  }
}

/* Map custom page headings/paragraphs to the unified system */
.hero-title {
  font-family: Khula, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial !important;
  font-size: 35px !important;
  line-height: 40px !important;
  font-weight: 800 !important;
  letter-spacing: 0em !important;
}

.hero-subtitle,
.project-desc {
  font-family: Khula, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial !important;
  font-size: 17px !important;
  line-height: 27px !important;
  font-weight: 400 !important;
  letter-spacing: 0em !important;
}

.projects-title {
  font-family: Khula, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial !important;
  font-size: 100px !important;
  line-height: 100px !important;
  font-weight: 800 !important;
  letter-spacing: -0.13em !important;
}

.foresty-video-title {
  font-family: Khula, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial !important;
  font-size: 21px !important;
  line-height: 28px !important;
  font-weight: 700 !important;
  letter-spacing: 0em !important;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 28px !important;
    line-height: 32px !important;
  }

  .hero-subtitle,
  .project-desc {
    font-size: 16px !important;
    line-height: 26px !important;
  }

  .projects-title {
    font-size: 56px !important;
    line-height: 56px !important;
    letter-spacing: -0.08em !important;
  }
}

@media (max-width: 480px) {
  .projects-title {
    font-size: 44px !important;
    line-height: 44px !important;
    letter-spacing: -0.07em !important;
  }
}

.page {
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.topbar {
  padding: 24px 0 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--bg);
}

/* Space for fixed header (apply to the content root so header stays stable) */
.page-transition-root {
  padding-top: 88px;
}

/* Cross-page scroll navigation transition */
.page-transition-root {
  will-change: transform, opacity;
}

html.nav-leaving .page-transition-root {
  transition: transform 260ms ease, opacity 260ms ease;
  opacity: 0;
}

html.nav-leaving--next .page-transition-root {
  transform: translateY(-18px);
}

html.nav-leaving--prev .page-transition-root {
  transform: translateY(18px);
}

html.nav-entering .page-transition-root {
  animation: navEnter 260ms ease;
}

html.nav-entering--next .page-transition-root {
  animation-name: navEnterFromBelow;
}

html.nav-entering--prev .page-transition-root {
  animation-name: navEnterFromAbove;
}

@keyframes navEnter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes navEnterFromBelow {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes navEnterFromAbove {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.nav-leaving .page-transition-root {
    transition: none;
  }

  html.nav-entering .page-transition-root {
    animation: none;
  }
}

.topbar-left {
  width: min(var(--container-w), calc(100% - 64px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.home-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(108, 99, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 41px;
  height: 38px;
}

.home-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.home-icon svg path {
  stroke: #1F2E3A !important;
}

.home-icon--active svg path {
  stroke: var(--dot) !important;
}

.home-dot__inner {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--dot);
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.nav a {
  color: var(--nav);
  text-decoration: none;
}

.nav a.nav-active {
  color: var(--dot);
}

.nav a:hover {
  text-decoration: underline;
}

.main {
  width: min(var(--container-w), calc(100% - 64px));
  margin: 0 auto;
  padding: 24px 0 80px;
  position: relative;
}

.vline {
  width: 2px;
  background: var(--line);
  opacity: 0.9;
  margin-left: auto;
  margin-right: auto;
}

.vline--top {
  height: 85px;
  margin-top: 12px;
  margin-bottom: 22px;
}

.vline--mid {
  height: 80px;
  margin-top: 12px;
  margin-bottom: 18px;
}

.vline--bottom {
  height: 80px;
  margin-top: 12px;
  margin-bottom: 0;
}

.hero {
  margin-top: 40px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 12px;
}

.hero-card {
  width: min(350px, 100%);
  height: auto;
  aspect-ratio: 350 / 260;
  border-radius: var(--card-radius-lg);
  overflow: hidden;
  background: #f3f4f6;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-title {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.7);
}

.hero-title .strong {
  font-weight: 700;
  color: rgba(15, 23, 42, 0.9);
}

.hero-subtitle {
  margin: 0;
  font-size: 10px;
  color: rgba(15, 23, 42, 0.55);
}

.hero-resume-btn {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #00485A;
  color: var(--bg);
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.hero-resume-btn:hover {
  filter: brightness(0.96);
}

.hero-resume-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.25);
}

.underline {
  text-decoration: underline;
}

.projects {
  margin-top: 80px;
}

/* Forestry page: embedded video */

/* TeleportHQ positions this heading absolutely at ~17k px, which creates a
   huge blank gap before the video we inject. Force it back into normal flow. */
.foresty-thq-text-elm196 {
  position: static;
  top: auto;
  left: auto;
  display: block;
  margin: 0;
}

.foresty-video-cards-stack {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 44px;
}

.foresty-thq-video-elm {
  flex: 0 0 100%;
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 20px;
}

.foresty-after-video {
  flex: 0 0 100%;
  width: 100%;
  margin-top: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.project {
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(15, 23, 42, 0.1);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.project-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-media {
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.project-body {
  position: relative;
  padding: 16px 16px 14px;
  background: rgba(120, 213, 215, 0.1);
}

.project-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  background: var(--bg);
  clip-path: polygon(0 0, 0 100%, 100% 0);
}

.project-body-inner {
  position: relative;
  text-align: right;
}

.project-head {
  display: grid;
  gap: 4px;
}

.project-title {
  font-size: 13px;
  font-weight: 800;
  color: #084c61;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.project-subtitle {
  font-size: 12px;
  font-weight: 800;
  color: rgba(8, 76, 97, 0.9);
  line-height: 1.15;
}

.project-desc {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(15, 23, 42, 0.78);
}

.project-meta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-date {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.6);
  text-transform: uppercase;
}

.project-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--dot);
}

.project--large {
  grid-column: 1 / span 2;
}

.project--large .project-media {
  aspect-ratio: 21 / 9;
}

.project--highlight {
  background: #fff;
}

.project--highlight .project-media {
  aspect-ratio: 4 / 3;
}

.anchor {
  height: 0;
}

.bg-blob {
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
}

.project-detail {
  margin-top: 28px;
}

.back-link {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--nav);
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.project--detail {
  max-width: 920px;
  margin: 0 auto;
}

.project--detail .project-media {
  aspect-ratio: 16 / 9;
}

.project--detail .project-body {
  padding: 18px 18px 16px;
}

.project--detail .project-title {
  font-size: 18px;
}

.project--detail .project-subtitle {
  font-size: 14px;
}

.project--detail .project-desc {
  font-size: 12px;
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-page .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-page .safemap-thq-group427319143-elm {
    grid-template-columns: repeat(2, 390px);
  }

  .project--large {
    grid-column: 1 / -1;
  }

  .project--highlight {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .topbar-left,
  .main {
    width: calc(100% - 32px);
  }

  .page-transition-root {
    padding-top: 118px;
  }

  .nav {
    gap: 14px;
    flex-wrap: wrap;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .projects-page .grid {
    grid-template-columns: 1fr;
  }

  .projects-page .safemap-thq-group427319143-elm {
    grid-template-columns: 1fr;
    justify-content: center;
  }

  .projects-page .safemap-thq-component-content-blog-post-elm1,
  .projects-page .safemap-thq-thumb-elm1,
  .projects-page .safemap-thq-image-elm1,
  .projects-page .safemap-thq-mask-elm1 {
    width: 100%;
  }

  .vline {
    display: none;
  }

  .hero {
    margin-top: 24px;
  }

  .hero-title {
    font-size: 14px;
    line-height: 1.35;
  }

  .hero-subtitle {
    font-size: 11px;
    line-height: 1.45;
  }

  .projects {
    margin-top: 52px;
  }
}

@media (max-width: 420px) {
  .page-transition-root {
    padding-top: 132px;
  }
}

/* Home page: reuse Safemap listing layout */

.home-projects-thq .safemap-thq-listing-elm {
  position: relative;
  top: auto;
  left: auto;
  width: min(1280px, 100%);
  margin: 44px auto 0;
}

.home-projects-thq .safemap-thq-listingx3-elm {
  width: 100%;
}

.home-projects-thq .safemap-thq-group427319143-elm {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: repeat(3, 390px);
  gap: 44px 38px;
  justify-content: center;
}

.home-projects-thq .safemap-thq-component-content-blog-post-elm1,
.home-projects-thq .safemap-thq-component-content-blog-post-elm2,
.home-projects-thq .safemap-thq-component-content-blog-post-elm3 {
  position: relative;
  top: auto;
  left: auto;
}

.home-projects-thq .home-thq-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.home-projects-thq .safemap-thq-thumb-elm1,
.home-projects-thq .safemap-thq-thumb-elm2,
.home-projects-thq .safemap-thq-thumb-elm3,
.projects-page .safemap-thq-thumb-elm1,
.projects-page .safemap-thq-thumb-elm2,
.projects-page .safemap-thq-thumb-elm3 {
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.home-projects-thq .safemap-thq-image-elm1,
.home-projects-thq .safemap-thq-image-elm3,
.home-projects-thq .safemap-thq-image-elm4,
.projects-page .safemap-thq-image-elm1,
.projects-page .safemap-thq-image-elm3,
.projects-page .safemap-thq-image-elm4 {
  border-radius: 20px 20px 0 0;
}

.home-projects-thq .safemap-thq-mask-elm1,
.home-projects-thq .safemap-thq-mask-elm2,
.home-projects-thq .safemap-thq-mask-elm3,
.projects-page .safemap-thq-mask-elm1,
.projects-page .safemap-thq-mask-elm2,
.projects-page .safemap-thq-mask-elm3 {
  border-radius: 20px 20px 0 0;
}

/* Removed previous media queries to consolidate at the end */

/* Projects page (Projects.svg) */

.projects-page {
  --dot: #9381ff;
  --nav: rgba(8, 76, 97, 0.9);
  --line: #0b5b76;
  --aqua: #78d5d7;
  --teal: #084c61;
}

.projects-main {
  width: min(var(--container-w), calc(100% - 64px));
  margin: 0 auto;
  padding: 42px 0 110px;
  position: relative;
}

.projects-title {
  margin: 18px 0 0;
  text-align: center;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--teal);
}

.projects-title-line {
  width: 2px;
  height: 26px;
  background: var(--line);
  margin: 8px auto 0;
  opacity: 0.9;
}

.projects-grid {
  margin-top: 28px;
}

/* Projects page: Safemap-style cards (same as Home) */

.projects-page .safemap-thq-listing-elm {
  position: relative;
  top: auto;
  left: auto;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.projects-page .safemap-thq-listingx3-elm {
  width: 100%;
}

.projects-page .safemap-thq-group427319143-elm {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: repeat(3, 390px);
  gap: 44px 38px;
  justify-content: center;
}

.projects-page .home-thq-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.projects-page .safemap-thq-component-content-blog-post-elm1 {
  position: relative;
  top: auto;
  left: auto;
}

.projects-page .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 38px;
}

.projects-page .project--large,
.projects-page .project--highlight {
  grid-column: auto;
}

.pcard {
  position: relative;
}

.pcard-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.pcard-media {
  border-radius: 20px;
  overflow: hidden;
  height: 183px;
  background: #e5e7eb;
}

.pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pcard-body {
  position: relative;
  padding: 14px 26px 16px;
  text-align: center;
}

.pcard-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--teal);
}

.pcard-subtitle {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  color: rgba(8, 76, 97, 0.9);
}

.pcard-desc {
  margin: 10px 0 0;
  font-size: 9px;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.62);
}

.pcard-meta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.pcard-meta-text {
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.45);
}

.pcard-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--dot);
}

.pcard-blob {
  position: absolute;
  left: -18px;
  top: 205px;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: rgba(120, 213, 215, 0.18);
  z-index: -1;
}


.projects-bottom-line {
  width: 2px;
  height: 180px;
  background: var(--line);
  margin: 42px auto 0;
  opacity: 0.9;
}

.projects-bg-corner {
  position: absolute;
  right: -110px;
  bottom: -110px;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
}

@media (max-width: 680px) {
  .projects-main {
    width: calc(100% - 32px);
  }

  .projects-page .grid {
    gap: 28px;
  }

  .projects-bottom-line {
    display: none;
  }
}
/* Project Cards Component Styles */

.pc-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 144px 20px;
  box-sizing: border-box;
}

.pc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 44px;
  width: 100%;
}

.pc-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.pc-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.05);
}

.pc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.pc-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f1f5f9;
}

.pc-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.pc-card:hover .pc-image {
  transform: scale(1.05);
}

.pc-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pc-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  font-weight: 600;
}

.pc-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.3;
}

.pc-description {
  font-size: 1rem;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.pc-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.875rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Specific Card Overrides (if needed) */
.pc-card.robomind .pc-thumb {
  background-color: #e0f2fe;
}

.pc-card.cha .pc-thumb {
  background-color: #f0fdf4;
}

@media (max-width: 768px) {
  .pc-container {
    padding: 60px 16px;
  }
  
  .pc-grid {
    gap: 24px;
  }
}


/* Restored Project Cards CSS */

.safemap-thq-listing-elm {
  position: relative;
  top: auto;
  left: auto;
  width: min(1280px, 100%);
  margin: 0 auto;
}

.safemap-thq-listingx3-elm {
  width: 100%;
}

.safemap-thq-group427319143-elm {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: repeat(3, 390px);
  gap: 24px 38px;
  justify-content: center;
}

.home-thq-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.safemap-thq-component-content-blog-post-elm1 {
  position: relative;
  top: auto;
  left: auto;
}

.safemap-thq-thumb-elm1,
.safemap-thq-thumb-elm2,
.safemap-thq-thumb-elm3 {
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.safemap-thq-image-elm1,
.safemap-thq-image-elm3,
.safemap-thq-image-elm4 {
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.safemap-thq-mask-elm1,
.safemap-thq-mask-elm2,
.safemap-thq-mask-elm3 {
  border-radius: 20px 20px 0 0;
}

.safemap-thq-content-elm1 {
  gap: 6px;
  display: flex;
  padding: 195px 0 0;
  z-index: 1;
  align-self: stretch;
  align-items: flex-end;
  flex-direction: column;
}

.safemap-thq-copy-elm1 {
  gap: 10px;
  display: flex;
  align-self: stretch;
  align-items: flex-start;
  flex-shrink: 0;
}

.safemap-thq-headings-elm1 {
  gap: 4px;
  width: 375px;
  display: flex;
  padding: 6px 0;
  flex-grow: 1;
  align-items: flex-end;
  flex-shrink: 0;
  flex-direction: column;
}

.safemap-thq-text-elm63 {
  color: var(--dl-color-solid-tealdark);
  height: auto;
  font-size: 19px;
  align-self: stretch;
  font-style: normal;
  text-align: right;
  font-family: Khula;
  font-weight: 700;
  line-height: 25px;
  font-stretch: normal;
  text-decoration: none;
}

.safemap-thq-text-elm64 {
  font-weight: 700;
}

.safemap-thq-text-elm65 {
  font-weight: 400;
}

.safemap-thq-text-elm67 {
  color: var(--dl-color-solid-tealdark);
  height: auto;
  align-self: stretch;
  text-align: right;
  line-height: 20px;
}

.safemap-thq-roundedrectangle-elm2 {
  width: 5px;
  height: auto;
  align-self: stretch;
  border-radius: 100px;
}

.safemap-thq-deco-elm1 {
  top: 146.90234375px;
  left: 1.9951171875px;
  width: 122.1511001586914px;
  height: 133.09783935546875px;
  display: flex;
  opacity: 0.20;
  position: absolute;
  align-items: flex-start;
  flex-shrink: 1;
}

.safemap-thq-vector-elm2 {
  top: 22.2998046875px;
  left: 0px;
  width: 106px;
  height: 112px;
  position: absolute;
}

.safemap-thq-roundedrectangle-elm1 {
  top: 162.845703125px;
  left: 385.0126953125px;
  width: 5px;
  height: 6px;
  position: absolute;
  border-radius: 100px;
}

@media (max-width: 980px) {
  .safemap-thq-group427319143-elm {
    grid-template-columns: repeat(2, 390px);
  }
}

@media (max-width: 680px) {
  .safemap-thq-group427319143-elm {
    grid-template-columns: 1fr;
    justify-content: center;
  }
  .safemap-thq-component-content-blog-post-elm1,
  .safemap-thq-thumb-elm1,
  .safemap-thq-image-elm1,
  .safemap-thq-mask-elm1 {
    width: 100%;
  }
}


/* =========================================
   FIXED PROJECT CARDS CSS (Restored from Git)
   ========================================= */

/* Container & Grid */
.safemap-thq-listing-elm {
  position: relative;
  top: auto;
  left: auto;
  width: min(1280px, 100%);
  margin: 0 auto;
  display: block;
}

.safemap-thq-listingx3-elm {
  width: 100%;
}

.safemap-thq-group427319143-elm {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: repeat(3, 390px);
  gap: 24px 38px;
  justify-content: center;
}

.home-thq-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Shared Styles for Cards 1, 2, 3 */
.safemap-thq-thumb-elm1,
.safemap-thq-thumb-elm2,
.safemap-thq-thumb-elm3 {
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  position: relative;
  width: 390px;
  height: 283px; /* Approx height based on children */
}

.safemap-thq-image-elm1,
.safemap-thq-image-elm3,
.safemap-thq-image-elm4 {
  top: 0px;
  left: 0px;
  width: 390px;
  height: 182px;
  display: flex;
  overflow: hidden;
  position: absolute;
  align-items: flex-start;
  flex-shrink: 1;
  background-color: rgba(255, 255, 255, 1);
  border-radius: 20px 20px 0 0;
}

.safemap-thq-mask-elm1,
.safemap-thq-mask-elm2,
.safemap-thq-mask-elm3 {
  top: 0px;
  left: 0px;
  width: 390px;
  height: 182px;
  position: absolute;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

/* --- CARD 1: SECURE MEDIA --- */
.safemap-thq-component-content-blog-post-elm1 {
  position: relative;
  top: auto;
  left: auto;
  width: 390px;
  display: flex;
  flex-direction: column;
}

.safemap-thq-deco-elm1 {
  top: 146px;
  left: 2px;
  width: 122px;
  height: 133px;
  display: flex;
  opacity: 0.20;
  position: absolute;
}

.safemap-thq-vector-elm2 {
  top: 22px;
  left: 0px;
  width: 106px;
  height: 112px;
  position: absolute;
}

.safemap-thq-roundedrectangle-elm1 {
  top: 162px;
  left: 385px;
  width: 5px;
  height: 6px;
  position: absolute;
  border-radius: 100px;
}

.safemap-thq-content-elm1 {
  gap: 6px;
  display: flex;
  padding: 195px 0 0;
  z-index: 1;
  align-self: stretch;
  align-items: flex-end;
  flex-direction: column;
}

.safemap-thq-copy-elm1 {
  gap: 10px;
  display: flex;
  align-self: stretch;
  align-items: flex-start;
  flex-shrink: 0;
}

.safemap-thq-headings-elm1 {
  gap: 4px;
  width: 375px;
  display: flex;
  padding: 6px 0;
  flex-grow: 1;
  align-items: flex-end;
  flex-shrink: 0;
  flex-direction: column;
}

.safemap-thq-text-elm63 {
  color: var(--dl-color-solid-tealdark);
  font-size: 19px;
  font-family: Khula;
  font-weight: 700;
  text-align: right;
  line-height: 25px;
}

.safemap-thq-text-elm67 {
  color: var(--dl-color-solid-tealdark);
  text-align: right;
  line-height: 20px;
}

.safemap-thq-roundedrectangle-elm2 {
  width: 5px;
  height: auto;
  align-self: stretch;
  border-radius: 100px;
}

/* --- CARD 2: FORESTRY --- */
.safemap-thq-component-content-blog-post-elm2 {
  position: relative;
  width: 390px;
  display: flex;
  flex-direction: column;
}

.safemap-thq-deco-elm2 {
  top: 162px;
  left: 24px;
  width: 105px;
  height: 120px;
  display: flex;
  opacity: 0.20;
  position: absolute;
}

.safemap-thq-vector-elm3 {
  top: 0px;
  left: 0px;
  width: 106px;
  height: 120px;
  position: absolute;
}

.safemap-thq-roundedrectangle-elm3 {
  top: 162px;
  left: 385px;
  width: 5px;
  height: 6px;
  position: absolute;
  border-radius: 100px;
}

.safemap-thq-content-elm2 {
  gap: 6px;
  display: flex;
  padding: 195px 0 0;
  z-index: 1;
  align-self: stretch;
  align-items: flex-end;
  flex-direction: column;
}

.safemap-thq-copy-elm2 {
  gap: 10px;
  display: flex;
  align-self: stretch;
  align-items: flex-start;
  flex-shrink: 0;
}

.safemap-thq-headings-elm2 {
  gap: 4px;
  width: 375px;
  display: flex;
  padding: 6px 0;
  flex-grow: 1;
  align-items: flex-end;
  flex-shrink: 0;
  flex-direction: column;
}

.safemap-thq-text-elm68 {
  color: var(--dl-color-solid-tealdark);
  text-align: right;
  line-height: 25px;
}

.safemap-thq-text-elm69 {
  color: var(--dl-color-solid-tealdark);
  text-align: right;
  line-height: 20px;
}

.safemap-thq-roundedrectangle-elm4 {
  width: 5px;
  height: auto;
  align-self: stretch;
  border-radius: 100px;
}

.safemap-thq-posted-elm1 {
  gap: 10px;
  display: flex;
  align-self: stretch;
  align-items: center;
  flex-shrink: 0;
  justify-content: flex-end;
}

.safemap-thq-text-elm70 {
  color: var(--dl-color-solid-greydefault);
  flex-grow: 1;
  text-align: right;
}

.safemap-thq-roundedrectangle-elm5 {
  width: 5px;
  height: 5px;
  border-radius: 100px;
}

/* --- CARD 3: SAFEMAP --- */
.safemap-thq-component-content-blog-post-elm3 {
  position: relative;
  width: 390px;
  display: flex;
  flex-direction: column;
}

.safemap-thq-deco-elm3 {
  top: 146px;
  left: 2px;
  width: 122px;
  height: 133px;
  display: flex;
  opacity: 0.20;
  position: absolute;
}

.safemap-thq-vector-elm4 {
  top: 22px;
  left: 0px;
  width: 106px;
  height: 112px;
  position: absolute;
}

.safemap-thq-roundedrectangle-elm6 {
  top: 162px;
  left: 385px;
  width: 5px;
  height: 6px;
  position: absolute;
  border-radius: 100px;
}

.safemap-thq-content-elm3 {
  gap: 6px;
  display: flex;
  padding: 195px 0 0;
  z-index: 1;
  align-self: stretch;
  align-items: flex-end;
  flex-direction: column;
}

.safemap-thq-copy-elm3 {
  gap: 10px;
  display: flex;
  align-self: stretch;
  align-items: flex-start;
  flex-shrink: 0;
}

.safemap-thq-headings-elm3 {
  gap: 4px;
  width: 375px;
  display: flex;
  padding: 6px 0;
  flex-grow: 1;
  align-items: flex-end;
  flex-shrink: 0;
  flex-direction: column;
}

.safemap-thq-text-elm71 {
  color: var(--dl-color-solid-tealdark);
  font-size: 19px;
  font-family: Khula;
  font-weight: 600;
  text-align: right;
  line-height: 25px;
}

.safemap-thq-text-elm74 {
  color: var(--dl-color-solid-tealdark);
  text-align: right;
  line-height: 20px;
}

.safemap-thq-roundedrectangle-elm7 {
  width: 5px;
  height: auto;
  align-self: stretch;
  border-radius: 100px;
}

.safemap-thq-posted-elm2 {
  gap: 10px;
  display: flex;
  align-self: stretch;
  align-items: center;
  flex-shrink: 0;
  justify-content: flex-end;
}

.safemap-thq-text-elm75 {
  color: var(--dl-color-solid-greydefault);
  flex-grow: 1;
  text-align: right;
}

.safemap-thq-roundedrectangle-elm8 {
  width: 5px;
  height: 5px;
  border-radius: 100px;
}

/* --- CARD 4: ROBOMIND --- */
.safemap-thq-frame48095919-elm {
  position: relative;
  width: 815px;
  height: 300px;
  display: flex;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 72, 122, 1) 0%, rgba(13, 72, 122, 1) 100%);
  align-items: flex-start;
  flex-shrink: 0;
  border-radius: 32px 32px 32px 0;
  grid-column: span 2; /* Spans 2 columns */
}

.safemap-thq-ribena-poster {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  object-position: left center;
  border-radius: 32px 32px 32px 0;
  z-index: 0;
}

.safemap-thq-copy-elm4 {
  top: 136px;
  left: 250px;
  width: 565px;
  height: 122px;
  display: flex;
  padding: 12px;
  position: absolute;
  align-items: flex-end;
  flex-shrink: 0;
  border-radius: 12px 0 0 12px;
  background-color: rgba(0, 142, 202, 0.38);
  z-index: 2;
}

.safemap-thq-text-elm76 {
  top: 12px;
  left: 193px;
  color: var(--dl-color-solid-whitedefault);
  width: 360px;
  height: auto;
  position: absolute;
  text-align: right;
  line-height: 28px;
}

.safemap-thq-text-elm77 {
  top: 68px;
  left: 193px;
  color: var(--dl-color-solid-whitedefault);
  width: 360px;
  height: auto;
  position: absolute;
  text-align: right;
  line-height: 20px;
}

.safemap-thq-text-elm78 {
  top: 88px;
  left: 193px;
  color: var(--dl-color-solid-whitedefault);
  width: 360px;
  height: auto;
  position: absolute;
  text-align: right;
  line-height: normal;
}

/* --- CARD 5: CHALLENGE ACCEPTED --- */
.safemap-thq-frame48095920-elm {
  position: relative;
  width: 412px;
  height: 300px;
  display: flex;
  overflow: hidden;
  align-items: flex-start;
  flex-shrink: 0;
  border-radius: 32px 32px 32px 0;
  background-color: rgba(102, 12, 61, 1);
}

.safemap-thq-challenge-poster {
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
}

.safemap-thq-frame48095921-elm,
.safemap-thq-frame48095923-elm,
.safemap-thq-frame48095925-elm,
.safemap-thq-frame48095927-elm,
.safemap-thq-frame48095922-elm,
.safemap-thq-frame48095924-elm,
.safemap-thq-frame48095926-elm,
.safemap-thq-frame48095928-elm {
  width: 76px;
  height: 76px;
  display: flex;
  overflow: hidden;
  position: absolute;
  box-shadow: 0px 4px 20px 4px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  background-color: rgba(113, 10, 60, 1);
}

/* Positioning for the small squares (simplified) */
.safemap-thq-frame48095921-elm { top: 45px; left: 181px; }
.safemap-thq-frame48095923-elm { top: 228px; left: 230px; }
.safemap-thq-frame48095925-elm { top: 189px; left: 364px; }
.safemap-thq-frame48095927-elm { top: 59px; left: 295px; }
.safemap-thq-frame48095922-elm { top: -37px; left: 214px; }
.safemap-thq-frame48095924-elm { top: 146px; left: 263px; }
.safemap-thq-frame48095926-elm { top: 107px; left: 397px; }
.safemap-thq-frame48095928-elm { top: -23px; left: 328px; }

.safemap-thq-copy-elm5 {
  top: 137px;
  left: 42px;
  width: 370px;
  height: 126px;
  display: flex;
  padding: 5px;
  position: absolute;
  align-self: stretch;
  align-items: flex-end;
  flex-shrink: 0;
  border-radius: 12px 0 0 12px;
  flex-direction: column;
  background-color: rgba(113, 10, 60, 0.5);
}

.safemap-thq-text-elm79 {
  color: var(--dl-color-solid-whitedefault);
  width: 360px;
  height: auto;
  text-align: left;
  line-height: 28px;
}

.safemap-thq-text-elm80 {
  color: var(--dl-color-solid-whitedefault);
  width: 360px;
  height: auto;
  text-align: right;
  line-height: 20px;
}

.safemap-thq-text-elm81 {
  color: var(--dl-color-solid-whitedefault);
  width: 360px;
  height: auto;
  text-align: right;
  line-height: normal;
}

.safemap-thq-vector-elm5 {
  width: 180px;
  height: 1px;
}

/* Responsive */
@media (max-width: 980px) {
  .safemap-thq-group427319143-elm {
    grid-template-columns: repeat(2, 390px);
  }
  .safemap-thq-frame48095919-elm {
    grid-column: span 2;
    width: 100%;
  }
  .safemap-thq-frame48095920-elm {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .safemap-thq-group427319143-elm {
    grid-template-columns: 1fr;
    justify-content: center;
  }
  .safemap-thq-frame48095919-elm {
    grid-column: span 1;
    height: auto;
    min-height: 300px;
  }
  .safemap-thq-component-content-blog-post-elm1,
  .safemap-thq-component-content-blog-post-elm2,
  .safemap-thq-component-content-blog-post-elm3 {
    width: 100%;
  }
}


/* =========================================
   FIXED PROJECT CARDS CSS (Restored from Git)
   ========================================= */

/* Container & Grid */

/* =========================================
   PROJECT CARDS - Fixed Stacking Layout
   ========================================= */

.safemap-thq-listing-elm {
  position: relative;
  top: auto;
  left: auto;
  width: min(1280px, 100%);
  margin: 60px auto;
}

.safemap-thq-listingx3-elm {
  width: 100%;
}

.safemap-thq-group427319143-elm {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: repeat(3, 390px);
  gap: 44px 38px;
  justify-content: center;
  align-items: start;
}

.home-thq-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Standard vertical cards - image stacked on top of text */
.safemap-thq-component-content-blog-post-elm1,
.safemap-thq-component-content-blog-post-elm2,
.safemap-thq-component-content-blog-post-elm3 {
  position: relative;
  width: 390px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.safemap-thq-thumb-elm1,
.safemap-thq-thumb-elm2,
.safemap-thq-thumb-elm3 {
  position: relative;
  width: 100%;
  height: 283px;
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.safemap-thq-image-elm1,
.safemap-thq-image-elm2,
.safemap-thq-image-elm3,
.safemap-thq-image-elm4 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 182px;
  display: flex;
  overflow: hidden;
  align-items: flex-start;
  background-color: rgba(255, 255, 255, 1);
  border-radius: 20px 20px 0 0;
}

.safemap-thq-mask-elm1,
.safemap-thq-mask-elm2,
.safemap-thq-mask-elm3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.safemap-thq-deco-elm1,
.safemap-thq-deco-elm2,
.safemap-thq-deco-elm3 {
  position: absolute;
  top: 146px;
  left: 2px;
  width: 122px;
  height: 133px;
  display: flex;
  opacity: 0.20;
  align-items: flex-start;
}

.safemap-thq-vector-elm2,
.safemap-thq-vector-elm3,
.safemap-thq-vector-elm4 {
  position: absolute;
  top: 22px;
  left: 0;
  width: 106px;
  height: 112px;
}

.safemap-thq-roundedrectangle-elm1,
.safemap-thq-roundedrectangle-elm3,
.safemap-thq-roundedrectangle-elm6 {
  position: absolute;
  top: 162px;
  left: 385px;
  width: 5px;
  height: 6px;
  border-radius: 100px;
}

.safemap-thq-content-elm1,
.safemap-thq-content-elm2,
.safemap-thq-content-elm3 {
  position: relative;
  gap: 6px;
  display: flex;
  padding: 195px 0 0;
  z-index: 1;
  width: 100%;
  align-items: flex-end;
  flex-direction: column;
}

.safemap-thq-copy-elm1,
.safemap-thq-copy-elm2,
.safemap-thq-copy-elm3 {
  gap: 10px;
  display: flex;
  width: 100%;
  align-items: flex-start;
  flex-shrink: 0;
}

.safemap-thq-headings-elm1,
.safemap-thq-headings-elm2,
.safemap-thq-headings-elm3 {
  gap: 4px;
  width: 375px;
  display: flex;
  padding: 6px 0;
  flex-grow: 1;
  align-items: flex-end;
  flex-shrink: 0;
  flex-direction: column;
}

.safemap-thq-text-elm63,
.safemap-thq-text-elm68,
.safemap-thq-text-elm71 {
  color: var(--dl-color-solid-tealdark);
  height: auto;
  font-size: 19px;
  align-self: stretch;
  font-style: normal;
  text-align: right;
  font-family: Khula;
  font-weight: 700;
  line-height: 25px;
  font-stretch: normal;
  text-decoration: none;
}

.safemap-thq-text-elm64,
.safemap-thq-text-elm72 {
  font-weight: 700;
}

.safemap-thq-text-elm65 {
  font-weight: 400;
}

.safemap-thq-text-elm67,
.safemap-thq-text-elm69,
.safemap-thq-text-elm74 {
  color: var(--dl-color-solid-tealdark);
  height: auto;
  align-self: stretch;
  text-align: right;
  line-height: 20px;
}

.safemap-thq-roundedrectangle-elm2,
.safemap-thq-roundedrectangle-elm4,
.safemap-thq-roundedrectangle-elm7 {
  width: 5px;
  height: auto;
  align-self: stretch;
  border-radius: 100px;
}

.safemap-thq-posted-elm1,
.safemap-thq-posted-elm2 {
  gap: 10px;
  display: flex;
  width: 100%;
  align-items: center;
  flex-shrink: 0;
  justify-content: flex-end;
}

.safemap-thq-text-elm70,
.safemap-thq-text-elm75 {
  color: var(--dl-color-solid-greydefault);
  height: auto;
  flex-grow: 1;
  text-align: right;
  line-height: normal;
}

.safemap-thq-roundedrectangle-elm5,
.safemap-thq-roundedrectangle-elm8 {
  width: 5px;
  height: 5px;
  border-radius: 100px;
}

/* Wide special cards - RoboMind and CHA */
.safemap-thq-frame48095919-elm,
.safemap-thq-frame48095920-elm {
  position: relative;
  width: 100%;
  height: 300px;
  display: flex;
  overflow: hidden;
  align-items: flex-start;
  border-radius: 32px 32px 32px 0;
  grid-column: span 2;
}

.safemap-thq-frame48095919-elm {
  background: linear-gradient(180deg, rgba(13, 72, 122, 1) 0%, rgba(13, 72, 122, 1) 100%);
}

.safemap-thq-frame48095919-elm::after {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  content: '';
  position: absolute;
  background: linear-gradient(
    90deg,
    rgba(13, 72, 122, 0) 0%,
    rgba(13, 72, 122, 0.05) 45%,
    rgba(13, 72, 122, 0.05) 100%
  );
  z-index: 1;
}

.safemap-thq-frame48095920-elm {
  background-color: rgba(102, 12, 61, 1);
}

.safemap-thq-ribena-poster,
.safemap-thq-challenge-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px 32px 32px 0;
  z-index: 0;
}

.safemap-thq-ribena-poster {
  object-position: left center;
}

.safemap-thq-copy-elm4,
.safemap-thq-copy-elm5 {
  display: flex;
  padding: 12px;
  position: absolute;
  align-items: flex-end;
  flex-shrink: 0;
  border-radius: 12px 0 0 12px;
  z-index: 2;
}

.safemap-thq-copy-elm4 {
  top: 136px;
  left: 250px;
  width: 565px;
  height: 122px;
  background-color: rgba(0, 142, 202, 0.38);
}

.safemap-thq-copy-elm5 {
  top: 137px;
  left: 42px;
  width: 370px;
  height: 126px;
  flex-direction: column;
  background-color: rgba(113, 10, 60, 0.5);
}

.safemap-thq-text-elm76,
.safemap-thq-text-elm77,
.safemap-thq-text-elm78 {
  color: var(--dl-color-solid-whitedefault);
  width: 360px;
  height: auto;
  position: absolute;
  text-align: right;
}

.safemap-thq-text-elm76 {
  top: 12px;
  left: 193px;
  line-height: 28px;
}

.safemap-thq-text-elm77 {
  top: 68px;
  left: 193px;
  line-height: 20px;
}

.safemap-thq-text-elm78 {
  top: 88px;
  left: 193px;
  line-height: normal;
}

.safemap-thq-text-elm79,
.safemap-thq-text-elm80,
.safemap-thq-text-elm81 {
  color: var(--dl-color-solid-whitedefault);
  width: 360px;
  height: auto;
}

.safemap-thq-text-elm79 {
  text-align: left;
  line-height: 28px;
}

.safemap-thq-text-elm80 {
  text-align: right;
  line-height: 20px;
}

.safemap-thq-text-elm81 {
  text-align: right;
  line-height: normal;
}

/* CHA decorative frames */
.safemap-thq-frame48095921-elm,
.safemap-thq-frame48095922-elm,
.safemap-thq-frame48095923-elm,
.safemap-thq-frame48095924-elm,
.safemap-thq-frame48095925-elm,
.safemap-thq-frame48095926-elm,
.safemap-thq-frame48095927-elm,
.safemap-thq-frame48095928-elm {
  width: 76px;
  height: 76px;
  display: flex;
  overflow: hidden;
  position: absolute;
  box-shadow: 0px 4px 20px 4px rgba(0, 0, 0, 0.25);
  align-items: flex-start;
  flex-shrink: 0;
  border-radius: 8px;
  background-color: rgba(113, 10, 60, 1);
}

.safemap-thq-frame48095921-elm {
  top: 45px;
  left: 181px;
}

.safemap-thq-frame48095922-elm {
  top: -37px;
  left: 214px;
}

.safemap-thq-frame48095923-elm {
  top: 228px;
  left: 230px;
}

.safemap-thq-frame48095924-elm {
  top: 146px;
  left: 263px;
}

.safemap-thq-frame48095925-elm {
  top: 189px;
  left: 364px;
}

.safemap-thq-frame48095926-elm {
  top: 107px;
  left: 397px;
}

.safemap-thq-frame48095927-elm {
  top: 59px;
  left: 295px;
}

.safemap-thq-frame48095928-elm {
  top: -23px;
  left: 328px;
}

/* Responsive adjustments */
@media (max-width: 980px) {
  .safemap-thq-group427319143-elm {
    grid-template-columns: repeat(2, 390px);
  }
  
  .safemap-thq-frame48095919-elm,
  .safemap-thq-frame48095920-elm {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .safemap-thq-group427319143-elm {
    grid-template-columns: 1fr;
    justify-content: center;
  }
  
  .safemap-thq-component-content-blog-post-elm1,
  .safemap-thq-component-content-blog-post-elm2,
  .safemap-thq-component-content-blog-post-elm3 {
    width: 100%;
  }
  
  .safemap-thq-thumb-elm1,
  .safemap-thq-thumb-elm2,
  .safemap-thq-thumb-elm3 {
    width: 100%;
  }
  
  .safemap-thq-frame48095919-elm,
  .safemap-thq-frame48095920-elm {
    width: 100%;
    grid-column: span 1;
  }
}

/* =========================================
   PROJECT CARDS OVERRIDE (fix stacking)
   - Keep image + text as ONE card
   - RoboMind spans 2 columns, CHA is 1 column
   ========================================= */

.safemap-thq-listing-elm {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  width: min(1280px, 100%) !important;
  margin: 60px auto !important;
  display: block !important;
}

.safemap-thq-listingx3-elm {
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
}

.safemap-thq-listing-elm .safemap-thq-vector-elm5 {
  display: none !important;
}

.safemap-thq-listing-elm .safemap-thq-group427319143-elm {
  display: grid !important;
  width: 100% !important;
  height: auto !important;
  grid-template-columns: repeat(3, minmax(0, 390px)) !important;
  gap: 44px 38px !important;
  justify-content: center !important;
  align-items: start !important;
}

.safemap-thq-listing-elm .safemap-thq-component-content-blog-post-elm1,
.safemap-thq-listing-elm .safemap-thq-component-content-blog-post-elm2,
.safemap-thq-listing-elm .safemap-thq-component-content-blog-post-elm3 {
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: 390px !important;
  display: flex !important;
  flex-direction: column !important;
}

.safemap-thq-listing-elm .safemap-thq-thumb-elm1,
.safemap-thq-listing-elm .safemap-thq-thumb-elm2,
.safemap-thq-listing-elm .safemap-thq-thumb-elm3 {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

.safemap-thq-listing-elm .safemap-thq-image-elm1,
.safemap-thq-listing-elm .safemap-thq-image-elm3,
.safemap-thq-listing-elm .safemap-thq-image-elm4 {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: 183px !important;
  overflow: hidden !important;
  border-radius: 20px 20px 0 0 !important;
}

.safemap-thq-listing-elm .safemap-thq-mask-elm1,
.safemap-thq-listing-elm .safemap-thq-mask-elm2,
.safemap-thq-listing-elm .safemap-thq-mask-elm3 {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.safemap-thq-listing-elm .safemap-thq-deco-elm1,
.safemap-thq-listing-elm .safemap-thq-deco-elm2,
.safemap-thq-listing-elm .safemap-thq-deco-elm3,
.safemap-thq-listing-elm .safemap-thq-roundedrectangle-elm1,
.safemap-thq-listing-elm .safemap-thq-roundedrectangle-elm3,
.safemap-thq-listing-elm .safemap-thq-roundedrectangle-elm6 {
  position: absolute !important;
}

.safemap-thq-listing-elm .safemap-thq-content-elm1,
.safemap-thq-listing-elm .safemap-thq-content-elm2,
.safemap-thq-listing-elm .safemap-thq-content-elm3 {
  padding: 14px 0 16px !important;
  align-items: flex-end !important;
}

.safemap-thq-listing-elm .safemap-thq-copy-elm1,
.safemap-thq-listing-elm .safemap-thq-copy-elm2,
.safemap-thq-listing-elm .safemap-thq-copy-elm3 {
  width: 100% !important;
  display: flex !important;
  gap: 10px !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

.safemap-thq-listing-elm .safemap-thq-headings-elm1,
.safemap-thq-listing-elm .safemap-thq-headings-elm2,
.safemap-thq-listing-elm .safemap-thq-headings-elm3 {
  width: 375px !important;
  max-width: 375px !important;
  flex-grow: 1 !important;
  display: flex !important;
  padding: 6px 0 !important;
  align-items: flex-end !important;
  flex-direction: column !important;
  text-align: right !important;
}

.safemap-thq-listing-elm .safemap-thq-text-elm63,
.safemap-thq-listing-elm .safemap-thq-text-elm68,
.safemap-thq-listing-elm .safemap-thq-text-elm71,
.safemap-thq-listing-elm .safemap-thq-text-elm67,
.safemap-thq-listing-elm .safemap-thq-text-elm69,
.safemap-thq-listing-elm .safemap-thq-text-elm74 {
  text-align: right !important;
}

.safemap-thq-listing-elm .home-thq-card-link--robomind {
  grid-column: span 2 !important;
}

.safemap-thq-listing-elm .home-thq-card-link--cha {
  grid-column: span 1 !important;
}

.safemap-thq-listing-elm .safemap-thq-frame48095919-elm {
  width: 100% !important;
  max-width: 100% !important;
}

.safemap-thq-listing-elm .safemap-thq-frame48095920-elm {
  width: 100% !important;
  max-width: 100% !important;
}

/* Ensure Row 2 cards sit directly under Row 1 (cancel TeleportHQ absolute positioning) */
.safemap-thq-listing-elm .safemap-thq-frame48095919-elm,
.safemap-thq-listing-elm .safemap-thq-frame48095920-elm {
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: none !important;
}

/* Make sure the links themselves don't get positioned/offset */
.safemap-thq-listing-elm .home-thq-card-link {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
}

@media (max-width: 980px) {
  .safemap-thq-listing-elm .safemap-thq-group427319143-elm {
    grid-template-columns: repeat(2, minmax(0, 390px)) !important;
  }

  .safemap-thq-listing-elm .safemap-thq-frame48095919-elm {
    grid-column: span 2 !important;
  }
}

@media (max-width: 680px) {
  .safemap-thq-listing-elm .safemap-thq-group427319143-elm {
    grid-template-columns: 1fr !important;
  }

  .safemap-thq-listing-elm .safemap-thq-component-content-blog-post-elm1,
  .safemap-thq-listing-elm .safemap-thq-component-content-blog-post-elm2,
  .safemap-thq-listing-elm .safemap-thq-component-content-blog-post-elm3,
  .safemap-thq-listing-elm .safemap-thq-frame48095919-elm,
  .safemap-thq-listing-elm .safemap-thq-frame48095920-elm {
    width: 100% !important;
    max-width: 100% !important;
    grid-column: span 1 !important;
  }
}


/* =========================================
   RESPONSIVE HOME PAGE OVERRIDES
   ========================================= */

/* Force grid to be responsive */
@media (max-width: 1200px) {
  .home-projects-thq .safemap-thq-group427319143-elm {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    width: 100% !important;
    padding: 0 20px;
  }
}

/* Refactor Cards to Flex Layout (Fluid) */
.home-projects-thq .safemap-thq-component-content-blog-post-elm1,
.home-projects-thq .safemap-thq-component-content-blog-post-elm2,
.home-projects-thq .safemap-thq-component-content-blog-post-elm3 {
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
  width: 100% !important;
  max-width: 390px !important;
  margin: 0 auto !important;
  position: relative !important;
}

/* Thumb container: fluid width, aspect ratio based on image */
.home-projects-thq .safemap-thq-thumb-elm1,
.home-projects-thq .safemap-thq-thumb-elm2,
.home-projects-thq .safemap-thq-thumb-elm3 {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 390 / 182 !important;
  position: relative !important;
  border-radius: 20px 20px 0 0 !important;
  overflow: hidden !important;
}

/* Image inside thumb: cover */
.home-projects-thq .safemap-thq-image-elm1,
.home-projects-thq .safemap-thq-image-elm3,
.home-projects-thq .safemap-thq-image-elm4 {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  border-radius: 0 !important; /* Handled by parent */
}

.home-projects-thq .safemap-thq-mask-elm1,
.home-projects-thq .safemap-thq-mask-elm2,
.home-projects-thq .safemap-thq-mask-elm3 {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Content: relative positioning below thumb */
.home-projects-thq .safemap-thq-content-elm1,
.home-projects-thq .safemap-thq-content-elm2,
.home-projects-thq .safemap-thq-content-elm3 {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
  padding: 16px 0 0 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* Adjust headings width to be fluid */
.home-projects-thq .safemap-thq-headings-elm1,
.home-projects-thq .safemap-thq-headings-elm2,
.home-projects-thq .safemap-thq-headings-elm3 {
  width: 100% !important;
  max-width: 100% !important;
  align-items: center !important;
  text-align: center !important;
}

/* Adjust text alignment */
.home-projects-thq .safemap-thq-text-elm63,
.home-projects-thq .safemap-thq-text-elm68,
.home-projects-thq .safemap-thq-text-elm71,
.home-projects-thq .safemap-thq-text-elm67,
.home-projects-thq .safemap-thq-text-elm69,
.home-projects-thq .safemap-thq-text-elm74 {
  text-align: center !important;
  width: 100% !important;
}

/* Hide decorative elements that might break layout */
.home-projects-thq .safemap-thq-deco-elm1,
.home-projects-thq .safemap-thq-deco-elm2,
.home-projects-thq .safemap-thq-deco-elm3 {
  display: none !important;
}

/* Hide only the tiny thumb corner markers; keep the bar + dot under text */
.home-projects-thq .safemap-thq-thumb-elm1 > img[class^="safemap-thq-roundedrectangle-elm"],
.home-projects-thq .safemap-thq-thumb-elm2 > img[class^="safemap-thq-roundedrectangle-elm"],
.home-projects-thq .safemap-thq-thumb-elm3 > img[class^="safemap-thq-roundedrectangle-elm"] {
  display: none !important;
}

/* Keep the right-side vertical bar inside the copy area */
.home-projects-thq .safemap-thq-copy-elm1 > img[class^="safemap-thq-roundedrectangle-elm"],
.home-projects-thq .safemap-thq-copy-elm2 > img[class^="safemap-thq-roundedrectangle-elm"],
.home-projects-thq .safemap-thq-copy-elm3 > img[class^="safemap-thq-roundedrectangle-elm"] {
  display: block !important;
  position: static !important;
  width: 5px !important;
  height: auto !important;
  align-self: stretch !important;
}

/* Keep the dot in the posted/date row */
.home-projects-thq .safemap-thq-posted-elm1 > img[class^="safemap-thq-roundedrectangle-elm"],
.home-projects-thq .safemap-thq-posted-elm2 > img[class^="safemap-thq-roundedrectangle-elm"] {
  display: block !important;
  position: static !important;
  width: 5px !important;
  height: 5px !important;
}

/* Fix the other cards (RoboMind, CHA) which use different classes */
.home-projects-thq .safemap-thq-frame48095919-elm {
  width: 100% !important;
  max-width: 815px !important;
  height: auto !important;
  aspect-ratio: 815 / 300 !important;
  margin: 0 auto !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
}

.home-projects-thq .safemap-thq-frame48095920-elm {
  width: 100% !important;
  max-width: 390px !important;
  height: auto !important;
  aspect-ratio: 390 / 300 !important;
  margin: 0 auto !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
}

/* Mobile specific adjustments */
@media (max-width: 720px) {
  /* Override SAFEMAP listing rules (which use .safemap-thq-listing-elm selectors) */
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-group427319143-elm {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    padding: 0 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .home-projects-thq .safemap-thq-listing-elm {
    width: 100% !important;
    padding: 0 !important;
    margin-top: 20px !important;
  }

  /* RoboMind must not act like a 2-column banner on narrow screens */
  .home-projects-thq .safemap-thq-listing-elm .home-thq-card-link--robomind,
  .home-projects-thq .safemap-thq-listing-elm .home-thq-card-link--cha {
    grid-column: span 1 !important;
  }

  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-frame48095919-elm,
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-frame48095920-elm {
    grid-column: span 1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Mobile: force true stacked cards (image -> text), including RoboMind */
@media (max-width: 680px) {
  /* Make sure the grid is single-column and centered */
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-group427319143-elm {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 28px !important;
  }

  /* Ensure each link/card is full width */
  .home-projects-thq .safemap-thq-listing-elm .home-thq-card-link {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Make the first 3 cards full-width (they were capped at 390px) */
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-component-content-blog-post-elm1,
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-component-content-blog-post-elm2,
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-component-content-blog-post-elm3 {
    max-width: 100% !important;
  }

  /* Reset TeleportHQ fixed widths/alignment for text blocks on Home */
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-headings-elm1,
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-headings-elm2,
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-headings-elm3 {
    width: 100% !important;
    max-width: 100% !important;
    align-items: center !important;
    text-align: center !important;
  }

  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-text-elm63,
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-text-elm68,
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-text-elm71,
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-text-elm67,
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-text-elm69,
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-text-elm74 {
    width: 100% !important;
    text-align: center !important;
    word-break: break-word;
  }

  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-posted-elm1,
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-posted-elm2 {
    justify-content: flex-end !important;
    width: 100% !important;
  }

  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-text-elm70,
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-text-elm75 {
    text-align: right !important;
  }

  /* RoboMind + CHA should NOT behave like a wide banner on mobile */
  .home-projects-thq .safemap-thq-listing-elm .home-thq-card-link--robomind,
  .home-projects-thq .safemap-thq-listing-elm .home-thq-card-link--cha {
    grid-column: span 1 !important;
  }

  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-frame48095919-elm,
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-frame48095920-elm {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    border-radius: 20px !important;
  }

  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-ribena-poster,
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-challenge-poster {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 20px !important;
  }

  /* Give both RoboMind and CHA a consistent, phone-friendly height */
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-frame48095919-elm,
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-frame48095920-elm {
    aspect-ratio: 390 / 300 !important;
    overflow: hidden !important;
  }

  /* Make RoboMind text box fluid and readable */
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-copy-elm4 {
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    border-radius: 12px !important;
  }

  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-text-elm76,
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-text-elm77,
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-text-elm78 {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    text-align: left !important;
  }

  /* Reduce CHA decorative squares to avoid overflow/cropping on mobile */
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-frame48095921-elm,
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-frame48095923-elm,
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-frame48095925-elm,
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-frame48095927-elm,
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-frame48095922-elm,
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-frame48095924-elm,
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-frame48095926-elm,
  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-frame48095928-elm {
    display: none !important;
  }

  .home-projects-thq .safemap-thq-listing-elm .safemap-thq-copy-elm5 {
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    border-radius: 12px !important;
  }
}

/* Responsive Header */
@media (max-width: 768px) {
  .topbar {
    padding: 12px 0 12px;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--stroke);
  }

  /* Project pages add `safemap-topbar` and set it absolute; override on mobile */
  .topbar.safemap-topbar {
    position: fixed !important;
  }

  .topbar-left {
    width: calc(100% - 32px);
    flex-direction: row;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
  }

  .home-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }

  /* Keep Home icon size consistent on mobile to avoid header reflow */
  .home-icon svg {
    width: 18px;
    height: 18px;
  }

  .nav {
    flex: 1;
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: hidden;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    font-size: 13px;
  }

  .nav a {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
  }

  /* Mobile: keep one-row header without scroll by shortening “educations” -> “edu” */
  .nav a[href="/educations"],
  .nav a[href="/#educations"] {
    font-size: 0;
    line-height: 0;
  }

  .nav a[href="/educations"]::after,
  .nav a[href="/#educations"]::after {
    content: "edu";
    font-size: 13px;
    line-height: 1;
  }

  /* Keep the vertical lines on mobile (like desktop), but make them shorter */
  .vline {
    display: block;
  }

  .vline--top {
    height: 48px;
    margin-top: 10px;
    margin-bottom: 14px;
  }

  .vline--mid {
    height: 44px;
    margin-top: 14px;
    margin-bottom: 14px;
  }

  /* Adjust page padding for fixed header */
  .page-transition-root,
  .main {
    padding-top: 120px !important;
  }
  
  /* Ensure hero doesn't overlap */
  .hero {
    margin-top: 20px;
  }
}
