/* Widget overflow — top icon + hover translate */
.elementor-widget-videosnkkaveh,
.elementor-widget-videosnkkaveh > .elementor-widget-container {
  overflow: visible !important;
}

/* Elementor editor: readable multi-slide preview before swiper init */
.elementor-editor-active .videos-nk .swiper-videos-nk:not(.swiper-initialized) .swiper-wrapper,
.elementor-element-edit-mode .videos-nk .swiper-videos-nk:not(.swiper-initialized) .swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
}
.elementor-editor-active .videos-nk .swiper-videos-nk:not(.swiper-initialized) .swiper-slide,
.elementor-element-edit-mode .videos-nk .swiper-videos-nk:not(.swiper-initialized) .swiper-slide {
  display: block !important;
  flex: 0 0 auto;
  width: calc(25% - 12px);
  max-width: 260px;
  min-width: 180px;
}

/* Icons */
.videos-nk [class^="icon-"],
.videos-nk [class*=" icon-"] {
  font-family: "icomoon" !important;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  speak: never;
  display: inline-block;
  vertical-align: middle;
}
.videos-nk .icon-play-4:before { content: "\ea41"; }
.videos-nk .icon-happy-emoji:before { content: "\ea3f"; }
.videos-nk .icon-chevron-left-2:before { content: "\ea3b"; }

.videos-nk {
  width: 100%;
  direction: inherit;
  unicode-bidi: isolate;
}

.videos-nk a {
  text-decoration: none;
}

.videos-nk .swiper-videos-nk:not(.swiper-initialized) .swiper-slide:not(:first-child) {
  display: none;
}

/* Wrapper */
.videos-nk__wrapper {
  padding: 60px 46px 0;
  z-index: 2;
}
.videos-nk__wrapper::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 100%;
  height: 50%;
  background-color: var(--kaveh-primary-color, #e90544);
  border-radius: 30px;
  z-index: -2;
}
.videos-nk__wrapper::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 64px;
  -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMTUiIGhlaWdodD0iMzciIGZpbGw9Im5vbmUiPjxwYXRoIGZpbGw9IiNEOUQ5RDkiIGQ9Ik0xMTQuMSAwYTMwIDMwIDAgMCAwLTI0LjU2IDEyLjc3bC03LjczIDExLjAyYy0xMS45NSAxNy4wMi0zNy4xNyAxNy4wMi00OS4xMiAwbC03LjczLTExLjAyQTMwIDMwIDAgMCAwIC40IDB6IiBzdHlsZT0iZmlsbDojZDlkOWQ5O2ZpbGw6Y29sb3IoZGlzcGxheS1wMyAuODUxIC44NTEgLjg1MSk7ZmlsbC1vcGFjaXR5OjEiLz48L3N2Zz4=") 0 0 / 100% 100%;
  mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMTUiIGhlaWdodD0iMzciIGZpbGw9Im5vbmUiPjxwYXRoIGZpbGw9IiNEOUQ5RDkiIGQ9Ik0xMTQuMSAwYTMwIDMwIDAgMCAwLTI0LjU2IDEyLjc3bC03LjczIDExLjAyYy0xMS45NSAxNy4wMi0zNy4xNyAxNy4wMi00OS4xMiAwbC03LjczLTExLjAyQTMwIDMwIDAgMCAwIC40IDB6IiBzdHlsZT0iZmlsbDojZDlkOWQ5O2ZpbGw6Y29sb3IoZGlzcGxheS1wMyAuODUxIC44NTEgLjg1MSk7ZmlsbC1vcGFjaXR5OjEiLz48L3N2Zz4=") 0 0 / 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  background-color: var(--bg-body, #fff);
  width: 114px;
  height: 37px;
  z-index: -1;
}
.videos-nk__wrapper > .icon {
  width: 64px;
  height: 64px;
  background-color: var(--kaveh-primary-color, #d4242e);
  border-radius: 20px;
  font-size: 32px;
  right: 91px;
  z-index: 3;
  position: absolute;
}
.videos-nk__wrapper > .icon::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 8px;
  width: 100%;
  height: 100%;
  background-color: inherit;
  border-radius: inherit;
  opacity: 0.3;
  filter: blur(24px);
  z-index: -1;
}
.videos-nk__wrapper > .icon i,
.videos-nk__wrapper > .icon span {
  font-size: inherit;
  color: inherit;
  line-height: 1;
}

