@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;500;700&family=Montserrat:wght@300;400;500;600;700&family=Roboto:ital,wght@0,200;0,300;0,400;0,500;0,700;1,400;1,500&display=swap");

/* Home page — match WordPress TrueBlue theme (images, width, layout) */

:root {
  --default-color: #3c4049;
  --tb-teal: #1db78d;
  --tb-teal-2: #25b88f;
  --tb-navy: #112344;
  --tb-text: #3c4049;
  --tb-blue: #345292;
  --tb-heading: "Montserrat", sans-serif;
  --tb-nav: "Lato", sans-serif;
  --tb-body: system-ui, sans-serif;
  --tb-header-grad: linear-gradient(135deg, #174a94, color-mix(in srgb, #022352db, #667eea 30%));
  --tb-container: 1320px;
}

#form-response-message {
  margin-top: 15px;
  font-weight: bold;
  display: none;
}

#form-response-message.is-visible { display: block; }
#form-response-message.is-success { color: #28a745; }
#form-response-message.is-error { color: #dc3545; }

body:has(.hero.section) {
  color: var(--tb-text);
  font-family: var(--tb-body);
  background: #fff;
}

body:has(.hero.section) h1,
body:has(.hero.section) h2,
body:has(.hero.section) h3,
body:has(.hero.section) h4,
body:has(.hero.section) h5,
body:has(.hero.section) h6 {
  font-family: var(--tb-heading);
  color: var(--tb-navy);
}

body:has(.hero.section) a {
  text-decoration: none;
}

/* Bootstrap 5 xxl container width used by the WordPress theme */
@media (min-width: 1400px) {
  body:has(.hero.section) .container,
  body:has(.hero.section) .tb-header-container {
    max-width: 1320px;
  }
}

body:has(.hero.section) .container,
body:has(.hero.section) .tb-header-container {
  padding-left: 15px;
  padding-right: 15px;
}

/* ----- Header (overlay the hero, stay on screen while scrolling) ----- */
body:has(.hero.section) header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 0;
  overflow: visible;
  background: transparent;
  z-index: 99999;
}

body:has(.hero.section) .header-area {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent !important;
  z-index: 99999;
}

body:has(.hero.section) .header-area .main-header-area,
body:has(.hero.section) .header-area .main-header-area.sticky {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  transform: none !important;
}

body:has(.hero.section) .header-area .main-header-area {
  background: transparent;
  padding: 30px 0 !important;
}

body:has(.hero.section) .header-area .main-header-area.sticky {
  background: var(--tb-header-grad);
  padding: 30px 0 !important;
  box-shadow: 0 8px 24px rgba(2, 35, 82, 0.18);
  top: 0;
  transform: none;
}

body:has(.hero.section) .header-area .main-header-area.sticky .main-menu {
  padding: 0 !important;
}

body:has(.hero.section) .logo-img img {
  width: 80% !important;
  max-width: 180px;
  max-height: 36px !important;
  height: auto !important;
  object-fit: contain;
}

body: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);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 8px 2px;
  margin: 0 12px;
}

body:has(.hero.section) .header-area .main-header-area.sticky .main-menu ul li > a {
  padding: 8px 2px;
}

body: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:has(.hero.section) .header-area .main-header-area .main-menu ul > li > a:hover::before,
body:has(.hero.section) .header-area .main-header-area .main-menu ul > li:hover > a::before,
body:has(.hero.section) .header-area .main-header-area .main-menu ul > li > a.active::before {
  visibility: visible;
  width: 100%;
}

body:has(.hero.section) .header-area .main-header-area .main-menu ul li > a:hover,
body:has(.hero.section) .header-area .main-header-area .main-menu ul li > a.active {
  color: var(--tb-teal-2);
}

body:has(.hero.section) .header-area .main-header-area .main-menu ul li .submenu {
  background: #fff;
  overflow: visible !important;
  z-index: 100000;
}

body: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:has(.hero.section) .header-area .main-header-area .main-menu ul li .submenu li a:hover,
body:has(.hero.section) .header-area .main-header-area .main-menu ul li .submenu .active {
  color: #20b38b !important;
}

