@import url('../../fonts/vazir.css');

:root {
    --primary: #008b79;
    --primary-dark: #006f62;
    --text: #333;
    --muted: #777;
    --bg: #f6f6f6;
    --surface: #fff;
    --border: #e5e5e5;
    --radius: 10px;
    --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; background:var(--bg); color:var(--text); font-family:Vazir, Tahoma, sans-serif; line-height:1.8; }
a { color:inherit; text-decoration:none; }
img { max-width:100%; display:block; }
.container { width:min(var(--container), calc(100% - 30px)); margin-inline:auto; }

.site-header { min-height:92px; background:var(--surface); margin-top:18px; border:1px solid var(--border); border-radius:var(--radius); display:grid; grid-template-columns:1fr auto; align-items:center; gap:25px; padding:16px 22px; }
.header-brand { display:flex; align-items:center; justify-content:flex-start; gap:22px; min-width:0; }
.logo { font-size:25px; font-weight:800; color:var(--primary); text-align:center; flex:0 0 auto; }
.header-icon-links { display:flex; align-items:center; gap:10px; }
.header-icon-link { min-width:70px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; padding:3px 7px; border-radius:9px; color:var(--text); transition:.2s; }
.header-icon-link:hover { background:#eef8f6; color:var(--primary); }
.header-icon-symbol { width:34px; height:34px; display:flex; align-items:center; justify-content:center; font-size:25px; line-height:1; }
.header-icon-text { font-size:12px; white-space:nowrap; }
.settings-card { background:#fafafa; border:1px solid var(--border); border-radius:10px; padding:14px; }
.settings-card h4 { margin:0 0 10px; color:var(--primary); }
.checkbox-label { display:flex; align-items:center; gap:8px; }
.checkbox-label input { width:auto; }

.logo img { max-height:65px; width:auto; margin:auto; }
.header-search form { display:flex; gap:7px; }
.header-search input { width:100%; min-width:170px; padding:10px 12px; border:1px solid var(--border); border-radius:7px; font-family:inherit; }
.header-search button,.btn { border:0; background:var(--primary); color:#fff; padding:10px 16px; border-radius:7px; font-family:inherit; cursor:pointer; }
.header-menu { position:relative; }
.category-menu-list { display:flex; flex-wrap:wrap; gap:4px; list-style:none; padding:0; margin:0; }
.category-menu-list li { position:relative; }
.category-menu-list > li > a { display:block; padding:8px 10px; border-radius:7px; }
.category-menu-list > li:hover > a { background:#eef8f6; color:var(--primary); }
.category-dropdown { display:none; position:absolute; top:100%; right:0; min-width:210px; background:#fff; border:1px solid var(--border); border-radius:8px; padding:7px; box-shadow:0 12px 35px rgba(0,0,0,.12); z-index:20; }
.category-menu-list li:hover > .category-dropdown { display:block; }
.category-dropdown .category-menu-list { display:block; }
.category-dropdown li a { display:block; padding:7px 9px; }
.category-dropdown li:hover > a { background:#f1f7f6; color:var(--primary); }
.category-dropdown .category-dropdown { right:100%; top:0; }
.mobile-menu-toggle { display:none; }
.pages-nav { position:relative; z-index:1000; display:flex; gap:8px; padding:12px 0; overflow:visible; white-space:nowrap; }
.pages-nav a { padding:4px 10px; }
.pages-nav a:hover { color:var(--primary); }

.slider { position:relative; z-index:1; height:410px; overflow:hidden; border-radius:var(--radius); background:#ddd; margin:10px 0 30px; }
.slide { position:absolute; inset:0; opacity:0; transition:opacity .5s ease; pointer-events:none; }
.slide.active { opacity:1; pointer-events:auto; }
.slide img { width:100%; height:100%; object-fit:cover; }
.slide::after { content:""; position:absolute; inset:45% 0 0; background:linear-gradient(transparent,rgba(0,0,0,.75)); }
.slide-caption { position:absolute; z-index:2; bottom:38px; right:45px; left:45px; color:#fff; }
.slide-caption h2 { margin:0 0 5px; font-size:28px; }
.slide-caption p { margin:0; color:#eee; }
.slider-prev,.slider-next { position:absolute; z-index:4; top:50%; transform:translateY(-50%); width:42px; height:42px; border:0; border-radius:50%; background:rgba(0,0,0,.45); color:#fff; font-size:30px; cursor:pointer; }
.slider-prev { right:15px; }.slider-next { left:15px; }
.slider-dots { position:absolute; z-index:4; bottom:13px; left:50%; transform:translateX(-50%); display:flex; gap:6px; }
.slider-dots button { width:10px; height:10px; padding:0; border:0; border-radius:50%; background:#ddd; cursor:pointer; }.slider-dots button.active { background:var(--primary); }

.home-sections { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.content-column { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:16px; }
.section-heading { display:flex; justify-content:space-between; align-items:center; border-bottom:2px solid var(--primary); margin-bottom:14px; }.section-heading h2 { font-size:20px; margin:0 0 7px; }.section-heading a { color:var(--primary); font-size:13px; }
.post-card { background:#fff; border:1px solid var(--border); border-radius:8px; overflow:hidden; margin-bottom:14px; transition:.2s; }.post-card:hover { transform:translateY(-2px); box-shadow:0 7px 22px rgba(0,0,0,.07); }.post-card img { width:100%; height:190px; object-fit:cover; }.content-column .post-card img { height:145px; }.post-card h2,.post-card h3 { margin:10px 13px 4px; font-size:18px; }.post-card p { margin:0 13px 13px; color:var(--muted); font-size:14px; }
.post-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }.page-wrap { padding:15px 0 45px; }.breadcrumbs { color:var(--muted); font-size:14px; margin-bottom:14px; }.breadcrumbs a { color:var(--primary); }
.single-post { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:28px; }.single-post h1 { margin-top:0; font-size:32px; }.post-meta { color:var(--muted); font-size:13px; margin-bottom:20px; }.featured { width:100%; max-height:600px; object-fit:cover; border-radius:8px; margin-bottom:25px; }.post-content { font-size:17px; text-align:justify; } .post-content a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; } .post-content a:hover { text-decoration-thickness: 2px; } .post-content p, .post-content li { text-align:justify; } .post-excerpt, .post-card p, .slide-caption p { text-align:justify; }.post-content img { margin:18px auto; }.comments { margin-top:25px; background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:24px; }.comment { border-bottom:1px solid var(--border); padding:14px 0; }.comment small { color:var(--muted); margin-right:10px; }.form-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }.comments input,.comments textarea { width:100%; padding:11px; border:1px solid var(--border); border-radius:7px; font-family:inherit; margin-bottom:10px; }
.notice { padding:14px 16px; border-radius:8px; background:#f1f1f1; margin:12px 0; }.notice.success { background:#e9f8f2; color:#126f51; }.notice.error { background:#fdecec; color:#a32929; }
.site-footer { background:#1e2927; color:#ddd; margin-top:45px; padding-top:35px; }.footer-grid { display:grid; grid-template-columns:1fr 1fr 1fr; gap:25px; min-height:190px; }.footer-grid h3 { color:#fff; }.footer-grid a { display:block; color:#ccc; margin:4px 0; }.footer-logo { display:flex; align-items:center; justify-content:center; font-size:25px; color:#fff; }.footer-logo img { max-height:75px; width:auto; }.footer-copy { border-top:1px solid rgba(255,255,255,.1); text-align:center; padding:14px; margin-top:20px; font-size:13px; }

@media (max-width:900px) { .site-header { grid-template-columns:1fr; text-align:center; }.header-brand { justify-content:center; flex-wrap:wrap; }.header-search form { justify-content:center; }.desktop-category-nav { display:none; }.mobile-menu-toggle { display:inline-block; color:var(--primary); }.home-sections { grid-template-columns:1fr; }.post-grid { grid-template-columns:repeat(2,1fr); }.slider { height:350px; } }
@media (max-width:600px) { .container { width:min(var(--container),calc(100% - 20px)); }.site-header { margin-top:8px; padding:12px; }.header-search input { min-width:0; }.slider { height:270px; }.slide-caption { right:20px; left:20px; bottom:32px; }.slide-caption h2 { font-size:21px; }.slide-caption p { font-size:13px; }.post-grid { grid-template-columns:1fr; }.form-grid { grid-template-columns:1fr; }.single-post { padding:18px; }.single-post h1 { font-size:25px; }.post-content { font-size:16px; }.footer-grid { grid-template-columns:1fr; text-align:center; }.footer-logo { order:-1; min-height:90px; } }

/* کارت‌های صفحه اصلی: تصویر مربع و عنوان/خلاصه روی تصویر */
.home-sections .post-card {
    position: relative;
    aspect-ratio: 1 / 1;
    margin-bottom: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #1d2725;
}

.home-sections .post-card a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    color: #fff;
}

.home-sections .post-card img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform .3s ease;
}

.home-sections .post-card a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .84), rgba(0, 0, 0, .05) 72%);
}

.home-sections .post-card h3,
.home-sections .post-card p {
    position: absolute;
    right: 16px;
    left: 16px;
    z-index: 2;
    margin: 0;
}

.home-sections .post-card h3 {
    bottom: 58px;
    font-size: 18px;
    line-height: 1.7;
    color: #fff;
}

.home-sections .post-card p {
    bottom: 16px;
    color: rgba(255,255,255,.86);
    font-size: 13px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-sections .post-card:hover img {
    transform: scale(1.04);
}

.home-sections .content-column {
    padding: 14px;
}

.home-sections .post-card {
    margin-bottom: 18px;
}

.top-category-menu {
    position: relative;
}
.top-category-menu .category-toggle {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 4px 10px;
}
.top-category-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    padding: 8px;
    display: none;
    z-index: 100;
}
.top-category-menu:hover .top-category-dropdown,
.top-category-menu:focus-within .top-category-dropdown {
    display: block;
}
.top-category-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 0;
    left: 0;
    height: 8px;
}
.top-category-dropdown .category-menu-list {
    display: block;
}
.top-category-dropdown .category-menu-list li {
    position: relative;
}
.top-category-dropdown .category-menu-list > li > a {
    display: block;
    padding: 8px 10px;
}
.top-category-dropdown .category-dropdown {
    position: absolute;
    right: 100%;
    top: 0;
    min-width: 210px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    padding: 8px;
    display: none;
}
.top-category-dropdown li:hover > .category-dropdown {
    display: block;
}


@media (max-width: 900px) {
    .home-sections .post-card {
        aspect-ratio: 1 / 1;
    }
}

.comment {
    position: relative;
    margin: 0 0 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    margin-right: calc(var(--comment-level, 0) * 28px);
}

.comment-reply {
    border-right: 3px solid var(--primary);
    background: #fafcfb;
}

.comment-author {
    display:flex;
    align-items:center;
    gap:10px;
}

.comment-author small {
    color:var(--muted);
}

.comment-reply-button {
    border:0;
    background:transparent;
    color:var(--primary);
    cursor:pointer;
    font-family:inherit;
    padding:0;
}

@media (max-width:600px) {
    .comment {
        margin-right: calc(var(--comment-level, 0) * 12px);
    }
}

.logged-comment-user {
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    padding:12px 15px;
    margin-bottom:12px;
    border:1px solid #dce8e5;
    border-radius:8px;
    background:#f3f9f7;
}
.logged-comment-user span {
    color:#66736f;
    font-size:13px;
}

.post-tags { display:flex; flex-wrap:wrap; gap:7px; margin:0 0 18px; }
.post-tags a { display:inline-block; padding:4px 10px; border-radius:999px; background:#eef8f6; color:var(--primary); font-size:12px; border:1px solid #d8eee9; }
.post-tags a:hover { background:#dff3ef; }
.page-excerpt { background:#f8fafb; border-right:3px solid var(--primary); padding:12px 15px; margin:0 0 22px; color:#555; }
@media (max-width:900px) { .pages-nav { white-space:normal; flex-wrap:wrap; } .top-category-dropdown { z-index:10000; } }


.site-footer .footer-center {
    text-align: center;
}

.site-footer .footer-description {
    max-width: 340px;
    margin: 12px auto 0;
    color: rgba(255,255,255,.78);
    line-height: 1.9;
    font-size: 13px;
}

.site-footer .footer-links a {
    display: block;
    margin-bottom: 8px;
}

/* دسته‌بندی‌های صفحه مطلب */
.post-categories {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 20px;
    padding: 13px 15px;
    border: 1px solid #dcebe7;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fcfb 0%, #f1f8f6 100%);
    box-shadow: 0 5px 18px rgba(0, 111, 98, .05);
}

.post-categories-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.post-categories-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--primary);
    color: #fff;
    font-size: 21px;
    line-height: 1;
    box-shadow: 0 5px 12px rgba(0, 139, 121, .20);
}

.post-categories-heading > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.post-categories-label {
    color: #263b37;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.post-categories-count {
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.post-category-list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.post-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 5px 11px 5px 13px;
    border: 1px solid #cfe4df;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #176f64;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.post-category-chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e4f4f0;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.post-category-chip:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 7px 16px rgba(0, 111, 98, .16);
}

.post-category-chip:hover .post-category-chip-icon {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

@media (max-width: 700px) {
    .post-categories {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
        padding: 13px;
    }

    .post-category-list {
        width: 100%;
    }
}

/* مطالب مرتبط در صفحه مطلب */
.related-posts {
    margin-top: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.related-posts-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.related-posts-kicker {
    display: block;
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.related-posts-heading h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.6;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.related-post-card {
    position: relative;
    aspect-ratio: 1 / 1;
    margin: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #1d2725;
}

.related-post-card a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    color: #fff;
}

.related-post-card img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform .3s ease;
}

.related-post-card a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.84), rgba(0,0,0,.04) 72%);
}

.related-post-card h3,
.related-post-card p {
    position: absolute;
    right: 15px;
    left: 15px;
    z-index: 2;
    margin: 0;
}

.related-post-card h3 {
    bottom: 55px;
    font-size: 17px;
    line-height: 1.65;
    color: #fff;
}

.related-post-card p {
    bottom: 14px;
    color: rgba(255,255,255,.86);
    font-size: 12px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,.10);
}

.related-post-card:hover img {
    transform: scale(1.05);
}

@media (max-width: 700px) {
    .related-posts {
        padding: 15px;
    }

    .related-posts-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 6px;
        scroll-snap-type: x mandatory;
    }

    .related-post-card {
        min-width: 0;
        aspect-ratio: 1 / 1;
        scroll-snap-align: start;
    }
}


/* Table of contents for post headings */
html { scroll-behavior: smooth; }
.post-content h2[id],
.post-content h3[id] { scroll-margin-top: 50px; }

/* Compact green table of contents */
.post-toc {
    box-sizing: border-box;
    width: 50%;
    max-width: 50%;
    margin: 24px auto 30px;
    padding: 0;
    border: 1px solid #218739;
    border-radius: 16px;
    background: #eef9f0;
    overflow: hidden;
    direction: rtl;
}

.post-toc-title {
    display: flex;
    align-items: center;
    min-height: 42px;
    box-sizing: border-box;
    padding: 9px 13px;
    color: #145c25;
    background: #dff2e2;
    border-bottom: 1px solid #9dccaa;
    font-size: 14px;
    line-height: 1.6;
}

.post-toc-title span {
    margin-left: 7px;
    color: #18752f;
    font-size: 13px;
}

.post-toc-title strong { font-weight: 700; }

.post-toc-list,
.post-toc-sublist {
    margin: 0;
    list-style: none;
}

.post-toc-list {
    padding: 10px 13px 12px;
}

.post-toc-list > li {
    margin: 0;
    padding: 0;
}

.post-toc-list > li + li { margin-top: 3px; }

.post-toc a {
    display: block;
    color: #245b31;
    text-decoration: none;
    line-height: 1.75;
    transition: background-color .15s ease, color .15s ease;
}

.post-toc-list > .toc-level-2 > a {
    padding: 4px 7px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
}

.post-toc-sublist {
    margin: 1px 14px 4px 0;
    padding: 1px 11px 1px 0;
    border-right: 2px solid #8cc79a;
}

.post-toc-sublist > .toc-level-3 + .toc-level-3 { margin-top: 1px; }

.post-toc-sublist .toc-level-3 a {
    padding: 2px 7px;
    color: #477153;
    font-size: 12px;
    font-weight: 400;
    border-radius: 4px;
}

.post-toc-sublist .toc-level-3 a::before {
    content: '•';
    display: inline-block;
    margin-left: 6px;
    color: #39904c;
}

.post-toc a:hover,
.post-toc a:focus-visible {
    color: #0d5d22;
    background: #d8f0dc;
    outline: none;
}

.post-toc-list > .toc-orphan {
    margin-right: 12px;
    padding-right: 11px;
    border-right: 2px solid #8cc79a;
}

.post-toc-list > .toc-orphan a {
    padding: 2px 7px;
    color: #477153;
    font-size: 12px;
}

@media (max-width: 900px) {
    .post-toc {
        width: 55%;
        max-width: 55%;
    }
}

@media (max-width: 700px) {
    .post-toc {
        width: 100%;
        max-width: 100%;
        margin: 18px auto 24px;
    }
}


/* Author profile card - matches the table-of-contents card */
.post-author-box {
    box-sizing: border-box;
    width: 50%;
    max-width: 50%;
    margin: 24px auto 30px;
    padding: 0;
    border: 1px solid #218739;
    border-radius: 12px;
    background: #eef9f0;
    overflow: hidden;
    direction: rtl;
}
.post-author-title {
    display: flex;
    align-items: center;
    min-height: 42px;
    box-sizing: border-box;
    padding: 9px 13px;
    color: #145c25;
    background: #dff2e2;
    border-bottom: 1px solid #9dccaa;
    font-size: 14px;
    line-height: 1.6;
}
.post-author-title span {
    margin-left: 7px;
    color: #18752f;
    font-size: 13px;
}
.post-author-title strong { font-weight: 700; }
.post-author-body {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 13px;
    padding: 12px 13px;
    direction: rtl;
}
/* About 2cm */
.post-author-avatar {
    width: 100px;
    height: 100px;
    min-width: 100px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #dff2e2;
    border: 1px solid #9dccaa;
    box-sizing: border-box;
}
.post-author-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-author-avatar span { font-size: 25px; font-weight: 800; color: #18752f; }
/* Because direction is RTL, this block is immediately LEFT of the portrait. */
.post-author-info {
    flex: 1 1 auto;
    min-width: 0;
    text-align: justify;
    direction: rtl;
}
.post-author-info h3 {
    margin: 0 0 3px;
    color: #145c25;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 700;
}
.post-author-info p {
    margin: 0 0 6px;
    color: #477153;
    font-size: 12px;
    line-height: 1.75;
}
/* About 0.5cm */
.post-author-socials {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    margin: 0;
    padding: 0;
}
.author-social {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    color: #477153;
    text-decoration: none;
    box-sizing: border-box;
}
.author-social:hover, .author-social:focus-visible { color: #0d5d22; background: #d8f0dc; outline: none; }
.author-social svg { width: 20px; height: 20px; display: block; fill: currentColor; stroke: currentColor; stroke-width: 1.7; }
.author-social:nth-child(2) svg { fill: none; }
.author-social:nth-child(2) svg .fill { fill: currentColor; stroke: none; }
.author-social:nth-child(3) svg { fill: none; }
@media (max-width: 900px) {
    .post-author-box { width: 55%; max-width: 55%; }
}
@media (max-width: 700px) {
    .post-author-box { width: 100%; max-width: 100%; margin: 18px auto 24px; }
    .post-author-body { gap: 10px; padding: 11px 12px; }
    .post-author-avatar { width: 60px; height: 60px; min-width: 60px; }
    .post-author-avatar span { font-size: 21px; }
    .post-author-info h3 { font-size: 15px; }
    .post-author-info p { font-size: 11px; line-height: 1.7; }
}

.post-title-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.post-title-row h1{margin:0;flex:1}.post-inline-edit{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:8px;text-decoration:none;font-size:.9rem;font-weight:600;white-space:nowrap;background:var(--primary,#2563eb);color:#fff}.post-inline-edit:hover{opacity:.9}


/* Modern post download cards */
.post-downloads{margin:32px 0;padding:0;border:1px solid #dbe5f5;border-radius:20px;background:linear-gradient(180deg,#f5f9ff 0,#fff 48%);overflow:hidden;box-shadow:0 8px 28px rgba(31,78,145,.07)}
.post-downloads-heading{display:flex;align-items:center;gap:16px;padding:22px 24px 18px;border-bottom:2px solid #d8e8ff;background:linear-gradient(110deg,#f0f6ff,#fff)}
.post-downloads-cloud{width:64px;height:64px;flex:0 0 64px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(145deg,#38bdf8,#2563eb);box-shadow:0 8px 16px rgba(37,99,235,.22)}
.post-downloads-cloud svg{width:42px;height:42px;fill:none;stroke:#fff;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.post-downloads-heading h2{margin:0;color:#183b70;font-size:23px;font-weight:800}.post-downloads-heading p{margin:6px 0 0;color:#64748b;font-size:14px}
.post-download-list{display:grid;gap:12px;padding:18px 20px 22px}
.post-download-item{display:flex;align-items:center;gap:16px;min-width:0;padding:15px;border:1px solid #dbe5f4;border-radius:16px;background:#fff;transition:border-color .2s,box-shadow .2s,transform .2s}
.post-download-item:hover{border-color:#9ec5ff;box-shadow:0 7px 20px rgba(37,99,235,.09);transform:translateY(-1px)}
.post-download-file-icon{display:grid;place-items:center;width:64px;height:64px;flex:0 0 64px;border-radius:15px;background:#eef2ff;color:#4f46e5;font-size:14px;font-weight:900;letter-spacing:.3px;box-shadow:inset 0 0 0 1px rgba(99,102,241,.1)}
.post-download-file-icon.type-pdf{background:#fff0f1;color:#dc2626}.post-download-file-icon.type-zip{background:#f3eaff;color:#7c3aed}.post-download-file-icon.type-doc{background:#eaf2ff;color:#2563eb}.post-download-file-icon.type-sheet{background:#e8f8ef;color:#16834a}.post-download-file-icon.type-slide{background:#fff4e7;color:#c65b13}.post-download-file-icon.type-audio{background:#f4eaff;color:#8b35c8}.post-download-file-icon.type-video{background:#ffeaf0;color:#c3265b}.post-download-file-icon.type-apk{background:#e8f7ff;color:#0284c7}
.post-download-info{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}.post-download-info strong{font-size:16px;line-height:1.7;color:#172b49;overflow-wrap:anywhere}.post-download-info span{font-size:12px;color:#7a879a}
.post-download-button,.post-download-login-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex:0 0 auto;min-height:48px;padding:12px 18px;border-radius:13px;background:linear-gradient(135deg,#4f46e5,#6d28c7);color:#fff!important;text-decoration:none!important;font-weight:800;box-shadow:0 5px 13px rgba(79,70,229,.2);transition:filter .2s,transform .2s}.post-download-button:hover,.post-download-login-button:hover{filter:brightness(1.07);transform:translateY(-1px)}
.post-download-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.post-download-login-note{display:flex;align-items:center;gap:12px;margin:0 20px 16px;padding:14px 16px;border-radius:13px;background:#eaf3ff;color:#2456a4}.post-download-login-note p{margin:0;font-size:14px}.post-download-info-icon{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:50%;background:#3183e6;color:#fff;font-weight:900;font-family:serif;font-style:italic}
.post-download-login-button{margin:0 20px 20px}.post-download-login-button span{font-size:18px}
@media(max-width:600px){.post-downloads{border-radius:16px;margin:24px 0}.post-downloads-heading{padding:16px;gap:12px}.post-downloads-cloud{width:52px;height:52px;flex-basis:52px;border-radius:15px}.post-downloads-cloud svg{width:34px;height:34px}.post-downloads-heading h2{font-size:19px}.post-downloads-heading p{font-size:12px;line-height:1.8}.post-download-list{padding:13px;gap:10px}.post-download-item{gap:11px;padding:12px;border-radius:13px}.post-download-file-icon{width:48px;height:48px;flex-basis:48px;border-radius:12px;font-size:12px}.post-download-info strong{font-size:14px}.post-download-info span{font-size:11px}.post-download-button{min-height:42px;padding:10px 12px;border-radius:11px;font-size:12px;gap:6px}.post-download-button svg{width:17px;height:17px}.post-download-login-note{margin:0 13px 12px;padding:12px;font-size:13px}.post-download-login-button{margin:0 13px 15px}}
@media(max-width:390px){.post-download-item{flex-wrap:wrap}.post-download-info{width:calc(100% - 60px);flex:1}.post-download-button{width:100%;margin-top:2px}}
