/* Mobile nav + Cloudflare Pages site fixes */

/* Remove the original craft theme top border strip above the header and prevent horizontal page overflow */
html,
body {
  border-top: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  max-width: 100%;
  overflow-x: clip;
}

/* Canonical image-led service catalogue */
.tq-catalog-page .tq-hub-wrap,
.tq-service-detail .tq-hub-wrap {
  max-width: 144rem;
}

/* Keep catalogue/category mastheads compact enough for long technical titles. */
.tq-catalog-page .header-banner,
.tq-service-detail .header-banner {
  gap: clamp(3rem, 4vw, 6rem);
  padding: clamp(3.2rem, 4vw, 5rem);
}

.tq-catalog-page .header-banner .intro h1,
.tq-service-detail .header-banner .intro h1 {
  max-width: 64rem;
  margin-bottom: 0;
  font-size: clamp(3.3rem, 3.5vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.tq-catalog-page .header-banner .subbanner-img,
.tq-service-detail .header-banner .subbanner-img {
  overflow: hidden;
  border-radius: 2rem;
  box-shadow: 0 1.6rem 4rem rgba(7, 18, 60, 0.22);
}

.tq-catalog-page .header-banner .subbanner-img img,
.tq-service-detail .header-banner .subbanner-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (min-width: 901px) {
  .tq-catalog-page main > article,
  .tq-service-detail main > article {
    padding-top: 6rem;
  }
}

.tq-catalog-intro,
.tq-detail-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(25rem, 0.45fr);
  gap: clamp(2.4rem, 4vw, 5rem);
  align-items: center;
  margin-bottom: clamp(3.5rem, 5vw, 6rem);
  padding: clamp(2.6rem, 3vw, 4rem);
  border: 1px solid #dce6f7;
  border-radius: 2.4rem;
  background: linear-gradient(135deg, #f9fbff 0%, #eef5ff 100%);
  box-shadow: 0 1.6rem 4rem rgba(20, 41, 99, 0.08);
}

.tq-catalog-intro h2,
.tq-detail-summary h2,
.tq-catalog-cta h2 {
  margin: 0.7rem 0 1.2rem;
  color: #172454;
  font-size: clamp(2.35rem, 2.8vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.tq-catalog-intro p,
.tq-detail-summary p,
.tq-catalog-cta p {
  margin: 0;
  color: #495875;
  font-size: clamp(1.4rem, 1.25vw, 1.6rem);
  line-height: 1.65;
}

.tq-catalog-intro__stats,
.tq-detail-summary dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem 1.4rem;
  margin: 0;
  padding: 2rem;
  border-radius: 1.7rem;
  background: #172454;
  color: #fff;
}

.tq-catalog-intro__stats strong {
  color: #63a2ff;
  font-size: 2.3rem;
  line-height: 1;
}

.tq-catalog-intro__stats span,
.tq-catalog-intro__stats a {
  align-self: center;
  color: #e8efff;
  font-size: 1.25rem;
  line-height: 1.4;
}

.tq-catalog-intro__stats a {
  grid-column: 1 / -1;
  margin-top: 0.8rem;
  color: #8cb9ff;
  font-weight: 700;
}

.tq-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.tq-catalog-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce5f5;
  border-radius: 1.8rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 0.8rem 2.4rem rgba(18, 34, 89, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tq-catalog-card:hover,
.tq-catalog-card:focus-visible {
  transform: translateY(-0.5rem);
  border-color: #2679ff;
  box-shadow: 0 1.8rem 4.2rem rgba(18, 34, 89, 0.15);
}

.tq-catalog-card:focus-visible {
  outline: 3px solid rgba(38, 121, 255, 0.35);
  outline-offset: 3px;
}

.tq-catalog-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #dfe9f8;
}

.tq-catalog-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tq-catalog-card:hover .tq-catalog-card__media img,
.tq-catalog-card:focus-visible .tq-catalog-card__media img {
  transform: scale(1.045);
}

.tq-catalog-card__body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  padding: 2rem;
}

.tq-catalog-card__eyebrow {
  margin-bottom: 0.9rem;
  color: #1554ba;
  font-family: var(--intelMono, monospace);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.tq-catalog-card__body > strong {
  color: #172454;
  font-size: 1.72rem;
  line-height: 1.3;
}

.tq-catalog-card__summary {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 1rem;
  color: #53617a;
  font-size: 1.28rem;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tq-catalog-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.6rem;
  color: #1554ba;
  font-size: 1.3rem;
  font-weight: 700;
}

.tq-catalog-toolbar {
  position: relative;
  top: auto;
}

.tq-empty-state {
  margin: 2rem 0 0;
  padding: 2rem;
  border: 1px dashed #a9bee0;
  border-radius: 1.2rem;
  background: #f5f8fd;
  color: #435271;
  font-size: 1.4rem;
  text-align: center;
}

.tq-catalog-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  margin-top: clamp(5rem, 8vw, 9rem);
  padding: clamp(3rem, 5vw, 6rem);
  border-radius: 2.4rem;
  background: linear-gradient(130deg, #111d49, #1c357c);
  color: #fff;
}

.tq-catalog-cta h2,
.tq-catalog-cta p,
.tq-catalog-cta .tq-kicker {
  color: #fff;
}

.tq-catalog-cta > div {
  max-width: 78rem;
}

.tq-catalog-cta .tq-btn {
  flex: 0 0 auto;
  background: #2679ff;
}

.tq-detail-summary dl > div {
  display: contents;
}

.tq-detail-summary dt {
  color: #92baff;
  font-size: 1.12rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tq-detail-summary dd {
  margin: 0;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.45;
}

.tq-detail-nav {
  position: sticky;
  top: 1rem;
  z-index: 30;
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  margin: 0 0 3rem;
  padding: 1rem;
  border: 1px solid #d9e3f3;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0.8rem 2.2rem rgba(18, 34, 89, 0.08);
  scrollbar-width: thin;
}

.tq-detail-nav a {
  flex: 0 0 auto;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: #eef5ff;
  color: #1554ba;
  font-size: 1.18rem;
  font-weight: 700;
  text-decoration: none;
}

.tq-detail-sections {
  display: grid;
  gap: 1.6rem;
}

.tq-detail-section {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1.8rem;
  padding: clamp(2.2rem, 4vw, 4rem);
  border: 1px solid #dfe7f4;
  border-radius: 1.8rem;
  background: #fff;
  box-shadow: 0 0.6rem 2rem rgba(18, 34, 89, 0.05);
  scroll-margin-top: 10rem;
}

.tq-detail-section__number {
  display: grid;
  width: 4.5rem;
  height: 4.5rem;
  place-items: center;
  border-radius: 1.2rem;
  background: #172454;
  color: #fff;
  font-family: var(--intelMono, monospace);
  font-size: 1.3rem;
  font-weight: 700;
}

.tq-detail-section h2 {
  margin: 0 0 1.2rem;
  color: #172454;
  font-size: clamp(1.9rem, 2.2vw, 2.6rem);
}

.tq-detail-section p,
.tq-detail-section li {
  color: #4e5b73;
  font-size: 1.38rem;
  line-height: 1.7;
}

.tq-detail-section p:last-child,
.tq-detail-section ul:last-child {
  margin-bottom: 0;
}

.tq-detail-section ul {
  display: grid;
  gap: 0.7rem;
  padding-left: 2rem;
}

.tq-detail-spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.tq-detail-spec div {
  padding: 1.3rem;
  border-radius: 1rem;
  background: #f3f7fd;
}

.tq-detail-spec dt {
  color: #1554ba;
  font-size: 1.15rem;
  font-weight: 700;
}

.tq-detail-spec dd {
  margin: 0.4rem 0 0;
  color: #34415d;
  font-size: 1.3rem;
  line-height: 1.5;
}

.tq-catalog-grid--related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1023px) {
  .tq-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tq-catalog-intro,
  .tq-detail-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .tq-catalog-grid,
  .tq-catalog-grid--related,
  .tq-detail-spec {
    grid-template-columns: 1fr;
  }

  .tq-catalog-card__body {
    padding: 1.7rem;
  }

  .tq-catalog-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .tq-detail-section {
    grid-template-columns: 1fr;
  }

  .tq-detail-nav {
    top: 0;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tq-catalog-card,
  .tq-catalog-card__media img {
    transition: none;
  }
}

@media (max-width: 900px) {
  .nav-handle {
    z-index: 1200 !important;
  }

  nav,
  nav.active,
  #nav,
  #nav.active {
    z-index: 1100 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body.nav-open {
    overflow: hidden !important;
    touch-action: none;
  }
}

header {
  position: relative;
  z-index: 1000;
}

/* Desktop utility navigation inspired by the compact Intertek topbar. */
.site-utility-bar {
  position: relative;
  z-index: 1001;
  display: none;
  min-height: 3.6rem;
  border-bottom: 1px solid #e5e9f0;
  background: #fff;
  color: #1a224e;
  font-family: var(--inter);
  text-align: left;
}

.site-utility-bar__inner {
  display: flex;
  box-sizing: border-box;
  width: min(100%, 144rem);
  min-height: 3.6rem;
  margin: 0 auto;
  padding: 0 clamp(1.6rem, 2.4vw, 4rem);
  align-items: stretch;
  justify-content: space-between;
}

.site-utility-contact {
  display: flex;
  min-width: 0;
  min-height: 3.6rem;
  margin-right: auto;
  align-items: stretch;
}

.site-utility-contact a {
  gap: 0.65rem;
  padding: 0 1.2rem;
  border-left: 0;
  border-right: 1px solid #edf0f5;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.site-utility-contact__icon {
  display: block;
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  max-width: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-utility-menu {
  display: flex;
  min-height: 3.6rem;
  margin: 0;
  padding: 0;
  align-items: stretch;
  justify-content: flex-end;
  list-style: none;
}

.site-utility-menu > li {
  position: relative;
  display: flex;
  margin: 0;
  padding: 0;
  align-items: stretch;
}

.site-utility-bar a {
  display: inline-flex;
  min-height: 3.6rem;
  padding: 0 1.7rem;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #edf0f5;
  color: #1a224e;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.site-utility-bar a:hover,
.site-utility-bar a:focus-visible,
.site-utility-bar a.active {
  background: #eef5ff;
  color: #1554ba;
  filter: none;
}

.site-utility-bar a:focus-visible {
  outline: 2px solid #2679ff;
  outline-offset: -2px;
}

.site-utility-bar__global {
  gap: 0.55rem;
  border-right: 1px solid #edf0f5;
}

.site-utility-menu__caret {
  width: 0.65rem;
  height: 0.65rem;
  margin: -0.35rem 0 0 0.7rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.site-utility-menu__has-children:hover > a .site-utility-menu__caret,
.site-utility-menu__has-children:focus-within > a .site-utility-menu__caret {
  margin-top: 0.2rem;
  transform: rotate(225deg);
}

.site-utility-menu > li > ul {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1010;
  display: none;
  min-width: 25rem;
  margin: 0;
  padding: 0.7rem;
  border: 1px solid #e1e6ef;
  border-radius: 0 0 1.2rem 1.2rem;
  background: #fff;
  box-shadow: 0 1.4rem 3rem rgba(16, 32, 81, 0.18);
  list-style: none;
}

.site-utility-menu > li:hover > ul,
.site-utility-menu > li:focus-within > ul {
  display: block;
}

.site-utility-menu > li > ul > li {
  margin: 0;
  padding: 0;
}

.site-utility-menu > li > ul a {
  box-sizing: border-box;
  width: 100%;
  min-height: 3.8rem;
  padding: 0.8rem 1.2rem;
  justify-content: flex-start;
  border: 0;
  border-radius: 0.7rem;
  font-size: 1.2rem;
  line-height: 1.35;
  white-space: normal;
}

/* Lucide ExternalLink icon for topbar dropdown destinations opening a new tab. */
.site-utility-menu > li > ul a[target="_blank"]::after {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  background-color: currentColor;
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.18s ease;
}

.site-utility-menu > li > ul a[target="_blank"]:hover::after,
.site-utility-menu > li > ul a[target="_blank"]:focus-visible::after {
  transform: translate(0.15rem, -0.15rem);
}

.site-utility-bar__global svg {
  display: block;
  width: 1.4rem;
  height: 1.4rem;
  max-width: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-utility-bar__global .site-utility-bar__chevron {
  width: 1.1rem;
  height: 1.1rem;
}

@media (min-width: 901px) {
  .site-utility-bar {
    display: block;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .site-utility-bar__inner {
    padding: 0 clamp(0.6rem, 1.2vw, 1.6rem);
  }

  .site-utility-bar a {
    padding: 0 clamp(0.45rem, 0.7vw, 1.2rem);
  }
}

@media (min-width: 901px) and (max-width: 1240px) {
  .site-utility-contact {
    display: flex;
    flex: 0 0 auto;
  }

  .site-utility-contact a {
    gap: clamp(0.35rem, 0.45vw, 0.65rem);
    padding: 0 clamp(0.45rem, 0.7vw, 1.2rem);
    font-size: clamp(0.9rem, calc(0.45rem + 0.55vw), 1.05rem);
  }

  .site-utility-contact__icon {
    width: clamp(1.1rem, 1.2vw, 1.35rem);
    height: clamp(1.1rem, 1.2vw, 1.35rem);
  }

  .site-utility-menu {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .site-utility-menu > li > a {
    padding: 0 clamp(0.45rem, 0.7vw, 1.2rem);
    font-size: clamp(0.9rem, calc(0.45rem + 0.55vw), 1.1rem);
  }

  .site-utility-menu__caret {
    width: 0.55rem;
    height: 0.55rem;
    margin-left: clamp(0.35rem, 0.45vw, 0.7rem);
  }
}

/* Regional office directory in the shared footer. */
footer .footer-offices {
  width: min(118rem, 100%);
  margin: 5rem auto 0;
  padding: 3.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2.4rem;
  background:
    radial-gradient(circle at 100% 0, rgba(38, 121, 255, 0.18), transparent 38%),
    rgba(255, 255, 255, 0.045);
  text-align: left;
}

footer .footer-offices-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.4rem;
}

footer .footer-offices-kicker {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--lightBlue);
  font-family: var(--intelMono);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

footer .footer-offices-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 3vw, 3.6rem);
  line-height: 1.08;
}

footer .footer-offices-all {
  flex: 0 0 auto;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
}

footer .footer-offices-all span {
  display: inline-block;
  margin-left: 0.4rem;
  color: var(--lightBlue);
  transition: transform 0.2s ease;
}

footer .footer-offices-all:hover span,
footer .footer-offices-all:focus-visible span {
  transform: translateX(0.4rem);
}

footer .footer-offices-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

footer .footer-office-card {
  position: relative;
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  min-height: 10.5rem;
  padding: 1.6rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.6rem;
  background: rgba(10, 18, 54, 0.56);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

footer .footer-office-card:hover,
footer .footer-office-card:focus-visible {
  transform: translateY(-0.3rem);
  border-color: rgba(38, 121, 255, 0.75);
  background: rgba(24, 42, 94, 0.78);
  outline: none;
}

footer .footer-office-flag {
  display: flex;
  width: 5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.7rem;
  background: #fff;
  box-shadow: 0 0.8rem 1.8rem rgba(0, 0, 0, 0.18);
}

footer .footer-office-flag img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

footer .footer-office-copy {
  display: block;
  min-width: 0;
}

footer .footer-office-country,
footer .footer-office-address {
  display: block;
}

footer .footer-office-country {
  margin-bottom: 0.35rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

footer .footer-office-address {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.15rem;
  line-height: 1.35;
}

footer .footer-office-code {
  align-self: start;
  padding: 0.3rem 0.5rem;
  border-radius: 0.5rem;
  background: rgba(38, 121, 255, 0.16);
  color: #9fc1ff;
  font-family: var(--intelMono);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

@media (max-width: 1100px) {
  footer .footer-offices-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  footer .footer-offices {
    margin-top: 3.5rem;
    padding: 2.2rem 1.6rem;
    border-radius: 1.8rem;
  }

  footer .footer-offices-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 1.8rem;
  }

  footer .footer-offices-grid {
    grid-template-columns: 1fr;
  }

  footer .footer-office-card {
    min-height: 8.8rem;
    padding: 1.4rem;
  }
}

/* Size the moving hover pill from the hovered link, not the tallest menu row. */
#nav > .nav > li > button {
  border: 0;
  margin: 0;
  line-height: inherit;
  cursor: default;
}

@media (min-width: 901px) {
  #nav > .nav > li.current-section > a,
  #nav > .nav > li.current-section > button {
    position: relative;
    z-index: 25 !important;
    color: #fff;
    background: var(--lightBlue);
    border-radius: 999px;
  }

  #nav > .nav > li.current-section > a::after,
  #nav > .nav > li.current-section > button::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.8rem;
    width: 1.6rem;
    height: 0.8rem;
    background: var(--lightBlue);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: none;
  }

  header {
    box-sizing: border-box;
    width: 100%;
    max-width: 144rem;
    padding: 0 clamp(1.6rem, 2.4vw, 4rem);
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.2rem, 1.8vw, 2.8rem);
  }

  header::after {
    left: clamp(12.8rem, 11vw, 16.5rem);
    right: clamp(1.6rem, 2.4vw, 4rem);
  }

  header .logo {
    flex: 0 0 auto;
    min-width: 0;
  }

  header .logo .logoSm {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: clamp(9.2rem, 7.2vw, 12.3rem);
    margin-right: clamp(1.2rem, 1.3vw, 2.2rem);
    padding: clamp(1.6rem, 1.5vw, 2.4rem) clamp(1.4rem, 1.3vw, 2rem) clamp(1.4rem, 1.3vw, 2rem) clamp(2rem, 1.8vw, 3rem);
  }

  header .logo .logoFull {
    min-width: 0 !important;
    width: auto;
    white-space: nowrap;
    font-size: clamp(1.65rem, 1.35vw, 2.15rem);
    line-height: 1.12;
  }

  header .logo .logoFull small {
    display: block;
    line-height: 1.2;
    margin-top: 0.35rem;
    font-size: clamp(0.85rem, 0.65vw, 0.98rem);
    white-space: normal;
  }

  header nav#nav {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.4rem, 0.6vw, 0.9rem);
  }

  #nav > .nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
  }

  #nav > .nav > li {
    flex: 0 0 auto;
  }

  #nav > .nav > li > a,
  #nav > .nav > li > button {
    white-space: nowrap;
    padding: 1.1rem clamp(0.38rem, 0.5vw, 0.8rem);
    font-size: clamp(1.08rem, calc(0.45rem + 0.63vw), 1.5rem);
    letter-spacing: clamp(0.015em, 0.035vw, 0.05em);
    line-height: 1.15;
  }

  #nav > .secondary-nav {
    flex: 0 0 auto;
    gap: clamp(0.45rem, 0.6vw, 0.9rem);
  }

  .secondary-nav .nav-social {
    margin: 0;
  }

  .secondary-nav .nav-social a {
    width: clamp(2.8rem, 2.1vw, 3.4rem);
    height: clamp(2.8rem, 2.1vw, 3.4rem);
    padding: 0.65rem;
  }

  /* Keep right-side dropdowns and search form inside the viewport */
  .search-form {
    right: 0 !important;
    left: auto !important;
    pointer-events: none;
  }

  .nav-search.active .search-form {
    pointer-events: auto;
  }

  .secondary-nav > li.nav-locations > ul {
    left: auto !important;
    right: 0 !important;
  }

  #nav > .nav > li.nav-advisory > ul,
  #nav > .nav > li.nav-contact > ul,
  #nav > .nav > li:last-child > ul {
    left: auto !important;
    right: 0 !important;
  }

  #nav > .nav > li.nav-advisory > ul::before,
  #nav > .nav > li.nav-contact > ul::before,
  #nav > .nav > li:last-child > ul::before {
    left: auto !important;
    right: 3.6rem !important;
  }

  #nav > .pill {
    box-sizing: border-box;
    z-index: 5 !important;
    pointer-events: none !important;
  }

  #nav > .nav > li.nav-label-wrapped > a,
  #nav > .nav > li.nav-label-wrapped > button {
    box-sizing: border-box;
    width: 100%;
    padding-right: 0.8rem;
  }

  #nav > .nav > li.nav-label-wrapped {
    flex: 0 0 var(--nav-wrapped-width);
    width: var(--nav-wrapped-width);
  }

  #nav > .pill::after {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    bottom: -0.8rem;
    width: 1.6rem;
    height: 0.8rem;
    background: var(--lightBlue);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform: translateX(-50%);
    pointer-events: none !important;
  }

  #nav > .nav > li {
    position: relative;
  }

  #nav > .nav > li > a,
  #nav > .nav > li > button {
    position: relative;
    z-index: 20;
    pointer-events: auto;
  }

  #nav > .nav > li > ul {
    top: 100% !important;
    transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease !important;
    transition-delay: 0s !important;
    pointer-events: none;
  }

  /* Invisible hover bridge extending upward from dropdown menu to eliminate any dead zone */
  #nav > .nav > li > ul::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: -2rem !important;
    left: -1rem !important;
    right: -1rem !important;
    height: 2.2rem !important;
    background: transparent !important;
    pointer-events: auto !important;
    z-index: 100 !important;
  }

  #nav > .nav > li > ul::after {
    display: none;
  }

  #nav > .nav > li:hover > button,
  #nav > .nav > li:focus-within > button,
  #nav > .nav > li.is-hovered > button {
    z-index: 50 !important;
  }

  #nav > .nav > li:hover > ul,
  #nav > .nav > li:focus-within > ul,
  #nav > .nav > li.is-hovered > ul {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    transition-delay: 0s !important;
    pointer-events: auto !important;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  header .logo .logoFull small {
    display: none;
  }

  .secondary-nav .nav-social {
    display: none;
  }
}

