/* =============================================
   Refonte Case Studies Hub Page
   Builds on top of blog.css (.blog-card, .blog-grid, etc.)
   ============================================= */

/* Card overrides specific to case studies */
.cs-card {
    position: relative;
}

.cs-card-image {
    position: relative;
    height: 200px;
    background-color: #003329;
}

.cs-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video badge (top-left) */
.cs-video-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 51, 41, 0.85);
    backdrop-filter: blur(4px);
    color: #E6FFA3;
    padding: 6px 10px 6px 6px;
    border-radius: 100px;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.cs-video-badge img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* "Coming soon" badge */
.cs-coming-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #FFFFFF;
    color: #475467;
    padding: 6px 12px;
    border-radius: 100px;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #E2E8E6;
}

.cs-card-coming {
    cursor: default;
    opacity: 0.75;
}

.cs-card-coming:hover {
    transform: none;
    box-shadow: none;
}

.cs-card-coming .cs-card-image img {
    filter: grayscale(0.4);
}

/* Company header inside the card */
.cs-card-company {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cs-card-name {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: #003329;
    line-height: 1.2;
}

.cs-card-sector {
    font-family: var(--font-primary);
    font-size: 13px;
    color: #6B7280;
    line-height: 1.3;
}

/* Quote */
.cs-card-quote {
    font-family: var(--font-primary);
    font-size: 14px;
    font-style: italic;
    color: #475467;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Headline override: keep article-like styling but slightly tighter */
.cs-card .blog-card-title {
    font-size: 18px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* Empty state */
.cs-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    background: #FFFFFF;
    border: 1px dashed #D0D5DD;
    border-radius: 24px;
    text-align: center;
}

.cs-empty-state p {
    font-family: var(--font-primary);
    font-size: 18px;
    color: #475467;
    margin: 0;
}

/* Reuse the dark rounded button from caseStudiesSection styles, fallback definition */
.cs-empty-state .btn-rounded-dark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #003329;
    color: #E6FFA3;
    padding: 10px 10px 10px 20px;
    border-radius: 100px;
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.cs-empty-state .btn-rounded-dark:hover {
    background: #004437;
}

.cs-empty-state .btn-rounded-dark img {
    width: 28px;
    height: 28px;
    background: #E6FFA3;
    border-radius: 50%;
    padding: 6px;
    box-sizing: border-box;
}

/* Responsive */
@media (max-width: 768px) {
    .cs-card-image {
        height: 180px;
    }

    .cs-video-badge {
        font-size: 11px;
        padding: 4px 8px 4px 4px;
    }

    .cs-video-badge img {
        width: 16px;
        height: 16px;
    }
}
