/* HIMAA Accreditation — page-scoped styles (custom-himaa-accreditation) */

#footer-main {
  margin-top: 0 !important;
}

.jumbotron.generic-banner {
  margin-bottom: 0 !important;
}

/* --- Root / tokens --- */
.root-custom-himaa-accreditation {
  --himaa-navy: #004174;
  --himaa-orange: #f57f36;
  --himaa-blue: #598dec;
  --himaa-text: #1a2b38;
  --himaa-muted: #3d4f5f;
  --himaa-surface: #ffffff;
  --himaa-page-bg: #f1f5f9;
  --himaa-border: rgba(0, 65, 116, 0.1);
  --himaa-shadow: 0 1px 2px rgba(0, 65, 116, 0.06), 0 12px 28px rgba(0, 41, 74, 0.08);
  --himaa-shadow-hover: 0 4px 12px rgba(0, 65, 116, 0.1), 0 20px 40px rgba(0, 41, 74, 0.12);
  /* SVG bullet for ul lists (immune to CMS wiping li::before content) */
  --himaa-accreditation-bullet-disc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' viewBox='0 0 6 6'%3E%3Cdefs%3E%3ClinearGradient id='hibull' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop stop-color='%23004174'/%3E%3Cstop offset='100%25' stop-color='%23598dec'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='3' cy='3' r='3' fill='url(%23hibull)'/%3E%3C/svg%3E");
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  color: var(--himaa-text);
  font-size: 1rem;
  line-height: 1.6;
}

.root-custom-himaa-accreditation a {
  color: var(--himaa-orange);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 2px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.root-custom-himaa-accreditation a:hover {
  color: var(--himaa-navy);
  text-decoration: underline;
}

.root-custom-himaa-accreditation a:focus-visible {
  outline: 3px solid var(--himaa-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Outbound links (new tab): external-link icon — matches anchors using target="_blank" on this page */
.root-custom-himaa-accreditation a[target="_blank"]::after {
  content: "" !important;
  display: inline-block !important;
  width: 0.95em !important;
  height: 0.95em !important;
  margin-inline-start: 0.35em !important;
  vertical-align: -0.12em !important;
  flex-shrink: 0 !important;
  background-image: url("https://general-files-for-access.s3-ap-southeast-2.amazonaws.com/membes-styles/membes-our_work/Accreditation/Assets/lightblue/out-icon.png") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;
}

/* PDF / document link: DOC file icon (Approved Programs policy) */
.root-custom-himaa-accreditation a.link-file-doc-custom-himaa-accreditation[target="_blank"]::after {
  width: 1.18em !important;
  height: 1.18em !important;
  vertical-align: -0.18em !important;
  background-image: url("https://general-files-for-access.s3-ap-southeast-2.amazonaws.com/membes-styles/membes-our_work/Accreditation/Assets/lightblue/file-doc-ico.png") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;
}

/* PDF document links: PDF file icon (key accreditation documents) */
.root-custom-himaa-accreditation a.link-file-pdf-custom-himaa-accreditation[target="_blank"]::after {
  width: 1.18em !important;
  height: 1.18em !important;
  vertical-align: -0.18em !important;
  background-image: url("https://general-files-for-access.s3-ap-southeast-2.amazonaws.com/membes-styles/membes-our_work/Accreditation/Assets/lightblue/file-pdf-ico.png") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;
}

/* Email links: mail icon (before address) */
.root-custom-himaa-accreditation a[href^="mailto:"]::before {
  content: "" !important;
  display: inline-block !important;
  width: 1.1em !important;
  height: 1.1em !important;
  margin-inline-end: 0.35em !important;
  vertical-align: -0.16em !important;
  flex-shrink: 0 !important;
  background-image: url("https://general-files-for-access.s3-ap-southeast-2.amazonaws.com/membes-styles/membes-our_work/Accreditation/Assets/lightblue/mail-env-ico.png") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;
}

/* Smooth scroll to in-page anchors (reduce motion: no smooth) */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

#accreditation-process-custom-himaa,
#accreditation-overview-custom-himaa,
#accreditation-him-courses-custom-himaa,
#accreditation-him-courses-custom-himaa-alt,
#accreditation-approved-programs-custom-himaa {
  scroll-margin-top: clamp(1rem, 6vw, 5.5rem);
}

/* Endorsed CPD sub-nav — same rules as Events/Endorsed CPD Activities/css/style.css (scoped to this page) */
/* Match horizontal inset + max inner width used by `.section-hero-custom-himaa-accreditation` / `.inner-hero-custom-himaa-accreditation` (1140) */
#page-root-custom-himaa-accreditation .wrapper-container-cpd.custom-himaa-accreditation-nav-shell {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: clamp(12px, 2.2vw, 22px) clamp(1rem, 4vw, 2rem) clamp(14px, 2.8vw, 26px) !important;
  box-sizing: border-box !important;
  max-width: none !important;
  width: 100% !important;
  background: transparent !important;
}

@media screen and (max-width: 768px) {
  #page-root-custom-himaa-accreditation .wrapper-container-cpd.custom-himaa-accreditation-nav-shell {
    display: none !important;
  }
}

