/* General styling */
.cpt-events {
  background-size:contain;
  background-repeat:no-repeat;
  background-position:center center;
}

.cpt-events h2.cpt-events-title {
  color:#17104D;
  text-align:center;
  margin-bottom:30px;
}

.cpt-events .container {
  position:relative;
}

.cpt-events-loading {
  display:none;
  position:absolute;
  top:50%;
  left:0;
  right:0;
  z-index:100;
}

.cpt-events-loading svg {
  width:150px;
}

/* Category Select */
.cpt-events .cpt-events-categories {
  display:flex;
  flex-direction:column;
}

.cpt-events .cpt-events-categories .category-filter {
  margin-right:15px;
  margin-top:10px;
  position:relative;
  width:100%;
}

.cpt-events .cpt-events-categories .category-filter span {
  
}

.cpt-events .cpt-events-categories .category-filter select {
  -webkit-appearance:none;
  -moz-appearance:none;
  background:url("../../../assets/images/select-arrow.svg");
  background-repeat:no-repeat;
  background-position:center right 20px;
  border-radius:5px;
  cursor:pointer;
  font-size:23px;
  padding:13px 20px;
  width:100%;
}

.cpt-events .cpt-events-categories button {
  background:#17104D;
  color:#FFFFFF;
  border:0;
  border-radius:5px;
  cursor:pointer;
  font-size:23px;
  margin-right:15px;
  margin-top:10px;
  padding:12px 20px;
  transition:opacity 0.5s;
  width:100%;
}

.cpt-events .cpt-events-categories button:hover {
  opacity:0.8;
}

.cpt-events .cpt-events-search-box {
  position:relative;
  padding:0;
  width:100%;
}

.cpt-events .cpt-events-search-box button {
  cursor:pointer;
  position:absolute;
  top:10px;
  right:0px;
  width:70px !important;
  margin: 0;
  padding: 9px;
}

.cpt-events .cpt-events-search-box svg {
    width: 30px;
}

.cpt-events .cpt-events-search-box input {
  border:1px solid #17104D;
}

.cpt-events .cpt-events-categories input {
  border-radius:5px;
  font-size:23px;
  margin-top:10px;
  padding:12px 20px;
  position:relative;
  width:100%;
}

.cpt-events .cpt-events-no-results {
  font-size:22px;
  margin-top:60px;
  text-align:center;
}

/* Item normal styling */

.cpt-events .cpt-events-item,
.editor-styles-wrapper .row .cpt-events-item {
  align-items:center;
  display:flex;
  flex-direction:column;
  margin-top:70px;
  position:relative;
}

.cpt-events .cpt-events-item .category-tags {
  position:absolute;
  top:20px;
  left:20px;
}

.cpt-events .cpt-events-item .category-tag {
  background:#17104D;
  border-radius:5px;
  color:#FFFFFF;
  margin-right:10px;
  padding:10px 15px;
}

.cpt-events .cpt-events-item .category-tag:nth-of-type(2n) {
  background:#B38A49;
}

.cpt-events .cpt-events-item .cpt-events-image-link {
  display:block;
  height:250px;
  width:100%;
}

.cpt-events .cpt-events-item img {
  border-top-left-radius:5px;
  border-top-right-radius:5px;
  height:100%;
  object-fit:cover;
  width:100%;
}

.cpt-events .cpt-events-item h2 {
  font-size:30px;
  font-weight:300;
  line-height:1.4;
  text-transform:uppercase;
}

.cpt-events .cpt-events-item h2 a {
  color:#17104D;
}

.cpt-events .cpt-events-item h3 {
  font-size:18px;
  line-height:1.2;
}

.cpt-events .cpt-events-item p {
  line-height:1.6;
  margin:5px 0;
}

.cpt-events .cpt-events-item p span {
  font-weight:700;
}

.cpt-events .cpt-events-item-inner {
  border-radius:5px;
  box-shadow:0px 0px 8px 0px rgb(222 222 222);
  padding:40px 30px 30px 30px;
  width:100%;
}

/* Pagination styling */

.cpt-events .cpt-events-pagination {
  font-size:16px;
  float:right;
  margin-top:40px;
  text-align:center;
}

.cpt-events .page-numbers {
  margin-right:20px;
}

.cpt-events .page-numbers.prev,
.cpt-events .page-numbers.next {
  display:inline-block;
  font-family:proxima-soft, sans-serif;
  font-style:normal;
  font-weight:400;
}

.cpt-events .page-numbers.current {
  color:#17104D;
  font-weight:700;
}

@media only screen and (max-width:1800px) {
  .cpt-events {
    background-image:none !important;
  }
}

@media only screen and (min-width:992px) {

  .cpt-events .cpt-events-categories {
    flex-direction:row;
  }

  .cpt-events .cpt-events-categories .category-filter span {
    position:absolute;
    top:-25px;
  }

  .cpt-events form.cpt-events-search-box {
    margin-left:auto;
    width:200px;
  }

  .cpt-events .cpt-events-categories .category-filter {
    width:200px;
  }

  .cpt-events .cpt-events-categories button {
    width:84px;
  }

  .cpt-events .cpt-events-categories input {
    margin-right:15px;
    position:relative;
    right:0;
  }
}

@media only screen and (min-width:1280px) {
  .cpt-events h2.cpt-events-title {
    margin-bottom:60px;
  }

  .cpt-events .cpt-events-item h2 {
    margin:0 0 20px 0;
  }
}

@media only screen and (min-width:1440px) {
  .cpt-events form.cpt-events-search-box {
    width:300px;
  }
}