/* =========================================================
   Teh Kim Teh, Salina & Co. — HTML prototype
   Follows the original BeTheme site (fonts, colours, layout),
   with all text scaled to a 16px minimum.
   Breakpoints: 1239 (menu collapses) / 767 tablet / 599 mobile
   ========================================================= */

:root {
  --text: #626262;        /* body text */
  --heading: #444444;     /* Cinzel headings */
  --navy: #001a5e;        /* list titles */
  --link: #002890;        /* links / Read more */
  --blue: #2991d6;        /* theme blue (buttons, caption bars, office titles) */
  --icon: #228cb3;        /* scope icons */
  --edu: #333399;         /* education / lead text */
  --edu-2: #666699;       /* partner education line */
  --muted: #a8a8a8;
  --band: #a0c0d9;        /* Latest News band + footer action band */
  --subheader: #e4ebf0;
  --grey-bg: #f9f9f9;
  --grey-bg-2: #f6f6f6;
  --footer: #808080;
  --line: rgba(0, 0, 0, 0.08);
  --cinzel: "Cinzel", Georgia, serif;
  --sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --times: "Times New Roman", Times, Georgia, serif;
  --wrap: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: #fcfcfc;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--blue); }
p { margin: 0 0 16px; }
sup { font-size: 16px; line-height: 0; }
ul, ol { margin: 0 0 16px; }

h1, h2, h3, h4, h5 { font-family: var(--cinzel); color: var(--heading); font-weight: 400; margin: 0 0 14px; line-height: 1.25; }
h1 { font-size: 28px; }
h2 { font-size: 44px; }
h3 { font-size: 28px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.cols { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.justify p { text-align: justify; }
.center { text-align: center; }

/* Buttons (BeTheme ghost style) */
.btn-ghost {
  display: inline-block; padding: 11px 18px; border: 2px solid var(--link); border-radius: 5px;
  color: var(--link); font-size: 16px; text-transform: uppercase; background: transparent; line-height: 1.3;
}
.btn-ghost:hover { background: var(--link); color: #fff; }
.btn-ghost--white { border-color: #fff; color: #fff; }
.btn-ghost--white:hover { background: #fff; color: var(--band); }

/* =========================================================
   Header
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 91px; gap: 20px; }
.logo img { height: 60px; width: auto; }
.nav__list { display: flex; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav__item { position: relative; }
.nav__item + .nav__item::before { content: ""; position: absolute; left: 0; top: 50%; height: 24px; margin-top: -12px; border-left: 1px solid rgba(0,0,0,.06); }
.nav__link {
  position: relative; display: flex; align-items: center; height: 91px; padding: 0 14px;
  font-family: var(--sans); font-size: 16px; color: var(--heading); background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--link); transform: scaleX(0); transition: transform .2s; }
.nav__item:hover > .nav__link, .nav__item.is-current > .nav__link { color: var(--link); }
.nav__item:hover > .nav__link::after, .nav__item.is-current > .nav__link::after { transform: scaleX(1); }
.nav__sub {
  position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 0; padding: 0;
  background: #f2f2f2; box-shadow: 2px 2px 2px rgba(0,0,0,.03); opacity: 0; visibility: hidden; transition: opacity .15s;
}
.nav__item:hover > .nav__sub, .nav__item:has(:focus-visible) > .nav__sub { opacity: 1; visibility: visible; }
/* Dropdown arrow after About Us / Meet Our Team (desktop + mobile) */
.nav__item.has-sub > .nav__link::before {
  content: ""; order: 1; flex: none; width: 7px; height: 7px; margin: -4px 0 0 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s;
}
/* Only one dropdown at a time: hovering another menu item hides the rest */
@media (min-width: 1240px) {
  .nav__list:hover > .nav__item:not(:hover) > .nav__sub { opacity: 0; visibility: hidden; }
}
.nav__sub li { position: relative; }
.nav__sub a { display: block; padding: 10px 20px; font-size: 16px; color: #5f5f5f; border-bottom: 1px solid rgba(0,0,0,.05); }
.nav__sub a:hover { color: var(--link); background: rgba(0,0,0,.02); }
.nav__sub .nav__sub { top: 0; left: 100%; }
.nav__sub li:hover > .nav__sub { opacity: 1; visibility: visible; }
.nav__sub .has-sub > a::after { content: "›"; float: right; color: rgba(0,0,0,.35); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--blue); }
.nav-toggle svg { width: 28px; height: 28px; display: block; }

/* =========================================================
   Subheader (page title band)
   ========================================================= */
.subheader { background: var(--subheader); padding: 30px 0; border-bottom: 1px solid rgba(0,0,0,.05); }
.subheader h1 { margin: 0; font-size: 28px; color: var(--heading); line-height: 1.3; }

.content { padding: 48px 0 56px; }
.content--grey { background: var(--grey-bg); }
.content--white { background: #fff; }

/* =========================================================
   Home
   ========================================================= */
.home-intro { background: #fff; padding: 60px 0 0; text-align: center; }
.home-intro h2 { font-size: 44px; font-weight: 300; margin-bottom: 6px; }
.home-intro h3 { font-size: 28px; font-weight: 300; margin-bottom: 8px; }
.home-intro .dots { margin: 0 auto 18px; width: 23px; height: 3px; }
.home-intro p { color: var(--muted); font-size: 17px; line-height: 1.8; max-width: 1100px; margin: 0 auto 24px; }
.home-intro .team { margin: 0 auto; width: 100%; max-width: 900px; }

.news-band { position: relative; background: var(--band); padding: 30px 0; }
.news-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 70px; }
.news-band h1 { color: #fff; font-size: 42px; margin: 0; }
.news-band::after {
  content: ""; position: absolute; left: 50%; bottom: -30px; width: 64px; height: 30px; margin-left: -32px;
  background: var(--band); clip-path: polygon(0 0, 100% 0, 50% 100%); z-index: 2;
}

.news-home { background: var(--grey-bg); padding: 70px 0 30px; border-bottom: 1px solid rgba(0,0,0,.06); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
.post-card { display: flex; flex-direction: column; margin-bottom: 40px; }
.post-card__img { display: block; aspect-ratio: 287 / 161; overflow: hidden; background: #eee; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card__img:hover img { transform: scale(1.04); }
.post-card__desc { padding: 20px 20px 0; flex: 1; display: flex; flex-direction: column; }
.post-card h2 { font-family: var(--sans); font-size: 24px; font-weight: 300; line-height: 1.35; margin: 0 0 16px; min-height: 3.9em; }
.post-card h2 a { color: var(--heading); }
.post-card h2 a:hover { color: var(--link); }
.post-card__excerpt { font-size: 16px; flex: 1; margin: 0 0 12px; }
.post-more { display: flex; justify-content: flex-end; padding: 8px 15px; }
.post-more a { display: inline-flex; align-items: center; gap: 6px; border-left: 1px solid rgba(0,0,0,.08); padding-left: 12px; font-size: 16px; }
.post-more svg { width: 14px; height: 14px; color: var(--muted); }

.scope-home { background: #fff center/cover no-repeat; padding: 60px 0 30px; }
.scope-home h2 { text-align: center; font-weight: 300; margin-bottom: 8px; }
.scope-home .sub { font-family: var(--times); font-size: 21px; text-align: center; color: var(--heading); margin: 0 0 44px; }
.icon-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.icon-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; }
.icon-item svg { width: 50px; height: 50px; color: var(--icon); margin: 4px auto 0; }
.icon-item h4 { font-family: var(--sans); font-weight: 300; font-size: 22px; color: var(--navy); margin: 0 0 4px; }
.icon-item p { font-size: 16px; margin: 0; }

.callstrip { background: #3a77b4 center/cover no-repeat; padding: 60px 0 40px; text-align: center; color: #fff; }
.callstrip h3, .callstrip h4 { font-family: var(--times); font-weight: 300; font-size: 28px; line-height: 1.7; color: #fff; margin: 0; }
.callstrip h3 { margin-bottom: 8px; }
.callstrip a { color: rgba(255,255,255,.66); }
.callstrip a:hover { color: #fff; }

.home-bottom { background: var(--grey-bg-2); padding: 50px 0 40px; }
.home-bottom h2 { font-size: 32px; font-weight: 300; margin-bottom: 24px; }
.values-list { list-style: none; padding: 0; margin: 0; }
.values-list li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: start; padding: 7px 0 8px; position: relative; font-size: 16px; }
.values-list li + li::before { content: ""; position: absolute; top: 0; left: 0; width: 60px; border-top: 1px solid rgba(0,0,0,.08); }
.values-list svg { width: 18px; height: 18px; color: var(--heading); margin: 3px auto 0; }

.pub-mini { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; margin-bottom: 34px; }
.pub-mini img { width: auto; height: auto; max-width: 56px; max-height: 59px; margin: 0 auto; }
.pub-mini a.title { font-size: 16px; display: block; line-height: 1.55; margin-bottom: 4px; }
.pub-mini .date { display: block; font-size: 16px; color: var(--muted); }
.pub-mini a.read { font-size: 16px; text-transform: uppercase; }
.home-bottom__img img { width: 100%; }

/* =========================================================
   Footer
   ========================================================= */
.footer-action { background: var(--band); padding: 36px 0; text-align: center; }
.footer-action p { margin: 0; color: #fff; font-size: 25px; line-height: 1.45; }
.footer-copy { background: var(--footer); color: #fff; font-size: 16px; }
.footer-copy .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.footer-copy a { color: #95d5ff; }
.to-top { color: #e8e8e8; display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; }
.to-top svg { width: 22px; height: 22px; }

/* =========================================================
   Establishment
   ========================================================= */
.est-top { background: #fff center top / auto no-repeat; padding: 60px 0 40px; }
.est-top .lead { font-family: var(--cinzel); font-size: 23px; line-height: 1.45; color: var(--edu); margin-bottom: 20px; }
.est-top .cols-2 > div:first-child { min-height: 1px; }
.est-bottom { background: #fff; padding: 40px 0 30px; }
.est-bottom .subhead { font-weight: 700; color: var(--heading); text-indent: 1.5em; }
.assoc-logos { display: grid; gap: 6px; margin-top: 4px; }
.assoc-logos img { max-height: 61px; width: auto; }

/* =========================================================
   Scope of Practice
   ========================================================= */
.scope-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 36px; align-items: stretch; padding: 20px 0 40px; scroll-margin-top: 110px; }
.scope-row p { line-height: 1.6; }
.scope-row + .scope-row { border-top: 1px solid rgba(0,0,0,.06); padding-top: 60px; }
.scope-row h2 { font-size: 32px; font-weight: 300; }
.scope-row.reverse .scope-row__img { order: -1; }
.scope-row__img { position: relative; min-height: 260px; }
.scope-row__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   Team
   ========================================================= */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 60px 24px; }
.partner-card { display: flex; flex-direction: column; }
.partner-card__img { aspect-ratio: 211 / 267; overflow: hidden; background: #fff; }
.partner-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s; }
.partner-card.is-circle .partner-card__img { aspect-ratio: 1 / 1; }
.partner-card.is-circle .partner-card__img img { object-fit: contain; }
.partner-card:hover .partner-card__img img { transform: scale(1.03); }
.partner-card__cap { flex: 1; display: flex; align-items: center; justify-content: center; background: var(--blue); padding: 14px 12px; text-align: center; }
.partner-card__cap h4 { margin: 0; color: #fff; font-size: 16px; font-weight: 400; line-height: 1.45; }

.profile { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 40px; align-items: start; }
.profile .entry-content h2 { font-size: 30px; font-weight: 300; margin-bottom: 12px; }
.profile .entry-content .honors { font-size: 20px; font-weight: 300; color: var(--heading); margin-bottom: 12px; }
.profile .entry-content .edu { font-size: 20px; font-weight: 300; color: var(--edu-2); margin-bottom: 18px; line-height: 1.4; }
.profile .entry-content p, .profile .entry-content li { font-size: 16px; line-height: 1.45; }
.profile .entry-content p { margin-bottom: 14px; }
.profile__photo { padding-top: 30px; }
.profile__photo img { width: 100%; max-width: 520px; margin: 0 0 0 auto; }
.profile ol { padding-left: 1.6em; }
.profile ol li { margin-bottom: 4px; }

.assoc-list { max-width: none; }
.assoc-item { padding: 90px 0 36px; border-bottom: 1px solid rgba(0,0,0,.08); }
.assoc-item:first-child { padding-top: 50px; }
.assoc-item h3 { text-transform: uppercase; font-size: 28px; font-weight: 300; margin: 0 0 12px; }
.assoc-item h4 { color: var(--edu); font-size: 20px; font-weight: 300; margin: 0; line-height: 1.4; }
.empty-note { padding: 20px 0 40px; }

/* =========================================================
   Publications
   ========================================================= */
.pub-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.pub-tools span { font-size: 16px; }
.seg { display: inline-flex; border: 1px solid #d8d8d8; border-radius: 5px; overflow: hidden; }
.seg button { font-family: var(--sans); font-size: 16px; padding: 7px 14px; border: 0; background: #fff; color: var(--heading); cursor: pointer; }
.seg button + button { border-left: 1px solid #d8d8d8; }
.seg button.is-active { background: var(--blue); color: #fff; }
.pub-list { display: grid; gap: 30px; }
.pub-item { display: grid; grid-template-columns: 80px 1fr; gap: 18px; align-items: start; color: inherit; }
.pub-item img { width: auto; height: auto; max-width: 80px; max-height: 80px; margin: 6px auto 0; }
.pub-item h4 { font-family: var(--sans); font-size: 22px; font-weight: 300; color: var(--navy); margin: 0 0 6px; line-height: 1.3; }
.pub-item:hover h4 { color: var(--blue); }
.pub-item .desc { font-size: 16px; color: var(--text); }
.pub-item .date { display: inline-block; font-size: 16px; color: var(--blue); margin-bottom: 2px; }

/* =========================================================
   Awards gallery (clientele-style cards)
   ========================================================= */
.award-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start; justify-items: start; }
.award-card { display: inline-block; max-width: 100%; background: #fff; border: 1px solid #e6e6e6; padding: 8px; cursor: zoom-in; line-height: 0; transition: box-shadow .2s; }
.award-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.award-card img { width: auto; max-width: 100%; height: auto; display: block; }

/* =========================================================
   Blog / News
   ========================================================= */
.post-list-item { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid rgba(0,0,0,.06); }
.post-list-item:last-child { border-bottom: 0; }
.post-list-item .post-card__img { aspect-ratio: 287 / 161; }
.post-list-item h2 { font-family: var(--sans); font-size: 24px; font-weight: 300; line-height: 1.35; margin: 0 0 18px; }
.post-list-item h2 a { color: var(--heading); }
.post-list-item h2 a:hover { color: var(--link); }
.post-list-item .post-more { padding-right: 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 10px; flex-wrap: wrap; }
.pager__pages { display: inline-flex; gap: 2px; padding: 4px; background: repeating-linear-gradient(45deg, #f5f5f5 0 6px, #f9f9f9 6px 12px); border-radius: 4px; }
.pager__pages a, .pager__pages span { min-width: 36px; height: 36px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; color: #a8a8a8; border-radius: 3px; }
.pager__pages a:hover { color: var(--link); }
.pager__step { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; color: var(--link); }
.pager__step svg { width: 14px; height: 14px; }
.pager .is-current, .pager__pages .current { background: var(--blue); color: #fff; }

.post-body p { font-size: 18px; line-height: 1.25; text-align: justify; margin-bottom: 14px; }
.single-post .content { padding-top: 32px; }
.post-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 35px 24px; margin-top: 20px; }
.post-gallery button { padding: 0; border: 0; background: #eee; cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.post-gallery img { width: 100%; height: 100%; object-fit: cover; }
.fixed-nav { position: fixed; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; align-items: center; color: #fff; }
.fixed-nav--prev { left: 0; }
.fixed-nav--next { right: 0; flex-direction: row-reverse; }
.fixed-nav .arrow { width: 40px; height: 80px; background: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; }
.fixed-nav .label { max-width: 0; overflow: hidden; white-space: nowrap; background: #fff; color: var(--heading); height: 80px; display: flex; flex-direction: column; justify-content: center; transition: max-width .3s, padding .3s; box-shadow: 0 0 10px rgba(0,0,0,.08); }
.fixed-nav:hover .label { max-width: 360px; padding: 0 18px; }
.fixed-nav .label strong { font-weight: 400; font-size: 16px; }
.fixed-nav .label small { font-size: 16px; color: var(--muted); }

/* =========================================================
   Career / Contact
   ========================================================= */
.career h5 { font-family: var(--cinzel); margin: 18px 0 10px; }
.career ol li { margin-bottom: 8px; }
.career ol a { color: var(--text); }
.career ol a:hover { color: var(--link); }
.career__img img { width: 100%; }
.form-placeholder { margin-top: 30px; border: 1px dashed #c8c8c8; background: #fff; padding: 22px; font-family: ui-monospace, Consolas, monospace; font-size: 16px; color: var(--text); word-break: break-word; }
.form-placeholder strong { display: block; font-family: var(--sans); color: var(--heading); margin-bottom: 6px; }

.office { padding: 10px 0 60px; scroll-margin-top: 100px; }
.office__title { text-align: center; color: var(--blue); font-size: 44px; font-weight: 300; margin: 0 0 22px; }
.office__divider { position: relative; height: 1px; background: rgba(0,0,0,.08); margin: 0 0 40px; }
.office__divider::after { content: ""; position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin-left: -6px; border-right: 1px solid rgba(0,0,0,.08); border-bottom: 1px solid rgba(0,0,0,.08); background: #fcfcfc; transform: translateY(-6px) rotate(45deg); }
.office__row { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.office__map iframe { width: 100%; height: 350px; border: 0; display: block; background: #e9e9e9; }
.office__info h3 { font-size: 28px; font-weight: 300; padding-bottom: 10px; border-bottom: 1px solid rgba(0,0,0,.1); margin-bottom: 14px; }
.office__lines { list-style: none; margin: 0; padding: 0; }
.office__lines li { display: grid; grid-template-columns: 26px 1fr; gap: 4px; align-items: start; margin-bottom: 12px; font-size: 16px; line-height: 1.7; }
.office__lines img { width: 16px; height: 16px; margin-top: 5px; }
.office__lines a { color: var(--text); }
.office__lines a.mail { color: var(--link); }
.office__lines a:hover { color: var(--blue); }
.office__lines .sep { margin: 0 4px; }
.contact-form h1 { font-size: 28px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; padding: 60px 80px; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); margin: 0 auto; }
.lightbox figcaption { color: #fff; font-size: 16px; margin-top: 14px; }
.lightbox__btn { position: absolute; width: 50px; height: 50px; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 26px; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: 28px; left: 24px; color: rgba(255,255,255,.75); font-size: 16px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1239px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 8px 16px rgba(0,0,0,.08);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav-open .nav { max-height: 80vh; overflow-y: auto; }
  .nav__list { flex-direction: column; align-items: stretch; padding: 0 22px 12px; }
  .nav__item + .nav__item::before { display: none; }
  .nav__link { height: auto; padding: 12px 0; width: 100%; justify-content: space-between; border-bottom: 1px solid rgba(0,0,0,.05); }
  .nav__link::after { display: none; }
  .nav__sub, .nav__sub .nav__sub { position: static; opacity: 1; visibility: visible; display: none; background: none; box-shadow: none; min-width: 0; padding-left: 16px; }
  .nav__item.is-open > .nav__sub, .nav__item.is-open .nav__sub .nav__sub { display: block; }
  .nav__sub a { border-bottom: 0; padding: 9px 0; }
  .nav__sub .has-sub > a::after { content: ""; }
  /* Mobile: slightly bigger arrow, flips up when open */
  .nav__item.has-sub > .nav__link::before { width: 9px; height: 9px; margin: -4px 4px 0 12px; }
  .nav__item.has-sub.is-open > .nav__link::before { transform: rotate(-135deg); margin-top: 4px; }
}

@media (max-width: 959px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .icon-list { grid-template-columns: 1fr 1fr; }
  .partner-grid, .award-grid { grid-template-columns: repeat(3, 1fr); }
  .cols-3.home-bottom__cols { grid-template-columns: 1fr 1fr; }
  .home-bottom__img { grid-column: 1 / -1; max-width: 420px; }
}

@media (max-width: 767px) {
  h2, .home-intro h2, .office__title { font-size: 34px; }
  .news-band h1 { font-size: 32px; }
  .cols-2, .cols-3, .cols-3.home-bottom__cols, .scope-row, .profile, .office__row, .post-list-item { grid-template-columns: 1fr; }
  .scope-row.reverse .scope-row__img { order: 0; }
  .scope-row .scope-row__img { order: -1; aspect-ratio: 16 / 9; min-height: 0; }
  .est-top { background-image: none !important; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .partner-grid, .award-grid { grid-template-columns: 1fr 1fr; gap: 30px 18px; }
  .icon-list { grid-template-columns: 1fr; }
  .callstrip h3, .callstrip h4 { font-size: 22px; }
  .profile__photo { max-width: 420px; }
  .fixed-nav { display: none; }
  .post-gallery { grid-template-columns: 1fr 1fr; gap: 14px; }
  .lightbox { padding: 60px 14px; }
  .lightbox__btn { z-index: 2; }
  .lightbox__prev, .lightbox__next { top: 50%; bottom: auto; transform: translateY(-50%); width: 42px; height: 64px; background: rgba(0,0,0,.6); font-size: 30px; }
  .lightbox__prev { left: 0; }
  .lightbox__next { right: 0; }
}

@media (max-width: 599px) {
  .wrap { padding: 0 16px; }
  .logo img { height: 46px; }
  .site-header .wrap { min-height: 72px; }
  h2, .home-intro h2, .office__title { font-size: 30px; }
  .home-intro h3 { font-size: 22px; }
  .news-band .wrap { flex-direction: column; align-items: flex-start; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card h2 { min-height: 0; }
  .partner-grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .partner-card__cap { padding: 12px 10px; }
  .award-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .award-card { padding: 6px; }
  .assoc-item h3 { font-size: 22px; }
  .assoc-item h4 { font-size: 18px; }
  .assoc-item { padding-top: 50px; }
  .footer-action p { font-size: 20px; }
  .footer-copy .wrap { flex-direction: column; align-items: flex-start; }
  .post-gallery { grid-template-columns: 1fr; }
}

/* =========================================================
   WordPress additions
   ========================================================= */
.home-intro .dots { display: block; background: radial-gradient(circle, #c0272d 1.4px, transparent 1.6px) 0 0 / 8px 3px repeat-x; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content h2 { font-size: 32px; font-weight: 300; }
.entry-content h3 { font-size: 26px; font-weight: 300; }
.entry-content h4 { font-size: 22px; font-weight: 300; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 16px; color: var(--muted); }

/* Old WPBakery news posts (with or without the plugin) */
.vc-row, .vc_row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.vc-col, .vc_column_container { padding: 0 12px; box-sizing: border-box; }
.vc-col.w-100, .vc_col-sm-12 { width: 100%; }
.vc-col.w-50, .vc_col-sm-6 { width: 50%; }
.vc-col.w-33, .vc_col-sm-4 { width: 33.333%; }
.vc-col.w-66, .vc_col-sm-8 { width: 66.666%; }
.vc-col.w-25, .vc_col-sm-3 { width: 25%; }
.vc-col.w-75, .vc_col-sm-9 { width: 75%; }
.vc-image, .wpb_single_image { margin: 0 0 30px; }
.post-body .vc-row, .post-body .vc_row { margin-bottom: 0; }
.post-body .vc-row + .vc-row, .post-body .vc_row + .vc_row { margin-top: 0; }
.post-body .vc-text, .post-body .wpb_text_column { margin-bottom: 30px; }
.post-body .vc-text p:last-child, .post-body .wpb_text_column p:last-child { margin-bottom: 0; }
.vc-image img, .wpb_single_image img { width: 100%; height: auto; }
.post-body .vc-text p, .post-body .wpb_text_column p { font-size: 18px; line-height: 1.25; }

/* WordPress [gallery] in posts */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin: 20px 0; }
.gallery.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; height: auto; }

/* Pagination from paginate_links() */

@media (max-width: 767px) {
  .vc-col, .vc_column_container { width: 100% !important; }
  .gallery, .gallery.gallery-columns-3, .gallery.gallery-columns-4 { grid-template-columns: 1fr 1fr; gap: 14px; }
}
.office__lines .line-ico { width: 16px; height: 16px; margin-top: 6px; color: var(--heading); }
.career__form { margin-top: 30px; }
.career ol .entry-content { margin-top: 6px; }

/* Sticky footer: main stretches so the footer sits at the bottom on short pages */
body > main { flex: 1 0 auto; display: flex; flex-direction: column; }
body > main > section:last-of-type { flex: 1 0 auto; }
body > footer { flex-shrink: 0; }
/* =========================================================
   Contact Form 7 — Career + Contact forms (layout of the old Gravity Forms)
   ========================================================= */
.tkt-form { max-width: 700px; margin-top: 10px; }
.tkt-form__row { display: grid; grid-template-columns: 210px 1fr; gap: 8px 24px; align-items: start; margin-bottom: 24px; }
.tkt-form__row > label { padding-top: 7px; font-size: 16px; color: var(--text); }
.tkt-form .req { color: #8a1f11; }
.tkt-form .wpcf7-form-control-wrap { display: block; }
.tkt-form input[type="text"],
.tkt-form input[type="email"],
.tkt-form input[type="tel"],
.tkt-form textarea {
  width: 100%; font-family: var(--sans); font-size: 16px; color: var(--heading);
  background: #fff; border: 1px solid #e6e6e6; border-radius: 0; padding: 8px 10px; box-shadow: none;
}
.tkt-form input:focus, .tkt-form textarea:focus { outline: none; border-color: var(--blue); }
.tkt-form textarea { height: 164px; resize: vertical; }
.tkt-form input[type="file"] { font-size: 16px; padding-top: 4px; }
.tkt-form__hint { display: block; font-size: 16px; color: var(--muted); margin-top: 4px; }
.tkt-form__actions { padding-left: 234px; display: flex; align-items: center; gap: 12px; }
.tkt-form input[type="submit"] { font-family: var(--sans); font-size: 18px; cursor: pointer; border-radius: 5px; transition: background .2s, color .2s; }
.tkt-form--career input[type="submit"] { background: var(--blue); color: #fff; border: 0; padding: 12px 26px; }
.tkt-form--career input[type="submit"]:hover { background: #1f7bbb; }
.tkt-form--contact input[type="submit"] { background: #fff; color: var(--link); border: 2px solid var(--link); padding: 11px 22px; text-transform: uppercase; }
.tkt-form--contact input[type="submit"]:hover { background: var(--link); color: #fff; }
.tkt-form .wpcf7-spinner { margin: 0; }
.tkt-form .wpcf7-not-valid-tip { font-size: 16px; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 12px 16px; font-size: 16px; }
.career__form, .contact-form .wpcf7 { margin-top: 20px; }

@media (max-width: 767px) {
  .tkt-form__row { grid-template-columns: 1fr; margin-bottom: 18px; }
  .tkt-form__row > label { padding-top: 0; }
  .tkt-form__actions { padding-left: 0; }
}