/* Service detail pages: hide author and comment count under the featured image (date stays) */
body.single-service .blog-1-post-meta {
  display: none !important;
}

/* Our Services page: service name is the link, "View More" removed */
body.page-id-16542 .bn-service-card-link {
  display: none !important;
}
body.page-id-16542 .bn-service-card-title {
  margin-bottom: 75px;
}
.bn-service-card-title-link {
  color: inherit;
  text-decoration: none;
  transition: color .3s ease;
}
.bn-service-card-title-link i {
  display: inline-block;
  transition: transform .3s ease;
}
.bn-service-card-title-link:hover,
.bn-service-card-title-link:focus {
  color: #fd4a36;
}
.bn-service-card-title-link:hover i,
.bn-service-card-title-link:focus i {
  transform: translateX(5px);
}

/* Homepage News & Articles: hide "read more" buttons on the blog cards */
body.page-id-16535 .elementor-element-f12c92f .blog-1-read-more {
  display: none !important;
}

/* Logo turns #ff8d02 on hover, desktop/mouse only (header, sticky header, footer) */
@media (hover: hover) and (pointer: fine) {
  .logo-box .logo > a,
  .about-widget .logo {
    position: relative;
    line-height: 0;
  }
  .logo-box .logo > a {
    display: inline-block;
  }
  .about-widget .logo {
    width: fit-content;
  }
  .logo-box .logo > a img,
  .about-widget .logo img {
    vertical-align: top;
    transition: opacity .3s ease;
  }
  .logo-box .logo > a::after,
  .about-widget .logo::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #ff8d02;
    -webkit-mask: var(--hbs-logo) center / 100% 100% no-repeat;
    mask: var(--hbs-logo) center / 100% 100% no-repeat;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
  }
  .logo-box .logo > a {
    --hbs-logo: url("/wp-content/uploads/2026/09/HBS_logo_horizontal_white_transparent_303x77.png");
  }
  .about-widget .logo {
    --hbs-logo: url("/wp-content/uploads/2026/09/HBS_logo_horizontal_white_transparent.png");
  }
  .logo-box .logo > a:hover::after,
  .about-widget .logo:hover::after {
    opacity: 1;
  }
  .logo-box .logo > a:hover img,
  .about-widget .logo:hover img {
    opacity: 0;
  }
}

/* Homepage trust strip (replaced "We worked with royal clients"): review logos + licence badge */
.hbs-trust .bn-title {
  background-color: #fff;
}
.hbs-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  margin-bottom: 30px;
}
.hbs-trust-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 90px;
  margin-bottom: 12px;
}
.hbs-trust-logo img {
  width: auto;
  height: auto;
  max-width: 190px;
  max-height: 90px;
}
.hbs-trust-logo svg {
  width: 200px;
  max-width: 100%;
  height: auto;
}
.hbs-trust .client-logo-1-image:hover img {
  transform: none;
}
.hbs-trust-logo img,
.hbs-trust-logo svg {
  transition: transform .4s ease;
}
.hbs-trust-item:hover .hbs-trust-logo img,
.hbs-trust-item:hover .hbs-trust-logo svg,
.hbs-trust-item:focus-visible .hbs-trust-logo img,
.hbs-trust-item:focus-visible .hbs-trust-logo svg {
  transform: scale(1.08);
}
.hbs-trust-caption {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #161837;
  transition: color .3s ease;
}
.hbs-trust-caption small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  color: #6e6e6e;
}
.hbs-trust-item:hover .hbs-trust-caption,
.hbs-trust-item:focus-visible .hbs-trust-caption {
  color: #ff8d00;
}

