html,
body {
  max-width: 100%;
}

img,
video,
iframe,
object,
embed {
  max-width: 100%;
}

pre {
  max-width: 100%;
  overflow-x: auto;
}

.container-fluid {
  width: 100%;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.tb-mainwrapper,
.tb-subwrapper,
.tb-main,
.theme-container,
.container-fluid,
.row,
[class^="col-"],
[class*=" col-"] {
  min-width: 0;
}

.full-height {
  min-height: 100vh;
  height: auto;
  padding: 16px;
}

.full-height .content {
  width: min(100%, 720px);
}

.full-height .title {
  padding: 20px 12px;
  font-size: clamp(1.5rem, 6vw, 2.25rem);
  overflow-wrap: anywhere;
}

.table-responsive,
.tb-table-wrap,
.tb-crud-table-wrap,
.tb-disputetable,
.tb-dbholder-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1199.98px) {
  .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
  }

  .tb-navbar,
  .tb-navbar .navbar-collapse,
  .tb-navbar .navbar-nav {
    min-width: 0;
  }
}

@media (max-width: 767.98px) {
  .container-fluid {
    padding-right: max(12px, 4vw);
    padding-left: max(12px, 4vw);
  }

  .tb-header-wraper {
    flex-wrap: wrap;
    gap: 10px;
  }

  .tb-subwrapper {
    padding-right: 12px;
    padding-left: 12px;
  }

  .tb-table-wrap,
  .tb-crud-table-wrap,
  .tb-disputetable,
  .tb-dbholder-wrap {
    overscroll-behavior-x: contain;
  }

  th,
  td,
  p,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .tb-subwrapper {
    padding-right: 12px;
    padding-left: 12px;
  }

  .tb-main,
  .tb-dbbox {
    min-width: 0;
  }
}

/* About page brand colors */
section.breadcrumb-area:has(.about-breadcrumb-image) {
  background-color: #21170f;
  box-shadow: 0 12px 28px rgba(45, 28, 12, 0.16);
}

section.breadcrumb-area:has(.about-breadcrumb-image) .images:before {
  background: linear-gradient(
    90deg,
    rgba(30, 20, 12, 0.88),
    rgba(30, 20, 12, 0.42)
  );
}