/* Swiper */
.videos-nk .swiper-videos-nk {
  padding-bottom: 22px;
}
.videos-nk .swiper-videos-nk .swiper-slide {
  height: auto;
}

/* Heading */
.videos-nk .section-heading-one-nk {
  margin-bottom: 40px;
}
.videos-nk .section-heading-one-nk .title {
  font-size: 20px;
  line-height: 32px;
  font-weight: 500;
  color: #fff;
  margin: 0;
}
.videos-nk .section-heading-one-nk .sub-title {
  font-size: 15px;
  line-height: 22px;
  color: #fff;
  margin: 0;
}
.videos-nk .section-heading-one-nk .line {
  margin: 0 3px;
}
.videos-nk .section-heading-one-nk .line span:first-child {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.85);
  height: 1px;
}
.videos-nk .section-heading-one-nk .line span:last-child {
  width: 27px;
  height: 3px;
  background-color: #fff;
  border-radius: 10px;
  flex-shrink: 0;
}
.videos-nk .section-heading-one-nk .btn {
  gap: 15px;
  font-size: 12px;
  line-height: 19px;
  padding: 18px 27px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(217, 217, 217, 0.3);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}
.videos-nk .section-heading-one-nk .btn::after {
  content: "";
  position: absolute;
  top: 31px;
  right: 39px;
  bottom: -4px;
  left: 10px;
  background-color: inherit;
  opacity: 0.5;
  filter: blur(48px);
  z-index: -1;
}
.videos-nk .section-heading-one-nk .btn i {
  font-size: 14px;
}
.videos-nk .section-heading-one-nk .btn:hover,
.videos-nk .section-heading-one-nk .btn:focus,
.videos-nk .section-heading-one-nk .btn:active {
  background-color: #fff;
  border-color: #fff;
  color: #000;
}

