.section-top-heading .line-section__line {
  top: calc(var(--content-padding)* 1.1);
}

.card-img {
  margin-bottom: 20px;
}

.f-project-item h3 {
  font-size: 2rem;
  padding-bottom: 1.5rem !important;
}

.f-project-item .post_title .link-icon {
  margin-bottom: 1.5rem !important;
}

.sec-heading {
  margin-bottom: 1.875rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

@media only screen and (min-width: 768px) {
  .sec-heading {
    flex-wrap: nowrap;
  }
}

.sec-heading h1, .sec-heading h2, .sec-heading h3, .sec-heading h4, .sec-heading h5, .sec-heading h6 {
  font-weight: 400;
  text-transform: capitalize;
  font-size: 1.875rem;
  margin-bottom: 0;
}

.sec-heading.has-border {
  border-bottom: 1px solid #000;
  padding-bottom: 1.875rem;
}


.ssc-circle, .ssc-head-line, .ssc-hr, .ssc-line, .ssc-square {
  background-color: rgba(80, 80, 80, 0.1) !important;
}

.ssc-square {
  height: 22.6875rem !important;
  margin-bottom: 20px;
}

.is-invisible {
  display: none;
  opacity: 0;
}

.footer-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 4rem;
  flex-wrap: wrap;
}

@media only screen and (min-width: 768px) {
  .footer-cta-group {
    flex-wrap: nowrap;
  }
}

.bottom-bar .btn:hover {
  background-color: var(--bg-black-button-highlight);
  color: var(--color-black) !important;
  border-color: var(--bg-black-button-highlight);
}

.ssc-tag {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 20px;
  margin-bottom: 20px;
}

.ssc-head-line.is-tag {
  height: 40px;
  width: 30%;
  border-radius: 100px;
}

.ssc-head-line.w-50 {
  width: 50%;
}
.ssc-head-line.w-70 {
  width: 70%;
  border-radius: 0;
  height: 45px;
}
.ssc-head-line.w-30 {
  width: 30%;
}

.ssc-head-line.is-btn {
  width: 45px;
  height: 45px;
  border-radius: 50px;
}

.pagination-wrapper {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.pagination-wrapper .pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
}

.pagination-link,
.pagination-next,
.pagination-prev {
  border: 1px solid  var(--bg-grey-text);
  border-color: var(--bg-grey-text);
  color: var(--bg-grey-text) !important;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  display: flex;
  text-decoration: none;
  background: #F6F6EB;
  transition: all .3s ease;
}

.pagination-next svg path,
.pagination-prev svg path {
  fill: var(--bg-grey-text);
}

.pagination-next:hover svg path,
.pagination-prev:hover svg path {
  fill: var(--bg-white-icon-highlight);
}

.pagination-link:hover,
.pagination-next:hover,
.pagination-prev:hover {
  background-color: var(--bg-grey-text);
  border-color: var(--bg-grey-text);
  color: var(--bg-white-icon-highlight) !important;
}

/** aspect ratio **/
.aspect-ratio {
  position: relative;
  overflow: hidden;
}
.aspect-ratio:after {
  content: "";
  display: block;
  padding-bottom: 100%;
}
.aspect-ratio-100 {
  width: 100%;
  height: 100%;
}
.aspect-ratio-36:after {
  padding-bottom: 36.036036036%;
}
.aspect-ratio-57:after {
  padding-bottom: 63%;
}
.aspect-ratio-55:after {
  padding-bottom: 55%;
}
.aspect-ratio-66:after {
  padding-bottom: 66.6666666667%;
}
.aspect-ratio-94:after {
  padding-bottom: 94.5%;
}

.aspect-ratio-100:after {
  padding-bottom: 100%;
}

.aspect-ratio-item {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover !important;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  position: absolute;
}
.aspect-ratio-item.o-f-p {
  object-position: 0 0;
}
.aspect-ratio-item.o-f-t-c {
  object-position: 50% 0;
}

/**** nice select ****/ 

.nice-select.select-custom {
  width: 220px !important;
  max-width: 220px !important;
  background-color: #F6F6EB !important;
  color: #000;
  border: 1px solid #1A1A1A !important;
  padding: 0 1rem !important;
  border-radius: 3rem !important;
  float: none !important;
  height: 2.625rem !important;
  font-size: 1.1rem !important;
  text-align: left !important;
}

@media only screen and (min-width: 768px) {
  .nice-select.select-custom {
    width: 170px !important;
    max-width: 170px !important;
  }
}

