/* ============================================================================
   BLOG ENHANCED STYLES
   ============================================================================ */

/* Custom Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --info-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --blog-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --blog-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Blog Detail Hero Section */
.blog-detail-hero {
    background: var(--primary-gradient);
    padding: 80px 0 60px;
    margin-top: -20px;
    position: relative;
    overflow: hidden;
}

.blog-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.blog-detail-hero .container {
    position: relative;
    z-index: 2;
}

.author-avatar {
    position: relative;
    z-index: 1;
}

/* Blog Post Content Styling */
.blog-post-content {
    margin-bottom: 2rem;
}

.post-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #2c3e50;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: #2c3e50;
    font-weight: 700;
}

.post-content h1 {
    font-size: 2.5rem;
}

.post-content h2 {
    font-size: 2rem;
}

.post-content h3 {
    font-size: 1.75rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

.post-content blockquote {
    border-left: 4px solid #667eea;
    background: #f8f9fa;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
    font-style: italic;
    position: relative;
}

.post-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: #667eea;
    position: absolute;
    top: -10px;
    left: 15px;
    opacity: 0.3;
}

.post-content code {
    background: #f1f3f4;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    color: #e83e8c;
}

.post-content pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

/* Featured Image Enhancement */
.blog-featured-image {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.blog-featured-image img {
    transition: var(--transition-smooth);
}

.blog-featured-image:hover img {
    transform: scale(1.02);
}

/* Social Share Buttons */
.btn-twitter {
    background: #1da1f2;
    color: white;
    border: none;
    transition: var(--transition-smooth);
}

.btn-twitter:hover {
    background: #0d8bd9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 161, 242, 0.3);
}

.btn-facebook {
    background: #3b5998;
    color: white;
    border: none;
    transition: var(--transition-smooth);
}

.btn-facebook:hover {
    background: #2d4373;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 89, 152, 0.3);
}

.btn-linkedin {
    background: #0077b5;
    color: white;
    border: none;
    transition: var(--transition-smooth);
}

.btn-linkedin:hover {
    background: #005885;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.3);
}

.btn-email {
    background: #6c757d;
    color: white;
    border: none;
    transition: var(--transition-smooth);
}

.btn-email:hover {
    background: #545b62;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

/* Tag Styling */
.tag-hover {
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.tag-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: var(--transition-smooth);
    z-index: -1;
}

.tag-hover:hover::before {
    left: 0;
}

.tag-hover:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Enhanced Blog Cards */
.blog-card {
    border: none !important;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    background: white !important;
    box-shadow: var(--blog-shadow);
    position: relative;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--blog-shadow-hover);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card .card-img-top {
    transition: var(--transition-smooth);
    border-radius: 0;
    height: 200px;
    object-fit: cover;
}

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

/* Blog Card Image Container */
.blog-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.1), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-card-overlay {
    opacity: 1;
}

/* Enhanced Card Body */
.blog-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
    background: white !important;
    color: #2c3e50 !important;
}

.blog-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.blog-card .card-title a {
    color: #2c3e50 !important;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.blog-card:hover .card-title a {
    color: #667eea !important;
}

.blog-card .card-text {
    flex-grow: 1;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #6c757d !important;
}

.blog-card:hover .card-title a {
    color: #667eea;
}

.blog-card .card-text {
    flex-grow: 1;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Enhanced Read More Button */
.btn-read-more {
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    color: white !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.btn-read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-smooth);
}

.btn-read-more:hover::before {
    left: 100%;
}

.btn-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    color: white !important;
}

.btn-read-more i {
    font-size: 0.9rem !important;
    transition: transform 0.3s ease !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 12px !important;
    text-align: center !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
}

