/* blog-design.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

.blog-section-wrapper {
    background-color: #f8fafc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 80px 0 120px;
    position: relative;
    overflow: hidden;
}

/* Subtle background glowing orbs using CSS */
.blog-section-wrapper::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.blog-section-wrapper::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 40%;
    height: 60%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.blog-section-wrapper>.container {
    position: relative;
    z-index: 1;
}

.blog-header {
    text-align: center;
    margin-bottom: 50px;
}

.blog-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-header p {
    color: #64748b;
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}


.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

/* Gradient line at top of card */
.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #ef4444);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(15, 23, 42, 0.08), 0 10px 20px -5px rgba(15, 23, 42, 0.04);
    border-color: #e2e8f0;
    text-decoration: none;
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card .category-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.blog-card .category {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
}

.blog-card .icon-arrow {
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.blog-card:hover .icon-arrow {
    color: #3b82f6;
    transform: translateX(4px) translateY(-4px);
}

.blog-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin: 0 0 20px 0;
    transition: color 0.3s ease;
}

.blog-card:hover h3 {
    color: #1e3a8a;
}

.blog-card .meta {
    margin-top: auto;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.blog-card .meta-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    margin-right: 10px;
}

.blog-card .meta-text {
    display: flex;
    flex-direction: column;
}

.blog-card .meta-author {
    color: #0f172a;
    font-weight: 700;
    font-size: 0.85rem;
}

.blog-card .meta-date {
    font-size: 0.75rem;
}

/* Featured First Card */
.blog-card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    padding: 40px;
    border: none;
    border-radius: 20px;
}

.blog-card.featured::before {
    display: none;
}

.blog-card.featured .category {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.blog-card.featured h3 {
    color: #ffffff;
    font-size: 1.8rem;
    max-width: 700px;
}

.blog-card.featured:hover h3 {
    color: #93c5fd;
}

.blog-card.featured .meta {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

.blog-card.featured .meta-author {
    color: #ffffff;
}

.blog-card.featured .icon-arrow {
    color: rgba(255, 255, 255, 0.5);
}

.blog-card.featured:hover .icon-arrow {
    color: #ffffff;
}

@media (max-width: 768px) {
    .blog-card.featured {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
    }

    .blog-header h2 {
        font-size: 2.5rem;
    }
}