.offer-area {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
}

.offer-tab-link {
  text-align: center;
}

.offer-tab-link ul li {
  display: inline-block;
  padding: 10px 0;
  margin: 0 -3px;
}

.offer-tab-link ul li a {
  display: block;
  color: #000;
  font-size: 20px;
  padding: 10px 60px;
  border-bottom: 4px solid #000;
  font-weight: 500;
}

.offer-tab-link ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 0;
  justify-content: center;
}

.offer-tab-link ul li a.active {
  color: darkcyan;
  border-color: darkcyan;
}

.offer-content p {
  text-align: left;
  margin: 0;
  width: 100%;
  font-size: 16px;
  margin-bottom: 20px;
}
.offer-content ul {
  padding-left: 15px;
}
.offer-content ul li {
  margin-bottom: 15px;
  list-style-type: disc;
}

.offer-content h2 {
  text-align: left;
}

.offerItem {
  /* background: #ffe5d9; */
  border: 1px solid #959595;
  height: 476px;
  padding: 0 0px;
  width: 107px;
  overflow: hidden;
  float: left;
  position: relative;
  transition: 0.3s ease;
  margin: 0px 0px;
}

.offerItem h3 {
  margin-top: 2%;
  margin-bottom: 7%;
  text-transform: uppercase;
  font-size: 24px;
  font-weight: 500;
  color: #272e32;
}

.offer-img {
  margin: 0 -15px;
}

.offer-detail {
  width: 800px;
}

.offerItemTitle {
  position: absolute;
  left: 52%;
  z-index: 1;
  width: 476px;
  color: #000;
  transform: rotate(-90deg);
  transform-origin: left;
  text-align: center;
  margin: 0 auto;
  top: 88.9%;
  height: 106px;
  line-height: 106px;
  background: #f3f3f3;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: bold;
}

.offerItemTitle::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  border-radius: 100px;
  width: 0;
  background-color: #ed1625;
  transition: all 1s ease-in-out;
  color: white;
  /* transform: scale(0) translateX(-100%); */
}

.offerItemTitle:hover::before {
  transition: all 1.5s ease-in-out;
  border-radius: 50px;
  width: 300%;
  transform: scale(1) translateX(-100px);
}

.offerItemTitle span,
.offerItemTitle img {
  transition: filter 0.3s ease;
  z-index: 9999;
  font-size: 48px;
  font-weight: 500;
  padding: 0 15px;
  /* width: 300px; */
  display: inline-block;
}

.offerItemTitle:hover span,
.offerItemTitle:hover img {
  filter: invert(1);
  z-index: 9999;
  transition: filter 0.3s ease;
  transition-delay: 0.5s;
  /* Delay the transition by 3 seconds */
}

.offerslide {
  display: flex;
  justify-content: center;
  padding-bottom: 25px;
  gap: 10px;
}

.offerItem.active {
  width: calc(70% - 1 * 80px);
}

.offerItem.active .offer-detail {
  width: 100%;
  height: 100%;
}

.offerItem.active .offer-detail .row {
  height: 100%;
}

.offerItem.active .offer-detail .row .col {
  height: 100%;
}

.offerItem.active .offer-img {
  height: 100%;
}

.offerItem.active .offer-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.offerItem.active .offer-detail .row .col:first-child {
}

.offer-content {
  max-width: none;
  margin: 0 auto;
  top: 0;
  position: relative;
  transform: translate(0, 0%);
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px 30px;
  text-align: left;
  height: 100%;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
}

.offer-tabs.tab-content {
  padding: 10px 0;
}

.offerslide:after {
  content: "";
  clear: both;
  display: block;
}

.offer-content p {
  color: #000;
}

.offer-content h2 {
  font-size: 24px;
  color: #000;
  text-transform: uppercase;
}

.offerItemTitle.hide {
  display: none !important;
}

.offerItem.active .offer-content {
  transition: 0.3s ease;
  opacity: 1;
}

.offer-content a {
  background: #ed1625;
  color: #fff;
  padding: 10px 20px;
  display: inline-block;
  margin-top: 10px;
  border: 0;
  border-radius: 3px;
  margin-bottom: 10px;
  margin-top: 0;
}

.offerItemTitle img {
  height: 15px;
  position: absolute;
  right: 40px;
  top: 35px;
}