@media (max-width: 900px) {
  #nav,
  #nav.active {
    box-sizing: border-box;
    top: 1rem !important;
    right: 1rem !important;
    bottom: auto !important;
    left: auto !important;
    width: min(38rem, calc(100vw - 2rem)) !important;
    max-width: none;
    max-height: calc(100dvh - 2rem);
    margin-left: auto;
    padding: 0;
    border: 1px solid rgba(144, 170, 212, 0.32);
    border-radius: 1.8rem;
    background: #282b3b;
    box-shadow: 0 1.8rem 4rem rgba(7, 14, 42, 0.38);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(144, 170, 212, 0.55) transparent;
    scrollbar-width: thin;
  }

  #nav > .nav {
    display: block;
    margin: 0;
    padding: 0;
  }

  #nav > .nav > li {
    position: relative;
    width: 100%;
    height: auto !important;
    min-height: 5.2rem;
    margin: 0;
    border-bottom: 1px solid rgba(144, 170, 212, 0.12);
  }

  #nav > .nav > li:last-child {
    border-bottom: 0;
  }

  #nav > .nav > li:first-child > a,
  #nav > .nav > li:first-child > button {
    border-radius: 1.7rem 1.7rem 0 0;
  }

  #nav > .nav > li > a,
  #nav > .nav > li > button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 5.2rem;
    padding: 1.25rem 5.6rem 1.25rem 2rem;
    text-align: left;
    line-height: 1.35;
  }

  #nav > .nav > li.current-section > a,
  #nav > .nav > li.current-section > button {
    background: var(--lightBlue);
    color: #fff;
  }

  #nav > .nav > li > button {
    width: 100%;
    text-align: left;
    font-size: 1.7rem;
    padding: 1rem 2rem;
    position: relative;
    z-index: 5;
    background: var(--navBlue);
    border-top: 1px solid transparent;
  }

  #nav > .nav > li.active > button {
    background: #202333;
  }

  #nav > .nav > li.current-section.active > button {
    background: var(--lightBlue);
  }

  #nav > .nav > li > .show-children {
    position: absolute;
    z-index: 20;
    top: 0;
    right: 0;
    left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.2rem;
    height: 5.2rem;
    cursor: pointer;
  }

  #nav > .nav > li > .show-children::after {
    content: "";
    width: 0.8rem;
    height: 0.8rem;
    border-right: 2px solid #90aad4;
    border-bottom: 2px solid #90aad4;
    transform: rotate(45deg) translate(-0.2rem, -0.2rem);
    transition: transform 0.18s ease;
  }

  #nav > .nav > li.current-section > .show-children::after {
    border-color: #fff;
  }

  #nav > .nav > li.active > .show-children::after {
    transform: rotate(225deg) translate(-0.1rem, -0.1rem);
  }

  #nav > .nav > li > ul {
    position: static !important;
    display: none !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0.5rem 1rem 1rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #202333 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  #nav > .nav > li.active > ul {
    display: block !important;
  }

  #nav > .nav > li > ul > li > a {
    display: flex;
    align-items: flex-start;
    min-height: 4.2rem;
    padding: 1rem 1.2rem 1rem 3rem;
    border-radius: 0.8rem;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1.45;
  }

  #nav > .nav > li > ul > li > a::before {
    left: 1.2rem;
  }

  #nav > .nav > li > ul > li.active > a,
  #nav > .nav > li > ul > li.current-menu-item > a,
  #nav > .nav > li > ul > li > a.active,
  #nav > .nav > li > ul > li > a[aria-current] {
    background: rgba(38, 121, 255, 0.28) !important;
    box-shadow: inset 4px 0 0 #2679ff !important;
    color: #72b0ff !important;
    font-weight: 700 !important;
  }

  #nav > .secondary-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    width: 100%;
    margin: 0 !important;
    padding: 1.2rem 1.6rem 1.4rem !important;
    border-top: 1px solid rgba(144, 170, 212, 0.28);
    border-radius: 0 0 1.7rem 1.7rem;
    background: #242737;
  }

  #nav > .secondary-nav > li {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #nav > .secondary-nav > li.nav-locations {
    flex: 1 0 100% !important;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  #nav > .secondary-nav .show-locations {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    width: auto;
    min-height: 4rem;
    padding: 0.4rem 0.2rem;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 0;
  }

  #nav > .secondary-nav .show-locations::before {
    content: "";
    width: 2rem;
    height: 2rem;
    background: #90aad4;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-8 12-8 12S4 15 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-8 12-8 12S4 15 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  #nav > .secondary-nav .show-locations::after {
    content: "";
    width: 0.7rem;
    height: 0.7rem;
    margin-left: 0.2rem;
    border-right: 2px solid #90aad4;
    border-bottom: 2px solid #90aad4;
    transform: rotate(45deg) translate(-0.1rem, -0.1rem);
    transition: transform 0.18s ease;
  }

  #nav > .secondary-nav .show-locations > span {
    position: static !important;
    display: inline !important;
    width: auto !important;
    height: auto !important;
    clip: auto !important;
    overflow: visible !important;
    visibility: visible !important;
    white-space: nowrap;
    font-size: 1.2rem !important;
    letter-spacing: 0.08em;
  }

  #nav > .secondary-nav .nav-locations.active .show-locations::after {
    transform: rotate(225deg);
  }

  #nav > .secondary-nav > li.nav-locations > ul {
    position: static !important;
    display: none !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0.6rem 0 0 !important;
    padding: 1rem !important;
    border: 1px solid rgba(144, 170, 212, 0.2) !important;
    border-radius: 1rem !important;
    background: #1f2231 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  #nav > .secondary-nav > li.nav-locations.active > ul {
    display: grid !important;
  }

  #nav > .secondary-nav > li.nav-locations > ul > li {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #nav > .secondary-nav > li.nav-locations > ul > li > a {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4.2rem;
    padding: 0.7rem 0.9rem;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.035);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    text-decoration: none;
  }

  #nav > .secondary-nav > li.nav-locations > ul > li > a:hover,
  #nav > .secondary-nav > li.nav-locations > ul > li > a:focus-visible {
    background: rgba(38, 121, 255, 0.18);
  }

  #nav > .secondary-nav > li.nav-locations > ul img {
    flex: 0 0 auto;
    width: 3.4rem;
    height: 2.2rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 0.3rem;
    background: #fff;
    object-fit: contain;
  }

  #nav > .secondary-nav .nav-search {
    margin-left: auto !important;
  }

  #nav > .secondary-nav .show-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    padding: 1rem;
  }

  #nav > .secondary-nav .show-search > span {
    display: none;
  }

  #nav > .secondary-nav .nav-search .search-form {
    right: 0 !important;
    left: auto !important;
    width: min(32rem, calc(100vw - 4.8rem));
  }
}

