
/* =========================================
   KB7 CARE — SERVICE DETAILS HERO
========================================= */

.kb7-service-details-hero {
    --kb7-purple: #38147f;
    --kb7-purple-dark: #170b3b;
    --kb7-lime: #b4e94d;
    --kb7-lavender: #ad91ee;

    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 760px;
    min-height: 100svh;

    overflow: hidden;
    background: var(--kb7-purple-dark);
    color: #fff;
}

/* Responsive hero image */

.kb7-service-hero-media,
.kb7-service-hero-image {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.kb7-service-hero-media {
    display: block;
    overflow: hidden;
}

.kb7-service-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Light purple overlay — keeps the hero image visible */

.kb7-service-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(39, 17, 103, 0.42) 0%,
            rgba(48, 24, 112, 0.32) 28%,
            rgba(48, 24, 112, 0.22) 46%,
            rgba(25, 12, 56, 0.08) 76%,
            rgba(15, 8, 35, 0.03) 100%
        );
}

/* Container and spacing */

.kb7-service-details-hero > .container-fluid {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 1900px;
    margin: 0 auto;

    padding-top: 105px;
    padding-bottom: 145px;
}

/* Content */

.kb7-service-hero-content {
    width: 100%;
    max-width: 850px;
}

/* Breadcrumb */

.kb7-service-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin: 0 0 28px;

    font-size: 13px;
    line-height: 1.5;
}

.kb7-service-breadcrumb a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    transition: color 0.2s ease;
}

.kb7-service-breadcrumb a:hover {
    color: var(--kb7-lime);
}

.kb7-service-breadcrumb i {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.kb7-service-breadcrumb span {
    color: #fff;
}

/* Eyebrow badge */

.kb7-service-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 24px;
    padding: 9px 16px;

    border: 1px solid rgba(255, 255, 255, 0.19);
    border-radius: 50px;

    background: rgba(255, 255, 255, 0.1);
    color: #fff;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.45px;
}

.kb7-service-hero-eyebrow i {
    color: var(--kb7-lime);
    font-size: 13px;
}

/* Main heading */

.kb7-service-hero-content h1 {
    max-width: 850px;
    margin: 0 0 23px;

    color: var(--kb7-lime);
    font-size: clamp(44px, 4.3vw, 68px);
    font-weight: 850;
    line-height: 1.14;
    letter-spacing: -1.5px;
    overflow-wrap: break-word;
}

/* Description */

.kb7-service-hero-content > p {
    max-width: 830px;
    margin: 0 0 27px;

    color: rgba(255, 255, 255, 0.93);
    font-size: clamp(17px, 1.65vw, 24px);
    font-weight: 400;
    line-height: 1.72;
}

/* Buttons */

.kb7-service-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.kb7-service-hero-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 53px;
    padding: 0 30px;

    border-radius: 50px;
    border: 1px solid transparent;

    font-size: 13px;
    font-weight: 800;
    text-decoration: none;

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

.kb7-service-hero-actions .btn i {
    font-size: 15px;
    transition: transform 0.25s ease;
}

.kb7-service-hero-actions .btn:hover i {
    transform: translateX(4px);
}

/* Primary CTA */

