/* ==========================================================================
   Blog Styles - Editorial Sophistication Theme
   Modern, magazine-inspired design that scales elegantly
   ========================================================================== */

/* CSS Custom Properties */
:root {
    --blog-primary: #3a3f99;
    --blog-primary-light: #5a5fb9;
    --blog-primary-dark: #2a2f79;
    --blog-accent: #e8e4f0;
    --blog-text: #1a1a2e;
    --blog-text-muted: #6b7280;
    --blog-bg-subtle: #f8f9fc;
    --blog-border: #e5e7eb;
    --blog-radius: 1rem;
    --blog-radius-lg: 1.5rem;
    --blog-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --blog-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --blog-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography Enhancement */
.blog-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.blog-page h1, .blog-page h2, .blog-page h3,
.blog-page .display-1, .blog-page .display-2, .blog-page .display-3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

/* ==========================================================================
   Hero Section - Adaptive Featured Post
   ========================================================================== */

.blog-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blog-primary) 0%, var(--blog-primary-dark) 100%);
}

.blog-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 46, 0.5) 0%,
        rgba(26, 26, 46, 0.85) 100%
    );
}

.blog-hero-content {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.blog-hero-topics .badge {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    transition: var(--blog-transition);
}

.blog-hero-topics .badge:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.blog-hero-title-link {
    text-decoration: none;
    display: block;
}

.blog-hero-title-link:hover h1 {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
}

.blog-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    max-width: 900px;
    margin: 0 auto;
    color: #fff !important;
}

