.blog-section {
    background: linear-gradient(180deg, #ffffff 0%, #f9f9fb 100%);
    position: relative;
    overflow: hidden;
    padding: 2.5rem 1rem;
}

.blog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(134, 111, 227, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(167, 139, 250, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 2rem;
}

.blog-header-content {
    flex: 1;
}

.blog-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.blog-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.blog-read-all-btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: #ffffff;
    color: #1f2937;
    text-decoration: none;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.blog-read-all-btn:hover {
    background: #f9fafb;
    border-color: var(--primary, #866fe3);
    color: var(--primary, #866fe3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(134, 111, 227, 0.15);
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        gap: 2.5rem;
    }
}

.blog-post-card {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.blog-post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-post-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--primary, #866fe3);
    position: relative;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-post-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
}

.blog-post-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 200"><rect fill="%23ffffff" opacity="0.03" x="20" y="40" width="60" height="60" rx="8"/><rect fill="%23ffffff" opacity="0.04" x="100" y="80" width="40" height="40" rx="6"/><circle fill="%23ffffff" opacity="0.03" cx="300" cy="60" r="30"/><rect fill="%23ffffff" opacity="0.05" x="250" y="120" width="50" height="50" rx="8"/><circle fill="%23ffffff" opacity="0.02" cx="150" cy="150" r="25"/></svg>') center / cover;
    pointer-events: none;
}

.blog-post-placeholder svg {
    width: 60px;
    height: 60px;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

.placeholder-text {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.blog-post-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.blog-post-date {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-post-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-card:hover .blog-post-title {
    color: var(--primary, #866fe3);
}

.blog-post-excerpt {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}


.blog-no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(134, 111, 227, 0.05);
    border: 1.5px dashed rgba(134, 111, 227, 0.3);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.blog-no-posts svg {
    width: 48px;
    height: 48px;
    color: var(--primary, #866fe3);
    opacity: 0.5;
}

.blog-no-posts p {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

@media (max-width: 767px) {
    .blog-header {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-main-title {
        font-size: 2rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .blog-read-all-btn {
        text-align: center;
        align-self: flex-start;
    }

    .blog-post-title {
        font-size: 1.125rem;
    }

    .blog-post-excerpt {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .blog-section {
        padding: 3rem 1rem;
    }

    .blog-main-title {
        font-size: 1.75rem;
    }

    .blog-post-content {
        padding: 1.25rem;
    }

    .placeholder-text {
        font-size: 1.5rem;
        letter-spacing: 0.05em;
    }
}
