/*
 * professionals.css
 * Compiled from:
 *   frontend-nextjs/src/views/pages/ProfessionalLandingPage/Sections/NeedHelp/_need-help.scss
 *   frontend-nextjs/src/views/pages/ProfessionalLandingPage/Sections/ProfessionalList/_professional-list.scss
 *   frontend-nextjs/src/assets/scss/_gp_common.scss  (.landing-page-title-wrap, .home-design-white-section)
 *   frontend-nextjs/src/assets/scss/_base.scss        (.row.gap-40)
 *   frontend-nextjs/src/assets/scss/components/_full_block_slider.scss  (.block-slider-arrow)
 *
 * NOTE: The following classes are already present in homepage.css and are NOT repeated here:
 *   .need-help-wrap, .need-help-wrap-light, .help-tag, .help-slider-arrow
 *   .nearby-professionals-wrap, .nearby-professionals-box and their sub-elements
 *
 * NOTE: .blog-cta-wrap, .blog-cta-box and sub-elements are already in blog.css
 * NOTE: .collection-box and sub-elements are already in blog.css
 * NOTE: .full-slider-wrap, .slider-block-wrap, .slider-block-title-wrap are already in blog.css
 */

/* ============================================================
   LANDING PAGE TITLE WRAP
   Source: _gp_common.scss .landing-page-title-wrap
   ============================================================ */
.landing-page-title-wrap {
  padding: 70px 0 40px;
  text-align: center;
}

.landing-page-title-wrap h1 {
  color: #19263a;
  padding-bottom: 20px;
}

.landing-page-title-wrap p {
  max-width: 636px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 150%;
  color: #7b7c7e;
}

/* ============================================================
   LANDING PAGE CONTENT — prevent WP block editor extra styles
   ============================================================ */
.landing-page-content p {
  max-width: 636px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 150%;
  color: #7b7c7e;
  text-align: center;
}

.landing-page-title-wrap .landing-page-content p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   CATEGORY FILTER — NEED HELP WRAP OVERRIDES
   Source: _need-help.scss
   ============================================================ */
.need-help-wrap.border-0 {
  border: 0 !important;
}

.need-help-wrap.need-help-wrap-light .help-tag__item.active {
  background: #19263a;
  color: #fff;
}

button.help-tag__item {
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

/* Full-width slider (no title-txt column on this page) */
.need-help-wrap .need-help-slider.w-100 {
  width: 100%;
  padding-left: 35px;
}

@media (max-width: 1024px) {
  .need-help-wrap .need-help-slider.w-100 {
    padding-left: 0;
  }
}

/* ============================================================
   PROFESSIONAL LIST WRAP
   Source: _professional-list.scss .professional-list-wrap
   ============================================================ */
.professional-list-wrap {
  padding-top: 30px;
}

.professional-list-wrap .professional-list-item {
  padding-bottom: 70px;
}

.professional-list-wrap .professional-list-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
}

.professional-list-wrap .professional-list-title h3 {
  font-size: 28px;
  font-weight: 400;
  font-family:
    "DM Serif Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #173055;
}

@media (max-width: 767px) {
  .professional-list-wrap .professional-list-title h3 {
    font-size: 20px;
  }
}

.professional-list-wrap .professional-list-title .cta {
  flex-shrink: 0;
}

.professional-list-wrap .nearby-professionals-wrap {
  margin-bottom: 100px;
}

.professional-list-wrap .ad-block {
  padding-bottom: 70px;
}

/* ============================================================
   PROFESSIONAL LANDING LIST (two-column card grid)
   Source: _professional-list.scss .professional-landing-list
   ============================================================ */
.professional-landing-list ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 -20px;
  list-style: none;
  padding: 0;
}

@media (max-width: 500px) {
  .professional-landing-list ul {
    margin: 0;
  }
}

.professional-landing-list ul li {
  padding: 0 20px;
  width: 50%;
  max-width: 625px;
}

@media (max-width: 500px) {
  .professional-landing-list ul li {
    width: 100%;
    padding: 0 0 20px;
  }
}

.professional-landing-list .professional-landing-box {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px 10px;
  text-align: center;
  border: 1px solid rgba(123, 124, 126, 0.2);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease-in-out;
}

.professional-landing-list .professional-landing-box .img {
  padding-bottom: 25px;
}

.professional-landing-list .professional-landing-box .img img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
}

