.about-col-block {
  position: relative;
  overflow: hidden;
  height: 260px;
  margin-bottom: 32px;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  cursor: pointer;
  background: #171e28;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid transparent;
  transition: border 0.33s;
  min-height: 260px;
}

.about-col-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.60);
  transition: transform 0.3s;
}

.about-col-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(20,24,34,0.60);
  transition: background 0.3s;
}

.about-col-title {
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.5px;
  text-transform: uppercase;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
  opacity: 1;
  transition: opacity 0.3s;
}

.about-col-svg {
  margin-left: 10px;
  opacity: 0;
  transition: opacity 0.28s;
  stroke: #58aaff;
  position: absolute;
  top: -12px;
  right: 5px;
  width: 34px;
  height: 34px;
}

.about-col-content {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 1.12rem;
  text-align: center;
  margin: 0 auto;
  z-index: 6;
  background: rgba(16,22,38,0.93);
  padding: 60px 24px 24px 24px;
  border-radius: 11px;
  box-shadow: 0 2px 16px rgba(50,80,130,0.08);
  min-height: 100%;
  transition: opacity 0.44s, visibility 0s linear 0.44s;
  width: 100%;
  max-width: 100%;
  justify-content: flex-start;
}

.about-col-block.active,
.about-col-block:focus,
.about-col-block:hover {
  border: 3px solid #58aaff;
  z-index: 10;
}

.about-col-block.active .about-col-svg,
.about-col-block:focus .about-col-svg,
.about-col-block:hover .about-col-svg {
  opacity: 1;
}

.about-col-block.active .about-col-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: fadeInBox 0.7s;
  transition-delay: 0s;
  display: flex;
}

.about-col-block .about-col-content .typewriter-text {
  display: block;
  border-right: 2px solid #58aaff;
  white-space: pre-line;
  word-break: break-word;
  overflow-wrap: break-word;
  font-family: 'Fira Mono', 'Roboto Mono', 'monospace', monospace;
  font-size: 1.16rem;
  letter-spacing: 0.02em;
  min-width: 180px;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  padding: 0 2vw;
  line-height: 1.6;
}

.about-col-block .about-col-bar {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 48px;
  background: #58aaff;
  color: #fff;
  border-radius: 12px 12px 0 0;
  z-index: 8;
  align-items: center;
  justify-content: center;
  font-size: 1.38rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: 0 3px 8px rgba(60,130,250,0.09);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.about-col-block.active .about-col-bar {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  animation: fadeInBar 0.5s;
}

@keyframes fadeInBox {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInBar {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .about-col-block {
    height: 180px;
    min-height: 160px;
  }
  .about-col-title {
    font-size: 1.36rem;
  }
  .about-col-content {
    font-size: 0.98rem;
    padding: 34px 9px 14px 9px;
  }
  .about-col-block .about-col-bar {
    font-size: 1.04rem;
    height: 32px;
  }
}
