.case-template-section {
    padding: 2.5rem 0;
    background: #ffffff;
    color: #111827;
}

.case-template-section.case-template-dark {
    background: #0f1115;
    color: #f9fafb;
}

.case-template-shell {
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    overflow: hidden;
}

.case-template-dark .case-template-shell {
    border-color: rgba(248, 178, 41, 0.32);
    background: rgba(15, 17, 21, 0.92);
}

.case-template-head {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(17, 24, 39, 0.1);
}

.case-template-dark .case-template-head {
    border-bottom-color: rgba(248, 178, 41, 0.24);
}

.case-template-kicker {
    margin-bottom: 0.5rem;
    color: #2563eb;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.case-template-dark .case-template-kicker {
    color: #f8b229;
}

.case-template-title {
    margin: 0;
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 700;
    letter-spacing: 0;
}

.case-template-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid rgba(17, 24, 39, 0.1);
}

.case-template-dark .case-template-grid {
    border-bottom-color: rgba(248, 178, 41, 0.24);
}

.case-template-item {
    padding: 1.4rem 1.5rem;
    border-right: 1px solid rgba(17, 24, 39, 0.1);
}

.case-template-item:nth-child(3n) {
    border-right: 0;
}

.case-template-dark .case-template-item {
    border-right-color: rgba(248, 178, 41, 0.24);
}

.case-template-label {
    display: block;
    margin-bottom: 0.55rem;
    color: #4b5563;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.case-template-dark .case-template-label {
    color: #f8b229;
}

.case-template-item p {
    margin: 0;
    color: #374151;
    font-size: 0.96rem;
    line-height: 1.65;
}

.case-template-dark .case-template-item p {
    color: rgba(255, 255, 255, 0.78);
}

.case-template-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 1.25rem 1.5rem;
}

.case-template-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.65rem;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    border: 1px solid #111827;
    color: #111827;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.2;
}

.case-template-action-primary {
    background: #111827;
    color: #ffffff;
}

.case-template-dark .case-template-action {
    border-color: #f8b229;
    color: #f8b229;
}

.case-template-dark .case-template-action-primary {
    background: #f8b229;
    color: #111827;
}

.case-template-action:hover {
    color: inherit;
    opacity: 0.86;
}

.case-template-action-primary:hover {
    color: #ffffff;
}

.case-template-dark .case-template-action-primary:hover {
    color: #111827;
}

@media (max-width: 991.98px) {
    .case-template-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-template-item:nth-child(3n) {
        border-right: 1px solid rgba(17, 24, 39, 0.1);
    }

    .case-template-item:nth-child(2n) {
        border-right: 0;
    }

    .case-template-dark .case-template-item:nth-child(3n) {
        border-right-color: rgba(248, 178, 41, 0.24);
    }
}

@media (max-width: 575.98px) {
    .case-template-section {
        padding: 1.5rem 0;
    }

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

    .case-template-item,
    .case-template-item:nth-child(2n),
    .case-template-item:nth-child(3n) {
        border-right: 0;
        border-bottom: 1px solid rgba(17, 24, 39, 0.1);
    }

    .case-template-dark .case-template-item,
    .case-template-dark .case-template-item:nth-child(2n),
    .case-template-dark .case-template-item:nth-child(3n) {
        border-bottom-color: rgba(248, 178, 41, 0.24);
    }

    .case-template-actions {
        display: grid;
    }
}