#page-root-custom-himaa-accreditation .wrapper-container-cpd .custom-himaa-endorsed-cpd-sub-nav {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    gap: 10px !important;
    margin: 0 0 6px !important;
    padding: 20px 12px 14px !important;
    box-sizing: border-box !important;
    list-style: none !important;
    background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%) !important;
    border: 1px solid rgba(0, 65, 116, 0.12) !important;
    border-radius: 16px !important;
    box-shadow:
        0 1px 2px rgba(0, 65, 116, 0.06),
        0 10px 28px rgba(0, 65, 116, 0.08) !important;
}

#page-root-custom-himaa-accreditation .wrapper-container-cpd .custom-himaa-endorsed-cpd-sub-nav > p {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
}

#page-root-custom-himaa-accreditation .wrapper-container-cpd .custom-himaa-endorsed-cpd-sub-nav::before {
    content: "" !important;
    position: absolute !important;
    left: 14px !important;
    right: 14px !important;
    top: 10px !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #004174 0%, #598dec 50%, #f57f36 100%) !important;
    pointer-events: none !important;
}

#page-root-custom-himaa-accreditation .wrapper-container-cpd a.custom-himaa-endorsed-cpd-sub-nav-link {
    flex: 1 1 160px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    min-height: 48px !important;
    padding: 12px 18px !important;
    box-sizing: border-box !important;
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
    text-align: center !important;
    text-decoration: none !important;
    color: #004174 !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 65, 116, 0.12) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(0, 65, 116, 0.05) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease,
        box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
}

#page-root-custom-himaa-accreditation .wrapper-container-cpd a.custom-himaa-endorsed-cpd-sub-nav-link:hover {
    border-color: rgba(89, 141, 236, 0.55) !important;
    box-shadow: 0 6px 18px rgba(0, 65, 116, 0.12) !important;
    transform: translateY(-2px) !important;
}

#page-root-custom-himaa-accreditation .wrapper-container-cpd a.custom-himaa-endorsed-cpd-sub-nav-link:focus-visible {
    outline: 2px solid #598dec !important;
    outline-offset: 3px !important;
}

#page-root-custom-himaa-accreditation .wrapper-container-cpd a.custom-himaa-endorsed-cpd-sub-nav-link--current,
#page-root-custom-himaa-accreditation .wrapper-container-cpd a.custom-himaa-endorsed-cpd-sub-nav-link--current:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #004174 0%, #598dec 100%) !important;
    border-color: rgba(0, 65, 116, 0.28) !important;
    box-shadow: 0 6px 20px rgba(0, 65, 116, 0.22) !important;
    transform: none !important;
}

#page-root-custom-himaa-accreditation .wrapper-container-cpd .custom-himaa-endorsed-cpd-sub-nav-icon {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    object-fit: contain !important;
    vertical-align: middle !important;
}

#page-root-custom-himaa-accreditation .wrapper-container-cpd .custom-himaa-endorsed-cpd-sub-nav-label {
    color: inherit !important;
    font: inherit !important;
    text-align: left !important;
}