/* Footer contact icons (location, email, phone): theme PNGs are red, recolor to #ff8d00 */
.main-footer .contact-info-box2 img[src*="icon-map.png"],
.main-footer .contact-info-box2 img[src*="icon-mail.png"],
.main-footer .contact-info-box2 img[src*="icon-phone.png"] {
  background-color: #ff8d00;
  object-position: -9999px 0;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.main-footer .contact-info-box2 img[src*="icon-map.png"] {
  -webkit-mask-image: url("/wp-content/themes/buildnox/assets/images/icons/icon-map.png");
  mask-image: url("/wp-content/themes/buildnox/assets/images/icons/icon-map.png");
}
.main-footer .contact-info-box2 img[src*="icon-mail.png"] {
  -webkit-mask-image: url("/wp-content/themes/buildnox/assets/images/icons/icon-mail.png");
  mask-image: url("/wp-content/themes/buildnox/assets/images/icons/icon-mail.png");
}
.main-footer .contact-info-box2 img[src*="icon-phone.png"] {
  -webkit-mask-image: url("/wp-content/themes/buildnox/assets/images/icons/icon-phone.png");
  mask-image: url("/wp-content/themes/buildnox/assets/images/icons/icon-phone.png");
}

/* Free Estimate - Simple form (CF7 17923): match phone field to the other inputs */
.simple-estimate-form input[type="tel"] {
  height: 40px;
  padding: 0 20px;
  border: 1px solid #dddddd;
  color: #444444;
}

/* Projects grid: whole image links to the project page (paired with PHP snippet "Projects grid - Image link, no category, div title") */
.project-1-block .project-1-image a.project-1-img-link,
.project-1-block:hover .project-1-image a.project-1-img-link {
	display: block;
	position: static;
	z-index: auto;
	opacity: 1;
	transform: none;
}
.project-1-overlay,
.project-1-content {
	pointer-events: none;
}
.project-1-overlay a {
	pointer-events: auto;
}

/* Projects grid: title is now a <div>; keep the old h4.project-1-title look */
.project-1-content .project-1-title {
	position: relative;
	margin: 0;
	font-family: Barlow, sans-serif;
	font-size: 22px;
	line-height: 30px;
	font-weight: 700;
	color: #fff;
	transition: 0.5s;
	transform: translateY(10px);
}
.project-1-block:hover .project-1-content .project-1-title {
	transform: translateY(0);
}

/* Homepage "Why GTA Homeowners" call box: hide the stock photo, keep the phone icon beside the number */
.elementor-element-0c7469e .image {
  margin-right: 20px;
}
.elementor-element-0c7469e .image > img {
  display: none;
}
.elementor-element-0c7469e .image .icon_box_small {
  position: static;
}

/* Blog grid: image links to the post (link added by the "Blog grid - Link images to posts" PHP snippet).
   The theme's dark hover overlay must not block clicks on the image link. */
.blog-1-image .blog-1-img-link {
  display: block;
}
.blog-1-image::before,
.blog-1-image::after {
  pointer-events: none;
}

/* Project pages: image slider. Shorter frame, image fills it as cover, centered.
   Overrides the older 620px / contain "project image slider" rule. */
.project-details-two .swiper-container.single-item-carousel .swiper-slide {
  height: 480px;
  margin-bottom: 50px;
}
.project-details-two .swiper-container.single-item-carousel .image-box {
  display: block;
  height: 100%;
  margin-bottom: 0;
  overflow: hidden;
}
.project-details-two .swiper-container.single-item-carousel .image-box img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
@media (max-width: 1024px) {
  .project-details-two .swiper-container.single-item-carousel .swiper-slide {
    height: 400px;
  }
}
@media (max-width: 767px) {
  .project-details-two .swiper-container.single-item-carousel .swiper-slide {
    height: 300px;
    margin-bottom: 30px;
  }
}

/* Project pages: slider images open full screen on click (project-images-clickable JS snippet) */
.project-details-two .single-item-carousel .image-box img {
  cursor: zoom-in;
}

/* Project pages: space between the header menu and the image slider (header is absolutely positioned, about 130px tall) */
.single-project .project-details-two {
  padding-top: 180px;
}

/* Service pages: rows of vertical photos inside the article (gallery block with class hbs-service-photo-row) */
.wp-block-gallery.hbs-service-photo-row {
  margin: 30px 0;
}
.wp-block-gallery.hbs-service-photo-row.has-nested-images figure.wp-block-image img {
  aspect-ratio: 2 / 3;
  width: 100%;
  height: auto !important;
  object-fit: cover;
  cursor: zoom-in;
}
@media (max-width: 599px) {
  .wp-block-gallery.hbs-service-photo-row.columns-3.has-nested-images figure.wp-block-image:not(#individual-image) {
    width: calc(33.33% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.667)) !important;
  }
}

/* Service page call-to-action box: phone icon in the site's main orange (overrides the old red icon) */
.cta-phone-wrapper .phone-icon,
.phone-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8d02' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E") !important;
}

/* Service pages: text links inside the article use the site's main orange */
.single-service .blog-details-content .text a:not([class*="cta-"]):not(.wp-block-button__link) {
  color: #ff8d02;
}
.single-service .blog-details-content .text a:not([class*="cta-"]):not(.wp-block-button__link):hover,
.single-service .blog-details-content .text a:not([class*="cta-"]):not(.wp-block-button__link):focus {
  color: #ff8d02;
  text-decoration: underline;
}

