@import url("https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900&family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

/* TrueBlue header over blog Hero — same overlay bar as live, stays while scrolling */
body.tb-header-page:has(.hero.section) header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 0;
  overflow: visible;
  background: transparent;
  z-index: 99999;
}

body.tb-header-page:has(.hero.section) .header-area {
  position: relative;
  width: 100%;
  background: transparent !important;
  z-index: 99999;
}

body.tb-header-page:has(.hero.section) .header-area .main-header-area,
body.tb-header-page:has(.hero.section) .header-area .main-header-area.sticky {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  transform: none !important;
  animation: none !important;
}

/* TrueBlue header on pages with no Hero — stay pinned like live site */
body.tb-header-page:not(:has(.hero.section)) header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--tb-header-grad, linear-gradient(135deg, #174a94, color-mix(in srgb, #022352db, #667eea 30%)));
  z-index: 99999;
}

body.tb-header-page:not(:has(.hero.section)) .header-area {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent !important;
  z-index: 99999;
}

body.tb-header-page:not(:has(.hero.section)) .header-area .main-header-area,
body.tb-header-page:not(:has(.hero.section)) .header-area .main-header-area.sticky {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  background: var(--tb-header-grad, linear-gradient(135deg, #174a94, color-mix(in srgb, #022352db, #667eea 30%)));
  padding: 30px 0 !important;
  box-shadow: 0 8px 24px rgba(2, 35, 82, 0.18);
  transform: none !important;
  animation: none !important;
}

body.tb-header-page:not(:has(.hero.section)) .logo-img img {
  width: 80% !important;
  max-width: 180px;
  max-height: 36px !important;
  height: auto !important;
  object-fit: contain;
}

body.tb-header-page:not(:has(.hero.section)) .header-area .main-header-area .main-menu ul li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-family: var(--tb-nav, "Lato", sans-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 8px 2px;
  margin: 0 12px;
}

body.tb-header-page:not(:has(.hero.section)) .header-area .main-header-area .main-menu ul > li > a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background-color: #25b88f;
  visibility: hidden;
  opacity: 1;
  transform: none;
  transition: width 0.3s ease-in-out;
}

body.tb-header-page:not(:has(.hero.section)) .header-area .main-header-area .main-menu ul > li > a:hover::before,
body.tb-header-page:not(:has(.hero.section)) .header-area .main-header-area .main-menu ul > li:hover > a::before,
body.tb-header-page:not(:has(.hero.section)) .header-area .main-header-area .main-menu ul > li > a.active::before {
  visibility: visible;
  width: 100%;
}

body.tb-header-page:not(:has(.hero.section)) .header-area .main-header-area .main-menu ul li > a:hover,
body.tb-header-page:not(:has(.hero.section)) .header-area .main-header-area .main-menu ul li > a.active {
  color: var(--tb-teal-2, #25b88f);
}

body.tb-header-page:not(:has(.hero.section)) .header-area .main-header-area .main-menu ul li .submenu {
  background: #fff;
  overflow: visible !important;
  z-index: 100000;
}

body.tb-header-page:not(:has(.hero.section)) .header-area .main-header-area .main-menu ul li .submenu li a {
  color: #3c4049 !important;
  font-size: 15px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  padding: 10px 20px !important;
}

body.tb-header-page:not(:has(.hero.section)) .header-area .main-header-area .main-menu ul li .submenu li a:hover,
body.tb-header-page:not(:has(.hero.section)) .header-area .main-header-area .main-menu ul li .submenu .active {
  color: #20b38b !important;
}

body.tb-header-page:not(:has(.hero.section)) .header-area .get_in_tauch a.header-cta {
  color: var(--tb-teal, #1db78d);
  border-bottom: 1px solid var(--tb-teal, #1db78d);
}

body.tb-header-page:not(:has(.hero.section)) .header-area .get_in_tauch a.header-cta:hover {
  color: #fff;
  border-bottom-color: #fff;
}

body.tb-header-page:not(:has(.hero.section)) .slicknav_btn .slicknav_icon-bar {
  background-color: #fff !important;
}

/* Blog listing + detail only — do not use these rules on other pages */

.tb-blog-list.featured-services.section,
.featured-services.blog-detail {
  padding: 100px 0;
  background: #fff;
  font-family: "Roboto", system-ui, sans-serif;
}

.tb-blog-list .section-title h2,
.tb-blog-list h2,
.tb-blog-list h4,
.tb-blog-list .section-heading,
.featured-services.blog-detail h2,
.featured-services.blog-detail h4,
.featured-services.blog-detail .section-heading {
  font-family: "Montserrat", sans-serif;
  color: #112344;
}

.tb-blog-list .featured-service-main,
.featured-services.blog-detail .featured-service-main {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tb-blog-list .service-image-wrapper,
.featured-services.blog-detail .service-image-wrapper {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
}

.tb-blog-list .service-image-wrapper img,
.featured-services.blog-detail .service-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tb-blog-list .service-image-wrapper:hover img,
.featured-services.blog-detail .service-image-wrapper:hover img {
  transform: scale(1.02);
}

.tb-blog-list .service-overlay,
.featured-services.blog-detail .service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, #345292, transparent 20%) 0%,
    transparent 70%
  );
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 40px;
  pointer-events: none;
}

.tb-blog-list .service-badge,
.featured-services.blog-detail .service-badge {
  background: #fff;
  padding: 16px 24px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 25px color-mix(in srgb, #112344, transparent 90%);
}

.tb-blog-list .service-badge i,
.featured-services.blog-detail .service-badge i {
  font-size: 20px;
  color: #345292;
}

.tb-blog-list .service-badge span,
.featured-services.blog-detail .service-badge span {
  font-weight: 500;
  color: #112344;
  font-size: 14px;
}

.tb-blog-list .service-details,
.featured-services.blog-detail .service-details {
  padding: 40px 0 0;
}

.tb-blog-list .service-details h2,
.featured-services.blog-detail .service-details h2 {
  font-size: 32px;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 24px;
  color: var(--tb-navy);
}

.tb-blog-list .service-details h2 a {
  color: inherit;
  text-decoration: none;
}

.tb-blog-list .service-details p,
.featured-services.blog-detail .post-content-body,
.featured-services.blog-detail .post-content-body p {
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: color-mix(in srgb, var(--tb-text), transparent 15%);
  margin-bottom: 32px;
}

.featured-services.blog-detail .post-content-body a {
  color: #25b88f;
  font-weight: 500;
  text-decoration: none;
}

.tb-blog-list .services-sidebar,
.featured-services.blog-detail .services-sidebar {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-left: 60px;
}

.tb-blog-list .services-sidebar h2.section-heading,
.featured-services.blog-detail .services-sidebar h2.section-heading {
  font-family: "Montserrat", sans-serif !important;
  font-size: 32px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.3;
  letter-spacing: 0;
  margin-bottom: 1.5rem;
  color: #112344;
  white-space: nowrap;
}

.tb-blog-list .service-item,
.featured-services.blog-detail .service-item {
  padding: 32px 0;
  margin-top: 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--tb-text), transparent 92%);
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.tb-blog-list .service-item:last-child,
.featured-services.blog-detail .service-item:last-child {
  border-bottom: none;
}

.tb-blog-list .st,
.featured-services.blog-detail .st {
  width: 28%;
  flex-shrink: 0;
  overflow: hidden;
}

.tb-blog-list .st img,
.featured-services.blog-detail .st img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10%;
}

.tb-blog-list .service-info h4,
.featured-services.blog-detail .service-info h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #112344;
}

.tb-blog-list .service-info h4 a,
.featured-services.blog-detail .service-info h4 a {
  color: #345292;
  text-decoration: none !important;
  font-weight: 400;
  transition: color 0.3s ease;
}

.tb-blog-list .service-info h4 a:hover,
.featured-services.blog-detail .service-info h4 a:hover {
  color: color-mix(in srgb, #345292, transparent 25%);
}

.tb-blog-list .service-link,
.featured-services.blog-detail .service-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: #25b88f;
  text-decoration: none !important;
  border-bottom: none;
  padding-bottom: 0;
  transition: color 0.3s ease;
}

.tb-blog-list .service-link:hover,
.featured-services.blog-detail .service-link:hover {
  color: #112344;
  border-bottom: none;
}

.tb-blog-list .service-info p,
.featured-services.blog-detail .service-info p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: color-mix(in srgb, var(--tb-text), transparent 30%);
  margin-bottom: 12px;
}

