:root {
    --sg-blue: #00516a;
    --sg-blue-deep: #004e66;
    --sg-orange: #f59a00;
    --sg-orange-soft: #f7b23b;
    --sg-grey: #eeeeee;
    --sg-text: #07516a;
    --sg-border: #f0a22c;
    --sg-max: 1180px;
}

html {
    scroll-behavior: smooth;
}

body.safeguarding-page {
    margin: 0;
    color: var(--sg-text);
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.45;
}

.sg-container {
    width: 100%;
    max-width: 1320px;
    padding-right: 12px;
    padding-left: 12px;
    box-sizing: border-box;
    margin: 0 auto;
}

.sg-hero {
    color: #fff;
    background: var(--sg-blue);
}

.sg-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0 24px;
}

.sg-logo {
    display: block;
    width: 112px;
    height: auto;
}

.sg-button,
.sg-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    color: #fff;
    background: var(--sg-orange);
    border: 2px solid var(--sg-orange);
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.sg-nav-cta {
    color: #fff !important;
}

.sg-button:hover,
.sg-nav-cta:hover {
    color: #fff;
    background: var(--sg-orange-soft);
    border-color: var(--sg-orange-soft);
    box-shadow: 0 6px 18px rgba(245, 154, 0, .24);
    transform: translateY(-1px);
}

.sg-nav-cta:hover,
.sg-nav-cta:focus-visible {
    color: #fff !important;
}

.sg-button-label {
    display: inline-flex;
    align-items: center;
}

.sg-button-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sg-spin .7s linear infinite;
}

.sg-button.is-loading {
    gap: 8px;
    cursor: wait;
    pointer-events: none;
}

.sg-button.is-loading .sg-button-spinner {
    display: inline-block;
}

@keyframes sg-spin {
    to {
        transform: rotate(360deg);
    }
}

.sg-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(250px, .8fr);
    align-items: center;
    gap: 64px;
    min-height: 370px;
    padding: 36px 0 64px;
}

.sg-eyebrow {
    margin: 0 0 18px;
    color: var(--sg-orange-soft);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sg-hero h1 {
    max-width: 700px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4.25rem);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.sg-hero-copy {
    max-width: 580px;
    margin: 26px 0 34px;
    color: #e5f2f5;
    font-size: 1rem;
}

.sg-stats {
    display: grid;
    gap: 24px;
}

.sg-stat {
    padding-left: 24px;
    border-left: 4px solid var(--sg-orange);
}

.sg-stat strong {
    display: block;
    color: #fff;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
}

.sg-stat span {
    display: block;
    max-width: 150px;
    margin-top: 8px;
    color: #d5e7ec;
    font-size: .9rem;
}

.sg-section {
    padding: 62px 0;
}

.sg-section h2 {
    margin: 0 0 12px;
    color: var(--sg-text);
    font-size: clamp(2rem, 3.5vw, 3.15rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.sg-section-lead {
    max-width: 740px;
    margin: 0;
    color: #356979;
    font-size: 1rem;
}

.sg-role-heading {
    white-space: nowrap;
    font-size: clamp(1.7rem, 3.1vw, 2.8rem) !important;
}

.sg-intro {
    padding-bottom: 42px;
}

.sg-intro p + p {
    margin-top: 14px;
}

.sg-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.sg-pill {
    padding: 9px 18px;
    color: var(--sg-text);
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: 4px;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.sg-pill:hover {
    color: #fff;
    background: var(--sg-orange);
}

.sg-role-section,
.sg-faq-section,
.sg-platform-section {
    background: var(--sg-grey);
}

.sg-table-wrap {
    margin-top: 30px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #efb24c;
}

.sg-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    color: #1e6174;
    font-size: .86rem;
}

.sg-table th,
.sg-table td {
    padding: 14px 12px;
    border: 1px solid #efc572;
    vertical-align: middle;
}

.sg-table th {
    color: var(--sg-text);
    background: #fff8e9;
    font-size: .78rem;
    text-align: left;
}

.sg-table th:not(:first-child),
.sg-table td:not(:first-child) {
    text-align: center;
}

.sg-table td:first-child {
    width: 20%;
    color: var(--sg-text);
    font-weight: 700;
}

.sg-table td:nth-child(2) {
    width: 42%;
}

.sg-check {
    color: var(--sg-orange);
    font-size: 1.2rem;
    font-weight: 700;
}

.sg-table-note {
    margin: 12px 0 0;
    color: #356979;
    font-size: .8rem;
}

.sg-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 38px;
}

.sg-step {
    position: relative;
}

.sg-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 25px;
    left: 52px;
    right: -20px;
    height: 2px;
    background: var(--sg-orange);
    z-index: 0;
}

.sg-step-number {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    color: #fff;
    background: var(--sg-blue);
    border-radius: 50%;
    font-size: 1rem;
    font-weight: 700;
}

.sg-step:nth-child(4) .sg-step-number {
    background: var(--sg-orange);
}

.sg-step h3 {
    margin: 0 0 8px;
    color: var(--sg-text);
    font-size: 1rem;
}

.sg-step p {
    margin: 0;
    color: #356979;
    font-size: .82rem;
}

.sg-platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 34px;
}

