.path-custom-pool-view {
  .container {
    padding: 0;
    margin: 0;
    max-width: unset;
  }
}


.view-content-wrapper.container {
  padding-right: 15px !important;
  padding-left: 15px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.models-view-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 900px;
}

.banner-image {
  position: absolute;
  inset: 0;
  background-image: url("../banner-optimized.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;

  &::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(160deg,
        rgba(2, 10, 30, 0.82) 0%,
        rgba(0, 30, 60, 0.72) 60%,
        rgba(0, 0, 0, 0.65) 100%);
  }
}

.view-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.pool-card-wrapper {
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: rgba(0, 0, 0, 0.35) 0px 8px 32px;
  border-radius: 1.25rem;
  opacity: 1;
  transform: none;
}

.pool-card-wrapper .item-image {
  height: 270px;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.pool-card-title {
  a {
    color: white;
  }
}



.blog-list {
  .view-content-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 20px;
  }

  .blog {
    display: flex;
    flex-direction: column;

    .image {
      img {
        width: 100%;
        object-fit: cover;
        aspect-ratio: 1 / 1;
        border-radius: 20px 20px 0px 0px;
      }
    }

    &:hover {
      .right-part {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
        transition: box-shadow 0.3s ease;
      }
    }
  }

  .right-part {
    padding: 10px;
    border-radius: 0px 0px 8px 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    .link {
      padding-top: 20px;
    }
  }

}

.dark-mode {
  .blog-list {
    .blog {
      &:hover {
        .right-part {
          box-shadow: 0 4px 8px rgb(255, 255, 255);
          transition: box-shadow 0.3s ease;
        }
      }
    }

    .right-part {
      box-shadow: 0 4px 8px rgb(255 255 255 / 66%);
    }

  }

  .feed-icon {
    color: white;
  }

  .portfolio-informations .item-information span {
    color: white !important;
  }

  .gsc-progress .milestone-block .milestone-text {
    color: black !important;
  }

  #accordion-jcao6 .panel.panel-default {
    padding: 20px;
  }

  .block-views-blockservices-by-location-block-2 .block-title span {
    color: black !important;
  }

  .js-pager__items {
    color: black !important;
  }

  .col-md-12 .gsc-quotes-rotator .cbp-qtcontent .content-title {
    color: white;
  }

  .google-review .right {
    color: black;
  }

  .google-review .body {
    color: black;
  }

}




.node--type-blog {
  .item-image {
    img {
      width: 100%;
      height: 300px;
      object-fit: cover;
    }
  }
}

.equal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 10px;
  padding-bottom: 30px;
}

.equal-grid__item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.equal-grid__item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.equal-grid__item:hover img {
  transform: scale(1.05);
}

.equal-grid__caption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.pswp-galler-wrapper {
  .head {
    h1 {
      display: flex;
      justify-content: center;
    }
  }
}


.paragraph--type--finance {
  margin-bottom: 20px;
  background-color: #f4f5f8;
  border: 1px solid;
  padding: 20px;
  border-radius: 20px;

  .item-image {
    display: flex;
    justify-content: center;
    padding-block: 20px;

    img {
      width: 216px;
      height: 92px;
      object-fit: contain;
    }
  }

  .link {
    display: flex;
    justify-content: center;

  }
}

.pools-wrapper {
  .view-content-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 50px;
  }
}


/* ============================
   Exposed Filters – Base Layout
=============================== */
.views-exposed-form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px;
  background: #f7f7f7;
  border-radius: 10px;
  margin-top: 20px;
}

/* Each filter item */
.views-exposed-form .form-item {
  display: flex;
  flex-direction: column;
  width: calc(25% - 16px);
  /* 3 per row on desktop */
}

/* Labels */
.views-exposed-form .form-item label {
  font-size: 14px;
  margin-bottom: 6px;
  color: #333;
}

/* Inputs */
.views-exposed-form .form-text,
.views-exposed-form .form-select {
  width: 100%;
  padding: 10px 12px !important;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s ease;
  margin: 0 !important;
}

.views-exposed-form .form-text:focus,
.views-exposed-form .form-select:focus {
  border-color: #0074d9;
  outline: none;
}