.nice-select.select-custom .list {
  background-color: #1A1A1A !important;
  border-radius: 1.25rem !important;
  width: 100%;
  padding: 1.125rem 0;
  margin-top: 1.25rem;
}
.nice-select.select-custom .list li {
  text-align: left;
  font-size: 1rem;
  color: #fff;
  padding-left: 1.125rem;
  padding-right: 1.125rem;
}
.nice-select.select-custom .list li:hover, .nice-select.select-custom .list li.selected, .nice-select.select-custom .list li.focus {
  background-color:  var(--bg-grey-text);;
}
.nice-select.select-custom:after {
  right: 1rem !important;
  transform-origin: initial;
  transform: translateY(calc(-50% + 0.2rem)) rotate(0deg) skew(0deg);
  transition-duration: 0.35s;
  background-image: url("../../assets/img/svg/arrow-down-regular.svg");
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center center;
  width: 1.125rem;
  height: 1.25rem;
  border: 0 !important;
}
.nice-select.select-custom.open:after {
  transform: translateY(calc(-50% + 0.375rem)) rotate(180deg) skew(0deg);
  z-index: 10;
}
@media only screen and (min-width: 768px) {
  .nice-select.select-custom {
    width: 15.9375rem !important;
    max-width: 15.9375rem;
  }

  .projects-section .grid-container-full {
    padding-left: 120px;
  }
}

@media only screen and (max-width: 1220px) {
  .projects-section .post_title h3.h4 {
    font-size: 22px;
  }
}

.no-pl {
  padding-left: var(--padding-full);
}

.form-wrap {
  max-width: 1020px;
  margin: 0 auto;
}

/* Hide the default file input */
.form-wrap .gform-field-label {
  display: none;
}

.form-wrap .gform_fileupload_rules {
  display: none;
}

.form-wrap input,
.form-wrap textarea {
  border-top: 0;
  border-left: 0;
  border-right: 0;
  padding-left: 0;
}

.form-wrap input:focus,
.form-wrap textarea:focus {
  background: transparent !important;
  color: #fff !important;
}

.form-wrapper h3 {
  margin-bottom: 30px;
}

.form-wrapper {
  padding-bottom: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  height: 100%;
  gap: 5rem;
  justify-content: space-between;
}

.content-form p {
  font-size: 22px;
  line-height: 110%;
}

@media only screen and (max-width: 768px) {
  .content-form p {
    font-size: 16px;
    line-height: normal;
  }

  .form-wrapper {
    gap: 3rem;
    padding-top: 3rem;
  }

  .form-wrapper h3 {
    font-size: 30px;
    margin-bottom: 15px;
  }
}
 

/* Style the custom upload button */
.file-upload-button input[type="file"]::-webkit-file-upload-button {
  display: none;
}

/* For Firefox, hide the "Choose File" button */
.file-upload-button input[type="file"] {
  -moz-appearance: none;
}

/* Hide the "No file chosen" text that appears by default */
.file-upload-button input[type="file"] {
  color: transparent; /* Hide the default text like "No file chosen" */
}

/* Optionally: Position the file input off-screen so it's still functional */
.file-upload-button input[type="file"] {
  position: absolute;
  top: -9999px;
}

.file-upload-button {
  display: flex;
  align-items: flex-end;
}

.file-upload-button .gform-field-label {
  display: block;
  background-color: transparent;
  border: solid 1px var(--color-white);
  color: var(--color-white);
  display: inline-block;
  line-height: 1;
  text-align: left;
  text-decoration: none;
  width: 100%;
  font-weight: 400;
  line-height: 1;
  font-size: clamp(16px, 1.042vw, 20px);
  padding: clamp(9px, 1.343vh, 14.5px) clamp(15px, 2.083vw, 22px);
  border-radius: clamp(15px, 1.302vw, 25px);
  cursor: pointer;
  transition: color 0.25s ease-out, background-color 0.25s ease-out, border-color 0.25s ease-out;
  position: relative;
}

.file-upload-button .gform-field-label:after {
	content: '\f093';
	font-weight: 400;
	font-family: 'Font Awesome 6 Pro';
  position: absolute;
  right: 22px;
}

.file-upload-button .gform-field-label:hover,
.file-upload-button .gform-field-label:focus {
  background-color: var(--bg-black-button-highlight);
  color: var(--bg-black-button-highlight-text);
}


@media only screen and (max-width: 768px) { 

	.gfield--width-five-twelfths {
		width: 50% !important;
	}

  section.contact-us-page {
    padding-left: 0 !important;
  }
}

