/* =====================================================
   KHANETV BLOG MASTER 2026
   PART 1
   Core Design System + Header + Hero
===================================================== */

/* ---------- Fonts ---------- */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- Root Variables ---------- */

:root {

    /* Colors */

    --primary: #2563eb;
    --primary-dark: #1d4ed8;

    --secondary: #0f172a;

    --accent: #06b6d4;

    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;

    --text: #0f172a;
    --text-soft: #475569;
    --text-muted: #64748b;

    --white: #ffffff;

    --surface: #ffffff;
    --surface-soft: #f8fafc;

    --border: #e2e8f0;

    /* Radius */

    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Shadows */

    --shadow-sm:
        0 2px 10px rgba(0,0,0,.05);

    --shadow-md:
        0 8px 30px rgba(0,0,0,.08);

    --shadow-lg:
        0 15px 50px rgba(0,0,0,.12);

    /* Transition */

    --transition:
        .3s ease;

    /* Width */

    --container:
        1320px;

}

/* ---------- Reset ---------- */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Vazirmatn',sans-serif;

    background:var(--surface-soft);

    color:var(--text);

    line-height:2;

    overflow-x:hidden;

}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

button{
    font-family:inherit;
}

input,
textarea,
select,
button{
    outline:none;
}

/* ---------- Container ---------- */

.container{

    width:min(
        var(--container),
        92%
    );

    margin:auto;

}

/* ---------- Selection ---------- */

::selection{

    background:var(--primary);

    color:white;

}

/* ---------- Scrollbar ---------- */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#f1f5f9;
}

::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:50px;

}

/* =====================================================
   Reading Progress
===================================================== */

#reading-progress{

    position:fixed;

    top:0;
    right:0;

    width:0;

    height:4px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--accent)
        );

    z-index:999999;

}

/* =====================================================
   Floating Actions
===================================================== */

.floating-actions{

    position:fixed;

    left:25px;
    bottom:25px;

    display:flex;
    flex-direction:column;

    gap:12px;

    z-index:999;

}

.floating-btn{

    width:58px;
    height:58px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    color:white;

    box-shadow:var(--shadow-md);

    transition:var(--transition);

}

.floating-btn:hover{

    transform:
        translateY(-5px);

}

.phone-btn{
    background:var(--primary);
}

.whatsapp-btn{
    background:#25d366;
}

.top-btn{

    border:none;

    cursor:pointer;

    background:var(--secondary);

}

/* =====================================================
   Top Bar
===================================================== */

.top-bar{

    background:var(--secondary);

    color:white;

    padding:10px 0;

    font-size:.92rem;

    display:flex;

    align-items:center;
    justify-content:center;

    gap:20px;

}

.top-bar a{

    color:#38bdf8;

    font-weight:700;

}

/* =====================================================
   Header
===================================================== */

.site-header{

    position:sticky;

    top:0;

    z-index:9999;

    backdrop-filter:blur(18px);

    background:
        rgba(255,255,255,.92);

    border-bottom:
        1px solid rgba(0,0,0,.05);

}

.site-header .container{

    display:flex;

    align-items:center;
    justify-content:space-between;

    min-height:85px;

}

.site-logo{

    width:170px;

    height:auto;

}

/* =====================================================
   Navigation
===================================================== */

.main-nav ul{

    display:flex;

    gap:35px;

}

.main-nav a{

    color:var(--text);

    font-weight:700;

    position:relative;

    transition:var(--transition);

}

.main-nav a:hover{

    color:var(--primary);

}

.main-nav a::after{

    content:"";

    position:absolute;

    right:0;
    bottom:-8px;

    width:0;
    height:2px;

    background:var(--primary);

    transition:var(--transition);

}

.main-nav a:hover::after{

    width:100%;

}

/* =====================================================
   Header CTA
===================================================== */

.header-call-btn{

    display:inline-flex;

    align-items:center;
    justify-content:center;

    padding:12px 24px;

    border-radius:50px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--accent)
        );

    color:white;

    font-weight:700;

    box-shadow:var(--shadow-md);

    transition:var(--transition);

}

.header-call-btn:hover{

    transform:
        translateY(-3px);

}

/* =====================================================
   Hero Section
===================================================== */

.article-hero{

    position:relative;

    overflow:hidden;

    padding:80px 0;

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #f8fafc
        );

}

