/* Homepage hero — same visual height as before, with readable copy */

.ck-home-hero {
  position: relative;
  margin: 0 0 0.5rem;
  overflow-x: clip;
}

.ck-home-hero__media {
  position: relative;
  overflow: hidden;
}

.ck-home-hero__carousel.owl-carousel {
  position: relative;
  z-index: 0;
}

.ck-home-hero__carousel .owl-item img,
.ck-home-hero__slide img {
  width: 100%;
  height: clamp(280px, 42vw, 526px);
  object-fit: cover;
  display: block;
}

.ck-home-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    95deg,
    rgba(15, 39, 68, 0.78) 0%,
    rgba(15, 39, 68, 0.58) 38%,
    rgba(15, 39, 68, 0.28) 58%,
    rgba(15, 39, 68, 0.06) 78%,
    transparent 100%
  );
}

.ck-home-hero__content {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  pointer-events: none;
  height: clamp(280px, 42vw, 526px);
}

.ck-home-hero__copy {
  position: relative;
  max-width: 38rem;
  padding: 1.25rem 1.5rem 1.25rem 0;
  pointer-events: auto;
}

.ck-home-hero__copy::before {
  content: "";
  position: absolute;
  left: -24px;
  right: -12px;
  top: -12px;
  bottom: -12px;
  z-index: -1;
  border-radius: 4px;
  background: rgba(12, 12, 12, 0.42);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.ck-home-hero__kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ck-accent-light) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.ck-home-hero__title,
.ck-home-hero h1.ck-home-hero__title {
  margin: 0 0 0.55rem;
  font-family: "Roboto Serif", Georgia, serif;
  font-size: clamp(1.65rem, 3.8vw, 2.65rem);
  font-weight: 500;
  line-height: 1.15;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85), 0 0 24px rgba(0, 0, 0, 0.45);
}

.ck-home-hero__title-short {
  display: none;
}

.ck-home-hero__subtitle,
.ck-home-hero h2.ck-home-hero__subtitle {
  margin: 0 0 0.75rem;
  font-family: "Roboto Serif", Georgia, serif;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 400;
  line-height: 1.35;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8), 0 0 18px rgba(0, 0, 0, 0.4);
}

.ck-home-hero__desc {
  margin: 0 0 1.15rem;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  line-height: 1.6;
  color: #f3f3f3 !important;
  max-width: 32rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.ck-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
}

.ck-home-hero__actions .btn.big-button {
  display: inline-flex;
  width: auto;
  margin-top: 0;
  padding: 0.75rem 1.5rem !important;
  font-size: 1rem !important;
  border-radius: 4px;
  color: #fff !important;
  text-shadow: none;
}

.ck-home-hero__link {
  color: #ffffff !important;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.ck-home-hero__link:hover {
  color: var(--ck-accent) !important;
}

/* Carousel arrows — right edge, above image */
.ck-home-hero .owl-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(280px, 42vw, 526px);
  z-index: 4;
  pointer-events: none;
  margin: 0;
}

.ck-home-hero .owl-nav button.owl-prev,
.ck-home-hero .owl-nav button.owl-next {
  position: absolute;
  top: 50% !important;
  bottom: auto !important;
  left: auto !important;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0 !important;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.55) !important;
  background-image: none !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  color: #fff !important;
  font-size: 28px !important;
  line-height: 1 !important;
  cursor: pointer;
  pointer-events: auto;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ck-home-hero .owl-nav button.owl-prev {
  right: 4.75rem;
}

.ck-home-hero .owl-nav button.owl-next {
  right: 1.25rem;
}

.ck-home-hero .owl-nav button.owl-prev:hover,
.ck-home-hero .owl-nav button.owl-next:hover {
  background: rgba(0, 0, 0, 0.75) !important;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
}

.ck-home-hero .owl-nav button span {
  display: block !important;
  font-size: 28px;
  line-height: 1;
  color: #fff !important;
  font-weight: 300;
  margin-top: -2px;
}

.ck-home-hero .owl-nav button.owl-prev::before,
.ck-home-hero .owl-nav button.owl-next::before {
  display: none !important;
}

.ck-home-hero .owl-nav button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .ck-home-hero {
    overflow: visible;
  }

  .ck-home-hero__carousel .owl-item img,
  .ck-home-hero__slide img {
    height: clamp(200px, 48vw, 260px) !important;
  }

  .ck-home-hero .owl-nav {
    height: clamp(200px, 48vw, 260px);
  }

  .ck-home-hero__shade {
    height: clamp(200px, 48vw, 260px);
    bottom: auto;
    background: linear-gradient(
      180deg,
      rgba(15, 39, 68, 0.12) 0%,
      rgba(15, 39, 68, 0.28) 100%
    );
  }

  /* Copy sits below the slider — outside overflow:hidden media */
  .ck-home-hero__content {
    position: relative;
    top: auto;
    bottom: auto;
    height: auto;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    align-items: stretch;
    padding: 1.15rem 1.25rem 1.25rem;
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
    background: linear-gradient(180deg, #1a2d45 0%, #152536 100%);
    pointer-events: auto;
  }

  .ck-home-hero__copy {
    max-width: none;
    width: 100%;
    padding: 0;
    overflow-wrap: anywhere;
  }

  .ck-home-hero__copy::before {
    display: none;
  }

  .ck-home-hero__kicker {
    margin-bottom: 0.35rem;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    padding-left: 0.05rem;
  }

  .ck-home-hero__title-long {
    display: none;
  }

  .ck-home-hero__title-short {
    display: block;
  }

  .ck-home-hero__title,
  .ck-home-hero h1.ck-home-hero__title {
    font-size: 1.35rem;
    line-height: 1.2;
    margin-bottom: 0.4rem;
    text-shadow: none;
  }

  .ck-home-hero__subtitle,
  .ck-home-hero h2.ck-home-hero__subtitle {
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
    text-shadow: none;
  }

  .ck-home-hero__desc {
    display: none;
  }

  .ck-home-hero__actions {
    margin-top: 0.15rem;
  }

  .ck-home-hero__actions .btn.big-button {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    padding: 0.65rem 0.85rem !important;
    font-size: 0.88rem !important;
    line-height: 1.35;
    white-space: normal;
  }

  .ck-home-hero .owl-nav {
    display: none;
  }
}

@media (max-width: 575px) {
  .ck-home-hero__title,
  .ck-home-hero h1.ck-home-hero__title {
    font-size: 1.2rem;
  }

  .ck-home-hero__subtitle,
  .ck-home-hero h2.ck-home-hero__subtitle {
    font-size: 0.88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ck-home-hero__carousel .owl-item img {
    transition: none;
  }
}