.professional-landing-list .professional-landing-box h4 {
  font-size: 24px;
  line-height: 116%;
  font-weight: 600;
  color: #173055;
  transition: all 0.3s ease-in-out;
  margin: 0;
}

@media (max-width: 991px) {
  .professional-landing-list .professional-landing-box h4 {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .professional-landing-list .professional-landing-box h4 {
    font-size: 18px;
  }
}

.professional-landing-list .professional-landing-box:hover h4 {
  color: #e78125;
}

/* ============================================================
   HOME DESIGN WHITE SECTION
   Source: _gp_common.scss .home-design-white-section
   Overrides blog.css .material-exhibition-wrap padding/bg which
   is designed for the blog-detail page, not the professionals page.
   ============================================================ */
.home-design-white-section .material-exhibition-wrap {
  background: #ffffff;
  padding: 60px 0 0; /* override blog.css 80px 0 13px */
}

.home-design-white-section .material-exhibition-wrap .full-slider-wrap {
  padding-bottom: 60px; /* override blog.css 87px */
}

@media (max-width: 767px) {
  .home-design-white-section .material-exhibition-wrap {
    padding-top: 40px;
  }
  .home-design-white-section .material-exhibition-wrap .full-slider-wrap {
    padding-bottom: 40px;
  }
}

/* ============================================================
   HOME DESIGNS SLIDER ARROWS
   Source: _full_block_slider.scss — .block-slider-arrow
   Scoped to .home-design-white-section so these styles do NOT
   bleed into any other .full-slider-wrap on the page.
   (home-designs.css is not loaded on this page)
   ============================================================ */
.home-design-white-section .block-slider-arrow {
  position: absolute;
  width: 48px;
  height: 48px;
  top: 50%;
  margin-top: -24px;
  font-size: 24px;
  background: #e78125;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  box-shadow: 0px 10px 16px #eed3b9;
  border-radius: 100%;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.home-design-white-section .block-slider-arrow:hover {
  background: #e78125;
}

.home-design-white-section .block-slider-arrow--left {
  left: -4px;
}

.home-design-white-section .block-slider-arrow--right {
  right: -4px;
}

@media (max-width: 1440px) {
  .home-design-white-section .block-slider-arrow--left {
    left: 10px;
  }
  .home-design-white-section .block-slider-arrow--right {
    right: 10px;
  }
}

@media (max-width: 767px) {
  .home-design-white-section .block-slider-arrow {
    display: none;
  }
}

.home-design-white-section .block-slider-arrow.swiper-button-disabled {
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   ROW GAP-40
   Source: _base.scss — .row.gap-40
   NOTE: blog.css only defines .blog-list ul.row.gap-40 (scoped).
         This generic rule is needed for Related Quiz section.
   ============================================================ */
.row.gap-40 {
  --bs-gutter-x: 40px;
  --bs-gutter-y: 40px;
}

/* ============================================================
   NEED HELP CTA WRAPPER
   ============================================================ */
.need-help-cta {
  /* children carry their own styles */
}

/* ============================================================
   RELATED QUIZ SECTION
   Source: ProfessionalLandingPageServer.js — static quiz block
   ============================================================ */
.related-quiz-wrap {
  padding: 80px 0;
}

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

.related-quiz-wrap .related-quiz-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-quiz-item {
  border: 1px solid rgba(123, 124, 126, 0.2);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease-in-out;
}

.related-quiz-item:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.related-quiz-item__img a {
  display: block;
}

.related-quiz-item__img img {
  width: 100%;
  height: auto;
  display: block;
}

.related-quiz-item__info {
  padding: 16px 20px 20px;
}

.related-quiz-item__title a {
  font-size: 16px;
  font-weight: 500;
  color: #173055;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
  display: block;
  padding-bottom: 12px;
}

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

.related-quiz-item__points ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-quiz-item__points ul li {
  font-size: 13px;
  color: #7b7c7e;
  background: rgba(123, 124, 126, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ============================================================
   STATIC IMG BLOCK
   Source: _static-img.scss .static-img-block
   ============================================================ */
.static-img-block {
  background: #f9f5f2;
}

.static-img-block.bg-white {
  background: #ffffff;
}

.static-img-block.dark-block {
  background: #19263a;
}

.static-img-block img {
  margin: 0 auto;
  display: block;
}

@media (max-width: 767px) {
  .static-img-block img {
    width: 100%;
  }
}
