/**
 * Frontend styles for the market block.
 */
:root {
  --bg-mid: #f5f8fb;
  --cyan: #13b8ea;
  --ink: #111827;
  --line: #ebf2fa;
  --icon: #415c82;
}

.market {
  background: var(--bg-mid);
  padding: 2rem 0 5rem;
  color: var(--ink);
}

.market .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.market h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.market h2 span {
  color: var(--cyan);
}

.market .grid-block {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  text-align: center;
}

.market h3 {
  font-size: 1rem;
  min-height: 3.5rem;
  margin: 0 0.5rem;
}

.market p {
  margin: 0 0 0.25rem;
}

.market article {
  position: relative;
  height: 200px;
}

.market article .icon {
  width: 50px;
  margin: 0 auto 15px;
  height: 50px;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--icon);
  border-radius: 100%;
  color: var(--icon);
}

.market .grid-block article::after {
  content: "";
  display: block;
  width: 2px;
  background-color: var(--line);
  height: calc(100% - 80px);
  position: absolute;
  bottom: 0;
  right: -1rem;
}

.market .grid-block article:last-child::after {
  display: none;
}

.market article img {
  height: 70px;
  display: block;
  margin: 0 auto 15px;
}

/* Responsive */
@media (max-width: 992px) {
  .market .grid-block {
    grid-template-columns: repeat(2, 1fr);
  }
  .market .grid-block article::after {
    display: none;
  }
  .market h3 {
    height: auto;
    margin-bottom: 0.5rem;
  }
}
@media (max-width: 768px) {
  .market .grid-block {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .market .grid-block {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .market h3 {
    height: auto;
  }
  .market .container {
    padding: 0 1rem;
  }
}