@media only screen and (max-width: 690px) { 

  .gfield--type-textarea.gfield--width-half {
    width: 100% !important;
  }

	.gfield--width-five-twelfths {
		width: 100% !important;
	}
}

.gform_confirmation_wrapper {
  padding: 20px;
  background-color: var(--color-highlight-400);
  color: var(--color-black);
  border-radius: 2px;
}

.close-btn {
  font-size: 1.8rem;
  text-decoration: none;
}

.close-btn .fa-xmark {
  margin-top: 3px;
}

.close-btn .fa-xmark:before {
  color: var(--color-white);
}

.close-btn:hover .fa-xmark:before {
  color: var(--color-black);
}

section.popup {
  padding-left: 0 !important;
}

@media only screen and (max-width: 690px) { 
  .close-btn .link-icon {
    height: 35px;
    width: 35px;
  }

  .close-btn {
    font-size: 1.2rem;
  }
}

.legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.content-sticky-section.background-grey .line-section__square {
  display: none;
}

.content-sticky-section.custom-sticky.background-grey h3 {
  font-size: 70px;
  font-weight: 400;
  line-height: 100%;
}

.content-sticky-section.background-grey .content-sticky__content-item {
  padding-bottom: 0;
}

.content-sticky-section.background-grey .content-sticky__image .content-sticky__image-line {
  border-color: #000 !important;
}

.content-sticky-section ul {
  list-style: none;
}

/* Remove default list styling and padding */
.content-sticky-section ul {
  list-style: none;
  padding-left: 0;
  margin-top: 2rem;
}

.content-sticky-section ul li {
  position: relative;
  padding-left: 1.75rem; /* Space for the checkmark */

  font-size: 22px;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-black);
}

.content-sticky-section ul li:last-child {
  border-bottom: 0;
}

/* Insert Font Awesome 6 checkmark */
.content-sticky-section ul li::before {
  content: "\f00c"; /* Unicode for fa-check */
  font-family: "Font Awesome 6 Pro";
  font-weight: 900; /* Required for solid icons in FA6 */
  position: absolute;
  left: 0;
  top: 1.5rem;
  color: var(--color-black); /* Checkmark color (change as needed) */
}

/* --------------------------------------------------
   Section Container & Background
   -------------------------------------------------- */
   .grid-listing {
    position: relative;
    overflow: hidden;
  }
  
  .services-grid-section {
    background-color: var(--color-highlight-400); /* Muted yellow/olive background */
    color: #1A1A1A;
    padding-left: 0;
  }
  
  /* Flex layout setup for grid */
  .services-grid {
    display: flex;
    flex-wrap: wrap;
    position: relative;
  }
  
  /* Optional Overlay Line */
  .abs-grid-line {
    position: absolute;
    height: 108%;
    background: rgba(0, 0, 0, 0.4);
    width: 1px;
    inset: 0;
    display: block;
    z-index: 99;
    margin-left: auto;
    margin-right: auto;
    top: -8%;
  }
  
  /* --------------------------------------------------
     BASE / MOBILE LAYOUT (< 1024px)
     -------------------------------------------------- */
  .services-grid .grid-card {
    width: 100%;
    padding: 2.5rem 1.5rem; /* Balanced mobile padding */
    border-right: none !important; /* Stacked layout removes side border */
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 2rem;
  }
  
  /* Keep border on second to last item on mobile stack, only remove on absolute last */
  .services-grid .grid-card:last-child {
    border-bottom: none;
  }
  
  /* Title Typography */
  .grid-card__title {
    font-family: inherit;
    font-size: 2.5rem; /* Fluid title size for smaller screens */
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #1A1A1A;
  }
  
  /* --------------------------------------------------
     WYSIWYG List & Checkmark Styling (Font Awesome 6 Pro)
     -------------------------------------------------- */
  .grid-card__content ul {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
  }
  
  .grid-card__content ul li {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 1.125rem;
    line-height: 1.4;
    border-bottom: 1px solid rgba(0, 0, 0, 0.35); /* Underline for each item */
  }
  
  .grid-card__content ul li:last-child {
    border-bottom: 0;
  }
  
  /* Font Awesome 6 Pro Checkmark Pseudo-Element */
  .grid-card__content ul li::before {
    content: "\f00c"; /* FA Check Unicode */
    font-family: "Font Awesome 6 Pro";
    font-weight: 900; /* Solid style */
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-size: 1.125rem;
    color: #1A1A1A;
  }
  
  /* Helper Classes */
  .small-type {
    margin-left: 10px;
  }
  
  .small-type .link-icon {
    height: 40px;
    width: 40px;
  }
  
  /* --------------------------------------------------
     DESKTOP / TABLET LANDSCAPE (>= 1024px / 64em)
     -------------------------------------------------- */
  @media screen and (min-width: 64em) {
    .services-grid .grid-card {
      width: 50%;
      padding: 3rem 4rem 3rem 0; /* Left padding reset by default */
      /* border-right: 1px solid rgba(0, 0, 0, 0.4) !important; */
      gap: 3rem;
    }
  
    /* Padding-left applied to even-indexed cards (2nd column items) */
    .services-grid .grid-card:nth-child(even) {
      padding-left: 4rem;
    }
  
    /* Remove right border on 2nd column items */
    .services-grid .grid-card:nth-child(2n) {
      border-right: none !important;
    }
  
    /* Remove bottom border on last row items */
    .services-grid .grid-card:nth-last-child(-n+2) {
      border-bottom: none;
    }
  
    /* Full Desktop Typography Sizes */
    .grid-card__title {
      font-size: 45px;
      margin-bottom: 2rem;
    }
  
    .grid-card__content ul li {
      font-size: 1.375rem;
      padding-left: 2.25rem;
    }
  
    .grid-card__content ul li::before {
      font-size: 1.375rem;
    }
  }

  /* 1280px and up (Large Desktop) */
  @media screen and (min-width: 80em) { /* 1280px */
    .grid-card__title {
      font-size: 65px;
    }
  }


  @media screen and (max-width: 1024px) {
    .abs-grid-line {
      display: none !important;
    }
  }


  /* --------------------------------------------------
   Base / Mobile Layout (< 768px)
   -------------------------------------------------- */