.article-hero::before{

    content:"";

    position:absolute;

    width:500px;
    height:500px;

    border-radius:50%;

    background:
        rgba(37,99,235,.08);

    top:-200px;
    left:-200px;

}

.article-hero::after{

    content:"";

    position:absolute;

    width:350px;
    height:350px;

    border-radius:50%;

    background:
        rgba(6,182,212,.08);

    bottom:-120px;
    right:-120px;

}

/* =====================================================
   Breadcrumb
===================================================== */

.breadcrumbs{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    margin-bottom:35px;

    color:var(--text-muted);

    font-size:.95rem;

}

.breadcrumbs a{

    color:var(--primary);

    font-weight:600;

}

.breadcrumbs span{

    color:var(--text-muted);

}

/* =====================================================
   Hero Grid
===================================================== */

.hero-grid{

    display:grid;

    grid-template-columns:
        1fr
        520px;

    gap:60px;

    align-items:center;

}

/* =====================================================
   Category Badge
===================================================== */

.article-category{

    display:inline-flex;

    align-items:center;

    padding:8px 16px;

    border-radius:50px;

    background:
        rgba(37,99,235,.12);

    color:var(--primary);

    font-size:.9rem;

    font-weight:700;

    margin-bottom:20px;

}

/* =====================================================
   Hero Title
===================================================== */

.article-hero h1{

    font-size:
        clamp(
            2rem,
            5vw,
            3.6rem
        );

    line-height:1.4;

    font-weight:900;

    margin-bottom:20px;

}

.article-excerpt{

    font-size:1.1rem;

    color:var(--text-soft);

    max-width:700px;

}

/* =====================================================
   Meta
===================================================== */

.article-meta{

    display:flex;

    flex-wrap:wrap;

    gap:20px;

    margin-top:30px;

}

.meta-item{

    display:flex;

    align-items:center;

    gap:8px;

    color:var(--text-muted);

    font-size:.95rem;

}

/* =====================================================
   Hero Image
===================================================== */

.hero-image{

    position:relative;

}

.hero-image img{

    border-radius:32px;

    box-shadow:var(--shadow-lg);

    transition:.5s ease;

}

.hero-image:hover img{

    transform:
        scale(1.02);

}

/* =====================================================
   Glass Card
===================================================== */

.glass-card{

    background:
        rgba(255,255,255,.65);

    backdrop-filter:
        blur(18px);

    border:
        1px solid rgba(255,255,255,.3);

    border-radius:24px;

}

/* =====================================================
   Utility
===================================================== */

.text-center{
    text-align:center;
}

.mt-1{margin-top:10px;}
.mt-2{margin-top:20px;}
.mt-3{margin-top:30px;}
.mt-4{margin-top:40px;}
.mt-5{margin-top:50px;}

.mb-1{margin-bottom:10px;}
.mb-2{margin-bottom:20px;}
.mb-3{margin-bottom:30px;}
.mb-4{margin-bottom:40px;}
.mb-5{margin-bottom:50px;}



/* =====================================================
   KHANETV BLOG MASTER 2026
   PART 2
   Article Layout + Content System
===================================================== */

/* =====================================================
   Main Article Layout
===================================================== */

.article-layout{

    padding:80px 0;

}

.article-layout .container{

    display:grid;

    grid-template-columns:
        320px
        minmax(0,1fr);

    gap:40px;

    align-items:start;

}

/* =====================================================
   Sidebar
===================================================== */

.article-sidebar{

    position:relative;

}

.sticky-sidebar{

    position:sticky;

    top:110px;

}

/* =====================================================
   Sidebar Cards
===================================================== */

.toc-card,
.contact-card{

    background:var(--surface);

    border-radius:var(--radius-lg);

    padding:25px;

    box-shadow:var(--shadow-md);

    border:1px solid var(--border);

}

.contact-card{

    margin-top:20px;

}

.toc-card h3,
.contact-card h3{

    font-size:1.1rem;

    font-weight:800;

    margin-bottom:18px;

}

/* =====================================================
   Table Of Contents
===================================================== */

#table-of-contents{

    display:flex;

    flex-direction:column;

    gap:12px;

}

#table-of-contents a{

    color:var(--text-soft);

    font-size:.95rem;

    transition:var(--transition);

    padding:8px 12px;

    border-radius:10px;

}

#table-of-contents a:hover{

    background:#eff6ff;

    color:var(--primary);

}

#table-of-contents a.active{

    background:#dbeafe;

    color:var(--primary);

    font-weight:700;

}

