/* ===== source: css/enhancements.css ===== */
/* =========================================================
   SGS ENHANCEMENTS

   Keeps the existing SGS red / black / white theme and layout.
   Adds polish, interaction, accessibility and responsive UX.
   ========================================================= */


/* ---------- Global polish ---------- */

::selection {
    background: var(--red);
    color: #fff;
}

body {
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    background: radial-gradient(
        circle at 50% 0,
        rgba(215, 25, 31, 0.035),
        transparent 38%
    );
}

.site-header {
    transition:
        box-shadow 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
    border-bottom-color: rgba(215, 25, 31, 0.18);
}


/* ---------- Hero polish ---------- */

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 90px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.20),
        transparent
    );
    pointer-events: none;
}

.hero-in1 {
    animation: heroIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero .eyebrow-l {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero .eyebrow-l::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--red);
    display: inline-block;
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ---------- Section headings ---------- */

.section > .wrap > .head h2,
.section > .wrap > .center h2 {
    position: relative;
}

.section > .wrap > .head h2::after,
.section > .wrap > .center h2::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 10px;
    background: var(--red);
    border-radius: 2px;
}

.section > .wrap > .center h2::after {
    margin-left: auto;
    margin-right: auto;
}


/* ---------- Scroll reveal ---------- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.65s ease,
        transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.card.reveal,
.promo-card.reveal {
    transition-delay: var(--reveal-delay, 0ms);
}


/* ---------- Course cards ---------- */

.ccard {
    isolation: isolate;
}

.ccard::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid transparent;
    border-radius: inherit;
    transition: border-color 0.25s ease;
}

.ccard:hover::before {
    border-color: rgba(215, 25, 31, 0.35);
}

.ccard .media,
.promo-card .media,
.loc .media {
    overflow: hidden;
}

.ccard .media img,
.promo-card .media img,
.loc .media img {
    transition:
        transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
        filter 0.35s ease;
}

.ccard:hover .media img,
.promo-card:hover .media img,
.loc:hover .media img {
    transform: scale(1.06);
    filter: saturate(1.05);
}

.ccard .btn,
.promo-card .btn,
.loc {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.ccard:hover .btn.dark {
    transform: translateY(-1px);
}


/* ---------- Filter button micro-interaction ---------- */

.filters button {
    position: relative;
    overflow: hidden;
}

.filters button::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transform: translateX(-50%);
    transition: width 0.2s ease;
}

.filters button:hover::after,
.filters button.on::after {
    width: 55%;
}


/* ---------- Filtered cards ---------- */

.ccard.is-hidden {
    display: none;
}

.filter-empty {
    display: none;
    grid-column: 1 / -1;
    padding: 28px;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 6px;
    color: var(--mut);
    background: var(--card);
}

.filter-empty.show {
    display: block;
}


/* ---------- Promo / bundle blocks ---------- */

.promo-card {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(215, 25, 31, 0.28);
}

.why {
    position: relative;
    overflow: hidden;
}


/* ---------- Location cards ---------- */

.loc {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--card);
}

.loc:hover {
    transform: translateY(-4px);
    border-color: rgba(215, 25, 31, 0.35);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}

.loc-b span {
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.loc:hover .loc-b span {
    color: var(--red);
    transform: translateX(3px);
}


/* ---------- Reviews ---------- */

.rev {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.rev:hover {
    transform: translateY(-4px);
    border-color: rgba(215, 25, 31, 0.28);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
}

.rev .qm {
    transition: transform 0.25s ease;
}

.rev:hover .qm {
    transform: translateY(-2px);
}


/* ---------- CTA polish ---------- */

.ready {
    position: relative;
    overflow: hidden;
}

.ready::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -70px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.ready .btn {
    position: relative;
    z-index: 1;
}


/* ---------- Buttons ---------- */

.btn {
    will-change: transform;
}

.btn.r {
    box-shadow: 0 5px 16px rgba(215, 25, 31, 0.16);
}

.btn.r:hover {
    box-shadow: 0 8px 22px rgba(215, 25, 31, 0.25);
    transform: translateY(-1px);
}


/* ---------- Images ---------- */

.media img {
    object-fit: cover;
}


/* ---------- Back to top ---------- */

.back-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 80;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--ink2);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease,
        background 0.2s ease;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.back-top:hover {
    background: var(--red);
    border-color: var(--red);
}

.back-top:focus-visible {
    outline-color: #ff5b61;
}


/* ---------- Scroll progress ---------- */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    z-index: 100;
    background: var(--red);
    transition: width 0.08s linear;
}