body:has(.hero.section) .header-area .get_in_tauch a.header-cta {
  color: var(--tb-teal);
  border-bottom: 1px solid var(--tb-teal);
}

body:has(.hero.section) .header-area .get_in_tauch a.header-cta:hover {
  color: #fff;
  border-bottom-color: #fff;
}

body:has(.hero.section) .slicknav_btn .slicknav_icon-bar {
  background-color: #fff !important;
}

/* ----- Hero (theme still image, same as WordPress) ----- */
.hero.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0b3b8c;
}

.hero.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-bg, url("/theme/trueblue/img/bg/hero.png")) center / cover no-repeat;
  z-index: 0;
}

.hero.section .fallbackImage {
  display: none !important;
}

.hero.section .container {
  position: relative;
  z-index: 2;
  padding-top: 140px;
  padding-bottom: 80px;
}

.hero.section .trust-badges .badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  background: color-mix(in srgb, var(--tb-teal), transparent 90%);
  border-radius: 50px;
  color: var(--tb-teal);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero.section .trust-badges .badge-item i {
  font-size: 1rem;
}

body:has(.hero.section) .hero.section h1,
body:has(.hero.section) .hero.section h1 .highlight {
  font-size: 36px;
  font-weight: 700;
  line-height: 44px;
  margin: 1.5rem 0;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  font-family: var(--tb-heading);
  max-width: 746px;
}

body:has(.hero.section) .hero.section .hero-description {
  font-size: 22px;
  line-height: 1.7;
  color: #fff !important;
  margin-bottom: 2rem;
  max-width: 500px;
  font-weight: 200;
  font-family: var(--tb-body);
}

.hero.section .primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tb-teal) !important;
  border-bottom: 1px solid var(--tb-teal);
  padding-bottom: 2px;
  font-size: 16px;
  font-weight: 400;
}

.hero.section .primary-cta:hover {
  color: #fff !important;
  border-bottom-color: #fff;
}

/* ----- Shared section titles ----- */
.section-title {
  text-align: center;
  padding-bottom: 60px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 auto 20px;
  padding-bottom: 20px;
  position: relative;
  display: block;
  max-width: 11.6em;
  font-family: var(--tb-heading);
  color: var(--tb-navy);
  text-wrap: balance;
}

.section-title h2::before {
  content: "";
  position: absolute;
  display: block;
  width: 160px;
  height: 1px;
  background: color-mix(in srgb, var(--tb-text), transparent 40%);
  left: 0;
  right: 0;
  bottom: 1px;
  margin: auto;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--tb-blue);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title .lead-text,
.section-title h2 + p.lead-text {
  font-size: 15px;
  font-weight: 500;
  line-height: 26px;
  color: var(--default-color);
  margin: 0 auto 13px;
  max-width: none;
  width: 100%;
  padding: 0;
  position: static;
  display: block;
  text-align: center;
  font-family: revert;
}

.section-title .lead-text::before,
.section-title .lead-text::after,
.section-title h2 + p::before,
.section-title h2 + p::after {
  content: none;
  display: none;
}

.lastest_project {
  padding: 100px 0;
  background: #fff;
}

.row.g-5,
.row.g-4 {
  margin-left: -15px;
  margin-right: -15px;
}

.row.g-5 > [class*="col-"],
.row.g-4 > [class*="col-"] {
  padding-left: 15px;
  padding-right: 15px;
}

.row.g-0 {
  margin-left: 0;
  margin-right: 0;
}

.row.g-0 > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

/* ----- Service cards ----- */
.featured-departments .department-highlight {
  background: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  height: 100%;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--tb-text), transparent 92%);
  transition: all 0.3s ease;
}

.featured-departments .department-highlight:hover {
  border-color: color-mix(in srgb, var(--tb-blue), transparent 70%);
  transform: translateY(-3px);
}

.featured-departments .highlight-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #345292, color-mix(in srgb, #1f3c7a, #1e7172 30%));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

.featured-departments .highlight-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin: 0;
}

.featured-departments h4 {
  font-size: 22px;
  font-weight: 400;
  color: var(--tb-navy);
  margin-bottom: 15px;
}