@media (max-width: 480px) {
  #nav,
  #nav.active {
    top: 0.7rem !important;
    right: 0.7rem !important;
    width: calc(100vw - 1.4rem) !important;
    max-height: calc(100dvh - 1.4rem);
    border-radius: 1.5rem;
  }

  #nav > .nav > li,
  #nav > .nav > li > a,
  #nav > .nav > li > button {
    min-height: 4.8rem;
  }

  #nav > .nav > li > .show-children {
    width: 4.8rem;
    height: 4.8rem;
  }

  #nav > .nav > li > a,
  #nav > .nav > li > button {
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 1.55rem;
  }
}

/* Arabia team directory */
body.meet-our-team main > article {
  padding-top: 8rem;
}

.arabia-team-intro {
  max-width: 86rem;
  margin: 0 auto 4rem;
  text-align: center;
}

.arabia-team-intro h2 {
  margin-bottom: 1.4rem;
  color: var(--darkBlue);
}

.arabia-team-intro p {
  color: #4c5874;
  font-size: 1.8rem;
}

.arabia-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 2.4rem;
  margin: 0;
}

article.arabia-team-card {
  display: flex;
  position: relative;
  z-index: auto;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #dce5f3;
  border-radius: 2rem;
  background: #f8faff;
  box-shadow: 0 1.2rem 3rem rgba(26, 34, 78, 0.08);
  text-align: left;
}

