/* Slicer: make video fill the slide */
.tp-portfolio-slicer-area .swiper-slicer-image {
  display: block;
  object-fit: cover;
}

/* Slide text base */
.slide-text {
  width: 800px;
  margin-left: 130px;
}

.custom-top-blog-spacing {
  padding-top: 320px;
}

/* Tablet (<= 1200px) */
@media (max-width: 1200px) {
  .slide-text {
    width: 600px;
    margin-left: 60px;
  }
}

/* Small tablet / large mobile (<= 992px) */
@media (max-width: 992px) {
  .slide-text {
    width: auto;
    margin-left: 24px;
    margin-right: 24px;
  }
}

/* Mobile (<= 576px) */
@media (max-width: 576px) {
  .slide-text {
    width: auto;
    margin-left: 16px;
    margin-right: 16px;
  }
}

/* Color change when pin overlaps dark header */
#pin1.pin--dark,
#pin1.pin--dark a {
  color: #000 !important;
}

/* Service background video */
.service-bg.service-img-1 {
  position: relative;
  overflow: hidden;
}

.service-bg.service-img-1 .service-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#top-hero-header {
  background-image: url("/assets/img/whitepattern.jpg");
  background-repeat: repeat-x;
}

.top-hero-result-header {
  background-repeat: repeat-x;
  background-image: url("/assets/img/forestpattern_small.jpg");
}

.tp-hero-cst-spacing {
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}

.tp-portfolio-wd-item video {
  border-radius: 20px;
  width: 100%;
}

.tp-portfolio-wd-content {
  bottom: 50%;
}

.al-footer-seo-black-bg {
  background: #02110c;
}

.al-footer-seo-bg::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 38.9%;
  height: 100%;
  content: "";
  background-color: #02110c;
  background-image: url("/assets/img/forestpattern.png");
  background-repeat: repeat;
}

.padding-bottom-0 {
  padding-bottom: 0px !important;
}

.tp-btn-2 {
  background: var(--tp-common-white-2);
}

.tp-btn-group .tp-btn-circle {
  background: var(--tp-common-white-2);
}

/* Stack category content vertically */
.tp-portfolio-wd-category {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  /* prevent children from stretching full width */
}

.tp-portfolio-wd-category p {
  margin: 0;
  color: var(--tp-common-white);
  letter-spacing: 0.4px;
  font-family: var(--tp-ff-p) !important;
}

.tp-portfolio-wd-category span {
  display: inline-block;
  /* shrink to fit text */
  font-family: var(--tp-ff-p) !important;
  border: none !important;
  background: #fff;
  width: auto !important;
  align-self: flex-start;
  color: var(--tp-common-black);
  /* ensure no stretch in flex */
}

/* .tp-portfolio-wd-category span {
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  border-radius: 20px;
  padding: 7px 12px;
  transition: 0.3s;
  letter-spacing: 0.4px;
  display: inline-block;
  text-transform: uppercase;
  color: var(--tp-common-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--tp-ff-heading);
} 
  .tp-portfolio-wd-category {
  position: absolute;
  top: 45px;
  left: 50px;
  z-index: 2;
}
  
  */
.tp-portfolio-wd-item img {
  height: 800px;
  width: 100%;
  object-fit: cover;
}

.tp-primary-bg {
  background-color: #15302B;
}

.tp-light-gray {
  background-color: #f5f5f5;
}

.tp-service-block-area,
.tp-funfact-area {
  overflow: hidden;
}

.tp-service-block {
  padding-top: 130px;
  padding-bottom: 70px;
}

.tp-funfact-green-wrap {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

.tp-funfact-img img {
  width: 100% !important;
  height: 100vh !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 0 !important;
}

.tp-funfact-title {
  color: #fff !important;
}

/* Image block - responsive image fill */
.imageblock {
  display: flex;
  align-items: stretch;
  padding: 0;
  min-height: 100%;
}

.imageblock img {
  width: 100%;
  height: 100vh;
  min-height: 500px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Content block - proper alignment */
.contentblock {
  display: flex;
  padding: 120px 40px;
}

.contentblock .tp-funfact-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 80%;
}

.contentblock .tp-content-bottom {
  margin-top: auto;
}

/* Dynamic panel width - calculated based on number of panels */
.tp-funfact-panel-wrap {
  width: calc(100% * var(--panel-count, 3)) !important;
}

.tp-funfact-panel-wrap .tp-funfact-panel {
  width: calc(100% / var(--panel-count, 3)) !important;
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .imageblock img {
    min-height: 400px;
  }

  .contentblock {
    padding: 40px 30px;
  }
}

@media (max-width: 575.98px) {
  .imageblock img {
    min-height: 300px;
  }

  .contentblock {
    padding: 30px 20px;
  }
}