.service-detail-redesign {
    background: #ffffff;
    color: #12324a;
}

.service-backlink {
    position: fixed;
    left: 24px;
    top: 92px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 80, 158, 0.18);
    color: #005baa;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(13, 47, 74, 0.12);
}

.service-backlink:hover {
    color: #004c8d;
    text-decoration: none;
}

.sd-hero {
    padding: 138px 0 76px;
    overflow: hidden;
}

.sd-hero-grid,
.sd-split,
.sd-audience-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
    gap: 46px;
    align-items: center;
}

.sd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #008c95;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.sd-eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    background: #d6a84f;
    display: inline-block;
}

.sd-hero h1,
.sd-section h2,
.sd-cta h2 {
    color: #0d2f4a;
    line-height: 1.08;
    margin-bottom: 16px;
}

.sd-hero h1 {
    font-size: clamp(2rem, 3.25vw, 3.25rem);
    max-width: 820px;
}

.sd-hero-lede,
.sd-section-intro {
    color: #4f6f84;
    font-size: 1.16rem;
    line-height: 1.76;
}

.sd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.sd-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sd-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.sd-button-primary {
    background: #005baa;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(0, 91, 170, 0.2);
}

.sd-button-primary:hover {
    background: #004c8d;
    color: #ffffff;
}

.sd-button-outline {
    color: #005baa;
    border: 1px solid rgba(0, 91, 170, 0.28);
    background: #ffffff;
}

.sd-button-outline:hover {
    color: #004c8d;
    border-color: #004c8d;
    box-shadow: 0 12px 26px rgba(13, 47, 74, 0.1);
}

.sd-media-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    min-height: 430px;
    background: #eef7f8;
    box-shadow: 0 22px 54px rgba(13, 47, 74, 0.16);
}

.sd-media-card img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.sd-media-note {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    background: rgba(255, 255, 255, 0.94);
    color: #12324a;
    padding: 18px 20px;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(13, 47, 74, 0.14);
}

.sd-media-note strong {
    display: block;
    color: #0d2f4a;
    margin-bottom: 6px;
}

.sd-section {
    padding: 82px 0;
}

.sd-section-soft {
    background: #f6fbfb;
}

.sd-section-dark {
    background: #0d2f4a;
    color: #ffffff;
}

.sd-section-dark h2,
.sd-section-dark .sd-eyebrow {
    color: #ffffff;
}

.sd-section-dark .sd-section-intro {
    color: #d8ebef;
}

.sd-section-header {
    max-width: 820px;
    margin: 0 auto 40px;
    text-align: center;
}

.sd-section-header h2,
.sd-cta h2 {
    font-size: 2.55rem;
}

.sd-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.sd-card-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sd-card {
    background: #ffffff;
    border: 1px solid #dce9ec;
    border-radius: 8px;
    padding: 26px;
    box-shadow: 0 14px 34px rgba(13, 47, 74, 0.06);
}

.sd-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e5f6f4;
    color: #008c95;
    margin-bottom: 18px;
}

.sd-card h3 {
    color: #0d2f4a;
    font-size: 1.22rem;
    margin-bottom: 10px;
}

.sd-card p,
.sd-card li,
.sd-step p,
.sd-panel p {
    color: #526d7e;
    font-size: 1rem;
    line-height: 1.66;
}

.sd-card ul,
.sd-check-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.sd-card li,
.sd-check-list li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.sd-card li::before,
.sd-check-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #008c95;
    margin-top: 2px;
}

.sd-step-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #dce9ec;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(13, 47, 74, 0.07);
}

.sd-step {
    padding: 28px 24px;
    border-right: 1px solid #dce9ec;
}

.sd-step:last-child {
    border-right: 0;
}

.sd-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #e5f6f4;
    color: #008c95;
    font-weight: 900;
    margin-bottom: 16px;
}

.sd-step h3 {
    color: #0d2f4a;
    font-size: 1.12rem;
    margin-bottom: 8px;
}

.sd-panel {
    border-radius: 8px;
    padding: 32px;
    background: #ffffff;
    border-top: 4px solid #d6a84f;
    box-shadow: 0 16px 38px rgba(13, 47, 74, 0.08);
}

.sd-panel h2 {
    text-align: left;
    font-size: 2.15rem;
}

.sd-cta {
    background: #0d2f4a;
    color: #ffffff;
    padding: 66px 0;
}

.sd-cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
}

.sd-cta h2 {
    color: #ffffff;
    text-align: left;
}

.sd-cta p {
    color: #d8ebef;
    max-width: 760px;
    margin-bottom: 0;
}