/* =====================================================
   Sidebar CTA
===================================================== */

.contact-card p{

    color:var(--text-muted);

    margin-bottom:20px;

}

.contact-card a{

    display:flex;

    align-items:center;
    justify-content:center;

    width:100%;

    min-height:52px;

    border-radius:14px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--accent)
        );

    color:white;

    font-weight:700;

}

/* =====================================================
   Article Content Wrapper
===================================================== */

.article-content{

    background:var(--surface);

    border-radius:32px;

    padding:50px;

    box-shadow:var(--shadow-md);

    border:1px solid var(--border);

    overflow:hidden;

}

/* =====================================================
   Featured Image
===================================================== */

.featured-figure{

    margin-bottom:40px;

}

.featured-figure img{

    width:100%;

    border-radius:24px;

    box-shadow:var(--shadow-md);

}

.featured-figure figcaption{

    margin-top:12px;

    color:var(--text-muted);

    text-align:center;

    font-size:.9rem;

}

/* =====================================================
   Typography
===================================================== */

.article-content h2{

    font-size:
        clamp(
            1.8rem,
            3vw,
            2.4rem
        );

    margin-top:60px;
    margin-bottom:25px;

    font-weight:900;

    line-height:1.5;

    color:var(--secondary);

}

.article-content h3{

    font-size:
        clamp(
            1.3rem,
            2vw,
            1.7rem
        );

    margin-top:40px;
    margin-bottom:20px;

    font-weight:800;

}

.article-content h4{

    font-size:1.15rem;

    margin-top:30px;
    margin-bottom:15px;

    font-weight:700;

}

.article-content p{

    margin-bottom:22px;

    color:var(--text-soft);

    font-size:1.05rem;

    line-height:2.15;

}

.article-content strong{

    color:var(--secondary);

    font-weight:800;

}

.article-content em{

    color:var(--primary);

}

/* =====================================================
   Lists
===================================================== */

.article-content ul,
.article-content ol{

    margin:20px 0 30px;

    padding-right:25px;

}

.article-content li{

    margin-bottom:12px;

    color:var(--text-soft);

}

.article-content ul li::marker{

    color:var(--primary);

}

.article-content ol li::marker{

    color:var(--primary);

    font-weight:700;

}

/* =====================================================
   Links
===================================================== */

.article-content a{

    color:var(--primary);

    font-weight:700;

    transition:var(--transition);

}

.article-content a:hover{

    color:var(--primary-dark);

}

/* =====================================================
   Images Inside Content
===================================================== */

.article-content img{

    width:100%;

    margin:35px 0;

    border-radius:20px;

    box-shadow:var(--shadow-md);

}

/* =====================================================
   Image Caption
===================================================== */

.image-caption{

    text-align:center;

    color:var(--text-muted);

    margin-top:-15px;
    margin-bottom:30px;

    font-size:.92rem;

}

/* =====================================================
   Blockquote
===================================================== */

.article-content blockquote{

    position:relative;

    margin:35px 0;

    padding:30px;

    border-radius:20px;

    background:#eff6ff;

    border-right:5px solid var(--primary);

}

.article-content blockquote p{

    margin:0;

    font-size:1.08rem;

    font-weight:600;

}

/* =====================================================
   Tables
===================================================== */

.article-content table{

    width:100%;

    border-collapse:collapse;

    margin:40px 0;

    overflow:hidden;

    border-radius:18px;

    box-shadow:var(--shadow-sm);

}

.article-content thead{

    background:var(--primary);

    color:white;

}

.article-content th{

    padding:18px;

    text-align:center;

    font-weight:800;

}

.article-content td{

    padding:16px;

    border:1px solid var(--border);

    text-align:center;

}

.article-content tbody tr:nth-child(even){

    background:#f8fafc;

}

/* =====================================================
   Code Block
===================================================== */

.article-content pre{

    direction:ltr;

    overflow:auto;

    padding:25px;

    border-radius:18px;

    background:#0f172a;

    color:#e2e8f0;

    margin:30px 0;

}

.article-content code{

    font-family:monospace;

}

/* =====================================================
   Insight Box
===================================================== */

.insight-box{

    margin:35px 0;

    padding:28px;

    border-radius:20px;

    background:#ecfeff;

    border-right:6px solid var(--accent);

}

.insight-box h4{

    margin-bottom:10px;

    color:#0c4a6e;

}

.insight-box p{

    margin:0;

}

