/* Card Container */
.grid-card {
    background: white;
    border-radius: 1rem; /* 16px */
    overflow: hidden;
    border: 0.0625rem solid #e5e7eb; /* 1px */
    transition: all 0.3s ease;
    height: 30rem; /* 480px */
    display: flex;
    flex-direction: column;
    max-width: 23.75rem; /* 380px */
    margin: 0 auto;
}

/* Blog Card Hover Effects */
.blog-card {
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    font-family: 'AeonikProTRIAL', 'Poppins', sans-serif;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-decoration: none;
}

.grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

/* Image Container */
.grid-illustration-container {
    width: 100%;
    height: 13.75rem; /* 220px */
    position: relative;
    overflow: hidden;
    background-color: #f9fafb; /* bg-gray-50 */
    border-radius: 1rem 1rem 0 0; /* rounded-t-2xl */
}

.grid-illustration-container img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease; 
}

.grid-card:hover .grid-illustration-container img { 
    transform: scale(1.05); 
}

/* Overlay on hover */
.blog-card-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
}

a:hover .blog-card-overlay {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Card Content */
.blog-card-content { 
    padding: 1.5rem; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Category the */
.blog-card-category { 
    margin-bottom: 1rem;
}

.category-tag {
    display: inline-block;
    padding: 0.25em 0.75em; /* Relative to font size */
    font-size: 0.75rem; /* Base size */
    font-weight: 400;
    border-radius: 0.375em; /* Relative to font size */
    transition: all 0.2s ease;
    font-family: 'AeonikProTRIAL', 'Poppins', sans-serif;
    line-height: 1.25; /* Better text alignment */
}

.category-tag-primary {
    background-color: #d1fae5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.category-tag-success {
    background-color: rgba(39, 206, 104, 0.1);
    color: #27ce68;
    border: none;
}

/* Title */
.blog-card-title { 
    font-size: 1.25rem; 
    color: #01023b;
    font-family: 'AeonikProTRIAL', 'Poppins', sans-serif;
    font-weight: 500;
    margin: 0.75rem 0; 
    line-height: 1.3; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3.25em;
    transition: color 0.2s ease;
}

/* Remove blue hover effect on title */
.grid-card:hover .blog-card-title {
    color: #01023b;
}

/* Metadata */
.card-metadata { 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.75rem; 
    margin-top: auto; 
    padding-top: 1rem; 
    border-top: 0.0625rem solid #f3f4f6; /* 1px */
    color: #6b7280;
    font-family: 'AeonikProTRIAL', 'Poppins', sans-serif;
    line-height: 1.5;
}

.date-text {
    color: #374151;
}

/* Responsive Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 48em) { /* 768px */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 64em) { /* 1024px */
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Featured Article Card */
.featured-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    max-width: 1000px;
}

.featured-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.featured-illustration-container {
    background: transparent;
}