.trade {
  margin: auto;
  max-width: 1280px;
  padding: 20px 10px;
}
.bg-lights {
  background-color: #f4f8ff;
}
.trade-row {
  width: 100%;
  height: auto;
  flex-wrap: wrap;
  justify-content: space-between;
  display: flex;
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Rasmni markazga joylashtirish */
  gap: 10px; /* Rasmlar orasidagi masofa */
}

.gallery-item {
  flex: 1 1 auto;
  max-width: 100%; /* Rasmlar qator bo‘lib sig‘ishi uchun */
}

.gallery img {
  width: 100%;
  height: auto; /* Nisbatni saqlash */
  border-radius: 5px; /* Burchaklarni yumshatish (ixtiyoriy) */
}
.trade h2 {
  color: #111;
  font-size: 30px;
  border-bottom: 1px solid #255285;
  font-weight: bold;
}
.a-box {
  display: inline-block;
  width: 31%;
  padding: 20px;
  height: auto;
}

.img-container {
  margin-top: 3rem;
  text-align: center;
}
.img-container i {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 110px;
  height: 110px;
  background: #cbddff;
  font-size: 40px;
  margin-bottom: 20px;
  border-radius: 20px;
  color: #315488;
  transition: 0.5s;
  overflow: hidden;
}

.text-container {
  padding: 150px 20px 20px;
  margin: -160px 10px 10px;
  font-size: 16px;
  height: 250px;
  background-color: #ebf2ff;
  border-radius: 20px;
}
.text-container h3 {
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 24px;
  text-align: center;
  position: relative;
  color: #315488;
  letter-spacing: 2px;
  padding-bottom: 15px;
}
.text-container h3::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 2px;
  background: #003b74;
  bottom: 0;
  left: calc(50% - 25px);
}
.text-container:hover {
  background: linear-gradient(#194483, #0f2f60);
  cursor: pointer;
  h3 {
    color: #fff;
  }
  h3::after {
    background: #fff;
  }
}
.text-container div {
  text-align: center;
  line-height: 24px;
  font-size: 18px;
}
p{
  margin-bottom: 1px !important;
}
h2 {
  font-size: 60px;
}

@media screen and (max-width: 1100px) {
  .a-box {
    width: 400px;
  }
}
@media screen and (max-width: 1100px) {
}
@media screen and (max-width: 850px) {
  .trade-row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .a-box {
    width: 100%;
    padding: 0;
  }
  @media screen and (max-width: 400px) {
    .trade h2 {
      font-size: 23px;
    }
  }
}