section.breadcrumb-area:has(.about-breadcrumb-image) .breadcrumb-content h1 {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

section.breadcrumb-area:has(.about-breadcrumb-image)
  nav
  .breadcrumb-item.active {
  color: #f1bd7a;
}

section.about-us {
  background: #fbf8f4;
}

section.about-us .card {
  border-top: 4px solid #a96015;
  box-shadow: 0 16px 40px rgba(70, 45, 20, 0.09);
}

section.about-us h4,
section.mission-vission .section-top h4,
section.why-choose-us .section-top h4 {
  color: #261b12;
}

section.about-us article,
section.mission-vission .our-values article,
section.mission-vission .our-vision article,
section.why-choose-us .why-choose-us-content {
  color: #62584f;
}

section.about-us a.btn.see-more {
  border: 1px solid #a96015;
  border-radius: 6px;
  color: #fff;
  background: #a96015;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

section.about-us a.btn.see-more:hover,
section.about-us a.btn.see-more:focus-visible {
  border-color: #81470e;
  color: #fff;
  background: #81470e;
  transform: translateY(-1px);
}

section.mission-vission {
  background: #fff;
}

section.mission-vission .our-values,
section.mission-vission .our-vision {
  border: 1px solid #eee2d2;
  border-top: 4px solid #a96015;
  background: #fbf8f4;
}

section.mission-vission .our-vision {
  border-top-color: #d18a3d;
  background: #fffaf3;
}

section.mission-vission .our-values h4,
section.mission-vission .our-vision h4 {
  color: #261b12;
}

section.why-choose-us {
  background: #f6f0e8;
}

section.why-choose-us .why-choose-us-content {
  border-color: #eadbc8;
  background: #fff;
  box-shadow: 0 16px 40px rgba(70, 45, 20, 0.07);
}

section.about-us .section-top h4,
section.mission-vission .section-top h4,
section.why-choose-us .section-top h4 {
  text-decoration-color: #a96015;
}

/* Blog listing colors matched to the WorkerBD logo */
section.blog-listing-breadcrumb {
  background-color: #075f88;
  box-shadow: 0 12px 28px rgba(7, 66, 94, 0.2);
}

section.blog-listing-breadcrumb .images:before {
  background: linear-gradient(
    90deg,
    rgba(5, 64, 92, 0.9),
    rgba(7, 95, 136, 0.48)
  );
}

section.blog-listing-breadcrumb .breadcrumb-item.active {
  color: #ffd24a;
}

section.blog-listing {
  background: #f3f8fb;
}

section.blog-listing .section-top h6 {
  color: #0877a6 !important;
}

section.blog-listing .blog-card {
  border: 1px solid #e1edf3;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(7, 66, 94, 0.08);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

section.blog-listing .blog-card:hover {
  border-color: #b8d8e7;
  box-shadow: 0 16px 34px rgba(7, 66, 94, 0.14);
  transform: translateY(-3px);
}

section.blog-listing .blog-card-image {
  border-bottom: 4px solid #ffd24a;
}

section.blog-listing .blog-card-content time,
section.blog-listing .blog-card-content time i {
  color: #0877a6;
}

section.blog-listing .blog-card-content h5 a {
  color: #183444;
}

section.blog-listing .blog-card-content h5 a:hover {
  color: #c91f3a;
}

/* Reliable scroll reveal for browsers without scroll-driven animation support */
.block-animation {
  opacity: 1;
  transform: none;
  transition:
    opacity 600ms ease,
    transform 600ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.has-scroll-reveal .block-animation:not(.is-visible) {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}

.has-scroll-reveal .block-animation.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .block-animation,
  .has-scroll-reveal .block-animation:not(.is-visible),
  .has-scroll-reveal .block-animation.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Home page family cards */
.home-family-section {
  padding: clamp(48px, 7vw, 88px) 0;
  background: linear-gradient(180deg, #f3f8fb 0%, #fff 100%);
}

.home-family-section .family-section-heading {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.home-family-section .family-section-heading h4 {
  color: #183444;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.2;
}

.home-family-section .family-section-heading strong {
  color: #0877a6;
  text-decoration: underline;
  text-decoration-color: #ffd24a;
  text-decoration-thickness: 5px;
  text-underline-offset: 5px;
}

section.home-family-section .family-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  height: 100%;
  overflow: hidden;
  border: 1px solid #dce9ef;
  border-top: 4px solid #0877a6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(7, 66, 94, 0.09);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.home-family-section .career-card {
  border-top-color: #f0bd2c;
}

section.home-family-section .family-card:hover,
section.home-family-section .family-card.is-visible:hover {
  border-color: #b8d8e7;
  box-shadow: 0 18px 38px rgba(7, 66, 94, 0.14);
  transform: translateY(-3px);
}

.home-family-section .family-card .content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(22px, 3vw, 38px);
}

.home-family-section .family-card .content h4 {
  margin: 0 0 14px;
  color: #183444;
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.3;
  text-align: left;
}

.home-family-section .family-card .content article {
  color: #536b78;
  font-size: 16px;
  line-height: 1.7;
}

.home-family-section .family-card .content article p {
  margin: 0 0 20px;
}

.home-family-section .family-card .image {
  min-width: 0;
  min-height: 260px;
  overflow: hidden;
  background: #eaf3f7;
}

.home-family-section .family-card .image img {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.home-family-section .family-card:hover .image img {
  transform: scale(1.035);
}

.home-family-section .family-card a.btn {
  margin-top: auto;
  border: 1px solid #0877a6;
  border-radius: 6px;
  padding: 10px 22px;
  color: #fff;
  background: #0877a6;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.home-family-section .career-card a.btn {
  border-color: #e6b321;
  color: #183444;
  background: #ffd24a;
}

.home-family-section .family-card a.btn:hover,
.home-family-section .family-card a.btn:focus-visible {
  border-color: #075f88;
  color: #fff;
  background: #075f88;
  transform: translateY(-1px);
}

@media (max-width: 991.98px) {
  .home-family-section .family-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-family-section .family-card .image {
    grid-row: auto !important;
    min-height: 0;
    padding: 0;
  }

  .home-family-section .family-card .image img {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: 320px !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
}

@media (max-width: 575.98px) {
  .home-family-section .family-card .content {
    padding: 22px;
  }

  .home-family-section .family-card .content h4 {
    font-size: 22px;
  }

  .home-family-section .family-card a.btn {
    width: 100%;
    text-align: center;
  }
}