.featured-departments .department-highlight p {
  color: color-mix(in srgb, var(--tb-text), transparent 25%);
  font-family: system-ui, sans-serif;
  font-size: 15px;
  font-weight: 300;
  font-style: normal;
  line-height: 1.6;
  letter-spacing: 0.2px;
  margin-bottom: 25px;
}

.featured-departments .highlight-cta {
  color: var(--tb-teal-2);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ----- Who We Serve ----- */
.featured-services .service-image-wrapper {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 8px;
}

.featured-services .service-image-wrapper.tb-fade-image {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
  will-change: opacity, transform;
}

.featured-services .service-image-wrapper.tb-fade-image.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .featured-services .service-image-wrapper.tb-fade-image {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .featured-services .service-image-wrapper img {
    transition: none;
  }

  .featured-services .service-image-wrapper:hover img,
  .featured-services .service-image-wrapper.tb-fade-image.is-visible:hover img {
    transform: none;
  }
}

.featured-services .service-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.featured-services .service-image-wrapper:hover img,
.featured-services .service-image-wrapper.tb-fade-image.is-visible:hover img {
  transform: scale(1.06);
}

.featured-services .service-details {
  padding: 40px 40px 0 0;
}

.featured-services .service-details h2 {
  font-size: 32px;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 24px;
  color: var(--tb-navy);
}

.featured-services .service-details p {
  font-family: system-ui, sans-serif;
  font-size: 16px;
  font-weight: 300;
  font-style: normal;
  line-height: 1.7;
  color: color-mix(in srgb, var(--tb-text), transparent 15%);
  margin-bottom: 32px;
}

.featured-services .main-cta {
  display: inline-flex;
  color: var(--tb-teal-2);
  font-size: 16px;
  position: relative;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--tb-teal-2);
}

.featured-services .services-sidebar {
  padding-left: 60px;
}

.featured-services .service-item {
  padding: 32px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--tb-text), transparent 92%);
  display: flex;
  gap: 20px;
  transition: transform 0.3s ease;
}

.featured-services .service-item:last-child {
  border-bottom: none;
}

.featured-services .service-item:hover {
  transform: translateX(8px);
}

.featured-services .service-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: color-mix(in srgb, #345292, transparent 92%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.featured-services .service-icon-wrapper i {
  font-size: 20px;
  color: #345292;
  line-height: 1;
  transition: all 0.3s ease;
}

.featured-services .service-item:hover .service-icon-wrapper {
  background: #345292;
  transform: scale(1.1);
}

.featured-services .service-item:hover .service-icon-wrapper i {
  color: #fff;
}

.featured-services .service-info {
  flex: 1;
}

.featured-services .service-info h4 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--tb-navy);
}

.featured-services .service-info p {
  font-family: system-ui, sans-serif;
  font-size: 14px;
  font-weight: 300;
  font-style: normal;
  line-height: 1.6;
  color: color-mix(in srgb, var(--tb-text), transparent 30%);
  margin-bottom: 12px;
}

