/* Shared case detail content system */

.case-content-company-section,
.case-content-challenges-section {
    padding: var(--section-padding);
    background: #FFFFFF;
}

.case-content-metrics-section,
.case-content-build-section {
    padding: var(--section-padding);
    background: #F4F8FE;
}

.case-content-section-heading {
    max-width: 520px;
}

.case-content-section-heading-center {
    max-width: 780px;
    margin: 0 auto 48px;
    text-align: center;
}

.case-content-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.case-content-section-kicker span {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--gradient-btn);
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
}

.case-content-section-kicker strong {
    color: var(--color-primary);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.case-content-updated-at {
    display: block;
    margin-top: 14px;
    color: #8A94A6;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: 0;
    text-align: right;
}

.case-content-section-heading h2 {
    color: var(--text-primary);
    font-size: 36px;
    line-height: 1.35;
    font-weight: 800;
}

.case-content-section-heading > p {
    max-width: 660px;
    margin: 18px auto 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.case-content-company-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
    gap: 72px;
    align-items: center;
}

.case-content-company-copy {
    position: relative;
    padding: 38px 42px;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0, rgba(30, 111, 255, 0.12), transparent 38%),
        linear-gradient(135deg, #F7FAFF 0%, #EEF5FF 100%);
    border: 1px solid rgba(30, 111, 255, 0.14);
    border-radius: 16px;
}

.case-content-company-copy::before {
    content: "";
    position: absolute;
    top: 38px;
    bottom: 38px;
    left: 0;
    width: 4px;
    background: var(--gradient-btn);
    border-radius: 0 999px 999px 0;
}

.case-content-company-copy p {
    position: relative;
    color: #405A7A;
    font-size: 16px;
    line-height: 1.95;
}

.case-content-company-copy p + p {
    margin-top: 18px;
}

.case-content-metrics-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    color: #FFFFFF;
    background:
        radial-gradient(circle at 84% 4%, rgba(54, 210, 255, 0.28), transparent 26%),
        linear-gradient(125deg, #0B3A9D 0%, #0C55C9 52%, #137AE6 100%);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(22, 76, 164, 0.2);
}

.case-content-metrics-grid::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    right: -105px;
    bottom: -185px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    box-shadow:
        0 0 0 46px rgba(255, 255, 255, 0.04),
        0 0 0 92px rgba(255, 255, 255, 0.025);
    pointer-events: none;
}

.case-content-metric-item {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 48px 28px 44px;
    text-align: center;
}

