/* =========================================================
   Use Cases · Social Work Programs
   All classes are prefixed `sw-` so they don't collide with
   the rest of the site. Shared header/footer styles live in
   /css/header.css and /css/footer.css.
   ========================================================= */

.sw-page {
    --sw-title: #1C5B5D;
    --sw-text: #1A1C1B;
    --sw-muted: #444846;
    --sw-primary: #447569;
    --sw-pill-bg: #DCEBE6;
    --sw-pill-text: #1C4F44;
    --sw-border: #E2E7E5;
    --sw-surface: #F3F6F5;
    --sw-selected: #F3F8F6;
    --sw-cta-gradient: linear-gradient(94.07deg, #F99522 9.45%, #FEE478 135.58%);

    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: var(--sw-text);
    background: #FFFFFF;
}

.sw-page h1,
.sw-page h2,
.sw-page h3 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-weight: 600;
    color: var(--sw-title);
    margin: 0;
}

.sw-page p { margin: 0; }
.sw-page a { color: var(--sw-title); }

.social-work-page .mobile-menu { overscroll-behavior-y: contain; }

/* ---------- Shared building blocks ---------- */

.sw-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.sw-section { padding: 72px 0 40px; }

.sw-section__head {
    max-width: 780px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.sw-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sw-title);
}

.sw-h2 {
    font-size: 36px;
    line-height: 44px;
    letter-spacing: -0.01em;
}

.sw-h3 {
    font-size: 22px;
    line-height: 30px;
}

.sw-card {
    background: #FFFFFF;
    border: 1px solid var(--sw-border);
    border-radius: 14px;
}

.sw-pill {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    color: var(--sw-pill-text);
    background: var(--sw-pill-bg);
    padding: 6px 12px;
    border-radius: 999px;
}

.sw-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.sw-caption-note {
    font-size: 13px;
    line-height: 18px;
    color: var(--sw-muted);
}

.sw-btn-demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 24px;
    border-radius: 137px;
    background: var(--sw-cta-gradient);
    box-shadow: inset 0 -4px 10px rgba(255, 214, 93, 0.7);
    color: #FFFFFF !important;
    font-size: 18px;
    font-weight: 600;
    line-height: 22px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.sw-btn-demo:hover { transform: scale(1.02); }

.sw-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Hero ---------- */

.sw-hero {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 72%, #FFFFFF 100%),
        radial-gradient(72.25% 60.44% at 50% 39.74%, #FFFDF3 0%, #EEF5F1 51.32%, #C6E0D2 100%);
}

.sw-hero__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 32px 88px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px;
}