.featured-services .service-link {
  display: inline-block;
  font-size: 13px;
  color: #25b88f;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #25b88f;
  padding-bottom: 1px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.featured-services .service-link:hover {
  color: var(--tb-navy);
  border-bottom-color: var(--tb-navy);
}

/* ----- Revenue banner (theme image) ----- */
.featured-departments.revenue {
  padding: 0 0 40px;
  background: transparent;
}

body:has(.hero.section) .featured-departments .emergency-banner {
  border-radius: 20px;
  padding: 40px;
  margin-top: 60px;
  color: #fff;
  background-color: #174a94;
  background-image: url("/theme/trueblue/img/bg/revenue.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

body:has(.hero.section) .featured-departments .emergency-banner h3 {
  color: #fff !important;
  font-family: var(--tb-heading);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 10px;
}

body:has(.hero.section) .featured-departments .emergency-banner p {
  color: rgba(255, 255, 255, 0.85) !important;
  font-family: system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 0;
  font-weight: 300;
}

body:has(.hero.section) .featured-departments .emergency-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  color: #345292 !important;
  padding: 16px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  border: 0;
  box-shadow: none;
  transition: all 0.3s ease;
}

body:has(.hero.section) .featured-departments .emergency-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #345292 !important;
  transform: translateY(-2px);
}

/* ----- Home features (Our End-to-End Remote Care Services) ----- */
.hero.section + .tb-features-section .section-title {
  padding-top: 60px;
}

/* ----- Testimonials ----- */
.featured-testimonials.section {
  padding: 60px 0;
  overflow: visible;
}

.featured-testimonials .section-title h2 {
  max-width: none;
  font-size: 32px;
  font-weight: 500;
  color: var(--tb-navy);
  font-family: var(--tb-heading);
}

.featured-testimonials .section-title h2::before {
  width: 160px;
  max-width: 160px;
}

.featured-testimonials .testimonial-item {
  background-color: aliceblue;
  padding: 24px;
  border-radius: 8px;
  height: 100%;
  text-align: left;
  transition: all 0.3s;
}

.featured-testimonials .testimonial-item .stars {
  margin-bottom: 16px;
  color: #f7b50d;
}

.featured-testimonials .testimonial-item .stars i {
  font-size: 18px;
  margin: 0 2px;
}

.featured-testimonials .testimonial-item p {
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 20px 0;
  color: #3c4049;
}

.featured-testimonials .testimonial-item .profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.featured-testimonials .testimonial-item .profile .testimonial-img {
  width: auto !important;
  height: 48px;
  max-width: 160px;
  object-fit: contain;
  display: inline-block;
}

.featured-testimonials .testimonial-item .profile .info h4 {
  font-family: var(--tb-heading);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--tb-navy);
  display: flex;
  align-items: center;
  gap: 4px;
}

.featured-testimonials .testimonial-item .profile .info h4 i {
  font-size: 14px;
  color: #345292;
  margin-left: 4px;
}

.featured-testimonials .owl-stage {
  display: flex;
  align-items: stretch;
}

.featured-testimonials .owl-item {
  display: flex;
  height: auto;
}

.featured-testimonials .owl-item .item {
  width: 100%;
}

.featured-testimonials .owl-dots {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  text-align: center;
  line-height: 1;
}

.featured-testimonials .owl-dot {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.featured-testimonials .owl-dot span {
  display: block !important;
  width: 8px !important;
  height: 8px !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background-color: #c5c8ce !important;
  opacity: 1 !important;
  transition: width 0.3s ease, border-radius 0.3s ease, background-color 0.3s ease;
}

.featured-testimonials .owl-dot.active span {
  background-color: #345292 !important;
  width: 20px !important;
  height: 8px !important;
  border-radius: 4px !important;
}

/* ----- FAQs ----- */
body:has(.hero.section) .faq.section {
  padding: 60px 0;
}

body:has(.hero.section) .faq .section-heading {
  display: block;
  text-align: left;
  width: 100%;
  max-width: none;
  margin: 0 0 12px;
  padding: 0;
  font-family: "Montserrat", sans-serif !important;
  font-size: 32px !important;
  font-weight: 500 !important;
  line-height: 1.3;
  color: #112344 !important;
}

body:has(.hero.section) .faq .section-heading::before,
body:has(.hero.section) .faq .section-heading::after {
  display: none;
  content: none;
}

.faq .faq-item {
  margin-bottom: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--tb-text), transparent 90%);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq .faq-item:last-child {
  border-bottom: none;
}

.faq .faq-item .faq-header {
  display: flex;
  align-items: center;
  padding: 40px 0;
  cursor: pointer;
  gap: 0;
  transition: all 0.3s ease;
}

.faq .faq-item .faq-header:hover .faq-number,
.faq .faq-item .faq-header:hover .faq-toggle {
  transform: scale(1.1);
}

.faq .faq-item .faq-header .faq-number {
  flex-shrink: 0;
  width: 80px;
  font-family: "Montserrat", sans-serif !important;
  font-size: 18px !important;
  font-weight: 300 !important;
  color: #9a9ca1 !important;
  transition: all 0.3s ease;
  letter-spacing: -0.02em;
}