.panel-listing-item {
  display: flex;
  flex-direction: column; /* Stack count and title vertically on mobile */
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 24px 0px 28px 0px;
  border-top: 2px solid var(--color-black);
}

.panel-listing-item:nth-child(1) {
  border-top: 0;
}

.panel-count {
  font-size: 42px; /* Fluid size for small screens */
  font-weight: 400;
  line-height: 1;
  color: var(--color-black);
}

.pw-panel-title {
  font-size: 22px;
  color: var(--color-black);
  line-height: 1.25em;
}

/* --------------------------------------------------
   Tablet Layout (768px to 1023px)
   -------------------------------------------------- */
@media screen and (min-width: 48em) { /* 768px */
  .panel-listing-item {
    flex-direction: row; /* Switch back to side-by-side row */
    align-items: center;
    gap: 1.5rem;
    padding: 30px 20px 35px 0px;
  }

  .panel-count {
    font-size: 56px;
  }

  .pw-panel-title {
    font-size: 28px;
  }
}

/* --------------------------------------------------
   Desktop Layout (1024px and up)
   -------------------------------------------------- */
@media screen and (min-width: 64em) { /* 1024px */
  .panel-listing-item {
    gap: 2rem;
    padding: 35px 30px 43px 0px;
  }

  .panel-count {
    font-size: 70px;
  }

  .pw-panel-title {
    font-size: 35px;
  }
}

  .background-white.is-dark h2 {
    color: var(--color-black);
  }

  .background-white.is-dark .line-section__square {
    background-color: var(--color-black);
  }

  .background-white.is-dark .line-section__line {
    border-color: var(--color-black);
  }

  .header-content h5 {
    margin-bottom: 0;
  }

  .header-content p {
    margin-top: 5px;
  }

  .custom-header-wrap {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 6rem;
    flex-direction: column;
  }

  .simple-content-content h2,
  .simple-content-content h3,
  .simple-content-content h4,
  .simple-content-content h5 {
    margin-bottom: 5px;
  }

  .simple-content-content p {
    margin-top: 10px;
  }

  .optional-image {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
  }

  .content-sticky__image-line.no-line {
    border: 0 !important;
  }

  .custom-header {
    padding-top: 0;
  }

  .section-top-heading .top-heading {
   padding-top: calc(var(--content-padding)* 1.1);
  }

  .button-group {
    display: flex;
    align-items: start;
    justify-content: start;
    gap: 20px;
    margin-top: 4rem;
    flex-wrap: wrap;
  }
  
  @media only screen and (min-width: 768px) {
    .button-group {
      flex-wrap: nowrap;
    }
  }

  .button-group > .btn--border-white:hover {
    background-color: var(--bg-black-button-highlight) !important;
    color: var(--color-black) !important;
    border-color: var(--bg-black-button-highlight) !important;
  }


  .diagram-container {
    max-width: 1280px;
    margin: 0 auto;
  }