/* Blog ListoolAI — premium v33 */

.blog-page{
    background:
        radial-gradient(900px 400px at 70% -10%, rgba(59,130,246,.18), transparent 60%),
        radial-gradient(600px 300px at 10% 10%, rgba(45,212,191,.12), transparent 60%),
        #0b0f19;
}

.blog-shell{
    width:min(1440px, calc(100% - 48px));
    margin:0 auto;
    padding:72px 0 96px;
    color:#fff;
}

.blog-hero{
    display:grid;
    grid-template-columns:minmax(0,1fr) 380px;
    gap:28px;
    align-items:stretch;
    margin-bottom:42px;
}

.blog-hero-content,
.blog-hero-panel,
.blog-featured,
.blog-card,
.blog-side-card,
.blog-editorial,
.blog-empty{
    border:1px solid rgba(148,163,184,.18);
    background:linear-gradient(180deg, rgba(15,23,42,.86), rgba(15,23,42,.62));
    box-shadow:0 24px 80px rgba(0,0,0,.28);
    border-radius:30px;
}

.blog-hero-content{
    padding:48px;
    position:relative;
    overflow:hidden;
}

.blog-hero-content::after{
    content:"";
    position:absolute;
    inset:-120px -160px auto auto;
    width:380px;
    height:380px;
    border-radius:999px;
    background:rgba(99,102,241,.18);
    filter:blur(12px);
    pointer-events:none;
}

.blog-eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-bottom:18px;
    padding:10px 14px;
    border-radius:999px;
    color:#bfdbfe;
    background:rgba(59,130,246,.12);
    border:1px solid rgba(59,130,246,.28);
    font-weight:900;
}

.blog-hero h1{
    margin:0;
    max-width:900px;
    font-size:clamp(42px, 5vw, 86px);
    line-height:.95;
    letter-spacing:-.07em;
}

.blog-hero p{
    max-width:780px;
    margin:22px 0 0;
    color:#b7c6dd;
    font-size:20px;
    line-height:1.7;
}

.blog-search{
    margin-top:28px;
    display:flex;
    gap:12px;
    max-width:760px;
}

.blog-search input{
    flex:1;
    min-height:58px;
    border-radius:18px;
    padding:0 18px;
    border:1px solid rgba(148,163,184,.18);
    background:rgba(2,6,23,.72);
    color:#fff;
    font-weight:800;
}

.blog-search button,
.blog-hero-actions a,
.blog-read-more,
.blog-newsletter button,
.blog-cta-card a{
    border:0;
    min-height:56px;
    padding:0 22px;
    border-radius:18px;
    color:#fff;
    text-decoration:none;
    font-weight:950;
    background:linear-gradient(135deg,#6366f1,#38bdf8);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

.blog-hero-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:22px;
}

.blog-hero-actions a:nth-child(2),
.blog-hero-actions a:nth-child(3){
    background:rgba(15,23,42,.84);
    border:1px solid rgba(148,163,184,.18);
}

.blog-hero-panel{
    padding:34px;
}

.blog-hero-panel strong{
    display:block;
    font-size:24px;
    margin-bottom:18px;
}

.blog-hero-panel ul{
    margin:0;
    padding:0;
    list-style:none;
    display:grid;
    gap:14px;
    color:#cbd5e1;
}

.blog-hero-panel li{
    padding:14px;
    border-radius:18px;
    background:rgba(2,6,23,.42);
    border:1px solid rgba(148,163,184,.12);
}

.blog-featured-wrap{
    margin-bottom:42px;
}

.blog-featured{
    display:grid;
    grid-template-columns:44% minmax(0,1fr);
    overflow:hidden;
}

.blog-featured-media,
.blog-card-media{
    display:block;
    min-height:320px;
    background:linear-gradient(135deg,rgba(59,130,246,.28),rgba(168,85,247,.24));
    overflow:hidden;
}

.blog-featured-media img,
.blog-card-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .35s ease;
}

.blog-featured:hover img,
.blog-card:hover img{
    transform:scale(1.04);
}

