/* Service page content system — above FAQ */
.svc-content {
    --svc-heading: #0A3D62;
    --svc-accent: #1a7bb8;
    --svc-muted: #5a738a;
    --svc-border: rgba(10, 61, 98, 0.1);
    --svc-surface: #ffffff;
    --svc-surface-alt: #f5f8fb;
    --svc-shadow: 0 10px 28px rgba(10, 61, 98, 0.06);
}

.main-wrapper .container-flex {
    margin-top: 8px;
    margin-bottom: 48px;
}

/*
 * Lock service body + hero to the SAME content box.
 * !important beats older cached services.css / theme utilities on live.
 */
.page-hero > .container,
.main-wrapper > .container.container-flex,
.main-wrapper > .container-flex {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
}

@media (min-width: 576px) {
    .page-hero > .container,
    .main-wrapper > .container.container-flex,
    .main-wrapper > .container-flex {
        max-width: 540px !important;
    }
}

@media (min-width: 768px) {
    .page-hero > .container,
    .main-wrapper > .container.container-flex,
    .main-wrapper > .container-flex {
        max-width: 720px !important;
    }
}

@media (min-width: 992px) {
    .page-hero > .container,
    .main-wrapper > .container.container-flex,
    .main-wrapper > .container-flex {
        max-width: 960px !important;
    }
}

@media (min-width: 1200px) {
    .page-hero > .container,
    .main-wrapper > .container.container-flex,
    .main-wrapper > .container-flex {
        max-width: 1140px !important;
    }
}

/* Theme overrides Bootstrap xxl 1320 → 1200 */
@media (min-width: 1400px) {
    .page-hero > .container,
    .main-wrapper > .container.container-flex,
    .main-wrapper > .container-flex {
        max-width: 1200px !important;
    }
}

/* Match hero .container edges exactly (Bootstrap width + gutters) */
.main-wrapper .container.container-flex,
.main-wrapper .container-flex,
.container.container-flex {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.main-wrapper .container.container-flex > .sidebar-col,
.main-wrapper > .container-flex > .sidebar-col,
.container.container-flex > .sidebar-col {
    flex: 0 0 210px;
    max-width: 210px;
    padding-left: 0;
    padding-right: 0;
    /* Stick beside long content; column must be the sticky box */
    position: sticky;
    top: 110px;
    align-self: flex-start;
    z-index: 20;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.main-wrapper .container.container-flex > .content-col,
.main-wrapper > .container-flex > .content-col,
.container.container-flex > .content-col {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
}

@media (max-width: 991.98px) {
    .main-wrapper .container.container-flex,
    .main-wrapper > .container-flex,
    .container.container-flex {
        flex-direction: column;
    }

    .main-wrapper .container.container-flex > .sidebar-col,
    .main-wrapper > .container-flex > .sidebar-col,
    .container.container-flex > .sidebar-col {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
    }
}

/* Sidebar polish */
.main-wrapper .sidebar {
    background: var(--svc-surface-alt, #f5f8fb);
    border: 1px solid var(--svc-border, rgba(10, 61, 98, 0.1));
    box-shadow: var(--svc-shadow, 0 10px 28px rgba(10, 61, 98, 0.06));
    margin-left: 0 !important;
    margin-top: 0;
    margin-bottom: 0;
    padding: 22px 18px;
    /* Sticky is on .sidebar-col so this stays in normal flow */
    position: relative;
    top: auto;
    z-index: auto;
}

.main-wrapper .sidebar h6 {
    color: var(--svc-heading, #0A3D62);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
}

.main-wrapper .sidebar ul li a {
    color: #3d5a73;
    font-size: 0.92rem;
}

.main-wrapper .sidebar ul li.current-menu-item a,
.main-wrapper .sidebar ul li a:hover {
    color: var(--svc-heading, #0A3D62);
    background: rgba(26, 123, 184, 0.1);
    border-left-color: var(--svc-accent, #1a7bb8);
}

/* Featured media */
.svc-media {
    margin: 0 0 28px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--svc-border);
    box-shadow: var(--svc-shadow);
    background: var(--svc-surface-alt);
}

.svc-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
}

/* Intro */
.svc-intro {
    margin: 0 0 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--svc-border);
}

.svc-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--svc-accent);
    margin: 0 0 8px;
}

.svc-lead {
    margin: 0;
    color: var(--svc-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.svc-lead + .svc-lead {
    margin-top: 12px;
}

/* Section blocks */
.svc-block {
    margin: 0 0 28px;
    padding: 22px 22px 20px;
    background: var(--svc-surface);
    border: 1px solid var(--svc-border);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(10, 61, 98, 0.04);
}

.svc-block--alt {
    background: var(--svc-surface-alt);
}

.svc-block__title {
    font-size: clamp(1.2rem, 2vw, 1.45rem) !important;
    font-weight: 700 !important;
    color: var(--svc-heading) !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    position: relative;
    padding-left: 14px !important;
}

.svc-block__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--svc-accent), var(--svc-heading));
}

