/* Article page custom styles (footer navigation) */
:root{
    --accent:#0ea5a4;
    --muted:#6b7280;
    --bg:#0b1113;
    --card-bg:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.article-footer--elevated{
    margin-top:48px;
    padding:28px 18px;
    background:transparent;
}

.article-footer-grid{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    gap:18px;
    align-items:stretch;
    max-width:1100px;
    margin:0 auto;
}

.article-footer-card{
    display:flex;
    align-items:center;
    gap:14px;
    padding:14px;
    border-radius:12px;
    text-decoration:none;
    color:inherit;
    background:var(--card-bg);
    box-shadow:0 6px 18px rgba(2,6,23,0.35);
    transition:transform .18s ease, box-shadow .18s ease;
    overflow:hidden;
}
.article-footer-card:focus,.article-footer-card:hover{transform:translateY(-6px);box-shadow:0 12px 30px rgba(2,6,23,0.45);}

.article-footer-thumb{
    width:120px;
    height:80px;
    background-size:cover;
    background-position:center;
    flex:0 0 120px;
    border-radius:8px;
}

.article-footer-body{display:flex;flex-direction:column;gap:6px;min-width:0}
.article-footer-kicker{font-size:12px;color:var(--accent);display:block}
.article-footer-title{font-size:15px;line-height:1.25;color:#fff;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.article-footer-meta{font-size:12px;color:var(--muted)}

.article-footer-arrow{width:36px;height:36px;color:var(--muted);flex:0 0 36px}

.article-footer-center{justify-content:center;text-align:center;padding:20px 28px}
.article-footer-center .article-footer-title{font-size:16px}
.article-footer-desc{font-size:13px;color:var(--muted);margin:6px 0 0}

.article-footer-prev .article-footer-arrow{order:3}
.article-footer-prev .article-footer-thumb{order:1}
.article-footer-next .article-footer-thumb{order:3}
.article-footer-next .article-footer-arrow{order:1}

/* Responsive */
@media (max-width:920px){
    .article-footer-grid{grid-template-columns:1fr;}
    .article-footer-card{width:100%;}
    .article-footer-thumb{width:100%;height:160px;flex:0 0 auto;border-radius:10px}
    .article-footer-body{padding:8px 0}
    .article-footer-arrow{display:none}
}

/* RTL adjustments (if document dir=rtl) */
[dir="rtl"] .article-footer-prev .article-footer-arrow{transform:rotate(180deg)}
[dir="rtl"] .article-footer-next .article-footer-arrow{transform:rotate(0deg)}

/* Small polish */
.article-footer-card .article-footer-title strong{font-weight:600}
/* Article page — professional UI inspired by homepage */
:root{
    --bg: #0f1720; /* deep page background to match homepage dark sections */
    --surface: #0f1727;
    --panel: #071018;
    --muted: #9fb3bd;
    --text: #e6f3f2;
    --accent: #0A5940; /* brand green */
    --accent-2: #0ea5a4;
    --card: #07151a;
    --glass: rgba(255,255,255,0.03);
    --radius: 14px;
    --max-width: 1100px;
}
html,body{height:100%;}
body{font-family:'Vazirmatn','Tahoma',system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;direction:rtl;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}

.article-page{padding:40px 20px;display:flex;justify-content:center}
.article-page__shell{width:100%;max-width:var(--max-width)}

/* Topline */
.article-page__topline{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.article-page__eyebrow{font-size:12px;color:var(--muted)}
.article-page__brand-name{font-weight:700}

/* Layout */
.article-layout{display:grid;grid-template-columns:1fr 320px;gap:28px;align-items:start}

/* Hero */
.article-hero{position:relative;border-radius:var(--radius);overflow:hidden;box-shadow:0 20px 40px rgba(2,6,23,0.6)}
.article-hero__image{width:100%;height:420px;object-fit:cover;display:block;filter:contrast(.98) saturate(.95)}
.article-hero__overlay{position:absolute;inset:0;padding:24px;display:flex;flex-direction:column;justify-content:flex-end;background:linear-gradient(180deg, transparent 40%, rgba(3,7,10,0.6) 100%)}
.article-hero__overlay-label strong{background:rgba(255,255,255,0.06);padding:6px 10px;border-radius:8px;color:var(--text);font-weight:600}
.article-hero__overlay-note{margin-top:10px;color:var(--muted)}

/* Title & meta */
.article-title-block{margin-top:18px}
.article-title{font-size:2.6rem;line-height:1.05;margin:6px 0;color:var(--text);font-weight:800}
.article-short-summary{color:var(--muted);font-size:1.05rem;margin-bottom:16px}

.article-meta-grid{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}
.meta-card{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));padding:10px 14px;border-radius:12px;min-width:140px;border:1px solid rgba(255,255,255,0.03)}
.meta-card__label{font-size:12px;color:var(--muted)}
.meta-card__value{font-weight:700}

/* Article body */
.article-body{background:linear-gradient(180deg, rgba(255,255,255,0.01), transparent);padding:18px;border-radius:12px}
.article-body__section-title{font-size:1rem;margin-bottom:12px;color:var(--accent)}
.article-prose{color:var(--text);font-size:1.125rem;line-height:1.85;text-align:justify}
.article-prose > *:first-child{margin-top:0}
.article-prose > *:last-child{margin-bottom:0}
.article-prose p{margin:14px 0;color:var(--text);font-weight:400}
.article-prose h2{font-size:1.6rem;margin:26px 0 12px;color:var(--text)}
.article-prose h3{font-size:1.25rem;margin:18px 0;color:var(--text)}
.article-prose img{max-width:100%;border-radius:10px;display:block;margin:14px 0}
.article-prose pre{background:#091018;color:#bfeef0;padding:14px;border-radius:10px;overflow:auto;border:1px solid rgba(14,40,40,0.18)}
.article-prose blockquote{border-right:4px solid rgba(14,90,64,0.18);padding:12px 16px;background:linear-gradient(90deg, rgba(10,89,64,0.02), transparent);border-radius:10px;color:var(--muted);margin:18px 0}

/* Tags */
.article-tag-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.tag-chip,.category-chip,.status-chip{background:transparent;border:1px solid rgba(255,255,255,0.04);padding:6px 12px;border-radius:999px;font-size:13px;color:var(--muted)}

/* Sidebar */
.article-sidebar .sidebar-card{position:sticky;top:24px;background:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.02));padding:16px;border-radius:12px;border:1px solid rgba(255,255,255,0.03)}
.sidebar-card__eyebrow{font-size:12px;color:var(--muted);margin-bottom:8px}
.sidebar-card__title{font-size:1rem;margin:0 0 12px}
.sidebar-list{list-style:none;padding:0;margin:0}
.sidebar-list li{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px dashed rgba(255,255,255,0.03)}