/* =====================================================
   Warning Box
===================================================== */

.warning-box{

    margin:35px 0;

    padding:28px;

    border-radius:20px;

    background:#fff7ed;

    border-right:6px solid var(--warning);

}

.warning-box h4{

    margin-bottom:10px;

    color:#92400e;

}

.warning-box p{

    margin:0;

}

/* =====================================================
   Success Box
===================================================== */

.success-box{

    margin:35px 0;

    padding:28px;

    border-radius:20px;

    background:#f0fdf4;

    border-right:6px solid var(--success);

}

.success-box h4{

    margin-bottom:10px;

    color:#166534;

}

.success-box p{

    margin:0;

}

/* =====================================================
   Expert Box
===================================================== */

.expert-box{

    margin:60px 0;

    padding:35px;

    border-radius:24px;

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #f8fafc
        );

    border:1px solid #bfdbfe;

}

.expert-badge{

    display:inline-flex;

    align-items:center;

    gap:10px;

    padding:10px 18px;

    border-radius:50px;

    background:#dbeafe;

    color:var(--primary);

    font-weight:800;

    margin-bottom:18px;

}

/* =====================================================
   Divider
===================================================== */

.article-divider{

    margin:50px 0;

    height:1px;

    background:linear-gradient(
        90deg,
        transparent,
        #cbd5e1,
        transparent
    );

}

/* =====================================================
   Highlight Text
===================================================== */

.highlight{

    background:
        linear-gradient(
            transparent 60%,
            rgba(251,191,36,.35) 60%
        );

    font-weight:700;

}

/* =====================================================
   Reading Time Badge
===================================================== */

.reading-time{

    display:inline-flex;

    align-items:center;

    gap:8px;

    padding:8px 14px;

    border-radius:50px;

    background:#eff6ff;

    color:var(--primary);

    font-size:.9rem;

    font-weight:700;

}



/* =====================================================
   KHANETV BLOG MASTER 2026
   PART 3
   CTA + FAQ + Related + Footer + UX Blocks
===================================================== */

/* =====================================================
   Inline CTA (Soft / Strong)
===================================================== */

.inline-cta{

    display:flex;

    align-items:center;
    justify-content:space-between;

    gap:30px;

    padding:30px;

    margin:50px 0;

    border-radius:24px;

    box-shadow:var(--shadow-md);

    color:white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--accent)
        );

    position:relative;

    overflow:hidden;

}

.inline-cta::before{

    content:"";

    position:absolute;

    width:300px;
    height:300px;

    border-radius:50%;

    background:rgba(255,255,255,.12);

    top:-120px;
    right:-120px;

}

.inline-cta h3{

    font-size:1.4rem;

    font-weight:900;

    margin-bottom:8px;

}

.inline-cta p{

    opacity:.9;

    font-size:1rem;

}

.inline-cta a{

    background:white;

    color:var(--primary);

    padding:12px 24px;

    border-radius:50px;

    font-weight:800;

    transition:.3s;

}

.inline-cta a:hover{

    transform:translateY(-3px);

}

/* Strong CTA */

.cta-strong{

    background:
        linear-gradient(
            135deg,
            #0f172a,
            #1e293b
        );

}

/* Soft CTA */

.cta-soft{

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #dbeafe
        );

    color:var(--text);

}

.cta-soft a{

    background:var(--primary);

    color:white;

}

/* =====================================================
   FAQ Section
===================================================== */

.faq-section{

    margin:70px 0;

}

.faq-section h2{

    font-size:2rem;

    font-weight:900;

    margin-bottom:30px;

}

.faq-wrapper{

    display:flex;

    flex-direction:column;

    gap:15px;

}

/* FAQ Item */

.faq-item{

    background:var(--surface);

    border:1px solid var(--border);

    border-radius:18px;

    overflow:hidden;

    box-shadow:var(--shadow-sm);

    transition:var(--transition);

}

