/* Blog Grid Styles */

/* Count */
.blog-count {
    margin-bottom: 28px;
}

.count-text {
    line-height: 120% !important;
}

/* Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 290px);
    gap: 72px 20px;
    justify-content: space-between;
    transition: all 0.3s ease;
}

/* Blog Card */
.blog-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 290px;
    max-width: 290px;
    background: transparent !important;
    transition: all 0.3s ease;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
}

.blog-image {
    width: 100%;
    height: 152px;
    overflow: hidden;
    border-radius: 20px;
    background: #e5e7eb;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.blog-content {
    display: flex;
    flex-direction: column;
}

/* Load More Button */
.blog-load-more-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0 20px;
}

.blog-load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 40px;
    min-width: 251px;
    background: transparent !important;
    color: var(--global-palette1);
    border: 2px solid var(--global-palette1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-load-more-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: transparent !important;
    color: var(--global-palette1);
}

.blog-load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loading Spinner */
.load-more-spinner {
    display: none;
    align-items: center;
    justify-content: center;
}

.spinner-icon {
    width: 20px;
    height: 20px;
    border: 2px solid var(--global-palette1);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* No blogs message */
.no-blogs {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 16px;
}

/* ==================== Responsive Design ==================== */

/* Large screens - 4 columns */
@media (min-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(4, 290px);
    }
}

/* Medium-large - 3 columns */
@media (min-width: 900px) and (max-width: 1199px) {
    .blog-grid {
        grid-template-columns: repeat(3, 290px);
    }
}

/* Medium - 2 columns */
@media (min-width: 600px) and (max-width: 899px) {
    .blog-grid {
        grid-template-columns: repeat(2, 290px);
    }
}

/* Mobile - single column */
@media (max-width: 599px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 48px 0;
        padding: 0 16px;
    }
    
    .blog-card {
        width: 100%;
        max-width: none;
    }
}

/* Tablet and below */
@media (max-width: 768px) {
    .blog-load-more-btn {
        width: 100%;
        max-width: 300px;
    }
}