.case-content-metric-item + .case-content-metric-item {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.case-content-metric-item strong {
    display: block;
    margin-bottom: 16px;
    color: #FFFFFF;
    font-size: 44px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

.case-content-metric-item strong span {
    margin-left: 3px;
    color: #74DDFF;
    font-size: 20px;
}

.case-content-metric-item p {
    color: rgba(255, 255, 255, 0.76);
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
}

.case-content-challenge-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.case-content-challenge-card {
    min-height: 238px;
    padding: 32px;
    background: linear-gradient(145deg, #FFFFFF 0%, #FAFCFF 100%);
    border: 1px solid rgba(30, 111, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(31, 70, 130, 0.06);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.case-content-challenge-card:hover {
    transform: translateY(-3px);
    border-color: rgba(30, 111, 255, 0.42);
    box-shadow: 0 18px 38px rgba(31, 70, 130, 0.12);
}

.case-content-challenge-card-head {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
}

.case-content-challenge-card-head span {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    background: rgba(30, 111, 255, 0.09);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
}

.case-content-challenge-card h3 {
    color: var(--text-primary);
    font-size: 21px;
    line-height: 1.4;
}

.case-content-challenge-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.85;
}

.case-content-build-table-wrap {
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid rgba(30, 111, 255, 0.14);
    border-radius: 16px;
    box-shadow: 0 20px 52px rgba(31, 70, 130, 0.1);
}

.case-content-build-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.case-content-build-table th,
.case-content-build-table td {
    text-align: left;
}

.case-content-build-table thead th {
    padding: 20px 26px;
    color: #FFFFFF;
    background: #0C4EB5;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 800;
}

.case-content-build-table thead th:first-child {
    width: 21%;
    background: #093F9A;
}

.case-content-build-table thead th:nth-child(2) {
    width: 39.5%;
    background: #087FD2;
}

.case-content-build-table thead th:nth-child(3) {
    width: 39.5%;
    background: #D9730D;
}

.case-content-build-table tbody tr + tr {
    border-top: 1px solid #E6ECF5;
}

.case-content-build-table tbody th {
    padding: 28px 26px;
    color: var(--text-primary);
    background: #F7FAFF;
    border-right: 1px solid #E6ECF5;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 800;
}

.case-content-build-table tbody th span {
    display: block;
    margin-bottom: 8px;
    color: rgba(30, 111, 255, 0.42);
    font-size: 12px;
    line-height: 1;
}

.case-content-build-table td {
    padding: 28px 30px;
    color: #405A7A;
    font-size: 14px;
    line-height: 1.8;
    vertical-align: middle;
}

.case-content-build-table td + td {
    border-left: 1px solid #E6ECF5;
}

.case-content-build-table tbody tr:hover th,
.case-content-build-table tbody tr:hover td {
    background: #F8FBFF;
}

@media (max-width: 991px) {
    .case-content-company-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .case-content-section-heading {
        max-width: 760px;
    }

    .case-content-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-content-metric-item:nth-child(3) {
        border-left: 0;
    }

    .case-content-metric-item:nth-child(n + 3) {
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }
}

@media (max-width: 767px) {
    .case-content-section-heading-center {
        margin-bottom: 34px;
        text-align: left;
    }

    .case-content-section-heading h2 {
        font-size: 27px;
    }

    .case-content-section-heading > p {
        margin-left: 0;
    }

    .case-content-company-copy {
        padding: 28px 24px 28px 28px;
        border-radius: 13px;
    }

    .case-content-company-copy::before {
        top: 28px;
        bottom: 28px;
    }

    .case-content-company-copy p {
        font-size: 15px;
        line-height: 1.85;
    }

    .case-content-metric-item {
        padding: 34px 14px 30px;
    }

    .case-content-metric-item strong {
        font-size: 34px;
    }

    .case-content-metric-item strong span {
        font-size: 16px;
    }

    .case-content-challenge-grid {
        grid-template-columns: 1fr;
    }

    .case-content-challenge-card {
        min-height: 0;
        padding: 26px 22px;
    }

    .case-content-challenge-card-head {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 14px;
    }

    .case-content-challenge-card-head span {
        width: 42px;
        height: 42px;
    }

    .case-content-challenge-card h3 {
        font-size: 19px;
    }

    .case-content-build-table-wrap {
        overflow: visible;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .case-content-build-table,
    .case-content-build-table tbody,
    .case-content-build-table tr,
    .case-content-build-table th,
    .case-content-build-table td {
        display: block;
        width: 100%;
    }

    .case-content-build-table thead {
        display: none;
    }

    .case-content-build-table tbody tr {
        overflow: hidden;
        background: #FFFFFF;
        border: 1px solid rgba(30, 111, 255, 0.14);
        border-radius: 13px;
        box-shadow: 0 12px 28px rgba(31, 70, 130, 0.08);
    }

    .case-content-build-table tbody tr + tr {
        margin-top: 16px;
    }

    .case-content-build-table tbody th {
        padding: 20px 22px;
        color: #FFFFFF;
        background: linear-gradient(120deg, #0B449E 0%, #126BDA 100%);
        border: 0;
        font-size: 19px;
    }

    .case-content-build-table tbody th span {
        display: inline-block;
        margin: 0 10px 0 0;
        color: rgba(255, 255, 255, 0.64);
    }

    .case-content-build-table td {
        position: relative;
        padding: 50px 22px 22px;
        border: 0;
        font-size: 14px;
    }

    .case-content-build-table td + td {
        border-top: 1px solid #E6ECF5;
        border-left: 0;
    }

    .case-content-build-table td::before {
        content: attr(data-label);
        position: absolute;
        top: 18px;
        left: 22px;
        color: #087FD2;
        font-size: 13px;
        line-height: 1.4;
        font-weight: 800;
    }

    .case-content-build-table td:last-child::before {
        color: #D9730D;
    }

    .case-content-build-table tbody tr:hover th {
        background: linear-gradient(120deg, #0B449E 0%, #126BDA 100%);
    }

    .case-content-build-table tbody tr:hover td {
        background: #FFFFFF;
    }
}