.kb7-service-hero-btn-primary {
    background: linear-gradient(110deg, #b45be1, #8142bd);
    color: #fff;
    box-shadow: 0 8px 22px rgba(20, 7, 50, 0.2);
}

.kb7-service-hero-btn-primary:hover {
    background: linear-gradient(110deg, #c274e9, #9757d0);
    color: #fff;
    transform: translateY(-2px);
}

/* Secondary CTA */

.kb7-service-hero-btn-outline {
    border-color: rgba(255, 255, 255, 0.42) !important;
    background: rgba(23, 11, 59, 0.16);
    color: #fff;
}

.kb7-service-hero-btn-outline:hover {
    border-color: #fff !important;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-2px);
}

/* Bottom purple wave */

.kb7-service-hero-wave {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    z-index: 2;

    height: clamp(95px, 15vw, 210px);
    pointer-events: none;

    background: linear-gradient(145deg, #5428b6, #32127d);

    clip-path: polygon(
        0 72%,
        14% 76%,
        29% 83%,
        45% 91%,
        60% 92%,
        75% 78%,
        88% 53%,
        100% 8%,
        100% 100%,
        0 100%
    );
}

/* Bottom lime-green wave */

.kb7-service-hero-wave::after {
    position: absolute;
    inset: 0;

    background: linear-gradient(100deg, #5c8527, #a9d83f, #80b42e);

    clip-path: polygon(
        0 91%,
        19% 92%,
        37% 97%,
        54% 100%,
        72% 94%,
        87% 76%,
        100% 49%,
        100% 100%,
        0 100%
    );

    content: "";
}

/* ==========================================
   SERVICE DETAIL HERO - RESPONSIVE LAPTOP/DESKTOP SCALE
========================================== */

@media (min-width: 992px) {
    .kb7-service-details-hero {
        align-items: flex-start;
    }

    .kb7-service-details-hero > .container-fluid {
        width: 100%;
        max-width: none;
        padding: clamp(160px, calc(5.3vw + 70px), 210px) clamp(48px, 5vw, 100px) 100px;
    }

    .kb7-service-hero-content {
        max-width: min(850px, 58vw);
    }

    .kb7-service-breadcrumb {
        margin-bottom: clamp(21px, 1.4vw, 29px);
        font-size: clamp(10px, 0.62vw, 14px);
    }

    .kb7-service-hero-eyebrow {
        margin-bottom: clamp(21px, 1.4vw, 29px);
        padding: clamp(7px, 0.45vw, 10px) clamp(11px, 0.75vw, 16px);
        font-size: clamp(10px, 0.62vw, 14px);
    }

    .kb7-service-hero-eyebrow i {
        font-size: clamp(11px, 0.72vw, 15px);
    }

    .kb7-service-hero-content h1 {
        max-width: min(850px, 58vw);
        margin-bottom: clamp(18px, 1.1vw, 24px);
        font-size: clamp(50px, 4vw, 78px);
        letter-spacing: clamp(-2px, -0.11vw, -1px);
    }

    .kb7-service-hero-content > p {
        max-width: min(700px, 45vw);
        margin-bottom: clamp(22px, 1.5vw, 31px);
        font-size: clamp(17px, 1.3vw, 27px);
        line-height: clamp(1.65, 1.8, 1.85);
    }

    .kb7-service-hero-actions {
        gap: clamp(10px, 0.75vw, 15px);
    }

    .kb7-service-hero-actions .btn {
        min-height: clamp(44px, 2.5vw, 58px);
        padding: 0 clamp(18px, 1.25vw, 28px);
        gap: clamp(9px, 0.6vw, 13px);
        font-size: clamp(11px, 0.68vw, 14px);
    }

    .kb7-service-hero-actions .btn i {
        font-size: clamp(13px, 0.75vw, 16px);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .kb7-service-details-hero {
        align-items: flex-start;
    }

    .kb7-service-details-hero > .container-fluid {
        padding-top: 160px;
    }
}

@media (min-width: 1400px) {
    .kb7-service-hero-eyebrow,
    .kb7-service-breadcrumb {
        font-size: clamp(12px, 0.7vw, 16px);
    }

    .kb7-service-hero-content h1 {
        font-size: clamp(60px, 4.5vw, 94px);
    }

    .kb7-service-hero-content > p {
        font-size: clamp(20px, 1.45vw, 31px);
    }

    .kb7-service-hero-actions .btn {
        font-size: clamp(12px, 0.75vw, 16px);
    }
}

@media (max-width: 767.98px) {
    .kb7-service-details-hero {
        align-items: flex-start;
    }

    .kb7-service-details-hero > .container-fluid {
        padding: 105px 16px 115px;
    }
}

@media (max-width: 420px) {
    .kb7-service-details-hero > .container-fluid {
        padding: 96px 16px 100px;
    }
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 991.98px) {
    .kb7-service-details-hero {
        min-height: 780px;
    }

    .kb7-service-details-hero > .container-fluid {
        padding-top: 90px;
        padding-bottom: 135px;
    }

    .kb7-service-hero-content {
        max-width: 720px;
    }

    .kb7-service-hero-content h1 {
        font-size: clamp(42px, 6vw, 58px);
    }

    .kb7-service-hero-content > p {
        font-size: 18px;
    }

    .kb7-service-hero-overlay {
        background: linear-gradient(
            90deg,
            rgba(39, 17, 103, 0.4),
            rgba(39, 17, 103, 0.28) 55%,
            rgba(23, 11, 59, 0.12)
        );
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767.98px) {
    .kb7-service-details-hero {
        min-height: 100svh;
        height: auto;
        align-items: center;
    }

    .kb7-service-hero-image {
        object-position: center top;
    }

    .kb7-service-hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(32, 14, 83, 0.38) 0%,
            rgba(39, 17, 103, 0.3) 48%,
            rgba(23, 11, 59, 0.2) 100%
        );
    }

    .kb7-service-details-hero > .container-fluid {
        display: flex;
        align-items: center;
        min-height: 100svh;
        padding-top: 45px;
        padding-bottom: 115px;
    }

    .kb7-service-breadcrumb {
        gap: 7px;
        margin-bottom: 23px;
        font-size: 11px;
    }

    .kb7-service-hero-eyebrow {
        margin-bottom: 20px;
        padding: 8px 13px;
        font-size: 10px;
    }

    .kb7-service-hero-content h1 {
        margin-bottom: 20px;
        font-size: clamp(38px, 9vw, 54px);
        line-height: 1.15;
        letter-spacing: -0.8px;
    }

    .kb7-service-hero-content > p {
        margin-bottom: 24px;
        font-size: 15px;
        line-height: 1.75;
    }

    .kb7-service-hero-actions {
        gap: 11px;
    }

    .kb7-service-hero-actions .btn {
        min-height: 49px;
        padding: 0 20px;
        font-size: 12px;
    }

    .kb7-service-hero-wave {
        height: 90px;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 420px) {
    .kb7-service-details-hero > .container-fluid {
        padding-top: 35px;
        padding-bottom: 100px;
    }

    .kb7-service-hero-content h1 {
        font-size: 36px;
    }

    .kb7-service-hero-content > p {
        font-size: 14px;
    }

    .kb7-service-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .kb7-service-hero-actions .btn {
        width: 100%;
    }

    .kb7-service-hero-wave {
        height: 70px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .kb7-service-details-hero *,
    .kb7-service-details-hero *::before,
    .kb7-service-details-hero *::after {
        transition: none !important;
    }
}


/* ==========================================
   KB7 CARE — RESPONSIVE SERVICE DETAILS
   Bootstrap 5 + Existing Flask/Jinja Template
========================================== */

:root {
    --sdc-purple: #5117ad;
    --sdc-purple-light: #8c43ef;
    --sdc-deep: #1d104b;
    --sdc-green: #8bc53f;
    --sdc-text: #31244d;
    --sdc-muted: #716782;
    --sdc-border: #ece6f5;
    --sdc-surface: #ffffff;
    --sdc-soft: #f8f5fc;
}

.sdc-main,
.sdc-trust,
.sdc-cta,
.scp-related-services {
    width: 100%;
    min-width: 0;
}

.sdc-main,
.sdc-trust,
.sdc-cta {
    color: var(--sdc-text);
}

.sdc-main {
    padding-bottom: 12px;
}

.sdc-main .sdc-layout {
    display: grid;
    grid-template-columns: 165px minmax(0, 1fr);
    align-items: start;
    gap: 22px;
    margin-bottom: 22px;
}

.sdc-main .sdc-layout > * {
    min-width: 0;
}

/* TRUST BAR */

.sdc-trust {
    margin-bottom: 20px;
    border: 1px solid var(--sdc-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(40, 15, 80, .035);
}

.sdc-trust__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
}

.sdc-trust__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    padding: 15px 10px;
    border-right: 1px solid #f0ebf6;
    color: var(--sdc-deep);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.sdc-trust__item:last-child {
    border-right: 0;
}

.sdc-trust__item > i {
    flex: 0 0 auto;
    color: var(--sdc-purple);
    font-size: 22px;
}

.sdc-trust__item span {
    overflow-wrap: anywhere;
}

/* SIDEBAR NAVIGATION */

.sdc-sidebar {
    position: sticky;
    top: 95px;
    min-width: 0;
}

.sdc-sidebar__box {
    overflow: hidden;
    border: 1px solid var(--sdc-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(40, 15, 80, .035);
}

.sdc-sidebar__title {
    margin: 0;
    padding: 14px 12px;
    background: #f4effb;
    color: var(--sdc-deep);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.sdc-sidebar__link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 39px;
    padding: 10px 12px;
    border-top: 1px solid #f1edf6;
    color: #4b3d61;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.sdc-sidebar__link:hover,
.sdc-sidebar__link--active {
    background: var(--sdc-purple);
    color: #fff;
}

.sdc-sidebar__link:focus-visible {
    outline: 2px solid var(--sdc-purple-light);
    outline-offset: -3px;
}

/* GENERAL SECTION STYLING */

.sdc-section,
.scp-services,
.scp-info-card,
.scp-help-card,
.scp-related-services {
    min-width: 0;
    border: 1px solid var(--sdc-border);
    border-radius: 13px;
    background: var(--sdc-surface);
    box-shadow: 0 3px 12px rgba(40, 15, 80, .025);
}

.sdc-section {
    padding: 20px;
}

.sdc-section__h2 {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sdc-border);
    color: var(--sdc-deep);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
}

.sdc-includes-heading,
.scp-section-title {
    margin: 0 0 15px;
    color: var(--sdc-deep);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
}

.sdc-about-text {
    margin-bottom: 13px;
    color: #554a68;
    font-size: 14px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.sdc-about-text:last-child {
    margin-bottom: 0;
}

/* OVERVIEW HIGHLIGHTS */

.sdc-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--sdc-border);
    border-radius: 13px;
    background: #f8f5fd;
}

.sdc-highlight-item {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.sdc-highlight-icon {
    display: flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    color: var(--sdc-purple);
    font-size: 22px;
}

.sdc-highlight-item h6 {
    margin: 0 0 4px;
    color: var(--sdc-deep);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
}

.sdc-highlight-item p {
    margin: 0;
    color: var(--sdc-muted);
    font-size: 11px;
    line-height: 1.6;
}

/* CONTACT CARD */

.scp-contact-card {
    position: sticky;
    top: 95px;
    min-width: 0;
    padding: 20px 15px;
    border-radius: 13px;
    background: linear-gradient(145deg, #6421d7, #24076e);
    color: #fff;
    box-shadow: 0 8px 20px rgba(65, 20, 140, .15);
}

.scp-contact-card h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
}

.scp-contact-subtitle {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, .85);
    font-size: 12px;
}

.scp-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    color: #fff;
    text-decoration: none;
}

.scp-contact-item:hover {
    color: #d9c7ff;
}

.scp-contact-icon {
    display: flex;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.scp-contact-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.scp-contact-content span {
    color: rgba(255,255,255,.8);
    font-size: 11px;
}

.scp-contact-content strong {
    color: #fff;
    font-size: 11px;
    line-height: 1.5;
}

/* SERVICES INCLUDED GRID */

.scp-services {
    width: 100%;
    padding: 20px;
}

.scp-services-wrapper {
    position: relative;
    min-width: 0;
}

.scp-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px;
}

/* Final responsive card alignment override. */
@media (max-width: 991.98px) and (min-width: 768px) {
    .scp-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.sdc-services-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.scp-service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 18px 16px;
    border: 1px solid var(--sdc-border);
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

/* Keep the service cards aligned as the sidebar and content narrow. */
@media (max-width: 991.98px) and (min-width: 768px) {
    .scp-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.scp-service-card:hover {
    transform: translateY(-2px);
    border-color: #d9c7f7;
    box-shadow: 0 7px 18px rgba(55, 25, 100, .06);
}

.scp-service-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.scp-service-header > i {
    flex: 0 0 auto;
    font-size: 21px;
}

.scp-service-header h3 {
    min-width: 0;
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.scp-service-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.scp-service-card li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 9px;
    color: #5c526e;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.scp-service-card li > i {
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--sdc-green);
    font-size: 13px;
    font-weight: 800;
}

.scp-service-description {
    display: block;
    margin-top: auto;
    padding-top: 5px;
    color: #756a85;
    font-size: 13px;
    line-height: 1.65;
}

/* SEE MORE / SEE LESS */

.scp-service-hidden {
    display: none;
}

.scp-services-wrapper.expanded .scp-service-hidden {
    display: flex;
}

.scp-see-more-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.scp-see-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 9px 19px;
    border: 0;
    border-radius: 30px;
    background: linear-gradient(100deg, #8c43f4, #6330d7);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(91, 35, 180, .2);
    cursor: pointer;
}

.scp-see-more-btn:hover {
    background: var(--sdc-deep);
}

/* WHY CHOOSE KB7 */

.sdc-section--includes {
    padding: 20px;
}

.sdc-why-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 15px;
}

.sdc-why-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    color: #574b69;
    font-size: 13px;
    line-height: 1.6;
}

.sdc-why-item > i {
    flex: 0 0 auto;
    color: var(--sdc-green);
    font-size: 14px;
}

.sdc-why-item span {
    overflow-wrap: anywhere;
}

/* HOW IT WORKS — DESKTOP */

.sdc-process {
    height: 100%;
    padding: 20px;
}

.sdc-process-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 9px;
}

.sdc-process-item {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    min-width: 0;
    text-align: center;
}

.sdc-process-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: linear-gradient(145deg, #a456f3, #4c16a8);
    color: #fff;
    font-size: 17px;
    box-shadow: 0 4px 12px rgba(79, 20, 163, .2);
}

.sdc-process-line {
    position: absolute;
    top: 19px;
    left: -50%;
    width: 100%;
    border-top: 1px dashed #cbb6ef;
}

.sdc-process-number {
    margin-bottom: 5px;
    color: var(--sdc-purple);
    font-size: 12px;
    font-weight: 800;
}

.sdc-process-item h6 {
    margin: 0 0 6px;
    color: var(--sdc-deep);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.sdc-process-item p {
    margin: 0;
    color: #655a77;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* FUNDING, WHO WE SUPPORT, SERVICE AREAS */

.scp-info-card,
.scp-help-card {
    height: 100%;
    padding: 18px;
}

.scp-info-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.scp-info-header > i {
    flex: 0 0 auto;
    color: var(--sdc-purple-light);
    font-size: 20px;
}

.scp-info-header h3 {
    margin: 0;
    color: var(--sdc-deep);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.scp-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.scp-info-row > i {
    flex: 0 0 auto;
    color: var(--sdc-purple-light);
    font-size: 15px;
}

.scp-info-row > div {
    min-width: 0;
}

.scp-info-row strong {
    display: block;
    color: var(--sdc-text);
    font-size: 11px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.scp-info-row p,
.scp-info-description,
.scp-info-card > p,
.scp-help-card > p {
    color: var(--sdc-muted);
    font-size: 11px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.scp-info-row p {
    margin: 4px 0 0;
}

.scp-check-list {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.scp-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    color: #5d526e;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.scp-check-list li > i {
    flex: 0 0 auto;
    color: var(--sdc-green);
    font-size: 13px;
}

.scp-service-state-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 18px;
    row-gap: 4px;
}

.scp-service-state-list li {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .scp-service-state-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 12px;
    }
}

/* Mobile service information cards: use the full phone width. */
@media (max-width: 575.98px) {
    #funding_options {
        margin-right: 0;
        margin-left: 0;
    }

    #funding_options > [class*="col-"] {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    #funding_options .scp-info-card {
        height: auto;
        min-height: 0;
        padding: 18px;
    }

    #funding_options .scp-info-header {
        gap: 12px;
        margin-bottom: 18px;
    }

    #funding_options .scp-info-header > i {
        font-size: 21px;
    }

    #funding_options .scp-info-header h3 {
        font-size: 15px;
        line-height: 1.35;
    }

    #funding_options .scp-info-row strong,
    #funding_options .scp-info-row p,
    #funding_options .scp-info-description,
    #funding_options .scp-info-card > p {
        font-size: 13px;
        line-height: 1.65;
    }

    #funding_options .scp-info-row {
        gap: 12px;
        margin-bottom: 18px;
    }

    #funding_options .scp-check-list li {
        gap: 10px;
        margin-bottom: 12px;
        font-size: 13px;
        line-height: 1.55;
    }

    #funding_options .scp-service-state-list {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 3px;
    }
}