/* Submit button */
.views-exposed-form .form-actions {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.views-exposed-form .form-actions .button {
  padding: 12px 22px;
  font-size: 16px;
  background: #0074d9;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
}

.views-exposed-form .form-actions .button:hover {
  background: #005fa3;
}

/* ============================
     Tablet Responsive (2 per row)
  =============================== */
@media (max-width: 900px) {
  .views-exposed-form .form-item {
    width: calc(50% - 16px);
  }
}

/* ============================
     Mobile Responsive (1 per row)
  =============================== */
@media (max-width: 600px) {
  .views-exposed-form {
    gap: 20px;
  }

  .views-exposed-form .form-item {
    width: 100%;
  }

  .views-exposed-form .form-actions {
    justify-content: center;
  }
}

/* Homepage fiberglass partners: equal logo cards matching the approved design. */
.frontpage .partner-wrapper {
  background: #fff;
  /* padding: clamp(58px, 7vw, 90px) 40px; */
}

.frontpage .partner-wrapper .bb-container {
  margin-inline: auto;
  max-width: 1400px;
  width: 100%;
}

.frontpage .partner-wrapper .row.row-wrapper {
  display: grid !important;
  gap: 24px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 !important;
}

.frontpage .partner-wrapper .row.row-wrapper > .gsc-column {
  background: #f4f5f8;
  border: 1px solid #e8ebef;
  border-radius: 24px;
  flex: none !important;
  max-width: none !important;
  min-width: 0;
  overflow: hidden;
  padding: 24px !important;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  width: auto !important;
}

.frontpage .partner-wrapper .row.row-wrapper > .gsc-column.unique-child {
  background: transparent;
  border: 0;
  border-radius: 0;
  grid-column: 1 / -1;
  overflow: visible;
  padding: 0 0 clamp(20px, 3vw, 38px) !important;
}

.frontpage .partner-wrapper .gsc-heading {
  margin: 0 auto !important;
  max-width: none !important;
}

.frontpage .partner-wrapper .gsc-heading .title {
  color: #222429 !important;
  font-family: "BioRhyme", Georgia, serif;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.15;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}

.frontpage .partner-wrapper .row.row-wrapper > .gsc-column:not(.unique-child):hover {
  border-color: rgba(55, 125, 255, 0.35);
  box-shadow: 0 18px 40px rgba(34, 36, 41, 0.12);
  transform: translateY(-4px);
}

.frontpage .partner-wrapper .gsc-column:not(.unique-child) .column-inner,
.frontpage .partner-wrapper .gsc-column:not(.unique-child) .column-content-inner,
.frontpage .partner-wrapper .gsc-column:not(.unique-child) .gsc-image-content {
  height: 100%;
}

.frontpage .partner-wrapper .gsc-image-content {
  display: flex;
  flex-direction: column;
}

.frontpage .partner-wrapper .gsc-image-content .image {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-height: 300px;
  padding: 10px;
}

.frontpage .partner-wrapper .gsc-image-content .image > a {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.frontpage .partner-wrapper .gsc-image-content.skin-v2 .image img {
  border-radius: 0 !important;
  display: block;
  height: 260px !important;
  margin: 0 !important;
  max-width: 100%;
  object-fit: contain !important;
  width: 100% !important;
}

.frontpage .partner-wrapper .gsc-image-content.skin-v2 .box-content {
  align-items: center;
  background: #fff !important;
  display: flex !important;
  justify-content: center;
  margin: 0 !important;
  min-height: 72px;
  padding: 16px !important;
  width: 100%;
}

.frontpage .partner-wrapper .gsc-image-content .title {
  margin: 0 !important;
  width: 100%;
}

.frontpage .partner-wrapper .gsc-image-content .title a {
  color: #222429 !important;
  font-family: "BioRhyme", Georgia, serif;
  font-size: 16px;
  font-weight: 800;
  justify-content: center;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.frontpage .partner-wrapper .gsc-image-content .read-more {
  display: none !important;
}

body.dark-mode.frontpage .partner-wrapper {
  background: #10171b;
}

body.dark-mode.frontpage .partner-wrapper .gsc-heading .title {
  color: #fff !important;
}

body.dark-mode.frontpage .partner-wrapper .row.row-wrapper > .gsc-column:not(.unique-child) {
  background: #182328;
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode.frontpage .partner-wrapper .gsc-image-content.skin-v2 .box-content {
  background: #222e34 !important;
}

body.dark-mode.frontpage .partner-wrapper .gsc-image-content .title a {
  color: #fff !important;
}

@media (max-width: 1023px) {
  .frontpage .partner-wrapper {
    padding-inline: 28px;
  }

  .frontpage .partner-wrapper .row.row-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .frontpage .partner-wrapper {
    padding: 48px 20px;
  }

  .frontpage .partner-wrapper .row.row-wrapper {
    grid-template-columns: 1fr;
  }

  .frontpage .partner-wrapper .gsc-image-content .image {
    min-height: 230px;
  }

  .frontpage .partner-wrapper .gsc-image-content.skin-v2 .image img {
    height: 210px !important;
  }
}

.pool {
  background: #f7f7f7;

  .gbb-row .bb-inner {
    padding-bottom: 0 !important;
  }

  .view-content-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;

    .button-action {
      display: flex;
      justify-content: center;

      a {
        padding-inline: 0;
        width: 250px;
      }
    }

    .pool-card-wrapper {
      background: white;
      padding-block: 20px;
      border-radius: 20px;

      .pool-card {
        /* position: relative; */
        display: flex;
        flex-direction: column;
        gap: 10px;
        color: black;
        text-align: center;

        .title {
          display: flex;
          justify-content: center;
        }

        .properties {
          ul {
            padding-block: 10px;

            li {
              display: flex;
            }
          }

        }

      }
    }

    .button-action {
      a {
        display: flex;
        justify-content: center;
        padding-block: 5px;
        background: #377DFF;
      }
    }
  }
}

.linoor-booking-modal {
  align-items: center;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 99999;
}

.linoor-booking-modal.is-open {
  display: flex;
}

.linoor-booking-modal-open {
  overflow: hidden;
}

.linoor-booking-modal__dialog {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  height: min(760px, 90vh);
  max-width: 980px;
  overflow: hidden;
  position: relative;
  width: min(100%, 980px);
}

.linoor-booking-modal__close {
  align-items: center;
  background: #111;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 28px;
  height: 42px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 42px;
  z-index: 1;
}

.linoor-booking-modal__frame {
  border: 0;
  height: 100%;
  width: 100%;
}

@media (max-width: 767px) {
  .linoor-booking-modal {
    padding: 12px;
  }

  .linoor-booking-modal__dialog {
    height: 88vh;
  }
}

.pool-contents {
  .left-section {
    flex-basis: 50%;

    .pswp-gallery {
      display: flex;
      flex-direction: column;
      gap: 20px;

      .gallery-wrapper--first {
        max-width: 1920px;

        img {
          height: 450px;
          width: 100%;
          object-fit: cover;
        }
      }

      .gallery-wrapper--later {
        img {
          height: 120px;
          width: 120px;
          object-fit: cover;
          border-radius: 20px;
        }

        img:hover {
          transform: scale(1.03);
        }
      }
    }


  }

}

.right-section {
  padding-top: 30px;

  .part-a {
    float: right;
    padding-left: 40px;
  }

  .part-b {
    text-align: justify;
  }

}

@media (max-width: 767px) {
  .right-section {
    text-align: center;

    .part-a {
      float: none !important;
      padding-left: 0 !important;
    }
  }
}




.pool-custom-para {
  .row-wrapper {
    flex-wrap: nowrap;

    .left-section {
      margin-left: 140px;
    }
  }

  .right-section {

    .column-inner,
    .column-content-inner,
    .gsc-image,
    .widget-content {
      height: 100% !important;

      img {
        width: 100%;
        max-width: 748px;
        height: auto;
        object-fit: cover;
        display: block;
      }
    }


  }

}

#hcp-lead-iframe {
  display: block !important;
  float: none !important;
  width: min(100%, 540px) !important;
  max-width: 540px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}





@media (min-width: 768px) and (max-width: 1023px) {
  .blog-list {
    .view-content-wrap {
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      padding-top: 20px;
    }

  }

  .pool {
    .view-content-wrap {
      grid-template-columns: 1fr 1fr;
      gap: 30px;
      padding: 30px;
    }
  }

}

/* Desktops and larger screens */
@media (min-width: 1024px) {
  .blog-list {
    .view-content-wrap {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr 1fr;
      gap: 20px;
      padding-top: 30px;
      row-gap: 40px;
    }
  }

  .pool {
    .view-content-wrap {
      grid-template-columns: 1fr 1fr 1fr;
      gap: 30px;
      padding: 30px;
    }
  }
}

.pswp__img {
  object-fit: cover;
}

/* Pool catalog view inspired by Kool Pools model cards. */
.pool,
.pools-wrapper {
  --pool-bg: #071421;
  --pool-panel: rgba(18, 47, 63, 0.82);
  --pool-line: rgba(180, 229, 244, 0.22);
  --pool-text: #f2fbff;
  --pool-muted: rgba(226, 243, 249, 0.74);
  --pool-cta: #169b78;
}

.pool {
  background:
    linear-gradient(180deg, rgba(5, 15, 27, 0.9), rgba(5, 38, 52, 0.86)),
    radial-gradient(circle at 72% 34%, rgba(20, 184, 212, 0.16), transparent 34%),
    var(--pool-bg);
  color: var(--pool-text);
  padding: 58px 0 72px;
}

.pool .gbb-row .bb-inner {
  padding-bottom: 0 !important;
}

.pool .block-title,
.pool .page-title,
.pool h1,
.pools-wrapper .block-title,
.pools-wrapper .page-title,
.pools-wrapper h1 {
   color: #15323a;;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 18px 0 18px;
}

.pool .view-header,
.pools-wrapper .view-header {
  color: var(--pool-muted);
  font-size: 18px;
  max-width: 720px;
}

.pool .views-exposed-form,
.pools-wrapper .views-exposed-form {
  align-items: center;
  background: rgba(19, 31, 43, 0.74);
  border: 1px solid var(--pool-line);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  display: flex;
  gap: 10px;
  margin: 30px 0 26px;
  overflow-x: auto;
  padding: 8px;
  scrollbar-width: thin;

}

.pool .views-exposed-form .form-item,
.pools-wrapper .views-exposed-form .form-item {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  width: auto;
}

.pool .views-exposed-form label,
.pools-wrapper .views-exposed-form label {
  color: var(--pool-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin: 0 0 5px;
  text-transform: uppercase;
}

.pool .views-exposed-form .form-text,
.pool .views-exposed-form .form-select,
.pools-wrapper .views-exposed-form .form-text,
.pools-wrapper .views-exposed-form .form-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--pool-line);
  border-radius: 999px;
  color: var(--pool-text);
  min-height: 42px;
  min-width: 150px;
  padding: 9px 16px !important;
}

.pool .views-exposed-form .form-actions,
.pools-wrapper .views-exposed-form .form-actions {
  flex: 0 0 auto;
  justify-content: flex-start;
  margin: 0;
  width: auto;
}

.pool .views-exposed-form .form-actions .button,
.pools-wrapper .views-exposed-form .form-actions .button {
  background: linear-gradient(135deg, #0ea5c6, #0f8fb3);
  border: 1px solid rgba(103, 232, 249, 0.34);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(14, 165, 198, 0.24);
  color: #fff;
  min-height: 42px;
  padding: 9px 20px;
}

.pool .view-content-wrap,
.pools-wrapper .view-content-wrap {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px 0 0;
}

.pool .view-content-wrap>.item,
.pools-wrapper .view-content-wrap>.item {
  min-width: 0;
}

.pool-view-header {
  padding-block: 50px;
}

.pool .pool-card-wrapper,
.pools-wrapper .pool-card-wrapper {
  background: var(--pool-panel);
  border: 1px solid var(--pool-line);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  padding: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pool .pool-card-wrapper:hover,
.pools-wrapper .pool-card-wrapper:hover {
  border-color: rgba(103, 232, 249, 0.44);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.34);
  transform: translateY(-6px);
}

.pool .pool-card,
.pools-wrapper .pool-card {
  color: var(--pool-text);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 0 18px 18px;
  text-align: left;
}

.pool .pool-card img,
.pools-wrapper .pool-card img,
.pool .pool-card-wrapper img,
.pools-wrapper .pool-card-wrapper img {
  aspect-ratio: 16 / 10;
  border-radius: 0;
  display: block;
  height: auto;
  /* margin: 0 -18px; */
  object-fit: cover;
  width: calc(100% + 36px);
}

.pool .pool-card .title,
.pools-wrapper .pool-card .title {
  display: block;
  margin-top: 2px;
}

.pool .pool-card .title a,
.pool .pool-card .title h2,
.pool .pool-card .title h3,
.pools-wrapper .pool-card .title a,
.pools-wrapper .pool-card .title h2,
.pools-wrapper .pool-card .title h3 {
  color: var(--pool-text);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}

.pool .pool-card .title a:hover,
.pools-wrapper .pool-card .title a:hover {
  color: #67e8f9;
}

.pool .pool-card .properties,
.pools-wrapper .pool-card .properties {
  background: transparent;
  color: var(--pool-muted);
  opacity: 1;
  transform: none;
}

.pool .pool-card .properties ul,
.pools-wrapper .pool-card .properties ul {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
}

.pool .pool-card .properties li,
.pools-wrapper .pool-card .properties li {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--pool-line);
  border-radius: 12px;
  color: var(--pool-muted);
  display: flex;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
  text-align: center;
}

.pool .pool-card .field,
.pool .pool-card .field__item,
.pool .pool-card p,
.pools-wrapper .pool-card .field,
.pools-wrapper .pool-card .field__item,
.pools-wrapper .pool-card p {
  color: var(--pool-muted);
}

.pool .button-action,
.pools-wrapper .button-action {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

@media (max-width: 767px) {

  .pool .button-action,
  .pools-wrapper .button-action {
    justify-content: center;
  }
}

.pool .button-action a,
.pools-wrapper .button-action a {
  align-items: center;
  background: #222429;
  border-radius: 12px;
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  justify-content: center;
  line-height: 1.2;
  min-height: 44px;
  padding: 19px 50px 16px;
  text-align: center;
  width: auto;
}

.pool .button-action a:hover,
.pools-wrapper .button-action a:hover {
  color: #fff;
}

@media (max-width: 1199px) {

  .pool .view-content-wrap,
  .pools-wrapper .view-content-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .pool {
    padding: 38px 0 50px;
  }

  .pool .block-title,
  .pool .page-title,
  .pool h1,
  .pools-wrapper .block-title,
  .pools-wrapper .page-title,
  .pools-wrapper h1 {
    font-size: clamp(34px, 12vw, 50px);
  }

  .pool .views-exposed-form,
  .pools-wrapper .views-exposed-form {
    border-radius: 14px;
    flex-wrap: nowrap;
    margin-top: 22px;
  }

  .pool .view-content-wrap,
  .pools-wrapper .view-content-wrap {
    grid-template-columns: 1fr;
    padding-top: 12px;
  }

  .pool .pool-card,
  .pools-wrapper .pool-card {
    padding: 0 16px 16px;
  }

  .pool .pool-card img,
  .pools-wrapper .pool-card img,
  .pool .pool-card-wrapper img,
  .pools-wrapper .pool-card-wrapper img {
    /* margin: 0 -16px; */
    width: calc(100% + 32px);
  }
}

/* /all-pools page-specific corrections for the Drupal layout and card markup. */
.path-pools #page-main-content {
  flex: 0 0 100%;
  max-width: 100%;
}

.path-pools .sidebar-right {
  display: none;
}

.path-pools .main.main-page {
  background: #06111d;
}

.path-pools .help.gav-help-region {
  display: none;
}

.path-pools #content {
  background:
    linear-gradient(180deg, rgba(3, 10, 20, 0.78), rgba(4, 33, 45, 0.7)),
    url("/sites/default/files/fbp/HomeSlider2.jpg") center center / cover fixed;
  padding: 0 0 80px;
  position: relative;
}