body:has(.hero.section) .faq .faq-item .faq-header h4 {
  flex: 1;
  margin: 0 20px 0 0;
  font-family: "Montserrat", sans-serif !important;
  font-size: 20px !important;
  font-weight: 300 !important;
  color: #112344 !important;
  transition: all 0.3s ease;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.faq .faq-item .faq-header .faq-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--tb-text), transparent 40%);
  font-size: 18px;
  transition: all 0.3s ease;
  position: relative;
}

.faq .faq-item .faq-header .faq-toggle i {
  line-height: 1;
}

.faq .faq-item .faq-header .faq-toggle i.bi-dash {
  display: none;
}

.faq .faq-item .faq-header .faq-toggle i.bi-plus {
  display: inline-block;
}

.faq .faq-item.faq-active .faq-header .faq-number,
body:has(.hero.section) .faq .faq-item.faq-active .faq-header h4,
.faq .faq-item.faq-active .faq-header .faq-toggle {
  color: #345292 !important;
}

.faq .faq-item.faq-active .faq-header .faq-number {
  font-weight: 500 !important;
}

.faq .faq-item.faq-active .faq-header .faq-toggle i.bi-plus {
  display: none;
}

.faq .faq-item.faq-active .faq-header .faq-toggle i.bi-dash {
  display: inline-block;
}

.faq .faq-item .faq-content {
  display: none;
}

.faq .faq-item.faq-active .faq-content {
  display: block;
}

.faq .faq-item .faq-content .content-inner {
  padding: 0 80px 40px 80px;
  overflow: visible;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

.faq .faq-item .faq-content .content-inner p {
  margin: 0 0 0.75rem;
  font-family: "Roboto", system-ui, sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
  color: #6e7178 !important;
}

.faq .faq-item .faq-content .content-inner ul {
  margin: 0.25rem 0 0 !important;
  padding-left: 1.5rem !important;
  list-style-type: disc !important;
  list-style-position: outside !important;
}

.faq .faq-item .faq-content .content-inner li {
  display: list-item !important;
  list-style-type: disc !important;
  margin-bottom: 0.25rem;
  font-family: "Roboto", system-ui, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.8 !important;
  color: #111111 !important;
}

/* ----- Outcomes ----- */
.tb-outcomes .row.g-5 {
  margin-left: -24px;
  margin-right: -24px;
}

.tb-outcomes .row.g-5 > [class*="col-"] {
  padding-left: 24px;
  padding-right: 24px;
  margin-bottom: 32px;
}

.featured-departments .specialty-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px color-mix(in srgb, var(--tb-text), transparent 92%);
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.featured-departments .specialty-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px color-mix(in srgb, var(--tb-text), transparent 85%);
}

.featured-departments .specialty-visual {
  height: 250px;
  position: relative;
  overflow: hidden;
}

.featured-departments .specialty-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
  transition: transform 0.4s ease;
}

.featured-departments .specialty-card:hover .specialty-visual img {
  transform: scale(1.08);
}