/* ---------- Mobile polish ---------- */

@media (max-width: 720px) {

    .hero {
        padding-top: 54px;
    }

    .hero h1 {
        font-size: clamp(36px, 12vw, 54px);
    }

    .hero .btns {
        gap: 10px;
    }

    .hero .btns .btn {
        width: 100%;
    }

    .back-top {
        right: 14px;
        bottom: 14px;
        width: 42px;
        height: 42px;
    }

    .section {
        padding: 46px 0;
    }
}


@media (prefers-reduced-motion: reduce) {

    .reveal,
    .hero-in1,
    .card,
    .promo-card,
    .loc,
    .rev,
    .btn {
        animation: none !important;
        transition: none !important;
    }
}


/* =========================================================
   REFRESHER COURSE CARDS - FINAL SPACING / STYLE
   ========================================================= */

.refresher-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px;
    width: calc(100% - 80px);
    max-width: 1200px;
    margin: 32px auto 38px;
    box-sizing: border-box;
}


.refresher-card {
    width: 100%;
    height: 236px;

    display: grid;
    grid-template-columns: 270px 1px minmax(0, 1fr);

    background: #030101;
    border: 1px solid #cfcfcf;
    box-sizing: border-box;
    overflow: hidden;

    /* Clear separation between the two cards */
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.refresher-card:hover {
    transform: translateY(-4px);
    border-color: #bdbdbd;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}


/* ---------- IMAGE ---------- */

.refresher-image {
    position: relative;
    width: 100%;
    height: 236px;
    overflow: hidden;
    background: #e9e9e9;
}

.refresher-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.refresher-card:hover .refresher-image img {
    transform: scale(1.05);
}


/* ---------- PRICE CIRCLE ---------- */

.refresher-price {
    position: absolute;
    top: 28px;
    right: -1px;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #f00d0d;
    color: #fff;

    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.2px;

    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    z-index: 2;
}


.refresher-card.blue .refresher-price {
    background: #f00d0d;
}


/* ---------- VERTICAL CATEGORY ---------- */

.refresher-category {
    height: 236px;

    display: flex;
    align-items: center;
    justify-content: center;

    writing-mode: vertical-rl;
    transform: rotate(180deg);

    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.2px;
    line-height: 1;
    text-transform: uppercase;

    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);

    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}


.refresher-card.blue .refresher-category {
    background: #740000;
}


/* ---------- CONTENT ---------- */





.refresher-content {
    min-width: 0;

    padding: 19px 18px 18px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    box-sizing: border-box;
}


.refresher-content h3 {
    margin: 0 0 13px;

    color: #e2dfdf;

    font-size: 20px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.2px;

    /* Prevent words from breaking letter-by-letter */
    word-break: keep-all;
    overflow-wrap: normal;
    white-space: normal;
}


.refresher-info {
    margin-bottom: 7px;

    font-size: 14px;
    line-height: 1.5;
    color: #111;
}

.refresher-info strong {
    font-weight: 800;
}


/* ---------- DIVIDER ---------- */

.refresher-divider {
    width: 100%;
    height: 1px;

    background: #d7d7d7;

    margin: 10px 0 14px;
}


/* ---------- BOOK BUTTON ---------- */

.refresher-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 45px;
    padding: 0 22px;

    background: #17224b;
    color: #fff;

    border: 2px solid #0d1533;
    border-radius: 0;

    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.1px;

    text-decoration: none;
    box-sizing: border-box;

    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.refresher-btn:hover {
    background: #d71920;
    border-color: #b91319;
    color: #fff;

    transform: translateY(-2px);

    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.16);
}


/* ---------- CTA BELOW THE CARDS ---------- */

.refresher-grid + .why {
    margin-top: 4px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .refresher-grid {
        grid-template-columns: 1fr;

        width: calc(100% - 48px);
        max-width: 700px;

        gap: 26px;

        margin-top: 28px;
        margin-bottom: 32px;
    }
}


