.tj-blog-section .sec-heading,
.tj-service-section .sec-heading {
  max-width: unset;
}
.primary-industries {
  background-color: var(--tj-color-theme-primary);
}
.primary-industries .sec-heading.style-4 .sub-title {
  border-color: var(--tj-color-theme-white);
}
.primary-industries .service-item.style-4:hover {
  background-color: var(--secondary-light);
}
.service-item.style-4:hover .desc a,
.service-item.style-4:hover .title a {
  color: #000;
}
.service-item.style-4:hover .desc,
.service-item.style-4:hover .title {
  color: #000;
}
.blog-item .blog-content .categories {
  background-color: var(--tj-color-theme-primary);
  border-color: var(--tj-color-theme-primary);
  color: var(--tj-color-common-white);
  padding: 6px;
  border-radius: 5px;
}
.primary-industries .sec-title span {
  color: var(--secondary, #7baf35) !important;
}

/* Primary Industries Cards - Centered & Small Icon (Original Icon Background Preserved) */
.primary-industries .service-item.style-4 {
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: all 0.3s ease-in-out;
}

.primary-industries .service-item.style-4 .service-icon {
  width: 65px;
  height: 65px;
  font-size: 26px;
  margin: 0 auto 24px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.primary-industries .service-item.style-4 .service-icon i {
  font-size: 26px;
  line-height: 1;
}

.primary-industries .service-item.style-4 .title {
  max-width: 100%;
  margin-bottom: 14px;
}

.primary-industries .service-item.style-4 .desc {
  margin-bottom: 0;
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
  .primary-industries .service-item.style-4 .service-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
    margin: 0 auto 20px auto;
  }
  .primary-industries .service-item.style-4 .service-icon i {
    font-size: 24px;
  }
}

@media only screen and (max-width: 767px) {
  .primary-industries .service-item.style-4 .service-icon {
    width: 55px;
    height: 55px;
    font-size: 22px;
    margin: 0 auto 18px auto;
  }
  .primary-industries .service-item.style-4 .service-icon i {
    font-size: 22px;
  }
}
.blog-item .blog-thumb::before {
  background-color: unset !important;
}
.tj-blog-section .h8-blog-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.tj-blog-section .h8-blog-wrapper .blog-item.style-2 {
  position: relative;
  background-color: var(--tj-color-common-white, #ffffff);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  overflow: hidden;
  scroll-margin-top: 130px;
}

@media (max-width: 991px) {
  .tj-blog-section .h8-blog-wrapper .blog-item.style-2 {
    scroll-margin-top: 90px;
  }
}

.tj-blog-section .h8-blog-wrapper .blog-item.style-2:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(37, 80, 154, 0.12);
  border-color: rgba(37, 80, 154, 0.2);
}

.tj-blog-section .h8-blog-wrapper .blog-item.style-2.industry-highlight {
  animation: industryCardHighlight 2.4s ease-out forwards;
}

@keyframes industryCardHighlight {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 80, 154, 0);
    border-color: rgba(37, 80, 154, 0.2);
  }
  25% {
    box-shadow: 0 0 0 6px rgba(37, 80, 154, 0.28), 0 16px 36px rgba(37, 80, 154, 0.2);
    border-color: var(--tj-color-theme-primary, #25509a);
  }
  100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
  }
}

/* DESKTOP (>= 992px): Image stretches to 100% full height of the card, zero blank space */
@media (min-width: 992px) {
  .tj-blog-section .h8-blog-wrapper .blog-item.style-2 {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    padding: 18px !important;
  }

  .tj-blog-section .h8-blog-wrapper .blog-item.style-2 .blog-thumb {
    width: 42% !important;
    flex: 0 0 42% !important;
    height: auto !important;
    min-height: 100% !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    position: relative !important;
    display: flex !important;
    margin: 0 !important;
    align-self: stretch !important;
  }

  .tj-blog-section .h8-blog-wrapper .blog-item.style-2 .blog-thumb img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 12px !important;
    transition: transform 0.5s ease !important;
  }

  .tj-blog-section .h8-blog-wrapper .blog-item.style-2:hover .blog-thumb img {
    transform: scale(1.05) !important;
  }

  .tj-blog-section .h8-blog-wrapper .blog-item.style-2 .blog-content {
    width: 58% !important;
    flex: 0 0 58% !important;
    padding: 14px 20px 14px 32px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    background-color: transparent !important;
  }
}

/* TABLET (768px - 991px): Clean stacked card with balanced image ratio and zero blank space */
@media (max-width: 991px) {
  .tj-blog-section .h8-blog-wrapper .blog-item.style-2 {
    display: flex !important;
    flex-direction: column !important;
    padding: 16px !important;
  }

  .tj-blog-section .h8-blog-wrapper .blog-item.style-2 .blog-thumb {
    width: 100% !important;
    flex: 0 0 auto !important;
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    position: relative !important;
    margin: 0 0 20px 0 !important;
  }

  .tj-blog-section .h8-blog-wrapper .blog-item.style-2 .blog-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 10px !important;
  }

  .tj-blog-section .h8-blog-wrapper .blog-item.style-2 .blog-content {
    width: 100% !important;
    padding: 0 6px 10px 6px !important;
    background-color: transparent !important;
  }
}

/* MOBILE (<= 575px): Compact layout, optimized image height, zero blank space */
@media (max-width: 575px) {
  .tj-blog-section .h8-blog-wrapper {
    gap: 20px;
  }

  .tj-blog-section .h8-blog-wrapper .blog-item.style-2 {
    padding: 12px !important;
    border-radius: 12px !important;
  }

  .tj-blog-section .h8-blog-wrapper .blog-item.style-2 .blog-thumb {
    height: 230px !important;
    min-height: 230px !important;
    max-height: 230px !important;
    margin-bottom: 16px !important;
    border-radius: 8px !important;
  }

  .tj-blog-section .h8-blog-wrapper .blog-item.style-2 .blog-thumb img {
    border-radius: 8px !important;
  }

  .tj-blog-section .h8-blog-wrapper .blog-item.style-2 .blog-content {
    padding: 0 2px 6px 2px !important;
  }

  .tj-blog-section .h8-blog-wrapper .blog-item.style-2 .blog-content .title {
    font-size: 20px !important;
    line-height: 1.35 !important;
    margin-bottom: 12px !important;
  }

  .tj-blog-section .h8-blog-wrapper .blog-item.style-2 .blog-content .desc {
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 14px !important;
  }

  .tj-blog-section
    .h8-blog-wrapper
    .blog-item.style-2
    .blog-content
    .list-items {
    margin-top: 14px !important;
  }

  .tj-blog-section
    .h8-blog-wrapper
    .blog-item.style-2
    .blog-content
    .list-items
    li {
    font-size: 13.5px !important;
    line-height: 1.45 !important;
  }
}