.path-pools #content::before {
  /* background:
    radial-gradient(circle at 82% 28%, rgba(14, 165, 198, 0.2), transparent 32%),
    linear-gradient(90deg, rgba(3, 10, 20, 0.72), rgba(3, 10, 20, 0.42)); */
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.path-pools #content>.container,
.path-pools #content .content-main-inner,
.path-pools #content .content-main,
.path-pools #content .block-content,
.path-pools #content .views-element-container {
  position: relative;
  z-index: 1;
}

.path-pools #content .container-bg {
  background: transparent;
  max-width: none;
  padding-left: 7vw;
  padding-right: 7vw;
  width: 100%;
}

.path-pools #content .content-main-inner {
  margin: 0 auto;
  max-width: 1320px;
}

.path-pools .pool.gva-view {
  background: transparent;
  border-radius: 0;
  margin: 0;
  padding-top: 46px;
}

.path-pools .pool .views-exposed-form {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  gap: 12px;
  margin: 0 0 36px;
  overflow: visible;
  padding: 0;
}

.path-pools .pool .views-exposed-form .form-item {
  background: rgba(18, 31, 43, 0.72);
  border: 1px solid rgba(180, 229, 244, 0.18);
  border-radius: 16px;
  min-width: 190px;
  padding: 10px;
}

.path-pools .pool .views-exposed-form .form-item-name {
  min-width: 260px;
}

.path-pools .pool .views-exposed-form label {
  color: rgba(226, 243, 249, 0.72);
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 8px;
}

.path-pools .pool .views-exposed-form .form-text,
.path-pools .pool .views-exposed-form .form-select {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(180, 229, 244, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-width: 0;
  width: 100%;
}

.path-pools .pool .views-exposed-form .form-select {
  appearance: auto;
}

.path-pools .pool .view-content-wrap {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.path-pools .pool .view-content-wrap .pool-card-wrapper {
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.25rem;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 8px 32px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  padding: 0 0 74px;
  position: relative;
  opacity: 1;
  transform: none;
}

.path-pools .pool .view-content-wrap .pool-card {
  background: transparent !important;
  color: #f2fbff;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 13px;
  padding: 0 18px 12px;
  text-align: left;
}

.path-pools .pool .view-content-wrap .pool-card .image {
  position: relative;
  overflow: hidden;
}

/* Image */
.path-pools .pool .view-content-wrap .pool-card .image img {
  width: 100%;
  display: block;
  transition: transform .6s ease;
}

/* Zoom image */
.path-pools .pool .view-content-wrap .pool-card .image:hover img {
  transform: scale(1.12);
}

/* Overlay */
.path-pools .pool .view-content-wrap .pool-card .image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .25);
  opacity: 0;
  visibility: hidden;
  transition: all .4s ease;
  z-index: 1;
}

.path-pools .pool .view-content-wrap .pool-card .image:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Plus Icon */
.path-pools .pool .view-content-wrap .pool-card .image::before {
  content: "+";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.6);
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transition: all .35s ease;
  z-index: 2;
  padding-top: 5px;
}

/* Show icon */
.path-pools .pool .view-content-wrap .pool-card .image:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.path-pools .pool .view-content-wrap .pool-card .image {
  margin: 0 -18px;
  overflow: hidden;
  position: relative;
}

.path-pools .pool .view-content-wrap .pool-card .image .item-image>img {
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.path-pools .pool .view-content-wrap .pool-card .image .logo {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0 0 10px 0;
  height: 54px;
  left: 0;
  padding: 6px;
  top: 0;
  width: 78px;
}

.path-pools .pool .view-content-wrap .pool-card .image .logo img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.path-pools .pool .view-content-wrap .pool-card .title {
  display: block;
  justify-content: flex-start;
  margin: 2px 0 0;
  /* order: 2; */
}

.path-pools .pool .view-content-wrap .pool-card .title h3 {
  color: #f2fbff !important;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
}

.path-pools .pool .view-content-wrap .pool-card .properties {
  background: transparent !important;
  order: 3;
  padding: 0;
  transform: none !important;
  display: flex;
  gap: 10px;
}

.path-pools .pool .view-content-wrap .pool-card .properties p {
  color: rgba(226, 243, 249, 0.78) !important;
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 4px;
  display: flex;
  flex-direction: column-reverse;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 20px;
  flex: 1;
}

.path-pools .pool .view-content-wrap .pool-card .properties strong {
  color: #ffffff59;
  font-weight: 400;
}

.path-pools .pool .view-content-wrap .pool-card .brand {
  color: rgba(226, 243, 249, 0.72);
  font-size: 13px;
  letter-spacing: 0.08em;
  /* order: 4; */
  text-transform: uppercase;
  color: #53eafdcc;
}

.pool-card .description {
  font-size: 13px;
}


.path-pools .pool .view-content-wrap .pool-card-wrapper .button-action {
  bottom: 18px;
  display: flex !important;
  justify-content: space-between;
  left: 18px;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 18px;
}

.path-pools .pool .view-content-wrap .pool-card-wrapper .button-action .price {
  display: flex;
  flex-direction: column;
}

.path-pools .pool .view-content-wrap .pool-card-wrapper .button-action .price strong {
  color: #fff6;
  font-weight: 400;
  font-size: 12px;
}

.path-pools .pool .view-content-wrap .pool-card-wrapper .button-action .price span {
  color: #53eafdcc;
  font-weight: 300;
}

.path-pools .pool .view-content-wrap .pool-card-wrapper .button-action a {
  align-items: center;
  background: #169b78 !important;
  border: 1px solid rgba(110, 231, 183, 0.28);
  border-radius: 12px;
  color: #fff !important;
  display: inline-flex !important;
  font-size: 13px;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  position: static;
  text-indent: 0;
  visibility: visible;
  width: 100%;
}

.path-pools .pool .view-content-wrap .pool-card-wrapper .button-action a span {
  color: #fff !important;
  display: inline;
  opacity: 1;
  position: static;
  transform: none;
  visibility: visible;
}

.path-pools .pool .view-content-wrap .pool-card-wrapper .button-action a:hover {
  background: #10b981 !important;
}

.path-pools .pool .pager {
  margin-top: 34px;
}

.path-pools .pool .pager__items {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.path-pools .pool .pager__item a,
.path-pools .pool .pager__item.is-active a,
.path-pools .pool .pager__item--ellipsis {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(180, 229, 244, 0.22);
  border-radius: 999px;
  color: #f2fbff;
  display: inline-flex;
  min-width: 40px;
  padding: 8px 13px;
}

.path-pools .pool .pager__item.is-active a {
  background: #0ea5c6;
}

@media (max-width: 1199px) {
  .path-pools .pool .view-content-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .path-pools #content .container-bg {
    padding-left: 16px;
    padding-right: 16px;
  }

  .path-pools .pool .views-exposed-form {
    gap: 10px;
    margin-left: 0;
    margin-right: 0;
    overflow-x: auto;
    padding-bottom: 6px;
    flex-direction: column;
  }

  .path-pools .pool .views-exposed-form .form-item,
  .path-pools .pool .views-exposed-form .form-item-name {
    /* flex: 0 0 250px; */
    min-width: 250px;
    width: 100%;
  }

  .path-pools .pool .view-content-wrap {
    grid-template-columns: 1fr;
  }

  .path-pools .pool .view-content-wrap .pool-card-wrapper {
    border-radius: 16px;
  }
}



#block-linoor-subtheme-areasweserve {
  .gbb-row .bb-inner {
    padding: 0 !important;
  }
}