.faq-question{

    padding:18px 22px;

    cursor:pointer;

    font-weight:800;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.faq-answer{

    max-height:0;

    overflow:hidden;

    padding:0 22px;

    color:var(--text-soft);

    transition:max-height .4s ease, padding .4s ease;

}

.faq-item.active .faq-answer{

    max-height:300px;

    padding:18px 22px;

}

/* =====================================================
   Related Posts
===================================================== */

.related-posts{

    margin:80px 0;

}

.related-posts h2{

    font-size:2rem;

    font-weight:900;

    margin-bottom:30px;

}

.related-grid{

    display:grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:25px;

}

/* Related Card */

.related-card{

    background:var(--surface);

    border-radius:24px;

    overflow:hidden;

    box-shadow:var(--shadow-md);

    transition:var(--transition);

    border:1px solid var(--border);

}

.related-card:hover{

    transform:translateY(-8px);

}

.related-card img{

    width:100%;

    height:180px;

    object-fit:cover;

}

.related-card .content{

    padding:18px;

}

.related-card h3{

    font-size:1rem;

    font-weight:800;

    margin-bottom:10px;

}

.related-card a{

    color:var(--primary);

    font-weight:700;

}

/* =====================================================
   Author Box
===================================================== */

.author-box{

    display:flex;

    align-items:center;

    gap:20px;

    padding:25px;

    border-radius:24px;

    margin:60px 0;

    background:#f8fafc;

    border:1px solid var(--border);

}

.author-avatar{

    width:70px;
    height:70px;

    border-radius:50%;

    background:var(--primary);

}

.author-info h4{

    font-weight:900;

    margin-bottom:5px;

}

.author-info p{

    color:var(--text-muted);

}

/* =====================================================
   Final CTA
===================================================== */

.final-cta{

    text-align:center;

    padding:80px 30px;

    margin:100px 0;

    border-radius:32px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--accent)
        );

    color:white;

    position:relative;

    overflow:hidden;

}

.final-cta::before{

    content:"";

    position:absolute;

    width:400px;
    height:400px;

    border-radius:50%;

    background:rgba(255,255,255,.12);

    top:-150px;
    left:-150px;

}

.final-cta h2{

    font-size:2.2rem;

    font-weight:900;

    margin-bottom:15px;

}

.final-cta p{

    opacity:.9;

    margin-bottom:30px;

}

.final-cta-buttons{

    display:flex;

    justify-content:center;

    gap:15px;

    flex-wrap:wrap;

}

.final-cta-buttons a{

    padding:14px 28px;

    border-radius:50px;

    font-weight:800;

    transition:.3s;

}

.final-cta-buttons a:first-child{

    background:white;

    color:var(--primary);

}

.final-cta-buttons a:last-child{

    background:rgba(255,255,255,.15);

    color:white;

    border:1px solid rgba(255,255,255,.3);

}

/* =====================================================
   Footer
===================================================== */

.site-footer{

    background:#0f172a;

    color:white;

    padding:80px 0;

    margin-top:120px;

}

.footer-grid{

    display:grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap:40px;

}

.site-footer h3{

    margin-bottom:15px;

    font-weight:900;

}

.site-footer a{

    color:#cbd5e1;

    transition:.3s;

}

.site-footer a:hover{

    color:white;

}

/* =====================================================
   Back To Top Button Behavior Helper
===================================================== */

#scrollTopBtn{

    opacity:0;

    pointer-events:none;

    transition:.3s;

}

#scrollTopBtn.show{

    opacity:1;

    pointer-events:auto;

}

/* =====================================================
   Utility Animations
===================================================== */

.fade-up{

    animation:fadeUp .6s ease forwards;

}

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}



/* =====================================================
   KHANETV BLOG MASTER 2026
   PART 4
   Dark Mode + Animations + Responsive Final + Polish
===================================================== */

/* =====================================================
   DARK MODE SYSTEM
===================================================== */

body.dark-mode{

    --text:#e2e8f0;
    --text-soft:#94a3b8;
    --text-muted:#64748b;

    --surface:#0f172a;
    --surface-soft:#020617;

    --border:#1e293b;

    background:#020617;
    color:#e2e8f0;

}

/* Dark Header */

body.dark-mode .site-header{

    background:rgba(2,6,23,.85);

    border-bottom:1px solid rgba(255,255,255,.05);

}

/* Dark Cards */

body.dark-mode .toc-card,
body.dark-mode .contact-card,
body.dark-mode .article-content{

    background:#0f172a;

    border:1px solid #1e293b;

}

/* Dark Hero */

body.dark-mode .article-hero{

    background:
        linear-gradient(
            135deg,
            #020617,
            #0f172a
        );

}

/* Dark CTA soft override */

body.dark-mode .cta-soft{

    background:
        linear-gradient(
            135deg,
            #1e293b,
            #0f172a
        );

    color:#e2e8f0;

}

