:root {
    --primary: #3245ff;
    --primary-hover: #2a3bde;
    --text-primary: #111;
    --text-secondary: #666;
    --text-light: #999;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --border-light: #e9ecef;
    --border-radius: 8px;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, .08);
    --transition: all .3s ease;
}

.cases-section {
    padding: 80px 0;
    background-color: var(--background-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header:after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 24px auto 0;
    border-radius: 2px;
}

.section-header h1 {
    font-size: 40px;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.cases-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.case-card {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: none;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
    height: 240px;
}

.case-link {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    height: 100%;
}

.case-card:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .3s ease;
}

.case-card:hover {
    transform: translateY(0);
    box-shadow: var(--shadow-light);
    border-color: var(--primary);
}

.case-card:hover:before {
    transform: scaleY(1);
}

.case-image {
    width: 30%;
    min-width: 280px;
    height: 100%;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.25, .46, .45, .94);
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-content {
    width: 70%;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-content h3 {
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    transition: color .3s ease;
}

.case-card:hover .case-content h3 {
    color: var(--primary);
}

.case-client {
    font-size: 16px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 20px;
    display: inline-block;
    position: relative;
}

.case-client:after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background: var(--primary);
    margin-top: 4px;
}

.case-excerpt {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-meta {
    display: flex;
    align-items: center;
    font-size: 14px;
    gap: 20px;
}

.case-date {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.case-date:before {
    content: "📅";
    font-size: 16px;
}

.case-category {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: all .3s ease;
    background-color: var(--primary);
    color: #fff;
}

.case-card:hover .case-category {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px #00000026;
}

@media (max-width: 992px) {
    .case-card {
        height: auto;
        min-height: 400px;
    }
    .case-link {
        flex-direction: column;
    }
    .case-image {
        width: 100%;
        min-width: auto;
        height: 200px;
    }
    .case-content {
        width: 100%;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .cases-section {
        padding: 60px 0;
    }
    .section-header {
        margin-bottom: 40px;
    }
    .section-header h1 {
        font-size: 32px;
    }
    .section-header p {
        font-size: 16px;
    }
    .case-content h3 {
        font-size: 20px;
    }
    .case-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