@media screen and (max-width: 768px) {
    #page-root-custom-himaa-accreditation .wrapper-container-cpd .custom-himaa-endorsed-cpd-sub-nav {
        flex-direction: column !important;
    }

    #page-root-custom-himaa-accreditation .wrapper-container-cpd a.custom-himaa-endorsed-cpd-sub-nav-link {
        flex: 1 1 auto !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #page-root-custom-himaa-accreditation .wrapper-container-cpd a.custom-himaa-endorsed-cpd-sub-nav-link {
        transition: none !important;
    }

    #page-root-custom-himaa-accreditation .wrapper-container-cpd a.custom-himaa-endorsed-cpd-sub-nav-link:hover {
        transform: none !important;
    }
}

/* Strip variant — no outer “card”: full row only; buttons keep their own surfaces */
#page-root-custom-himaa-accreditation .wrapper-container-cpd.custom-himaa-accreditation-nav-shell .custom-himaa-endorsed-cpd-sub-nav.custom-himaa-endorsed-cpd-sub-nav--strip {
    gap: clamp(8px, 2vw, 12px) !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 1140px !important;
    box-sizing: border-box !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

#page-root-custom-himaa-accreditation .wrapper-container-cpd .custom-himaa-endorsed-cpd-sub-nav.custom-himaa-endorsed-cpd-sub-nav--strip::before {
    display: none !important;
}

#page-root-custom-himaa-accreditation .wrapper-container-cpd .custom-himaa-endorsed-cpd-sub-nav.custom-himaa-endorsed-cpd-sub-nav--strip a.custom-himaa-endorsed-cpd-sub-nav-link {
    flex: 1 1 140px !important;
    min-height: 56px !important;
    padding: clamp(14px, 2vw, 18px) clamp(12px, 2vw, 16px) !important;
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(0, 65, 116, 0.08) !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 3px rgba(0, 65, 116, 0.05) !important;
    color: #3d4f5f !important;
    font-weight: 600 !important;
    font-size: 1.065rem !important;
    transform: none !important;
    transition: color 0.18s ease, background-color 0.18s ease,
        box-shadow 0.18s ease, border-color 0.18s ease !important;
}

#page-root-custom-himaa-accreditation .wrapper-container-cpd .custom-himaa-endorsed-cpd-sub-nav.custom-himaa-endorsed-cpd-sub-nav--strip a.custom-himaa-endorsed-cpd-sub-nav-link:hover {
    color: #004174 !important;
    background: rgba(89, 141, 236, 0.12) !important;
    border-color: rgba(89, 141, 236, 0.35) !important;
    box-shadow: 0 4px 14px rgba(0, 65, 116, 0.1) !important;
    transform: none !important;
}

#page-root-custom-himaa-accreditation .wrapper-container-cpd .custom-himaa-endorsed-cpd-sub-nav.custom-himaa-endorsed-cpd-sub-nav--strip a.custom-himaa-endorsed-cpd-sub-nav-link--current,
#page-root-custom-himaa-accreditation .wrapper-container-cpd .custom-himaa-endorsed-cpd-sub-nav.custom-himaa-endorsed-cpd-sub-nav--strip a.custom-himaa-endorsed-cpd-sub-nav-link--current:hover {
    color: #004174 !important;
    background: linear-gradient(180deg, rgba(0, 65, 116, 0.08) 0%, rgba(89, 141, 236, 0.1) 100%) !important;
    font-weight: 800 !important;
    border: 1px solid rgba(0, 65, 116, 0.14) !important;
    box-shadow: inset 0 -3px 0 0 #f57f36, 0 2px 8px rgba(0, 65, 116, 0.08) !important;
    transform: none !important;
}