.partner-image {

  img {

    object-fit: contain !important;
  }

  .column-content-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 27px;
  }

}



.partner-wrapper {
  .box-content {

    display: flex;
    justify-content: center;
    background: white !important;

    .read-more {
      display: none;
    }
  }

  .gsc-column {
    background: rgb(244, 245, 248);
    border-radius: 20px;
    padding-block: 25px;
    flex: 1 1 0%;
  }

  .gsc-image-content.skin-v2 img {
    object-fit: contain;
  }

  .row.row-wrapper {
    gap: 20px;
  }

  .gsc-image-content.skin-v2 .box-content {
    padding: 10px;
    margin-top: 20px;
    display: block;
  }

  .gsc-image-content.skin-v2 .title a {
    display: flex;
    justify-content: center;

  }

  .gsc-image-content.skin-v2 .title a:hover {
    color: black;
  }
}


.gsc-call-to-action.style-v2 {
  margin-top: 60px;
}

.help.gav-help-region {
  margin-top: 0 !important;
}


.blog-content {
  .top-section {
    position: relative;
    margin-bottom: 40px;

    .overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.4);
      /* semi-transparent black */
    }

    .title {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
      /* dark shadow */
      color: white;
      z-index: 1;
      opacity: 0.8;

    }

    img {
      width: 100%;
      height: 60vh;
      object-fit: cover;
      object-position: center;
    }
  }
}





.svg-img {
  display: block;
  object-fit: contain;
  width: 32px;
  height: 32px;
  background-image: url('google.svg');
  background-size: cover;
  /* or contain, depending on your needs */
  background-repeat: no-repeat;
  background-position: center;
}

.about-button-wrapper {
  position: relative;
}

.about-button-wrapper .column-content {
  position: absolute;
  right: 10%;
  top: 50%;
}

.path-pools .pool-card-wrapper .image {
  cursor: zoom-in;
}

.pool-catalog-slider {
  align-items: center;
  background: rgba(0, 0, 0, 0.86);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 48px 112px;
  position: fixed;
  z-index: 100000;
}

.pool-catalog-slider.is-open {
  display: flex;
}

.pool-catalog-slider-open {
  overflow: hidden;
}

.pool-catalog-slider__dialog {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 2.5fr) minmax(320px, 0.95fr);
  max-width: 1500px;
  position: relative;
  width: 100%;
}

.pool-catalog-slider__media {
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.pool-catalog-slider__media img {
  aspect-ratio: 16 / 9;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.pool-catalog-slider__info {
  background: rgba(8, 17, 39, 0.94);
  border: 1px solid rgba(103, 126, 186, 0.42);
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  color: #eef7ff;
  padding: 38px 34px;
}

.pool-catalog-slider__eyebrow {
  color: #18b8d2;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.pool-catalog-slider__info h2 {
  color: #fff;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 300;
  line-height: 1.12;
  margin: 0 0 10px;
}

.pool-catalog-slider__meta {
  color: rgba(202, 192, 245, 0.86);
  font-size: 18px;
  margin-bottom: 24px;
}

.pool-catalog-slider__divider {
  background: linear-gradient(90deg, #7c3aed, transparent);
  height: 2px;
  margin-bottom: 24px;
  width: 54px;
}

.pool-catalog-slider__body,
.pool-catalog-slider__body p {
  color: rgba(226, 232, 240, 0.78);
  font-size: 17px;
  line-height: 1.7;
}

.pool-catalog-slider__body strong {
  color: #67e8f9;
}

.pool-catalog-slider__link {
  align-items: center;
  background: #169b78;
  border-radius: 12px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0.08em;
  margin-top: 26px;
  min-height: 44px;
  padding: 10px 18px;
  text-transform: uppercase;
}

.pool-catalog-slider__link:hover {
  background: #10b981;
  color: #fff;
}

.pool-catalog-slider__close,
.pool-catalog-slider__arrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: center;
  position: absolute;
  z-index: 2;
}

.pool-catalog-slider__close {
  font-size: 22px;
  height: 44px;
  right: 28px;
  top: 24px;
  width: 44px;
}

.pool-catalog-slider__arrow {
  font-size: 54px;
  height: 64px;
  line-height: 1;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
}

.pool-catalog-slider__arrow--prev {
  left: 28px;
}

.pool-catalog-slider__arrow--next {
  right: 28px;
}

.pool-catalog-slider__close:hover,
.pool-catalog-slider__arrow:hover {
  background: rgba(255, 255, 255, 0.22);
}

.pool-catalog-slider__dots {
  bottom: -38px;
  display: flex;
  gap: 10px;
  justify-content: center;
  left: 0;
  position: absolute;
  right: 0;
}

.pool-catalog-slider__dots button {
  background: rgba(255, 255, 255, 0.38);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 12px;
  padding: 0;
  width: 12px;
}

.pool-catalog-slider__dots button.is-active {
  background: #18b8d2;
  width: 42px;
}

@media (max-width: 991px) {
  .pool-catalog-slider {
    align-items: flex-start;
    overflow-y: auto;
    padding: 72px 18px 64px;
  }

  .pool-catalog-slider__dialog {
    gap: 18px;
    grid-template-columns: 1fr;
  }

  .pool-catalog-slider__info {
    border-radius: 18px;
    padding: 24px 20px;
  }

  .pool-catalog-slider__arrow {
    height: 48px;
    top: 32%;
    width: 48px;
  }

  .pool-catalog-slider__arrow--prev {
    left: 10px;
  }

  .pool-catalog-slider__arrow--next {
    right: 10px;
  }
}

.socials-footer {
  display: flex;
  padding-inline: 15px;
}

@media (max-width: 767px) {
  .started-banner .column-inner {
    padding-inline: 15px;
  }

  .started-banner .style-v2 {
    margin-top: 0;
  }

  .started-banner .button-action {
    text-align: center;
  }

  .custom-space-style .col-md-4 {
    padding-inline: 25px !important;
  }

  .pool-custom-para {
    padding-inline: 15px;
    text-align: center;
  }

  .pool-custom-para .left-section {
    margin-left: 0 !important;
  }

  .partner-wrapper {
    padding-inline: 15px;
  }

  .row-first-level .col-md-12 .heading-action {
    margin-top: 40px !important;
    text-align: center;
  }

  .column-content-inner pre p {
    padding-left: 0 !important;
  }

  .bg-size-cover .bb-inner {
    padding-top: 0 !important;
  }

  .our-show-case .bb-inner {
    padding-top: 0 !important;
  }

  .about-button-wrapper .column-content {
    position: absolute;
    right: 22%;
    top: 70%;
  }

  .blog-content .top-section .title {
    font-size: 1.45rem;
    ;
  }

  #slide-15-layer-2 {
    font-size: 12px !important;
  }

  #block-mainpagecontent>div>div>div.node__content.clearfix>div>div:nth-child(3)>div {
    padding-top: 0 !important;
  }

  .geolocation-map-container.js-show {
    width: 100% !important;
  }

}

