/* =========================================
   BLOG ARCHIVE & CARDS
   ========================================= */

/* Blog Grid */
.blog-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important;
    max-width: var(--container-max, 1280px);
    margin: 0 auto;
    padding: 0 24px;
}

/* Premium Blog Card */
.wd-blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    text-decoration: none;
    color: inherit;
}

.wd-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Card Image */
.wd-card-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    /* 16:9 ish ratio */
    background: #f3f4f6;
    overflow: hidden;
}

.wd-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.wd-blog-card:hover .wd-card-image img {
    transform: scale(1.05);
}

/* Category Badge */
.wd-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #111827;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Content */
.wd-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wd-card-date {
    font-size: 0.85rem;
    color: #9CA3AF;
    margin-bottom: 8px;
    font-weight: 500;
}

.wd-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px 0;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wd-card-excerpt {
    font-size: 0.95rem;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA Link */
.wd-card-link {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-brand-primary, #14B8A6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wd-blog-card:hover .wd-card-link {
    color: #0F766E;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .blog-grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .blog-grid-container {
        grid-template-columns: 1fr !important;
    }
}