/* Featured promo cards — programmatic photo cutouts (swap img src only) */

.featured-section .row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.featured-section .featured-block {
  display: flex;
  flex-direction: column;
}

.featured-section .featured-block-one {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
}

.featured-block-one .inner-box {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  height: 100%;
}

.featured-block-one .inner-box .text-box {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  max-width: 220px;
  float: none;
}

.featured-block-one .inner-box .text-box .theme-btn {
  margin-top: auto;
  align-self: flex-start;
}

.featured-block-one .inner-box h2 {
  font-size: 30px;
  line-height: 36px;
  margin-bottom: 10px;
}

.featured-block-one .inner-box h2 a {
  color: inherit;
  text-decoration: none;
}

.featured-block-one .inner-box h2 a:hover {
  color: var(--party-color);
}

.featured-cutout__photo-link {
  display: block;
  height: 100%;
}

.featured-block-one .inner-box h4 {
  margin-bottom: 18px;
  flex-shrink: 0;
}

.featured-block-one .inner-box p.desc {
  font-size: 12px;
  line-height: 18px;
  color: #fff;
  font-weight: 400;
  margin-bottom: 14px;
  opacity: 0.95;
  flex: 1 1 auto;
}

.featured-cutout {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  z-index: 1;
  pointer-events: none;
}

.featured-cutout__photo {
  overflow: hidden;
  background: #f4f4f4;
}

.featured-cutout__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Circle cutout (cards 1 & 2): yellow ring + blue dashed inner ---- */

.featured-cutout--circle {
  width: 232px;
  height: 232px;
}

.featured-cutout--circle .featured-cutout__frame {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 7px;
  border-radius: 50%;
  border: 4px solid #ffc933;
  box-sizing: border-box;
  background: #fff;
}

.featured-cutout--circle .featured-cutout__frame::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 3px dashed #2b7cd3;
  pointer-events: none;
  z-index: 2;
}

.featured-cutout--circle .featured-cutout__photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.featured-cutout--circle .featured-cutout__photo img {
  object-position: center 20%;
}

/* ---- Rectangle cutout (card 1): full-height photo + stripy borders & fluff ---- */

.featured-cutout--rect {
  width: 48%;
  height: calc(100% - 20px);
  top: 10px;
  right: 10px;
  bottom: 10px;
}

.featured-cutout--rect .featured-cutout__frame {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 8px;
  border: 4px solid #ffc933;
  border-radius: 10px;
  box-sizing: border-box;
  background: #fff;
}

.featured-cutout--rect .featured-cutout__frame::after {
  display: none;
}

