/* Blog Section */
.blog-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.blog-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Loading State */
.blog-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #3E6BB7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.blog-loading p {
    color: #64748b;
    font-size: 1rem;
}

/* Error State */
.blog-error {
    text-align: center;
    padding: 60px 20px;
}

.blog-error p {
    color: #64748b;
    margin-bottom: 20px;
}

.btn-secondary {
    background: transparent;
    border: 2px solid #3E6BB7;
    color: #3E6BB7;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #3E6BB7;
    color: white;
}

/* Blog Posts Grid */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.blog-card:hover {
    box-shadow: 0 8px 30px rgba(62, 107, 183, 0.12);
    transform: translateY(-2px);
}

/* Blog Card Link */
.blog-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card-header {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 8px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.blog-card-date,
.blog-card-author {
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card-date::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.blog-card-author::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin: 0;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: #3E6BB7;
}


.blog-card-excerpt {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.blog-card-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3E6BB7;
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 8px;
    transition: gap 0.3s ease;
}

.blog-card:hover .blog-card-cta {
    gap: 12px;
}

.blog-card-cta svg {
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-cta svg {
    transform: translateX(4px);
}


/* Responsive */
@media (max-width: 768px) {
    .blog-section {
        padding: 60px 0;
    }

    .blog-card-header {
        padding: 24px;
    }

    .blog-card-image {
        height: 180px;
        border-radius: 8px;
    }

    .blog-card-title {
        font-size: 1.25rem;
    }

    .blog-card-meta {
        gap: 12px;
    }
}
