/* The container must be positioned relative: */
.custom-select {
    position: relative;
    z-index: 99;
    margin-top: 15px;
}

.custom-button {
    margin-top: 15px;
}
  
.custom-select select {
    display: none; /*hide original SELECT element: */
}
  
.select-selected,
.custom-button {
    background-color: transparent;
    border: 1px solid black;
    font-family: merriweather;
}
  
/* Style the arrow inside the select element: */
.select-selected:after {
    position: absolute;
    content: "";
    top: 23px;
    right: 10px;
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-color: #000 transparent transparent transparent;
    pointer-events: none;
}
  
/* Point the arrow upwards when the select box is open (active): */
.select-selected.select-arrow-active:after {
    border-color: transparent transparent #fff transparent;
    top: 16px;
    pointer-events: none;
}

.select-selected.select-arrow-active {
    background-color: black;
    color: white;
}
  
/* style the items (options), including the selected item: */
.select-items div,
.select-selected,
.custom-button {
    color: black;
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
}

.custom-button p {
    font-family: merriweather !important;
    font-size: 14px;
    font-weight: 400;
}

.certification-category {
    z-index: 0;
}

.certification-category img {
    max-width: 250px !important;
    max-height: 100px;
}

.certification-category .bigger-logo img {
    max-height: 130px;
}
  
.certification-category .select-items div,
.certification-category .custom-button p {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.custom-button:after,
.select-items div:after {
    content: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='SVGRepo_bgCarrier' stroke-width='0'%3E%3C/g%3E%3Cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Cpath d='M12.5535 16.5061C12.4114 16.6615 12.2106 16.75 12 16.75C11.7894 16.75 11.5886 16.6615 11.4465 16.5061L7.44648 12.1311C7.16698 11.8254 7.18822 11.351 7.49392 11.0715C7.79963 10.792 8.27402 10.8132 8.55352 11.1189L11.25 14.0682V3C11.25 2.58579 11.5858 2.25 12 2.25C12.4142 2.25 12.75 2.58579 12.75 3V14.0682L15.4465 11.1189C15.726 10.8132 16.2004 10.792 16.5061 11.0715C16.8118 11.351 16.833 11.8254 16.5535 12.1311L12.5535 16.5061Z' fill='%231C274C'%3E%3C/path%3E%3Cpath d='M3.75 15C3.75 14.5858 3.41422 14.25 3 14.25C2.58579 14.25 2.25 14.5858 2.25 15V15.0549C2.24998 16.4225 2.24996 17.5248 2.36652 18.3918C2.48754 19.2919 2.74643 20.0497 3.34835 20.6516C3.95027 21.2536 4.70814 21.5125 5.60825 21.6335C6.47522 21.75 7.57754 21.75 8.94513 21.75H15.0549C16.4225 21.75 17.5248 21.75 18.3918 21.6335C19.2919 21.5125 20.0497 21.2536 20.6517 20.6516C21.2536 20.0497 21.5125 19.2919 21.6335 18.3918C21.75 17.5248 21.75 16.4225 21.75 15.0549V15C21.75 14.5858 21.4142 14.25 21 14.25C20.5858 14.25 20.25 14.5858 20.25 15C20.25 16.4354 20.2484 17.4365 20.1469 18.1919C20.0482 18.9257 19.8678 19.3142 19.591 19.591C19.3142 19.8678 18.9257 20.0482 18.1919 20.1469C17.4365 20.2484 16.4354 20.25 15 20.25H9C7.56459 20.25 6.56347 20.2484 5.80812 20.1469C5.07435 20.0482 4.68577 19.8678 4.40901 19.591C4.13225 19.3142 3.9518 18.9257 3.85315 18.1919C3.75159 17.4365 3.75 16.4354 3.75 15Z' fill='%231C274C'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
    width: 16px;
    height: 16px;
    position: absolute;
    right: 10px;
    top: 17px;
}

.select-items div {
    border: 1px solid rgba(0,0,0,.2);
    border-color: rgba(0,0,0,.2);
}

.select-selected {
    border: 1px solid black;
    border-color: black;
}
  
/* Style items (options): */
.select-items {
    position: absolute;
    background-color: #f8f7f5;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    max-height: 160px;
    overflow-y: scroll;
    border: 1px solid black;
}

.select-items a {
    font-family: helvetica, sans serif !important;
    font-weight: 400;
    font-size: 14px;
}

.select-items::-webkit-scrollbar {
    width: 0.5em;
    height: 0.5em;
    background-color: #DEDDDA;
}

.select-items::-webkit-scrollbar-thumb {
    background-color: #B2B2B2;
    border-radius: 3px;
}

.select-items::-webkit-scrollbar-thumb:hover {
    background-color: #B2B2B2;
}
  
/* Hide the items when the select box is closed: */
.select-hide {
    display: none;
}
  
.select-items div:hover, .same-as-selected {
    background-color: rgba(0, 0, 0, 0.1);
}

.certification-category .img-with-aniamtion-wrap.center {
    margin-bottom: 30px !important;
}

.swiper-slide .button.transparent a, 
.swiper-slide .button.transparent_2 a {
    font-family: Merriweather;
    font-size: 14px;
    border-color: transparent;
    border-bottom: 1px solid #fff;
}

.swiper-slide .button.transparent a:hover, 
.swiper-slide .button.transparent_2 a:hover {
    border-color: transparent;
    border-bottom: 1px solid #fff;
}

.swiper-slide .button.transparent a.primary-color {
    padding: 10px 0 !important;
}

@media only screen and (max-width: 478px) {
	/* Because z-index does not work */
    .select-items {
		position: relative;
	}
}