.featured-cutout--rect .featured-cutout__photo {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.featured-cutout--rect .featured-cutout__photo img {
  object-position: center center;
}

.featured-cutout--rect .featured-cutout__arc {
  position: absolute;
  left: -28px;
  bottom: 24px;
  width: 120px;
  height: 120px;
  border: 3px dashed #ffc933;
  border-radius: 50%;
  box-sizing: border-box;
  z-index: 0;
}

.featured-cutout--rect .featured-cutout__arc--top {
  left: -18px;
  bottom: auto;
  top: 36px;
  width: 80px;
  height: 80px;
  border-top-color: transparent;
  border-right-color: transparent;
  transform: rotate(8deg);
}

.featured-block:first-child .featured-block-one .inner-box::before,
.featured-block:nth-child(2) .featured-block-one .inner-box::before,
.featured-block:nth-child(3) .featured-block-one .inner-box::before {
  top: auto;
  bottom: 28px;
  right: 42%;
  width: 110px;
  height: 110px;
}

/* Card 2 fluff: motion tick marks */

.featured-cutout--rect-ticks .featured-cutout__ticks {
  position: absolute;
  left: -36px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  z-index: 0;
}

.featured-cutout--rect-ticks .featured-cutout__ticks span {
  position: absolute;
  left: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 2px;
}

.featured-cutout--rect-ticks .featured-cutout__ticks span:nth-child(1) {
  top: 8px;
  width: 28px;
}

.featured-cutout--rect-ticks .featured-cutout__ticks span:nth-child(2) {
  top: 22px;
  width: 42px;
}

.featured-cutout--rect-ticks .featured-cutout__ticks span:nth-child(3) {
  top: 36px;
  width: 32px;
}

.featured-block:nth-child(3n+2) .featured-cutout--rect .featured-cutout__arc {
  left: -34px;
  bottom: 18px;
  width: 130px;
  height: 130px;
}

.featured-block:nth-child(3n+2) .featured-cutout--rect .featured-cutout__arc--top {
  left: -22px;
  top: 28px;
  width: 92px;
  height: 92px;
  transform: rotate(14deg);
}

/* Card 3 fluff: blue blob accent */

.featured-cutout--rect-blob .featured-cutout__blob-accent {
  position: absolute;
  left: -24px;
  bottom: 8px;
  width: 88px;
  height: 82px;
  background: #3b8fd9;
  clip-path: path('M 28 44 C 10 54 4 72 18 84 C 32 96 54 90 64 72 C 74 54 58 36 38 34 Z');
  z-index: 0;
}

.featured-block:nth-child(3n+3) .featured-cutout--rect .featured-cutout__arc {
  left: -24px;
  bottom: 32px;
  width: 110px;
  height: 110px;
  opacity: 0.85;
}

.featured-block:nth-child(3n+3) .featured-cutout--rect .featured-cutout__arc--top {
  left: -12px;
  top: 42px;
  width: 72px;
  height: 72px;
  transform: rotate(-10deg);
}

/* Legacy circle/blob styles (unused on homepage) */

.featured-cutout--circle-arc {
  width: 278px;
  height: 236px;
}

.featured-cutout--circle-arc .featured-cutout__frame {
  position: absolute;
  right: -8px;
  top: 6px;
  width: 220px;
  height: 220px;
}

.featured-cutout--circle-arc .featured-cutout__arc {
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 132px;
  height: 132px;
  border: 3px dashed #ffc933;
  border-radius: 50%;
  box-sizing: border-box;
}

.featured-cutout--circle-arc .featured-cutout__arc--top {
  left: 8px;
  bottom: auto;
  top: 28px;
  width: 88px;
  height: 88px;
  border-top-color: transparent;
  border-right-color: transparent;
  transform: rotate(12deg);
}

.featured-cutout--circle-arc .featured-cutout__ticks span {
  position: absolute;
  left: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 2px;
}

.featured-cutout--circle-arc .featured-cutout__ticks span:nth-child(1) {
  top: 98px;
  width: 34px;
}

.featured-cutout--circle-arc .featured-cutout__ticks span:nth-child(2) {
  top: 112px;
  width: 48px;
}

.featured-cutout--circle-arc .featured-cutout__ticks span:nth-child(3) {
  top: 126px;
  width: 38px;
}

/* ---- Blob cutout (card 3): scalloped frame + blue accent ---- */

.featured-cutout--blob {
  width: 258px;
  height: 288px;
}

.featured-cutout--blob .featured-cutout__frame {
  position: relative;
  width: 100%;
  height: 100%;
}

.featured-cutout--blob .featured-cutout__shape {
  position: absolute;
  inset: 0;
  background: #9ad8f0;
  clip-path: path('M 96 6 C 62 6 38 26 32 52 C 24 78 18 104 28 130 C 38 156 24 182 34 208 C 44 234 32 260 54 280 C 76 296 98 288 118 288 L 248 288 L 248 6 Z');
}

.featured-cutout--blob .featured-cutout__photo {
  position: absolute;
  top: 14px;
  right: 10px;
  bottom: 12px;
  left: 38px;
  clip-path: path('M 82 0 C 52 0 32 18 28 42 C 22 64 18 86 26 108 C 34 130 22 152 30 174 C 38 196 28 218 46 234 C 64 250 84 244 100 244 L 210 244 L 210 0 Z');
}

.featured-cutout--blob .featured-cutout__accent {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 92px;
  height: 86px;
  background: #3b8fd9;
  clip-path: path('M 28 44 C 10 54 4 72 18 84 C 32 96 54 90 64 72 C 74 54 58 36 38 34 Z');
  z-index: 2;
}

@media only screen and (max-width: 991px) {
  .featured-cutout--rect {
    width: 44%;
    height: calc(100% - 16px);
    top: 8px;
    right: 8px;
  }

  .featured-cutout--circle {
    width: 200px;
    height: 200px;
  }

  .featured-cutout--circle-arc {
    width: 240px;
    height: 210px;
  }

  .featured-cutout--circle-arc .featured-cutout__frame {
    width: 190px;
    height: 190px;
  }

  .featured-cutout--blob {
    width: 220px;
    height: 250px;
  }

  .featured-section__kite {
    width: 130px;
    height: 195px;
    left: 8px;
  }

  .featured-section__butterfly,
  .featured-section__pig,
  .featured-section__star {
    display: none;
  }
}

@media only screen and (max-width: 767px) {
  .featured-section__decor {
    display: none;
  }
}

@media only screen and (max-width: 499px) {
  .featured-cutout {
    display: none;
  }

  .featured-block-one .inner-box h4 {
    margin-bottom: 30px !important;
  }
}