.sw-hero__copy {
    flex: 1 1 680px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sw-hero__title {
    font-size: 48px;
    line-height: 56px;
    letter-spacing: -0.02em;
}

.sw-hero__lead { max-width: 560px; }

.sw-hero__visual {
    flex: 1 1 420px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sw-mock {
    background: #FFFFFF;
    border: 1px solid var(--sw-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 8px 24px rgba(26, 28, 27, 0.06);
}

.sw-mock__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.sw-mock__who { display: flex; align-items: center; gap: 10px; }

.sw-mock__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.sw-mock__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
}

.sw-bubble {
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 22px;
}

.sw-bubble--client { background: #FBFCFC; border: 1px solid var(--sw-border); }
.sw-bubble--student { background: #E8F1EE; margin-left: 32px; }

.sw-bubble__who {
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    margin-bottom: 2px;
    color: var(--sw-muted);
}

.sw-bubble--student .sw-bubble__who { color: var(--sw-title); }

.sw-report {
    border: 1px solid var(--sw-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sw-report__label { font-weight: 700; font-size: 14px; line-height: 20px; }

.sw-report__competency {
    font-size: 13px;
    line-height: 18px;
    color: var(--sw-title);
    font-weight: 400;
}

.sw-meter {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    line-height: 20px;
}

.sw-meter__name { flex: 0 0 120px; }

.sw-meter__track {
    flex: 1;
    height: 8px;
    background: #E8F1EE;
    border-radius: 4px;
    overflow: hidden;
}

.sw-meter__fill { height: 8px; background: var(--sw-primary); border-radius: 4px; }
.sw-meter__score { flex: 0 0 32px; text-align: right; font-weight: 600; }

.sw-report__comment {
    border-top: 1px solid var(--sw-border);
    padding-top: 10px;
    font-size: 14px;
    line-height: 20px;
}

/* ---------- Use cases ---------- */

.sw-usecases { padding-top: 88px; }

.sw-usecases__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
    gap: 20px;
}

.sw-usecase {
    padding: 32px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sw-usecase__title { font-size: 24px; line-height: 32px; }

.sw-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sw-checklist li { display: flex; gap: 10px; }
.sw-checklist svg { flex: 0 0 20px; margin-top: 2px; }
.sw-usecase .sw-pills { margin-top: auto; }

/* ---------- Competency list ---------- */

.sw-comp-table { overflow: hidden; }

.sw-comp-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
    padding: 18px 28px;
    border-bottom: 1px solid var(--sw-border);
}

.sw-comp-row:last-child { border-bottom: 0; }

.sw-comp-row--head {
    padding: 14px 28px;
    background: var(--sw-surface);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sw-title);
}

.sw-comp-row__name { flex: 1 1 340px; display: flex; gap: 16px; font-weight: 600; }
.sw-comp-row__use { flex: 1 1 380px; }

.sw-comp-row__num {
    flex: 0 0 28px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--sw-title);
}

/* ---------- Clients ---------- */

.sw-clients { display: flex; flex-direction: column; gap: 28px; }

.sw-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.sw-picker__btn {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 2px solid var(--sw-border);
    background: #FFFFFF;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: var(--sw-text);
}

.sw-picker__btn:hover { border-color: #B9CBC4; }

.sw-picker__btn[aria-pressed="true"] {
    border-color: var(--sw-primary);
    background: var(--sw-selected);
}

.sw-picker__btn img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 48px;
}

.sw-picker__name {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
}

.sw-picker__meta { display: block; font-size: 13px; line-height: 18px; color: var(--sw-muted); }

.sw-panel { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }

.sw-panel__media {
    flex: 3 1 520px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sw-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
    background: #FFF4E5;
    border: 1px solid #F5D9AE;
    border-radius: 10px;
    padding: 8px 12px;
}

.sw-note[hidden] { display: none; }

.sw-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: var(--sw-text);
    object-fit: cover;
}

.sw-video::cue {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 26px;
    color: #FFFFFF;
    background: rgba(26, 28, 27, 0.82);
}

.sw-media-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}

.sw-transcript {
    background: #FFFFFF;
    border: 1px solid var(--sw-border);
    border-radius: 10px;
    padding: 12px 16px;
}

.sw-transcript summary { font-weight: 600; cursor: pointer; }
.sw-transcript p { margin-top: 10px; }

.sw-profile {
    flex: 2 1 340px;
    min-width: 0;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sw-profile__head { display: flex; align-items: center; gap: 14px; }

.sw-profile__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sw-profile__name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: var(--sw-title);
}

.sw-profile__setting { font-size: 14px; line-height: 20px; color: var(--sw-muted); }

.sw-profile__facts {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(min-content, 1fr) minmax(0, 2.2fr);
    gap: 10px 16px;
}

.sw-profile__facts dt { color: var(--sw-muted); }
.sw-profile__facts dd { margin: 0; }

.sw-sessions {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.sw-session {
    background: #FFFFFF;
    border: 1px solid var(--sw-border);
    border-top: 3px solid var(--sw-primary);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sw-session__tag { font-size: 13px; font-weight: 600; line-height: 18px; color: var(--sw-title); }
.sw-session__title { font-family: 'Poppins', sans-serif; font-weight: 600; }

.sw-matrix-wrap { overflow-x: auto; margin-top: 12px; }

.sw-matrix {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 20px;
}

.sw-matrix th,
.sw-matrix td { border-bottom: 1px solid var(--sw-border); }

.sw-matrix tr:last-child th,
.sw-matrix tr:last-child td { border-bottom: 0; }

.sw-matrix thead th {
    padding: 14px 6px;
    font-weight: 600;
    color: var(--sw-muted);
    text-align: center;
}

.sw-matrix thead th:first-child { text-align: left; padding: 14px 20px; }
.sw-matrix thead th span { display: block; color: var(--sw-title); }
.sw-matrix thead th small { font-weight: 500; font-size: 12px; }

.sw-matrix td { text-align: center; padding: 14px 6px; }
.sw-matrix tbody th { text-align: left; padding: 6px 12px; font-weight: 400; }

.sw-matrix tr.is-selected { background: var(--sw-selected); }

.sw-matrix__client {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 44px;
    padding: 4px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.sw-matrix__client strong {
    font-weight: 600;
    color: var(--sw-text);
    text-decoration: underline;
    text-decoration-color: #B9CBC4;
    text-underline-offset: 3px;
}

.sw-matrix__client span { font-size: 13px; color: var(--sw-muted); }

.sw-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--sw-primary);
}

.sw-matrix__total th { padding: 14px 20px; font-weight: 600; color: var(--sw-muted); }
.sw-matrix__total td { font-weight: 600; }

/* ---------- Reports ---------- */

.sw-reports {
    padding: 48px 40px;
    border-radius: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px;
}

.sw-reports__copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.sw-benefit { display: flex; gap: 14px; }
.sw-benefit svg { flex: 0 0 24px; margin-top: 2px; }
.sw-benefit strong { display: block; }

.sw-reports__visual { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }

.sw-scorecard {
    background: #FBFCFC;
    border: 1px solid var(--sw-border);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sw-scorecard__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 20px; }
.sw-scorecard__row b { font-weight: 600; }

.sw-scorecard__head {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sw-muted);
    border-bottom: 1px solid var(--sw-border);
    padding-bottom: 8px;
}

/* ---------- Faculty ---------- */

.sw-faculty__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 16px;
}