/* Table of contents */
.article-toc{padding:6px}
.article-toc-list{list-style:none;padding:0;margin:0}
.article-toc-item{padding:8px 0}
.article-toc-link{color:var(--muted);text-decoration:none;border-right:3px solid transparent;padding:6px 10px;display:block}
.article-toc-link:hover{color:var(--accent-2);border-right-color:var(--accent-2)}

/* Related */
.related-articles__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:12px}
.article-card{background:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.02));border-radius:12px;overflow:hidden;border:1px solid rgba(255,255,255,0.03);transition:transform .18s ease,box-shadow .18s ease}
.article-card:hover{transform:translateY(-6px);box-shadow:0 18px 48px rgba(2,6,23,0.6)}
.article-card__image-wrap{height:140px;overflow:hidden}
.article-card__image{width:100%;height:100%;object-fit:cover}
.article-category-badge{position:absolute;left:12px;top:12px;background:var(--accent);color:#fff;padding:6px 8px;border-radius:8px;font-size:12px}
.article-time-badge{position:absolute;left:12px;bottom:12px;background:rgba(0,0,0,0.5);color:#fff;padding:6px 8px;border-radius:8px;font-size:12px}
.article-card__content{padding:14px}
.article-card__title{font-size:1rem;margin:0 0 8px}
.article-card__description{color:var(--muted);font-size:0.95rem}

/* Navigation cards */
.article-nav{display:flex;gap:12px;justify-content:space-between;margin:18px 0}
.article-nav-card{flex:1;padding:12px;border-radius:10px;background:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.02));text-decoration:none;color:inherit;border:1px solid rgba(255,255,255,0.03)}