.arabia-team-card__image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

.arabia-team-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.arabia-team-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 2.2rem;
}

/* Arabia and regional auditor directory */
.regional-auditors {
  margin: 1rem 0 7rem;
}

.regional-auditors__intro {
  max-width: 82rem;
  margin-bottom: 3rem;
}

.regional-auditors__intro h2,
.regional-auditors__network-heading h2 {
  margin: 0.7rem 0 1rem;
  color: var(--darkBlue);
}

.regional-auditors__intro p {
  margin: 0;
  color: #4c5874;
  font-size: 1.8rem;
}

.regional-auditors__eyebrow {
  color: #1554ba;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.regional-auditor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(27rem, 1fr));
  gap: 2.4rem;
}

article.regional-auditor-card {
  display: flex;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #dce5f3;
  border-radius: 2rem;
  background: #f8faff;
  box-shadow: 0 1.2rem 3rem rgba(26, 34, 78, 0.08);
  text-align: left;
}

.regional-auditor-card__portrait {
  display: grid;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  place-items: center;
  background: #fff;
}

.regional-auditor-card__portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.regional-auditor-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 2.2rem;
}

.regional-auditor-card__region {
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #e5efff;
  color: #1554ba;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.regional-auditor-card h3 {
  margin: 0 0 0.6rem;
  color: var(--darkBlue);
  font-size: clamp(2rem, 1.8vw, 2.5rem);
  line-height: 1.2;
}

.regional-auditor-card__role {
  margin: 0 0 1.2rem;
  color: #1554ba;
  font-weight: 700;
}

.regional-auditor-card__body > p:not(.regional-auditor-card__role) {
  margin-bottom: 1.5rem;
  color: #4c5874;
}

.regional-auditor-card__link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  color: #1554ba;
  font-weight: 700;
  text-decoration: none;
}

.regional-auditor-card__link::after {
  margin-left: 0.6rem;
  content: "↗";
}

.regional-auditors__network-heading {
  margin: 0 0 2.4rem;
  padding-top: 1rem;
  border-top: 1px solid #dce5f3;
}

@media (max-width: 700px) {
  .regional-auditors {
    margin-bottom: 5rem;
  }

  .regional-auditors__intro p {
    font-size: 1.6rem;
  }

  .regional-auditor-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

.arabia-team-card__country {
  width: fit-content;
  margin-bottom: 1.1rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #e5efff;
  color: #1554ba;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.arabia-team-card h2 {
  margin: 0 0 0.5rem;
  color: var(--darkBlue);
  font-size: clamp(2rem, 1.8vw, 2.5rem);
  line-height: 1.2;
}

.arabia-team-card__role {
  min-height: 4.6rem;
  margin-bottom: 1.6rem;
  color: #46536f;
  line-height: 1.45;
}

.arabia-team-card__contacts {
  display: grid;
  gap: 0.7rem;
  margin: auto 0 1.6rem;
  padding: 0;
  list-style: none;
}

.arabia-team-card__contacts li {
  margin: 0;
}

.arabia-team-card__contacts a,
.arabia-team-card__office {
  overflow-wrap: anywhere;
}

.arabia-team-card__office {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #1554ba;
  font-weight: 700;
  text-decoration: none;
}

.arabia-team-card__office::after {
  margin-left: 0.6rem;
  content: "→";
}

@media (max-width: 700px) {
  body.meet-our-team main > article {
    padding-top: 4rem;
  }

  .arabia-team-intro {
    margin-bottom: 3rem;
    text-align: left;
  }

  .arabia-team-intro p {
    font-size: 1.6rem;
  }

  .arabia-team-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .arabia-team-card__role {
    min-height: 0;
  }
}

/* First-level dropdown links use a Lucide-style line chevron; nested links keep dots. */
#nav > .nav > li > ul > li > a {
  position: relative;
  display: block;
  padding-left: 1.55rem;
  text-indent: 0;
  white-space: normal;
}

#nav > .nav > li > ul > li > a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.7rem;
  height: 0.9rem;
  margin: 0;
  background: url("../img/nav-chevron.svg") center / contain no-repeat;
  transform: translateY(-50%);
}
#nav > .nav > li > ul > li > a.nav-link-wrapped::before {
  top: calc((1.6em - 0.9rem) / 2 + 0.2rem);
  transform: none;
}

/* Keep the current dropdown destination visible on category and detail pages. */
#nav > .nav > li > ul > li.active > a,
#nav > .nav > li > ul > li.current-menu-item > a,
#nav > .nav > li > ul > li.current_page_item > a,
#nav > .nav > li > ul > li > a.active,
#nav > .nav > li > ul > li > a.current-menu-item,
#nav > .nav > li > ul > li > a.current_page_item,
#nav > .nav > li > ul > li > a[aria-current],
.nav > li > ul > li.active > a,
.nav > li > ul > li.current-menu-item > a,
.nav > li > ul > li.current_page_item > a,
.nav > li > ul > li > a.active,
.nav > li > ul > li > a[aria-current] {
  display: block !important;
  border-radius: 0.6rem !important;
  background: rgba(38, 121, 255, 0.28) !important;
  box-shadow: inset 4px 0 0 #2679ff !important;
  color: #72b0ff !important;
  font-weight: 700 !important;
  padding-left: 2.2rem !important;
  padding-right: 1.2rem !important;
  padding-top: 0.8rem !important;
  padding-bottom: 0.8rem !important;
  margin: 0.2rem 0 !important;
  line-height: 1.35 !important;
}

#nav > .nav > li > ul > li.active > a::before,
#nav > .nav > li > ul > li.current-menu-item > a::before,
#nav > .nav > li > ul > li.current_page_item > a::before,
#nav > .nav > li > ul > li > a.active::before,
#nav > .nav > li > ul > li > a[aria-current]::before,
.nav > li > ul > li.active > a::before,
.nav > li > ul > li.current-menu-item > a::before,
.nav > li > ul > li > a.active::before,
.nav > li > ul > li > a[aria-current]::before {
  left: 0.8rem !important;
  opacity: 1 !important;
  filter: brightness(0) saturate(100%) invert(48%) sepia(89%) saturate(1832%) hue-rotate(202deg) brightness(101%) contrast(105%) !important;
  transform: translateY(-50%) translateX(2px) !important;
}

/* Header social icons (replace login/training icons) */
.secondary-nav .nav-social {
  display: inline-flex;
  align-items: center;
  list-style: none;
  margin: 0 0.15rem;
}
.secondary-nav .nav-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 3.6rem;
  height: 3.6rem;
  padding: 0.9rem;
  opacity: 0.9;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.secondary-nav .nav-social a:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.secondary-nav .nav-social img {
  width: 1.6rem;
  height: 1.6rem;
  display: block;
  object-fit: contain;
  padding: 0;
  box-sizing: content-box;
}
@media (max-width: 900px) {
  .secondary-nav .nav-social {
    display: inline-flex;
    margin: 0.35rem 0.25rem;
  }
  .secondary-nav .nav-social a {
    width: 4rem;
    height: 4rem;
    padding: 1rem;
  }
}

/* Home process: right image fills its column */
.home-process .process-right img,
.home-process .process-right .process-right-img {
  width: 100%;
  height: 100%;
  min-height: 32rem;
  max-height: 42rem;
  object-fit: cover;
  object-position: center;
  display: block;
}

/*
 * Failsafe: .appear must never stay invisible if JS/IntersectionObserver fails.
 * style.css starts sections at opacity:0 until .inview is added.
 */
.appear {
  opacity: 1;
  transform: none;
}
.appear.inview {
  opacity: 1;
  transform: none;
}

/* Scroll to top */
#azad-scroll-top {
  position: fixed;
  right: 2.2rem;
  bottom: 1.6rem;
  z-index: 9999;
  width: 4.4rem;
  height: 4.4rem;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a3a6b;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  transform: translateY(8px);
}
#azad-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
#azad-scroll-top:hover {
  background: #254f8f;
}
#azad-scroll-top svg {
  width: 1.8rem;
  height: 1.8rem;
  display: block;
}
@media (max-width: 700px) {
  #azad-scroll-top {
    right: 1.8rem;
    bottom: 1.2rem;
    width: 4rem;
    height: 4rem;
  }
}

/* Floating WhatsApp contact */
#azad-whatsapp-chat {
  position: fixed;
  right: 1.6rem;
  bottom: 7.2rem;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 5.6rem;
  max-width: 22rem;
  height: 5.6rem;
  padding: 0.6rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  box-shadow: none;
  overflow: hidden;
  text-decoration: none;
  transition: width 0.24s ease, background-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

#azad-whatsapp-chat img {
  flex: 0 0 4.4rem;
  width: 4.4rem;
  height: 4.4rem;
  display: block;
}