/* =====================================================
   SMOOTH ANIMATIONS SYSTEM
===================================================== */

/* Base reveal animation */

.reveal{

    opacity:0;

    transform:translateY(20px);

    transition:all .7s ease;

}

.reveal.active{

    opacity:1;

    transform:translateY(0);

}

/* Hover lift */

.hover-lift{

    transition:.3s ease;

}

.hover-lift:hover{

    transform:translateY(-6px);

}

/* Card hover effect */

.card-hover{

    transition:.3s ease;

}

.card-hover:hover{

    transform:translateY(-8px);

    box-shadow:var(--shadow-lg);

}

/* =====================================================
   SCROLL ANIMATIONS
===================================================== */

.fade-in{

    animation:fadeIn .8s ease forwards;

}

@keyframes fadeIn{

    from{
        opacity:0;
    }

    to{
        opacity:1;
    }

}

.slide-up{

    animation:slideUp .7s ease forwards;

}

@keyframes slideUp{

    from{
        opacity:0;
        transform:translateY(30px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/* =====================================================
   BUTTON INTERACTIONS
===================================================== */

button,
a{

    transition:.25s ease;

}

button:hover,
a:hover{

    transform:translateY(-2px);

}

/* =====================================================
   TOC ACTIVE FIX (JS support)
===================================================== */

#table-of-contents a.active{

    background:#dbeafe;

    color:var(--primary);

    font-weight:800;

    border-right:3px solid var(--primary);

}

/* =====================================================
   MOBILE OPTIMIZATION
===================================================== */

@media (max-width: 1200px){

    .hero-grid{

        grid-template-columns:1fr 420px;

    }

}

@media (max-width: 992px){

    .hero-grid{

        grid-template-columns:1fr;

    }

    .article-layout .container{

        grid-template-columns:1fr;

    }

    .article-sidebar{

        display:none;

    }

    .related-grid{

        grid-template-columns:1fr 1fr;

    }

}

@media (max-width: 768px){

    .site-header .container{

        flex-wrap:wrap;

        gap:15px;

    }

    .main-nav ul{

        flex-wrap:wrap;

        gap:15px;

        justify-content:center;

    }

    .article-content{

        padding:25px;

    }

    .inline-cta{

        flex-direction:column;

        text-align:center;

    }

    .footer-grid{

        grid-template-columns:1fr;

        text-align:center;

    }

    .related-grid{

        grid-template-columns:1fr;

    }

    .final-cta{

        padding:60px 20px;

    }

}

/* =====================================================
   ULTRA SMALL DEVICES
===================================================== */

@media (max-width: 480px){

    .article-hero{

        padding:50px 0;

    }

    .article-hero h1{

        font-size:1.8rem;

    }

    .floating-actions{

        left:15px;

        bottom:15px;

    }

    .floating-btn{

        width:50px;

        height:50px;

    }

}

/* =====================================================
   LOADING EFFECTS (Skeleton UI)
===================================================== */

.skeleton{

    background:
        linear-gradient(
            90deg,
            #e2e8f0 25%,
            #f1f5f9 50%,
            #e2e8f0 75%
        );

    background-size:400% 100%;

    animation:skeleton 1.2s infinite;

    border-radius:12px;

}

@keyframes skeleton{

    0%{
        background-position:100% 0;
    }

    100%{
        background-position:0 0;
    }

}

/* =====================================================
   SCROLLBAR DARK MODE FIX
===================================================== */

body.dark-mode::-webkit-scrollbar-track{

    background:#0f172a;

}

body.dark-mode::-webkit-scrollbar-thumb{

    background:#334155;

}

/* =====================================================
   PRINT OPTIMIZATION
===================================================== */

@media print{

    .site-header,
    .floating-actions,
    .top-bar,
    .site-footer,
    .inline-cta,
    .final-cta{

        display:none !important;

    }

    body{

        background:white;

        color:black;

    }

    .article-content{

        box-shadow:none;

        border:none;

    }

}

/* =====================================================
   FINAL POLISH (Micro Interactions)
===================================================== */

.article-content h2:hover{

    color:var(--primary);

    transition:.3s;

}

.article-content blockquote{

    transition:.3s;

}

.article-content blockquote:hover{

    transform:translateX(-5px);

}

/* Smooth page load */

body{

    animation:pageLoad .4s ease;

}

@keyframes pageLoad{

    from{

        opacity:0;

    }

    to{

        opacity:1;

    }

}