/* Hero */

@media screen and (min-width: 1025px) {
  .hero-pin .e-con-inner {
    display: block;
    height: 100vh;
    padding: 0;
  }

  .hero-video {
    width: 100%;
    height: 100vh;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    background: var(--joincast-black-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
  }

  .hero-video.loaded {
    background: transparent;
  }

  .video-wrap::before,
  .video-wrap::after {
    content: "";
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    pointer-events: none;
    z-index: 10;
  }

  .hero-slide {
    transition: opacity 0.25s ease-in, transform 0.25s ease-in;
  }

  .hero-slide.hidden {
    opacity: 0;
    transform: translateY(-20%);
  }

  .hero-pin.white .hero-video {
    background: white;
  }

  .hero-video .video-wrap::before {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 45%,
      rgba(var(--joincast-black-bg-rgb), 0.4) 75%,
      rgba(var(--joincast-black-bg-rgb), 1) 100%
    );
  }

  .hero-video .video-wrap::after {
    background: linear-gradient(
      to right,
      rgba(var(--joincast-black-bg-rgb), 1) 0%,
      rgba(var(--joincast-black-bg-rgb), 0.2) 35%,
      rgba(255, 255, 255, 0) 50%
    );
  }

  .hero-video .video-wrap {
    height: 100vh;
    pointer-events: all;
  }

  .hero-video video,
  .hero-video img {
    height: 100%;
    width: 100vw;
    object-fit: cover;
  }

  .hero-pin.small-video .hero-video video,
  .hero-pin.small-video .hero-video img {
    border-radius: 20px;
  }

  .hero-slide {
    height: 100vh;
    color: white;
    margin: 0;
    border: 0;
    opacity: 0;
    transition: all 0.25s ease;
  }

  .hero-slide.active-slide {
    z-index: 2;
  }

  body:not(.elementor-editor-active) .hero-slide {
    position: absolute;
  }

  body.elementor-editor-active .hero-pin {
    height: 200vh;
  }

  body.hero-pinned .hero-slide .widget-animate {
    opacity: 0;
    transform: translateY(20px) !important;
    transition: all 0.5s ease-in-out;
    transition-delay: 0.5s;
  }

  body.elementor-editor-active .hero-slide .widget-animate {
    opacity: 1 !important;
    transform: translateY(0px) !important;
  }

  body.hero-pinned .hero-slide .widget-animate[data-delay="0.1"] {
    transition-delay: 0.1s;
  }

  body.hero-pinned .hero-slide .widget-animate[data-delay="0.2"] {
    transition-delay: 0.2s;
  }

  body.hero-pinned .hero-slide .widget-animate[data-delay="0.3"] {
    transition-delay: 0.3s;
  }

  body.hero-pinned .hero-slide .widget-animate[data-delay="0.4"] {
    transition-delay: 0.4s;
  }

  body.hero-pinned .hero-slide .widget-animate[data-delay="0.5"] {
    transition-delay: 0.5s;
  }

  body.hero-pinned .hero-slide .widget-animate[data-delay="0.6"] {
    transition-delay: 0.6s;
  }

  body.hero-pinned .hero-slide .widget-animate[data-delay="0.7"] {
    transition-delay: 0.7s;
  }

  body.hero-pinned .hero-slide .widget-animate[data-delay="0.8"] {
    transition-delay: 0.8s;
  }

  body.hero-pinned .hero-slide .widget-animate[data-delay="0.9"] {
    transition-delay: 0.9s;
  }

  body.hero-pinned .hero-slide.active-slide .widget-animate {
    transform: translateY(0px) !important;
    opacity: 1;
  }

  .elementor-editor-active .hero-slide {
    opacity: 1;
  }

  .active-slide {
    opacity: 1;
  }

  .hero-pin {
    transition: none;
  }

  .hero-pin.small-video .hero-video {
    background-color: white;
  }

  .hero-pin.no-gradient .hero-video .video-wrap::before {
    display: none;
  }

  .hero-pin.no-gradient .hero-video .video-wrap::after {
    display: none;
  }
}

@media screen and (max-width: 1024px) {
  .hero-pin .video-wrap {
    transform: none !important;
    width: 100% !important;
    height: 100% !important;
  }
}

@media screen and (max-width: 767px) {
  .mobile-hidden {
    display: none;
  }
}

/* make the logo able to flow between sections */
body:not(.hero-pinned) #Section2 {
  overflow: visible;
  z-index: 0;
}

.numbers-box {
  flex: 1;
  padding: 30px 20px;
  border-radius: 12px;

  /* Glass effect */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);

  /* Border + glow */
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);

  color: #fff;
}

.numbers-box .numbers-top {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--e-global-color-secondary);
}

.numbers-box .numbers-number {
  font-size: var(--custom-title-2-default);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.numbers-box .numbers-bottom {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4em;
  opacity: 0.8;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  margin-bottom: 24px;
  line-height: 160%;
  color: #fff;
  backdrop-filter: blur(4px);
}

.badge p {
  font-size: 0.75rem;
}

.badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--e-global-color-secondary);
  border-radius: 2px;
}