/* Service pages (desktop): smaller article headings. Theme default was H2 45px, H3 35px, H4 30px against 18px body text. */
@media (min-width: 992px) {
  .single-service .blog-details-content .text h2:not(.cta-headline) {
    font-size: 32px !important;
    line-height: 1.25;
  }
  .single-service .blog-details-content .text h3 {
    font-size: 24px !important;
    line-height: 1.3;
  }
  .single-service .blog-details-content .text h4 {
    font-size: 20px !important;
    line-height: 1.35;
  }
}

/* Service pages (desktop): page title stays on one line. Size is 48px and shrinks on narrower desktop screens so the longest title still fits. */
@media (min-width: 992px) {
  .single-service h1.fs_65 {
    font-size: clamp(30px, calc((100vw - 60px) / 24), 48px) !important;
    line-height: 1.2 !important;
    white-space: nowrap;
  }
}

/* Blog posts: light tables (white and light grey rows, navy text, orange header with navy text).
   The tables carry dark inline styles in the post content, so these rules need !important. */
.single-post .blog-details-content .text table {
  background-color: #ffffff !important;
  color: #0b1320 !important;
}
.single-post .blog-details-content .text table th,
.single-post .blog-details-content .text table td {
  border: 1px solid #dfe3e8 !important;
  padding: 10px 12px !important;
  color: #0b1320;
}
.single-post .blog-details-content .text table thead {
  background-color: #ff8d02 !important;
  color: #0b1320 !important;
}
.single-post .blog-details-content .text table thead th {
  font-weight: 700;
}
.single-post .blog-details-content .text table tbody tr:nth-child(even) {
  background-color: #f5f6f8;
}

/* Project carousel (homepage "Recent Renovation Projects"): the theme uses 438px-wide thumbnails, so cap the
   carousel width to keep each image at or below its real size instead of stretching it.
   1400px and up shows 3 slides (3 x 438 + 2 x 20 gaps); 991-1399px shows 2 slides (2 x 438 + 20). */