.sw-faculty__card { padding: 28px; border-radius: 12px; display: flex; flex-direction: column; gap: 8px; }

.sw-faculty__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 19px;
    line-height: 26px;
    color: var(--sw-title);
}

/* ---------- FAQ ---------- */

.sw-faq { max-width: 1152px; margin: 0 auto; padding: 88px 24px 64px; box-sizing: border-box; }

.sw-faq__title {
    font-size: 48px;
    line-height: 56px;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 48px !important;
}

.sw-faq__list { border-top: 1px solid var(--sw-border); }
.sw-faq details { border-bottom: 1px solid var(--sw-border); padding: 28px 12px; }

.sw-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    cursor: pointer;
    list-style: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -0.02em;
    color: var(--sw-text);
}

.sw-faq summary::-webkit-details-marker { display: none; }
.sw-faq summary svg { flex: 0 0 20px; }
.sw-faq details[open] .sw-faq__plus { display: none; }
.sw-faq details:not([open]) .sw-faq__minus { display: none; }
.sw-faq details p { margin-top: 16px; }

/* ---------- Closing CTA ---------- */

.sw-cta {
    min-height: 600px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 88px 24px;
    text-align: center;
    background: #FFFFFF url('/assets/use-cases/social-work/cta-gradient.webp') center / cover no-repeat;
}

.sw-cta__inner {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.sw-cta__lead { color: var(--sw-pill-text); }
.sw-cta .sw-btn-demo { margin-top: 8px; }

.sw-sources {
    padding: 0 24px 32px;
    font-size: 13px;
    line-height: 20px;
    color: var(--sw-muted);
    text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
    .sw-hero__inner { padding: 40px 20px 64px; }
    .sw-hero__title { font-size: 34px; line-height: 42px; }
    .sw-h2 { font-size: 28px; line-height: 36px; }
    .sw-faq__title { font-size: 34px; line-height: 42px; }
    .sw-usecase, .sw-profile { padding: 24px; }
    .sw-reports { padding: 32px 24px; }
    .sw-comp-row { padding: 16px 20px; }
    .sw-cta { min-height: 480px; }
    .sw-cta__lead br, .sw-sources br { display: none; }
}

@media (max-width: 1100px) {
    .social-work-page .footer__cols { flex-basis: 100%; justify-content: flex-start; gap: 32px; }
    .social-work-page .footer-col { flex: 1 1 120px; }
}

@media (max-width: 360px) {
    .sw-profile__facts { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .sw-profile__facts dt:not(:first-child) { margin-top: 10px; }
    .sw-scorecard__row:first-child { flex-wrap: wrap; }
}
