/* TalktoSeamus — Cassiopeia / Joomla 6 — v1.0
   Append to the ACTIVE template's css/user.css. Do not replace existing CSS.
   Add sm-homepage to Home menu item > Page Display > Page Class.
   Images: /images/talktoseamus/ (relative path below also supports subfolders).
   All changes are scoped to the homepage. No core template edits required. */

body.sm-homepage {
  --sm-ink: #111331;
  --sm-white: #fff;
  --sm-muted: #e7e6f0;
  --sm-width: 1400px;
  --sm-stars: url("../../../../../images/talktoseamus/stars-1869692_1920.gif");
  --body-color: var(--sm-white);
  --body-bg: var(--sm-ink);
  --cassiopeia-font-family-body: "Trebuchet MS", Arial, sans-serif;
  --cassiopeia-font-family-headings: "Trebuchet MS", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--sm-white);
  font-family: var(--cassiopeia-font-family-body);
  background-color: var(--sm-ink);
  background-image: linear-gradient(110deg, rgba(12, 14, 44, .78), rgba(17, 22, 59, .69) 55%, rgba(7, 8, 27, .85)), var(--sm-stars);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

body.sm-homepage *,
body.sm-homepage *::before,
body.sm-homepage *::after { box-sizing: border-box; }

/* Native Cassiopeia header and menu. Use the Collapsible Dropdown layout. */
body.sm-homepage .container-header {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  background: transparent;
  background-image: none;
  box-shadow: none;
}
body.sm-homepage .container-header .navbar-brand { display: none; }
body.sm-homepage .container-header .container-nav {
  width: 100%;
  max-width: var(--sm-width);
  min-height: 68px;
  margin-inline: auto;
  padding: 12px 24px;
  align-items: center;
  justify-content: center;
}
body.sm-homepage .container-header .navbar { width: 100%; margin: 0; padding: 0; }
body.sm-homepage .container-header .navbar-collapse { justify-content: center; }
body.sm-homepage .container-header .mod-menu {
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--sm-white);
  font-size: clamp(.875rem, 1.4vw, 1.125rem);
  font-weight: 700;
  line-height: 1.4;
  list-style: none;
}
body.sm-homepage .container-header .mod-menu > li { margin: 0; padding: 0; }
body.sm-homepage .container-header .mod-menu .metismenu-item { font-size: inherit; line-height: inherit; }
body.sm-homepage .container-header .mod-menu a,
body.sm-homepage .container-header .mod-menu .nav-header,
body.sm-homepage .container-header .mod-menu button {
  color: var(--sm-white);
  font: inherit;
  text-transform: none;
}
body.sm-homepage .container-header .mod-menu a { text-decoration: none; }
body.sm-homepage .container-header .mod-menu a:hover,
body.sm-homepage .container-header .mod-menu a:focus-visible {
  text-decoration: underline;
  text-underline-offset: .3em;
}
body.sm-homepage .container-header .metismenu.mod-menu .mm-collapse {
  min-width: 230px;
  padding: 10px;
  color: var(--sm-white);
  background: #171b42;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
body.sm-homepage .container-header .metismenu.mod-menu .mm-collapse li { padding: 0; }
body.sm-homepage .container-header .metismenu.mod-menu .mm-collapse a {
  display: block;
  padding: 10px 12px;
  white-space: normal;
}
body.sm-homepage .container-header .navbar-toggler {
  min-width: 46px;
  min-height: 44px;
  margin-left: auto;
  padding: 8px 12px;
  color: white;
  background: rgba(13,16,45,.65);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 6px;
}

/* Remove Cassiopeia's article gutters on this page only. */
body.sm-homepage .site-grid {
  display: block;
  flex: 1 0 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
body.sm-homepage .container-component {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
body.sm-homepage .container-component > main,
body.sm-homepage .com-content-article,
body.sm-homepage .com-content-article__body { margin: 0; padding: 0; }
body.sm-homepage .sm-home {
  width: 100%;
  max-width: var(--sm-width);
  margin: 0 auto;
  padding: 0 30px;
}
body.sm-homepage .sm-hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  column-gap: clamp(30px, 4vw, 64px);
  min-height: calc(100svh - 150px);
  padding: 28px 24px 30px;
}
body.sm-homepage .sm-hero__portrait { min-width: 0; }
body.sm-homepage .sm-hero__portrait img {
  display: block;
  width: 100%;
  max-width: 490px;
  height: auto;
  margin: 0 auto;
  /* Keep the supplied transparency; soften the bottom with CSS only. */
  -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 66%, transparent 99%);
}
body.sm-homepage .sm-hero__content { min-width: 0; text-align: center; }
body.sm-homepage .sm-hero__logo {
  display: block;
  width: clamp(180px, 22vw, 280px);
  max-width: 65%;
  height: auto;
  margin: 0 auto 20px;
}
body.sm-homepage .sm-hero h1 {
  margin: 0 auto 20px;
  color: white;
  font-family: var(--cassiopeia-font-family-headings);
  font-size: clamp(1.2rem, 1.95vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .065em;
  text-transform: uppercase;
  text-wrap: balance;
}
body.sm-homepage .sm-hero__intro {
  max-width: 600px;
  margin: 0 auto 26px;
  color: var(--sm-muted);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  text-wrap: pretty;
}
body.sm-homepage .sm-consultation {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  max-width: 490px;
  min-height: 62px;
  padding: 12px 22px;
  color: #232857;
  background: white;
  border: 2px solid white;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.35;
  transition: background-color .18s ease, color .18s ease;
}
body.sm-homepage .sm-consultation:hover { color: #111331; background: #e9edf9; }
body.sm-homepage .sm-consultation__reassurance { font-size: .9rem; font-weight: 700; font-style: italic; }
body.sm-homepage .sm-consultation__label { font-size: .9rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
body.sm-homepage a:focus-visible,
body.sm-homepage button:focus-visible,
body.sm-homepage summary:focus-visible { outline: 3px solid #9edfff; outline-offset: 5px; }

body.sm-homepage .sm-contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
  min-height: 82px;
  padding: 20px 0 24px;
  text-align: center;
}
body.sm-homepage .sm-contact-strip__details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px 10px;
  margin: 0;
  font-size: clamp(1rem, 1.7vw, 1.45rem);
  font-weight: 700;
  line-height: 1.5;
}
body.sm-homepage .sm-contact-strip a { color: white; text-underline-offset: .16em; }
body.sm-homepage .sm-contact-strip a:hover { color: #c8e3ff; }
body.sm-homepage .sm-social { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
body.sm-homepage .sm-social a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.5); border-radius: 5px;
  font-size: .875rem; text-decoration: none;
}
body.sm-homepage .container-footer { color: white; background: transparent; background-image: none; }

/* Nine long menu labels need a larger breakpoint than Bootstrap's default. */
@media (min-width: 1200px) {
  body.sm-homepage .container-header .mod-menu { flex-direction: row; justify-content: space-between; gap: 12px; }
  body.sm-homepage .container-header .mod-menu > li { flex-wrap: nowrap; }
  body.sm-homepage .container-header .mod-menu > li > a { white-space: nowrap; }
}
@media (max-width: 1199.98px) {
  body.sm-homepage .container-header .container-nav { min-height: 64px; }
  body.sm-homepage .container-header .navbar.navbar-expand-lg { flex-wrap: wrap; }
  body.sm-homepage .container-header .navbar-expand-lg .navbar-toggler { display: block; }
  body.sm-homepage .container-header .navbar-expand-lg .navbar-collapse { flex-basis: 100%; }
  body.sm-homepage .container-header .navbar-expand-lg .navbar-collapse.collapse:not(.show) { display: none !important; }
  body.sm-homepage .container-header .navbar-expand-lg .navbar-collapse.collapse.show { display: block !important; }
  body.sm-homepage .container-header .mod-menu { flex-direction: column; padding: 16px 0 8px; font-size: 1rem; }
  body.sm-homepage .container-header .mod-menu > li { width: 100%; flex-wrap: wrap; }
  body.sm-homepage .container-header .mod-menu > li > a { display: inline-block; padding: 11px 8px; }
  body.sm-homepage .container-header .metismenu.mod-menu .mm-collapse { position: static; width: 100%; min-width: 0; box-shadow: none; }
  body.sm-homepage .sm-home { padding-inline: 24px; }
  body.sm-homepage .sm-hero { padding-inline: 0; gap: 30px; }
}
@media (max-width: 767.98px) {
  body.sm-homepage .sm-home { padding-inline: 20px; }
  body.sm-homepage .sm-hero { grid-template-columns: 1fr; min-height: 0; gap: 0; padding: 0 0 14px; }
  body.sm-homepage .sm-hero__portrait img { width: min(65vw, 290px); margin-bottom: -16px; }
  body.sm-homepage .sm-hero__logo { width: 158px; margin-bottom: 20px; }
  body.sm-homepage .sm-hero h1 { max-width: 600px; font-size: clamp(1.12rem, 3.9vw, 1.5rem); line-height: 1.4; letter-spacing: .045em; }
  body.sm-homepage .sm-hero__intro { font-size: 1.0625rem; line-height: 1.65; }
  body.sm-homepage .sm-consultation { padding: 14px 18px; border-radius: 28px; }
  body.sm-homepage .sm-consultation__label { font-size: .8rem; }
  body.sm-homepage .sm-contact-strip { padding-top: 25px; }
  body.sm-homepage .sm-contact-strip__details { flex-direction: column; gap: 10px; font-size: 1.0625rem; }
  body.sm-homepage .sm-contact-strip__separator { display: none; }
  body.sm-homepage .sm-contact-strip a { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  body.sm-homepage *, body.sm-homepage *::before, body.sm-homepage *::after { scroll-behavior: auto; transition: none; }
}
/* White social icons — v1.1. No icon fonts, external files or SVG editor support needed. */
body.sm-homepage .sm-social {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}
body.sm-homepage .sm-social .sm-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  color: #fff;
  border: 0;
  border-radius: 50%;
  background: transparent;
  text-decoration: none;
  transition: background-color .18s ease;
}
body.sm-homepage .sm-social .sm-social__link[href]:hover {
  color: #fff;
  background: rgba(255,255,255,.15);
}
body.sm-homepage .sm-social .sm-social__link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
body.sm-homepage .sm-social .sm-social__link[aria-disabled="true"] { cursor: default; }
body.sm-homepage .sm-social__icon {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: var(--sm-social-icon) center / contain no-repeat;
  mask: var(--sm-social-icon) center / contain no-repeat;
}
body.sm-homepage .sm-social__icon--facebook { --sm-social-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22white%22%20d%3D%22M14%2022v-9h3l.5-4H14V6.5c0-1.2.4-2%202-2h2V1.1C17.4%201%2016.2.9%2014.8.9%2011.6.9%209.5%202.8%209.5%206.1V9H6v4h3.5v9z%22%2F%3E%3C%2Fsvg%3E"); }
body.sm-homepage .sm-social__icon--linkedin { --sm-social-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20fill%3D%22white%22%3E%3Ccircle%20cx%3D%224.5%22%20cy%3D%224.5%22%20r%3D%222.3%22%2F%3E%3Cpath%20d%3D%22M2.5%209h4v13h-4zM10%209h3.8v1.8c.8-1.3%202-2.1%203.8-2.1%203.5%200%204.4%202.3%204.4%205.6V22h-4v-6.9c0-1.8-.1-3.1-2-3.1s-2.1%201.5-2.1%203V22H10z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
body.sm-homepage .sm-social__icon--instagram { --sm-social-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%225%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224.3%22%2F%3E%3C%2Fg%3E%3Ccircle%20fill%3D%22white%22%20cx%3D%2217.5%22%20cy%3D%226.5%22%20r%3D%221.2%22%2F%3E%3C%2Fsvg%3E"); }
@media (prefers-reduced-motion: reduce) {
  body.sm-homepage .sm-social .sm-social__link { transition: none; }
}
/* TalktoSeamus — Content pages v1.0
   APPEND to the existing user.css after the homepage CSS.
   Keep Page Class: sm-homepage on these menu items.
   Wrap inner-page article content in <div class="sm-content">...</div>.
   Only that panel receives the white background; the homepage stays as it is. */

body.sm-homepage .sm-content {
  --body-color: #292d3f;
  --body-bg: #fff;
  width: calc(100% - 40px);
  max-width: 1300px;
  margin: 28px auto 40px;
  padding: 20px;
  color: #292d3f;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 45px rgba(0,0,0,.16);
  font-size: 1.0625rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}
body.sm-homepage .sm-content h1,
body.sm-homepage .sm-content h2,
body.sm-homepage .sm-content h3 {
  margin: 0 0 14px;
  color: #20264e;
  font-weight: 400;
  line-height: 1.3;
  text-wrap: balance;
}
body.sm-homepage .sm-content h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
body.sm-homepage .sm-content h2 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
body.sm-homepage .sm-content h3 { font-size: 1.25rem; }
body.sm-homepage .sm-content p { margin: 0 0 18px; }
body.sm-homepage .sm-content a { color: #303d78; text-underline-offset: .18em; }
body.sm-homepage .sm-content a:hover { color: #111331; }
body.sm-homepage .sm-content a:focus-visible { outline: 3px solid #405bb3; outline-offset: 4px; }
body.sm-homepage .sm-content img { max-width: 100%; height: auto; }

body.sm-homepage .sm-content__header {
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid #dfe3ee;
}
body.sm-homepage .sm-content .sm-content__eyebrow {
  margin: 0 0 7px;
  color: #535d7b;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
body.sm-homepage .sm-content .sm-content__subtitle { margin: 0; color: #535d7b; }
body.sm-homepage .sm-content__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 166px;
  align-items: start;
  gap: 30px;
  margin-bottom: 20px;
}
body.sm-homepage .sm-content__intro-text { min-width: 0; }
body.sm-homepage .sm-content .sm-content__lead { color: #20264e; font-size: 1.18rem; line-height: 1.65; }
body.sm-homepage .sm-content__intro-text > :last-child { margin-bottom: 0; }
body.sm-homepage .sm-content__portrait {
  margin: 0;
  padding: 16px 12px 12px;
  background: #f1f3f8;
  border-radius: 10px;
  text-align: center;
}
body.sm-homepage .sm-content__portrait img {
  display: block;
  width: 118px;
  height: auto;
  margin: 0 auto;
  border-radius: 5px;
}
body.sm-homepage .sm-content__portrait figcaption { margin-top: 10px; color: #535d7b; font-size: .82rem; line-height: 1.5; }
body.sm-homepage .sm-content__copy { max-width: 85ch; }
body.sm-homepage .sm-content__quote {
  margin: 26px 0;
  padding: 20px 24px;
  color: #20264e;
  background: #f1f3f8;
  border: 0;
  border-left: 4px solid #54699b;
  border-radius: 0 10px 10px 0;
}
body.sm-homepage .sm-content__quote p { margin: 0 0 5px; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.45; }
body.sm-homepage .sm-content__quote .sm-content__quote-note { margin: 0; font-size: 1rem; }
body.sm-homepage .sm-content__next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
  padding-top: 24px;
  border-top: 1px solid #dfe3ee;
}
body.sm-homepage .sm-content__next > div { flex: 1 1 420px; }
body.sm-homepage .sm-content__next h2 { margin-bottom: 9px; }
body.sm-homepage .sm-content__next p { margin: 0; }
body.sm-homepage .sm-content a.sm-content__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  color: #fff;
  background: #252d58;
  border: 1px solid #252d58;
  border-radius: 28px;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}
body.sm-homepage .sm-content a.sm-content__button:hover { color: #fff; background: #141a39; }
@media (max-width: 640px) {
  body.sm-homepage .sm-content { width: calc(100% - 24px); margin-top: 16px; padding: 20px; border-radius: 9px; }
  body.sm-homepage .sm-content__intro { grid-template-columns: 1fr; gap: 20px; }
  body.sm-homepage .sm-content__portrait { justify-self: center; width: 166px; }
  body.sm-homepage .sm-content__quote { padding: 18px; }
  body.sm-homepage .sm-content a.sm-content__button { width: 100%; }
}
/* Experience and Qualifications page — additional styles */
body.sm-homepage .sm-experience__section {
  margin: 0 0 30px;
  padding: 0 0 28px;
  border-bottom: 1px solid #dfe3ee;
}
body.sm-homepage .sm-experience__section--last { margin: 0; padding: 0; border: 0; }
body.sm-homepage .sm-experience__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 319px;
  gap: 28px;
  align-items: start;
}
body.sm-homepage .sm-experience__intro > div { min-width: 0; }
body.sm-homepage .sm-experience__intro p:last-child { margin-bottom: 0; }
body.sm-homepage .sm-experience__photo {
  margin: 4px 0 0;
  padding: 10px;
  background: #f1f3f8;
  border: 1px solid #dfe3ee;
  border-radius: 10px;
}
body.sm-homepage .sm-experience__photo img { display: block; width: 100%; height: auto; border-radius: 5px; }
body.sm-homepage .sm-career { margin: 22px 0 0; padding-left: 32px; }
body.sm-homepage .sm-career > li {
  padding: 0 0 22px 12px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e7eaf2;
}
body.sm-homepage .sm-career > li::marker { color: #54699b; font-weight: 700; }
body.sm-homepage .sm-career > li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
body.sm-homepage .sm-career h3 { margin-bottom: 10px; font-size: 1.15rem; font-weight: 700; }
body.sm-homepage .sm-career p { max-width: 85ch; margin: 0; }
body.sm-homepage .sm-qualifications { margin: 0 0 22px; }
body.sm-homepage .sm-qualifications > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid #e2e6f0;
}
body.sm-homepage .sm-qualifications > div:nth-child(odd) { background: #f5f6fa; }
body.sm-homepage .sm-qualifications dt { color: #252d58; font-weight: 700; }
body.sm-homepage .sm-qualifications dd { margin: 0; }
body.sm-homepage .sm-memberships { padding: 20px; background: #eef1f8; border-radius: 8px; }
body.sm-homepage .sm-memberships p { margin: 0; }
body.sm-homepage .sm-accreditations {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}
body.sm-homepage .sm-accreditations__item {
  display: flex;
  flex: 0 1 178px;
  align-items: center;
  justify-content: center;
  min-height: 112px;
  max-width: 100%;
  padding: 8px;
  background: #fff;
  border-radius: 6px;
}
body.sm-homepage .sm-accreditations__item img { display: block; width: auto; max-width: 100%; max-height: 100px; height: auto; object-fit: contain; }
body.sm-homepage .sm-accreditations__item--emdr img { width: 100px; height: 100px; }
body.sm-homepage a.sm-accreditations__item:hover { background: #f1f3f8; }
body.sm-homepage .sm-experience .sm-content__next h3 { margin: 0; }
@media (max-width: 860px) {
  body.sm-homepage .sm-experience__intro { grid-template-columns: 1fr; }
  body.sm-homepage .sm-experience__photo { width: min(100%, 339px); justify-self: center; }
}
@media (max-width: 480px) {
  body.sm-homepage .sm-career { padding-left: 22px; }
  body.sm-homepage .sm-career > li { padding-left: 5px; }
  body.sm-homepage .sm-qualifications > div { grid-template-columns: 1fr; gap: 4px; padding: 14px; }
  body.sm-homepage .sm-accreditations { gap: 12px; }
  body.sm-homepage .sm-accreditations__item { flex-basis: 100%; }
  body.sm-homepage .sm-accreditations__item img { max-width: 240px; width: auto; }
  body.sm-homepage .sm-accreditations__item--emdr img { width: 100px; }
}
/* Treatment grid: five above, four centred below */
body.sm-homepage .sm-treatment-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 20px;
}

body.sm-homepage .sm-treatment-grid > a {
  display: block;
  grid-column: span 2;
  min-width: 0;
  border-radius: 8px;
}

body.sm-homepage .sm-treatment-grid > a:nth-child(6) {
  grid-column: 2 / span 2;
}

body.sm-homepage .sm-treatment-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

body.sm-homepage .sm-treatment-grid > a:hover {
  box-shadow: 0 5px 18px rgba(25, 35, 70, .18);
}

body.sm-homepage .sm-treatment-grid > a:focus-visible {
  outline: 3px solid #405bb3;
  outline-offset: 4px;
}

@media (max-width: 991px) {
  body.sm-homepage .sm-treatment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.sm-homepage .sm-treatment-grid > a,
  body.sm-homepage .sm-treatment-grid > a:nth-child(6) {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  body.sm-homepage .sm-treatment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 380px) {
  body.sm-homepage .sm-treatment-grid {
    grid-template-columns: 1fr;
  }
}
body.sm-homepage .sm-content.sm-content--transparent {
  background: transparent;
  box-shadow: none;
}
body.sm-homepage .sm-content .sm-programmes-overview {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

body.sm-homepage .sm-content .sm-programmes-overview img {
  display: block;
  max-width: 100%;
  height: auto;
}

body.sm-homepage .sm-content .sm-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

body.sm-homepage .sm-content .sm-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  background: #f8f9fc;
  border: 1px solid #dfe3ee;
  border-radius: 10px;
}

body.sm-homepage .sm-content .sm-card > a:first-child {
  display: block;
  margin-bottom: 20px;
}

body.sm-homepage .sm-content .sm-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}

body.sm-homepage .sm-content .sm-card > .sm-content__button {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 860px) {
  body.sm-homepage .sm-content .sm-card-grid {
    grid-template-columns: 1fr;
  }

  body.sm-homepage .sm-content .sm-card img {
    width: min(100%, 336px);
    margin-inline: auto;
  }
}
/* TalktoSeamus — reusable programme cards v1.1
   Replaces the v1.0 programmes CSS block.
   Keep the existing content-page CSS. */

body.sm-homepage .sm-content .sm-programmes-overview {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

body.sm-homepage .sm-content .sm-programmes-overview img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* The original image is 540px square; its photo occupies the top 349px.
   Clip slightly inside the photograph to avoid exposing the embedded text. */
body.sm-homepage .sm-content .sm-assessment-photo {
  width: min(100%, 540px);
  aspect-ratio: 540 / 348;
  overflow: hidden;
  border-radius: 8px;
}

body.sm-homepage .sm-content .sm-assessment-photo img {
  width: 100%;
  height: auto;
}

body.sm-homepage .sm-content .sm-programmes-overview li + li {
  margin-top: 12px;
}

body.sm-homepage .sm-content .sm-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

body.sm-homepage .sm-content .sm-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  background: #f8f9fc;
  border: 1px solid #dfe3ee;
  border-radius: 10px;
}

body.sm-homepage .sm-content .sm-card > a:first-child {
  display: block;
  margin-bottom: 20px;
}

body.sm-homepage .sm-content .sm-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}

body.sm-homepage .sm-content .sm-card > .sm-content__button {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 860px) {
  body.sm-homepage .sm-content .sm-card-grid {
    grid-template-columns: 1fr;
  }

  body.sm-homepage .sm-content .sm-card img {
    width: min(100%, 336px);
    margin-inline: auto;
  }
}
/* TalktoSeamus — Blog categories v1.0
   Append once to user.css after existing site styles.

   For each Category Blog menu item:
   Page Display > Page Class: sm-homepage sm-blog
   Blog Layout > Leading Articles: 0
   Blog Layout > Columns: 3
   Blog Layout > Multi Column Direction: Across
   Intro Articles: choose a multiple of 3, e.g. 6, 9 or 12.

   Reusable across categories; scoped to the category blog view.
   Desktop: 3 columns. Tablet: 2 columns. Mobile: 1 column.
*/

body.sm-blog .com-content-category-blog h1,
body.sm-blog .com-content-category-blog .blog-item .page-header h2 {
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.3;
}

body.sm-blog .com-content-category-blog h1 :is(a, strong, b),
body.sm-blog .com-content-category-blog .blog-item .page-header h2 :is(a, strong, b) {
  font-weight: inherit;
}

body.sm-blog .com-content-category-blog .blog-items:not(.items-leading) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 24px;
}

body.sm-blog .com-content-category-blog .blog-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 20px;
  color: #292d3f;
  background: #fff;
  border: 1px solid #dfe3ee;
  border-radius: 10px;
  box-shadow: none;
  overflow-wrap: anywhere;
}

body.sm-blog .com-content-category-blog .blog-item > .item-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

body.sm-blog .com-content-category-blog .blog-item :is(h1, h2, h1 a, h2 a) {
  color: #20264e;
}

body.sm-blog .com-content-category-blog .blog-item img {
  max-width: 100%;
  height: auto;
}

body.sm-blog .com-content-category-blog .blog-item .readmore {
  margin: auto 0 0;
  padding-top: 16px;
}

@media (max-width: 991.98px) {
  body.sm-blog .com-content-category-blog .blog-items:not(.items-leading) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639.98px) {
  body.sm-blog .com-content-category-blog .blog-items:not(.items-leading) {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
}
/* TalktoSeamus — dropdown menu styling */

body.sm-homepage .container-header .mod-menu ul {
  min-width: 260px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  font: inherit;
  color: #20264e;
  background: #fff;
  border: 1px solid #dfe3ee;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
  z-index: 1100;
}

/* Match the main menu typography */
body.sm-homepage .container-header .mod-menu ul > li {
  margin: 0;
  padding: 0;
  font: inherit;
}

/* Subtle separation between links */
body.sm-homepage .container-header .mod-menu ul > li + li {
  border-top: 1px solid #e8eaf1;
}

/* Readable dropdown links and toggle buttons */
body.sm-homepage .container-header .mod-menu ul > li > a,
body.sm-homepage .container-header .mod-menu ul > li > button,
body.sm-homepage .container-header .mod-menu ul > li > .nav-header {
  padding: 12px 14px;
  color: #20264e !important;
  background: transparent;
  font: inherit;
  line-height: 1.5;
  white-space: normal;
  text-decoration: none;
}

body.sm-homepage .container-header .mod-menu ul > li > a {
  display: block;
  flex: 1;
}

/* Hover and keyboard focus */
body.sm-homepage .container-header .mod-menu ul > li > a:hover,
body.sm-homepage .container-header .mod-menu ul > li > button:hover,
body.sm-homepage .container-header .mod-menu ul > li.current > a {
  color: #20264e !important;
  background: #f1f3f8;
  border-radius: 4px;
}

body.sm-homepage .container-header .mod-menu ul > li > a:focus-visible,
body.sm-homepage .container-header .mod-menu ul > li > button:focus-visible {
  outline: 2px solid #54699b;
  outline-offset: -2px;
  background: #f1f3f8;
}
/* TalktoSeamus — About page: 400px portrait v1.0 */
body.sm-homepage .sm-content--about .sm-content__intro {
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 30px;
  align-items: start;
}

body.sm-homepage .sm-content--about .sm-content__portrait {
  width: 100%;
  max-width: 400px;
  margin: 0;
  padding: 0;
}

body.sm-homepage .sm-content--about .sm-content__portrait img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 10px 10px 0 0;
}

body.sm-homepage .sm-content--about .sm-content__portrait figcaption {
  margin: 0;
  padding: 10px 12px;
}

@media (max-width: 899.98px) {
  body.sm-homepage .sm-content--about .sm-content__intro {
    grid-template-columns: minmax(0, 1fr);
  }

  body.sm-homepage .sm-content--about .sm-content__portrait {
    justify-self: center;
  }
}
/* TalktoSeamus — four-column grid and linked cards v1.0
   Add after the existing sm-card-grid / sm-card rules. */

body.sm-homepage .sm-content .sm-card-grid.sm-card-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
}

body.sm-homepage .sm-content a.sm-card--link {
  min-height: 150px;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  color: #20264e;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}

body.sm-homepage .sm-content a.sm-card--link:hover,
body.sm-homepage .sm-content a.sm-card--link:focus-visible {
  color: #20264e;
  background: #eaf0f8;
  border-color: #8d9fbe;
}

@media (max-width: 991.98px) {
  body.sm-homepage .sm-content .sm-card-grid.sm-card-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  body.sm-homepage .sm-content .sm-card-grid.sm-card-grid--four {
    grid-template-columns: 1fr;
  }
}
body.sm-homepage .sm-content.sm-content--contact .sm-experience__intro {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

@media (max-width: 800px) {
  body.sm-homepage .sm-content.sm-content--contact .sm-experience__intro {
    grid-template-columns: minmax(0, 1fr);
  }
}