@media (max-width: 620px) {

    .refresher-grid {
        width: calc(100% - 28px);

        gap: 22px;

        margin-top: 22px;
    }


    .refresher-card {
        height: 220px;

        grid-template-columns:
            38%
            30px
            minmax(0, 1fr);
    }


    .refresher-image,
    .refresher-category {
        height: 220px;
    }


    .refresher-content {
        padding: 15px 15px 14px;
    }


    .refresher-content h3 {
        font-size: 18px;
        line-height: 1.1;
        margin-bottom: 10px;

        word-break: keep-all;
        overflow-wrap: normal;
    }


    .refresher-info {
        font-size: 12px;
        margin-bottom: 5px;
    }


    .refresher-btn {
        min-height: 39px;
        padding: 0 12px;
        font-size: 12px;
    }


    .refresher-price {
        top: 18px;

        width: 48px;
        height: 48px;

        font-size: 15px;
    }


    .refresher-category {
        font-size: 10px;
        letter-spacing: 0.7px;
    }
}
/* ===== source: css/cpd.css ===== */
/* =========================================================
   CPD CERTIFIED ONLINE COURSES - taller photos + interaction
   Scoped to .cpd only. Nothing outside this section is affected.
   ========================================================= */

/* ---------- Taller photo area (was 150px, very wide/flat) ---------- */
.cpd .card .media {
  height: 240px;
  isolation: isolate;
}

.cpd .card .media .imgreq {
  min-height: 0;
  will-change: transform;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) scale(var(--zoom, 1.08));
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

.cpd .card .media .imgreq > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.cpd .card .media img,
.cpd .card:hover .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: none;
}

/* soft dark fade at the bottom of the photo for depth */
.cpd .card .media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(10, 12, 18, .55), transparent);
  pointer-events: none;
  z-index: 1;
}

/* ---------- Card: 3D tilt + glare (driven by js/cpd.js) ---------- */
.cpd .card,
.cpd .card:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition:
    transform .4s cubic-bezier(.2, .7, .2, 1),
    opacity .7s ease,
    box-shadow .3s ease,
    border-color .3s ease;
  will-change: transform;
  transform-style: preserve-3d;
}

.cpd .card.is-tilting {
  transition:
    transform .08s linear,
    opacity .7s ease,
    box-shadow .3s ease,
    border-color .3s ease;
  --ty: -6px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, .22);
  border-color: rgba(215, 25, 31, .45);
}

.cpd .card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, .22),
    transparent 55%
  );
  transition: opacity .3s ease;
}

.cpd .card.is-tilting::after {
  opacity: 1;
}

.cpd .card .badge {
  z-index: 3;
  overflow: hidden;
}

/* shimmer sweep across the badge */
.cpd .card .badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: cpd-shimmer 3.6s ease-in-out infinite;
}