@media screen and (max-width: 768px) {
    /* Shell hidden above; strip rules retained for breakpoints if shell is re-enabled */
    #page-root-custom-himaa-accreditation .wrapper-container-cpd.custom-himaa-accreditation-nav-shell .custom-himaa-endorsed-cpd-sub-nav.custom-himaa-endorsed-cpd-sub-nav--strip {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
    }

    #page-root-custom-himaa-accreditation .wrapper-container-cpd.custom-himaa-endorsed-cpd-sub-nav.custom-himaa-endorsed-cpd-sub-nav--strip a.custom-himaa-endorsed-cpd-sub-nav-link {
        flex: 1 1 auto !important;
        justify-content: flex-start !important;
        text-align: left !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    #page-root-custom-himaa-accreditation .wrapper-container-cpd .custom-himaa-endorsed-cpd-sub-nav.custom-himaa-endorsed-cpd-sub-nav--strip a.custom-himaa-endorsed-cpd-sub-nav-link--current,
    #page-root-custom-himaa-accreditation .wrapper-container-cpd .custom-himaa-endorsed-cpd-sub-nav.custom-himaa-endorsed-cpd-sub-nav--strip a.custom-himaa-endorsed-cpd-sub-nav-link--current:hover {
        box-shadow: inset 0 -3px 0 0 #f57f36, 0 2px 8px rgba(0, 65, 116, 0.08) !important;
        background: linear-gradient(180deg, rgba(0, 65, 116, 0.08) 0%, rgba(89, 141, 236, 0.1) 100%) !important;
    }
}