#azad-whatsapp-chat .azad-whatsapp-label {
  flex: 0 0 auto;
  margin: 0 1.1rem 0 0.8rem;
  opacity: 0;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(0.5rem);
  transition: opacity 0.18s ease 0.04s, transform 0.18s ease 0.04s;
}

@media (hover: hover) and (pointer: fine) {
  #azad-whatsapp-chat:hover,
  #azad-whatsapp-chat:focus-visible {
    width: 21.4rem;
    background: #25d366;
    box-shadow: 0 1rem 3rem rgba(13, 86, 56, 0.3);
    transform: translateY(-0.2rem);
  }

  #azad-whatsapp-chat:hover .azad-whatsapp-label,
  #azad-whatsapp-chat:focus-visible .azad-whatsapp-label {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 700px) {
  #azad-whatsapp-chat {
    right: 1.2rem;
    bottom: 6.4rem;
    width: 5.2rem;
    height: 5.2rem;
    padding: 0.5rem;
  }

  #azad-whatsapp-chat img {
    flex-basis: 4.2rem;
    width: 4.2rem;
    height: 4.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #azad-whatsapp-chat,
  #azad-whatsapp-chat .azad-whatsapp-label {
    transition: none;
  }
}

/* reCAPTCHA v3: show full badge briefly, then retain the right-side logo chip. */
.grecaptcha-badge {
  visibility: visible !important;
  opacity: 1 !important;
  left: 0 !important;
  right: auto !important;
  bottom: 14px !important;
  z-index: 9990 !important;
  height: 60px !important;
  max-height: 60px !important;
  overflow: hidden !important;
  width: 70px !important;
  max-width: 70px !important;
  transform: none !important;
  transform-origin: bottom left !important;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.22) !important;
  border-radius: 3px !important;
  margin: 0 !important;
  transition: width 0.45s ease !important;
}

.grecaptcha-badge.azad-recaptcha-expanded,
.grecaptcha-badge:hover,
.grecaptcha-badge:focus-within {
  width: 256px !important;
  max-width: 256px !important;
}

.grecaptcha-badge iframe {
  width: 256px !important;
  height: 60px !important;
  max-width: none !important;
  margin: 0 !important;
  transform: none !important;
  position: absolute !important;
  left: auto !important;
  right: 0 !important;
}

@media (max-width: 700px) {
  .grecaptcha-badge {
    left: 0 !important;
    right: auto !important;
    bottom: 14px !important;
  }
}

.formie-recaptcha-placeholder,
.fui-captcha.formie-recaptcha-placeholder {
  min-height: 0;
  margin: 0.25rem 0;
  overflow: visible;
}

/* Lucide ExternalLink: identify standalone webinar pages that open in a new tab. */
#nav > .nav > li > ul a[target="_blank"]::after {
  content: "";
  display: inline-block;
  width: 0.78em;
  height: 0.78em;
  margin-left: 0.38em;
  vertical-align: 0.02em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Keep external-link icons in the new service menus on one clean right edge. */
#nav > .nav > li > ul > li > a[target="_blank"] {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding-right: 1.25rem;
}

#nav > .nav > li > ul > li > a[target="_blank"]::after {
  flex: 0 0 auto;
  margin-top: 0.28em;
  margin-left: auto;
}

/* Webinar overview CTA: preserve readable text and provide clear interaction feedback. */
body.webinars-overview article a.button[href*="make-an-enquiry"] {
  color: #fff !important;
  background-color: var(--lightBlue);
  font-weight: 500;
  letter-spacing: 1px;
  box-shadow: 0 6px 14px rgba(26, 34, 78, 0.18);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, padding 0.2s ease;
}

body.webinars-overview article a.button[href*="make-an-enquiry"]:hover {
  color: #fff !important;
  background-color: #1554ba;
  filter: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(26, 34, 78, 0.28);
}

body.webinars-overview article a.button[href*="make-an-enquiry"]:focus-visible {
  color: #fff !important;
  background-color: #1554ba;
  outline: 3px solid rgba(38, 121, 255, 0.35);
  outline-offset: 3px;
}

/* True circle for home profile masks (Yaser Nazir portrait) */
.home-about .about-left .profile-mask,
.home-process .process-left .profile-mask {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
}
.home-about .about-left .profile-mask span.circle,
.home-process .process-left .profile-mask span.circle {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  bottom: auto;
  background: transparent;
}
.home-about .about-left .profile-mask img.profile,
.home-process .process-left .profile-mask img.profile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border-radius: 50%;
  background: transparent;
}

/* Home hero: enlarge Yaser Nazir circle photo 1.3x and shift it 30px down */
.home-process .process-left .profile-mask {
  width: 286px;
  height: 286px;
  top: calc(-12rem + 30px);
}

/* Standards pages: Why certify — person is a true circle (Yaser Nazir) */
body.standard .txt-img-block .images.w-circle:before {
  width: 22rem !important;
  height: 22rem !important;
  top: calc(50% - 11rem) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
body.standard .txt-img-block .images.w-circle img:first-child {
  width: 22rem !important;
  height: 22rem !important;
  top: calc(50% - 11rem) !important;
  border-radius: 50% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
}

/* Homepage webinars: image-led, accessible carousel cards. */
.home-webinars {
  --webinar-card-radius: 1.6rem;
  padding-bottom: 6rem;
}

.home-webinars .webinars-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3rem;
}

.home-webinars .webinars-heading > div:first-child {
  max-width: 76rem;
}

.home-webinars .webinars-eyebrow {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--lightBlue);
  font-family: var(--intelMono);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-webinars .webinars-heading h2 {
  margin: 0 0 1rem;
  text-align: left;
  line-height: 1.05;
}

.home-webinars .webinars-heading p {
  max-width: 64rem;
  margin: 0;
  color: #434f56;
  font-size: 1.65rem;
  line-height: 1.55;
}

.home-webinars .webinar-carousel-controls {
  position: absolute;
  top: -8.2rem;
  right: 0;
  display: flex;
  flex: 0 0 auto;
  gap: 1rem;
  z-index: 3;
}

.home-webinars .webinar-carousel-controls .splide__arrow {
  position: static;
  width: 4.8rem;
  height: 4.8rem;
  padding: 1.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
  opacity: 1;
  transform: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-webinars .webinar-carousel-controls .splide__arrow:hover,
.home-webinars .webinar-carousel-controls .splide__arrow:focus-visible {
  background: #1554ba;
  box-shadow: 0 8px 20px rgba(24, 65, 163, 0.24);
  transform: translateY(-2px);
}

.home-webinars .webinar-carousel-controls .splide__arrow:focus-visible {
  outline: 3px solid rgba(38, 121, 255, 0.28);
  outline-offset: 3px;
}

.home-webinars .webinar-carousel-controls .splide__arrow img {
  display: block;
  width: 100%;
  height: 100%;
}

.home-webinars .webinar-carousel {
  margin: 0;
  padding-bottom: 3.6rem;
}

.home-webinars .webinar-carousel .splide__track {
  overflow: visible;
  padding: 1rem 0 2rem;
}

.home-webinars .webinar-carousel .splide__slide {
  display: flex;
  min-width: 0;
}

.home-webinars .webinar-card {
  display: flex;
  width: 100%;
  min-height: 47rem;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(25, 45, 115, 0.1);
  border-radius: var(--webinar-card-radius);
  background: #fff;
  box-shadow: 0 14px 35px rgba(28, 43, 96, 0.1);
  color: var(--darkBlue);
  text-decoration: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.home-webinars .webinar-card:hover,
.home-webinars .webinar-card:focus-visible {
  border-color: rgba(38, 121, 255, 0.35);
  box-shadow: 0 22px 45px rgba(28, 43, 96, 0.18);
  color: var(--darkBlue);
  filter: none;
  transform: translateY(-7px);
}

.home-webinars .webinar-card:focus-visible {
  outline: 3px solid rgba(38, 121, 255, 0.3);
  outline-offset: 4px;
}

.home-webinars .webinar-card__image {
  position: relative;
  display: block;
  height: 22rem;
  overflow: hidden;
  background: linear-gradient(135deg, #16245f, #287aff);
}

.home-webinars .webinar-card__image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 22, 73, 0.24));
  content: "";
  pointer-events: none;
}

.home-webinars .webinar-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s ease;
}

.home-webinars .webinar-card:hover .webinar-card__image img,
.home-webinars .webinar-card:focus-visible .webinar-card__image img {
  transform: scale(1.045);
}

.home-webinars .webinar-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 2.4rem;
}