/* Fallback arrow if Font Awesome doesn't load */
.btn-read-more i.fas.fa-arrow-right::before {
    content: "\f061" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.btn-read-more i:empty::before,
.btn-read-more i.fas.fa-arrow-right:not([class*="fa-"])::before {
    content: "→" !important;
    font-family: Arial, sans-serif !important;
    font-style: normal !important;
    font-weight: bold !important;
}

.btn-read-more:hover i {
    transform: translateX(3px) !important;
}

.btn-read-more .arrow-icon {
    display: inline-block !important;
    font-size: 0.9rem !important;
    margin-left: 8px !important;
    transition: transform 0.3s ease !important;
}

.btn-read-more:hover .arrow-icon {
    transform: translateX(3px) !important;
}

/* Table of Contents Styling */
.toc-link {
    color: #6c757d !important;
    transition: all 0.3s ease !important;
    border-radius: 4px !important;
}

.toc-link:hover {
    background-color: #f8f9fa !important;
    color: #667eea !important;
    transform: translateX(5px) !important;
}

#tableOfContents ul {
    max-height: 300px;
    overflow-y: auto;
}

/* Meta Information Styling */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.875rem;
    color: #6c757d !important;
}

.blog-meta-item i {
    color: #667eea !important;
}

/* Force light background for all blog cards */
.blog-card,
.blog-card * {
    background-color: white !important;
}

.blog-card .badge {
    background-color: var(--category-color, #667eea) !important;
    color: white !important;
}

.blog-card .text-muted,
.blog-card .blog-meta-item {
    color: #6c757d !important;
}

/* Additional text contrast improvements */
.blog-card .card-title,
.blog-card .card-title a,
.blog-card h5,
.blog-card h5 a {
    color: #2c3e50 !important;
    font-weight: 600;
}

.blog-card .card-text,
.blog-card p {
    color: #6c757d !important;
}

.blog-card .btn-read-more {
    background: var(--primary-gradient) !important;
    color: white !important;
    border: none !important;
}

/* Enhanced Sidebar Styling */
.sidebar-sticky {
    position: sticky;
    top: 100px;
    z-index: 100;
}

.sidebar-card {
    border: none !important;
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition-smooth);
    background: white !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.sidebar-card .card-header {
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.bg-gradient-primary {
    background: var(--primary-gradient) !important;
}

.bg-gradient-success {
    background: var(--success-gradient) !important;
}

.bg-gradient-warning {
    background: var(--warning-gradient) !important;
}

.bg-gradient-info {
    background: var(--info-gradient) !important;
}

.sidebar-link {
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.1);
    transition: var(--transition-smooth);
}

.sidebar-link:hover::before {
    left: 0;
}

.sidebar-link:hover {
    color: #667eea !important;
    transform: translateX(5px);
}

.sidebar-post {
    transition: var(--transition-smooth);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.sidebar-post:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(5px);
}

.sidebar-post-image {
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 0.5rem;
    position: relative;
}

.sidebar-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.sidebar-post-image>div {
    width: 100%;
    height: 100%;
}

.sidebar-post:hover .sidebar-post-image img {
    transform: scale(1.1);
}

.sidebar-post-link {
    transition: var(--transition-smooth);
}

.sidebar-post:hover .sidebar-post-link {
    color: #667eea !important;
}

/* Comments Section */
.comments-section {
    position: relative;
}

.comment-item {
    transition: var(--transition-smooth);
    position: relative;
}

.comment-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.comment-avatar {
    position: relative;
}

.comment-content {
    line-height: 1.6;
}

/* Related Posts Enhancement */
.related-posts .blog-card {
    transition: var(--transition-smooth);
}

.related-posts .blog-card:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Pagination Enhancement */
.pagination .page-link {
    border: none;
    color: #667eea;
    margin: 0 0.25rem;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    transition: var(--transition-smooth);
}

.pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.pagination .page-link:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Breadcrumb Enhancement */
.breadcrumb {
    padding: 0.75rem 0;
    margin-bottom: 0;
    background: transparent;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    font-weight: bold;
}

.breadcrumb-item a {
    text-decoration: none;
    transition: var(--transition-smooth);
}

.breadcrumb-item a:hover {
    color: white !important;
}

/* Loading Animation */
@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Z-index Management */
.blog-detail-hero {
    z-index: 1;
}

.sidebar-sticky {
    z-index: 100;
}

.blog-card {
    z-index: 2;
}

.blog-card:hover {
    z-index: 3;
}

.dropdown-menu {
    z-index: 1050;
}

.modal {
    z-index: 1055;
}

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

    .blog-detail-hero h1 {
        font-size: 2rem !important;
    }

    .sidebar-sticky {
        position: relative;
        top: auto;
    }

    .post-content {
        font-size: 1rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .author-info {
        margin-bottom: 1rem;
    }
}

/* Print Styles */
@media print {

    .sidebar-sticky,
    .post-share,
    .comments-section,
    .related-posts {
        display: none !important;
    }

    .blog-detail-hero {
        background: none !important;
        color: black !important;
    }

    .post-content {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* Featured Post Styling */
.featured-post {
    background: var(--primary-gradient);
    color: white;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
}

.featured-post::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: var(--transition-smooth);
    opacity: 0;
}

.featured-post:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Category Badges */
.category-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.category-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-smooth);
}

