.country {
  margin-top: 173px;
  text-align: center;
}

.country p {
  font-weight: 400;
  font-size: 16px;
  margin-bottom: 12px;
}

.country h2 {
  font-weight: 700;
  font-size: 23px;
  color: var(--wp--preset--color--secondary-600);
  margin-bottom: 50px;
}

.country span {
  color: var(--wp--preset--color--primary-600);
}

.country .country-all {
  color: #47474D;
  background-color: var(--wp--preset--color--base);
  width: 142px;
  height: 48px;
  border: 1px solid var(--wp--preset--color--primary-600);
  font-weight: 500;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin: 48px auto 0;
}

.country .country-all .iconify {
  margin-right: 9px;
}

.country .country-all:hover {
  background-color: #FDF5E6;
}

.country .country-all:focus {
  background-color: #F8E7C0;
}

.country .country-box {
  position: relative;
}

.country .country-box a {
  display: block;
  position: relative;
  overflow: hidden;
}

.country .country-box a::before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(360deg, #060D16 0%, rgba(2, 89, 210, 0) 39.68%);
  z-index: 1;
}

.country .country-box a:hover img {
  transform: scale(1.1);
}

.country .country-box p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-weight: 700;
  font-size: 26px;
  color: #FDFDFD;
  z-index: 2;
}

.country .country-box img {
  transition: all 0.2s ease;
}

.countryLink a .menu-icon {
  margin-left: 8px;
  border: 1px solid var(--wp--preset--color--secondary-100);
  border-radius: 50%;
  width: 20px;
  height: 20px;
}

.countryLink {
  width: fit-content;
}

.countryLink>a {
  color: #191921;
  font-size: 14px;
  transition: all 0.2s;
  display: flex;
  margin-bottom: 16px;
  flex-flow: row-reverse;
  align-items: center;
}

.countryLink>a:hover {
  color: var(--wp--preset--color--primary-600);
}

.countryLink>a .countryLink a {
  display: flex;
  flex-flow: row-reverse;
  justify-content: flex-end;
  align-items: center;
}

.g2-countries-lists {
  display: flex;
  flex-wrap: wrap;
}

.g2-countries-title {
  flex-grow: 6;
  padding-top: 24px;
  align-content: center;
}

.country-search-box {
  flex-grow: 1;
}

.g2-countries-filter-title::before {
  background: url('../../icon/countries/filters-black.png') no-repeat;
  width: 18px;
  height: 18px;
  display: inline-block;
  content: '';
  margin-left: 10px;
  position: relative;
  top: 4px;
}

.g2-countries-mobile-filters-btn {
  display: none !important;
}

.g2-countries-filter-btn {
  border: 1px solid var(--wp--preset--color--primary-600);
  color: var(--wp--preset--color--primary-600);
  font-weight: 800;
  border-radius: 8px;
  padding: 12px 35px;
  display: none;
  order: 2;
}

.g2-countries-filter-delete-btn a {
  padding: 10px 15px !important;
  font-size: 14px;
}

.g2-countries-filter-btn::before {
  background: url('../../icon/countries/filters-yellow.png') no-repeat;
  fill: #0061E5;
  width: 18px;
  height: 18px;
  display: inline-block;
  content: '';
  margin-left: 10px;
  position: relative;
  top: 4px;
}

.g2-countries-filter-items-box {
  display: flex;
  gap: 15px;
}

.g2-countries-filter-item,
.g2-countries-filter-input {
  background-color: var(--wp--preset--color--base);
  border: 1px solid var(--wp--preset--color--secondary-100);
  border-radius: 8px;
  padding: 5px;
  font-size: 14px;
  flex: 1;
  cursor: pointer;
}

.g2-countries-filter-item-dropdown {
  position: relative;
  flex: 1;
}

.g2-countries-filter-input {
  align-self: flex-start;
}

.g2-countries-filter-item-arrow {
  background: url('../../icon/countries/arrow-down.svg') no-repeat;
  width: 24px;
  height: 24px;
  position: absolute;
  z-index: 8;
  left: 3px;
  top: 5px;
  cursor: pointer;
}