.home-webinars .webinar-card__content small {
  margin-bottom: 0.9rem;
  color: var(--lightBlue);
  font-family: var(--intelMono);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-webinars .webinar-card__content h3 {
  margin: 0 0 1.1rem;
  color: var(--darkBlue);
  font-size: 2.25rem;
  line-height: 1.18;
}

.home-webinars .webinar-card__content p {
  margin: 0 0 2rem;
  color: #434f56;
  font-size: 1.45rem;
  line-height: 1.55;
}

.home-webinars .webinar-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
  color: var(--blue);
  font-family: var(--intelMono);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-webinars .webinar-card__link::after {
  width: 1.3rem;
  height: 1.3rem;
  background-color: currentColor;
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
}

.home-webinars .webinar-card:hover .webinar-card__link::after {
  transform: translate(2px, -2px);
}

.home-webinars .webinar-carousel .splide__pagination {
  bottom: 0;
  gap: 0.45rem;
  padding: 0;
}

.home-webinars .webinar-carousel .splide__pagination__page {
  width: 0.8rem;
  height: 0.8rem;
  margin: 0;
  border: 1px solid rgba(25, 45, 115, 0.28);
  background: transparent;
  opacity: 1;
  transform: none;
}

.home-webinars .webinar-carousel .splide__pagination__page.is-active {
  width: 2.6rem;
  border-color: var(--blue);
  border-radius: 1rem;
  background: var(--blue);
}

.home-webinars .webinars-footer {
  display: flex;
  justify-content: center;
  margin-top: 0.8rem;
}

.home-webinars .webinars-footer .button {
  margin: 0;
  background: var(--blue);
}

@media (max-width: 700px) {
  .home-webinars {
    padding-bottom: 4rem;
  }

  .home-webinars .webinars-heading {
    display: block;
    margin-bottom: 1.8rem;
  }

  .home-webinars .webinars-heading h2 {
    max-width: 24rem;
    margin-bottom: 1rem;
    font-size: 3.2rem;
  }

  .home-webinars .webinars-heading p {
    font-size: 1.4rem;
  }

  .home-webinars .webinar-carousel-controls {
    display: none;
  }

  .home-webinars .webinar-carousel {
    margin-right: -2rem;
  }

  .home-webinars .webinar-carousel .splide__track {
    overflow: hidden;
    padding-right: 4rem;
  }

  .home-webinars .webinar-card {
    min-height: 43rem;
  }

  .home-webinars .webinar-card__image {
    height: 19rem;
  }

  .home-webinars .webinar-card__content {
    padding: 2rem;
  }

  .home-webinars .webinar-card__content h3 {
    font-size: 2rem;
  }

  .home-webinars .webinars-footer {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-webinars .webinar-card,
  .home-webinars .webinar-card__image img,
  .home-webinars .webinar-card__link::after,
  .home-webinars .webinar-carousel-controls .splide__arrow {
    transition: none;
  }
}

/* Our Offices CTAs: keep labels readable and dimensions stable in every state. */
body.our-offices article a.button {
  padding: 1.1rem 2rem;
  background-color: var(--lightBlue);
  color: #fff !important;
  filter: none;
  font-weight: 500;
  box-shadow: 0 0.6rem 1.4rem rgba(26, 34, 78, 0.18);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body.our-offices article a.button:hover,
body.our-offices article a.button:focus-visible {
  padding: 1.1rem 2rem;
  background-color: #1554ba;
  color: #fff !important;
  filter: none;
  transform: translateY(-0.2rem);
  box-shadow: 0 1rem 2.2rem rgba(26, 34, 78, 0.28);
}

body.our-offices article a.button:focus-visible {
  outline: 0.3rem solid rgba(38, 121, 255, 0.35);
  outline-offset: 0.3rem;
}

/* ==========================================================================
   TQCSI Arabia Service Hubs, Catalogues, Country Pages & Interactive Forms
   ========================================================================== */

.tq-hub-wrap {
  width: min(124rem, 100%);
  margin: 0 auto;
  padding: 2.8rem 2.4rem 6rem;
  box-sizing: border-box;
}

.tq-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 2.2rem;
  padding: 1rem 1.4rem;
  border: 1px solid #e2e8f2;
  border-radius: 1rem;
  background: #f8faff;
  font-size: 1.3rem;
  line-height: 1.4;
  color: #4a5678;
}

.tq-breadcrumbs a {
  color: #1554ba;
  font-weight: 600;
  text-decoration: none;
}

.tq-breadcrumbs a:hover,
.tq-breadcrumbs a:focus-visible {
  text-decoration: underline;
}

.tq-breadcrumbs__sep {
  color: #93a1be;
  user-select: none;
}

.tq-breadcrumbs__current {
  color: #1a224e;
  font-weight: 600;
}

.tq-lead-card {
  position: relative;
  margin: 0 0 3rem;
  padding: 2.8rem 3.2rem;
  border: 1px solid #dce5f5;
  border-radius: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #f3f7ff 100%);
  box-shadow: 0 1.2rem 3rem rgba(18, 34, 89, 0.06);
}

.tq-kicker {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: rgba(21, 84, 186, 0.1);
  color: #1554ba;
  font-family: var(--intelMono, monospace);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tq-lead-card h2 {
  margin: 0 0 1.2rem;
  color: #1a224e;
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  line-height: 1.18;
}

.tq-lead-card p {
  margin: 0 0 1.2rem;
  color: #364156;
  font-size: 1.6rem;
  line-height: 1.65;
}

.tq-lead-card p:last-child {
  margin-bottom: 0;
}

.tq-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2rem;
}

.tq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.15rem 2.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #1554ba;
  color: #fff !important;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.tq-btn:hover,
.tq-btn:focus-visible {
  background: #0f3f91;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 0.8rem 1.8rem rgba(21, 84, 186, 0.24);
}

.tq-btn--secondary {
  border-color: #c5d5f2;
  background: #fff;
  color: #1a224e !important;
}

.tq-btn--secondary:hover,
.tq-btn--secondary:focus-visible {
  border-color: #1554ba;
  background: #eef5ff;
  color: #1554ba !important;
  box-shadow: none;
}

.tq-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.4rem;
  margin: 2.2rem 0 0;
}

.tq-stat-box {
  padding: 1.5rem 1.8rem;
  border: 1px solid #dfe7f6;
  border-radius: 1.4rem;
  background: #fff;
}

.tq-stat-box strong {
  display: block;
  color: #1554ba;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.15;
}

.tq-stat-box span {
  display: block;
  margin-top: 0.35rem;
  color: #4a5678;
  font-size: 1.3rem;
  line-height: 1.35;
}

/* Category & Card Grids */
.tq-section {
  margin: 3.6rem 0;
}

.tq-section-head {
  margin-bottom: 2rem;
}

.tq-section-head h2 {
  margin: 0 0 0.8rem;
  color: #1a224e;
  font-size: clamp(2.2rem, 2.6vw, 3rem);
  line-height: 1.2;
}

.tq-section-head p {
  margin: 0;
  color: #46536e;
  font-size: 1.55rem;
  line-height: 1.6;
}

.tq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(31rem, 1fr));
  gap: 2rem;
}

.tq-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr));
  gap: 1.6rem;
}

.tq-card {
  display: flex;
  flex-direction: column;
  padding: 2.2rem;
  border: 1px solid #dfe7f5;
  border-radius: 1.6rem;
  background: #fff;
  box-shadow: 0 0.8rem 2.2rem rgba(18, 34, 89, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

a.tq-card:hover,
a.tq-card:focus-visible {
  transform: translateY(-3px);
  border-color: #2679ff;
  box-shadow: 0 1.4rem 3rem rgba(18, 34, 89, 0.12);
}

.tq-card__badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: #eef5ff;
  color: #1554ba;
  font-family: var(--intelMono, monospace);
  font-size: 1.15rem;
  font-weight: 600;
}

.tq-card h3 {
  margin: 0 0 0.9rem;
  color: #1a224e;
  font-size: 1.95rem;
  line-height: 1.28;
}

.tq-card p {
  margin: 0 0 1.4rem;
  color: #46536e;
  font-size: 1.45rem;
  line-height: 1.58;
}

.tq-card__footer {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid #edf1f8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #1554ba;
  font-size: 1.35rem;
  font-weight: 600;
}

/* Sticky Search & Filter Toolbar */
.tq-toolbar {
  position: sticky;
  top: 0.8rem;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin: 0 0 2.4rem;
  padding: 1.4rem 1.8rem;
  border: 1px solid #cfddf5;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1rem 2.4rem rgba(18, 34, 89, 0.08);
}

.tq-search-box {
  flex: 1 1 26rem;
  position: relative;
}

.tq-search-input {
  width: 100%;
  padding: 1.05rem 1.4rem;
  border: 1px solid #c5d4ec;
  border-radius: 1rem;
  background: #f9fbff;
  color: #1a224e;
  font-size: 1.45rem;
  line-height: 1.3;
  box-sizing: border-box;
}

.tq-search-input:focus {
  outline: 2px solid #2679ff;
  border-color: #2679ff;
  background: #fff;
}

.tq-filter-select {
  flex: 0 1 24rem;
  padding: 1.05rem 1.4rem;
  border: 1px solid #c5d4ec;
  border-radius: 1rem;
  background: #f9fbff;
  color: #1a224e;
  font-size: 1.4rem;
  line-height: 1.3;
  box-sizing: border-box;
}

.tq-count-badge {
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: #eef5ff;
  color: #1554ba;
  font-size: 1.3rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Native <details> Accordions + Deferred Rendering for Heavy Lists */
.tq-service-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.tq-service-item,
.tq-defer-item {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 150px;
}

details.tq-service-item {
  border: 1px solid #dce5f4;
  border-radius: 1.4rem;
  background: #fff;
  box-shadow: 0 0.4rem 1.4rem rgba(18, 34, 89, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

details.tq-service-item[open] {
  border-color: #2679ff;
  box-shadow: 0 1rem 2.4rem rgba(18, 34, 89, 0.09);
}

details.tq-service-item > summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 1.8rem 2.2rem;
  cursor: pointer;
  list-style: none;
}

details.tq-service-item > summary::-webkit-details-marker {
  display: none;
}

.tq-summary-main {
  flex: 1 1 auto;
}

.tq-summary-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.tq-code-pill {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: 0.6rem;
  background: #1a224e;
  color: #fff;
  font-family: var(--intelMono, monospace);
  font-size: 1.15rem;
  font-weight: 600;
}

.tq-cat-pill {
  display: inline-block;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: #eef5ff;
  color: #1554ba;
  font-size: 1.2rem;
  font-weight: 600;
}

.tq-meta-pill {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: #f2f5fa;
  color: #46536e;
  font-size: 1.2rem;
}

.tq-summary-title {
  display: block;
  margin: 0;
  color: #1a224e;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.32;
}

.tq-summary-subtitle {
  display: block;
  margin-top: 0.45rem;
  color: #4b5875;
  font-size: 1.4rem;
  line-height: 1.5;
}

.tq-summary-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: #eef5ff;
  color: #1554ba;
  font-size: 1.8rem;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

details.tq-service-item[open] .tq-summary-toggle {
  background: #1554ba;
  color: #fff;
  transform: rotate(45deg);
}

.tq-service-body {
  padding: 0 2.2rem 2.2rem;
  border-top: 1px solid #edf2fa;
  color: #364156;
  font-size: 1.45rem;
  line-height: 1.65;
}

.tq-service-body p {
  margin: 1.2rem 0;
  font-size: 1.45rem;
  line-height: 1.65;
}

.tq-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
  gap: 1.4rem;
  margin-top: 1.4rem;
}

.tq-meta-box {
  padding: 1.4rem 1.6rem;
  border: 1px solid #e4ebf7;
  border-radius: 1.2rem;
  background: #f9fbff;
}

.tq-meta-box h4 {
  margin: 0 0 0.6rem;
  color: #1a224e;
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tq-meta-box p,
.tq-meta-box ul,
.tq-meta-box ol {
  margin: 0;
  color: #3a465e;
  font-size: 1.38rem;
  line-height: 1.55;
}

.tq-meta-box ul,
.tq-meta-box ol {
  padding-left: 1.8rem;
}

.tq-meta-box .tq-methodology-list {
  list-style: decimal;
}

.tq-meta-box li {
  margin-bottom: 0.4rem;
}

.tq-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.tq-tag {
  padding: 0.35rem 0.9rem;
  border: 1px solid #d5e2f7;
  border-radius: 999px;
  background: #f4f8ff;
  color: #1e3a7a;
  font-size: 1.22rem;
  line-height: 1.3;
}

/* Tables & Callouts */
.tq-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.6rem 0;
  border: 1px solid #dce5f4;
  border-radius: 1.2rem;
  background: #fff;
}

.tq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.4rem;
  text-align: left;
}

.tq-table th,
.tq-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #e9eef7;
  vertical-align: top;
  line-height: 1.5;
}