.offerItemTitle:nth-child(2) img {
  border: 2px solid red;
  animation: moveArrow 1s ease-in-out infinite;
}

@keyframes moveArrow {
  0% {
    transform: translateY(-5px);
  }

  50% {
    transform: translateY(5px);
  }

  100% {
    transform: translateY(-5px);
  }
}

/*end*/

@media (max-width: 991px) {
  .offerItem.active .offer-detail {
    width: 750px;
  }

  .offer-detail {
    width: 595px;
  }

  h4.offerItemTitle {
    height: 50px;
    line-height: 50px;
    left: 25px;
    top: 94%;
  }

  .offerItem {
    width: 50px;
  }

  .offerItem.active {
    width: calc(100% - 6 * 50px);
  }

  .offerItem.active .offer-content {
    margin-left: 20px;
  }

  .offer-content p {
    font-size: 14px;
    width: auto;
    padding-right: 15px;
    padding-bottom: 0;
  }

  .offerItem.active .offer-content {
    margin-left: 0;
    top: 0;
    padding-left: 20px;
    padding-top: 30px;
  }

  .offerItem h3 {
    margin-top: 8%;
    margin-bottom: 3%;
  }

  h4.offerItemTitle {
    font-size: 14px;
    top: 93%;
    width: 280px;
    height: 36px;
    line-height: 36px;
    left: 17px;
  }

  .offerItem.active .offer-detail {
    width: 500px;
  }

  .offer-content h2 {
    font-size: 18px;
    margin: 0;
  }

  .offer-content a {
    padding: 7px 13px;
    font-size: 16px;
    margin-top: 10px;
  }

  .offer-detail {
    width: 395px;
    max-height: 279px;
  }

  .offerItem {
    width: 35px;
  }

  .offerItem.active {
    width: calc(100% - 6 * 35px);
  }

  .offerslide {
    padding: 0 0em !important;
    display: block !important;
  }

  .offerItem {
    width: 100%;
    height: auto !important;
    padding: 0;
    margin: 0;
    margin: 10px 0;
    border: 1px solid #959595 !important;
    border-right: 1px solid #959595 !important;
    border-top: 1px solid #959595 !;
  }

  .offer-detail {
    width: 100%;
    max-height: unset;
    display: none;
  }

  h4.offerItemTitle {
    padding-left: 0;
    position: relative;
    transform: rotate(0);
    height: 65px;
    line-height: 65px;
    width: auto !important;
    left: 0;
    margin: 0;
    text-align: center;
  }

  .offer-img {
    margin: 0;
  }

  .offer-content {
    margin: 0;
    max-width: 100%;
    padding: 15px;
    padding: 0;
  }

  .offerItemTitle.hide {
    background: #f3f3f3;
    display: block;
  }

  .offerItem.active .offer-detail {
    width: 100%;
    display: block;
    transition: all 0.5s ease-in-out;
  }

  .offerItem.active .offer-detail .row .col:first-child {
    max-width: 50% !important;
  }

  .offerItem.active {
    width: 100%;
    border: none;
  }

  .offerItem.active .offer-detail .row {
    height: 100%;
    flex-wrap: wrap;
    display: flex;
  }

  /* .offerItem.active .offer-img {
    height: 200px;
    position: absolute;
    right: 0;
    width: 300px;
    overflow: hidden;
    margin-top: 0px;
  } */

  .offer-content span img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .offerItem.active .offer-img img {
    width: 100% !important;
    height: 100%;
    object-fit: cover;
  }

  .offer-content span {
    display: inline-block !important;
    margin-bottom: 0;
    height: 130px;
  }
}

@media (max-width: 767px) {
  .offerItem.active .offer-img {
    height: 260px;
    overflow: hidden;
  }

  .offer-content span img {
    width: 55%;
    height: auto;
  }

  .offerItem h3 {
    margin-top: 0 !important;
    margin-bottom: 5% !important;
    width: 100%;
    font-weight: bold;
  }

  .offerItemTitle img {
    height: 23px;
    top: 11px;
  }

  .eventsDiv .HighlightsDiv {
    margin-top: -3px;
    text-align: center;
  }

  .eventsDiv h2 {
    margin-bottom: 20px !important;
    margin-top: 15px;
  }

  .eventsDiv .impact-stories-hilits {
    top: -45px;
  }
}
