.ql-bar {
  display: flex;
  flex-wrap: wrap;
  background: var(--theme-main);
  padding: 0;
  margin: 0;
  list-style: none;
}

.ql-bar__item {
  flex: 1 1 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  text-decoration: none;
  color: #fff;
  transition: background 0.25s ease;
  position: relative;
  cursor: pointer;
  box-sizing: border-box;
}

.ql-bar__item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* vertical dividers */
.ql-bar__item + .ql-bar__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.ql-bar__icon {
  font-size: 36px;
  margin-bottom: 10px;
  color: #fff;
  transition: transform .3s ease;
}

.ql-bar__label {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.ql-bar__item:hover .ql-bar__icon {
  transform: scale(1.2);
}

/* Tablet: still 4-col but tighter */
@media (max-width: 980px) {
  .ql-bar__item {
    padding: 22px 12px;
  }
  .ql-bar__icon {
    font-size: 30px;
  }
  .ql-bar__label {
    font-size: 13px;
  }
}

/* Mobile: 2 per row */
@media (max-width: 767px) {
  .ql-bar__item {
    flex: 1 1 50%;
    padding: 20px 12px;
  }
  .ql-bar__icon {
    font-size: 24px;
    margin-bottom: 8px;
  }
  .ql-bar__label {
    font-size: 12px;
  }
  /* Reset dividers for 2-col layout */
  .ql-bar__item::before {
    display: none !important;
  }
  .ql-bar__item:nth-child(even)::before {
    display: block !important;
  }
  /* Bottom border on first row */
  .ql-bar__item:nth-child(1),
  .ql-bar__item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
}