body.dark-mode .gavias-builder--content,
body.dark-mode .gbb-row-wrapper {
  background-color: unset !important;
}

/*
 * Housecall Pro paints its entire closed cross-origin iframe white. Clip only
 * the 110px-wide closed state around the launcher; the rule stops matching
 * when Housecall Pro expands the container for an open conversation.
 */
body.dark-mode #proChatIframeContainer[style*="width:110px"] {
  height: 150px !important;
  overflow: hidden !important;
  clip-path: circle(27px at 64px 106px);
}

/* Areas We Serve: colors only for dark mode; preserve the existing design. */
body.dark-mode.frontpage #block-linoor-subtheme-areasweserve .panel-group.skin-dark,
body.dark-mode.frontpage #block-linoor-subtheme-areasweserve .panel-group.skin-dark .panel,
body.dark-mode.frontpage #block-linoor-subtheme-areasweserve .panel-group.skin-dark .panel-heading,
body.dark-mode.frontpage #block-linoor-subtheme-areasweserve .panel-group.skin-dark .panel-title,
body.dark-mode.frontpage #block-linoor-subtheme-areasweserve .panel-group.skin-dark .panel-body {
  border-color: #30474d !important;
  color: #c7d7da !important;
  background-color: #14272d !important;
}

body.dark-mode.frontpage #block-linoor-subtheme-areasweserve .panel-group.skin-dark .panel-title a,
body.dark-mode.frontpage #block-linoor-subtheme-areasweserve .panel-group.skin-dark .panel-body,
body.dark-mode.frontpage #block-linoor-subtheme-areasweserve .panel-group.skin-dark .panel-body p,
body.dark-mode.frontpage #block-linoor-subtheme-areasweserve .panel-group.skin-dark .panel-body li {
  color: #eef7f8 !important;
}

body.dark-mode.frontpage #block-linoor-subtheme-areasweserve .panel-group.skin-dark .panel-title a::after {
  color: #377DFF !important;
}

.gsc-accordion .panel-group.skin-dark .panel .panel-title {
  padding: 20px;
}

#block-mainpagecontent>div>article>div>div.post-content>div.node__content.clearfix>div.gavias-builder--content>div:nth-child(1)>div {
  display: none;
}

.portfolio-single .field--type-text-with-summary {
  padding-block: 50px;
}

.node--type-portfolio #content .container.container-bg{
  max-width: unset !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  margin-right: 0 !important;
  margin-left: 0 !important;

  .item-image {
    a {
      img {
        height: 500px;
        object-fit: cover;
      }
    }
  }
  #block-mainpagecontent .row{
display: block !important;
  }
#block-mainpagecontent .row > .col-md-6:first-child {

  max-width: 100% !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}
#block-mainpagecontent .row > .col-md-6:nth-child(2) {
  padding-top: 50px;
}



  .post-content,
  #block-linoor-subtheme-areasweserve,
  .col-md-6 {
    max-width: 1200px;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
  }
}
  .node--type-portfolio .breadcrumbs  {
    display: none;
  }

 .service-partner .gsc-image-content.skin-v2 .image {
  height: 150px;
 }

/* About Us: prevent adjacent builder rows from creating oversized gaps. */
.path-about-us .gavias-builder--content > .gbb-row-wrapper > .bb-inner:not(.remove_padding):not(.remove_padding_top) {
  padding-top: 70px !important;
}

.path-about-us .gavias-builder--content > .gbb-row-wrapper > .bb-inner:not(.remove_padding):not(.remove_padding_bottom) {
  padding-bottom: 70px !important;
}

@media (max-width: 767px) {
  .path-about-us .gavias-builder--content > .gbb-row-wrapper > .bb-inner:not(.remove_padding):not(.remove_padding_top) {
    padding-top: 45px !important;
  }

  .path-about-us .gavias-builder--content > .gbb-row-wrapper > .bb-inner:not(.remove_padding):not(.remove_padding_bottom) {
    padding-bottom: 45px !important;
  }
  #block-mainpagecontent .node--type-portfolio .row > .col-md-6:nth-child(2) {
     margin-inline: 15px !important;
}
}

/*
 * Contact Us: preserve the existing title and content styling while using one
 * continuous page background instead of a separate breadcrumb hero image.
 */
body.contact-us-page .gva-body-page {
  background:
    linear-gradient(rgb(6 22 29 / 68%), rgb(6 22 29 / 68%)),
    url("../form-bg-image.jpg") center center / cover no-repeat fixed;
}

body.contact-us-page .breadcrumbs,
body.contact-us-page .breadcrumb-content-inner,
body.contact-us-page .breadcrumb-content-inner .breadcrumb-style,
body.contact-us-page .main.main-page,
body.contact-us-page #content,
body.contact-us-page #content > .container-bg,
body.contact-us-page #content .content-main-inner,
body.contact-us-page #content .main-content,
body.contact-us-page #content .main-content-inner,
body.contact-us-page #content .content-main {
  background-color: transparent !important;
  background-image: none !important;
}

/* Remove only the old hero overlay and parallax image; keep the page title. */
body.contact-us-page .breadcrumb-style > div[style*="position: absolute"],
body.contact-us-page .breadcrumb-content-inner .gva-parallax-inner {
  display: none !important;
}

body.contact-us-page .main.main-page {
  min-height: 100vh;
}

/* Center row wrappers only on the Contact Us page. */
body.contact-us-page .row.row-wrapper {
  justify-content: center !important;
}
body.contact-us-page .text-align-center{
  color: #fff !important;
}

/* Navigation owns the background before the sticky header is active. */
.block-content .gva-navigation {
  background: rgba(0, 0, 0, 0.5) !important;
}

/* Once sticky, the header owns the background and its inner nav is clear. */
header.header-default .header-main.gv-sticky-menu.stuck {
  background: rgba(34, 36, 41, 0.9) !important;
}

header.header-default .header-main.gv-sticky-menu.stuck .gva-navigation,
header.header-default .header-main.gv-sticky-menu.stuck .block-content .gva-navigation {
  background: transparent !important;
}

/* Fiberglass Pool Project: isolated four-card partner presentation. */
article[data-history-node-id="24"] .fiberglass-partners {
  box-sizing: border-box;
  margin: clamp(56px, 7vw, 90px) auto;
  padding-inline: 20px;
}

article[data-history-node-id="24"] .fiberglass-partners__title {
  color: #222429;
  font-family: "BioRhyme", Georgia, serif;
  font-size: clamp(34px, 3vw, 58px);
  line-height: 1.15;
  margin: 0 0 clamp(34px, 4vw, 54px);
  text-align: center;
  text-transform: uppercase;
}