.category-badge:hover::before {
    left: 100%;
}

/* Tag Styling */
.tag-cloud a {
    display: inline-block;
    margin: 4px;
    padding: 6px 12px;
    background: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.tag-cloud a:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary-gradient);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Animated Search Box */
.search-container {
    position: relative;
    overflow: hidden;
}

.search-input {
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 12px 20px;
    transition: var(--transition-smooth);
    background: white;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: scale(1.02);
}

.search-btn {
    border-radius: 25px;
    background: var(--primary-gradient);
    border: none;
    padding: 12px 20px;
    transition: var(--transition-smooth);
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Sidebar Enhancements */
.sidebar-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: white;
    box-shadow: var(--blog-shadow);
    transition: var(--transition-smooth);
    margin-bottom: 2rem;
}

.sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--blog-shadow-hover);
}

.sidebar-card .card-header {
    border: none;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.sidebar-card .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0.9;
}

.sidebar-card .card-header h6 {
    position: relative;
    z-index: 2;
    margin: 0;
    font-weight: 700;
}

/* Recent Posts Animation */
.recent-post-item {
    transition: var(--transition-smooth);
    border-radius: 10px;
    padding: 0.5rem;
}

.recent-post-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

/* Comment Section */
.comment-card {
    border-left: 4px solid #667eea;
    border-radius: 10px;
    background: white;
    transition: var(--transition-smooth);
}

.comment-card:hover {
    box-shadow: var(--blog-shadow);
    transform: translateX(5px);
}