.featured-departments .specialty-content {
  padding: 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-departments .specialty-meta {
  margin-bottom: 15px;
}

.featured-departments .specialty-meta .specialty-label {
  display: inline-block;
  background: color-mix(in srgb, #345292, transparent 90%);
  color: #345292;
  font-family: var(--tb-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 16px;
  border-radius: 20px;
}

.tb-outcomes .specialty-card h4 {
  font-family: var(--tb-heading);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--tb-navy);
  margin-bottom: 15px;
  text-transform: none;
  letter-spacing: 0;
}

.featured-departments .specialty-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #25b88f;
  font-family: var(--tb-body);
  font-weight: 400;
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
}

.featured-departments .specialty-link:hover {
  color: color-mix(in srgb, #345292, transparent 20%);
  transform: translateX(5px);
}

.featured-departments .specialty-link i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.featured-departments .specialty-link:hover i {
  transform: translateX(3px);
}

/* ----- Contact (match testwebsite.truebluemd.com) ----- */
body:has(.hero.section) .contact.section {
  padding: 60px 0;
  background-color: #fff;
  color: var(--tb-text);
}

body:has(.hero.section) .contact.section .row.g-5 {
  margin-left: -24px;
  margin-right: -24px;
}

body:has(.hero.section) .contact.section .row.g-5 > [class*="col-"] {
  padding-left: 24px;
  padding-right: 24px;
}

body:has(.hero.section) .contact.section .row.g-4 {
  margin-left: -12px;
  margin-right: -12px;
}

body:has(.hero.section) .contact.section .row.g-4 > [class*="col-"] {
  padding-left: 12px;
  padding-right: 12px;
}

body:has(.hero.section) .contact.section > .container > .row > .col-lg-6:first-child {
  text-align: left;
}

body:has(.hero.section) .contact.section > .container > .row > .col-lg-6:first-child h2 {
  font-family: var(--tb-heading);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--tb-navy);
  margin: 0 0 16px;
}

body:has(.hero.section) .contact.section > .container > .row > .col-lg-6:first-child p {
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: color-mix(in srgb, var(--tb-text), transparent 20%);
  margin: 0 0 24px;
}

body:has(.hero.section) .contact.section > .container > .row > .col-lg-6:first-child img.img-fluid {
  width: 100%;
  display: block;
  border-radius: 0;
  margin: 0;
}

body:has(.hero.section) .contact .contact-form-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.03);
}

body:has(.hero.section) .contact .contact-form-card h2 {
  font-family: var(--tb-heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--tb-navy);
  margin: 0 0 10px;
}

body:has(.hero.section) .contact .contact-form-card input[type="hidden"] {
  display: none;
}

body:has(.hero.section) .contact .contact-form-card .form-control,
body:has(.hero.section) .contact .contact-form-card .form-select {
  display: block;
  width: 100%;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--tb-text), transparent 80%);
  padding: 15px 20px;
  height: calc(3.5rem + 2px);
  background-color: #fff;
  color: var(--tb-text) !important;
  font-family: "Roboto", system-ui, sans-serif !important;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 20px;
  box-shadow: none;
}

body:has(.hero.section) .contact .contact-form-card .form-control::placeholder {
  color: color-mix(in srgb, var(--tb-text), transparent 40%);
  opacity: 1;
}

body:has(.hero.section) .contact .contact-form-card .form-control:focus,
body:has(.hero.section) .contact .contact-form-card .form-select:focus {
  border-color: #345292;
  outline: 0;
  box-shadow: 0 0 0 0.25rem color-mix(in srgb, #345292, transparent 90%);
}

body:has(.hero.section) .contact .contact-form-card .form-select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  color: color-mix(in srgb, var(--tb-text), transparent 40%) !important;
}

body:has(.hero.section) .contact .contact-form-card .form-select:valid {
  color: var(--tb-text) !important;
}

body:has(.hero.section) .contact .contact-form-card .col-md-6:has(.form-select) .form-control,
body:has(.hero.section) .contact .contact-form-card .col-md-6:has(.form-select) .form-select {
  margin-bottom: 12px;
}

body:has(.hero.section) .contact .contact-form-card .col-12:has(.tb-contact-program-list),
body:has(.hero.section) .contact .contact-form-card .col-12:has(textarea) {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body:has(.hero.section) .contact .contact-form-card .tb-contact-program-label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  color: #666 !important;
  text-decoration: none !important;
  cursor: default;
  margin: 0 0 8px !important;
  padding: 0;
  line-height: 1.4;
}

body:has(.hero.section) .contact .contact-form-card textarea.form-control {
  min-height: 150px;
  height: auto;
  margin-top: 12px;
  margin-bottom: 16px;
  resize: vertical;
}

body:has(.hero.section) .contact .tb-contact-program-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

body:has(.hero.section) .contact .tb-contact-program-list .form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  position: static;
  padding: 0;
  margin: 0;
  min-height: 0;
}

body:has(.hero.section) .contact .tb-contact-program-list .form-check-input {
  position: static;
  float: none;
  width: 16px;
  height: 16px;
  margin: 0 !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  border: 1px solid #cfd4dc;
  border-radius: 3px;
  background: #fff;
}

