/**
 * new-home-design.css — /new-home-design/ page styles
 *
 * Compiled from React SCSS sources:
 *   - frontend-nextjs/src/views/pages/HomeDesignsPage/Sections/FeaturedDesigns/_featured-designs.scss
 *     → .masonry-grid, .masonry-item
 *   - frontend-nextjs/src/assets/scss/components/_related-quiz.scss
 *     → .related-quiz-wrap, .related-quiz-list, .related-quiz-item
 *
 * NOTE: The following are already in existing theme CSS and NOT duplicated here:
 *   .subscribe-banner, .subscribe-form                           (homepage.css)
 *   .collection-box base                                         (blog.css)
 *   .collection-box--sm, .collection-box--md                    (homepage.css)
 * NOTE: .featured-designs-wrap is in home-designs.css (not enqueued here) — duplicated below.
 *   .home-recent-blog-wrap, .blog-item                           (blog.css / homepage.css)
 *   .section-title, .primary-bg-light                            (homepage.css)
 *
 * SCSS variables resolved:
 *   $primary       → #e78125
 *   $color_shark   → #232528
 *   $color_raven   → #6c757d
 */

/* ── Featured Designs wrap ───────────────────────────────────────────────────── */
/* Source: _featured-designs.scss — .featured-designs-wrap */
/* NOTE: home-designs.css has this too, but that file is not enqueued on this page */
.featured-designs-wrap {
  padding-bottom: 100px;
}

.featured-designs-wrap .block-title {
  padding-bottom: 42px;
}

/* ── Masonry grid ────────────────────────────────────────────────────────────── */
/* Source: _featured-designs.scss — .masonry-grid */
.masonry-grid {
  margin: 0 -15px;
  /* Force column-based masonry (avoid any grid/flex overrides from other styles) */
  display: block !important;
  column-gap: 0;
  counter-reset: item-counter;
  column-count: 4;
}

.masonry-grid > .masonry-item {
  display: block !important;
}

.masonry-grid .masonry-item {
  padding: 0 15px 30px;
  page-break-inside: avoid;
  break-inside: avoid;
  counter-increment: item-counter;
}

.masonry-grid .collection-box {
  max-width: 295px;
}
.collection-box__img {
  padding-bottom: 100%;
  position: relative;
  padding-bottom: 136%;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  overflow: hidden;
}
.collection-box__img a,
.collection-box__img button {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0);
}
.collection-box__img img {
  top: 0;
  height: 100%;
  object-fit: cover;
  transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
  -moz-transition: all 0.4s ease-in-out;
  -ms-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
}
.collection-box__img a:after,
.collection-box__img button:after {
  content: "";
  height: 128px;
  bottom: 0;
  background: linear-gradient(
    0deg,
    #857565 11.64%,
    rgba(109, 88, 64, 0) 91.21%
  );
}

.collection-box__img a:after,
.collection-box__img button:after,
.collection-box__img img {
  width: 100%;
  position: absolute;
  left: 0;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
}
.collection-box__info {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 0 22px 17px;
  z-index: 1;
}
.collection-box__tag--sm {
  font-size: 12px;
}
.collection-box__tag {
  font-size: 14px;
  line-height: 17px;
  font-weight: 600;
  opacity: 0.9;
  color: #fff;
  text-transform: uppercase;
  padding-bottom: 6px;
}
.collection-box__tag a {
  color: #fff;
}
.collection-box__title--sm {
  font-size: 18px;
  line-height: 116%;
  font-weight: 500;
}
.collection-box__title {
  font-size: 22px;
  line-height: 27px;
  color: #fff;
  font-weight: 600;
  word-break: break-word;
}
.collection-box__title a {
  color: #fff;
  display: inline-block;
  transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
}
@media screen and (max-width: 991px) {
  .masonry-grid {
    column-count: 3;
  }
}

@media screen and (max-width: 767px) {
  .masonry-grid {
    margin: 0 -5px;
    column-count: 2;
  }

  .masonry-grid .masonry-item {
    padding: 0 5px 10px;
  }

  .masonry-grid .collection-box {
    max-width: 100%;
  }
}

/* ── Related Quiz ────────────────────────────────────────────────────────────── */
/* Source: _related-quiz.scss */
.related-quiz-wrap {
  padding: 80px 0 6px;
}

@media screen and (max-width: 767px) {
  .related-quiz-wrap {
    padding: 48px 0 8px;
  }
}

.related-quiz-wrap .section-title {
  padding-bottom: 50px;
}

@media screen and (max-width: 767px) {
  .related-quiz-wrap .section-title {
    padding-bottom: 24px;
  }
}

.related-quiz-list > ul > li {
  padding-bottom: 74px;
}

@media screen and (max-width: 767px) {
  .related-quiz-list > ul > li {
    padding-bottom: 40px;
  }
}

.related-quiz-item__img {
  border-radius: 4px;
  overflow: hidden;
}

.related-quiz-item__img img {
  width: 100%;
  transition: all 0.5s ease-in-out;
}

.related-quiz-item:hover .related-quiz-item__img img {
  transform: scale(1.06);
}

.related-quiz-item__info {
  padding-top: 30px;
}

@media screen and (max-width: 767px) {
  .related-quiz-item__info {
    padding-top: 15px;
  }
}

.related-quiz-item__title {
  font-size: 22px;
  line-height: 116%;
  font-weight: 500;
  color: #232528;
  padding-bottom: 12px;
}

@media screen and (max-width: 1200px) {
  .related-quiz-item__title {
    font-size: 18px;
    line-height: 140%;
  }
}

.related-quiz-item__title a {
  display: inline-block;
  color: #232528;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}

.related-quiz-item__title a:hover {
  color: #e78125;
}

.related-quiz-item__points ul {
  display: flex;
}

.related-quiz-item__points ul li {
  display: flex;
  align-items: center;
  font-size: 16px;
  line-height: 150%;
  font-weight: 500;
  color: #6c757d;
}

@media screen and (max-width: 1200px) {
  .related-quiz-item__points ul li {
    font-size: 12px;
    line-height: 140%;
  }
}

.related-quiz-item__points ul li:not(:last-child) {
  padding-right: 16px;
}

.related-quiz-item__points ul li:not(:first-child)::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 8px;
  background: #6c757d;
  opacity: 0.5;
  display: inline-block;
  margin-right: 16px;
}

/* ── Related Blogs section-title spacing ─────────────────────────────────────── */
.home-recent-blog-wrap .section-title {
  padding-bottom: 50px;
}

@media screen and (max-width: 767px) {
  .home-recent-blog-wrap .section-title {
    padding-bottom: 24px;
  }
}
.subscribe-form .ginput_container.ginput_container_email input {
  height: 44px;
}
