/**
 * Tech stack – content-only styles (wrapper is .bordered-section).
 */

.tstack-header {
  margin-bottom: 2rem;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.tstack-subheading-wrapper {
  font-size: clamp(2rem, 2.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  padding-bottom: 15px;
  position: relative;
  z-index: 99;
}

.tstack-subheading-wrapper span {
  color: rgba(117, 117, 117, 1);
}

.tstack-grid-wrapper {
  margin-top: 2rem;
  width: 100%;
}

.tstack-grid-desktop {
  display: block;
}

.tstack-grid-tablet {
  display: none;
}

.tstack-grid-mobile {
  display: none;
}

.tstack-row {
  display: grid;
  width: 100%;
  margin: 0;
}

.tstack-grid-desktop .tstack-row {
  grid-template-columns: repeat(17, 1fr);
}

.tstack-grid-tablet .tstack-row {
  grid-template-columns: repeat(13, 1fr);
}

.tstack-grid-mobile .tstack-row {
  grid-template-columns: repeat(9, 1fr);
}

.tstack-logo-cell,
.tstack-empty-cell {
  grid-column: span 1;
  aspect-ratio: 1 / 1;
}

.tstack-logo-cell {
  padding: 0;
  cursor: pointer;
}

.tstack-logo {
  border-radius: 12px;
  background-color: #ffffff;
  border: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.tstack-logo-inner {
  width: 55%;
  height: 55%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.tstack-logo-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .tstack-subheading-wrapper {
    font-size: 2rem;
  }

  .tstack-grid-desktop {
    display: none;
  }

  .tstack-grid-tablet {
    display: block;
  }
}

@media (max-width: 768px) {
  .tstack-subheading-wrapper {
    font-size: 1.35rem;
    line-height: 1.4;
  }

  .tstack-grid-desktop {
    display: none;
  }

  .tstack-grid-tablet {
    display: none;
  }

  .tstack-grid-mobile {
    display: block;
  }

  .tstack-logo {
    border-radius: 8px;
  }

  .tstack-logo-inner {
    width: 60%;
    height: 60%;
  }
}
