/* Second Opinion Clinic page: same navy hero, spacing and cards as the Home Health page. */
.so-page { color: var(--ink); }
.so-page h2 { color: var(--ink); font-size: clamp(1.75rem, 2.4vw, 2.75rem); font-weight: 600; line-height: 1.15; margin-bottom: 1rem; }
.so-page h3 { color: var(--ink); font-size: 1.15rem; font-weight: 600; line-height: 1.35; margin-bottom: .5rem; }
.so-page p { font-size: .95rem; line-height: 1.8; }
.so-page a:focus-visible { outline: 2px solid var(--kih-blue); outline-offset: 4px; }
.so-section { padding: clamp(1.5rem, 3vw, 2.5rem) 0; }
.so-hero + .so-section { padding-top: clamp(1.75rem, 3vw, 2.5rem); padding-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.so-section-soft { background: radial-gradient(circle at 92% 0%, rgba(229, 27, 62, .055), transparent 28%), #f4f7fc; }
.so-section-intro { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.so-section-intro p, .so-section-head p { margin: 0; color: #3a5068; }
.so-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; margin-bottom: 1.5rem; }
.so-section-head h2 { margin-bottom: .5rem; }
/* Matches the home page "View all departments" button. */
.so-view-all { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 16px; min-width: 192px; height: 35px; padding: 0 15px; border: 1px solid #c9d9eb; border-radius: 9px; background: rgba(255, 255, 255, .72); color: var(--kih-blue); font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none; transition: color .22s ease, background-color .22s ease, transform .22s ease; }
.so-view-all:hover { background: var(--kih-blue); color: #fff; transform: translateY(-2px); }

/* Hero */
.so-hero { position: relative; isolation: isolate; overflow: hidden; background: #063b74; }
.so-hero-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; }
.so-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3, 30, 60, .97) 0%, rgba(6, 46, 86, .91) 38%, rgba(6, 46, 86, .55) 68%, rgba(6, 46, 86, .25) 100%); }
.so-hero-copy { max-width: 760px; padding: clamp(3.5rem, 7vw, 6rem) 0; }
.so-hero h1 { color: #fff; font-size: clamp(2.25rem, 4vw, 3.75rem); font-weight: 600; line-height: 1.08; margin-bottom: 1rem; }
.so-hero .so-lead { color: #fff; font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 500; line-height: 1.45; margin-bottom: 1rem; }
.so-hero p { color: #e0ebf7; }
/* One sentence a line: on a desktop each fits on one (the copy is wide enough for the longer); narrower, each wraps. */
.so-hero-text span { display: block; }
.so-hero-copy > :last-child { margin-bottom: 0; }
@media (min-width: 992px) {
    .so-hero-copy { padding: 3.5rem 0 3.75rem; }
    .so-hero h1, .so-hero .so-lead { margin-bottom: .6rem; }
}

/* When a second opinion helps */
.so-reasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.so-reason { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: clamp(1.4rem, 2.2vw, 1.75rem); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s ease, border-color .25s ease; }
.so-reason::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--kih-red); }
.so-reason:hover { transform: translateY(-4px); border-color: #b9cfe8; }
.so-reason-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.1rem; border-radius: 16px; background: var(--kih-blue-soft); color: var(--kih-blue); font-size: 1.45rem; }
.so-page .so-reason p { margin: 0; color: #3a5068; font-size: .9rem; line-height: 1.7; }

/* How it works and what to bring */
.so-how-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.so-steps { display: grid; gap: 1.1rem; margin: 1.5rem 0 0; padding: 0; list-style: none; counter-reset: so-step; }
.so-steps li { position: relative; padding: 1.1rem 1.25rem 1.1rem 4.25rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; counter-increment: so-step; }
.so-steps li::before { content: counter(so-step); position: absolute; top: 1.1rem; left: 1.25rem; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--kih-blue); color: #fff; font-size: .85rem; font-weight: 700; }
.so-steps li:not(:last-child)::after { content: ""; position: absolute; top: 3.4rem; bottom: -1.15rem; left: calc(2.3rem - 1px); width: 2px; background: #c9dbef; }
.so-steps h3 { margin-bottom: .25rem; font-size: 1.05rem; }
.so-page .so-steps p { margin: 0; color: #3a5068; font-size: .9rem; line-height: 1.65; }
.so-bring { position: relative; overflow: hidden; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 22px; background: linear-gradient(145deg, #031e3c 0%, #063b74 55%, #09519e 100%); box-shadow: var(--shadow-sm); }
.so-bring::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--kih-red); }
.so-bring h3 { color: #fff; font-size: 1.3rem; margin-bottom: .75rem; }
.so-bring-list { margin: 0; padding: 0; list-style: none; }
.so-bring-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: .9rem; padding: .85rem 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.so-bring-list li:last-child { padding-bottom: 0; }
.so-bring-list .bi { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.1rem; }
.so-bring-list span { color: #d3e2f3; font-size: .9rem; line-height: 1.55; }

/* Specialities */
/* Desktop keeps one row; the script in the view hides chips that would wrap to a second row. */
.so-specialities { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.so-specialities a { display: inline-flex; align-items: center; min-height: 44px; padding: .6rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: #f4f7fc; color: var(--ink); font-size: .9rem; font-weight: 500; text-decoration: none; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.so-specialities a:hover { border-color: var(--kih-blue); background: var(--kih-blue); color: #fff; }

@media (max-width: 1199.98px) {
    .so-reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .so-how-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
    .so-view-all { margin-left: auto; }
    /* Phones: every speciality in a tidy two-column grid. */
    .so-specialities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .so-specialities a { justify-content: center; width: 100%; min-height: 44px; padding: .5rem; font-size: .82rem; line-height: 1.3; text-align: center; }
    .so-hero::before { background: rgba(3, 30, 60, .82); }
}
@media (max-width: 575.98px) {
    .so-page h2 { font-size: clamp(1.5rem, 6.5vw, 1.85rem); line-height: 1.2; }
    .so-page p { font-size: .88rem; line-height: 1.75; }
    .so-reasons { grid-template-columns: 1fr; }
    .so-steps li { padding: 1rem 1rem 1rem 3.6rem; }
    .so-steps li::before { left: 1rem; top: 1rem; width: 1.9rem; height: 1.9rem; }
    .so-steps li:not(:last-child)::after { left: calc(1.95rem - 1px); top: 3.1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .so-reason, .so-specialities a, .so-view-all { transition: none; }
    .so-reason:hover, .so-view-all:hover { transform: none; }
}