.video-wrap .play-button {
  justify-content: center;
  align-items: center;
  width: 84px;
  height: 84px;
  padding: 0px 0px 0px 4px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  overflow: hidden;
  transition: all 0.4s ease-out;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  cursor: pointer;
}

.hero-pin.small-video .video-wrap .play-button {
  display: flex;
}

.hero-pin.small-video .hero-video {
  background: none;
  z-index: 10;
}

.video-wrap .play-button:after {
  content: "Play Video";
  display: block;
  width: 1px;
  white-space: nowrap;
  font-family: var(--font-stack-heading);
  font-size: 0.888rem;
  font-weight: 500;
  line-height: 1.25em;
  overflow: hidden;
  transition: all 0.4s ease-out;
}

.video-wrap .play-button svg {
  display: flex;
  width: 20px;
  height: auto;
  opacity: 1;
  filter: none;
}

.video-wrap .play-button:hover {
  gap: 12px;
  width: fit-content;
  padding: 30px 40px 30px 40px;
}

.video-wrap .play-button:hover:after {
  width: fit-content;
}

@media screen and (min-width: 2400px) {
  .hero-slide {
    padding: 100px;
  }
}

/* Adjust on Small Laptop */
@media (max-height: 900px) and (min-width: 1025px) and (max-width: 1920px) {
  .hero-small-screen .hero-text-wrap {
    gap: 12px;
  }

  .hero-small-screen .hero-text-wrap h1 span {
    font-size: var(--custom-title-1-1366-max);
  }

  .hero-small-screen .hero-text-wrap p span,
  .hero-small-screen .hero-text-wrap .badge p {
    font-size: 17px;
  }

  .hero-small-screen .hero-cta-wrap .button a .elementor-button-text {
    font-size: 15px;
  }

  .numbers-box {
    padding: 20px;
  }

  .numbers-box .numbers-number {
    font-size: var(--custom-title-2-1366-max);
  }

  #Section2 .custom-title-2 span {
    font-size: 1.6rem;
  }

  #Section2 .text-wrap p:not(.numbers-number, .numbers-bottom) {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.55em;
  }

  #Section2 .numbers-number {
    font-size: 1.45rem;
  }
}

@media (min-width: 1025px) and (max-width: 1500px) {
  /* .numbers.laptop-hidden {
    display: none;
  } */

  .hero-small-screen .numbers {
    width: 600px;
  }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .hero-small-screen .hero-cta-wrap {
    width: 240px;
  }

  .hero-small-screen .hero-cta-wrap .button a {
    min-width: 240px;
  }
}

/* Hero Tablet */
@media screen and (max-width: 1024px) {
  .hero-pin .hero-video {
    position: relative;
    height: 480px;
  }

  .hero-pin .hero-video .elementor-element,
  .hero-video .video-wrap {
    height: 100%;
  }

  .hero-video .video-wrap video,
  .hero-video .video-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .video-wrap::before {
    content: "";
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    pointer-events: none;
    z-index: 10;
    background: linear-gradient(
      to top,
      rgba(255, 255, 255, 0) 10%,
      rgba(var(--joincast-black-bg-rgb), 0.3) 80%,
      rgba(var(--joincast-black-bg-rgb), 1) 100%
    );
  }

  .hero-pin .hero-slide:not(#Section2) {
    margin-top: 0px !important;
    padding-top: 40px !important;
    background: var(--joincast-black-bg);
  }

  .hero-pin .hero-text-wrap,
  .hero-pin .numbers-col {
    width: 100%;
    z-index: 1;
  }

  .hero-small-screen .hero-text-wrap h1 span {
    font-size: var(--custom-title-1-1366-max);
  }

/*   .hero-small-screen .hero-text-wrap p span {
    font-size: 16px;
  } */

  .hero-small-screen .hero-cta-wrap .button a .elementor-button-text {
    font-size: 15px;
  }

  .numbers-box .numbers-number {
    font-size: var(--custom-title-2-1366-max);
  }
}

/* Hero Mobile */
@media screen and (max-width: 767px) {
  .hero-pin .hero-video {
    height: 270px;
  }

  .video-wrap::before {
    display: none;
  }

  .hero-pin .hero-slide:not(#Section2) {
    padding-top: 20px !important;
  }

  .hero-small-screen .hero-text-wrap h1 span {
    font-size: var(--custom-title-1-767-max) !important;
  }

/*   .hero-small-screen .hero-text-wrap p span {
    font-size: 14px !important;
  } */

  .hero-small-screen .hero-cta-wrap .button a .elementor-button-text {
    font-size: 13px !important;
  }

  .hero-cta-wrap {
    flex-wrap: nowrap;
  }

  .hero-cta-wrap .button a,
  .hero-cta-wrap .button {
    width: 100%;
  }

  .hero-cta-wrap .button .elementor-button {
    padding: 10px 30px 10px 4px;
  }

  .hero-cta-wrap .button:after {
    right: 12px;
  }

  .numbers-box {
    padding: 20px 16px;
    border-radius: 8px;
  }

  .numbers-box .numbers-number {
    font-size: var(--custom-title-2-767-max);
  }
}