/* NEED HELP CARD */

.scp-help-card {
    border-color: #e4d6fb;
    background: #f8f4ff;
}

.scp-help-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 9px;
    background: linear-gradient(100deg, #6724d3, #3c0c96);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.scp-help-btn:hover {
    background: var(--sdc-deep);
    color: #fff;
}

/* RELATED SERVICES */

.scp-related-services {
    margin: 24px 0;
    padding: 20px;
}

.scp-related-services .scp-section-title {
    margin-bottom: 16px;
}

.scp-related-services .scp-section-title p {
    margin: 8px 0 0;
    color: var(--sdc-muted);
    font-size: 12px !important;
    font-weight: 400;
    line-height: 1.6;
}

.scp-related-card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--sdc-border);
    border-radius: 11px;
    background: #fff;
    transition: transform .2s, box-shadow .2s;
}

.scp-related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 16px rgba(40, 15, 80, .07);
}

.scp-related-content {
    display: flex;
    align-items: flex-start;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 13px;
}

.scp-related-content h4 {
    margin: 0 0 7px;
    color: var(--sdc-deep);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.scp-related-content p {
    margin-bottom: 10px;
    color: var(--sdc-muted);
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.scp-related-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: var(--sdc-purple);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.scp-related-link:hover {
    color: var(--sdc-deep);
}

.scp-related-image {
    flex: 0 0 85px;
    align-self: center;
    width: 85px;
    height: 95px;
    margin-right: 8px;
    border-radius: 9px;
    object-fit: cover;
}

/* CTA BANNER */

.sdc-cta {
    margin: 22px 0;
}

.sdc-cta__card {
    padding: 20px 24px;
    overflow: hidden;
    border-radius: 13px;
    background: linear-gradient(105deg, #4d159f, #160d49);
    color: #fff;
    box-shadow: 0 7px 18px rgba(45, 12, 100, .12);
}

.sdc-cta__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(190px, .8fr) minmax(190px, .8fr);
    align-items: center;
    gap: 22px;
}

.sdc-cta__copy {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.sdc-cta__icon-ring {
    display: flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
}

.sdc-cta__icon {
    color: #fff;
    font-size: 28px;
}

.sdc-cta__h2 {
    margin: 0 0 5px;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
}

.sdc-cta__sub {
    margin: 0;
    color: rgba(255,255,255,.83);
    font-size: 13px;
    line-height: 1.65;
}

.sdc-cta__action {
    min-width: 0;
}

.sdc-btn--cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #fff;
    color: var(--sdc-purple);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.sdc-btn--cta:hover {
    background: #f0e8ff;
    color: var(--sdc-deep);
}

.sdc-cta__phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    padding: 11px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 10px;
}

.sdc-cta__phone-icon-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.sdc-cta__phone-label {
    display: block;
    margin-bottom: 3px;
    color: rgba(255,255,255,.8);
    font-size: 13px;
}

.sdc-cta__phone-num {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.sdc-cta__phone-num:hover {
    color: #d9c7ff;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 1199.98px) {
    .sdc-main .sdc-layout {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 16px;
    }

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

    .sdc-process-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 22px;
    }

    .sdc-cta__grid {
        grid-template-columns: minmax(0, 1fr) minmax(175px, .8fr);
    }

    .sdc-cta__copy {
        grid-column: 1 / -1;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767.98px) {
    .sdc-trust {
        margin-bottom: 16px;
    }

    .sdc-trust__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sdc-trust__item {
        justify-content: flex-start;
        min-height: 65px;
        padding: 12px;
        border-right: 1px solid #f0ebf6;
        border-bottom: 1px solid #f0ebf6;
        font-size: 11px;
    }

    .sdc-trust__item:nth-child(2n) {
        border-right: 0;
    }

    .sdc-trust__item:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .sdc-trust__item > i {
        font-size: 19px;
    }

    .sdc-main .sdc-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        margin-bottom: 18px;
    }

    .sdc-sidebar,
    .scp-contact-card {
        position: static;
    }

    .sdc-sidebar__box {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sdc-sidebar__title {
        grid-column: 1 / -1;
    }

    .sdc-sidebar__link {
        min-height: 42px;
        padding: 11px 10px;
        font-size: 13px;
        overflow-wrap: anywhere;
    }

    .sdc-sidebar__link:nth-child(odd) {
        border-right: 1px solid #f1edf6;
    }

    .sdc-section {
        padding: 16px;
    }

    .sdc-section__h2 {
        font-size: 18px;
    }

    .sdc-includes-heading,
    .scp-section-title {
        font-size: 15px;
    }

    .sdc-about-text {
        font-size: 12px;
        line-height: 1.8;
    }

    .sdc-highlights {
        padding: 16px;
        gap: 17px;
    }

    .scp-contact-card {
        padding: 18px;
    }

    .scp-contact-item {
        margin-top: 14px;
    }

    .scp-services {
        padding: 15px;
    }

    .scp-services-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .scp-service-card {
        padding: 16px;
    }

    .scp-service-header h3 {
        font-size: 13px;
    }

    .scp-service-card li {
        font-size: 12px;
    }

    .scp-service-description {
        font-size: 11px;
    }

    .sdc-why-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .sdc-why-item {
        font-size: 12px;
    }

    /* Prevent the process titles from overlapping on mobile */
    .sdc-process-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .sdc-process-item {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        align-items: start;
        column-gap: 12px;
        text-align: left;
    }

    .sdc-process-icon {
        grid-column: 1;
        grid-row: 1 / 4;
        width: 40px;
        height: 40px;
        margin: 0;
    }

    .sdc-process-line {
        top: -20px;
        left: 19px;
        width: 0;
        height: 20px;
        border-top: 0;
        border-left: 1px dashed #cbb6ef;
    }

    .sdc-process-number {
        grid-column: 2;
        grid-row: 1;
        margin: 0 0 3px;
    }

    .sdc-process-item h6 {
        grid-column: 2;
        grid-row: 2;
        margin-bottom: 4px;
        font-size: 12px;
    }

    .sdc-process-item p {
        grid-column: 2;
        grid-row: 3;
        font-size: 11px;
        line-height: 1.65;
    }

    .scp-info-card,
    .scp-help-card {
        padding: 16px;
    }

    .scp-info-header h3 {
        font-size: 13px;
    }

    .scp-info-row strong,
    .scp-info-row p,
    .scp-info-description,
    .scp-info-card > p,
    .scp-help-card > p {
        font-size: 12px;
    }

    .scp-check-list li {
        font-size: 12px;
    }

    .scp-related-services {
        padding: 15px;
    }

    .scp-related-card {
        min-height: 112px;
    }

    .scp-related-image {
        flex-basis: 85px;
        width: 85px;
        height: 95px;
    }

    .sdc-cta__card {
        padding: 18px;
    }

    .sdc-cta__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .sdc-cta__copy {
        grid-column: auto;
        align-items: flex-start;
        gap: 12px;
    }

    .sdc-cta__icon-ring {
        flex-basis: 43px;
        width: 43px;
        height: 43px;
    }

    .sdc-cta__icon {
        font-size: 24px;
    }

    .sdc-cta__h2 {
        font-size: 16px;
    }

    .sdc-cta__sub {
        font-size: 11px;
    }

    .sdc-btn--cta {
        min-height: 45px;
    }

    .sdc-cta__phone {
        justify-content: center;
        min-height: 46px;
    }
}

/* SMALL MOBILE */

@media (max-width: 400px) {
    .sdc-trust__item {
        gap: 7px;
        padding: 10px 8px;
        font-size: 10px;
    }

    .sdc-trust__item > i {
        font-size: 17px;
    }

    .sdc-sidebar__link {
        padding: 10px 8px;
        font-size: 10px;
    }

    .sdc-section,
    .scp-services {
        padding: 13px;
    }

    .sdc-section__h2 {
        font-size: 17px;
    }

    .scp-related-content {
        padding: 10px;
    }

    .scp-related-image {
        flex-basis: 70px;
        width: 70px;
        height: 82px;
        margin-right: 6px;
    }

    .sdc-cta__card {
        padding: 14px;
    }
}

/* Final hero spacing overrides: keep the hero composition consistent
   across laptop, desktop and mobile layouts. */

@media (min-width: 992px) {
    .kb7-service-details-hero > .container-fluid {
        padding-top: clamp(160px, calc(5.3vw + 70px), 210px);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .kb7-service-details-hero > .container-fluid {
        padding-top: 160px;
    }
}

@media (max-width: 767.98px) {
    .kb7-service-details-hero {
        align-items: flex-start;
    }

    .kb7-service-details-hero > .container-fluid {
        padding-top: 105px;
        padding-bottom: 115px;
    }
}

@media (max-width: 420px) {
    .kb7-service-details-hero > .container-fluid {
        padding-top: 96px;
        padding-bottom: 100px;
    }
}
.sdc-photo-section {
    margin: 24px auto;
    padding: 0 16px;
    scroll-margin-top: 24px;
}

.sdc-photo-section[hidden] {
    display: none;
}

.sdc-photo-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 26px;
    border-bottom: 1px solid #eee7f8;
}

.sdc-photo-section-header h2 {
    margin: 0;
    color: #2f174f;
    font-size: 24px;
    font-weight: 800;
}

.sdc-photo-section-header p {
    margin: 4px 0 0;
    color: #756a85;
}

.sdc-photo-section-body {
    padding: 22px 26px 26px;
}

.sdc-photo-modal {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
}

.scp-services-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
}

.scp-services-heading-row .scp-section-title {
    margin-bottom: 0;
}

.scp-sil-photos-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 9px 14px;
    border: 1px solid #633bd0;
    border-radius: 999px;
    color: #633bd0;
    font-size: 12px;
    font-weight: 800;
}

.scp-sil-photos-card-btn {
    align-self: flex-start;
    margin-top: 16px;
}

.scp-sil-photos-btn:hover {
    background: #633bd0;
    color: #fff;
}

@media (max-width: 575.98px) {
    .scp-services-heading-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

.sdc-photo-modal .modal-header {
    padding: 22px 26px;
    border-bottom: 1px solid #eee7f8;
}

.sdc-photo-modal .modal-title {
    color: #2f174f;
    font-size: 24px;
    font-weight: 800;
}

.sdc-photo-modal .modal-body {
    padding: 22px 26px 26px;
}

.sdc-photo-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.sdc-photo-gallery figure {
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #f4f0fa;
}

.sdc-photo-gallery img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show the ENTIRE image */
    object-position: center;
}

@media (max-width: 767.98px) {
    .sdc-photo-gallery {
        grid-template-columns: 1fr;
    }

    .sdc-photo-gallery img {
        height: 280px;
    }
}

/* Keep service cards aligned on tablet widths after the base tablet rules. */
@media (max-width: 991.98px) and (min-width: 768px) {
    .scp-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
