.section-title:has(+ .qm-filter-wrapper) {
  text-align: center;
  margin-bottom: 70px;
}
.application_form_section .row > div {
  width: 100%;
}
.section-title:has(+ .qm-filter-wrapper) > * {
  max-width: 575px;
  margin-left: auto;
  margin-right: auto;
}
.qm-filter-bar {
  display: flex;
  align-items: start;
  justify-content: space-between;
}
.qm-filter-wrapper {
  margin-bottom: 10px;
}
.qm-filter-left,
.qm-filter-left > div {
  display: flex;
  align-items: start;
  justify-content: start;
}
.qm-filter-left > div > * {
  width: auto;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  margin-bottom: 0px;
}
.qm-filter-bar select {
  height: auto;
  padding: 0;
  border: none;
  color: #c9c9c9;
  outline: none;
}
.qm-filter-bar option,
.qm-filter-bar .new_added select {
  color: var(--black);
}
.qm-filter-bar .qm-results-counter {
  margin-right: 14px;
  vertical-align: middle;
}
.qm-filter-bar .qm-grid-btn {
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  margin: 0px 2px;
}
.qm-filter-bar .qm-grid-btn svg path {
  stroke: #c9c9c9;
}
.qm-filter-bar .qm-grid-btn.active svg path {
  stroke: var(--black);
}
.qm-filter-bar .qm-grid-btn svg {
  width: 26px;
  height: 26px;
}
.qm-filter-left > div:not(:last-child) {
  margin-right: 40px;
}
.qm-filter-right {
  display: flex;
  align-items: center;
  justify-content: end;
}
.qm-form,
.qm-gallery {
  margin: 0 auto;
}

.qm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0px -12px;
}
.qm-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.qm-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.qm-card {
  width: 100%;
  padding: 12px 12px 50px;
}
.qm-card__media {
  overflow: hidden;
  border-radius: 10px;
  padding-top: calc(100% + 30%);
  position: relative;
}
.qm-card__media > img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
.qm-card__content {
  padding: 8px 0px 0px;
  position: relative;
}
.qm-country {
  display: inline-flex;
  flex-direction: row-reverse;
}
.qm-country .qm-flag {
  margin-right: 10px;
  aspect-ratio: 1/1;
  height: 22px;
  overflow: hidden;
  position: relative;
  width: 22px;
  display: flex;
  align-items: center;
  border-radius: 50%;
}
.qm-country .qm-flag img {
  height: auto;
  width: 100%;
  object-fit: cover;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  bottom: 0;
  transform: translateY(-50%);
}
.qm-votes-count {
  font-weight: 700;
  font-size: 19px;
  line-height: 24px;
  color: var(--blue);
}
.qm-card__meta {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  position: absolute;
  top: 10px;
  right: 0;
}
.qm-button {
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  background: transparent;
  padding: 0;
  display: inline-flex;
}
button.qm-button:not([type="submit"]){
  background: transparent !important;
}
.qm-button:hover svg path {
    fill: var(--blue);
}
.qm-card__content h6 {
  margin-bottom: 10px;
}
.qm-message {
  padding: 12px 16px;
  border-radius: 10px;
  margin: 16px 0;
}

.qm-message--error {
  background: #fdecec;
}
.qm-pagination {
  align-items: center;
  justify-content: center;
  margin: 20px 0px 50px;
  flex-wrap: wrap;
}
.qm-pagination span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.qm-pagination button {
  padding: 10px 17px;
  margin: 5px;
}
.qm-pagination button:hover,
.qm-pagination button.active {
  background-color: var(--black);
}
.qm-message--success {
    color: green;
    background: #0080002e;
}
@media (max-width: 1199px) {
  .qm-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 991px) {
  .qm-grid,
  .qm-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .qm-filter-bar {
    flex-direction: column;
    gap: 25px;
  }
}
@media (max-width: 767px) {
  .qm-grid,
  .qm-grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .qm-grid.cols-2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 575px) {
  .qm-filter-left {
    flex-direction: column;
    gap: 15px;
  }
}
@media (max-width: 400px) {
  .qm-grid,
  .qm-grid.cols-3 {
    grid-template-columns: 1fr;
  }
}


/*-*/

/*-*/
label {
  position: relative;
}

.info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    margin-left: 6px;
    text-align: center;
    border-radius: 50%;
    background-color: #aaaaaa;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    position: relative;
}

/* Tooltip box */
.custom-tooltip {
  position: absolute;
  background-color: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  display: none;
}

/* Tooltip arrow */
.custom-tooltip::after {
 content: "";
  position: absolute;
  top: 100%;
  left: 5px;
  border-width: 5px;
  border-style: solid;
  border-color:#333 transparent transparent  transparent;
}

@media (max-width: 575px) {
	.custom-tooltip {
		width: 180px;
		white-space: normal;
		word-break: break-word;
		height: auto;
	}
}