@media (min-width: 1400px) {
  .four-item-project-carousel {
    max-width: 1354px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (min-width: 991px) and (max-width: 1399px) {
  .four-item-project-carousel {
    max-width: 896px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Project carousel controls (arrows and dots added by the project-images-clickable JS snippet) */
.hbs-carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}
.hbs-carousel-arrow {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #0b1b33;
  border-radius: 50%;
  background: transparent;
  color: #0b1b33;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.hbs-carousel-arrow:hover,
.hbs-carousel-arrow:focus-visible {
  background-color: #ff8d02;
  border-color: #ff8d02;
  color: #ffffff;
}
.hbs-carousel-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hbs-carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: #cfd4dc;
  cursor: pointer;
}
.hbs-carousel-dot.is-active {
  background-color: #ff8d02;
}

/* Footer (desktop, 4 columns): line the column headings up with the middle of the logo, and start the
   link lists level with the paragraph under the logo. The logo box is 80px tall with 30px below it. */
@media (min-width: 992px) {
  footer .footer-column h4 {
    min-height: 80px;
    display: flex;
    align-items: center;
    margin-bottom: 30px !important;
  }
}

/* Footer (desktop): wider first column (logo and text), narrower "Useful Links" column */
@media (min-width: 992px) {
  footer .row > .footer-column:nth-child(1) {
    flex: 0 0 31%;
    max-width: 31%;
    width: 31%;
    padding-right: 40px;
  }
  footer .row > .footer-column:nth-child(2) {
    flex: 0 0 19%;
    max-width: 19%;
    width: 19%;
  }
}

/* Project carousel cards: on hover show only the project title (hide the category line),
   and show a pointer because the whole image opens the project (see the project-images-clickable JS snippet). */
.four-item-project-carousel .project-1-content .project-1-cat {
  display: none;
}
.four-item-project-carousel .project-1-image {
  cursor: pointer;
}

/* Homepage services carousel ("General Contracting and Renovation Services Across the GTA"):
   taller card images at one fixed height, no "Read more" link, orange title on hover. */
.home .four-item-services-carousel .service-block-six .image-box img {
  height: 260px;
  object-fit: cover;
  object-position: center;
}
.home .four-item-services-carousel .service-block-six .lower-content .link {
  display: none;
}
.home .four-item-services-carousel .service-block-six h3 a:hover,
.home .four-item-services-carousel .service-block-six h3 a:focus {
  color: #ff8d02 !important;
}

/* Project pages: H1 title and Rank Math breadcrumb above the slider
   (markup comes from the "Project pages - H1 title and breadcrumb" PHP snippet) */
.hbs-project-heading {
  margin-bottom: 30px;
}
.hbs-project-heading .hbs-project-title {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.2;
}
.hbs-project-heading .rank-math-breadcrumb p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #5c6470;
}
.hbs-project-heading .rank-math-breadcrumb a {
  color: #ff8d02;
}
.hbs-project-heading .rank-math-breadcrumb a:hover {
  text-decoration: underline;
}
.hbs-project-heading .rank-math-breadcrumb .separator {
  margin: 0 6px;
}
@media (max-width: 767px) {
  .hbs-project-heading .hbs-project-title {
    font-size: 28px;
  }
}

/* Page banner (service pages, blog posts, Blog and Services pages): Rank Math breadcrumb under the H1,
   replacing the theme's own breadcrumb (markup comes from the breadcrumb PHP snippet) */
.hbs-banner-breadcrumb .rank-math-breadcrumb p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: #ffffff;
  text-align: center;
}
.hbs-banner-breadcrumb .rank-math-breadcrumb a {
  color: #ffffff;
}
.hbs-banner-breadcrumb .rank-math-breadcrumb a:hover {
  color: #ff8d02;
}
.hbs-banner-breadcrumb .rank-math-breadcrumb .separator {
  margin: 0 6px;
}

/* Homepage services carousel: use the same arrows and dots as the project carousel.
   The theme's own arrows are hidden; the new controls are added by the project-images-clickable JS snippet. */
.four-item-services-carousel .slider-nav-style-2 {
  display: none !important;
}
.build-service-section .hbs-carousel-nav {
  padding-bottom: 40px;
}

/* Blog posts (desktop): same heading sizes as the service pages (H1 48px, H2 32px, H3 24px, H4 20px).
   The H1 is allowed to wrap here because blog titles can be longer than service titles. */
@media (min-width: 992px) {
  .single-post h1.fs_65 {
    font-size: clamp(30px, calc((100vw - 60px) / 24), 48px) !important;
    line-height: 1.2 !important;
  }
  .single-post .blog-details-content .text h2:not(.cta-headline) {
    font-size: 32px !important;
    line-height: 1.25;
  }
  .single-post .blog-details-content .text h3 {
    font-size: 24px !important;
    line-height: 1.3;
  }
  .single-post .blog-details-content .text h4 {
    font-size: 20px !important;
    line-height: 1.35;
  }
}

/* Testimonials page: Google rating badge beside the "What They're Talking About" heading
   (an Elementor HTML widget with class hbs-google-rating-widget) */
.hbs-google-rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  margin-bottom: 30px;
  background: #ffffff;
  border: 1px solid #e3e6eb;
  border-radius: 8px;
  line-height: 1;
}
.hbs-google-rating__score {
  font-size: 30px;
  font-weight: 800;
  color: #172b56;
}
.hbs-google-rating__stars {
  font-size: 24px;
  letter-spacing: 2px;
  color: #f5b301;
}
.hbs-google-rating__label {
  font-size: 16px;
  font-weight: 600;
  color: #5c6470;
}
@media (max-width: 767px) {
  .hbs-google-rating {
    margin-top: 10px;
  }
}

