/* ===================================
   BLOG PAGE STYLES
   =================================== */

/* Blog Header - Hero Section */
.blog-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/blog/blog-hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    /* Keep this from original */
}

.blog-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, #fff 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.blog-header p {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Blog Container - Masonry Layout */
.blog-grid {
    column-count: 3;
    column-gap: var(--spacing-xl);
    padding: var(--spacing-xl) 0;
}

/* Responsiveness for Masonry */
@media (max-width: 1024px) {
    .blog-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        column-count: 1;
    }
}

/* Blog Card Updates for Masonry */
.blog-card {
    break-inside: avoid;
    /* Prevent card from splitting across columns */
    margin-bottom: var(--spacing-xl);
    /* Spacing between items vertically */
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    /* Keep this from original */
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 15px rgba(var(--color-primary-rgb), 0.3);
    border-color: rgba(var(--color-primary-rgb), 0.5);
}

/* Blog Card Image */
.blog-card-image-wrapper {
    width: 100%;
    height: 200px;
    background-color: var(--color-bg-secondary);
    position: relative;
    overflow: hidden;
    display: flex;
    /* Keep this from original */
    align-items: center;
    /* Keep this from original */
    justify-content: center;
    /* Keep this from original */
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.1);
}

/* Removed .blog-card-image-wrapper::after as it's not in the new structure */
/* Removed .blog-card-icon and .blog-card:hover .blog-card-icon as they are not in the new structure */

.blog-card-content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-weight: 500;
    /* Keep this from original */
}

.blog-tag {
    color: var(--color-primary);
    font-weight: 600;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(var(--color-primary-rgb), 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.blog-card-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    transition: color 0.3s ease;
    color: var(--color-text-primary);
    /* Keep this from original */
}

.blog-card:hover .blog-card-title {
    color: var(--color-primary);
}

.blog-card-excerpt {
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.read-more-btn {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    font-size: var(--font-size-sm);
    /* Keep this from original */
}

.read-more-btn:hover {
    gap: 12px;
}

.read-more-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}