.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  /* Your hero background SVG — self-contained, does NOT bleed */
  background-image: url("https://torontovape360.com/wp-content/themes/vapestore/assets/img/icon/hero-bg.svg");
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* NOT fixed */
}

/* Dark gradient overlay so text is readable */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(5, 5, 20, 0.82) 0%,
    rgba(5, 5, 20, 0.46) 48%,
    rgba(5, 5, 20, 0.12) 100%
  );
  z-index: 0;
  pointer-events: none;
}

/* Carousel wrapper */
.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.c-track {
  position: relative;
  width: 100%;
  display: flex;
  height: 100%;
  transition: transform 0.72s cubic-bezier(0.4, 0, 0.2, 1);
}
.c-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.c-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.c-inner {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 0 120px;
  padding-top: 90px; /* matches navbar height */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.c-content {
  flex: 1;
  max-width: 620px;
}
.c-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}
.c-image img {
  max-width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

.c-title {
  max-width: 620px;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
  margin-bottom: 16px;
}
.c-sub {
  color: var(--white);
  max-width: 620px;
  margin-bottom: 36px;
  line-height: 1.55;
}

/* Slide animation */
.c-slide .c-title,
.c-slide .c-sub,
.c-slide .btn {
  opacity: 0;
  transform: translateY(20px);
}

/* Animate ONLY active slide */
.c-slide.active .c-title {
  animation: fadeUp 0.6s ease forwards;
}
.c-slide.active .c-sub {
  animation: fadeUp 0.6s 0.15s ease forwards;
}
.c-slide.active .btn {
  animation: fadeUp 0.6s 0.3s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Arrows */
.c-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 20px;
  background: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.25s ease;
}
.c-arrow:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-50%) scale(1.06);
}
.c-arrow img {
  width: 20px;
  height: 20px;
}
.c-prev {
  left: 20px;
}
.c-next {
  right: 20px;
}

/* Dots */
.c-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.c-dot {
  height: 4px;
  width: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  border: none;
  cursor: pointer;
  transition: all 0.32s ease;
}
.c-dot.active {
  background: var(--blue);
  width: 48px;
}

/* Hero responsive */
@media (max-width: 768px) {
  .c-inner {
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
    padding-top: 90px;
  }
  .c-image {
    justify-content: center;
  }
  .c-image img {
    max-height: 320px;
  }
  .c-arrow svg {
    width: 16px;
    height: 16px;
  }
  .c-prev {
    left: 10px;
  }
  .c-next {
    right: 10px;
  }
}

/* PAGE BODY */
.page-body {
  position: relative;
  z-index: 1;
  background: var(--white);
}

@media (max-width: 768px) {
  .c-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px;
  }

  /* IMAGE FIRST */
  .c-image {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  /* CONTENT SECOND */
  .c-content {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* INSIDE CONTENT ORDER */
  .c-title {
    order: 1;
  }

  .btn {
    order: 2;
  }

  /* HIDE PARAGRAPH */
  .c-sub {
    display: none;
  }

  /* spacing */
  .c-title {
    margin-top: 16px;
  }

  .btn {
    margin-top: 12px;
  }

  .c-image img {
    max-height: 320px;
  }
}