/* --- Hero band --- */
.section-hero-custom-himaa-accreditation {
  background: linear-gradient(165deg, #f8fafc 0%, #eef3f8 45%, #ffffff 100%);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem);
}

.inner-hero-custom-himaa-accreditation {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.grid-hero-custom-himaa-accreditation {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

@media screen and (min-width: 1025px) {
  .grid-hero-custom-himaa-accreditation {
    flex-direction: row;
    align-items: stretch;
    gap: 2rem;
  }

  .grid-hero-custom-himaa-accreditation > * {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Card surface + accent strip */
.panel-custom-himaa-accreditation {
  background: var(--himaa-surface);
  border: 1px solid var(--himaa-border);
  border-radius: 16px;
  box-shadow: var(--himaa-shadow);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.panel-custom-himaa-accreditation::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--himaa-navy), var(--himaa-blue), var(--himaa-orange));
}

@media (prefers-reduced-motion: reduce) {
  .panel-custom-himaa-accreditation {
    transition: none;
  }
}

.panel-media-custom-himaa-accreditation {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Mobile / stacked: keep a predictable image frame */
.panel-media-custom-himaa-accreditation .img-wrap-custom-himaa-accreditation {
  position: relative;
  margin: 0;
  border-radius: 0 0 15px 15px;
  overflow: hidden;
  border-top: 1px solid rgba(0, 65, 116, 0.06);
  aspect-ratio: 4 / 3;
  max-height: min(420px, 70vh);
  background: #e8eef4;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* CMS often inserts <p> around <img>; flex + zero margin avoids empty band under the stretched figure */
.panel-media-custom-himaa-accreditation .img-wrap-custom-himaa-accreditation > p {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
}

.panel-media-custom-himaa-accreditation .img-wrap-custom-himaa-accreditation img {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Desktop hero: image fills the media card so its column matches the text column height */
@media screen and (min-width: 1025px) {
  .grid-hero-custom-himaa-accreditation > .panel-media-custom-himaa-accreditation {
    align-self: stretch;
    min-height: 0;
  }

  .panel-media-custom-himaa-accreditation .img-wrap-custom-himaa-accreditation {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    max-height: none;
    aspect-ratio: unset;
  }

  .panel-media-custom-himaa-accreditation .img-wrap-custom-himaa-accreditation img {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center center;
  }
}

.kicker-custom-himaa-accreditation {
  display: block;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--himaa-navy);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.copy-custom-himaa-accreditation p {
  margin: 0 0 1rem;
  color: var(--himaa-muted);
}

.copy-custom-himaa-accreditation p:last-child {
  margin-bottom: 0;
}

/* --- Two-column section (same blue + pattern as blue-bg-pattern-custom-himaa / About HIMAA) --- */
.section-columns-custom-himaa-accreditation {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #004174 0%, #598dec 100%);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 2rem);
}

.section-columns-custom-himaa-accreditation::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://general-files-for-access.s3-ap-southeast-2.amazonaws.com/membes-styles/himaa-assets/bg_pattern-himaa-lowres.png");
  background-repeat: repeat;
  background-size: 980px auto;
  background-position: center;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.inner-columns-custom-himaa-accreditation {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.grid-two-col-custom-himaa-accreditation {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media screen and (min-width: 1025px) {
  .grid-two-col-custom-himaa-accreditation {
    flex-direction: row;
    align-items: stretch;
    gap: 1.75rem;
  }

  .grid-two-col-custom-himaa-accreditation > * {
    flex: 1 1 0;
    min-width: 0;
  }
}

.card-column-custom-himaa-accreditation {
  background: var(--himaa-surface);
  border: 1px solid var(--himaa-border);
  border-radius: 16px;
  box-shadow: var(--himaa-shadow);
  padding: clamp(1.5rem, 4vw, 2rem);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.card-column-custom-himaa-accreditation::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--himaa-navy), var(--himaa-blue), var(--himaa-orange));
}

@media (hover: hover) and (pointer: fine) {
  .card-column-custom-himaa-accreditation:hover {
    box-shadow: var(--himaa-shadow-hover);
    transform: translateY(-4px);
  }

  .panel-text-custom-himaa-accreditation:hover {
    box-shadow: var(--himaa-shadow-hover);
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-column-custom-himaa-accreditation:hover,
  .panel-text-custom-himaa-accreditation:hover {
    transform: none;
  }
}

.heading-col-custom-himaa-accreditation {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--himaa-navy);
  margin: 0 0 1rem;
  line-height: 1.4;
}

.body-col-custom-himaa-accreditation p {
  color: var(--himaa-muted);
  margin: 1.5rem 0 0;
}

/* --- Lists (CMS-safe) --- */
.list-ordered-custom-himaa-accreditation,
.list-bullet-custom-himaa-accreditation,
.list-link-custom-himaa-accreditation {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 1rem 0 0 !important;
}

.list-ordered-custom-himaa-accreditation .custom-himaa-accreditation-list-item,
.list-bullet-custom-himaa-accreditation .custom-himaa-accreditation-list-item,
.list-link-custom-himaa-accreditation .custom-himaa-accreditation-list-item {
  list-style: none !important;
  position: relative;
  margin-left: 0 !important;
  margin-bottom: 0.65rem;
  color: var(--himaa-muted);
}

/* Indents: use !important so CMS list padding does not beat our gutter (avoid 0 + weak inset). */
.list-bullet-custom-himaa-accreditation .custom-himaa-accreditation-list-item,
.list-link-custom-himaa-accreditation .custom-himaa-accreditation-list-item {
  padding-inline-start: 1.5rem !important;
}

.list-ordered-custom-himaa-accreditation .custom-himaa-accreditation-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  padding-inline-start: 0 !important;
  line-height: 1.6;
  counter-increment: accr-ol;
}

.list-ordered-custom-himaa-accreditation .custom-himaa-accreditation-list-item:last-child,
.list-bullet-custom-himaa-accreditation .custom-himaa-accreditation-list-item:last-child,
.list-link-custom-himaa-accreditation .custom-himaa-accreditation-list-item:last-child {
  margin-bottom: 0;
}

.list-ordered-custom-himaa-accreditation {
  counter-reset: accr-ol;
}

.list-ordered-custom-himaa-accreditation .custom-himaa-accreditation-list-item::before {
  content: counter(accr-ol) ".";
  position: static;
  flex: 0 0 1.85rem;
  width: 1.85rem;
  min-width: 1.85rem;
  text-align: right;
  font-weight: 700;
  color: var(--himaa-navy);
  font-size: 0.95em;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

/* Bullet + inline-link lists: disc drawn on LI (not ::before). Membes resets often kill li::before content; ul+li specificity beats pseudo-only chains. */
.list-bullet-custom-himaa-accreditation .custom-himaa-accreditation-list-item,
.list-link-custom-himaa-accreditation .custom-himaa-accreditation-list-item {
  background-image: var(--himaa-accreditation-bullet-disc) !important;
  background-repeat: no-repeat !important;
  background-size: 6px 6px !important;
  background-position: 0.35rem 0.55em !important;
}

.list-bullet-custom-himaa-accreditation .custom-himaa-accreditation-list-item::before,
.list-link-custom-himaa-accreditation .custom-himaa-accreditation-list-item::before {
  content: none !important;
  display: none !important;
}

#page-root-custom-himaa-accreditation ul.list-bullet-custom-himaa-accreditation > li.custom-himaa-accreditation-list-item,
#page-root-custom-himaa-accreditation ul.list-link-custom-himaa-accreditation > li.custom-himaa-accreditation-list-item {
  background-image: var(--himaa-accreditation-bullet-disc) !important;
  background-repeat: no-repeat !important;
  background-size: 6px 6px !important;
  background-position: 0.35rem 0.55em !important;
}

#page-root-custom-himaa-accreditation ul.list-bullet-custom-himaa-accreditation > li.custom-himaa-accreditation-list-item::before,
#page-root-custom-himaa-accreditation ul.list-link-custom-himaa-accreditation > li.custom-himaa-accreditation-list-item::before {
  content: none !important;
  display: none !important;
}

.note-documents-custom-himaa-accreditation {
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--himaa-navy);
  font-size: 0.95rem;
}

.contact-line-custom-himaa-accreditation {
  margin-top: 1.5rem !important;
  padding-top: 1.35rem;
  border-top: 1px solid var(--himaa-border);
  font-size: 0.95rem;
}

/* --- HIMAA Accredited HIM University Courses (modernised) --- */
.section-courses-custom-himaa-accreditation {
  position: relative;
  background: linear-gradient(
    165deg,
    #f8fafc 0%,
    #ffffff 42%,
    #f1f5f9 100%
  );
  border-top: 1px solid rgba(0, 65, 116, 0.08);
  padding: clamp(2.25rem, 5.5vw, 3.75rem) clamp(1rem, 4vw, 2rem);
}

/* Draft duplicate of courses section — remove class when only one block remains */
#page-root-custom-himaa-accreditation .section-courses-custom-himaa-accreditation--alt-draft {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  padding-top: clamp(2.5rem, 5.5vw, 3.75rem);
  border-top: 1px dashed rgba(0, 65, 116, 0.2);
}

.inner-courses-custom-himaa-accreditation {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.headline-courses-custom-himaa-accreditation {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  margin-left: auto;
  margin-right: auto;
  max-width: 56rem;
  text-align: center;
}

.title-courses-section-custom-himaa-accreditation {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--himaa-navy);
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.title-courses-section-custom-himaa-accreditation::after {
  content: "";
  display: block;
  width: 52px;
  height: 6px;
  margin-top: 1rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--himaa-navy), var(--himaa-orange));
}

.grid-courses-custom-himaa-accreditation {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Card tiles — match project card pattern (accent strip, elevation, hover) */
.card-courses-custom-himaa-accreditation {
  background: var(--himaa-surface);
  border: 1px solid var(--himaa-border);
  border-radius: 16px;
  box-shadow: var(--himaa-shadow);
  padding: clamp(1.35rem, 3.5vw, 2rem);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.card-courses-custom-himaa-accreditation::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--himaa-navy), var(--himaa-blue), var(--himaa-orange));
}

