/* ==============================================
   BLOG BANNER RESPONSIVE FIXES
   ============================================== */

/* Blog detail banner layout */
.blog-detail-banner {
    padding: 60px 0;
    position: relative;
}

.blog-detail-main {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.blog-detail-right {
    flex: 0 0 auto;
    max-width: 100%;
}

    .blog-detail-right img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

/* Category and read time wrapper */
.blog-category-readtime-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* ==============================================
   ORIGINAL BLOG.CSS CONTENT
   ============================================== */

.blog-template {
    padding: 10px 0;
    background: transparent; /* Keep original theme background */
}

.blog-container {
    max-width: 70%; /* Increased from 700px for more width */
    margin: 0 auto;
    padding: 0 30px; /* Increased padding for better spacing */
}

.blog-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top:2.5rem;
}

/* ==============================================
   BLOG HEADER SECTION
   ============================================== */

.blog-header-section {
    text-align: center;
    margin-bottom: 20px;
}

.category-label {
    display: inline-block;
    padding: 24px 32px;
    background: #415d9b;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.blog-category-title {
    color: white !important;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.blog-category-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
}

/* ==============================================
   BLOG CONTENT SECTION
   ============================================== */

.blog-content-section {
    background: #ffffff;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

/* Content Blocks */
.blog-content-block {
    margin-bottom: 32px;
    font-size: 1.2rem; /* Slightly increased font size */
    line-height: 1.75;
    color: #1a202c; /* Darker color for better readability */
    font-weight: 500; /* Medium weight for better visibility */
    text-align: justify;
}

    .blog-content-block:last-child {
        margin-bottom: 0;
    }

/* ==============================================
   BLOG REFERENCES SECTION
   ============================================== */

.blog-references-section {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    position: relative;
}

.blog-references-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #415d9b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .blog-references-title i {
        color: #415d9b;
        font-size: 1.1rem;
    }