.featured-services.blog-detail .post-content-body .blog-html-embed img {
  max-width: 100%;
  height: auto;
}

.featured-services.blog-detail .post-content-body .blog-html-embed > p,
.featured-services.blog-detail .post-content-body .blog-html-embed .wp-block-paragraph {
  margin: 0 0 32px;
}

.featured-services.blog-detail .post-content-body .blog-html-embed ul,
.featured-services.blog-detail .post-content-body .blog-html-embed .wp-block-list {
  margin: 0 0 32px;
  padding-left: 1.2rem;
}

/* Let production custom HTML embeds (e.g. .tb-rpm-engagement) own their typography/spacing */
.featured-services.blog-detail .post-content-body .blog-html-embed:has(.tb-rpm-engagement) {
  margin: 0;
}

.featured-services.blog-detail .post-content-body .blog-html-embed .tb-rpm-engagement,
.featured-services.blog-detail .post-content-body .blog-html-embed .tb-rpm-engagement p,
.featured-services.blog-detail .post-content-body .blog-html-embed .tb-rpm-engagement li,
.featured-services.blog-detail .post-content-body .blog-html-embed .tb-rpm-engagement a,
.featured-services.blog-detail .post-content-body .blog-html-embed .tb-rpm-engagement h2,
.featured-services.blog-detail .post-content-body .blog-html-embed .tb-rpm-engagement h3,
.featured-services.blog-detail .post-content-body .blog-html-embed .tb-rpm-engagement h4,
.featured-services.blog-detail .post-content-body .blog-html-embed .tb-rpm-engagement summary {
  font-family: "Poppins", Arial, sans-serif;
  margin-bottom: 0;
}