.sg-platform-stat {
    padding-left: 18px;
    border-left: 4px solid var(--sg-orange);
}

.sg-platform-stat strong {
    display: block;
    color: var(--sg-text);
    font-size: 2rem;
    line-height: 1;
}

.sg-platform-stat span {
    display: block;
    margin-top: 9px;
    color: #356979;
    font-size: .86rem;
}

.sg-platform-note {
    margin: 34px 0 0;
    color: #356979;
    font-size: .9rem;
}

.sg-partner-section {
    background: #fff;
}

.sg-partner-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 26px;
}

.sg-partner-item {
    display: block;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.sg-partner-item:nth-child(4),
.sg-partner-item:nth-child(5) {
    grid-column: auto;
}

.sg-partner-item h3 {
    margin: 0 0 10px;
    color: var(--sg-text);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.sg-partner-item p {
    margin: 0;
    color: #356979;
    font-size: .88rem;
}

.sg-webinar {
    padding-bottom: 54px;
}

.sg-webinar h2 {
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.sg-webinar p {
    margin: 0 0 20px;
    color: #356979;
}

.sg-faq-list {
    margin-top: 28px;
    padding: 12px;
    background: var(--sg-blue);
}

.sg-faq-item {
    margin-bottom: 6px;
    background: #fff;
}

.sg-faq-item:last-child {
    margin-bottom: 0;
}

.sg-faq-item summary {
    padding: 16px 20px;
    color: var(--sg-text);
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

.sg-faq-item summary::-webkit-details-marker {
    display: none;
}

.sg-faq-item summary::after {
    float: right;
    content: "⌄";
    color: var(--sg-text);
    font-size: 1.2rem;
}

.sg-faq-item[open] summary::after {
    content: "⌃";
}

.sg-faq-answer {
    padding: 0 20px 18px;
    color: #356979;
    font-size: .92rem;
}

.sg-lead-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr);
    gap: 60px;
    align-items: start;
}

.sg-flyer-card {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 24px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--sg-orange);
}

.sg-flyer-card h3 {
    margin: 0 0 10px;
    color: var(--sg-text);
    font-size: 1.45rem;
}

.sg-flyer-card p {
    color: #356979;
}

.sg-flyer-mockup {
    display: grid;
    align-content: center;
    min-height: 170px;
    padding: 18px 12px;
    color: #fff;
    background: linear-gradient(145deg, var(--sg-blue) 0 72%, var(--sg-orange) 72% 76%, #fff 76%);
    box-shadow: 0 8px 18px rgba(0, 81, 106, .18);
    transform: rotate(3deg);
}

.sg-flyer-mockup strong {
    font-size: 1rem;
    line-height: 1.08;
}

.sg-flyer-mockup span {
    margin-top: 10px;
    color: #dceff3;
    font-size: .7rem;
}

.sg-contact-copy {
    margin-top: 30px;
}

.sg-contact-copy h2 {
    font-size: 2rem;
}

.sg-contact-copy p {
    max-width: 560px;
    color: #356979;
}

.sg-form {
    padding: 26px;
    background: #fff;
    border: 1px solid #d4e0e5;
    box-shadow: 0 10px 30px rgba(0, 81, 106, .08);
}

.sg-form label {
    display: block;
    margin-bottom: 6px;
    color: var(--sg-text);
    font-size: .82rem;
    font-weight: 700;
}

.sg-form input,
.sg-form select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #c8d6db;
    border-radius: 4px;
    color: var(--sg-text);
    background: #fff;
}

.sg-form input:focus,
.sg-form select:focus {
    outline: 2px solid rgba(245, 154, 0, .35);
    border-color: var(--sg-orange);
}

.sg-form-group {
    margin-bottom: 16px;
}

.sg-form .g-recaptcha {
    margin: 18px 0;
    transform-origin: left top;
}

.sg-form-submit {
    width: 100%;
    cursor: pointer;
}

.sg-form-status {
    min-height: 24px;
    margin-top: 12px;
    color: #a33a2b;
    font-size: .84rem;
}

.sg-form-status.is-success {
    color: #24704a;
}

.sg-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.sg-footer {
    padding: 22px 0;
    color: #d7ebef;
    background: var(--sg-blue);
    font-size: .8rem;
    text-align: center;
}

.sg-footer a {
    color: #fff;
}

.sg-modal-open {
    overflow: hidden;
}

.sg-flyer-modal {
    position: fixed;
    z-index: 1050;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.sg-flyer-modal[hidden] {
    display: none;
}

.sg-flyer-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 38, 50, .72);
}

