.un_event.card {
  border-radius: 12px;
  height: 310px;
}

.un_swiper_slide_branner .swiper-button-prev,
.un_swiper_slide_branner .swiper-button-next {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.swiper-button-prev {
  left: 10px !important;
  color: var(--primary-color);
}

.swiper-button-next {
  right: 10px !important;
  color: var(--primary-color);
}

.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after,
.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
  background-color: #fff;
  padding: 8px;
  border-radius: 8px;
}

.un_swiper_slide_branner:hover .swiper-button-prev,
.un_swiper_slide_branner:hover .swiper-button-next {
  opacity: 1;
}

.youtube-height-home {
  height: 300px;
}

.un_title_date {
  padding: 24px 24px 0px 24px;
  background-color: #f5f5f5;
  border-radius: 12px 12px 0px 0px;
}

.un_degree > .card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 350px;
  border: none;
  border-radius: 4px;
  overflow: hidden;
}

.un_degree .card::after {
  content: "";
  position: absolute;
  height: 350px;
  width: 100%;
  background: linear-gradient(180deg, #fff 0.34%, #000 99.7%);
  opacity: 0.2;
}

.un_degree:nth-child(1) .card {
  background: url("../assets/images/dregree/bachelorBannerHome.png"),
    #d3d3d3 50%;
  /* background-position: center; */
  background-repeat: no-repeat;
  background-size: cover;
}

.un_degree:nth-child(2) .card {
  background: url("../assets/images/dregree/masterBanner.png"), #d3d3d3 50%;
  background-repeat: no-repeat;
  /* background-position: center; */
  background-size: cover;
}

.un_degree:nth-child(3) .card {
  background: url("../assets/images/dregree/PhdBanner.png"), #d3d3d3 50%;
  /* background-position: center; */
  background-repeat: no-repeat;
  background-size: cover;
}

.main_activity_card {
  background-image: url("../assets//images/home/news_activity/main4.png");
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
}

.un_tab_content > .un_date_event {
  color: var(--color-date) !important;
}

.un_title_event {
  height: 48px;
  text-overflow: ellipsis;
  text-wrap: nowrap;
  overflow: hidden;
}

.un_swiper_slide_event .swiper-slide {
  height: auto !important;
}

.main_activity_card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 40%;
  background: transparent !important;
  pointer-events: none;
}

/* .un_tab_content .card {
  height: 165px !important;
} */

.un_swiper_partner_section .swiper-pagination {
  overflow: visible !important;
}

.un_swiper_partner_container {
  height: 120px;
  overflow: hidden;
}

.un_swiper_partner_section .un_swiper {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0 32px;
  height: 120px;
}

.un_swiper_partner_section .swiper-wrapper {
  height: 85px;
  align-items: center;
  justify-content: space-between;
}

.un_swiper_partner_section img {
  display: block;
  width: 100%;
  /* height: 65px; */
  -o-object-fit: contain;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.un_swiper_partner_section a,
.un_swiper_partner_section button {
  cursor: pointer;
}

.un_swiper_partner_section .swiper-button-next::after,
.un_swiper_partner_section .swiper-button-prev::after {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  width: 32px !important;
  height: 32px !important;
  opacity: 0.75;
  color: var(--color-arrow-slide);
}

.un_swiper_event_section,
.un_swiper_partner_section,
.un_swiper_branner_section {
  position: relative;
}

.un_swiper_branner_section .swiper {
  overflow: hidden;
}

.un_swiper_branner_section .swiper-wrapper {
  margin-bottom: 30px;
}

.un_swiper_branner_section .swiper img {
  height: calc(100% - 50px);
}

.un_swiper_partner_section .swiper-pagination-bullet-active,
.un_swiper_event_section .swiper-pagination-bullet-active,
.un_swiper_branner_section .swiper-pagination-bullet-active {
  background-color: #333436;
}

.un_swiper_branner_section .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  font-size: 10px;
}

.un_swiper_event_section .swiper-pagination {
  bottom: 0;
}

.un_swiper_partner_section .swiper-pagination {
  bottom: -5px;
}

.un_swiper_branner_section .swiper-pagination {
  bottom: -5px;
}
/* 
.un_swiper_branner_section .swiper-button-prev,
.un_swiper_branner_section .swiper-button-next {
  display: none;
} */

.un_swiper_event_section .swiper-button-prev,
.un_swiper_event_section .swiper-button-next {
  display: none;
}

.un_swiper_event_container .un_swiper {
  height: 350px;
}

@media only screen and (max-width: 1200px) and (min-width: 769px) {
  /* .un_swiper_event_container .un_swiper {
    height: calc(660px + 80px) !important;
  } */

  .un_swiper_event_section .swiper-wrapper {
    /* flex-direction: row; */
    align-items: baseline;
  }
}

@media only screen and (max-width: 768px) {
  .un_activity_res_mb {
    flex-wrap: nowrap !important;
    overflow-x: scroll !important;
    overflow-y: hidden !important;
  }

  .un_swiper_branner_section .swiper-button-prev:hover,
  .un_swiper_branner_section .swiper-button-next:hover {
    display: block !important;
    background-color: transparent;
    color: var(--primary-color);
  }

  .un_swiper_partner_section .un_swiper {
    width: 100%;
    padding: 0 60px;
  }

  .un_degree > .card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 215px !important;
    border: none;
    border-radius: 4px;
    overflow: hidden;
  }

  .un_degree .card::after {
    content: "";
    position: absolute;
    height: 215px !important;
    width: 100%;
    background: linear-gradient(180deg, #fff 0.34%, #000 99.7%);
    opacity: 0.2;
  }

  .youtube-height-home {
    height: 400px;
  }
}