.dental-page .sd-hero {
    background: linear-gradient(135deg, #f7fbfd 0%, #ffffff 56%, #e9f6f8 100%);
}

.dental-care-map {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 28px;
    align-items: stretch;
}

.dental-care-map .sd-card:first-child {
    background: #0d2f4a;
}

.dental-care-map .sd-card:first-child h3,
.dental-care-map .sd-card:first-child p {
    color: #ffffff;
}

.derm-page .sd-hero {
    background: #f7fbf8;
}

.derm-routine-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.derm-routine-board .sd-card:nth-child(odd) {
    transform: translateY(18px);
}

.ldn-page .sd-hero {
    background: radial-gradient(circle at 18% 20%, #e5f6f4 0%, transparent 28%), #ffffff;
}

.ldn-question-rail {
    display: grid;
    grid-template-columns: minmax(240px, 0.6fr) minmax(0, 1.4fr);
    gap: 34px;
}

.ldn-question-list {
    display: grid;
    gap: 14px;
}

.ldn-question-list .sd-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.eye-page .sd-hero {
    background: linear-gradient(90deg, #0d2f4a 0%, #0d2f4a 48%, #f5fafb 48%, #f5fafb 100%);
}

.eye-page .sd-hero h1,
.eye-page .sd-hero .sd-hero-lede {
    color: #ffffff;
}

.eye-page .sd-button-outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.06);
}

.eye-handling-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.pain-page .sd-hero {
    background: linear-gradient(135deg, #fffaf1 0%, #ffffff 50%, #f2faf8 100%);
}

.pain-routine-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    background: #dce9ec;
    border-radius: 8px;
    overflow: hidden;
}

.pain-routine-strip .sd-step {
    background: #ffffff;
    border-right: 0;
}

.peds-page .sd-hero {
    background: linear-gradient(135deg, #f5fbfb 0%, #ffffff 46%, #fff7e8 100%);
}

.peds-caregiver-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 26px;
    align-items: start;
}

.peds-note {
    background: #fff7e8;
    border-color: #f0d7aa;
}

.active-page .sd-hero {
    background: #f4f9f9;
}

.active-routine-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 1fr;
    gap: 18px;
    align-items: stretch;
}

.active-routine-grid .sd-card:nth-child(2) {
    background: #0d2f4a;
}

.active-routine-grid .sd-card:nth-child(2) h3,
.active-routine-grid .sd-card:nth-child(2) p,
.active-routine-grid .sd-card:nth-child(2) li {
    color: #ffffff;
}

.thyroid-page .sd-hero {
    background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
}

.thyroid-consistency-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 28px;
    align-items: start;
}

.thyroid-timeline {
    display: grid;
    gap: 14px;
}

.thyroid-timeline .sd-card {
    border-left: 4px solid #008c95;
}

.vet-page .sd-hero {
    background: linear-gradient(135deg, #f6fbfb 0%, #ffffff 48%, #eef6f1 100%);
}

.vet-audience-card {
    min-height: 100%;
}

.vet-audience-card.owner {
    background: #0d2f4a;
}

.vet-audience-card.owner h3,
.vet-audience-card.owner p,
.vet-audience-card.owner li {
    color: #ffffff;
}

@media (max-width: 1100px) {
    .pain-routine-strip,
    .derm-routine-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .service-backlink {
        position: static;
        margin: 88px 0 -70px 5%;
        box-shadow: none;
    }

    .sd-hero-grid,
    .sd-split,
    .sd-audience-grid,
    .dental-care-map,
    .ldn-question-rail,
    .peds-caregiver-grid,
    .active-routine-grid,
    .thyroid-consistency-grid,
    .sd-cta-grid {
        grid-template-columns: 1fr;
    }

    .eye-page .sd-hero {
        background: #0d2f4a;
    }

    .sd-card-grid,
    .sd-card-grid.two,
    .eye-handling-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .sd-step:nth-child(2) {
        border-right: 0;
    }

    .sd-step:nth-child(1),
    .sd-step:nth-child(2) {
        border-bottom: 1px solid #dce9ec;
    }
}

@media (max-width: 640px) {
    .sd-hero {
        padding: 110px 0 58px;
    }

    .sd-hero h1 {
        font-size: 2rem;
    }

    .sd-section-header h2,
    .sd-cta h2 {
        font-size: 2.25rem;
    }

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

    .sd-card-grid,
    .sd-card-grid.two,
    .sd-step-grid,
    .eye-handling-list,
    .pain-routine-strip,
    .derm-routine-board {
        grid-template-columns: 1fr;
    }

    .derm-routine-board .sd-card:nth-child(odd) {
        transform: none;
    }

    .sd-media-card,
    .sd-media-card img {
        min-height: 320px;
    }

    .sd-media-note {
        position: static;
        border-radius: 0;
    }

    .sd-step,
    .sd-step:nth-child(1),
    .sd-step:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid #dce9ec;
    }

    .sd-step:last-child {
        border-bottom: 0;
    }
}