article[data-history-node-id="24"] .fiberglass-partners__grid {
  display: grid !important;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

article[data-history-node-id="24"] .fiberglass-partners__card {
  background: #f4f5f8;
  border: 1px solid #e8ebef;
  border-radius: 24px;
  min-width: 0;
  overflow: hidden;
  padding: 24px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

article[data-history-node-id="24"] .fiberglass-partners__card:hover {
  border-color: rgba(55, 125, 255, 0.35);
  box-shadow: 0 18px 40px rgba(34, 36, 41, 0.12);
  transform: translateY(-4px);
}

article[data-history-node-id="24"] .fiberglass-partners__card .paragraph,
article[data-history-node-id="24"] .fiberglass-partners__card .image-with-link,
article[data-history-node-id="24"] .fiberglass-partners__card a {
  height: 100%;
}

article[data-history-node-id="24"] .fiberglass-partners__card a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

article[data-history-node-id="24"] .fiberglass-partners__card .partner-logo {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-height: 300px;
  padding: 10px;
}

article[data-history-node-id="24"] .fiberglass-partners__card .partner-logo img {
  display: block;
  height: 260px;
  margin: 0;
  max-width: 100%;
  object-fit: contain;
  opacity: 1;
  visibility: visible;
  width: 100%;
}

article[data-history-node-id="24"] .fiberglass-partners__card .partner-name {
  align-items: center;
  background: #fff;
  color: #222429;
  display: flex;
  font-family: "BioRhyme", Georgia, serif;
  font-size: 16px;
  font-weight: 800;
  justify-content: center;
  line-height: 1.25;
  min-height: 72px;
  padding: 16px;
  text-align: center;
  text-transform: uppercase;
  width: 100%;
}

body.dark-mode article[data-history-node-id="24"] .fiberglass-partners__title {
  color: #fff;
}

body.dark-mode article[data-history-node-id="24"] .fiberglass-partners__card {
  background: #182328;
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode article[data-history-node-id="24"] .fiberglass-partners__card .partner-name {
  background: #222e34;
  color: #fff;
}

/* Terms and Privacy pages: shared full-width image banner and readable copy. */
@media (min-width: 992px) {
  body.legal-static-page header.header-default {
    background: transparent !important;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 99;
  }

  body.legal-static-page header.header-default .header-main {
    background: transparent !important;
    border-bottom-color: rgba(255, 255, 255, 0.16);
  }
}

body.legal-static-page .main.main-page,
body.legal-static-page #content {
  padding-top: 0;
}

:is(
  article[data-history-node-id="739"],
  article[data-history-node-id="740"]
) .field--name-field-static-page {
  color: #4f5d65;
  font-size: 17px;
  line-height: 1.8;
  margin: 0 auto;
  padding: 0 24px 80px;
}

:is(
  article[data-history-node-id="739"],
  article[data-history-node-id="740"]
) .field--name-field-static-page > h1:first-child {
  align-items: center;
  background:
    linear-gradient(rgba(7, 30, 38, 0.56), rgba(7, 30, 38, 0.68)),
    url("../our-pools-image.jpg") center 55% / cover no-repeat;
  box-sizing: border-box;
  color: #fff !important;
  display: flex;
  font-family: "BioRhyme", Georgia, serif;
  font-size: clamp(38px, 5vw, 72px);
  height: 500px;
  min-height: 0;
  justify-content: center;
  left: 50%;
  line-height: 1.15;
  margin: 0 0 64px -50vw;
  padding: 24px;
  position: relative;
  text-align: center;
  text-shadow: 0 4px 22px rgba(0, 0, 0, 0.65);
  width: 100vw;
}
body.legal-static-page.has-relocated-legal-tabs :is(
  article[data-history-node-id="739"],
  article[data-history-node-id="740"]
) .field--name-field-static-page > h1:first-child {
  margin-bottom: 0;
}

body.legal-static-page .field--name-field-static-page > .block-local-tasks-block {
  margin: 0 auto 64px;
  max-width: 980px;
  padding-top: 18px;
  width: 100%;
}

:is(
  article[data-history-node-id="739"],
  article[data-history-node-id="740"]
) .field--name-field-static-page > .legal-page__updated {
  color: #77858d;
  font-size: 15px;
  margin: 0 0 48px;
}

:is(
  article[data-history-node-id="739"],
  article[data-history-node-id="740"]
) .field--name-field-static-page h2 {
  color: #222429;
  font-family: "BioRhyme", Georgia, serif;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.3;
  margin: 48px 0 16px;
}

:is(
  article[data-history-node-id="739"],
  article[data-history-node-id="740"]
) .field--name-field-static-page li {
  margin-bottom: 9px;
}

:is(
  article[data-history-node-id="739"],
  article[data-history-node-id="740"]
) .field--name-field-static-page a {
  color: #377DFF;
  font-weight: 700;
}

body.dark-mode :is(
  article[data-history-node-id="739"],
  article[data-history-node-id="740"]
) .field--name-field-static-page {
  color: #c8d1d5;
}

body.dark-mode :is(
  article[data-history-node-id="739"],
  article[data-history-node-id="740"]
) .field--name-field-static-page h2 {
  color: #fff;
}

@media (max-width: 767px) {
  :is(
    article[data-history-node-id="739"],
    article[data-history-node-id="740"]
  ) .field--name-field-static-page {
    font-size: 16px;
    padding-inline: 20px;
  }

  :is(
    article[data-history-node-id="739"],
    article[data-history-node-id="740"]
  ) .field--name-field-static-page > h1:first-child {
    margin-bottom: 44px;
    margin-top: 0;
    min-height: 340px;
    padding-top: 80px;
  }
}

/* Homepage Latest News: two pinned-first blog cards. */
.home-latest-news {
  background: #f4f7fb;
  color: #222429;
  padding: 88px 40px;
}

.home-latest-news__container {
  margin: 0 auto;
  max-width: 1400px;
}

.home-latest-news__heading {
  align-items: end;
  display: grid;
  gap: 6px 24px;
  grid-template-columns: 1fr auto;
  margin-bottom: 38px;
}

.home-latest-news__eyebrow {
  color: #377DFF;
  font-family: "BioRhyme", Georgia, serif;
  font-size: 14px;
  font-weight: 800;
  grid-column: 1;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.home-latest-news__heading h2 {
  color: #222429;
  font-family: "BioRhyme", Georgia, serif;
  font-size: clamp(34px, 4vw, 54px);
  grid-column: 1;
  line-height: 1.15;
  margin: 0;
}

.home-latest-news__view-all {
  color: #222429;
  font-weight: 800;
  grid-column: 2;
  grid-row: 1 / span 2;
  text-decoration: none;
}

.home-latest-news__view-all:hover,
.home-latest-news__view-all:focus-visible {
  color: #377DFF;
}

.home-latest-news__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-latest-news__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(16, 49, 58, 0.08);
  display: grid;
  grid-template-columns: minmax(220px, 44%) 1fr;
  min-width: 0;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.home-latest-news__card:hover {
  box-shadow: 0 20px 42px rgba(16, 49, 58, 0.15);
  transform: translateY(-5px);
}

.home-latest-news__image {
  background: #dfe7ee;
  min-height: 330px;
  overflow: hidden;
}

.home-latest-news__image img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  width: 100%;
}

.home-latest-news__card:hover .home-latest-news__image img {
  transform: scale(1.04);
}

.home-latest-news__content {
  align-items: start;
  display: flex;
  flex-direction: column;
  padding: 32px;
}

.home-latest-news__category {
  color: #377DFF;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.home-latest-news__content h3 {
  font-family: "BioRhyme", Georgia, serif;
  font-size: clamp(20px, 1.7vw, 27px);
  line-height: 1.25;
  margin: 0 0 16px;
}

.home-latest-news__content h3 a {
  color: #222429;
  text-decoration: none;
}

.home-latest-news__content h3 a:hover,
.home-latest-news__content h3 a:focus-visible {
  color: #377DFF;
}

.home-latest-news__summary {
  color: #686a6f;
  display: -webkit-box;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 24px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-latest-news__read-more {
  color: #377DFF;
  font-weight: 800;
  margin-top: auto;
  text-decoration: none;
}

.home-latest-news__read-more:hover,
.home-latest-news__read-more:focus-visible {
  color: #222429;
}

body.dark-mode .home-latest-news {
  background: #10191e;
  color: #fff;
}

body.dark-mode .home-latest-news__heading h2,
body.dark-mode .home-latest-news__view-all,
body.dark-mode .home-latest-news__content h3 a {
  color: #fff !important;
}

body.dark-mode .home-latest-news__card {
  background: #182328;
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .home-latest-news__summary {
  color: #c8d1d5;
}

@media (max-width: 1100px) {
  .home-latest-news__card {
    grid-template-columns: 1fr;
  }

  .home-latest-news__image {
    min-height: 270px;
  }
}

@media (max-width: 767px) {
  .home-latest-news {
    padding: 64px 20px;
  }

  .home-latest-news__heading {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .home-latest-news__view-all {
    grid-column: 1;
    grid-row: auto;
    margin-top: 12px;
  }

  .home-latest-news__grid {
    grid-template-columns: 1fr;
  }

  .home-latest-news__content {
    padding: 26px 24px 30px;
  }
}

/* Compact horizontal news-list presentation. */
.home-latest-news {
  background: #f8fafc;
  padding: 82px 40px;
}

.home-latest-news__container {
  max-width: 1120px;
}

.home-latest-news__heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.home-latest-news__eyebrow {
  display: none;
}

.home-latest-news__heading h2 {
  font-size: clamp(30px, 3.2vw, 43px);
  line-height: 1.2;
}

.home-latest-news__view-all {
  border-bottom: 2px solid #377DFF;
  font-size: 14px;
  grid-column: auto;
  grid-row: auto;
  padding-bottom: 3px;
}

.home-latest-news__grid {
  gap: 18px;
  grid-template-columns: 1fr;
}

.home-latest-news__card {
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(16, 49, 58, 0.06);
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 190px;
}

.home-latest-news__card:hover {
  border-color: #377DFF;
  box-shadow: 0 14px 32px rgba(55, 125, 255, 0.14);
  transform: translateY(-3px);
}

.home-latest-news__image {
  min-height: 190px;
}

.home-latest-news__content {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 25px 30px;
}

.home-latest-news__category {
  font-size: 12px;
  grid-column: 2;
  grid-row: 3;
  letter-spacing: 0.04em;
  margin: 0 0 2px 24px;
  white-space: nowrap;
}

.home-latest-news__content h3 {
  font-size: clamp(20px, 2vw, 27px);
  grid-column: 1 / -1;
  line-height: 1.3;
  margin: 0 0 13px;
}

.home-latest-news__summary {
  align-self: start;
  grid-column: 1 / -1;
  line-height: 1.55;
  margin: 0 0 18px;
  -webkit-line-clamp: 2;
}

.home-latest-news__read-more {
  grid-column: 1;
  grid-row: 3;
  margin: 0;
}

body.dark-mode .home-latest-news {
  background: #10191e;
}

body.dark-mode .home-latest-news__card:hover {
  border-color: #377DFF;
  box-shadow: 0 14px 34px rgba(55, 125, 255, 0.18);
}

@media (max-width: 767px) {
  .home-latest-news {
    padding: 60px 20px;
  }

  .home-latest-news__heading {
    align-items: flex-start;
    gap: 14px;
  }

  .home-latest-news__view-all {
    margin-top: 8px;
  }

  .home-latest-news__card {
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 160px;
  }

  .home-latest-news__image {
    min-height: 160px;
  }

  .home-latest-news__content {
    display: flex;
    padding: 18px;
  }

  .home-latest-news__content h3 {
    font-size: 17px;
    margin-bottom: 12px;
  }

  .home-latest-news__summary {
    display: none;
  }

  .home-latest-news__category {
    font-size: 11px;
    margin: 0 0 8px;
    order: -1;
    white-space: normal;
  }

  .home-latest-news__read-more {
    font-size: 13px;
    margin-top: auto;
  }
}

@media (max-width: 480px) {
  .home-latest-news__heading {
    display: block;
  }

  .home-latest-news__view-all {
    display: inline-block;
  }

  .home-latest-news__card {
    grid-template-columns: 115px minmax(0, 1fr);
    min-height: 145px;
  }

  .home-latest-news__image {
    min-height: 145px;
  }

  .home-latest-news__content {
    padding: 15px;
  }

  .home-latest-news__content h3 {
    font-size: 15px;
    line-height: 1.35;
  }
}

/* Service page heroes: visible banner blocks with centered page titles. */
#block-linoor-subtheme-concretepoolbanner {
  --service-hero-title: "Concrete Pools";
}

#block-linoor-subtheme-fiberglasspoolsbanner {
  --service-hero-title: "Fiberglass Pools";
}

#block-linoor-subtheme-outdoorrenovationsbanner {
  --service-hero-title: "Outdoor Renovations";
}

#block-linoor-subtheme-poolhottubrepairbanner {
  --service-hero-title: "Pool & Hot Tub Repair";
}

:is(
  #block-linoor-subtheme-concretepoolbanner,
  #block-linoor-subtheme-fiberglasspoolsbanner,
  #block-linoor-subtheme-outdoorrenovationsbanner,
  #block-linoor-subtheme-poolhottubrepairbanner
) .custom-image_services {
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(16, 49, 58, 0.16);
  isolation: isolate;
  margin: 0 auto 64px;
  max-width: 1400px;
  overflow: hidden;
  position: relative;
}

:is(
  #block-linoor-subtheme-concretepoolbanner,
  #block-linoor-subtheme-fiberglasspoolsbanner,
  #block-linoor-subtheme-outdoorrenovationsbanner,
  #block-linoor-subtheme-poolhottubrepairbanner
) .custom-image_services::after {
  background: linear-gradient(
    180deg,
    rgba(7, 30, 38, 0.12) 0%,
    rgba(7, 30, 38, 0.46) 50%,
    rgba(7, 30, 38, 0.18) 100%
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

:is(
  #block-linoor-subtheme-concretepoolbanner,
  #block-linoor-subtheme-fiberglasspoolsbanner,
  #block-linoor-subtheme-outdoorrenovationsbanner,
  #block-linoor-subtheme-poolhottubrepairbanner
) .custom-image_services::before {
  color: #fff;
  content: var(--service-hero-title);
  font-family: "BioRhyme", Georgia, serif;
  font-size: clamp(36px, 5vw, 72px);
  left: 50%;
  line-height: 1.15;
  max-width: 90%;
  position: absolute;
  text-align: center;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.7);
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  z-index: 2;
}

:is(
  #block-linoor-subtheme-concretepoolbanner,
  #block-linoor-subtheme-fiberglasspoolsbanner,
  #block-linoor-subtheme-outdoorrenovationsbanner,
  #block-linoor-subtheme-poolhottubrepairbanner
) .custom-image_services img {
  aspect-ratio: 16 / 7;
  display: block;
  float: none;
  height: clamp(430px, 42vw, 620px);
  margin: 0;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

:is(
  article[data-history-node-id="106"],
  article[data-history-node-id="107"],
  article[data-history-node-id="109"],
  article[data-history-node-id="111"]
) .post-content > .post-title {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 1023px) {
  :is(
    #block-linoor-subtheme-concretepoolbanner,
    #block-linoor-subtheme-fiberglasspoolsbanner,
    #block-linoor-subtheme-outdoorrenovationsbanner,
    #block-linoor-subtheme-poolhottubrepairbanner
  ) .custom-image_services {
    border-radius: 14px;
    margin: 0 20px 48px;
  }

  :is(
    #block-linoor-subtheme-concretepoolbanner,
    #block-linoor-subtheme-fiberglasspoolsbanner,
    #block-linoor-subtheme-outdoorrenovationsbanner,
    #block-linoor-subtheme-poolhottubrepairbanner
  ) .custom-image_services img {
    aspect-ratio: 16 / 9;
    height: clamp(380px, 55vw, 520px);
  }
}

@media (max-width: 600px) {
  :is(
    #block-linoor-subtheme-concretepoolbanner,
    #block-linoor-subtheme-fiberglasspoolsbanner,
    #block-linoor-subtheme-outdoorrenovationsbanner,
    #block-linoor-subtheme-poolhottubrepairbanner
  ) .custom-image_services {
    border-radius: 10px;
    margin: 0 14px 36px;
  }

  :is(
    #block-linoor-subtheme-concretepoolbanner,
    #block-linoor-subtheme-fiberglasspoolsbanner,
    #block-linoor-subtheme-outdoorrenovationsbanner,
    #block-linoor-subtheme-poolhottubrepairbanner
  ) .custom-image_services img {
    aspect-ratio: auto;
    height: 380px;
    min-height: 0;
  }
}

/* Project detail heroes: responsive image treatment and centered page title. */
article[data-history-node-id="19"] {
  --project-hero-title: "Backyard Renovation Project";
}

article[data-history-node-id="22"] {
  --project-hero-title: "Spa Project";
}

article[data-history-node-id="24"] {
  --project-hero-title: "Fiberglass Pool Project";
}

article[data-history-node-id="29"] {
  --project-hero-title: "Concrete Pool Project";
}

:is(
  article[data-history-node-id="19"],
  article[data-history-node-id="22"],
  article[data-history-node-id="24"],
  article[data-history-node-id="29"]
) .post-thumbnail {
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(16, 49, 58, 0.16);
  isolation: isolate;
  margin: 48px auto 64px;
  max-width: 1320px;
  overflow: hidden;
  position: relative;
}

:is(
  article[data-history-node-id="19"],
  article[data-history-node-id="22"],
  article[data-history-node-id="24"],
  article[data-history-node-id="29"]
) .post-thumbnail::after {
  background: linear-gradient(
    180deg,
    rgba(7, 30, 38, 0.12) 0%,
    rgba(7, 30, 38, 0.4) 50%,
    rgba(7, 30, 38, 0.18) 100%
  );
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

:is(
  article[data-history-node-id="19"],
  article[data-history-node-id="22"],
  article[data-history-node-id="24"],
  article[data-history-node-id="29"]
) .post-thumbnail::before {
  color: #fff;
  content: var(--project-hero-title);
  font-family: "BioRhyme", Georgia, serif;
  font-size: clamp(32px, 4.5vw, 68px);
  left: 50%;
  line-height: 1.15;
  max-width: 90%;
  position: absolute;
  text-align: center;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.65);
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  z-index: 3;
}

/* article[data-history-node-id="24"] .post-thumbnail .portfolio-images,
article[data-history-node-id="24"] .post-thumbnail .owl-stage-outer,
article[data-history-node-id="24"] .post-thumbnail .owl-stage,
article[data-history-node-id="24"] .post-thumbnail .owl-item,
article[data-history-node-id="24"] .post-thumbnail .item {
  height: clamp(440px, 47vw, 640px);
} */

:is(
  article[data-history-node-id="19"],
  article[data-history-node-id="22"],
  article[data-history-node-id="24"],
  article[data-history-node-id="29"]
) .post-thumbnail img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

:is(
  article[data-history-node-id="19"],
  article[data-history-node-id="22"],
  article[data-history-node-id="24"],
  article[data-history-node-id="29"]
) .post-thumbnail .owl-nav,
:is(
  article[data-history-node-id="19"],
  article[data-history-node-id="22"],
  article[data-history-node-id="24"],
  article[data-history-node-id="29"]
) .post-thumbnail .owl-dots {
  z-index: 4;
}

:is(
  article[data-history-node-id="19"],
  article[data-history-node-id="22"],
  article[data-history-node-id="24"],
  article[data-history-node-id="29"]
) .post-thumbnail .owl-nav > div {
  background: #fff !important;
  border-color: #fff !important;
  color: #222429 !important;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

:is(
  article[data-history-node-id="19"],
  article[data-history-node-id="22"],
  article[data-history-node-id="24"],
  article[data-history-node-id="29"]
) .post-thumbnail .owl-nav > div i {
  color: #222429 !important;
  transition: color 0.25s ease;
}

:is(
  article[data-history-node-id="19"],
  article[data-history-node-id="22"],
  article[data-history-node-id="24"],
  article[data-history-node-id="29"]
) .post-thumbnail .owl-nav > div:hover,
:is(
  article[data-history-node-id="19"],
  article[data-history-node-id="22"],
  article[data-history-node-id="24"],
  article[data-history-node-id="29"]
) .post-thumbnail .owl-nav > div:focus-visible {
  background: #377DFF !important;
  border-color: #377DFF !important;
  color: #fff !important;
}

:is(
  article[data-history-node-id="19"],
  article[data-history-node-id="22"],
  article[data-history-node-id="24"],
  article[data-history-node-id="29"]
) .post-thumbnail .owl-nav > div:hover i,
:is(
  article[data-history-node-id="19"],
  article[data-history-node-id="22"],
  article[data-history-node-id="24"],
  article[data-history-node-id="29"]
) .post-thumbnail .owl-nav > div:focus-visible i {
  color: #fff !important;
}

@media (max-width: 1023px) {
  :is(
    article[data-history-node-id="19"],
    article[data-history-node-id="22"],
    article[data-history-node-id="24"],
    article[data-history-node-id="29"]
  ) .post-thumbnail {
    border-radius: 14px;
    margin: 32px 20px 48px;
  }

  :is(
    article[data-history-node-id="19"],
    article[data-history-node-id="22"],
    article[data-history-node-id="24"],
    article[data-history-node-id="29"]
  ) .post-thumbnail :is(.portfolio-images, .owl-stage-outer, .owl-stage, .owl-item, .item) {
    height: clamp(360px, 55vw, 520px);
  }

  article[data-history-node-id="24"] .fiberglass-partners__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  :is(
    article[data-history-node-id="19"],
    article[data-history-node-id="22"],
    article[data-history-node-id="24"],
    article[data-history-node-id="29"]
  ) .post-thumbnail {
    border-radius: 10px;
    margin: 20px 14px 36px;
  }

  :is(
    article[data-history-node-id="19"],
    article[data-history-node-id="22"],
    article[data-history-node-id="24"],
    article[data-history-node-id="29"]
  ) .post-thumbnail :is(.portfolio-images, .owl-stage-outer, .owl-stage, .owl-item, .item) {
    height: 360px;
  }

  article[data-history-node-id="24"] .fiberglass-partners {
    margin-block: 48px;
  }

  article[data-history-node-id="24"] .fiberglass-partners__grid {
    grid-template-columns: 1fr;
  }

  article[data-history-node-id="24"] .fiberglass-partners__card .partner-logo {
    min-height: 230px;
  }

  article[data-history-node-id="24"] .fiberglass-partners__card .partner-logo img {
    height: 210px;
  }
}

.field--name-field-static-page{
  padding-block: 100px 50px;
}

/* Latest News: polished stacked cards on phones. */
@media (max-width: 767px) {
  body.frontpage .home-latest-news {
    background: #f6f9fc;
    padding: 52px 16px 76px;
  }

  body.frontpage .home-latest-news__heading {
    align-items: end;
    display: grid;
    gap: 10px 16px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 24px;
  }

  body.frontpage .home-latest-news__heading h2 {
    font-size: clamp(32px, 10vw, 42px);
    grid-column: 1;
    line-height: 1.1;
    margin: 0;
  }

  body.frontpage .home-latest-news__view-all {
    align-self: center;
    font-size: 13px;
    grid-column: 2;
    margin: 0;
    padding-bottom: 3px;
    white-space: nowrap;
  }

  body.frontpage .home-latest-news__grid {
    gap: 20px;
  }

  body.frontpage .home-latest-news__card {
    border-radius: 18px;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    overflow: hidden;
  }

  body.frontpage .home-latest-news__card:hover {
    transform: none;
  }

  body.frontpage .home-latest-news__image {
    aspect-ratio: 16 / 9;
    display: block;
    min-height: 0;
    width: 100%;
  }

  body.frontpage .home-latest-news__image img {
    height: 100%;
    object-fit: cover;
    width: 100%;
  }

  body.frontpage .home-latest-news__content {
    align-items: flex-start;
    display: flex;
    min-height: 0;
    padding: 22px 20px 24px;
  }

  body.frontpage .home-latest-news__category {
    font-size: 11px;
    letter-spacing: 0.08em;
    margin: 0 0 9px;
    order: initial;
    white-space: normal;
  }

  body.frontpage .home-latest-news__content h3 {
    font-size: clamp(20px, 6vw, 25px);
    line-height: 1.3;
    margin: 0 0 18px;
  }

  body.frontpage .home-latest-news__summary {
    display: none;
  }

  body.frontpage .home-latest-news__read-more {
    align-items: center;
    display: inline-flex;
    font-size: 14px;
    gap: 5px;
    margin: 0;
    min-height: 44px;
    padding: 8px 0;
  }
}

@media (max-width: 380px) {
  body.frontpage .home-latest-news__heading {
    align-items: start;
    grid-template-columns: 1fr;
  }

  body.frontpage .home-latest-news__view-all {
    grid-column: 1;
    justify-self: start;
  }
}

/* Fiberglass partners: always show two compact cards per mobile row. */
@media (max-width: 767px) {
  body.frontpage .partner-wrapper {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.frontpage .partner-wrapper .row.row-wrapper {
    align-items: start !important;
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.frontpage .partner-wrapper .row.row-wrapper > .gsc-column {
    border-radius: 14px;
    height: auto !important;
    max-width: none !important;
    min-width: 0;
    padding: 10px !important;
    width: auto !important;
  }

  body.frontpage .partner-wrapper .gsc-column:not(.unique-child) .column-inner,
  body.frontpage .partner-wrapper .gsc-column:not(.unique-child) .column-content,
  body.frontpage .partner-wrapper .gsc-column:not(.unique-child) .column-content-inner,
  body.frontpage .partner-wrapper .gsc-column:not(.unique-child) .gsc-image-content {
    flex: none !important;
    height: auto !important;
    min-height: 0 !important;
  }

  body.frontpage .partner-wrapper .row.row-wrapper > .gsc-column.unique-child {
    grid-column: 1 / -1;
    padding: 0 4px 18px !important;
  }

  body.frontpage .partner-wrapper .gsc-heading .title {
    font-size: clamp(28px, 8vw, 38px) !important;
    line-height: 1.18 !important;
  }

  body.frontpage .partner-wrapper .gsc-image-content .image,
  body.frontpage .partner-wrapper .fiberglass-partners__card .partner-logo {
    flex: 0 0 120px !important;
    height: 120px !important;
    min-height: 120px !important;
    padding: 6px !important;
  }

  body.frontpage .partner-wrapper .gsc-image-content.skin-v2 .image img,
  body.frontpage .partner-wrapper .fiberglass-partners__card .partner-logo img {
    height: 92px !important;
    max-height: 92px !important;
    object-fit: contain !important;
    width: 100% !important;
  }

  body.frontpage .partner-wrapper .gsc-image-content.skin-v2 .box-content {
    flex: 0 0 auto !important;
    height: 48px !important;
    margin-top: 0 !important;
    min-height: 48px !important;
    padding: 6px 4px !important;
  }

  body.frontpage .partner-wrapper .gsc-image-content .title a {
    font-size: 11px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
}

/* Hide Google Reviews on the mobile homepage without leaving an empty row. */
@media (max-width: 767px) {
  body.frontpage .gbb-row-wrapper:has(.review-carosel),
  body.frontpage .review-carosel {
    /*display: none !important;*/
  }
}

/* Mobile homepage image section only: remove the tinted row background. */
@media (max-width: 767px) {
  body.frontpage .gbb-row-wrapper[data-onepage-title="Image Content"],
  body.frontpage .gbb-row-wrapper[data-onepage-title="Image Content"] > .bb-inner {
    background-color: transparent !important;
    background-image: none !important;
  }
}