@keyframes cpd-shimmer {
  0%, 55% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

/* button: arrow nudge + lift */
.cpd .card .btn {
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.cpd .card:hover .btn {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(215, 25, 31, .28);
}

/* ---------- Entrance (only when JS is running) ---------- */
.cpd.cpd-js .card:not(.cpd-in) {
  opacity: 0;
  --ty: 40px;
}

.cpd.cpd-js .card.cpd-in {
  opacity: 1;
}

/* ---------- Tablet / mobile ---------- */
@media (max-width: 980px) {
  .cpd .card .media { height: 220px; }
}

@media (max-width: 640px) {
  .cpd .card .media { height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  .cpd .card,
  .cpd .card:hover,
  .cpd .card .media .imgreq,
  .cpd .card .badge::after {
    transition: none !important;
    animation: none !important;
  }

  .cpd.cpd-js .card:not(.cpd-in) {
    opacity: 1;
    --ty: 0px;
  }
}

/* ===== source: css/polish.css ===== */
/* =========================================================
   POLISH LAYER
   1) Refresher cards + bundle CTA alignment fix
   2) Styles for the page-wide JS effects (js/site.js)
   ========================================================= */

/* ---------- 1. REFRESHER CARDS ---------- */

/* Grid had 3 columns (image | 1px | content) but only 2-3 children,
   so the label strip was squeezed into a 1px column. Now: image | label strip | content. */
.refresher-card {
  grid-template-columns: 270px 46px minmax(0, 1fr);
  background: linear-gradient(135deg, #0b0d13, #161a24);
  border-color: #272c3a;
  position: relative;
}

.refresher-category {
  width: 100%;
  min-width: 0;
  color: #fff;
  background: #d71920;
  text-shadow: none;
  border-left: 0;
  border-right: 0;
}

.refresher-card.blue .refresher-category {
  background: #740000;
}

/* text was #111 on a near-black card (unreadable) */
.refresher-content {
  justify-content: flex-start;
}

.refresher-info {
  color: #c9cdd8;
}

.refresher-info strong {
  color: #fff;
}

.refresher-divider {
  background: rgba(255, 255, 255, .16);
}

.refresher-btn {
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

/* ---------- CTA band lines up with the cards ---------- */
.strip-in > .why {
  width: calc(100% - 80px);
  max-width: 1200px;
}

@media (max-width: 1000px) {
  .strip-in > .why {
    width: calc(100% - 48px);
    max-width: 700px;
  }
}

@media (max-width: 700px) {
  .why-in {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 34px 22px;
  }
}

@media (max-width: 620px) {
  .strip-in > .why {
    width: calc(100% - 28px);
  }

  .refresher-card {
    grid-template-columns: 38% 30px minmax(0, 1fr);
  }
}

/* ---------- 2. PAGE-WIDE EFFECTS ---------- */

/* scroll progress bar */
.fx-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #d71920, #ff5a5f);
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 9999;
  pointer-events: none;
}

/* glare layer injected into tilt cards */
.fx-glare {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  border-radius: inherit;
  background: radial-gradient(
    340px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(255, 255, 255, .20),
    transparent 60%
  );
  transition: opacity .3s ease;
}

.fx-tilting > .fx-glare {
  opacity: 1;
}

/* button ripple */
.fx-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  transform: scale(0);
  animation: fx-ripple .6s ease-out forwards;
  pointer-events: none;
}

@keyframes fx-ripple {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

.btn,
.refresher-btn {
  position: relative;
  overflow: hidden;
}

/* magnetic buttons use the independent `translate` property */
.btn,
.refresher-btn {
  transition: translate .25s cubic-bezier(.2, .7, .2, 1);
}

/* images fade in once loaded (only if JS marks them) */
img.fx-img {
  opacity: 0;
  transition: opacity .6s ease;
}

img.fx-img.fx-loaded {
  opacity: 1;
}

/* price pop when it counts up */
.refresher-price.fx-pop {
  animation: fx-pop .5s cubic-bezier(.2, 1.4, .4, 1);
}

@keyframes fx-pop {
  0% { transform: scale(.6); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .fx-progress,
  .fx-ripple,
  .refresher-price.fx-pop {
    animation: none !important;
    transition: none !important;
  }

  img.fx-img {
    opacity: 1;
    transition: none;
  }
}

/* ===== source: css/home-polish.css ===== */
/* =========================================================
   SGS HOME POLISH
   Subtle motion + trust section refinement. Content/assets untouched.
   ========================================================= */
.hero {
  background-size: 100% auto;
  background-position: center top;
  animation: sgsHeroDrift 18s ease-in-out infinite alternate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 32%, rgba(237,28,36,.16), transparent 19%),
    radial-gradient(circle at 92% 72%, rgba(255,255,255,.06), transparent 16%);
  animation: sgsHeroGlow 7s ease-in-out infinite alternate;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  top: -25%;
  right: 11%;
  width: 180px;
  height: 160%;
  transform: rotate(18deg) translateX(220px);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.055), transparent);
  filter: blur(1px);
  pointer-events: none;
  animation: sgsHeroSweep 9s ease-in-out infinite;
  z-index: 1;
}
.hero-in1 { z-index: 2; }
.hero-media { z-index: 1; }

/* Gives the hero a living security-tech feel without replacing its image. */
.hero .quick a { transition: color .2s ease, transform .2s ease, border-color .2s ease; }
.hero .quick a:hover { transform: translateY(-2px); }

.exact-bundle {
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.exact-bundle::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: 12%;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237,28,36,.18), transparent 65%);
  filter: blur(8px);
  animation: sgsBundlePulse 5s ease-in-out infinite alternate;
  pointer-events: none;
}
.exact-bundle::after {
  background: linear-gradient(105deg, rgba(9,11,14,.98) 0%, rgba(9,11,14,.96) 48%, rgba(23,15,18,.92) 100%);
}

