.cotc-hero-banner {
  min-height: clamp(480px, 38vw, 750px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cotc-hero-banner.bg-cotc-red,
.cotc-hero-banner__bg-multipart.bg-cotc-red {
  background-color: var(--cotc-red, #CC2207) !important;
}
.cotc-hero-banner.bg-cotc-black,
.cotc-hero-banner__bg-multipart.bg-cotc-black {
  background-color: var(--cotc-black, #000000) !important;
}
.cotc-hero-banner.bg-cotc-tan,
.cotc-hero-banner__bg-multipart.bg-cotc-tan {
  background-color: var(--cotc-tan, #E5C396) !important;
}
.cotc-hero-banner.bg-cotc-yellow,
.cotc-hero-banner__bg-multipart.bg-cotc-yellow {
  background-color: var(--cotc-yellow, #FECC0B) !important;
}
.cotc-hero-banner.bg-cotc-blue,
.cotc-hero-banner__bg-multipart.bg-cotc-blue {
  background-color: var(--cotc-blue, #53C3CD) !important;
}
.cotc-hero-banner__text {
  font-family: var(--cotc-roboto, sans-serif);
  font-size: 1.25rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.cotc-hero-banner__text h2 {
  color: var(--cotc-yellow);
  text-transform: uppercase;
  font-size: 2.25em;
  line-height: 1.1em;
  white-space: normal;
}
.cotc-hero-banner .card-text.mb-4 {
    text-align: justify;
}
.cotc-hero-col {
  position: relative;
  overflow: visible;
  opacity: 0;
  transform: translateY(-80px);
}

.cotc-hero-col--1 {
  z-index: 3;
}

.cotc-hero-col--2 {
  z-index: 2;
}

.cotc-hero-col--3 {
  z-index: 1;
}

.cotc-hero-col:hover {
  z-index: 10 !important;
}

.cotc-hero-banner.is-visible .cotc-hero-col {
  animation: cardDropIn 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cotc-hero-banner.is-visible .cotc-hero-col--1 {
  animation-delay: 4.0s;
}

.cotc-hero-banner.is-visible .cotc-hero-col--2 {
  animation-delay: 4.5s;
}

.cotc-hero-banner.is-visible .cotc-hero-col--3 {
  animation-delay: 5.0s;
}

@keyframes cardDropIn {
  0% {
    transform: translateY(-80px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.cotc-hero-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--cotc-tan, #F0E6D2) !important;
  overflow: visible !important;
  position: relative;
  min-height: auto;
}
.cotc-hero-card:hover {
  transform: translateY(-20px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4) !important;
}
.cotc-hero-card .card-body {
  position: relative;
  z-index: 2;
  overflow: visible;
}
.cotc-hero-card__icon {
  color: var(--cotc-red, #B22222);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}
.font-copperplate {
  font-family: var(--cotc-copperplate, 'Copperplate', serif);
}
div#block-pirate-chickens-cotcmainherobanner {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: calc(-50vw + (var(--scrollbar-width, 0px) / 2));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 100px;
}
.cotc-hero-banner__bg,
.cotc-hero-banner__bg-layer,
.cotc-hero-banner__bg-multipart {
  position: absolute;
}
.cotc-hero-banner .btn.cotc-btn-primary {
  background-color: var(--cotc-yellow, #FECC0B);
  color: var(--cotc-black);
  text-shadow: none;
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.25);
  font-family: var(--cotc-copperplate);
  text-transform: lowercase;
  letter-spacing: 2px;
  font-size: 1.5em;
  padding: 10px 25px;
  position: relative;
  z-index: 3;
}
.cotc-hero-banner .btn.cotc-btn-primary:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--cotc-heading);
  border: 1px solid rgba(0, 0, 0, 0.7);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.1s ease;
  position: relative;
  z-index: 3;
}
/* =========================================
   MULTIPART BACKGROUND ANIMATION MATRIX
========================================= */

.multipart-layer {
  position: absolute;
  top: 0;
  height: 100%;
  width: auto;
  pointer-events: none;
  opacity: 0;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.multipart-layer__img {
  height: 100% !important;
  width: auto !important;
  max-width: none !important;
  display: block;
  pointer-events: none;
}

/* Layer Positioning, Offsets & Stacking Hierarchy */
.layer-1 {
  left: 0;
  right: auto;
  z-index: 3;
}

.layer-2 {
  left: 0;
  right: auto;
  z-index: 2;
}

.layer-3 {
  right: 0;
  left: auto;
  top: 0;
  z-index: 1;
}

.layer-4 {
  right: 0;
  left: auto;
  top: 0;
  z-index: 0;
}

/* Orchestrated Staged Timings */
.cotc-hero-banner.is-visible .layer-1 {
  animation-duration: 0.75s;
  animation-delay: 0.25s;
}

.cotc-hero-banner.is-visible .layer-2 {
  animation-duration: 1.2s;
  animation-delay: 2.0s;
}

.cotc-hero-banner.is-visible .layer-3 {
  animation-duration: 1.4s;
  animation-delay: 3.0s;
}

.cotc-hero-banner.is-visible .layer-4 {
  animation-duration: 1.4s;
  animation-delay: 3.0s;
}

/* Maintain timing even if anim-offset class is active */
.cotc-hero-banner.is-visible .anim-offset.layer-2 { animation-delay: 2.0s; }
.cotc-hero-banner.is-visible .anim-offset.layer-3 { animation-delay: 3.0s; }
.cotc-hero-banner.is-visible .anim-offset.layer-4 { animation-delay: 3.0s; }

/* 4th / Last Image First Toggle */
.cotc-hero-banner.is-visible .anim-first.layer-4,
.cotc-hero-banner.is-visible .anim-first.layer-3 {
  animation-delay: 0s;
  z-index: 0;
}

/* --- Left / Right Keyframes (Entering from completely outside browser viewport) --- */
@keyframes slideInLeft {
  0% { transform: translateX(-150vw); opacity: 0; }
  1% { opacity: 1; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  0% { transform: translateX(150vw); opacity: 0; }
  1% { opacity: 1; }
  100% { transform: translateX(0); opacity: 1; }
}

/* --- Left Animation (Single Direction) --- */
.cotc-hero-banner.is-visible .anim-left.layer-1,
.cotc-hero-banner.is-visible .anim-left.layer-2,
.cotc-hero-banner.is-visible .anim-left.layer-3,
.cotc-hero-banner.is-visible .anim-left.layer-4 {
  animation-name: slideInLeft;
}
.cotc-hero-banner.is-visible .anim-left.anim-opposite,
.cotc-hero-banner.is-visible .anim-left .anim-opposite,
.cotc-hero-banner.is-visible .anim-left.layer-3.anim-opposite,
.cotc-hero-banner.is-visible .anim-left.layer-4.anim-opposite {
  animation-name: slideInRight;
}

/* --- Right Animation (Single Direction) --- */
.cotc-hero-banner.is-visible .anim-right.layer-1,
.cotc-hero-banner.is-visible .anim-right.layer-2,
.cotc-hero-banner.is-visible .anim-right.layer-3,
.cotc-hero-banner.is-visible .anim-right.layer-4 {
  animation-name: slideInRight;
}
.cotc-hero-banner.is-visible .anim-right.anim-opposite,
.cotc-hero-banner.is-visible .anim-right .anim-opposite,
.cotc-hero-banner.is-visible .anim-right.layer-3.anim-opposite,
.cotc-hero-banner.is-visible .anim-right.layer-4.anim-opposite {
  animation-name: slideInLeft;
}

/* --- Left / Right Alternating Animation --- */
.cotc-hero-banner.is-visible .anim-left_right.layer-1,
.cotc-hero-banner.is-visible .anim-left_right.layer-3 {
  animation-name: slideInLeft;
}
.cotc-hero-banner.is-visible .anim-left_right.layer-2,
.cotc-hero-banner.is-visible .anim-left_right.layer-4 {
  animation-name: slideInRight;
}
.cotc-hero-banner.is-visible .anim-left_right.anim-opposite,
.cotc-hero-banner.is-visible .anim-left_right.layer-3.anim-opposite,
.cotc-hero-banner.is-visible .anim-left_right.layer-4.anim-opposite {
  animation-name: slideInLeft;
}

/* Cross Image toggle for Left/Right */
.anim-left_right.anim-cross.layer-1 { clip-path: polygon(0 0, 60% 0, 40% 100%, 0 100%); }
.anim-left_right.anim-cross.layer-2 { clip-path: polygon(60% 0, 100% 0, 100% 100%, 40% 100%); }
.anim-left_right.anim-cross.layer-3 { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); mix-blend-mode: overlay; opacity: 0.5; }

/* --- Top / Bottom Animation --- */
@keyframes slideInTop {
  0% { transform: translateY(-100vh); opacity: 0; }
  1% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes slideInBottom {
  0% { transform: translateY(100vh); opacity: 0; }
  1% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

.cotc-hero-banner.is-visible .anim-top_bottom.layer-1,
.cotc-hero-banner.is-visible .anim-top_bottom.layer-3 {
  animation-name: slideInTop;
}
.cotc-hero-banner.is-visible .anim-top_bottom.layer-2,
.cotc-hero-banner.is-visible .anim-top_bottom.layer-4 {
  animation-name: slideInBottom;
}
.cotc-hero-banner.is-visible .anim-top_bottom.anim-opposite,
.cotc-hero-banner.is-visible .anim-top_bottom.layer-3.anim-opposite,
.cotc-hero-banner.is-visible .anim-top_bottom.layer-4.anim-opposite {
  animation-name: slideInTop;
}

/* Cross Image toggle for Top/Bottom */
.anim-top_bottom.anim-cross.layer-1 { clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%); }
.anim-top_bottom.anim-cross.layer-2 { clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%); }

/* =========================================
   HERO CARD KID CHARACTERS
========================================= */
.cotc-hero-card__char {
  position: absolute;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  height: 50%;
  max-height: 250px;
  min-height: 160px;
  width: auto;
}

.cotc-hero-card__char--pos-left {
  left: -75px;
}

.cotc-hero-card__char--pos-right {
  right: -75px;
}

.cotc-hero-card__char--pos-center {
  left: 50%;
  transform: translateX(-50%);
}

.cotc-hero-card__char-inner {
  height: 100%;
  display: flex;
  align-items: flex-end;
  opacity: 0;
}

.cotc-hero-card__char-img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}

@keyframes charSlideInLeft {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes charSlideInRight {
  0% {
    transform: translateX(120%);
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes charSlideInBottom {
  0% {
    transform: translateY(120%);
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.cotc-hero-banner.is-visible .cotc-hero-card__char-inner.cotc-hero-card__char--anim-slide-left,
.cotc-hero-banner.is-visible .cotc-hero-card__char--anim-slide-left .cotc-hero-card__char-inner {
  animation: charSlideInLeft 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cotc-hero-banner.is-visible .cotc-hero-card__char-inner.cotc-hero-card__char--anim-slide-right,
.cotc-hero-banner.is-visible .cotc-hero-card__char--anim-slide-right .cotc-hero-card__char-inner {
  animation: charSlideInRight 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cotc-hero-banner.is-visible .cotc-hero-card__char-inner.cotc-hero-card__char--anim-slide-bottom,
.cotc-hero-banner.is-visible .cotc-hero-card__char--anim-slide-bottom .cotc-hero-card__char-inner {
  animation: charSlideInBottom 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staged character entrance */
.cotc-hero-banner.is-visible .cotc-hero-col--1 .cotc-hero-card__char-inner {
  animation-delay: 4.4s;
}

.cotc-hero-banner.is-visible .cotc-hero-col--2 .cotc-hero-card__char-inner {
  animation-delay: 4.9s;
}

.cotc-hero-banner.is-visible .cotc-hero-col--3 .cotc-hero-card__char-inner {
  animation-delay: 5.4s;
}

/* Tablet & Medium Desktop (e.g. 13" MacBook Pro 1280px) character scaling & text clearance */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .cotc-hero-card .card-body {
    padding: 1.25rem 1.25rem 1.5rem !important;
    z-index: 3;
    position: relative;
  }

  .cotc-hero-card .card-title {
    font-size: 1.45rem !important;
    line-height: 1.15 !important;
    margin-bottom: 0.75rem !important;
  }

  .cotc-hero-card .card-text {
    font-size: 0.95rem !important;
    line-height: 1.45 !important;
    margin-bottom: 1rem !important;
    position: relative;
    z-index: 4;
  }

  /* Scale kid character height down so it sits neatly in the bottom button area and does not cover the text */
  .cotc-hero-card__char {
    height: 36% !important;
    max-height: 160px !important;
    min-height: 120px !important;
    bottom: 0 !important;
    z-index: 1 !important;
  }

  .cotc-hero-card__char--pos-left {
    left: -55px !important;
  }

  .cotc-hero-card__char--pos-right {
    right: -55px !important;
  }

  /* Center character (Card 2 - Shooty) stays tucked below the button */
  .cotc-hero-card__char--pos-center {
    height: 30% !important;
    max-height: 135px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .cotc-hero-card .btn.cotc-btn-primary {
    font-size: 1.25rem !important;
    padding: 8px 18px !important;
    z-index: 5 !important;
  }
}

@media (max-width: 991px) {
  .cotc-hero-card__char--pos-left {
    left: -40px;
  }
  .cotc-hero-card__char--pos-right {
    right: -40px;
  }
}

@media (max-width: 767px) {
  .cotc-hero-card {
    min-height: auto;
  }
  .cotc-hero-card__char {
    height: 42%;
    max-height: 180px;
    min-height: 120px;
  }
  .cotc-hero-card__char--pos-left {
    left: -20px;
  }
  .cotc-hero-card__char--pos-right {
    right: -20px;
  }
}