.g2-countries-filter-item-list {
  display: none;
  background-color: var(--wp--preset--color--base);
  position: absolute;
  z-index: 9;
  border: 1px solid var(--wp--preset--color--primary-300);
  border-radius: 8px 8px 40px 40px;
  max-height: 305px;
  overflow-y: scroll;
  margin-top: 9px;
  min-width: 165px;
  padding: 10px 0px;
}

.g2-countries-filter-item-list li {
  margin-bottom: 10px;
  list-style: none;
  border-bottom: 1px solid var(--wp--preset--color--secondary-100);
  padding-bottom: 13px;
  padding-right: 10px;
  cursor: pointer;
}

.g2-countries-filter-item-list li:last-child {
  border: none;
}

.g2-countries-filter-item {
  text-align: center;
  align-self: flex-start;
}

.country-search-box {
  position: relative;
}

.country-search-box #country-search {
  height: 48px;
  width: 100%;
  border: 1px solid #D1D1D3;
  border-radius: 8px;
  padding: 0 10px;
}

.country-search-box .country-search-icon {
  position: absolute;
  left: 10px;
  top: 12px;
}

.country-lan-header {
  font-size: 20px;
  font-weight: 700;
  color: #303038;
}

.country-landing-box {
  border: 1px solid var(--wp--preset--color--secondary-200);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.1s ease;
  background: white;
  position: relative;
  z-index: 1;
  height: auto;
  max-width: 300px;
}

.country-landing-box.featured {
  z-index: 10;
  border-radius: 12px 12px 0px 0px;
  border: unset;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  height: auto;
  grid-row: auto;
}

.country-quick-access {
  position: absolute;
  width: 100%;
  background: white;
  left: 0;
  top: 100%;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  z-index: 11;
  border: unset;
}

.country-landing-box.featured .country-landing-box-link::before {
  background: url('../../icon/countries/arrow-top-yellow.svg') no-repeat;
}

.country-landing-box .country-landing-box-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 8px;
  width: 100%;
  min-height: 64px;
  position: relative;
}

.country-landing-box .country-landing-box-link .country-landing-box-p {
  color: var(--wp--preset--color--secondary-1000);
  font-size: 16px;
  margin: 0;
}

.country-landing-box .country-landing-box-link::before {
  position: absolute;
  content: "";
  width: 24px;
  height: 24px;
  left: 16px;
  top: 34%;
  background-repeat: no-repeat;
  background-position: center;
  background: url("../../icon/countries/arrow-left-gray.svg");
  opacity: 1;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -ms-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease-out;
}

.country-landing-box:hover .country-landing-box-link::before {
  opacity: 1;
  left: 6px;
}

.country-quick-access {
  display: none;
  padding: 0;
  margin-top: 0px;
  border-top: 1px solid var(--wp--preset--color--secondary-100);
}

.country-quick-access li {
  list-style: none;
  margin: 10px;
}

.country-quick-access li::before {
  background: url("../../icon/countries/arrow-left-black-small.svg");
  content: "";
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
}

.country-quick-access li a {
  color: var(--wp--preset--color--secondary-600);
}

@media (max-width: 575.99px) {

  .countries .leftList {
    column-count: 2;
  }

  .countries.showSub .leftList {
    padding-bottom: 70px;
    padding-top: 10px;
  }

  .countries.showSub .leftList>li:last-child {
    position: absolute;
    right: 0;
  }

  .country {
    margin-top: 55px;
  }

  .country p {
    font-size: 14px;
  }

  .country h2 {
    font-size: 22px;
    margin-bottom: 23px;
    font-weight: 700;
  }

  .country .country-col {
    width: 50%;
    height: auto;
    overflow: hidden;
  }

  .country .country-col .country-box {
    margin: 8px 0;
  }

  .country .country-col .country-box p {
    font-size: 22px;
  }

  .country .country-col .country-box a {
    height: 100%;
    border-radius: 16px;
  }

  .country .country-col .country-box img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  .country .country-all {
    margin: 26px auto 0;
  }
}