.featured-services.blog-detail .post-content-body .blog-html-embed .tb-rpm-engagement a {
  color: #174a94;
  font-weight: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 991px) {
  .tb-blog-list.featured-services.section,
  .featured-services.blog-detail {
    padding: 60px 0;
  }

  .tb-blog-list .services-sidebar,
  .featured-services.blog-detail .services-sidebar {
    padding-left: 0;
    margin-top: 40px;
  }

  .tb-blog-list .service-image-wrapper,
  .featured-services.blog-detail .service-image-wrapper {
    height: 280px;
  }

  .tb-blog-list .service-overlay,
  .featured-services.blog-detail .service-overlay {
    padding: 24px;
  }

  .tb-blog-list .service-details,
  .featured-services.blog-detail .service-details {
    padding-top: 24px;
  }

  .tb-blog-list .service-details h2,
  .featured-services.blog-detail .service-details h2 {
    font-size: 24px;
  }

  .tb-blog-list .services-sidebar .section-heading,
  .featured-services.blog-detail .services-sidebar .section-heading {
    font-size: 24px;
    white-space: normal;
  }

  .tb-blog-list .service-item,
  .featured-services.blog-detail .service-item {
    padding: 24px 0;
  }
}

.tb-listing-pagination {
  margin-top: 2.5rem;
}

.tb-listing-pagination .page-link {
  color: #345292;
  border-color: color-mix(in srgb, #345292 25%, transparent);
}

.tb-listing-pagination .page-item.active .page-link {
  background-color: #345292;
  border-color: #345292;
}