.sg-flyer-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-top: 6px solid var(--sg-orange);
    box-shadow: 0 18px 50px rgba(0, 38, 50, .3);
}

.sg-flyer-modal-dialog h2 {
    margin: 0;
    padding: 26px 68px 0 26px;
    color: var(--sg-text);
    font-size: 2rem;
}

#safeguarding-flyer-modal-form-content > p {
    margin: 8px 26px 0;
    color: #356979;
}

.sg-flyer-modal-dialog .sg-form {
    border: 0;
    box-shadow: none;
}

.sg-flyer-success {
    padding: 42px 26px 38px;
    color: var(--sg-text);
    text-align: center;
}

.sg-flyer-success-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    color: #fff;
    background: #24704a;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
}

.sg-flyer-success h2 {
    padding: 0;
    font-size: 2.2rem;
}

.sg-flyer-success p {
    max-width: 400px;
    margin: 10px auto 24px;
    color: #356979;
}

.sg-flyer-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 38px;
    height: 38px;
    color: var(--sg-text);
    background: transparent;
    border: 1px solid #c8d6db;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.7rem;
    line-height: 1;
}

.sg-flyer-modal-close:hover,
.sg-flyer-modal-close:focus-visible {
    color: #fff;
    background: var(--sg-orange);
    border-color: var(--sg-orange);
}

@media (max-width: 900px) {
    .sg-table-wrap {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    .sg-table-wrap::-webkit-scrollbar {
        display: none;
    }

    .sg-hero-grid,
    .sg-lead-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .sg-role-heading {
        white-space: normal;
    }

    .sg-partner-grid {
        grid-template-columns: 1fr;
    }

    .sg-partner-item,
    .sg-partner-item:nth-child(4),
    .sg-partner-item:nth-child(5) {
        grid-column: auto;
    }

    .sg-steps {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 34px;
    }

    .sg-step:nth-child(3)::after,
    .sg-step:nth-child(6)::after {
        display: none;
    }

    .sg-platform-grid {
        gap: 20px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .sg-container {
        max-width: 540px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .sg-container {
        max-width: 720px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .sg-container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .sg-container {
        max-width: 1140px;
    }
}

@media (max-width: 600px) {
    .sg-container {
        max-width: 100%;
        padding-right: 12px;
        padding-left: 12px;
    }

    .sg-nav {
        padding-top: 18px;
    }

    .sg-nav-cta {
        min-height: 38px;
        padding: 8px 12px;
        font-size: .82rem;
    }

    .sg-hero-grid {
        min-height: 0;
        padding: 36px 0 48px;
    }

    .sg-section {
        padding: 44px 0;
    }

    .sg-steps,
    .sg-platform-grid,
    .sg-partner-grid {
        grid-template-columns: 1fr;
    }

    .sg-step:not(:last-child)::after {
        display: none;
    }

    .sg-flyer-card {
        grid-template-columns: 1fr;
    }

    .sg-flyer-mockup {
        width: 140px;
    }

    .sg-form {
        padding: 20px;
    }

    .sg-form .g-recaptcha {
        transform: scale(.82);
    }

    .sg-flyer-modal {
        padding: 12px;
    }

    .sg-flyer-modal-dialog {
        max-height: calc(100vh - 24px);
    }

    .sg-flyer-modal-dialog h2 {
        padding-left: 20px;
    }

    #safeguarding-flyer-modal-form-content > p {
        margin-right: 20px;
        margin-left: 20px;
    }
}