/* Pagination Styling */
.pagination .page-link {
    border: none;
    color: #667eea;
    padding: 10px 15px;
    margin: 0 2px;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.pagination .page-link:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Share Buttons */
.share-btn {
    border-radius: 10px;
    padding: 10px 20px;
    border: 2px solid;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: inherit;
    transition: var(--transition-smooth);
    z-index: -1;
}

.share-btn:hover::before {
    left: 0;
}

.share-btn:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

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

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Typography Enhancements */
.blog-title {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.blog-excerpt {
    line-height: 1.7;
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-card {
        margin-bottom: 2rem;
    }

    .sidebar-card {
        margin-bottom: 1.5rem;
    }

    .blog-title {
        font-size: 2rem;
    }
}

/* Dark Mode Support - Only for explicit dark mode elements */
@media (prefers-color-scheme: dark) {
    .blog-hero {
        background: var(--primary-gradient);
    }

    /* Keep blog cards light for better readability */
    .blog-card {
        background: white !important;
        color: #2c3e50 !important;
    }

    .blog-card .card-body {
        background: white !important;
        color: #2c3e50 !important;
    }

    .sidebar-card {
        background: white !important;
        color: #2c3e50 !important;
        border: 1px solid #e9ecef;
    }

    .search-input {
        background: white !important;
        color: #2c3e50 !important;
        border-color: #e9ecef !important;
    }
}

/* Note: Floating Action Button styles removed to avoid duplicates with main.css */

/* Table of Contents */
.toc {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc ul li {
    padding: 5px 0;
}

.toc ul li a {
    color: #667eea;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.toc ul li a:hover {
    color: #764ba2;
    padding-left: 10px;
}

/* Code Blocks */
pre {
    background: #2d3748;
    color: #e2e8f0;
    border-radius: 15px;
    padding: 1.5rem;
    overflow-x: auto;
}

code {
    background: #edf2f7;
    color: #2d3748;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Blog Hero Section */
.blog-hero {
    background: var(--primary-gradient);
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.blog-hero .container {
    position: relative;
    z-index: 2;
}

/* Blog Title Enhancements */
.blog-title-wrapper {
    position: relative;
}

.blog-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    animation: float 3s ease-in-out infinite;
}

.blog-hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ffffff, #f8f9fa, #ffffff);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
    text-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
    letter-spacing: -0.02em;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    border-radius: 2px;
    animation: expand 2s ease-in-out infinite alternate;
}

/* Blog Stats */
.blog-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    margin: 0 auto;
    max-width: 600px;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Enhanced Search */
.blog-search {
    max-width: 600px;
    margin: 0 auto;
}

.search-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
}

.search-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.search-wrapper .form-control {
    border: none;
    border-radius: 40px;
    padding: 20px 80px 20px 30px;
    font-size: 1.1rem;
    background: transparent;
    color: #2c3e50;
    font-weight: 500;
}

.search-wrapper .form-control:focus {
    box-shadow: none;
    background: transparent;
}

.search-wrapper .form-control::placeholder {
    color: #6c757d;
    font-weight: 400;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Featured Categories */
.featured-categories {
    margin-top: 3rem;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.category-pill {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.category-pill:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-pill.active {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    font-weight: 600;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes expand {
    0% {
        width: 50px;
    }

    100% {
        width: 150px;
    }
}

/* Blog Search Enhancement */
.blog-search {
    max-width: 500px;
    margin: 0 auto;
}

.blog-search .form-control {
    border: none;
    border-radius: 50px;
    padding: 15px 50px 15px 20px;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.blog-search .form-control:focus {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    background: white;
}

.blog-search i {
    font-size: 1.2rem;
    color: #667eea !important;
}

/* Sidebar Enhancements */
.sidebar-card {
    border: none !important;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.sidebar-card .card-header {
    border: none;
    font-weight: 600;
    padding: 1rem 1.5rem;
}

/* Enhanced Pagination */
.pagination .page-link {
    border: none;
    border-radius: 10px;
    margin: 0 2px;
    padding: 10px 15px;
    color: #667eea;
    background: transparent;
    transition: var(--transition-smooth);
}

.pagination .page-link:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Utility Classes */
.transition-all {
    transition: all 0.3s ease;
}

.hover-bg-light:hover {
    background-color: #f8f9fa !important;
}

.hover-primary:hover {
    color: #667eea !important;
}

/* Loading Animation */
@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .blog-hero {
        padding: 80px 0 60px;
        min-height: 100vh;
    }

    .blog-hero h1 {
        font-size: 3rem;
    }

    .blog-icon {
        font-size: 3rem;
    }

    .blog-stats {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }

    .search-wrapper .form-control {
        padding: 16px 70px 16px 25px;
        font-size: 1rem;
    }

    .search-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .category-pills {
        gap: 0.5rem;
    }

    .category-pill {
        padding: 10px 20px;
        font-size: 0.875rem;
    }

    .floating-shape {
        display: none;
    }

    .blog-card .card-body {
        padding: 1rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 8px;
    }

    .btn-read-more {
        padding: 8px 20px;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .blog-hero {
        padding: 60px 0 40px;
    }

    .blog-hero h1 {
        font-size: 2.5rem;
    }

    .blog-stats .row {
        gap: 1rem;
    }

    .search-wrapper .form-control {
        padding: 14px 60px 14px 20px;
    }

    .search-btn {
        width: 40px;
        height: 40px;
    }
}