@media (hover: hover) and (pointer: fine) {
  .card-courses-custom-himaa-accreditation:hover {
    box-shadow: var(--himaa-shadow-hover);
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-courses-custom-himaa-accreditation {
    transition: none;
  }

  .card-courses-custom-himaa-accreditation:hover {
    transform: none;
  }
}

@media screen and (min-width: 1025px) {
  .grid-courses-custom-himaa-accreditation {
    flex-direction: row;
    align-items: stretch;
    gap: 1.75rem;
  }

  .grid-courses-custom-himaa-accreditation > * {
    flex: 1 1 0;
    min-width: 0;
  }

  .card-courses-custom-himaa-accreditation {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
    align-self: stretch;
  }
}

/* Alt courses layout only: row1 = La Trobe | QUT, row2 = Previously available full width */
#accreditation-him-courses-custom-himaa-alt .grid-courses-custom-himaa-accreditation--alt-two-rows {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media screen and (min-width: 1025px) {
  #accreditation-him-courses-custom-himaa-alt .grid-courses-custom-himaa-accreditation--alt-two-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
    align-items: stretch;
  }

  #accreditation-him-courses-custom-himaa-alt
    .grid-courses-custom-himaa-accreditation--alt-two-rows
    > .card-courses-custom-himaa-accreditation--full-span-courses-alt {
    grid-column: 1 / -1;
  }

  #accreditation-him-courses-custom-himaa-alt .grid-courses-custom-himaa-accreditation--alt-two-rows > * {
    flex: unset !important;
    min-width: 0;
  }
}