.tq-table th {
  background: #f3f7ff;
  color: #1a224e;
  font-weight: 700;
}

.tq-table tr:last-child td {
  border-bottom: 0;
}

.tq-callout {
  margin: 2rem 0;
  padding: 1.8rem 2.2rem;
  border-left: 4px solid #1554ba;
  border-radius: 0 1.2rem 1.2rem 0;
  background: #f4f8ff;
  color: #2c3852;
  font-size: 1.45rem;
  line-height: 1.6;
}

.tq-callout strong {
  color: #1a224e;
}

/* Role Switcher Tabs (Join Us & Multi-Tab Hubs) */
.tq-role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0 0 2.4rem;
  padding: 0.8rem;
  border: 1px solid #dce5f4;
  border-radius: 1.4rem;
  background: #f6f9ff;
}

.tq-role-tab {
  padding: 1rem 1.8rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  background: transparent;
  color: #364156;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.tq-role-tab:hover,
.tq-role-tab:focus-visible {
  background: #e8f1ff;
  color: #1554ba;
}

.tq-role-tab.is-active,
.tq-role-tab[aria-selected="true"] {
  border-color: #1554ba;
  background: #1554ba;
  color: #fff;
}

/* Interactive Forms with Post-Interaction Validation (:user-invalid / :user-valid) */
.tq-form-card {
  padding: 2.8rem 3.2rem;
  border: 1px solid #dce5f5;
  border-radius: 2rem;
  background: #fff;
  box-shadow: 0 1rem 2.8rem rgba(18, 34, 89, 0.06);
}

.tq-form-fieldset {
  margin: 0 0 2.6rem;
  padding: 2rem 2.2rem;
  border: 1px solid #e2eaf7;
  border-radius: 1.4rem;
  background: #fbfcff;
}

.tq-form-fieldset legend {
  padding: 0 0.8rem;
  color: #1a224e;
  font-size: 1.65rem;
  font-weight: 700;
}

.tq-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
  gap: 1.8rem;
}

.tq-form-field {
  display: flex;
  flex-direction: column;
}

.tq-form-field--full {
  grid-column: 1 / -1;
}

.tq-form-field label {
  margin-bottom: 0.45rem;
  color: #1a224e;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.35;
}

.tq-req {
  color: #c92a2a;
  margin-left: 0.25rem;
}

.tq-format-hint {
  display: block;
  margin-bottom: 0.55rem;
  color: #54627d;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.4;
}

.tq-form input[type="text"],
.tq-form input[type="email"],
.tq-form input[type="tel"],
.tq-form input[type="url"],
.tq-form input[type="number"],
.tq-form input[type="date"],
.tq-form select,
.tq-form textarea {
  width: 100%;
  padding: 1.1rem 1.35rem;
  border: 1.5px solid #c5d3eb;
  border-radius: 1rem;
  background: #fff;
  color: #1a224e;
  font-family: inherit;
  font-size: 1.45rem;
  line-height: 1.4;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tq-form textarea {
  min-height: 11rem;
  resize: vertical;
}

.tq-form input:focus,
.tq-form select:focus,
.tq-form textarea:focus {
  outline: none;
  border-color: #2679ff;
  box-shadow: 0 0 0 3px rgba(38, 121, 255, 0.16);
}

/* Post-interaction validation states */
.tq-form input:user-invalid,
.tq-form select:user-invalid,
.tq-form textarea:user-invalid,
.tq-form .user-invalid-fallback {
  border-color: #d93025;
  background-color: #fff8f7;
}

.tq-form input:user-valid,
.tq-form select:user-valid,
.tq-form textarea:user-valid {
  border-color: #1e8e3e;
}

.tq-field-error {
  display: none;
  margin-top: 0.45rem;
  color: #c5221f;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.35;
}

.tq-form input:user-invalid ~ .tq-field-error,
.tq-form select:user-invalid ~ .tq-field-error,
.tq-form textarea:user-invalid ~ .tq-field-error,
.tq-form .user-invalid-fallback ~ .tq-field-error {
  display: block;
}

.tq-checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 0.8rem 1.4rem;
  margin-top: 0.4rem;
}

.tq-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 1.38rem;
  font-weight: 400 !important;
  color: #364156 !important;
  cursor: pointer;
}

.tq-checkbox-label input[type="checkbox"],
.tq-checkbox-label input[type="radio"] {
  margin-top: 0.3rem;
  width: 1.6rem;
  height: 1.6rem;
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .tq-hub-wrap {
    padding: 2rem 1.6rem 4.5rem;
  }

  .tq-lead-card,
  .tq-form-card {
    padding: 2rem 1.8rem;
  }

  .tq-toolbar {
    position: static;
  }

  details.tq-service-item > summary {
    padding: 1.4rem 1.6rem;
  }

  .tq-service-body {
    padding: 0 1.6rem 1.6rem;
  }
}

/* Scoped styles for Market Access HTML fragments & Certification/Auditing <details class="service"> */
.tq-ma-scope {
  color: #203142;
  font-size: 1.5rem;
  line-height: 1.65;
}

/* The imported editorial fragments use generic `.landing-page`, `.hero` and
   `.cta` names that also exist in the legacy theme. Reset those legacy layout
   rules here so market-access content retains a predictable document flow. */
.tq-ma-scope .landing-page,
.tq-ma-scope .country-page {
  padding: 0;
  margin: 0;
  max-width: none;
}

.tq-ma-scope .landing-page > section:not(.cta),
.tq-ma-scope .country-page > section:not(.cta) {
  display: block;
  padding: 0;
  margin: 0 0 4.4rem;
  text-align: left;
}

.tq-ma-scope .breadcrumb {
  margin-bottom: 1.8rem;
  padding: 1rem 1.4rem;
  border: 1px solid #e2e8f2;
  border-radius: 1rem;
  background: #f8faff;
  font-size: 1.3rem;
}

