@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");

/* Resources listing + detail only — do not use these rules on other pages */

.tb-resources-list.services.section {
  padding: 80px 0;
  background: #fff;
  font-family: "Roboto", system-ui, sans-serif;
}

.tb-resources-list .section-title h2,
.tb-resources-list .service-content h3 {
  font-family: "Montserrat", sans-serif;
}

.tb-resources-list .services .service-item,
.tb-resources-list .service-item {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tb-resources-list .service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.tb-resources-list .service-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.tb-resources-list .service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tb-resources-list .service-image .service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #345292, color-mix(in srgb, #345292, transparent 20%));
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.tb-resources-list .service-item:hover .service-image img,
.tb-resources-list .service-image:hover img {
  transform: scale(1.05);
}

.tb-resources-list .service-item:hover .service-overlay,
.tb-resources-list .service-image:hover .service-overlay {
  opacity: 0.9;
}

.tb-resources-list .service-content {
  padding: 30px 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tb-resources-list .service-content h3 {
  color: var(--tb-navy);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
}

.tb-resources-list .service-content p {
  color: color-mix(in srgb, var(--tb-text), transparent 20%);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.tb-resources-list .service-content .text-muted {
  font-size: 0.85rem;
}

.tb-resources-list .service-content .service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 20px;
  background: color-mix(in srgb, #345292, transparent 5%);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-top: auto;
}

.tb-resources-list .service-content .service-btn i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.tb-resources-list .service-content .service-btn:hover {
  background: #345292;
  color: #fff;
}

.tb-resources-list .service-content .service-btn:hover i {
  transform: translateX(5px);
}

.featured-services.resource-detail {
  padding: 100px 0;
  background: #fff;
}

.featured-services.resource-detail .featured-service-main {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.featured-services.resource-detail .service-image-wrapper {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
}

.featured-services.resource-detail,
.featured-services.resource-detail p,
.featured-services.resource-detail .post-content-body {
  font-family: "Roboto", system-ui, sans-serif;
}

.featured-services.resource-detail h2,
.featured-services.resource-detail h4,
.featured-services.resource-detail .section-heading {
  font-family: "Montserrat", sans-serif;
  color: #112344;
}

.featured-services.resource-detail .service-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-services.resource-detail .service-image-wrapper:hover img {
  transform: scale(1.02);
}

.featured-services.resource-detail .service-details {
  padding: 40px 0 0;
}

.featured-services.resource-detail .service-details h2 {
  font-size: 32px;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 24px;
  color: var(--tb-navy);
}

.featured-services.resource-detail .post-content-body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: color-mix(in srgb, var(--tb-text), transparent 15%);
}

.featured-services.resource-detail .post-content-body p {
  margin-bottom: 32px;
}

.featured-services.resource-detail .post-content-body a {
  color: #25b88f;
  font-weight: 500;
  text-decoration: none;
}

.featured-services.resource-detail .services-sidebar {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-left: 60px;
}

.featured-services.resource-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;
}

.featured-services.resource-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;
}

.featured-services.resource-detail .service-item:last-child {
  border-bottom: none;
}

.featured-services.resource-detail .st {
  width: 28%;
  flex-shrink: 0;
  overflow: hidden;
}

.featured-services.resource-detail .st img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10%;
}

.featured-services.resource-detail .service-info h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #112344;
}

.featured-services.resource-detail .service-info h4 a {
  color: #345292;
  text-decoration: none !important;
  font-weight: 400;
  transition: color 0.3s ease;
}

.featured-services.resource-detail .service-info h4 a:hover {
  color: color-mix(in srgb, #345292, transparent 25%);
}

.featured-services.resource-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;
}

.featured-services.resource-detail .service-link:hover {
  color: #112344;
  border-bottom: none;
}

.featured-services.resource-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;
}

@media (max-width: 991px) {
  .featured-services.resource-detail {
    padding: 60px 0;
  }

  .featured-services.resource-detail .services-sidebar {
    padding-left: 0;
    margin-top: 40px;
  }

  .featured-services.resource-detail .service-image-wrapper {
    height: 280px;
  }

  .featured-services.resource-detail .service-details {
    padding-top: 24px;
  }

  .featured-services.resource-detail .service-details h2 {
    font-size: 24px;
  }

  .featured-services.resource-detail .services-sidebar .section-heading {
    font-size: 24px;
    white-space: normal;
  }

  .featured-services.resource-detail .service-item {
    padding: 24px 0;
  }
}

@media (max-width: 768px) {
  .tb-resources-list.services.section {
    padding: 60px 0;
  }

  .tb-resources-list .service-image {
    height: 200px;
  }

  .tb-resources-list .service-content {
    padding: 25px 20px;
  }

  .tb-resources-list .service-content h3 {
    font-size: 1.3rem;
  }
}

.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;
}