#accreditation-him-courses-custom-himaa-alt
  .card-courses-custom-himaa-accreditation--full-span-courses-alt
  > .uni-block-heading-spaced-custom-himaa-accreditation:first-child {
  margin-top: 0 !important;
}

/* Courses cards: uni logo + heading in one row, left-aligned */
.row-latrobe-identity-courses-custom-himaa-accreditation,
.row-qut-identity-courses-custom-himaa-accreditation {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 65, 116, 0.1);
  text-align: left;
}

.img-latrobe-logo-courses-custom-himaa-accreditation,
.img-qut-logo-courses-custom-himaa-accreditation {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 56px;
  object-fit: contain;
}

.img-qut-logo-courses-custom-himaa-accreditation {
  max-width: 240px;
}

.uni-block-heading-latrobe-row-courses-custom-himaa-accreditation,
.uni-block-heading-qut-row-courses-custom-himaa-accreditation {
  margin: 0 !important;
  flex: 1 1 12rem;
  min-width: min(12rem, 100%);
  text-align: left;
}

/* Membes/CMS: stray empty <p>; logo wrapped in <p> breaks flex sizing when % max-width resolves oddly */
#page-root-custom-himaa-accreditation .row-qut-identity-courses-custom-himaa-accreditation > p:empty,
#page-root-custom-himaa-accreditation .row-latrobe-identity-courses-custom-himaa-accreditation > p:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#page-root-custom-himaa-accreditation .row-qut-identity-courses-custom-himaa-accreditation p:has(> img.img-qut-logo-courses-custom-himaa-accreditation),
#page-root-custom-himaa-accreditation .row-latrobe-identity-courses-custom-himaa-accreditation p:has(
    > img.img-latrobe-logo-courses-custom-himaa-accreditation
  ) {
  display: contents !important;
  margin: 0 !important;
  padding: 0 !important;
}

#page-root-custom-himaa-accreditation .img-latrobe-logo-courses-custom-himaa-accreditation,
#page-root-custom-himaa-accreditation .img-qut-logo-courses-custom-himaa-accreditation {
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  vertical-align: middle !important;
  object-fit: contain !important;
  object-position: left center !important;
}

#page-root-custom-himaa-accreditation .img-latrobe-logo-courses-custom-himaa-accreditation {
  max-width: 180px !important;
  max-height: 56px !important;
}

#page-root-custom-himaa-accreditation .img-qut-logo-courses-custom-himaa-accreditation {
  max-width: min(240px, 100%) !important;
  max-height: 56px !important;
}

.column-courses-custom-himaa-accreditation
  > p.uni-block-heading-custom-himaa-accreditation:first-child {
  margin-top: 0;
}

.uni-block-heading-custom-himaa-accreditation {
  margin: 1.25rem 0 0.4rem;
  color: var(--himaa-text);
  font-size: 1rem;
  line-height: 1.5;
}

.uni-block-heading-custom-himaa-accreditation strong {
  color: var(--himaa-navy);
  font-weight: 700;
}

.uni-block-heading-spaced-custom-himaa-accreditation {
  margin-top: 2rem;
}

/* International block label — callout band (replaces tight pill chip) */
.subheading-intl-courses-custom-himaa-accreditation {
  margin: 1.35rem 0 0;
  padding: 0.7rem 1rem 0.7rem 0.95rem;
  border-left: 4px solid var(--himaa-navy);
  background: linear-gradient(
    90deg,
    rgba(0, 65, 116, 0.1) 0%,
    rgba(89, 141, 236, 0.06) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 0 10px 10px 0;
  box-shadow: inset 0 0 0 1px rgba(0, 65, 116, 0.08);
  font-size: 0.8125rem;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--himaa-navy);
}