.svc-block__body > p {
    margin: 0 0 12px;
    color: var(--svc-muted);
    line-height: 1.75;
    font-size: 1rem;
}

.svc-block__body > p:last-child {
    margin-bottom: 0;
}

.svc-content > .svc-block:nth-child(even of .svc-block) {
    background: var(--svc-surface-alt);
}

/* Cards grid */
.svc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 28px;
}

.svc-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.svc-card {
    background: var(--svc-surface);
    border: 1px solid var(--svc-border);
    border-radius: 12px;
    padding: 18px 16px;
    box-shadow: 0 6px 18px rgba(10, 61, 98, 0.04);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.svc-card:hover {
    border-color: rgba(26, 123, 184, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(10, 61, 98, 0.08);
}

.svc-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--svc-heading);
    margin: 0 0 8px;
    line-height: 1.35;
}

.svc-card__text {
    margin: 0;
    color: var(--svc-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Process steps */
.svc-steps {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.svc-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: start;
    background: var(--svc-surface-alt);
    border: 1px solid var(--svc-border);
    border-radius: 12px;
    padding: 16px;
}

.svc-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(26, 123, 184, 0.12);
    color: var(--svc-accent);
    font-weight: 700;
    font-size: 0.95rem;
}

.svc-step__title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--svc-heading);
    margin: 0 0 6px;
}

.svc-step__text {
    margin: 0;
    color: var(--svc-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Checklist */
.svc-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.svc-list li {
    position: relative;
    padding: 12px 14px 12px 40px;
    background: var(--svc-surface);
    border: 1px solid var(--svc-border);
    border-radius: 10px;
    color: var(--svc-muted);
    line-height: 1.55;
}

.svc-list li::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(26, 123, 184, 0.14);
    box-shadow: inset 0 0 0 4px transparent;
}

.svc-list li::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 50%;
    width: 6px;
    height: 6px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--svc-accent);
}

/* Mid CTA */
.svc-mid-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 8px 0 32px;
    padding: 20px;
    border-radius: 12px;
    background:
        radial-gradient(ellipse at left, rgba(26, 123, 184, 0.12), transparent 55%),
        var(--svc-surface-alt);
    border: 1px solid var(--svc-border);
}

.svc-mid-cta__text {
    flex: 1 1 220px;
    margin: 0;
    color: var(--svc-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.svc-mid-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none !important;
    background: linear-gradient(105deg, #0A3D62 0%, #1a7bb8 100%);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(10, 61, 98, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.svc-mid-cta__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(10, 61, 98, 0.24);
    color: #fff !important;
}

/* Hide legacy gray banner chrome when pages still have it during migration */
.main-wrapper > .section-box {
    display: none;
}

.main-wrapper > br {
    display: none;
}

/* Content-col typography when not yet fully componentized */
.content-col.svc-content > h2 {
    font-size: clamp(1.2rem, 2vw, 1.45rem) !important;
    font-weight: 700 !important;
    color: var(--svc-heading) !important;
    margin: 28px 0 12px !important;
    padding: 18px 18px 0 !important;
    border: 1px solid var(--svc-border);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    background: var(--svc-surface);
    position: relative;
}

.content-col.svc-content > h2::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 26px;
    width: 4px;
    height: 1.1em;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--svc-accent), var(--svc-heading));
}

.content-col.svc-content > h2 + p,
.content-col.svc-content > h2 + p + p {
    margin: 0 !important;
    padding: 0 18px 14px !important;
    border-left: 1px solid var(--svc-border);
    border-right: 1px solid var(--svc-border);
    background: var(--svc-surface);
    color: var(--svc-muted);
    line-height: 1.75;
}

.content-col.svc-content > h2 + p {
    padding-top: 8px !important;
    padding-left: 32px !important;
}

.content-col.svc-content > h2 + p + p:last-of-type,
.content-col.svc-content > h2 + p:has(+ :not(p)) {
    border-bottom: 1px solid var(--svc-border);
    border-radius: 0 0 12px 12px;
    padding-bottom: 18px !important;
    margin-bottom: 18px !important;
}

.content-col.svc-content > ul {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.content-col.svc-content > ul > li {
    position: relative;
    padding: 12px 14px 12px 40px;
    background: var(--svc-surface);
    border: 1px solid var(--svc-border);
    border-radius: 10px;
    color: var(--svc-muted);
}

.content-col.svc-content > ul > li::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(26, 123, 184, 0.14);
}

.content-col.svc-content > ul > li::after {
    content: '';
    position: absolute;
    left: 19px;
    top: 50%;
    width: 6px;
    height: 6px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--svc-accent);
}

.content-col.svc-content > .hero-btns {
    margin: 8px 0 28px;
}

@media (max-width: 991.98px) {
    .svc-grid,
    .svc-grid--3 {
        grid-template-columns: 1fr;
    }

    .svc-media img {
        max-height: 280px;
    }

    .main-wrapper .sidebar {
        position: static;
    }
}
