/* ==========================================================================
   NextGen TechInsights Single Blog & Footer - CSS PART 1
   ========================================================================== */

:root {
    --primary-blue: #0076ff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --card-bg: rgba(255, 255, 255, 0.95);
    --border-color: rgba(226, 232, 240, 0.8);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Footer Colors */
    --footer-dark-bg: #0f172a;
    --ennovate-theme-blue: #0066ff; 
    --ennovate-gradient-blue: linear-gradient(135deg, #0066ff, #00d2ff);
    --text-white: #ffffff;
    --text-muted-gray: #94a3b8;
    --footer-border: rgba(148, 163, 184, 0.1);
}

/* --- Base Reset & Body --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: #f8fafc;
    line-height: 1.8;
    position: relative;
    overflow-x: hidden;
}

/* --- Premium Background Gradient Blurs --- */
.bg-blur-circle-1, .bg-blur-circle-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}
.bg-blur-circle-1 { 
    top: -150px; 
    right: -100px; 
    background: linear-gradient(135deg, #cbd5e1, #94a3b8); 
}
.bg-blur-circle-2 { 
    top: 700px; 
    left: -150px; 
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1); 
}

/* --- Page Structure Wrapper --- */
.page-wrapper {
    max-width: 1250px;
    margin: 0 auto;
    padding: 50px 20px;
}

/* --- Navigation Back Link --- */
.nav-container {
    margin-bottom: 30px;
}
.back-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}
.back-link:hover {
    transform: translateX(-6px);
    color: #0056b3;
}

/* --- 2-Column Split Grid --- */
.blog-grid-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* --- Main Blog Content Card --- */
.main-content-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
}

/* --- Header & Typography --- */
.blog-header h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.25;
    margin: 15px 0;
    transition: var(--transition-smooth);
}

/* --- Author & Metadata Area --- */
.blog-meta-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 25px;
    margin-bottom: 35px;
}
.author-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.author-info i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    background: #e0f2fe;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.author-info h4 { 
    font-size: 1rem; 
    font-weight: 700; 
    color: #1e293b;
}
.author-info p { 
    font-size: 0.85rem; 
    color: var(--text-muted); 
}
.read-time { 
    font-size: 0.9rem; 
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Premium Zoom Image Layout --- */
.blog-main-image {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}
.blog-main-image img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}
.blog-main-image:hover img {
    transform: scale(1.03);
}

/* --- Deep Rich Text & Details Elements --- */
.blog-rich-text {
    font-size: 1.15rem;
    color: #334155;
}
.blog-rich-text p { 
    margin-bottom: 24px; 
    text-align: justify;
}
.blog-rich-text .lead-text {
    font-size: 1.35rem;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.7;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-blue);
    padding-left: 15px;
}
.blog-rich-text h3 {
    font-size: 1.65rem;
    margin: 40px 0 15px 0;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.blog-rich-text ul, .blog-rich-text ol {
    margin-left: 20px;
    margin-bottom: 25px;
}
.blog-rich-text li {
    margin-bottom: 10px;
}

/* --- Dynamic Highlight Quote Box --- */
.content-highlight-box {
    background-color: #f8fafc;
    border-left: 4px solid var(--primary-blue);
    padding: 25px;
    border-radius: 4px 16px 16px 4px;
    margin: 35px 0;
    font-style: italic;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
    position: relative;
}
.content-highlight-box i {
    position: absolute;
    top: 15px;
    left: 15px;
    opacity: 0.05;
    font-size: 3rem;
}
/* ==========================================================================
   NextGen TechInsights Single Blog & Footer - CSS PART 2
   ========================================================================== */

/* --- Badge Architecture --- */
.badge-category {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-category[class*="cat-"] { background: #e0f2fe; color: #0369a1; }
.badge-category.cat-2 { background: #f3e8ff; color: #6b21a8; }
.badge-category.cat-3 { background: #ccfbf1; color: #0f766e; }
.badge-category.cat-4 { background: #ffedd5; color: #c2410c; }
.badge-category.cat-5 { background: #fee2e2; color: #b91c1c; }
.badge-category.cat-6 { background: #dcfce7; color: #15803d; }

/* --- Sidebar Styling --- */
.blog-sidebar {
    position: sticky;
    top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.glass-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}
.sidebar-widget h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
}
.trending-list { 
    list-style: none; 
}
.trending-list li { 
    margin-bottom: 20px; 
}
.trending-list a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    gap: 12px;
    transition: var(--transition-smooth);
}
.trending-list a:hover { 
    color: var(--primary-blue); 
    transform: translateX(6px);
}
.trending-list span { 
    color: #94a3b8; 
    font-weight: 700; 
}

/* --- Social Share Controls --- */
.blog-footer-share {
    margin-top: 50px;
    padding-top: 35px;
    border-top: 1px solid #e2e8f0;
}
.share-social-row {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}
.share-btn:hover {
    background: var(--primary-blue);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 118, 255, 0.25);
}

/* ==========================================================================
   Ennovatesoft Premium Tech Footer Styles
   ========================================================================== */
.main-footer {
    background-color: var(--footer-dark-bg);
    color: var(--text-white);
    position: relative;
    padding-top: 80px; 
    padding-bottom: 30px;
    overflow: hidden;
    margin-top: 60px;
}
.footer-wave {
    position: absolute;
    top: -1px; 
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.footer-wave svg {
    position: relative;
    display: block;
    width: 100%;
    height: 60px;
}
.footer-wave svg path {
    fill: var(--footer-dark-bg); 
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0 20px;
}
.footer-top-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}
.brand-info .footer-logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}
.brand-info .footer-logo span {
    background-image: var(--ennovate-gradient-blue);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent; 
    display: inline-block; 
}
.brand-info p {
    font-size: 14px;
    color: var(--text-muted-gray);
    line-height: 1.6;
}
.footer-column h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-white);
    position: relative;
}
.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--ennovate-gradient-blue);
}
.footer-column ul {
    list-style: none;
}
.footer-column ul li {
    margin-bottom: 12px;
}
.footer-column ul li a {
    font-size: 14px;
    color: var(--text-muted-gray);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}