/* Item */
.videos-nk__item {
  transition: all 0.3s linear;
}
.videos-nk__item .image {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-align: inherit;
}
.videos-nk__item .image.is-disabled,
.videos-nk__item .image:disabled {
  cursor: default;
  opacity: 0.85;
}
.videos-nk__item .image:focus-visible {
  outline: 2px solid var(--kaveh-primary-color, #e90544);
  outline-offset: 3px;
  border-radius: 20px;
}
.videos-nk__item .image img {
  height: 353px;
  object-fit: cover;
  border-radius: 20px;
}
.videos-nk__item .image i,
.videos-nk__item .image > span {
  width: 76px;
  height: 76px;
  background-color: #171717;
  box-shadow: 0px 4px 24px #171717;
  font-size: 27px;
  transition: all 0.3s ease-in-out;
  z-index: 1;
}
.videos-nk__item .content {
  margin-top: 40px;
  padding: 17px 32px 0;
  z-index: 2;
}
.videos-nk__item .content::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 8px;
  left: 0;
  width: 100%;
  border-radius: 30px;
  background-color: #fff;
  border: 2px solid #fff;
  box-shadow: 26px 29px 29px -20px rgba(204, 219, 219, 0.2) inset;
  z-index: -1;
}
.videos-nk__item .author {
  gap: 10px;
  margin-bottom: 32px;
}
.videos-nk__item .author img {
  -webkit-mask-image: radial-gradient(192.06% 76.32% at 26.32% 39.47%, #fcf0a8 0%, rgba(150, 143, 100, 0) 100%);
  mask-image: radial-gradient(192.06% 76.32% at 26.32% 39.47%, #fcf0a8 0%, rgba(150, 143, 100, 0) 100%);
  width: 48px;
  height: 48px;
  object-fit: cover;
}
.videos-nk__item .author .name {
  font-size: 14px;
  line-height: 20px;
  color: #000;
  margin-bottom: 6px;
  display: block;
  text-decoration: none;
}
.videos-nk__item .author .date {
  font-size: 12px;
  line-height: 18px;
  color: #7f7f88;
}
.videos-nk__item .more {
  text-decoration: none;
}
.videos-nk__item .more .title {
  font-size: 15px;
  line-height: 24px;
  color: var(--kaveh-primary-color, #d4242e);
}
.videos-nk__item .more .all,
.videos-nk__item .more i,
.videos-nk__item .more > span:last-child {
  transition: all 0.3s ease-in-out;
}
.videos-nk__item .more .all {
  font-size: 14px;
  line-height: 20px;
  color: #a4a8ba;
}
.videos-nk__item .more i,
.videos-nk__item .more > span.d-flex,
.videos-nk__item .more > i {
  width: 58px;
  height: 48px;
  background-color: var(--kaveh-primary-color, #e90544);
  border: 1px solid rgba(217, 217, 217, 0.3);
  font-size: 14px;
  border-radius: 30px;
  flex-shrink: 0;
}
.videos-nk__item:hover {
  transform: translateY(22px);
}
.videos-nk__item:hover .image i,
.videos-nk__item:hover .image > span {
  background-color: var(--kaveh-primary-color, #e90544);
  box-shadow: 0px 4px 24px var(--kaveh-primary-color, #e90544);
}
.videos-nk__item:hover .more .all {
  color: var(--kaveh-primary-color, #e90544);
}
.videos-nk__item:hover .more i,
.videos-nk__item:hover .more > span.d-flex,
.videos-nk__item:hover .more > i {
  background-color: var(--kaveh-primary-hover, var(--kaveh-primary-color, #c10438));
}

/* Responsive */
@media (max-width: 1399.98px) {
  .videos-nk__item .image img {
    height: 300px;
  }
  .videos-nk__item .content {
    padding: 17px 20px 0;
  }
}

@media (max-width: 1199.98px) {
  .videos-nk__wrapper {
    padding: 60px 32px 0;
  }
  .videos-nk__item .image img {
    height: 250px;
  }
  .videos-nk__item .content {
    padding: 17px 20px 0;
  }
}

@media (max-width: 767.98px) {
  .videos-nk__wrapper {
    padding: 26px 10px 0;
  }
  .videos-nk__wrapper::before {
    border-radius: 15px;
    top: 7px;
  }
  .videos-nk__wrapper::after {
    -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MiIgaGVpZ2h0PSIxOCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0Q5RDlEOSIgZD0iTTUxLjQgMGE5LjIgOS4yIDAgMCAwLTguMzYgNS4zN0w0MS41IDguNzRjLTUuMjYgMTEuNDktMjEuNSAxMS43LTI3LjA1LjM1bC0uMzQtLjY4QTE1IDE1IDAgMCAwIC42NCAweiIgc3R5bGU9ImZpbGw6I2Q5ZDlkOTtmaWxsOmNvbG9yKGRpc3BsYXktcDMgLjg1MSAuODUxIC44NTEpO2ZpbGwtb3BhY2l0eToxIi8+PC9zdmc+");
    mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1MiIgaGVpZ2h0PSIxOCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0Q5RDlEOSIgZD0iTTUxLjQgMGE5LjIgOS4yIDAgMCAwLTguMzYgNS4zN0w0MS41IDguNzRjLTUuMjYgMTEuNDktMjEuNSAxMS43LTI3LjA1LjM1bC0uMzQtLjY4QTE1IDE1IDAgMCAwIC42NCAweiIgc3R5bGU9ImZpbGw6I2Q5ZDlkOTtmaWxsOmNvbG9yKGRpc3BsYXktcDMgLjg1MSAuODUxIC44NTEpO2ZpbGwtb3BhY2l0eToxIi8+PC9zdmc+");
    width: 51px;
    height: 18px;
    right: 31px;
    top: 7px;
  }
  .videos-nk__wrapper > .icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    right: 41px;
  }
  .videos-nk .section-heading-one-nk {
    margin-bottom: 24px;
  }
  .videos-nk .section-heading-one-nk .btn {
    padding: 12px 16px;
  }
  .videos-nk__item .image i,
  .videos-nk__item .image > span {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }
  .videos-nk__item .content {
    margin-top: 14px;
    padding: 14px 16px 0;
  }
  .videos-nk__item .content::before {
    border-radius: 15px;
    bottom: 16px;
  }
  .videos-nk__item .author {
    gap: 8px;
    margin-bottom: 12px;
  }
  .videos-nk__item .author img {
    width: 33px;
    height: 33px;
  }
  .videos-nk__item .author .name {
    font-size: 12px;
    line-height: 18px;
  }
  .videos-nk__item .author .date {
    font-size: 10px;
    line-height: 16px;
  }
  .videos-nk__item .more i,
  .videos-nk__item .more > span.d-flex,
  .videos-nk__item .more > i {
    width: 40px;
    height: 32px;
    font-size: 14px;
  }
  .videos-nk__item:hover {
    transform: translateY(12px);
  }
}

@media (max-width: 575.98px) {
  .videos-nk .swiper-videos-nk {
    margin: 0 -12px;
    padding: 0 12px 22px;
  }
}

/* Popup video player — cinematic glass */
body.videos-nk-popup-open {
  overflow: hidden;
}

.videos-nk-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.videos-nk-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.videos-nk-popup__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(115, 43, 237, 0.18) 0%, transparent 48%),
    radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--kaveh-primary-color, #e90544) 12%, transparent) 0%, transparent 36%),
    rgba(7, 5, 16, 0.82);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}
.videos-nk-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  transform: translateY(28px) scale(0.96);
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease;
}
.videos-nk-popup.is-open .videos-nk-popup__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.videos-nk-popup__stage {
  position: relative;
  padding: 10px;
  border-radius: 22px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 42%, rgba(255, 255, 255, 0.05)),
    rgba(18, 14, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 80px rgba(4, 2, 14, 0.55),
    0 0 0 1px rgba(115, 43, 237, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}
.videos-nk-popup__stage::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(115, 43, 237, 0.28), transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.videos-nk-popup__accent {
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--kaveh-primary-color, #e90544) 22%, color-mix(in srgb, #732bed 72%, #000) 78%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--kaveh-primary-color, #e90544) 55%, transparent);
  z-index: 2;
}
.videos-nk-popup__close {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 4;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(12, 10, 22, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.videos-nk-popup__close:hover {
  transform: scale(1.06);
  background: color-mix(in srgb, var(--kaveh-primary-color, #e90544) 88%, transparent);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--kaveh-primary-color, #e90544) 35%, transparent);
}
.videos-nk-popup__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.videos-nk-popup__close svg {
  display: block;
  pointer-events: none;
}
.videos-nk-popup__player {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #05050a;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 12px 40px rgba(0, 0, 0, 0.35);
}
.videos-nk-popup__player video,
.videos-nk-popup__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
  object-fit: contain;
}

@media (max-width: 767.98px) {
  .videos-nk-popup {
    padding: 18px 12px;
  }
  .videos-nk-popup__stage {
    padding: 8px;
    border-radius: 18px;
  }
  .videos-nk-popup__accent {
    left: 12%;
    right: 12%;
  }
  .videos-nk-popup__close {
    top: 14px;
    left: 14px;
    width: 36px;
    height: 36px;
  }
  .videos-nk-popup__player {
    border-radius: 12px;
  }
}