/* Testimonials page: the Google rating badge is a link to the Google profile */
a.hbs-google-rating {
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
a.hbs-google-rating:hover,
a.hbs-google-rating:focus-visible {
  border-color: #ff8d02;
  box-shadow: 0 4px 14px rgba(11, 27, 51, 0.08);
}

/* Homepage hero on phones: the theme gives the banner 330px of top padding at every screen size, which leaves
   a large empty band under the header on small screens. The mobile header is about 97px tall. */
@media (max-width: 767px) {
  .home .build-banner-section.banner-1-section {
    padding-top: 140px !important;
  }
}

/* Map section on phones: the theme lays the blue "Office Address" box on top of the map, and on a narrow
   screen the box covers nearly all of it. Stack them: map first, address box underneath. */
@media (max-width: 767px) {
  .map-1-section > .p_absolute {
    position: static !important;
    height: 280px;
  }
  .map-1-section > .p_absolute iframe {
    display: block;
    width: 100%;
    height: 280px;
  }
  .map-1-section .auto-container {
    padding-left: 0;
    padding-right: 0;
  }
  .map-1-section .contact-info-1-box {
    max-width: none;
    padding: 35px 25px !important;
    min-height: 0;
  }
}

/* Page banner on phones (the dark band with the H1 on service, blog and other inner pages): the theme uses
   240px top and 140px bottom padding at every screen size. Tighten it; the mobile header is about 97px tall. */
@media (max-width: 767px) {
  .banner-1-section:not(.build-banner-section) {
    padding-top: 125px !important;
    padding-bottom: 30px !important;
  }
  .banner-1-section:not(.build-banner-section) h1 {
    font-size: 28px !important;
    line-height: 1.25 !important;
    margin-bottom: 8px !important;
  }
  .hbs-banner-breadcrumb .rank-math-breadcrumb p {
    font-size: 15px;
  }
}

/* Phones: remove the large white gap between the page banner and the first content. The first section of
   each page carries 100-160px of top padding meant for desktop. Covers Elementor pages, service pages,
   blog posts, the Blog page and project pages (which have no banner, only the 97px header). */
@media (max-width: 767px) {
  .banner-1-section + .elementor > .elementor-section:first-child {
    padding-top: 45px !important;
  }
  .banner-1-section + .elementor > .elementor-section:first-child .elementor-widget-wrap {
    margin-top: 0 !important;
  }
  .banner-1-section + .elementor > .elementor-section:first-child .sidebar-page-container {
    padding-top: 0 !important;
  }
  .banner-1-section + .sidebar-page-container {
    padding-top: 45px !important;
  }
  .single-project .project-details-two {
    padding-top: 125px !important;
  }
}

/* Blog posts: table of contents box (markup comes from the "Blog posts - Table of contents" PHP snippet) */
.hbs-toc {
  margin: 30px 0 35px;
  padding: 18px 24px;
  background: #f5f6f8;
  border: 1px solid #e3e6eb;
  border-left: 4px solid #ff8d02;
  border-radius: 8px;
}
.hbs-toc__title {
  font-family: Roboto, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #172b56;
  cursor: pointer;
}
.hbs-toc__list {
  margin: 14px 0 4px;
  padding-left: 24px;
}
.hbs-toc__list li {
  margin: 7px 0;
  list-style: decimal;
  line-height: 1.45;
  color: #5c6470;
}
.hbs-toc__list a {
  color: #172b56;
}
.hbs-toc__list a:hover,
.hbs-toc__list a:focus {
  color: #ff8d02;
  text-decoration: underline;
}
/* Jump links stop below the sticky header instead of hiding the heading under it */
.single-post .blog-details-content .text h2[id] {
  scroll-margin-top: 150px;
}
html:has(.hbs-toc) {
  scroll-behavior: smooth;
}
@media (max-width: 767px) {
  .hbs-toc {
    padding: 14px 18px;
  }
  .single-post .blog-details-content .text h2[id] {
    scroll-margin-top: 115px;
  }
}

/* Service pages and blog posts on phones and tablets: smaller article headings.
   Below 992px the theme sizes applied (H2 about 45px), which took four or five lines on a phone. */
@media (max-width: 991px) {
  .single-service .blog-details-content .text h2:not(.cta-headline),
  .single-post .blog-details-content .text h2:not(.cta-headline) {
    font-size: 26px !important;
    line-height: 1.25 !important;
    margin-bottom: 10px;
  }
  .single-service .blog-details-content .text h3,
  .single-post .blog-details-content .text h3 {
    font-size: 21px !important;
    line-height: 1.3 !important;
  }
  .single-service .blog-details-content .text h4,
  .single-post .blog-details-content .text h4 {
    font-size: 18px !important;
    line-height: 1.35 !important;
  }
}
@media (max-width: 575px) {
  .single-service .blog-details-content .text h2:not(.cta-headline),
  .single-post .blog-details-content .text h2:not(.cta-headline) {
    font-size: 24px !important;
  }
  .single-service .blog-details-content .text h3,
  .single-post .blog-details-content .text h3 {
    font-size: 20px !important;
  }
}

/* Table of contents: numbered items, and two columns on desktop so a long list stays compact */
.hbs-toc__list li {
  list-style: decimal !important;
  break-inside: avoid;
}
@media (min-width: 992px) {
  .hbs-toc__list {
    columns: 2;
    column-gap: 48px;
  }
}

/* Project pages on phones: close the 120px gap between the project facts and the write-up,
   and bring the write-up headings down from 40px. */
@media (max-width: 767px) {
  .single-project .project-details-two .upper-box {
    margin-bottom: 30px !important;
  }
  .single-project .project-details-two .content-three {
    padding-top: 40px !important;
  }
  .single-project .project-details-two .content-box h2,
  .single-project .project-details-two .content-box h3 {
    font-size: 24px !important;
    line-height: 1.25 !important;
    margin-top: 22px;
    margin-bottom: 8px !important;
  }
}

/* Services page cards: the small line under each title now holds a short description (it used to be a number).
   Make it readable and reserve two lines so every card keeps the same height. */
.bn-service-card-count {
  min-height: 2.9em;
  font-size: 15px !important;
  font-weight: 500;
  line-height: 1.45;
  color: #5c6470 !important;
}

/* Services page cards: when the card turns orange on hover, the description line turns white like the title */
.icon_box_1_with_hover:hover .bn-service-card-count {
  color: #ffffff !important;
}

/* Category, tag, date and search result pages: results in a two-column grid of cards, and a sidebar
   that stays in view while scrolling. */
@media (min-width: 768px) {
  .archive .content-side .thm-unit-test,
  .search .content-side .thm-unit-test {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
  }
  .archive .content-side .thm-unit-test > :not([class*="type-"]),
  .search .content-side .thm-unit-test > :not([class*="type-"]) {
    grid-column: 1 / -1;
  }
}
.archive .content-side .thm-unit-test .blog-1-block,
.search .content-side .thm-unit-test .blog-1-block {
  height: 100%;
  margin-bottom: 0 !important;
}
.archive .content-side .blog-1-image img,
.search .content-side .blog-1-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.archive .content-side .blog-1-block .fs_22,
.search .content-side .blog-1-block .fs_22 {
  font-size: 15px !important;
}
.archive .content-side .blog-1-block .blog-1-post-meta,
.search .content-side .blog-1-block .blog-1-post-meta {
  font-size: 14px;
}
.archive .content-side .blog-1-title,
.search .content-side .blog-1-title {
  font-size: 21px !important;
  line-height: 1.3 !important;
}
.archive .content-side .blog-1-lower-content-alt2 > p,
.search .content-side .blog-1-lower-content-alt2 > p {
  font-size: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 992px) {
  .archive .sidebar-page-container .sidebar,
  .search .sidebar-page-container .sidebar {
    position: sticky;
    top: 150px;
  }
}

/* Grid cards are narrower than the theme's full-width post layout, so trim its overlap and padding,
   and drop the author / comment count line. */
.archive .content-side .thm-unit-test .blog-1-lower-content-alt2,
.search .content-side .thm-unit-test .blog-1-lower-content-alt2 {
  margin: -30px 0 0 15px !important;
  padding: 20px 15px 20px 20px !important;
}
.archive .content-side .thm-unit-test .blog-1-post-meta,
.search .content-side .thm-unit-test .blog-1-post-meta {
  display: none;
}
.archive .content-side .thm-unit-test .blog-1-lower-content-alt2 > .d-flex,
.search .content-side .thm-unit-test .blog-1-lower-content-alt2 > .d-flex {
  margin-bottom: 6px !important;
}

/* The theme's page wrapper uses overflow: hidden, which stops position: sticky from working.
   "clip" hides the same overflow without that side effect. Scoped to these pages only. */
body.archive .page-wrapper,
body.search .page-wrapper {
  overflow: clip !important;
}


/* Pagination (search results, category and other archive pages)
   - the theme's previous/next arrows use icon names that are not in its icon font, so the circles were empty
   - the current page was still the old red
   - it sat tight against the last row of results */
.styled-pagination [class*="flaticon-left"]::before,
.styled-pagination [class*="flaticon-right"]::before {
  font-family: Arial, Helvetica, sans-serif !important;
  font-style: normal;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}
.styled-pagination [class*="flaticon-left"]::before {
  content: "\2190" !important;
}
.styled-pagination [class*="flaticon-right"]::before {
  content: "\2192" !important;
}
.styled-pagination li.active a,
.styled-pagination li a.active,
.styled-pagination li a:hover {
  background-color: #ff8d02 !important;
  border-color: #ff8d02 !important;
  color: #ffffff !important;
}
body.archive .styled-pagination,
body.search .styled-pagination {
  margin-top: 20px !important;
}

/* Content tables: old red header colour replaced with the brand orange */
table thead[style*="a32a29" i],
table tr[style*="a32a29" i],
table th[style*="a32a29" i],
table td[style*="a32a29" i] {
  background-color: #ff8d02 !important;
}

/* Service pages: bullet lists. Covers normal ul lists in service content and the lists built by the
   "Service pages - Bullet lists" snippet from typed bullets. Numbered (ol) lists are left alone. */
:is(.text ul.hbs-bullets, body.single[class*="service"] .blog-details-content .text ul) {
  list-style: none;
  margin: 8px 0 32px;
  padding: 0;
  border-top: 1px solid #e6e9ef;
}
:is(.text ul.hbs-bullets, body.single[class*="service"] .blog-details-content .text ul) li {
  position: relative;
  margin: 0;
  padding: 15px 0 15px 42px;
  border-bottom: 1px solid #e6e9ef;
  list-style: none;
}
:is(.text ul.hbs-bullets, body.single[class*="service"] .blog-details-content .text ul) li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff8d02 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 16px no-repeat;
}
:is(.text ul.hbs-bullets, body.single[class*="service"] .blog-details-content .text ul) li strong {
  color: #0e1528;
  font-weight: 600;
}
@media (max-width: 767px) {
  :is(.text ul.hbs-bullets, body.single[class*="service"] .blog-details-content .text ul) li {
    padding: 13px 0 13px 36px;
  }
  :is(.text ul.hbs-bullets, body.single[class*="service"] .blog-details-content .text ul) li::before {
    top: 17px;
    width: 20px;
    height: 20px;
    background-size: 13px;
  }
}