.blog-hero-content .lead {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hero Author Section */
.blog-hero-content .d-flex.align-items-center {
    justify-content: center !important;
}

.blog-hero-content .d-flex img {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px;
    min-height: 56px;
    border-radius: 50%;
    object-fit: cover !important;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.btn-white {
    background: #fff;
    color: var(--blog-primary);
    border: none;
    font-weight: 600;
    padding: 1rem 2.5rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: var(--blog-transition);
}

.btn-white:hover {
    background: #fff;
    color: var(--blog-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Welcome Header - When No Featured Post
   ========================================================================== */

.blog-welcome-header {
    background: linear-gradient(135deg, var(--blog-bg-subtle) 0%, #fff 100%);
    border-bottom: 1px solid var(--blog-border);
}

.blog-welcome-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--blog-text);
}

.blog-welcome-header .lead {
    font-size: 1.125rem;
}

/* ==========================================================================
   Topic Filters - Refined Pill Navigation
   ========================================================================== */

.blog-filters {
    background: #fff;
    border-bottom: 1px solid var(--blog-border);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.btn-topic {
    background: transparent;
    border: 2px solid var(--blog-border);
    border-radius: 100px;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--blog-text-muted);
    transition: var(--blog-transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-topic:hover {
    border-color: var(--blog-primary);
    color: var(--blog-primary);
    background: var(--blog-accent);
}

.btn-topic.active {
    background: var(--blog-primary);
    border-color: var(--blog-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(58, 63, 153, 0.3);
}

.btn-topic .badge {
    background: rgba(58, 63, 153, 0.15);
    color: var(--blog-primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
    min-width: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-topic.active .badge {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ==========================================================================
   Search Bar - Elegant & Minimal
   ========================================================================== */

.blog-search {
    background: var(--blog-bg-subtle);
    border-bottom: 1px solid var(--blog-border);
}

.search-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.search {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--blog-text-muted);
    pointer-events: none;
    transition: var(--blog-transition);
    font-size: 1.1rem;
}

.search input {
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 3.75rem;
    border: 2px solid var(--blog-border);
    border-radius: 100px;
    font-size: 1.1rem;
    background: #fff;
    transition: var(--blog-transition);
}

.search input:focus {
    outline: none;
    border-color: var(--blog-primary);
    box-shadow: 0 0 0 4px rgba(58, 63, 153, 0.1);
}

.search input:focus + .search-icon,
.search:focus-within .search-icon {
    color: var(--blog-primary);
}

/* ==========================================================================
   Blog Grid - Adaptive Masonry-Inspired Layout
   ========================================================================== */

.blog-grid {
    background: var(--blog-bg-subtle);
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.blog-cards-grid {
    display: grid;
    gap: 2rem;
}

/* Adaptive grid based on post count */
.blog-cards-grid.single-post {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
}

.blog-cards-grid.few-posts {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
}

.blog-cards-grid.many-posts {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* ==========================================================================
   Blog Cards - Editorial Style with Elegant Hover
   ========================================================================== */

.blog-card {
    opacity: 0;
    animation: blogCardReveal 0.6s ease forwards;
}

@keyframes blogCardReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card:nth-child(1) { animation-delay: 0s; }
.blog-card:nth-child(2) { animation-delay: 0.1s; }
.blog-card:nth-child(3) { animation-delay: 0.2s; }
.blog-card:nth-child(4) { animation-delay: 0.3s; }
.blog-card:nth-child(5) { animation-delay: 0.4s; }
.blog-card:nth-child(6) { animation-delay: 0.5s; }
.blog-card:nth-child(n+7) { animation-delay: 0.6s; }

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.blog-card-inner {
    background: #fff;
    border-radius: var(--blog-radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--blog-shadow);
    transition: var(--blog-transition);
    border: 1px solid transparent;
}

.blog-card:hover .blog-card-inner {
    transform: translateY(-8px);
    box-shadow: var(--blog-shadow-lg);
    border-color: var(--blog-accent);
}

.blog-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.03) 100%);
    pointer-events: none;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

.blog-card-placeholder {
    background: linear-gradient(135deg, var(--blog-accent) 0%, #f1f0f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-placeholder i {
    font-size: 3rem;
    color: var(--blog-primary);
    opacity: 0.3;
}

.blog-card-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-topic {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blog-primary);
    background: var(--blog-accent);
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1rem;
    width: fit-content;
}

.blog-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--blog-text);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--blog-primary);
}

.blog-card-excerpt {
    color: var(--blog-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin-bottom: 1.25rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--blog-border);
    margin-top: auto;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.blog-card-author img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.blog-card-author-info {
    min-width: 0;
}

.blog-card-author-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--blog-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--blog-text-muted);
}

.blog-card-reading-time {
    font-size: 0.8rem;
    color: var(--blog-text-muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ==========================================================================
   Empty State - When No Posts
   ========================================================================== */

.blog-empty-state {
    text-align: center;
    padding: 4rem 2rem 5rem;
    background: #fff;
    border-radius: var(--blog-radius-lg);
    box-shadow: var(--blog-shadow);
    max-width: 560px;
    margin: 0 auto;
    animation: emptyStateReveal 0.5s ease forwards;
}

@keyframes emptyStateReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-empty-illustration {
    width: 160px;
    height: 130px;
    margin: 0 auto 2rem;
}

.blog-empty-illustration svg {
    width: 100%;
    height: 100%;
}

.blog-empty-icon {
    width: 80px;
    height: 80px;
    background: var(--blog-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.blog-empty-icon i {
    font-size: 2rem;
    color: var(--blog-primary);
}

.blog-empty-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--blog-text);
    margin-bottom: 1rem;
}

.blog-empty-text {
    color: var(--blog-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.blog-empty-text strong {
    color: var(--blog-primary);
    font-weight: 600;
}

.blog-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.blog-empty-actions .btn {
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    transition: var(--blog-transition);
}

.blog-empty-actions .btn:hover {
    transform: translateY(-2px);
}

.blog-empty-actions .btn-primary {
    background: var(--blog-primary);
    border-color: var(--blog-primary);
    box-shadow: 0 4px 14px rgba(58, 63, 153, 0.3);
}

.blog-empty-actions .btn-primary:hover {
    background: var(--blog-primary-dark);
    border-color: var(--blog-primary-dark);
    box-shadow: 0 6px 20px rgba(58, 63, 153, 0.4);
}

.blog-empty-actions .btn-outline-secondary {
    border-width: 2px;
}

/* ==========================================================================
   Newsletter Section - Refined CTA
   ========================================================================== */

.blog-newsletter {
    background: linear-gradient(135deg, var(--blog-primary) 0%, var(--blog-primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.blog-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.blog-newsletter h2 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ==========================================================================
   Load More Button
   ========================================================================== */

#btnLoadMore {
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-width: 2px;
    transition: var(--blog-transition);
}

#btnLoadMore:hover {
    background: var(--blog-primary);
    border-color: var(--blog-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Blog Detail Page - Optimized Reading Experience
   ========================================================================== */

.blog-detail {
    background: #fff;
}

.blog-detail-header {
    height: 50vh;
    min-height: 400px;
    max-height: 500px;
    position: relative;
    overflow: hidden;
}

.blog-detail-hero {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.blog-detail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
}

.blog-detail-meta {
    max-width: 800px;
    margin: 0 auto;
}

.blog-detail-topics .badge {
    background: var(--blog-accent) !important;
    color: var(--blog-primary);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    transition: var(--blog-transition);
}

.blog-detail-topics .badge:hover {
    background: var(--blog-primary) !important;
    color: #fff;
}

.blog-detail h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--blog-text);
    margin-bottom: 1.5rem;
}

.blog-detail .lead {
    font-size: 1.25rem;
    color: var(--blog-text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   Blog Content - Beautiful Typography
   ========================================================================== */

.blog-content {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.85;
    color: var(--blog-text);
}

.blog-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    color: var(--blog-text);
}

.blog-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--blog-text);
}

.blog-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--blog-text);
}

.blog-content p {
    margin-bottom: 1.75rem;
}

.blog-content a {
    color: var(--blog-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: var(--blog-transition);
}

.blog-content a:hover {
    color: var(--blog-primary-dark);
    text-decoration-thickness: 2px;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--blog-radius);
    margin: 2.5rem 0;
    box-shadow: var(--blog-shadow-lg);
}

.blog-content blockquote {
    margin: 2.5rem 0;
    padding: 2rem 2rem 2rem 2.5rem;
    background: var(--blog-bg-subtle);
    border-left: 4px solid var(--blog-primary);
    border-radius: 0 var(--blog-radius) var(--blog-radius) 0;
    font-style: italic;
    color: var(--blog-text);
}

.blog-content blockquote p:last-child {
    margin-bottom: 0;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.blog-content ul li::marker {
    color: var(--blog-primary);
}

.blog-content ol li::marker {
    color: var(--blog-primary);
    font-weight: 600;
}

.blog-content pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 1.5rem;
    border-radius: var(--blog-radius);
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.9rem;
}

.blog-content code {
    background: var(--blog-accent);
    color: var(--blog-primary-dark);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.blog-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* ==========================================================================
   Share Buttons - Platform Colors
   ========================================================================== */

.blog-share {
    max-width: 700px;
    margin: 0 auto;
}

.btn-share {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--blog-transition);
    text-decoration: none;
}

.btn-share:hover {
    transform: translateY(-3px);
}

/* Facebook */
.btn-share-facebook {
    background: #1877f2;
    color: #fff;
}

.btn-share-facebook:hover {
    background: #0d65d9;
    color: #fff;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

/* X (formerly Twitter) */
.btn-share-x {
    background: #000;
    color: #fff;
}

.btn-share-x:hover {
    background: #333;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* LinkedIn */
.btn-share-linkedin {
    background: #0a66c2;
    color: #fff;
}

.btn-share-linkedin:hover {
    background: #004182;
    color: #fff;
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.4);
}

/* Copy Link */
.btn-share-copy {
    background: var(--blog-bg-subtle);
    color: var(--blog-text-muted);
    border: 2px solid var(--blog-border);
}

.btn-share-copy:hover {
    background: var(--blog-primary);
    color: #fff;
    border-color: var(--blog-primary);
    box-shadow: 0 4px 12px rgba(58, 63, 153, 0.3);
}

/* ==========================================================================
   Author Bio - Clean Card
   ========================================================================== */

.blog-author-bio {
    max-width: 700px;
    margin: 0 auto 3rem;
    background: var(--blog-bg-subtle);
    border: 1px solid var(--blog-border);
}

.blog-author-bio img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Author images in detail header */
.blog-detail-meta img {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px;
    min-height: 56px;
    border-radius: 50%;
    object-fit: cover !important;
    flex-shrink: 0;
}

.blog-author-bio img {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px;
    min-height: 80px;
    border-radius: 50%;
    object-fit: cover !important;
    flex-shrink: 0;
}

/* Co-author styling */
.blog-coauthors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.blog-coauthors a {
    color: var(--blog-primary);
    text-decoration: none;
    font-weight: 500;
}

.blog-coauthors a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Related Posts Section
   ========================================================================== */

.blog-related {
    background: var(--blog-bg-subtle);
}

.blog-related h3 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 991px) {
    .blog-hero {
        min-height: 60vh;
    }

    .blog-hero-content {
        padding: 4rem 0;
    }

    .blog-card-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        min-height: 50vh;
    }

    .blog-hero-content h1 {
        font-size: 2rem;
    }

    .blog-hero-content .lead {
        font-size: 1rem;
    }

    .blog-filters {
        position: static;
    }

    .blog-detail-header {
        height: 35vh;
        min-height: 250px;
    }

    .blog-detail h1 {
        font-size: 1.75rem;
    }

    .blog-content {
        font-size: 1rem;
    }

    .blog-content h2 {
        font-size: 1.5rem;
    }

    .blog-content h3 {
        font-size: 1.25rem;
    }

    .btn-topic {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .blog-card-body {
        padding: 1.25rem;
    }

    .blog-card-title {
        font-size: 1.15rem;
    }

    /* Empty state mobile styles */
    .blog-empty-state {
        padding: 3rem 1.5rem 4rem;
    }

    .blog-empty-illustration {
        width: 120px;
        height: 100px;
        margin-bottom: 1.5rem;
    }

    .blog-empty-title {
        font-size: 1.5rem;
    }

    .blog-empty-text {
        font-size: 0.9375rem;
    }

    .blog-empty-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .blog-empty-actions .btn {
        width: 100%;
    }

    .blog-welcome-header h1 {
        font-size: 2rem;
    }

    .blog-welcome-header .lead {
        font-size: 1rem;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (max-width: 768px) {
    .py-6 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Loading Spinner Enhancement */
.spinner-border {
    color: var(--blog-primary) !important;
}

/* Smooth scroll for anchor links */
.blog-detail {
    scroll-behavior: smooth;
}

/* ==========================================================================
   Author Page Styles
   ========================================================================== */

.blog-author-page-header {
    background: linear-gradient(135deg, var(--blog-bg-subtle) 0%, #fff 100%);
    padding: 4rem 0;
    border-bottom: 1px solid var(--blog-border);
}

.blog-author-profile {
    padding: 2rem 0;
}

.blog-author-avatar img {
    border: 4px solid #fff;
    box-shadow: var(--blog-shadow-lg);
    width: 140px !important;
    height: 140px !important;
    min-width: 140px;
    min-height: 140px;
    object-fit: cover !important;
}

.blog-author-info h1 {
    color: var(--blog-text);
}

/* Blog listing section for author/topic pages */
.blog-listing {
    background: var(--blog-bg-subtle);
}

/* ==========================================================================
   Blog Card Author Image Fix
   ========================================================================== */

.blog-card-author img {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    object-fit: cover !important;
    flex-shrink: 0;
}

/* ==========================================================================
   Topic Page Styles
   ========================================================================== */

.blog-topic-header {
    background: linear-gradient(135deg, var(--blog-primary) 0%, var(--blog-primary-dark) 100%);
    padding: 4rem 0;
    color: #fff;
}

.blog-topic-header h1 {
    color: #fff;
}

.blog-topic-header .badge {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