@media (max-width: 767px) {

  .g2-countries-title {
    order: 1;
    font-size: 20px !important;
  }

  .country-search-box {
    order: 3;
  }

  .g2-countries-description {
    order: 2;
  }

  .g2-countries-filter-btn {
    display: block;
    padding: 10px 15px !important;
  }

  .g2-countries-filter-box {
    position: fixed;
    z-index: 9999;
    height: 100%;
    top: -20px;
    right: 0;
    width: 100%;
    display: none;
  }

  .g2-countries-filter-title {
    font-size: 18px;
    border-bottom: 1px solid var(--wp--preset--color--secondary-200);
    padding-bottom: 20px;
  }

  .g2-countries-close-btn {
    background: url('../../images/icons/countries/close-black.svg') no-repeat;
    width: 24px;
    height: 24px;
    display: inline-flex;
    position: absolute;
    left: 20px;
  }

  .g2-countries-lists>.wp-block-buttons {
    order: 2;
    padding-top: 20px;
    margin: 0;
  }

  .g2-countries-filter-delete-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    left: 10px;
  }

  .g2-countries-mobile-filters-btn {
    display: inline-block !important;
  }

  .g2-countries-mobile-filters-btn a {
    padding: 8px 17px;
  }

  .g2-countries-mobile-filters-btn a::before {
    background: url(../../icon/countries/filters-yellow.png) no-repeat;
    width: 18px;
    height: 18px;
    display: inline-block;
    content: '';
    margin-left: 10px;
    position: relative;
    top: 4px;
  }

  .g2-countries-filter-items-box {
    display: grid;
    gap: 15px;
    margin: 0;
  }

  .g2-countries-filter-item,
  .g2-countries-filter-input {
    font-size: 16px;
    font-weight: 800;
    text-align: right;
    padding: 16px;
  }

  .g2-countries-filter-item-list {
    width: 100%;
  }

  .g2-countries-filter-item-arrow {
    top: 18px;
    left: 10px;
  }

}

@media (min-width: 576px) and (max-width: 767.99px) {

  .countries .leftList {
    column-count: 2;
  }

  .countries.showSub .leftList {
    padding-bottom: 70px;
    padding-top: 10px;
  }

  .countries.showSub .leftList>li:last-child {
    position: absolute;
    right: 0;
  }

  .country .country-col .country-box a {
    border-radius: 16px;
  }
}

@media (min-width: 767.5px) and (max-width: 991.9px) {

  .country .country-box a {
    margin-bottom: 24px;
    border-radius: 16px;
  }

  .country .country-box a img {
    width: 100%;
  }

  .countries .leftList {
    column-count: 2;
  }

  .countries.showSub .leftList {
    padding-bottom: 70px;
    padding-top: 10px;
  }

  .countries.showSub .leftList>li:last-child {
    position: absolute;
    right: 0;
  }

}

@media (min-width: 992px) and (max-width: 1199.9px) {

  .countries .leftList {
    -moz-column-count: 5;
    -moz-column-gap: 20px;
    -webkit-column-count: 5;
    -webkit-column-gap: 20px;
    column-count: 5;
    column-gap: 20px;
    height: 428px;
    min-height: 428px;
  }

  .countries .leftList.active {
    display: block;
  }

  .country .country-col .country-box a {
    border-radius: 24px;
  }
}

@media (min-width: 1200px) and (max-width: 1400px) {

  .countries .leftList {
    -moz-column-count: 5;
    -moz-column-gap: 20px;
    -webkit-column-count: 5;
    -webkit-column-gap: 20px;
    column-count: 5;
    column-gap: 20px;
    height: 428px;
    min-height: 428px;
  }

  .countries .leftList.active {
    display: block;
  }

  .country .country-col .country-box a {
    border-radius: 24px;
  }
}

@media (min-width: 1400px) {

  .countries .leftList {
    -moz-column-count: 5;
    -moz-column-gap: 20px;
    -webkit-column-count: 5;
    -webkit-column-gap: 20px;
    column-count: 5;
    column-gap: 20px;
    height: 428px;
    min-height: 428px;
  }

  .countries .leftList.active {
    display: block;
  }

  .country .country-col .country-box a {
    border-radius: 24px;
  }
}