.blog-media-fallback{
    height:100%;
    min-height:260px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:46px;
    font-weight:950;
    color:#dbeafe;
    background:
        radial-gradient(circle at 30% 30%, rgba(56,189,248,.34), transparent 35%),
        radial-gradient(circle at 75% 20%, rgba(99,102,241,.32), transparent 40%),
        #111827;
}

.blog-featured-content{
    padding:38px;
}

.blog-badge-row{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    align-items:center;
    margin-bottom:12px;
}

.blog-badge,
.blog-cat-pill{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:8px 11px;
    border-radius:999px;
    font-size:13px;
    font-weight:900;
    color:#dbeafe;
    background:rgba(59,130,246,.14);
    border:1px solid rgba(59,130,246,.24);
    text-decoration:none;
}

.blog-badge-sponsored{
    color:#fef3c7;
    background:rgba(250,204,21,.12);
    border-color:rgba(250,204,21,.28);
}

.blog-badge-trending{
    color:#fed7aa;
    background:rgba(249,115,22,.12);
    border-color:rgba(249,115,22,.28);
}

.blog-badge-featured{
    color:#bbf7d0;
    background:rgba(34,197,94,.12);
    border-color:rgba(34,197,94,.28);
}

.blog-card-cats{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:12px;
}

.blog-cat-pill{
    background:color-mix(in srgb, var(--cat-color, #3b82f6) 20%, transparent);
    border-color:color-mix(in srgb, var(--cat-color, #3b82f6) 40%, transparent);
}

.blog-featured h2,
.blog-card h3,
.blog-section-head h2,
.blog-editorial h2{
    margin:0;
    line-height:1.05;
    letter-spacing:-.04em;
}

.blog-featured h2{
    font-size:42px;
}

.blog-featured h2 a,
.blog-card h3 a{
    color:#fff;
    text-decoration:none;
}

.blog-featured p,
.blog-card p{
    color:#b7c6dd;
    line-height:1.7;
}

.blog-meta{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    color:#93a4bd;
    font-size:14px;
    margin-top:16px;
}

.blog-read-more{
    margin-top:24px;
}

.blog-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 360px;
    gap:30px;
    align-items:start;
}

.blog-section-head{
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:18px;
    margin-bottom:22px;
}

.blog-section-head h2{
    font-size:40px;
}

.blog-section-head a{
    color:#bfdbfe;
    font-weight:900;
    text-decoration:none;
}

.blog-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:22px;
}

.blog-card{
    overflow:hidden;
    transition:transform .25s ease, border-color .25s ease;
}

.blog-card:hover{
    transform:translateY(-4px);
    border-color:rgba(96,165,250,.35);
}

.blog-card-media{
    min-height:220px;
}

.blog-card-body{
    padding:24px;
}

.blog-card h3{
    font-size:26px;
}

.blog-empty{
    padding:38px;
    color:#cbd5e1;
}

.blog-sidebar{
    display:grid;
    gap:20px;
    position:sticky;
    top:116px;
}

.blog-side-card{
    padding:24px;
}

.blog-side-card h3{
    margin:0 0 16px;
    font-size:24px;
    letter-spacing:-.03em;
}

.blog-side-card p{
    color:#b7c6dd;
    line-height:1.6;
}

.blog-trending-list,
.blog-category-list{
    display:grid;
    gap:10px;
}

.blog-trending-list a,
.blog-category-list a{
    display:grid;
    gap:4px;
    padding:13px;
    color:#fff;
    text-decoration:none;
    border-radius:16px;
    background:rgba(2,6,23,.42);
    border:1px solid rgba(148,163,184,.12);
}

.blog-trending-list span,
.blog-category-list span{
    color:#93a4bd;
    font-size:13px;
}

.blog-category-list a{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.blog-newsletter form{
    display:grid;
    gap:10px;
}

.blog-newsletter input{
    min-height:52px;
    border-radius:16px;
    padding:0 14px;
    border:1px solid rgba(148,163,184,.18);
    background:rgba(2,6,23,.62);
    color:#fff;
}

.blog-pagination{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:34px;
}

.blog-pagination a{
    min-width:44px;
    min-height:44px;
    padding:0 14px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#dbeafe;
    text-decoration:none;
    border-radius:14px;
    background:rgba(15,23,42,.74);
    border:1px solid rgba(148,163,184,.16);
    font-weight:900;
}

.blog-pagination a.active{
    color:#fff;
    background:linear-gradient(135deg,#6366f1,#38bdf8);
}

.blog-editorial{
    margin-top:42px;
    padding:34px;
    display:flex;
    justify-content:space-between;
    gap:28px;
    align-items:center;
}

.blog-editorial h2{
    font-size:36px;
    max-width:720px;
}

.blog-editorial ul{
    margin:0;
    padding:0;
    list-style:none;
    display:grid;
    gap:10px;
    color:#dbeafe;
    font-weight:800;
}

@media(max-width:1100px){
    .blog-hero,
    .blog-featured,
    .blog-layout,
    .blog-editorial{
        grid-template-columns:1fr;
    }

    .blog-sidebar{
        position:static;
    }
}

@media(max-width:760px){
    .blog-shell{
        width:min(100% - 28px, 1440px);
        padding:42px 0 72px;
    }

    .blog-hero-content,
    .blog-hero-panel,
    .blog-featured-content,
    .blog-side-card,
    .blog-editorial{
        padding:24px;
    }

    .blog-search{
        grid-template-columns:1fr;
        display:grid;
    }

    .blog-grid{
        grid-template-columns:1fr;
    }

    .blog-featured h2{
        font-size:32px;
    }

    .blog-card h3{
        font-size:24px;
    }
}

/* =========================
   Article premium v35
========================= */

/* Article page */
.article-breadcrumb{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:center;
    margin-bottom:24px;
    color:#9fb2cf;
    font-weight:800;
}

.article-breadcrumb a{
    color:#bfdbfe;
    text-decoration:none;
}

.article-hero{
    display:grid;
    grid-template-columns:minmax(0,1fr) 420px;
    gap:28px;
    align-items:stretch;
    margin-bottom:34px;
}

.article-hero-content,
.article-hero-media,
.article-card,
.article-side > *,
.article-cta{
    border:1px solid rgba(148,163,184,.18);
    background:linear-gradient(180deg, rgba(15,23,42,.88), rgba(15,23,42,.62));
    box-shadow:0 24px 80px rgba(0,0,0,.28);
    border-radius:30px;
}

.article-hero-content{
    padding:48px;
    position:relative;
    overflow:hidden;
}

.article-hero-content::after{
    content:"";
    position:absolute;
    inset:-150px -180px auto auto;
    width:420px;
    height:420px;
    border-radius:999px;
    background:rgba(99,102,241,.18);
    filter:blur(12px);
    pointer-events:none;
}

.article-hero h1{
    margin:0;
    max-width:980px;
    font-size:clamp(42px, 5vw, 82px);
    line-height:.96;
    letter-spacing:-.07em;
    position:relative;
}

.article-hero p{
    max-width:820px;
    margin:22px 0 0;
    color:#b7c6dd;
    font-size:20px;
    line-height:1.7;
    position:relative;
}

.article-meta{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin-top:22px;
    color:#93a4bd;
    font-size:14px;
    font-weight:800;
}

.article-hero-media{
    overflow:hidden;
    min-height:360px;
}

.article-hero-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.article-layout{
    display:grid;
    grid-template-columns:300px minmax(0,1fr);
    gap:30px;
    align-items:start;
}

.article-side{
    display:grid;
    gap:20px;
    position:sticky;
    top:116px;
}

.article-toc,
.article-author-card,
.article-share-card{
    padding:22px;
}

.article-toc strong,
.article-author-card strong,
.article-share-card strong{
    display:block;
    margin-bottom:14px;
    font-size:18px;
}

.article-toc ul{
    margin:0;
    padding:0;
    list-style:none;
    display:grid;
    gap:10px;
}

.article-toc li.is-h3{
    margin-left:14px;
}

.article-toc a{
    color:#cbd5e1;
    text-decoration:none;
    line-height:1.45;
}

.article-toc a:hover{
    color:#fff;
}

.article-author-card p{
    color:#b7c6dd;
    line-height:1.6;
}

.article-author-card a,
.article-share-card a{
    color:#bfdbfe;
    font-weight:900;
    text-decoration:none;
}

.article-share-card div{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.article-card{
    padding:42px;
}

.article-content{
    color:#e5edf8;
    font-size:19px;
    line-height:1.85;
}

.article-content > *:first-child{
    margin-top:0;
}

.article-content h2,
.article-content h3{
    color:#fff;
    line-height:1.1;
    letter-spacing:-.04em;
    scroll-margin-top:120px;
}

.article-content h2{
    font-size:38px;
    margin-top:52px;
}

.article-content h3{
    font-size:28px;
    margin-top:36px;
}

.article-content p{
    margin:20px 0;
}

.article-content a{
    color:#93c5fd;
    text-decoration-thickness:2px;
    text-underline-offset:4px;
}

.article-content ul,
.article-content ol{
    padding-left:24px;
}

.article-content li{
    margin:10px 0;
}

.article-content blockquote{
    margin:34px 0;
    padding:24px;
    border-left:4px solid #60a5fa;
    border-radius:18px;
    background:rgba(59,130,246,.10);
    color:#dbeafe;
}

.article-content img{
    max-width:100%;
    border-radius:24px;
    border:1px solid rgba(148,163,184,.16);
    box-shadow:0 22px 70px rgba(0,0,0,.26);
}

.article-content table{
    width:100%;
    border-collapse:collapse;
    overflow:hidden;
    border-radius:18px;
    margin:28px 0;
    display:block;
}

.article-content th,
.article-content td{
    padding:14px;
    border:1px solid rgba(148,163,184,.18);
}

.article-content th{
    color:#fff;
    background:rgba(59,130,246,.16);
}

.article-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:34px;
}

.article-like-btn,
.article-action-link,
.article-cta a{
    min-height:52px;
    border:0;
    padding:0 20px;
    border-radius:16px;
    color:#fff;
    text-decoration:none;
    font-weight:950;
    background:linear-gradient(135deg,#6366f1,#38bdf8);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

.article-action-link{
    background:rgba(15,23,42,.88);
    border:1px solid rgba(148,163,184,.18);
}

.article-like-btn:disabled{
    opacity:.65;
    cursor:not-allowed;
}

.internal-links{
    margin-top:38px;
    padding:24px;
    border-radius:24px;
    background:rgba(2,6,23,.42);
    border:1px solid rgba(148,163,184,.14);
}

.internal-links h2{
    margin:0 0 16px;
    font-size:24px;
}

.internal-links ul{
    margin:0;
    padding-left:20px;
    display:grid;
    gap:10px;
}

.internal-links a{
    color:#bfdbfe;
    font-weight:800;
    text-underline-offset:4px;
}

.article-cta{
    margin-top:38px;
    padding:30px;
    display:flex;
    justify-content:space-between;
    gap:22px;
    align-items:center;
}

.article-cta h2{
    margin:0;
    font-size:34px;
    line-height:1.08;
    letter-spacing:-.04em;
}

.article-cta p{
    color:#b7c6dd;
    line-height:1.6;
}

.article-cta > div:last-child{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.article-cta a:nth-child(2){
    background:rgba(15,23,42,.88);
    border:1px solid rgba(148,163,184,.18);
}

.related-articles{
    margin-top:56px;
}

@media(max-width:1180px){
    .article-hero,
    .article-layout{
        grid-template-columns:1fr;
    }

    .article-side{
        position:static;
        order:2;
    }

    .article-layout{
        display:flex;
        flex-direction:column;
    }

    .article-card{
        order:1;
    }

    .blog-grid{
        grid-template-columns:repeat(2, minmax(0,1fr));
    }
}

@media(max-width:760px){
    .blog-shell,
    .article-shell{
        width:min(100% - 28px, 1440px);
        padding:42px 0 72px;
    }

    .article-hero-content,
    .article-card,
    .article-toc,
    .article-author-card,
    .article-share-card,
    .article-cta{
        padding:24px;
    }

    .article-hero{
        gap:18px;
    }

    .article-hero-media{
        min-height:240px;
    }

    .article-content{
        font-size:17px;
    }

    .article-content h2{
        font-size:30px;
    }

    .article-content h3{
        font-size:24px;
    }

    .blog-grid{
        grid-template-columns:1fr;
    }

    .article-cta{
        display:grid;
    }
}