.footer-column ul li a:hover {
    color: var(--text-white);
    transform: translateX(5px);
}
.newsletter p {
    font-size: 14px;
    color: var(--text-muted-gray);
    margin-bottom: 15px;
}
.newsletter-form {
    display: flex;
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--footer-border);
    border-radius: 30px;
    padding: 4px;
    transition: all 0.3s ease;
}
.newsletter-form:focus-within {
    border-color: var(--ennovate-theme-blue);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.25);
}
.newsletter-form input {
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: var(--text-white);
    font-size: 14px;
    width: 100%;
    outline: none;
}
.newsletter-form input::placeholder {
    color: #64748b;
}
.newsletter-form button {
    background: var(--ennovate-gradient-blue);
    color: var(--text-white);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.newsletter-form button:hover {
    transform: scale(1.08);
}
.footer-middle-contact {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--footer-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}
.contact-item {
    font-size: 14px;
    color: var(--text-muted-gray);
}
.contact-item span {
    color: var(--text-white);
    font-weight: 600;
    margin-right: 5px;
}
.contact-item a {
    color: var(--text-muted-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-item a:hover {
    color: var(--ennovate-theme-blue);
}
.footer-divider {
    border: 0;
    height: 1px;
    background: var(--footer-border);
    margin-bottom: 30px;
}
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.copyright {
    font-size: 13px;
    color: var(--text-muted-gray);
}
.footer-legal-links a {
    font-size: 13px;
    color: var(--text-muted-gray);
    text-decoration: none;
    margin-right: 25px;
    transition: color 0.3s ease;
}
.footer-legal-links a:hover {
    color: var(--text-white);
}
.footer-socials {
    display: flex;
    gap: 12px;
}
.footer-socials .social-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--footer-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted-gray);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}
.footer-socials .social-icon:hover {
    background: var(--ennovate-gradient-blue);
    color: var(--text-white);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 5px 10px rgba(0, 102, 255, 0.3);
}
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--ennovate-gradient-blue);
    color: var(--text-white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 99;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}
.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.5);
}

/* --- Entrance Animations --- */
.animate-fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FULL RESPONSIVE MEDIA QUERIES (Layout Inversion for Mobile Layout)
   ========================================================================== */
@media (max-width: 1024px) {
    .blog-grid-layout {
        display: flex;
        flex-direction: column;
        gap: 35px;
    }
    .main-content-card {
        order: 1; /* Content comes first */
        padding: 40px 30px;
    }
    .blog-sidebar {
        order: 2; /* Sidebar comes after main text */
        position: static;
        width: 100%;
    }
    .blog-footer-share {
        order: 3; /* Share Bar comes strictly after content & sidebar */
        margin-top: 30px;
    }
    .footer-top-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
    .footer-middle-contact {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 25px 15px;
    }
    .main-content-card {
        padding: 30px 20px;
        border-radius: 16px;
    }
    .blog-header h1 {
        font-size: 2rem;
    }
    .blog-meta-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .footer-wave {
        display: none; 
    }
    .main-footer {
        padding-top: 50px;
    }
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer-legal-links a {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .footer-top-grid {
grid-template-columns: 1fr;
}
.scroll-top-btn {
bottom: 20px;
right: 20px;
width: 40px;
height: 40px;
}
}