.subheading-intl-courses-custom-himaa-accreditation strong {
  font-weight: 800;
  color: var(--himaa-navy);
}

/* Tighter gap to the HCT heading (default uni-block margin-top was collapsing to 1.25rem) */
.subheading-intl-courses-custom-himaa-accreditation + .uni-block-heading-custom-himaa-accreditation {
  margin-top: 0.75rem !important;
}

.uni-note-custom-himaa-accreditation {
  font-weight: 400;
  color: var(--himaa-muted);
  font-size: 0.95rem;
}

/* QUT: highlight intake note (scoped to logo row only) */
.row-qut-identity-courses-custom-himaa-accreditation .uni-note-custom-himaa-accreditation {
  display: block;
  margin-top: 0.45rem;
  max-width: 100%;
  padding: 0.35rem 0.65rem;
  box-sizing: border-box;
  font-weight: 700 !important;
  font-size: 0.8125rem !important;
  line-height: 1.4 !important;
  font-style: normal !important;
  color: var(--himaa-navy) !important;
  background: rgba(89, 141, 236, 0.14) !important;
  border: 1px solid rgba(89, 141, 236, 0.38) !important;
  border-radius: 8px !important;
}

/* Curtin courses: emphasise no new enrolments */
.tag-no-new-enrolments-courses-custom-himaa-accreditation {
  display: inline-block;
  margin-left: 0.2rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--himaa-navy);
  background: rgba(245, 127, 54, 0.2);
  border: 1px solid rgba(245, 127, 54, 0.55);
  border-radius: 6px;
  vertical-align: 0.08em;
  white-space: nowrap;
}

/* Curtin block: flag as historical / no longer offered */
.label-previously-available-courses-custom-himaa-accreditation {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.35rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
  color: #ffffff;
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  vertical-align: middle;
  white-space: nowrap;
}

/* --- Approved Programs (VET-level; source: himaa.org.au approved-programs) --- */
.section-approved-programs-custom-himaa-accreditation {
  position: relative;
  background: linear-gradient(
    165deg,
    #f8fafc 0%,
    #ffffff 48%,
    #f1f5f9 100%
  );
  border-top: 1px solid rgba(0, 65, 116, 0.08);
  padding: clamp(2.25rem, 5.5vw, 3.75rem) clamp(1rem, 4vw, 2rem);
}

.inner-approved-programs-custom-himaa-accreditation {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.headline-approved-programs-custom-himaa-accreditation {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  margin-left: auto;
  margin-right: auto;
  max-width: 56rem;
  text-align: center;
}

.title-approved-programs-custom-himaa-accreditation {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--himaa-navy);
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.title-approved-programs-custom-himaa-accreditation::after {
  content: "";
  display: block;
  width: 52px;
  height: 6px;
  margin-top: 1rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--himaa-navy), var(--himaa-orange));
}

.card-approved-programs-custom-himaa-accreditation {
  background: var(--himaa-surface);
  border: 1px solid var(--himaa-border);
  border-radius: 16px;
  box-shadow: var(--himaa-shadow);
  padding: clamp(1.35rem, 3.5vw, 2rem);
  position: relative;
  overflow: hidden;
}

.card-approved-programs-custom-himaa-accreditation::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--himaa-navy), var(--himaa-blue), var(--himaa-orange));
}

.copy-approved-programs-custom-himaa-accreditation {
  position: relative;
  z-index: 1;
}

.copy-approved-programs-custom-himaa-accreditation p {
  margin: 0 0 1rem;
  color: var(--himaa-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.copy-approved-programs-custom-himaa-accreditation p:last-child {
  margin-bottom: 0;
}

.lead-programs-list-custom-himaa-accreditation {
  margin-top: 1.25rem !important;
  font-weight: 700;
  color: var(--himaa-navy) !important;
}

.contact-approved-programs-custom-himaa-accreditation {
  margin-top: 1.5rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--himaa-border);
  font-size: 0.95rem;
}