.tq-ma-scope .hero {
  display: block;
  background: linear-gradient(135deg, #102e4a 0%, #1a3d6d 100%);
  color: #fff;
  padding: clamp(2.6rem, 4vw, 4.8rem);
  border-radius: 1.6rem;
  margin: 0 0 4.4rem;
  text-align: left;
  overflow: hidden;
}

.header-banner .intro > .tq-breadcrumbs {
  box-sizing: border-box;
  width: min(100%, 64rem);
  max-width: 64rem;
  margin: 0 0 2.2rem;
  padding: 1rem 1.4rem;
  flex-wrap: nowrap;
  gap: 0.55rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 1.4rem;
  background: rgba(7, 25, 48, 0.28);
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.2rem;
  line-height: 1.35;
  backdrop-filter: blur(0.4rem);
}

.header-banner .intro > .tq-breadcrumbs > a,
.header-banner .intro > .tq-breadcrumbs > .tq-breadcrumbs__current {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-banner .intro > .tq-breadcrumbs > a:first-child {
  flex: 0 0 auto;
}

.header-banner .intro > .tq-breadcrumbs > a:not(:first-child) {
  flex: 0 1 17rem;
}

.header-banner .intro > .tq-breadcrumbs > .tq-breadcrumbs__current {
  flex: 1 1 22rem;
}

.header-banner .intro > .tq-breadcrumbs > .tq-breadcrumbs__sep {
  flex: 0 0 auto;
}

@media (max-width: 700px) {
  .header-banner .intro > .tq-breadcrumbs {
    padding: 0.8rem 1rem;
    gap: 0.4rem;
    font-size: 1.1rem;
  }

  .header-banner .intro > .tq-breadcrumbs > a:not(:first-child) {
    flex-basis: 9rem;
  }
}

.header-banner .intro > .tq-breadcrumbs a,
.header-banner .intro > .tq-breadcrumbs .tq-breadcrumbs__current {
  color: #fff;
}

.header-banner .intro > .tq-breadcrumbs .tq-breadcrumbs__sep {
  color: rgba(255, 255, 255, 0.58);
}

.tq-ma-scope .hero h1,
.tq-ma-scope .hero p {
  color: #fff;
}

.tq-ma-scope .hero .eyebrow {
  text-transform: uppercase;
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  opacity: 0.85;
}

.tq-ma-scope .hero .tagline {
  max-width: 74rem;
  font-size: clamp(2rem, 2.4vw, 3rem);
  font-weight: 600;
  line-height: 1.25;
}

.tq-ma-scope .hero > h1 {
  max-width: 88rem;
  margin: 0.8rem 0 1.4rem;
  font-size: clamp(3.4rem, 5vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.tq-ma-scope .hero > p:not(.eyebrow):not(.tagline) {
  max-width: 84rem;
}

.tq-ma-scope .hero .button,
.tq-ma-scope .cta .button {
  display: inline-block;
  background: #fff;
  color: #102e4a !important;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 1.1rem 2.2rem;
  text-decoration: none;
  margin-top: 1.2rem;
}

.tq-ma-scope .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
  gap: 1.8rem;
  margin: 1.8rem 0;
}

.tq-ma-scope .card {
  background: #fff;
  border: 1px solid #dbe4ec;
  border-radius: 1.2rem;
  padding: 2.2rem;
  box-shadow: 0 0.6rem 1.8rem rgba(18, 34, 89, 0.05);
}

.tq-ma-scope .steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.5rem;
  margin: 1.8rem 0;
}

.tq-ma-scope .step {
  padding: 2rem 1.6rem;
  background: #fff;
  border: 1px solid #dbe4ec;
  border-radius: 1.2rem;
}

.tq-ma-scope .step-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: #1554ba;
  display: block;
  margin-bottom: 1rem;
}

.tq-ma-scope .notice,
.tq-ma-scope .crosslink {
  padding: 2.2rem 2.6rem;
  background: #f2f7ff;
  border-left: 4px solid #1554ba;
  border-radius: 0 1.2rem 1.2rem 0;
  margin: 2.6rem 0;
}

.tq-ma-scope .cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "heading action"
    "copy action";
  align-items: center;
  column-gap: clamp(3rem, 6vw, 8rem);
  row-gap: 0.8rem;
  background: linear-gradient(135deg, #102e4a 0%, #1554ba 100%);
  color: #fff;
  padding: clamp(2.8rem, 4vw, 4.8rem);
  border-radius: 1.6rem;
  margin: 4.4rem 0;
  text-align: left;
}

.tq-ma-scope .cta h2,
.tq-ma-scope .cta p {
  color: #fff;
}

.tq-ma-scope .cta h2 {
  grid-area: heading;
  margin: 0;
  font-size: clamp(2.6rem, 3vw, 4rem);
  line-height: 1.12;
}

.tq-ma-scope .cta p {
  grid-area: copy;
  max-width: 72rem;
  margin: 0;
}

.tq-ma-scope .cta .button {
  grid-area: action;
  align-self: center;
  margin: 0;
  white-space: nowrap;
}

.tq-ma-scope details {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 150px;
  background: #fff;
  border: 1px solid #dbe4ec;
  border-radius: 1.2rem;
  margin-bottom: 1.2rem;
  overflow: hidden;
}

.tq-ma-scope summary {
  padding: 1.8rem 2.2rem;
  font-weight: 700;
  color: #1a224e;
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1.4;
}

.tq-ma-scope details[open] summary {
  border-bottom: 1px solid #dbe4ec;
  background: #f3f7ff;
}

.tq-ma-scope .service-content {
  padding: 2.2rem;
}

.tq-ma-scope dt {
  font-weight: 700;
  color: #1a224e;
  font-size: 1.45rem;
  margin-top: 1.6rem;
}

.tq-ma-scope dd {
  margin: 0.5rem 0 0;
}

.tq-ma-scope .faq > p {
  padding: 1.8rem 2.2rem;
  margin: 0;
}

.tq-ma-scope .page-note,
.tq-ma-scope .sources {
  font-size: 1.28rem;
  color: #54627d;
  margin-top: 2.2rem;
}

@media (max-width: 760px) {
  .tq-ma-scope .landing-page > section:not(.cta),
  .tq-ma-scope .country-page > section:not(.cta) {
    margin-bottom: 3.2rem;
  }

  .tq-ma-scope .hero,
  .tq-ma-scope .cta {
    border-radius: 1.2rem;
  }

  .tq-ma-scope .cta {
    display: block;
  }

  .tq-ma-scope .cta p {
    margin-top: 1.2rem;
  }

  .tq-ma-scope .cta .button {
    margin-top: 2rem;
    white-space: normal;
    text-align: center;
  }
}

/* Certification & Auditing <details class="service"> */
details.service {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 150px;
  border: 1px solid #dce5f4;
  border-radius: 1.4rem;
  background: #fff;
  margin-bottom: 1.2rem;
  box-shadow: 0 0.4rem 1.4rem rgba(18, 34, 89, 0.04);
}

details.service[open] {
  border-color: #2679ff;
  box-shadow: 0 1rem 2.4rem rgba(18, 34, 89, 0.09);
}

details.service > summary {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.7rem 2.2rem;
  cursor: pointer;
  color: #1a224e;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.35;
}

details.service > summary .badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 0.6rem;
  background: #1a224e;
  color: #fff;
  font-family: var(--intelMono, monospace);
  font-size: 1.2rem;
  font-weight: 600;
  flex: 0 0 auto;
}

details.service > .content {
  padding: 0 2.2rem 2.2rem;
  border-top: 1px solid #edf2fa;
  font-size: 1.45rem;
  line-height: 1.65;
  color: #364156;
}

details.service > .content dl.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  gap: 1rem 1.8rem;
  margin: 1.6rem 0;
  padding: 1.4rem 1.6rem;
  border: 1px solid #e3ebf7;
  border-radius: 1.2rem;
  background: #f8faff;
}

details.service > .content dl.meta dt {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #54627d;
}

details.service > .content dl.meta dd {
  margin: 0.2rem 0 0.6rem;
  font-size: 1.45rem;
  font-weight: 600;
  color: #1a224e;
}

details.service > .content h4 {
  margin: 1.6rem 0 0.6rem;
  color: #1a224e;
  font-size: 1.5rem;
  font-weight: 700;
}

/* ==========================================================================
   Native TQCSI 2-Tab Contact Layout & Form Styles
   ========================================================================== */

.tq-contact-panel[hidden] {
  display: none !important;
}

.tq-native-tabs {
  display: inline-flex;
  gap: 0.6rem;
  background: #f1f5f9;
  padding: 0.5rem;
  border-radius: 0.8rem;
  margin-bottom: 2.8rem;
  border: 1px solid #e2e8f0;
}

.tq-native-tab {
  background: transparent;
  border: none;
  padding: 0.9rem 2.2rem;
  font-family: inherit;
  font-size: 1.45rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  border-radius: 0.6rem;
  transition: all 0.18s ease;
  line-height: 1.3;
}

.tq-native-tab:hover {
  color: #1a224e;
  background: rgba(255, 255, 255, 0.8);
}

.tq-native-tab.is-active {
  background: #1554ba !important;
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 0.3rem 0.8rem rgba(21, 84, 186, 0.25);
  cursor: default;
}

.tq-native-form .tq-form-field {
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
}

.tq-native-form .tq-form-field label {
  font-size: 1.45rem;
  font-weight: 600;
  color: #1a224e;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.tq-native-form .tq-format-hint {
  display: block;
  font-size: 1.25rem;
  color: #64748b;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.tq-native-form input[type="text"],
.tq-native-form input[type="email"],
.tq-native-form input[type="tel"],
.tq-native-form select,
.tq-native-form textarea {
  width: 100%;
  box-sizing: border-box;
  background-color: #fff;
  border: 1.5px solid #c5d3eb;
  border-radius: 0.8rem;
  padding: 1.15rem 1.4rem;
  font-size: 1.5rem;
  color: #1a224e;
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tq-native-form textarea {
  min-height: 12rem;
  resize: vertical;
}

.tq-native-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.4rem center;
  background-size: 1.5rem;
  padding-right: 4rem;
  cursor: pointer;
}

.tq-native-form input:focus,
.tq-native-form select:focus,
.tq-native-form textarea:focus {
  border-color: #1554ba;
  box-shadow: 0 0 0 3px rgba(21, 84, 186, 0.15);
  outline: none;
}



/* Riyadh office team contact links */
.iso-certification-saudi-arabia-riyadh-office .team-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.iso-certification-saudi-arabia-riyadh-office .team-contact-links a {
  align-items: center;
  background: #f3f7ff;
  border: 1px solid #d8e5fb;
  border-radius: 1.2rem;
  color: #1a224e;
  display: inline-flex;
  gap: 1rem;
  min-width: 22rem;
  padding: 1rem 1.3rem;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.iso-certification-saudi-arabia-riyadh-office .team-contact-links a:hover,
.iso-certification-saudi-arabia-riyadh-office .team-contact-links a:focus-visible {
  background: #e8f1ff;
  border-color: #2679ff;
  transform: translateY(-1px);
}

.iso-certification-saudi-arabia-riyadh-office .team-contact-links svg {
  flex: 0 0 2rem;
  height: 2rem;
  stroke: #2679ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 2rem;
}

.iso-certification-saudi-arabia-riyadh-office .team-contact-links span {
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.iso-certification-saudi-arabia-riyadh-office .team-contact-links small {
  color: #5f6b85;
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: .2rem;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .iso-certification-saudi-arabia-riyadh-office .team-contact-links {
    width: 100%;
  }

  .iso-certification-saudi-arabia-riyadh-office .team-contact-links a {
    min-width: 0;
    width: 100%;
  }
}

/* Use the solid TQCSI Arabia brand background without blurred masthead photos. */
.bg-mask {
  display: none !important;
}