/* Trust area is intentionally different from the large dark footer and CTA blocks. */
.sgs-trust-section {
  padding: 68px 0 72px;
  background: #f5f6f8;
  border-top: 1px solid #e7e9ed;
  border-bottom: 1px solid #e7e9ed;
}
.sgs-trust-section .eyebrow {
  margin-bottom: 8px;
  color: #e51b23;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.8px;
}
.sgs-trust-section h2 {
  margin: 0;
  color: #10141a;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.7px;
}
.sgs-trust-intro {
  max-width: 650px;
  margin: 12px auto 30px;
  color: #6c727b;
  font-size: 14px;
  line-height: 1.6;
}
.sgs-trust-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sgs-trust-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid #dfe2e7;
  border-radius: 8px;
  background: #fff;
  color: #171b22;
  font: 800 13px/1 var(--f-head, Arial, sans-serif);
  box-shadow: 0 5px 16px rgba(12,18,28,.05);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.sgs-trust-badge::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 8px 0 0 8px;
  background: #ed1c24;
}
.sgs-trust-badge:hover {
  transform: translateY(-4px);
  border-color: #c9cdd3;
  box-shadow: 0 10px 24px rgba(12,18,28,.09);
}
.badge-short { min-width: 76px; }
.badge-wide { min-width: 102px; }
.badge-long { min-width: 154px; }
.badge-mid { min-width: 88px; }
.badge-featured { min-width: 190px; min-height: 56px; border-color: #cfd3d9; }

@keyframes sgsHeroDrift {
  0% { background-size: 100% auto; background-position: 50% 0; }
  100% { background-size: 104% auto; background-position: 53% 1%; }
}
@keyframes sgsHeroGlow {
  0% { opacity: .45; transform: translate3d(0,0,0) scale(1); }
  100% { opacity: .95; transform: translate3d(-12px,5px,0) scale(1.05); }
}
@keyframes sgsHeroSweep {
  0%, 58% { transform: rotate(18deg) translateX(260px); opacity: 0; }
  68% { opacity: .7; }
  84%, 100% { transform: rotate(18deg) translateX(-900px); opacity: 0; }
}
@keyframes sgsBundlePulse {
  0% { transform: translateY(-50%) scale(.92); opacity: .55; }
  100% { transform: translateY(-50%) scale(1.08); opacity: .95; }
}

@media (prefers-reduced-motion: reduce) {
  .hero, .hero::before, .hero::after, .exact-bundle::before { animation: none !important; }
}
@media (max-width: 760px) {
  .sgs-trust-section { padding: 52px 0 56px; }
  .sgs-trust-list { gap: 10px; }
  .sgs-trust-badge { min-height: 44px; padding: 0 16px; }
}

/* =========================================================
   FINAL HOME VISUAL CORRECTIONS
   ========================================================= */

/* Stronger but still premium hero motion */
.hero::before {
  background:
    radial-gradient(circle at 72% 38%, rgba(237,28,36,.20), transparent 22%),
    radial-gradient(circle at 88% 70%, rgba(255,255,255,.08), transparent 18%),
    linear-gradient(90deg, transparent 0 68%, rgba(237,28,36,.035) 68.2% 68.35%, transparent 68.5%);
  animation: sgsHeroAtmosphere 6s ease-in-out infinite alternate;
}
.hero::after {
  top: -40%;
  right: 8%;
  width: 3px;
  height: 180%;
  transform: rotate(16deg) translateX(420px);
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.65), rgba(237,28,36,.75), transparent);
  filter: blur(.2px);
  animation: sgsHeroScan 8s ease-in-out infinite;
}

/* Bundle: centered CTA + visible motion */
.exact-bundle {
  min-height: 238px;
  height: auto;
  padding: 38px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 52%, rgba(237,28,36,.16), transparent 34%),
    linear-gradient(120deg, #07090c 0%, #111318 48%, #170c10 100%);
  isolation: isolate;
}
.exact-bundle::after {
  background:
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,.035) 43%, transparent 48%),
    linear-gradient(90deg, rgba(9,11,14,.96), rgba(9,11,14,.68), rgba(23,15,18,.92));
  animation: bundleLightSweep 7s ease-in-out infinite;
  z-index: -1;
}
.exact-bundle::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.82);
  border: 1px solid rgba(237,28,36,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(237,28,36,.025), 0 0 80px rgba(237,28,36,.10);
  animation: bundleRing 4.8s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
.exact-bundle-copy {
  width: 100%;
  max-width: 900px;
}
.exact-bundle-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(29px, 4vw, 43px);
  text-wrap: balance;
}
.exact-bundle-copy p {
  max-width: 760px;
  margin: 0 auto;
}
.exact-bundle-btn {
  margin: 22px 0 0;
  min-width: 205px;
  min-height: 50px;
  border-radius: 6px;
  box-shadow: 0 9px 25px rgba(237,28,36,.20);
  animation: bundleButtonFloat 2.8s ease-in-out infinite;
}
.exact-bundle-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(237,28,36,.32);
}

/* =========================================================
   SIA SECURITY / TOP SKILL - redesigned as a visual pathway
   ========================================================= */