.blog-references-content {
    border-radius: 6px;
    position: relative;
}

    .blog-references-content p {
        margin-bottom: 10px;
        font-size: 1rem;
        line-height: 1.5;
        color: #2d3748;
    }

    .blog-references-content a {
        color: #415d9b;
        text-decoration: none;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 4px;
        margin: 2px 0;
        transition: all 0.2s ease;
        font-size: 0.95rem;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

        .blog-references-content a:hover {
            background: #415d9b;
            color: white;
            transform: translateY(-1px);
            box-shadow: 0 2px 6px rgba(65, 93, 155, 0.15);
            border-color: #415d9b;
        }

        .blog-references-content a::before {
            content: "🔗";
            font-size: 0.8rem;
        }

    .blog-references-content ul {
        list-style: none;
        padding-left: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

        .blog-references-content ul li {
            position: relative;
            padding: 0;
            margin: 0;
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 4px;
            overflow: hidden;
            transition: all 0.2s ease;
        }

            .blog-references-content ul li:hover {
                transform: translateY(-1px);
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
                border-color: #415d9b;
            }

            .blog-references-content ul li::before {
                display: none;
            }

            .blog-references-content ul li a {
                display: block;
                padding: 12px 16px;
                margin: 0;
                border: none;
                border-radius: 0;
                background: transparent;
                box-shadow: none;
                color: #2d3748;
                font-weight: 500;
                text-decoration: none;
                transition: all 0.2s ease;
                font-size: 0.95rem;
            }

                .blog-references-content ul li a::before {
                    content: "📖";
                    margin-right: 8px;
                    font-size: 0.9rem;
                }

            .blog-references-content ul li:hover a {
                color: #415d9b;
                background: #f7fafc;
            }

            .blog-references-content ul li a[href^="http"]::before {
                content: "🌐";
            }

            .blog-references-content ul li a[href$=".pdf"]::before {
                content: "📄";
            }

            .blog-references-content ul li a[href*="github"]::before {
                content: "💻";
            }

            .blog-references-content ul li a[href*="youtube"]::before,
            .blog-references-content ul li a[href*="video"]::before {
                content: "🎥";
            }

            .blog-references-content ul li a[href*="docs"]::before,
            .blog-references-content ul li a[href*="documentation"]::before {
                content: "📚";
            }

/* ==============================================
   BLOG TAGS SECTION
   ============================================== */

.blog-tags-section {
    margin: 1rem 0;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.blog-tags-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: #415d9b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .blog-tags-title i {
        color: #415d9b;
        font-size: 1.2rem;
    }

.blog-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.blog-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

    .blog-tag:hover {
        transform: translateY(-2px);
        background: #e2e8f0;
        color: #334155;
        border-color: #cbd5e1;
    }

/* Special styling for conclusion - CONSISTENT WITH BLOG THEME */
.blog-conclusion-block {
    margin-top: 50px;
    padding-top: 30px;
    background: transparent; /* Consistent with blog background */
    padding: 30px 0; /* Only top/bottom padding */
    border-radius: 0; /* No border radius */
    font-weight: 500; /* Lighter weight for consistency */
    position: relative;
    font-size: 1.2rem; /* Consistent with other content blocks */
    line-height: 1.75; /* Consistent line height */
    color: #1a202c; /* Darker color for better readability */
    text-align: justify; /* Consistent alignment */
    font-style: normal; /* Remove italic for consistency */
}

    /* Optional: Add a subtle emphasis for conclusion */
    .blog-conclusion-block p:first-child::first-line {
        font-weight: 600;
        color: #1a202c;
    }

/* ==============================================
   NOTION-STYLE TECHNICAL KEYWORD HIGHLIGHTING
   ============================================== */

span.technical-keyword {
    background: #fef2f2;
    color: #dc2626;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
    font-size: 0.95em;
    border-left: 3px solid #ef4444;
    box-shadow: 0 1px 2px rgba(220, 38, 38, 0.1);
    transition: all 0.2s ease;
}

    span.technical-keyword:hover {
        background: #fee2e2;
        color: #b91c1c;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(220, 38, 38, 0.15);
    }

/* ==============================================
   INLINE CODE AND TECHNICAL HIGHLIGHTING
   ============================================== */

/* Basic inline code styling */
.code-inline {
    background: #f1f5f9;
    color: #1e293b;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95em;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

/* Method names and function calls */
.method-name {
    background: #dbeafe;
    color: #1e40af;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95em;
    font-weight: 600;
    border: 1px solid #93c5fd;
    white-space: nowrap;
}

/* Class names and types */
.class-name {
    background: #ecfdf5;
    color: #059669;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95em;
    font-weight: 600;
    border: 1px solid #6ee7b7;
    white-space: nowrap;
}

/* Generic types like IEnumerable<T> */
.generic-type {
    background: #fef3c7;
    color: #d97706;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95em;
    font-weight: 600;
    border: 1px solid #fcd34d;
    white-space: nowrap;
}

/* Keywords and reserved words */
.keyword {
    background: #fce7f3;
    color: #be185d;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95em;
    font-weight: 600;
    border: 1px solid #f9a8d4;
    white-space: nowrap;
}

/* Variables and properties */
.variable {
    background: #ede9fe;
    color: #7c3aed;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95em;
    font-weight: 500;
    border: 1px solid #c4b5fd;
    white-space: nowrap;
}

/* File paths and URLs */
.file-path {
    background: #f3f4f6;
    color: #374151;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 400;
    border: 1px solid #d1d5db;
    word-break: break-all;
}

/* Technical terms and concepts */
.tech-term {
    background: #fef2f2;
    color: #dc2626;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95em;
    border: 1px solid #fecaca;
    white-space: nowrap;
}

/* API endpoints */
.api-endpoint {
    background: #f0f9ff;
    color: #0284c7;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid #7dd3fc;
}

/* SQL and database related */
.sql-term {
    background: #f5f3ff;
    color: #7c2d12;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.95em;
    font-weight: 600;
    border: 1px solid #d8b4fe;
    white-space: nowrap;
}

/* Command line commands */
.command {
    background: #1f2937;
    color: #10b981;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid #374151;
}

    /* Hover effects for all inline code elements */
    .code-inline:hover,
    .method-name:hover,
    .class-name:hover,
    .generic-type:hover,
    .keyword:hover,
    .variable:hover,
    .file-path:hover,
    .tech-term:hover,
    .api-endpoint:hover,
    .sql-term:hover,
    .command:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }

/* Special styling for important technical points */
.highlight-important {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #92400e;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95em;
    border: 2px solid #fcd34d;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

    .highlight-important:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
    }

/* ==============================================
   FIGURE AND IMAGE CAPTION STYLING
   ============================================== */

.blog-content-section figure {
    margin: 10px 0;
    position: relative;
    text-align: center;
    display: inline-block;
    /*width: 70%;*/
}

    .blog-content-section figure img {
        width: 100%;
        height: auto;
        max-width: 100%;
        border-radius: 8px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .blog-content-section figure img:hover {
            transform: translateY(-2px);
        }

    .blog-content-section figure figcaption {
        position: static;
        bottom: auto;
        left: auto;
        right: auto;
        transform: none;
        background: transparent;
        color: #4a5568;
        padding: 12px 0 0 0;
        border-radius: 0;
        font-size: 0.9rem;
        font-weight: 400;
        font-style: italic;
        text-align: center;
        backdrop-filter: none;
        border: none;
        max-width: 100%;
        line-height: 1.5;
        letter-spacing: 0.3px;
        opacity: 1;
        transition: none;
        margin-top: 10px;
    }

    .blog-content-section figure:hover figcaption {
        opacity: 1;
        background: transparent;
        color: #4a5568;
    }

    /* Remove alternative light caption style as it's no longer needed */
    .blog-content-section figure figcaption.light-caption {
        background: transparent;
        color: #4a5568;
        border: none;
    }

    .blog-content-section figure:hover figcaption.light-caption {
        background: transparent;
        color: #4a5568;
    }

/* Mobile figure adjustments */
@media (max-width: 768px) {
    .blog-content-section figure {
        width: calc(100% + 30px);
        margin: 20px -15px;
        display: block;
    }

        .blog-content-section figure figcaption {
            font-size: 0.8rem;
            padding: 6px 12px;
            max-width: 95%;
        }
}

@media (max-width: 480px) {
    .blog-content-section figure {
        width: calc(100% + 30px);
        margin: 15px -15px;
    }

        .blog-content-section figure figcaption {
            font-size: 0.75rem;
            padding: 10px 15px 0 15px;
            margin-top: 8px;
            background: transparent;
            color: #4a5568;
            border: none;
        }
}

/* ==============================================
   BLOG MEDIA WRAPPER - REFACTORED
   ============================================== */

.blog-media-wrapper {
    margin: 50px 0;
    padding: 0;
    background: transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-media-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 0;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

/* Optional: Add a subtle hover effect */
.blog-media-wrapper:hover .blog-media-image {
    transform: scale(1.01);
}

/* Optional: Add a caption area if needed */
.blog-media-caption {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #6b7280;
    font-style: italic;
    text-align: center;
    line-height: 1.5;
}

/* Alternative styling for when you want a frame effect */
.blog-media-wrapper.framed {
    padding: 15px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

    .blog-media-wrapper.framed .blog-media-image {
        border-radius: 4px;
    }

/* ==============================================
   PROFESSIONAL TYPOGRAPHY FOR ALL BLOGS
   ============================================== */

.blog-content-section h1 {
    font-size: 2.75rem; /* Increased */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1a202c;
}

.blog-content-section h2 {
    font-size: 2.25rem; /* Increased */
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    color: #1a202c; /* Darker for better readability */
}

.blog-content-section h3 {
    font-size: 1.9rem; /* Increased */
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #1a202c; /* Darker for better readability */
}

.blog-content-section h4 {
    font-size: 1.4rem; /* Increased */
    font-weight: bold;
    line-height: 1.4;
    margin-top: 1rem; 
    color: #2d3748; /* Darker for better readability */
}

.blog-content-section h5 {
    font-size: 1.35rem; /* Increased */
    font-weight: 500;
    line-height: 1.5;
    margin-top: 1rem;
    color: #2d3748; /* Darker for better readability */
}

.blog-content-section p {
    font-size: 1.2rem; /* Increased from 1.125rem */
    font-weight: 500; /* Medium weight for better visibility */
    margin: 15px 0 0 0; /* Increased margin */
    color: #1a202c; /* Darker color for better readability */
    text-align: justify;
}

.blog-content-section ul,
.blog-content-section ol {
    font-size: 1.2rem; /* Increased */
    line-height: 1.75;
    margin-bottom: 1.5rem; /* Increased margin */
    color: #1a202c; /* Darker color for better readability */
}

.blog-content-section li {
    font-weight: 500; /* Medium weight for better visibility */
}

.blog-content-section ul li {
    list-style-type: disc;
}

.blog-content-section ol li {
    list-style-type: decimal;
    padding-left: 0.5rem; /* Increased padding */
}

.blog-content-section blockquote {
    border-left: 4px solid #007bff;
    padding-left: 25px; /* Increased padding */
    margin: 30px 0; /* Increased margin */
    font-style: italic;
    color: #2d3748; /* Darker color for better readability */
    font-weight: 500; /* Medium weight for better visibility */
    background: #f7fafc;
    padding: 20px 25px; /* Increased padding */
    border-radius: 0 8px 8px 0;
    font-size: 1.15rem; /* Added font size */
}

.blog-content-section strong,
.blog-content-section b {
    font-weight: 600;
    color: #1a202c;
}

.blog-content-section em,
.blog-content-section i {
    font-style: italic;
    color: #2d3748; /* Darker color for better readability */
    font-weight: 500; /* Medium weight for better visibility */
}

/* ==============================================
   COMMAND LINE AND TERMINAL STYLING
   ============================================== */

/* General terminal styling */
.terminal {
    background: #1e1e2e;
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

    /* Terminal title bar */
    .terminal .title-bar {
        background: #292929;
        color: #ffffff;
        padding: 8px 12px;
        border-radius: 8px 8px 0 0;
        font-weight: 700;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Terminal commands */
    .terminal .command {
        color: #50fa7b;
        font-weight: 500;
    }

    /* Terminal output */
    .terminal .output {
        color: #f8f8f2;
        font-weight: 400;
        white-space: pre-wrap;
        word-break: break-all;
    }

    /* Terminal cursor */
    .terminal .cursor {
        width: 10px;
        height: 1.2em;
        background: #50fa7b;
        display: inline-block;
        animation: blink 1s step-end infinite;
        margin-left: 2px;
    }

/* Blink animation for cursor */
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ==============================================
   RESPONSIVE DESIGN WITH BANNER FIXES
   ============================================== */

@media (max-width: 992px) {
    .blog-container {
        max-width: 750px; /* Intermediate width for tablets */
        padding: 0 25px;
    }

    .blog-content-section {
        padding: 40px 35px;
    }

    /* Blog banner responsive adjustments */
    .blog-detail-main {
        flex-direction: column;
        gap: 30px;
    }

    .blog-detail-left {
        min-width: auto;
        width: 100%;
    }

    .blog-detail-right {
        width: 100%;
        text-align: center;
    }

        .blog-detail-right img {
            max-width: 80%;
            height: auto;
        }

    /* Enhanced readability for medium screens */
    .blog-content-section p,
    .blog-content-section ul,
    .blog-content-section ol,
    .blog-content-section li {
        font-weight: 500; /* Medium weight maintained */
        color: #1a202c; /* Darker color maintained */
    }

    /* Responsive inline code elements */
    span.technical-keyword {
        font-size: 0.9em;
        padding: 2px 5px;
    }

    /* References and tags responsiveness */
    .blog-references-section {
        margin-top: 40px;
        padding: 25px 0;
    }

    .blog-references-title {
        font-size: 1.6rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .blog-tags-title {
        font-size: 1.4rem;
    }

    .blog-tags-container {
        gap: 10px;
    }

    .blog-tag {
        font-size: 0.85rem;
        padding: 6px 14px;
    }
}

@media (max-width: 768px) {
    .blog-template {
        padding: 20px 0;
    }

    .blog-container {
        max-width: 100%;
        padding: 0 20px;
    }

    .blog-content-section {
        padding: 30px 25px;
        margin: 0 auto; /* Center the section */
        width: 100%; /* Ensure full width */
        box-sizing: border-box; /* Include padding in width calculation */
    }

    .category-label {
        padding: 20px 24px;
    }

    .blog-category-title {
        font-size: 1.5rem;
    }

    .blog-category-desc {
        font-size: 1rem;
    }

    /* Blog banner mobile fixes */
    .blog-detail-banner {
        padding: 40px 0;
    }

    .blog-detail-main {
        gap: 20px;
    }

    .blog-detail-right img {
        max-width: 100%;
        border-radius: 8px;
    }

    /* CENTER THE CATEGORY READTIME WRAPPER ON MOBILE */
    .blog-category-readtime-wrapper {
        justify-content: center;
        text-align: center;
    }

    .blog-content-section h1 {
        font-size: 2.25rem;
        color: #1a202c; /* Darker color maintained */
    }

    .blog-content-section h2 {
        font-size: 1.9rem;
        color: #1a202c; /* Darker color maintained */
    }

    .blog-content-section h3 {
        font-size: 1.6rem;
        color: #1a202c; /* Darker color maintained */
    }

    .blog-content-section h4 {
        font-size: 1.35rem;
        color: #1a202c; /* Darker color maintained */
    }

    .blog-content-section h5 {
        font-size: 1.2rem;
        color: #1a202c; /* Darker color maintained */
    }

    .blog-content-section p,
    .blog-content-section ul,
    .blog-content-section ol {
        font-size: 1.1rem;
        line-height: 1.6;
        font-weight: 500; /* Medium weight for better visibility on mobile */
        color: #1a202c; /* Darker color for better readability on mobile */
    }

    .blog-content-section .blog-content-block ul {
        padding: 0 1rem; /* Added padding for ul within blog-content-block */
    }

    .blog-content-section li {
        font-weight: 500; /* Medium weight for better visibility on mobile */
        color: #1a202c; /* Darker color for better readability on mobile */
        padding: 0 1rem; /* Added padding for smaller screens */
    }

    .blog-media-wrapper {
        margin: 35px 0;
    }

    .blog-media-image {
        max-height: 400px;
    }

    .blog-media-wrapper.framed {
        padding: 10px;
    }

    .blog-conclusion-block {
        margin-top: 35px;
        padding: 25px 0;
        color: #1a202c; /* Darker color maintained */
        font-weight: 500; /* Medium weight maintained */
    }

    /* Mobile figure caption adjustments */
    .blog-content-section figure figcaption {
        font-size: 0.8rem;
        padding: 6px 12px;
        max-width: 95%;
    }

    /* Mobile inline code adjustments */
    span.technical-keyword {
        font-size: 0.85em;
        padding: 1px 4px;
    }

    /* Mobile references and tags */
    .blog-references-section {
        margin-top: 35px;
        padding: 20px 0;
    }

    .blog-references-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .blog-references-content {
        padding: 20px;
    }

    .blog-tags-section {
        padding: 20px 0 0 0;
    }

    .blog-tags-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .blog-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding: 0 15px;
    }

    .blog-content-section {
        padding: 20px 15px;
        margin: 0 auto; /* Center the section */
        width: 100%; /* Ensure full width */
        box-sizing: border-box; /* Include padding in width calculation */
    }

    /* Small screen banner adjustments */
    .blog-detail-banner {
        padding: 30px 0;
    }

    .blog-detail-main {
        gap: 15px;
    }

    /* ENSURE CATEGORY WRAPPER STAYS CENTERED */
    .blog-category-readtime-wrapper {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .blog-content-section p,
    .blog-content-section ul,
    .blog-content-section ol {
        font-size: 1rem;
        font-weight: 500; /* Medium weight for better visibility on small screens */
        color: #1a202c; /* Darker color for better readability on small screens */
        padding: 0;
    }

    .blog-content-section .blog-content-block ul {
        padding: 0 1rem; /* Added padding for ul within blog-content-block */
    }

    .blog-content-section li {
        font-weight: 500; /* Medium weight for better visibility on small screens */
        color: #1a202c; /* Darker color for better readability on small screens */
        padding: 0 1rem; /* Added padding for smaller screens */
    }

    .blog-media-wrapper {
        margin: 25px 0;
    }

    .blog-media-image {
        max-height: 300px;
    }

    .blog-media-caption {
        font-size: 0.9rem;
        margin-top: 10px;
    }

    .blog-conclusion-block {
        margin-top: 25px;
        padding: 20px 0;
        font-size: 1rem;
        color: #1a202c; /* Darker color maintained */
        font-weight: 500; /* Medium weight maintained */
    }

    /* Small screen figure caption adjustments */
    .blog-content-section figure figcaption {
        font-size: 0.75rem;
        padding: 5px 10px;
        position: static;
        transform: none;
        margin-top: 8px;
        background: transparent;
        color: #4a5568;
        border: none;
    }

    /* Very small screen inline code */
    span.technical-keyword {
        font-size: 0.8em;
        padding: 1px 3px;
    }

    /* Very small screen references and tags */
    .blog-references-section {
        margin-top: 25px;
        padding: 15px 0;
    }

    .blog-references-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .blog-references-content {
        padding: 15px;
    }

    .blog-tags-section {
        margin-top: 20px;
        padding: 15px 0 0 0;
    }

    .blog-tags-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .blog-tags-container {
        gap: 8px;
        justify-content: flex-start;
    }

    .blog-tag {
        font-size: 0.75rem;
        padding: 5px 10px;
        margin: 0;
        border-radius: 15px;
    }
}

/* ==============================================
   ANIMATION EFFECTS
   ============================================== */

.blog-content-section,
.category-label {
    animation: fadeInUp 0.8s ease-out;
}

.blog-references-section,
.blog-tags-section {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==============================================
   UTILITY CLASSES FOR BLOG CREATORS
   ============================================== */

/* Text Alignment */
.blog-text-left {
    text-align: left !important;
}

.blog-text-center {
    text-align: center !important;
}

.blog-text-right {
    text-align: right !important;
}

/* Spacing Utilities */
.blog-mb-small {
    margin-bottom: 16px !important;
}

.blog-mb-medium {
    margin-bottom: 24px !important;
}

.blog-mb-large {
    margin-bottom: 32px !important;
}

.blog-mt-small {
    margin-top: 16px !important;
}

.blog-mt-medium {
    margin-top: 24px !important;
}

.blog-mt-large {
    margin-top: 32px !important;
}

/* Highlight Box */
.blog-highlight-box {
    background: #e7f3ff;
    border-radius: 8px;
    padding: 20px 25px; /* Increased padding */
    margin: 25px 0; /* Increased margin */
    border-left: 4px solid #007bff;
}

/* Call-to-Action Box */
.blog-cta-box {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 30px; /* Increased padding */
    border-radius: 12px;
    text-align: center;
    margin: 40px 0; /* Increased margin */
}

.blog-content-block ul, .blog-content-block ol {
    margin: 0px 0px 15px 0px !important;
}

/* ==============================================
   Table classes
   ============================================== */

@media (max-width: 480px) {
    .table > * {
        text-wrap: nowrap;
    }
}
