.featured-blocks-widget {
  display: flex;
  max-width: 1400px;
  margin-top: -80px;
  position: relative;
  z-index: 9;
  padding: 10px 0px;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: 11px;
  flex-wrap: wrap;
}
.featured-block-info{
  z-index: 9;
  text-align: center;
}
.featured-block-card {
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  position: relative;
  display: flex;
  padding: 0px 26px;
  border: 0 none;
  transition: all 0.4s ease-in-out;
  background-position: center;
  background-size: cover;
  overflow: hidden;
  height: 230px;
  min-width: 180px;
  max-width: 325px;
  min-height: 130.708px;
  max-height: 236px;
  justify-content: center;
  align-items: center;
  flex: 1 0 0;
}

.featured-block-title {
  z-index: 999;
  color: #FFF;
  text-align: center;
  font-family: "eb-garamond",serif;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.84px;
  text-transform: capitalize;
  margin-bottom: 5px;
}
.btn-learn{
  background: #842825;
  color: #FFF;
text-align: center;
font-size: 17px;
font-style: normal;
font-weight: 400;
line-height: normal;
letter-spacing: 0.51px;
padding: 5px 10px;
width: auto;
  display: inline-block;
  transition: all 400ms ease-in-out;
}
.featured-block-card:hover .btn-learn{
  background: #FFF;
  color: #000;

}
.featured-block-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
}

.featured-block-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35));
  transition: opacity 400ms ease-in-out;
  z-index: 1;
}

.featured-block-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(81, 26, 25, 0.75), rgba(81, 26, 25, 0.75));
  transition: opacity 400ms ease-in-out;
  opacity: 0;
  z-index: 2;
}

.featured-block-card:hover .featured-block-overlay::after {
  opacity: 1;
}

.featured-block-card:hover .featured-block-overlay::before {
  opacity: 0;
}
.featured-block-overlay-square{
  border: 2.5px solid #FFF;
  position: absolute;
  left: 21px;
  right: 21px;
  top: 13px;
  bottom: 13px;
  z-index: 3;
  transition: all 400ms ease-in-out;
}
.featured-block-card:hover .featured-block-overlay-square{
  border: 2.622px solid #FFF;
  left: 16px;
  right: 16px;
  top: 8px;
  bottom: 8px;
  z-index: 3;
}

.featured-block-card-image-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
}

.slider-thumbnail-controls {
  z-index: 3;
}


@media only screen and (max-width: 1460px) {
  .featured-blocks-widget {
    padding: 0;
  }

  .featured-block-card {
    width: calc(25% - 15px);
  }
}

@media only screen and (max-width: 1240px) {
  .featured-block-card {
    min-width: 5px;
  	height: 130px;
  }
}

@media only screen and (max-width: 998px) {

  .featured-block-card {
    flex: 0 0 calc(50% - 15px); /* override flex */
    min-width: unset; /* override min-width */
    max-width: unset; /* optional */
    height: 250px;
    padding: 0 16px;
    margin-bottom: 0;
  }
}

@media only screen and (max-width: 700px) {
  .featured-block-title{
    color: #FFF;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.442px;
  }
  .featured-block-card {
  	padding: 0 6px;
  }
  .featured-block-info .btn-learn{
    display: none;
  }
  .featured-block-overlay-square {
	border: 2px solid #FFF;
	left: 10px;
	right: 10px;
	top: 10px;
	bottom: 10px;
}
  .btn-learn{
    font-size: 8.947px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.268px;
  }
  .featured-block-card {
    width: calc(50% - 10px);
  }

  .featured-block-card {
    height: 130px;
  }

  .featured-blocks-widget {
    margin-top: -45px;
  }
}
@media only screen and (max-width: 480px) {
  /*
  .featured-block-card {
    flex: 0 0 100%;
    width: 100%;
    min-width: unset;
    max-width: unset;
  }
  */
}
