
/* Blog specific styles - Webspare Insights */

.blog-page {
    background: var(--bg-secondary);
    min-height: 100vh;
    padding-top: 70px; /* Header height */
}

/* Header for Blog Listing */
.blog-listing-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 100px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.blog-listing-header h1 {
    font-size: 3.5rem;
    color: #4f46e5; /* Purple/Blue accent like screenshot */
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.blog-listing-header p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Grid */
.blog-listing-content {
    padding: 80px 0;
}

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

.blog-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-card-img-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.85rem;
    color: #6366f1; /* Purple accent */
    font-weight: 600;
}

.blog-card-date {
    color: #94a3b8;
    font-weight: 400;
}


/* Breadcrumb Container */
.breadcrumb-container {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
}

.breadcrumb-custom a {
    color: #64748b;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb-custom a:hover {
    color: var(--accent);
}

.breadcrumb-custom svg {
    width: 14px;
    height: 14px;
}

.breadcrumb-custom .current-page {
    color: #0f172a;
    font-weight: 500;
}

/* Single Post Wrapper */
.single-post-wrapper {
    margin-top: 40px;
    margin-bottom: 100px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.single-blog-header {
    height: 500px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end; /* Title at bottom of image */
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
}

.blog-category-badge {
    background: #ea580c;
    color: #fff;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
    width: fit-content;
}

.single-blog-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    max-width: 1000px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.single-blog-content-area {
    padding: 60px 50px;
}

.single-blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: #0f172a;
}

.post-date {
    font-size: 0.85rem;
    color: #94a3b8;
}

.blog-post-body {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #334155;
}

.blog-post-body .content-wrapper {
    word-wrap: break-word;
}

@media (max-width: 768px) {
    .single-blog-header {
        height: 350px;
    }
    .header-overlay {
        padding: 30px 20px;
    }
    .single-blog-title {
        font-size: 2rem;
    }
    .single-blog-content-area {
        padding: 40px 20px;
    }
}