/* Call to action boxes: one layout for every box, whatever order its pieces were written in.
   Left column: label, headline, text, phone number. Right column: the button, centred.
   Stray line breaks are hidden and an empty label takes no space. Text is not changed. */
.blog-details-content .text .cta-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: repeat(6, auto);
  column-gap: 48px;
  row-gap: 0;
  align-items: center;
  justify-content: normal;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 40px 0;
  padding: 44px 52px 32px;
  border-radius: 8px;
  background-color: #0b1320;
  font-family: inherit;
}
.blog-details-content .text .cta-banner:not(:has(.cta-button)) {
  grid-template-columns: minmax(0, 1fr);
}
.blog-details-content .text .cta-banner br {
  display: none;
}
.blog-details-content .text .cta-banner .cta-text-content {
  display: contents;
}
.blog-details-content .text .cta-banner > *,
.blog-details-content .text .cta-banner .cta-text-content > * {
  grid-column: 1;
  order: 3;
  min-width: 0;
  margin: 0 0 12px;
}
.blog-details-content .text .cta-banner .cta-eyebrow {
  order: 1;
  display: block;
  margin: 0 0 14px;
}
.blog-details-content .text .cta-banner .cta-eyebrow:not(:has(.cta-subtitle)) {
  display: none;
}
.blog-details-content .text .cta-banner .cta-subtitle {
  display: block;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 2px;
}
.blog-details-content .text .cta-banner .cta-headline {
  order: 2;
  color: #ffffff;
  font-size: 30px !important;
  line-height: 1.25 !important;
}
.blog-details-content .text .cta-banner .cta-description {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.55;
}
.blog-details-content .text .cta-banner .cta-phone-wrapper {
  order: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin: 6px 0 12px;
}
.blog-details-content .text .cta-banner .cta-phone-number {
  color: #ffffff;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}
.blog-details-content .text .cta-banner .phone-icon {
  display: block;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
/* A phone number written inside a sentence stays in the sentence */
.blog-details-content .text .cta-banner .cta-description .cta-phone-number {
  font-size: inherit;
  line-height: inherit;
  white-space: nowrap;
}
.blog-details-content .text .cta-banner p:has(> .cta-button),
.blog-details-content .text .cta-banner > .cta-button {
  grid-column: 2;
  grid-row: 1 / -1;
  order: 5;
  align-self: center;
  margin: 0 0 12px;
}
.blog-details-content .text .cta-banner .cta-button {
  padding: 16px 24px;
  font-size: 14px;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .blog-details-content .text .cta-banner {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 24px 20px;
  }
  .blog-details-content .text .cta-banner p:has(> .cta-button),
  .blog-details-content .text .cta-banner > .cta-button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 8px;
  }
  .blog-details-content .text .cta-banner .cta-button {
    white-space: normal;
    text-align: left;
  }
  .blog-details-content .text .cta-banner .cta-headline {
    font-size: 24px !important;
  }
  .blog-details-content .text .cta-banner .cta-description {
    font-size: 17px;
  }
  .blog-details-content .text .cta-banner .cta-phone-number {
    font-size: 26px;
  }
  .blog-details-content .text .cta-banner .cta-description .cta-phone-number {
    font-size: inherit;
  }
}

/* Service pages: space above headings, so each section is clearly separated from the one before it */
body.single[class*="service"] .blog-details-content .text h2:not(.cta-headline) {
  margin: 52px 0 14px;
}
body.single[class*="service"] .blog-details-content .text h3:not(.rank-math-question) {
  margin: 30px 0 8px;
}
body.single[class*="service"] .blog-details-content .text h4 {
  margin: 24px 0 6px;
}
body.single[class*="service"] .blog-details-content .text h2:not(.cta-headline) + h3:not(.rank-math-question),
body.single[class*="service"] .blog-details-content .text h3 + h4 {
  margin-top: 4px;
}
body.single[class*="service"] .blog-details-content .text > :first-child {
  margin-top: 0;
}

/* Service pages: FAQ (Rank Math FAQ block), one card per question */
body.single[class*="service"] .blog-details-content .text .rank-math-block {
  margin: 22px 0 28px;
}
body.single[class*="service"] .blog-details-content .text .rank-math-list-item {
  margin: 0 0 12px;
  padding: 22px 26px;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  background-color: #f8f9fb;
}
body.single[class*="service"] .blog-details-content .text .rank-math-list-item:last-child {
  margin-bottom: 0;
}
body.single[class*="service"] .blog-details-content .text .rank-math-question {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.35;
}
body.single[class*="service"] .blog-details-content .text .rank-math-answer p {
  margin: 0 0 10px;
}
body.single[class*="service"] .blog-details-content .text .rank-math-answer p:last-child {
  margin-bottom: 0;
}
@media (max-width: 767px) {
  body.single[class*="service"] .blog-details-content .text h2:not(.cta-headline) {
    margin: 40px 0 10px;
  }
  body.single[class*="service"] .blog-details-content .text h3:not(.rank-math-question) {
    margin-top: 24px;
  }
  body.single[class*="service"] .blog-details-content .text h2:not(.cta-headline) + h3:not(.rank-math-question) {
    margin-top: 4px;
  }
  body.single[class*="service"] .blog-details-content .text .rank-math-list-item {
    padding: 18px;
  }
  body.single[class*="service"] .blog-details-content .text .rank-math-question {
    font-size: 19px;
  }
}

/* Service pages: no hover effect on the featured image at the top of the article
   (the theme slides a dark overlay across it and zooms the photo) */
.single-service .blog-details-content .blog-1-image::before,
.single-service .blog-details-content .blog-1-image::after {
  display: none !important;
}
.single-service .blog-details-content .blog-1-image img,
.single-service .blog-details-content:hover .blog-1-image img {
  transform: none !important;
  opacity: 1 !important;
  filter: none !important;
}

/* WhatsApp chat button: floating, bottom-left (the back-to-top button is bottom-right).
   Markup comes from the "WhatsApp chat button (floating, bottom-left)" PHP snippet. */
.hbs-whatsapp {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 13px;
  border-radius: 28px;
  background: #25d366;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.hbs-whatsapp svg {
  flex-shrink: 0;
  display: block;
}
.hbs-whatsapp__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: max-width 0.25s ease, padding-right 0.25s ease;
}
.hbs-whatsapp:hover,
.hbs-whatsapp:focus-visible {
  background: #1ebe5b;
  color: #fff !important;
  transform: translateY(-2px);
}
.hbs-whatsapp:hover .hbs-whatsapp__label,
.hbs-whatsapp:focus-visible .hbs-whatsapp__label {
  max-width: 180px;
  padding-right: 6px;
}
.hbs-whatsapp:focus-visible {
  outline: 3px solid #ff8d02;
  outline-offset: 3px;
}
@media (max-width: 767px) {
  .hbs-whatsapp {
    left: 16px;
    bottom: 16px;
    height: 52px;
    padding: 0 11px;
  }
  .hbs-whatsapp:hover .hbs-whatsapp__label,
  .hbs-whatsapp:focus-visible .hbs-whatsapp__label {
    max-width: 0;
    padding-right: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hbs-whatsapp,
  .hbs-whatsapp__label {
    transition: none;
  }
}