body:has(.hero.section) .contact .tb-contact-program-list .form-check-input:checked {
  background-color: #25b88f;
  border-color: #25b88f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8.5l2.5 2.5L12 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

body:has(.hero.section) .contact .tb-contact-program-list .form-check-label {
  color: var(--tb-text) !important;
  text-decoration: none !important;
  cursor: pointer;
  margin: 0 !important;
  padding: 0;
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  font-family: "Roboto", system-ui, sans-serif;
  line-height: 1.4;
}

body:has(.hero.section) .contact.tb-contact-page {
  padding: 60px 0 80px;
  background: #fff;
}

body:has(.hero.section) .contact.tb-contact-page .contact-form-card h2 {
  margin-bottom: 1.5rem;
}

body:has(.hero.section) .contact .btn-submit {
  background-color: #25b88f !important;
  color: #fff !important;
  border: none !important;
  padding: 15px 30px;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 100%;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
  margin-top: 0;
}

body:has(.hero.section) .contact .btn-submit:hover,
body:has(.hero.section) .contact .btn-submit:focus {
  background-color: color-mix(in srgb, #345292, transparent 15%) !important;
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

body:has(.hero.section) .contact #form-response-message {
  margin-top: 15px;
}

/* ----- Footer ----- */
body:has(.hero.section) .footer.footer_bg {
  background: var(--tb-header-grad) !important;
  background-image: none !important;
}

body:has(.hero.section) .footer .footer_top {
  padding: 80px 12px 40px;
}

body:has(.hero.section) .footer .boxed-btn2 {
  background: transparent;
  color: var(--tb-teal) !important;
  border: 0;
  border-bottom: 1px solid var(--tb-teal);
  border-radius: 0;
  padding: 4px 0;
  letter-spacing: 0;
  text-transform: none;
  width: auto;
}

/* ----- Responsive ----- */
@media (max-width: 991.98px) {
  .hero.section .container {
    padding-top: 120px;
  }

  .hero.section h1 {
    font-size: 2rem;
    line-height: 1.25;
  }

  .hero.section .hero-description {
    font-size: 18px;
    max-width: 100%;
  }

  .featured-services .services-sidebar {
    padding-left: 0;
    margin-top: 40px;
  }

  .featured-services .service-image-wrapper {
    height: 280px;
  }

  .featured-services .service-details {
    padding: 24px 0 0;
  }

  .featured-departments .emergency-banner {
    padding: 30px 25px;
    text-align: center;
  }

  .featured-departments .emergency-banner h3 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .featured-departments .emergency-btn {
    margin-top: 20px;
    padding: 14px 25px;
    font-size: 15px;
  }

  body:has(.hero.section) .contact.section > .container > .row > .col-lg-6:first-child {
    margin-bottom: 40px;
  }

  body:has(.hero.section) .contact .contact-form-card {
    padding: 30px;
  }

  body:has(.hero.section) .contact .contact-form-card h2 {
    font-size: 24px;
  }

  .faq .faq-item .faq-header {
    padding: 30px 0;
  }

  .faq .faq-item .faq-header .faq-number {
    width: 60px;
    font-size: 1rem;
  }

  .faq .faq-item .faq-header h4 {
    font-size: 1.1rem;
    margin-right: 15px;
  }

  .faq .faq-item .faq-content .content-inner {
    padding: 0 60px 30px 60px;
  }

  .featured-departments .specialty-visual {
    height: 200px;
  }
}

@media (max-width: 767px) {
  .lastest_project {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 24px;
    max-width: 14em;
  }

  .section-title .lead-text,
  .section-title h2 + p.lead-text {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .faq .section-heading {
    font-size: 24px;
  }

  .faq .faq-item .faq-header {
    padding: 25px 0;
  }

  .faq .faq-item .faq-header .faq-number {
    width: 50px;
    font-size: 0.9rem;
  }

  .faq .faq-item .faq-header h4 {
    font-size: 1rem;
  }

  .faq .faq-item .faq-content .content-inner {
    padding: 0 50px 25px 50px;
  }

  .featured-departments .specialty-content {
    padding: 30px 25px;
  }

  .tb-outcomes .specialty-card h4 {
    font-size: 20px;
  }
}