.skill {
  position: relative;
  grid-template-columns: minmax(230px,.82fr) minmax(0,3fr);
  gap: 28px;
  padding: 8px 0;
}
.skill > div:first-child {
  position: relative;
  min-height: 100%;
  padding: 30px 26px;
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(237,28,36,.28), transparent 35%),
    linear-gradient(145deg, #0b0e13, #171a20);
  box-shadow: 0 18px 40px rgba(10,12,16,.12);
}
.skill > div:first-child::before {
  content: "SGS • CAREER PATHWAYS";
  display: inline-block;
  margin-bottom: 18px;
  color: #ff454b;
  font: 800 10px/1 var(--f-head, Arial, sans-serif);
  letter-spacing: 1.6px;
}
.skill > div:first-child::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -52px;
  width: 145px;
  height: 145px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(237,28,36,.035), 0 0 0 44px rgba(237,28,36,.025);
}
.skill > div:first-child h2 {
  color: #fff;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
  margin: 0 0 20px;
  position: relative;
  z-index: 1;
}
.skill > div:first-child .btn {
  position: relative;
  z-index: 1;
  margin-top: 0;
}
.cols3 {
  gap: 14px;
}
.colbox {
  position: relative;
  min-height: 225px;
  padding: 26px 22px 20px;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  box-shadow: 0 10px 28px rgba(14,20,30,.055);
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.colbox::before {
  content: attr(data-number);
  position: absolute;
  right: 18px;
  top: 15px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #ed1c24;
  font: 900 12px/1 var(--f-head, Arial, sans-serif);
  box-shadow: 0 7px 15px rgba(237,28,36,.18);
}
.colbox:nth-child(1)::after,
.colbox:nth-child(2)::after,
.colbox:nth-child(3)::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: #ed1c24;
}
.colbox:nth-child(2)::after { background: #11151b; }
.colbox:nth-child(3)::after { background: linear-gradient(90deg,#ed1c24 0 55%,#11151b 55%); }
.colbox:hover {
  transform: translateY(-7px);
  border-color: #d3d7dd;
  box-shadow: 0 18px 36px rgba(14,20,30,.11);
}
.colbox h3 {
  margin: 13px 45px 14px 0;
  padding: 0 0 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 18px;
  letter-spacing: -.2px;
}
.colbox ul { margin: 0; padding: 0; list-style: none; }
.colbox li { position: relative; padding-left: 17px; }
.colbox li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 6px;
  color: #ed1c24;
  font-weight: 900;
}
.colbox li a {
  padding: 7px 0;
  color: #20242b;
  font-size: 12.5px;
  letter-spacing: .15px;
  transition: color .2s ease, padding-left .2s ease;
}
.colbox li a:hover { color: #ed1c24; padding-left: 4px; }

/* =========================================================
   TRUSTED ACROSS UK - more recognisable trust rail
   ========================================================= */
.sgs-trust-section {
  position: relative;
  overflow: hidden;
  padding: 72px 0 78px;
  background:
    radial-gradient(circle at 15% 30%, rgba(237,28,36,.055), transparent 24%),
    radial-gradient(circle at 85% 75%, rgba(10,14,20,.055), transparent 25%),
    #f6f7f9;
}
.sgs-trust-section::before {
  content: "TRUST • STANDARDS • EMPLOYERS • TRAINING";
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  color: rgba(16,20,26,.045);
  white-space: nowrap;
  font: 900 48px/1 var(--f-head, Arial, sans-serif);
  letter-spacing: 4px;
  pointer-events: none;
}
.sgs-trust-section .wrap { position: relative; z-index: 1; }
.sgs-trust-section h2 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -1.2px; }
.sgs-trust-intro { max-width: 720px; margin-bottom: 34px; }
.sgs-trust-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}
.sgs-trust-badge {
  min-width: 0 !important;
  min-height: 82px !important;
  padding: 18px 12px;
  border-radius: 12px;
  border: 1px solid #dfe3e8;
  box-shadow: 0 10px 22px rgba(13,18,25,.055);
  background: rgba(255,255,255,.94);
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  line-height: 1.2;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.sgs-trust-badge::before {
  left: 10px;
  top: 10px;
  bottom: auto;
  width: 26px;
  height: 3px;
  border-radius: 99px;
}
.sgs-trust-badge::after {
  content: "✓ VERIFIED";
  color: #7a8089;
  font: 800 8px/1 var(--f-head, Arial, sans-serif);
  letter-spacing: 1px;
}
.sgs-trust-badge:hover {
  transform: translateY(-6px);
  background: #fff;
  box-shadow: 0 17px 32px rgba(13,18,25,.10);
}
.sgs-trust-badge:nth-child(1) { transform: translateY(8px); }
.sgs-trust-badge:nth-child(4) { transform: translateY(8px); }
.sgs-trust-badge:nth-child(1):hover,
.sgs-trust-badge:nth-child(4):hover { transform: translateY(2px); }
.sgs-trust-badge:nth-child(6) { border-color: #cbd1d9; background: #fff; }

@keyframes sgsHeroAtmosphere {
  0% { opacity: .42; transform: scale(1); }
  100% { opacity: .9; transform: scale(1.045) translate3d(-8px,3px,0); }
}
@keyframes sgsHeroScan {
  0%, 48% { transform: rotate(16deg) translateX(460px); opacity: 0; }
  58% { opacity: .85; }
  78%, 100% { transform: rotate(16deg) translateX(-1000px); opacity: 0; }
}
@keyframes bundleLightSweep {
  0%, 55% { transform: translateX(-30%); opacity: .25; }
  70% { opacity: .8; }
  100% { transform: translateX(35%); opacity: .25; }
}
@keyframes bundleRing {
  0%, 100% { transform: translate(-50%, -50%) scale(.82); opacity: .45; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: .95; }
}
@keyframes bundleButtonFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (max-width: 1000px) {
  .sgs-trust-list { grid-template-columns: repeat(3, 1fr); }
  .sgs-trust-badge:nth-child(1), .sgs-trust-badge:nth-child(4) { transform: none; }
  .sgs-trust-badge:nth-child(1):hover, .sgs-trust-badge:nth-child(4):hover { transform: translateY(-6px); }
}
@media (max-width: 760px) {
  .exact-bundle { min-height: 250px; padding: 34px 22px; }
  .exact-bundle-btn { margin-top: 20px; }
  .skill { gap: 18px; }
  .skill > div:first-child { min-height: 0; }
  .sgs-trust-list { grid-template-columns: repeat(2, 1fr); }
  .sgs-trust-section::before { font-size: 30px; }
}
@media (max-width: 520px) {
  .sgs-trust-list { grid-template-columns: 1fr 1fr; gap: 9px; }
  .sgs-trust-badge { min-height: 72px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .exact-bundle::before, .exact-bundle::after, .exact-bundle-btn { animation: none !important; }
}


/* FINAL VISUAL FIX — equal-height pathway cards + restrained motion */
.skill { align-items: stretch; }
.skill > div:first-child { height: 100%; min-height: 225px; animation: skillPanelFloat 5.5s ease-in-out infinite; }
.skill > .cols3 { height: 100%; align-items: stretch; }
.skill > .cols3 .colbox { height: 100%; min-height: 0; display: flex; flex-direction: column; }
.skill > .cols3 .colbox ul { flex: 1; }
.skill > .cols3 .colbox::before { animation: skillNumberPulse 3.4s ease-in-out infinite; }
.skill > .cols3 .colbox:nth-child(2)::before { animation-delay: .35s; }
.skill > .cols3 .colbox:nth-child(3)::before { animation-delay: .7s; }
.skill > .cols3 .colbox:hover { animation: skillCardLift .55s ease forwards; }
@keyframes skillPanelFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes skillNumberPulse { 0%,100% { box-shadow: 0 7px 15px rgba(237,28,36,.18); } 50% { box-shadow: 0 9px 22px rgba(237,28,36,.34); } }
@keyframes skillCardLift { to { transform: translateY(-8px); box-shadow: 0 20px 38px rgba(14,20,30,.13); } }
@media (max-width: 760px) { .skill > div:first-child, .skill > .cols3 .colbox { height: auto; min-height: 225px; } .skill > div:first-child { animation: none; } }
@media (prefers-reduced-motion: reduce) { .skill > div:first-child, .skill > .cols3 .colbox::before, .skill > .cols3 .colbox:hover { animation: none !important; } }


/* =========================================================
   FINAL HOME MOTION PASS — richer animation, no new images
   ========================================================= */
.hero { position: relative; overflow: hidden; }
.hero::before {
  background:
    radial-gradient(circle at 16% 28%, rgba(237,28,36,.18), transparent 18%),
    radial-gradient(circle at 78% 32%, rgba(237,28,36,.18), transparent 19%),
    radial-gradient(circle at 92% 72%, rgba(255,255,255,.07), transparent 16%),
    linear-gradient(115deg, transparent 0 47%, rgba(255,255,255,.035) 48%, transparent 50% 100%);
  background-size: auto, auto, auto, 260% 100%;
  animation: sgsHeroGlow 7s ease-in-out infinite alternate, sgsHeroGrid 10s linear infinite;
}
.hero-in1 > * {
  animation: sgsHeroItemIn .85s cubic-bezier(.2,.8,.2,1) both;
}
.hero-in1 > *:nth-child(1){animation-delay:.08s}
.hero-in1 > *:nth-child(2){animation-delay:.18s}
.hero-in1 > *:nth-child(3){animation-delay:.28s}
.hero-in1 > *:nth-child(4){animation-delay:.38s}
.hero-media { animation: sgsHeroMediaFloat 6s ease-in-out infinite alternate; }
.hero .quick a { animation: sgsQuickFloat 4s ease-in-out infinite; }
.hero .quick a:nth-child(2){animation-delay:.25s}
.hero .quick a:nth-child(3){animation-delay:.5s}
.hero .quick a:nth-child(4){animation-delay:.75s}

.exact-home-offers .exact-course-card,
.exact-bottom-grid .exact-promo-card {
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  animation: sgsCardRise .8s cubic-bezier(.2,.8,.2,1) both;
}
.exact-home-offers .exact-course-card:nth-child(2){animation-delay:.12s}
.exact-home-offers .exact-course-card:nth-child(3){animation-delay:.24s}
.exact-home-offers .exact-course-card:nth-child(4){animation-delay:.36s}
.exact-home-offers .exact-course-card:hover,
.exact-bottom-grid .exact-promo-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 38px rgba(0,0,0,.16);
  border-color: rgba(237,28,36,.32);
}
.exact-course-photo img,
.exact-promo-photo img { transition: transform .7s ease; }
.exact-course-card:hover .exact-course-photo img,
.exact-promo-card:hover .exact-promo-photo img { transform: scale(1.06); }

.exact-bundle { overflow:hidden; }
.exact-bundle::before {
  right: 50%;
  top: 50%;
  width: 520px;
  height: 520px;
  transform: translate(50%,-50%);
  animation: sgsBundleOrb 5s ease-in-out infinite alternate;
}
.exact-bundle::after {
  animation: sgsBundleSweep 8s ease-in-out infinite;
  background-size: 220% 100%;
}
.exact-bundle-copy,
.exact-bundle-btn { animation: sgsBundleIn .9s cubic-bezier(.2,.8,.2,1) both; }
.exact-bundle-btn { animation-delay:.2s; }
.exact-bundle-btn:hover { transform: translateY(-3px) scale(1.03); }

.sgs-trust-section { position:relative; overflow:hidden; }
.sgs-trust-section::before {
  content:""; position:absolute; width:420px; height:420px; left:-180px; top:20px;
  border-radius:50%; background:radial-gradient(circle,rgba(237,28,36,.10),transparent 68%);
  animation: sgsTrustGlow 7s ease-in-out infinite alternate;
}
.sgs-trust-badge { animation: sgsBadgeIn .65s cubic-bezier(.2,.8,.2,1) both; }
.sgs-trust-badge:nth-child(2){animation-delay:.08s}.sgs-trust-badge:nth-child(3){animation-delay:.16s}
.sgs-trust-badge:nth-child(4){animation-delay:.24s}.sgs-trust-badge:nth-child(5){animation-delay:.32s}.sgs-trust-badge:nth-child(6){animation-delay:.40s}

@keyframes sgsHeroGrid { 0%{background-position:0,0,0,0} 100%{background-position:0,0,0,220%} }
@keyframes sgsHeroItemIn { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }
@keyframes sgsHeroMediaFloat { from{transform:translateY(0) scale(1)} to{transform:translateY(-7px) scale(1.015)} }
@keyframes sgsQuickFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }
@keyframes sgsCardRise { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes sgsBundleOrb { from{transform:translate(50%,-50%) scale(.82);opacity:.35} to{transform:translate(50%,-50%) scale(1.14);opacity:.9} }
@keyframes sgsBundleSweep { 0%,60%{background-position:0 0} 85%,100%{background-position:100% 0} }
@keyframes sgsBundleIn { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }
@keyframes sgsTrustGlow { from{transform:translate(0,0) scale(.9);opacity:.35} to{transform:translate(80px,20px) scale(1.15);opacity:.75} }
@keyframes sgsBadgeIn { from{opacity:0;transform:translateY(14px) scale(.97)} to{opacity:1;transform:translateY(0) scale(1)} }

@media (prefers-reduced-motion: reduce) {
  .hero *, .exact-home-offers *, .exact-bottom-grid *, .exact-bundle *, .sgs-trust-section *, .sgs-trust-section::before { animation:none !important; transition:none !important; }
}