/* CTA */
.premium-cta{margin-top:28px;background:linear-gradient(90deg,var(--accent), var(--accent-2));color:#fff;border-radius:12px;padding:18px}
.premium-cta__actions a{margin-left:8px}

/* Utilities */
.group{display:block}

/* Responsive */
@media (max-width:1100px){
    .article-layout{grid-template-columns:1fr}
    .related-articles__grid{grid-template-columns:repeat(2,1fr)}
    .article-hero__image{height:300px}
}
@media (max-width:520px){
    .article-title{font-size:1.6rem}
    .related-articles__grid{grid-template-columns:1fr}
    .article-hero__image{height:200px}
    .article-page{padding:22px 12px}
}

/* Conclusion / Summary section styles */

.conclusion-section{margin:28px 0 18px;padding:20px;border-radius:16px;background:linear-gradient(135deg, rgba(6,15,13,0.6), rgba(3,8,12,0.45));box-shadow:0 18px 40px rgba(2,6,23,0.6);border:1px solid rgba(255,255,255,0.03)}
.conclusion--elevated{backdrop-filter:blur(6px)}
.conclusion-grid{display:grid;grid-template-columns:1fr 320px;gap:24px;align-items:start;max-width:var(--max-width)}
.conclusion-left{padding:6px}
.article-section-badge{display:inline-block;background:rgba(255,255,255,0.03);padding:6px 10px;border-radius:10px;color:var(--muted);font-weight:700}
.conclusion-heading{margin:10px 0 8px;font-size:1.5rem;color:var(--text);line-height:1.05}
.conclusion-lead{color:var(--muted);margin-bottom:14px;font-size:1rem}

.takeaways-list{list-style:none;padding:0;margin:12px 0;display:grid;gap:12px}
.takeaway{display:flex;gap:12px;align-items:flex-start;background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));padding:12px;border-radius:12px;border:1px solid rgba(255,255,255,0.02)}
.takeaway-num{flex:0 0 44px;height:44px;border-radius:10px;background:linear-gradient(180deg,var(--accent),var(--accent-2));color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1rem}
.takeaway-text{color:var(--text);margin:0;font-size:0.98rem;line-height:1.5}

.conclusion-actions{margin-top:14px;display:flex;gap:12px}
.btn{display:inline-block;padding:10px 14px;border-radius:10px;text-decoration:none;font-weight:700}
.btn-primary{background:var(--accent);color:#fff}
.btn-ghost{background:transparent;border:1px solid rgba(255,255,255,0.06);color:var(--text)}

.conclusion-right{display:flex;flex-direction:column;gap:14px}
.author-card.compact{display:flex;gap:12px;align-items:center;padding:12px;border-radius:12px;background:linear-gradient(180deg, rgba(255,255,255,0.01), transparent);border:1px solid rgba(255,255,255,0.02)}
.author-avatar{width:64px;height:64px;border-radius:12px;object-fit:cover;border:2px solid rgba(255,255,255,0.03)}
.author-meta{display:flex;flex-direction:column}
.author-name{font-size:1rem;color:var(--text)}
.author-role{font-size:0.85rem;color:var(--muted);margin:4px 0}
.author-link{color:var(--accent-2);text-decoration:none;font-weight:700}

.share-box.horizontal{padding:12px;border-radius:12px;border:1px solid rgba(255,255,255,0.02);background:linear-gradient(180deg, rgba(255,255,255,0.005), transparent)}
.share-title{display:block;color:var(--muted);margin-bottom:8px}
.share-row{display:flex;gap:8px;margin-bottom:8px}
.share-btn{padding:8px 10px;border-radius:8px;background:rgba(255,255,255,0.02);color:var(--text);text-decoration:none;font-weight:600;font-size:13px}
.share-copy{display:block;padding:8px 10px;border-radius:8px;background:transparent;border:1px dashed rgba(255,255,255,0.04);color:var(--muted);font-size:13px}

/* small polish for takeaway numbers and interactions */
.takeaway:hover{transform:translateY(-4px);box-shadow:0 12px 30px rgba(2,6,23,0.45)}
.takeaway{transition:transform .18s ease,box-shadow .18s ease}
.share-btn:hover{transform:translateY(-3px);opacity:0.98}
.btn-primary{box-shadow:0 10px 30px rgba(10,89,64,0.16)}

@media (max-width:1100px){
    .conclusion-grid{grid-template-columns:1fr}
    .conclusion-right{order:2}
}


