/* ============================================================
   استایل صفحات جدید: گالری، نظرسنجی + نظرات کادر آموزشی، پنل کاربری
   (هماهنگ با پالت سبز/طلایی سایت)
   ============================================================ */

/* ---------- صفحه‌های داخلی ---------- */
.page-hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, #0d5c33 60%, #127240 100%);
    padding: 56px 20px 44px;
    text-align: center;
    color: white;
}
.page-hero h2 { font-size: 32px; font-weight: 900; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.8); font-size: 15px; }
.page-hero .divider { margin: 16px auto 0; }
.page-hero-stats { display: flex; gap: 16px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.page-hero-stats span {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}
.page-section { padding: 44px 0 70px; }

/* ---------- گالری دسته‌بندی‌شده ---------- */
.gallery-filter-bar {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    margin-bottom: 28px;
}
.gallery-filter-btn {
    font-family: inherit;
    background: white;
    border: 1.5px solid var(--gray-light);
    color: var(--text);
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
}
.gallery-filter-btn:hover { border-color: var(--gold); color: var(--green-dark); transform: translateY(-1px); }
.gallery-filter-btn.active {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border-color: var(--gold);
    color: var(--dark);
    box-shadow: 0 4px 14px rgba(201,162,39,.4);
}
.gallery-cat-block { margin-bottom: 40px; }
.gallery-cat-head {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
    margin-bottom: 16px;
}
.gallery-cat-head h3 { color: var(--green-dark); font-size: 20px; font-weight: 800; }
.gallery-grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.gallery-img-card {
    position: relative;
    height: 170px;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
    filter: grayscale(0.25);
}
.gallery-img-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 10px 28px rgba(10,74,42,.25); filter: grayscale(0); }
.gallery-img-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(6,26,14,.78));
}
.gallery-img-title {
    position: absolute;
    bottom: 10px; right: 12px; left: 12px;
    color: white;
    font-size: 12.5px;
    font-weight: 700;
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

/* ---------- تقویم آموزشی ---------- */
.calendar-month-tabs {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    margin-bottom: 30px;
}
.calendar-month-btn {
    font-family: inherit;
    background: white;
    border: 1.5px solid var(--gray-light);
    color: var(--text);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
}
.calendar-month-btn small { color: var(--text-muted); font-size: 11px; }
.calendar-month-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.calendar-month-btn.active {
    background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
    color: white; border-color: var(--green-dark);
    box-shadow: 0 4px 14px rgba(10,74,42,.35);
}
.calendar-month-btn.active small { color: rgba(255,255,255,.75); }
.calendar-month-panel { display: none; animation: fadeIn .35s ease; }
.calendar-month-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.calendar-month-title {
    color: var(--green-dark); font-size: 19px; font-weight: 800;
    margin-bottom: 18px; text-align: center;
}
.calendar-timeline { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; }
.calendar-event {
    display: flex; gap: 16px; align-items: flex-start;
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.calendar-event::before {
    content: '';
    position: absolute; right: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(180deg, var(--gold), var(--green-mid));
}
.calendar-event-icon {
    font-size: 26px;
    background: var(--cream);
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--gray-light);
}
.calendar-event-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.calendar-event h4 { color: var(--green-dark); font-size: 15.5px; font-weight: 800; }
.calendar-event-type {
    font-size: 11px; font-weight: 700;
    padding: 3px 12px; border-radius: 30px;
    background: var(--cream); color: var(--text-muted);
    border: 1px solid var(--gray-light);
}
.calendar-event-type.type-امتحان { background: #fdecec; color: #b03030; border-color: #f5c6c6; }
.calendar-event-type.type-فرهنگی { background: #fdf3e0; color: #9a6d1b; border-color: #ecd9ae; }
.calendar-event-type.type-مسابقه { background: #e8f6ee; color: #1a7a45; border-color: #bfe4cd; }
.calendar-event-type.type-اردو { background: #e8f1fd; color: #22598f; border-color: #c2d9f2; }
.calendar-event-date { font-size: 12.5px; color: var(--gold); font-weight: 700; margin: 5px 0; }
.calendar-event p { font-size: 13.5px; color: var(--text-muted); line-height: 1.9; }

/* ---------- نظرسنجی ---------- */
.poll-cat-tabs {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    margin-bottom: 28px;
}
.poll-cat-btn {
    font-family: inherit;
    background: white;
    border: 1.5px solid var(--gray-light);
    color: var(--text);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
}
.poll-cat-btn:hover { border-color: var(--gold); transform: translateY(-1px); }
.poll-cat-btn.active {
    background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
    color: white; border-color: var(--green-dark);
    box-shadow: 0 4px 14px rgba(10,74,42,.35);
}
.poll-cat-panel { display: none; animation: fadeIn .35s ease; }
.poll-cat-panel.active { display: block; }
.poll-box {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    max-width: 760px;
    margin: 0 auto 22px;
}
.poll-question { color: var(--green-dark); font-size: 16.5px; font-weight: 800; margin-bottom: 16px; }
.poll-options { display: grid; gap: 10px; }
.poll-option {
    font-family: inherit;
    display: flex; align-items: center; gap: 12px;
    width: 100%;
    background: var(--cream);
    border: 1.5px solid var(--gray-light);
    color: var(--text);
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: right;
    transition: all .22s ease;
}
button.poll-option:hover { border-color: var(--gold); background: #fdf8ec; transform: translateX(-3px); }
.poll-option .poll-radio {
    width: 18px; height: 18px;
    border: 2px solid var(--gray);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all .2s;
}
button.poll-option:hover .poll-radio { border-color: var(--gold); }
.poll-option.result { cursor: default; background: white; }
.poll-option-row {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; gap: 10px; margin-bottom: 8px;
}
.poll-option-row b { color: var(--green-dark); font-size: 13px; white-space: nowrap; }
.poll-bar { background: var(--gray-light); border-radius: 30px; height: 9px; overflow: hidden; }
.poll-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-light), var(--green-mid));
    border-radius: 30px;
    transition: width .8s ease;
}
.poll-total { margin-top: 14px; font-size: 12.5px; color: var(--text-muted); text-align: center; }

/* تیزر نظرسنجی در صفحه اصلی */
.poll-teaser-box { text-align: center; }
.poll-teaser-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    max-width: 720px;
    margin: 0 auto;
}
.poll-teaser-card {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 22px 14px;
    box-shadow: var(--shadow);
    transition: transform .25s;
}
.poll-teaser-card:hover { transform: translateY(-4px); }
.poll-teaser-card .ico { font-size: 34px; display: block; margin-bottom: 8px; }
.poll-teaser-card h4 { color: var(--green-dark); font-size: 14px; font-weight: 800; }

/* ---------- دیدگاه‌های کاربران ---------- */
.comment-form-box {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 22px;
    max-width: 720px;
    margin: 0 auto 26px;
    box-shadow: var(--shadow);
}
.comment-form-box textarea { min-height: 90px; }
.comment-login-hint {
    background: #fdf8ec;
    border: 1.5px dashed var(--gold);
    color: var(--text);
    text-align: center;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 13.5px;
    margin: 0 auto 26px;
    max-width: 720px;
}
.comment-login-hint a { color: var(--green-mid); font-weight: 800; }
.comments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
    max-width: 1000px;
    margin: 0 auto;
}
.comments-grid .comment-item {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 18px;
    display: flex; gap: 14px;
    box-shadow: var(--shadow);
}
.comment-avatar {
    width: 46px; height: 46px;
    background: var(--cream);
    border: 1px solid var(--gray-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.comment-meta b { color: var(--green-dark); font-size: 13.5px; }
.comment-meta span { color: var(--text-muted); font-size: 11.5px; }
.comment-body { font-size: 13.5px; line-height: 1.9; color: var(--text); }
.comments-list .comment-item { display: flex; gap: 12px; margin-bottom: 14px; }

/* ---------- پنل کاربری ---------- */
.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 22px;
    align-items: start;
}
.profile-card {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 26px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 14px;
}
.profile-avatar {
    width: 84px; height: 84px;
    margin: 0 auto 12px;
    background: var(--cream);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px;
}
.profile-card h3 { color: var(--green-dark); font-size: 17px; font-weight: 800; }
.profile-id { color: var(--text-muted); font-size: 12.5px; margin-top: 4px; direction: ltr; }
.profile-role {
    display: inline-block; margin-top: 10px;
    background: var(--cream);
    border: 1px solid var(--gray-light);
    padding: 4px 16px; border-radius: 30px;
    font-size: 12px; font-weight: 700; color: var(--text-muted);
}
.profile-nav { display: grid; gap: 6px; }
.profile-nav a {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    transition: all .22s;
}
.profile-nav a:hover { border-color: var(--gold); color: var(--green-dark); }
.profile-nav a.active {
    background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
    color: white;
    border-color: var(--green-dark);
}
.profile-content { min-width: 0; }
.profile-panel {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}
.profile-panel h3 { color: var(--green-dark); font-size: 17px; font-weight: 800; margin-bottom: 18px; }
.profile-empty { color: var(--text-muted); font-size: 13.5px; padding: 20px 0; }
.my-item {
    border: 1px solid var(--gray-light);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 12px;
    background: var(--cream);
}
.my-item p { font-size: 13.5px; line-height: 1.9; margin-top: 4px; }
.my-item-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.my-item-status { font-size: 12px; font-weight: 700; color: var(--green-mid); }
.my-item-date { font-size: 11.5px; color: var(--text-muted); }
.avatar-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.avatar-option { cursor: pointer; }
.avatar-option input { display: none; }
.avatar-option span {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: var(--cream);
    border: 2px solid var(--gray-light);
    border-radius: 50%;
    font-size: 21px;
    transition: all .2s;
}
.avatar-option input:checked + span { border-color: var(--gold); background: #fdf8ec; transform: scale(1.08); }
.alert-ok {
    background: #e8f6ee; border: 1px solid #bfe4cd; color: #15703d;
    padding: 12px 18px; border-radius: 12px; font-size: 13.5px; font-weight: 700;
    margin-bottom: 16px;
}
.alert-err {
    background: #fdecec; border: 1px solid #f5c6c6; color: #b03030;
    padding: 12px 18px; border-radius: 12px; font-size: 13.5px; font-weight: 700;
    margin-bottom: 16px;
}

/* ---------- صفحات ورود/ثبت‌نام مستقل ---------- */
body.auth-page { background: var(--green-dark); }
.auth-page-wrap {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 20px;
}
.auth-page .auth-modal { display: flex; z-index: auto; }
.auth-page .auth-box { max-width: 430px; width: 100%; }
.auth-back-home {
    color: rgba(255,255,255,.8);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    background: rgba(255,255,255,.1);
    padding: 8px 18px;
    border-radius: 30px;
}
.auth-back-home:hover { color: var(--gold-light); }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 900px) {
    .profile-layout { grid-template-columns: 1fr; }
    .page-hero h2 { font-size: 25px; }
}
@media (max-width: 560px) {
    .gallery-grid2 { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .gallery-img-card { height: 130px; }
    .comments-grid { grid-template-columns: 1fr; }
    .calendar-event { flex-direction: column; }
}

/* ---------- نظرات کادر آموزشی (تب بخش نظرسنجی) ---------- */
.staff-cmt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
}
.staff-cmt-card {
    background: var(--card-bg, #fff);
    border: 1px solid var(--gray-light, #e5e7eb);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 18px rgba(10, 74, 42, .06);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.staff-cmt-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(10, 74, 42, .12);
}
.staff-cmt-head { display: flex; gap: 13px; align-items: center; }
.staff-cmt-avatar {
    flex: none;
    width: 58px; height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--cream, #f8f1dd), #efe3c0);
    display: grid; place-items: center;
    font-size: 30px;
    border: 1px solid var(--gray-light, #e5e7eb);
}
.staff-cmt-info h4 { font-size: 15.5px; color: var(--green-dark, #0a4a2a); margin-bottom: 2px; }
.staff-cmt-info p { font-size: 12.5px; color: var(--text-muted, #6b7280); }
.staff-badge {
    display: inline-block;
    background: var(--cream, #f8f1dd);
    color: #9a7b1c;
    font-size: 10.5px;
    padding: 2px 9px;
    border-radius: 50px;
    font-weight: 700;
    vertical-align: middle;
}
.staff-cmt-rating-line { margin-top: 3px; font-size: 13px; }
.staff-cmt-rating-line small { color: var(--text-muted, #6b7280); margin-inline-start: 4px; }
.stars-line { letter-spacing: 1px; }
.stars-line .star-on { color: #f0b429; }
.stars-line .star-off { color: #d8dde3; }
.staff-cmt-desc { font-size: 12.8px; color: var(--text-muted, #6b7280); line-height: 1.9; }
.staff-cmt-list { display: flex; flex-direction: column; gap: 8px; }
.staff-cmt-item {
    background: var(--bg-light, #f8f9f7);
    border: 1px solid var(--gray-light, #e5e7eb);
    border-radius: 11px;
    padding: 10px 13px;
}
.staff-cmt-item-head {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 12.5px; margin-bottom: 4px;
}
.staff-cmt-item-head b { color: var(--green-dark, #0a4a2a); font-size: 12.8px; }
.staff-cmt-item-head small { color: #9aa3ad; margin-inline-start: auto; }
.staff-cmt-stars { color: #f0b429; font-size: 12px; letter-spacing: 1px; }
.staff-cmt-item p { font-size: 13px; color: var(--text, #1f2937); line-height: 1.9; }
.staff-cmt-empty {
    font-size: 12.5px; color: #9aa3ad; text-align: center;
    background: var(--bg-light, #f8f9f7);
    border: 1px dashed var(--gray-light, #e5e7eb);
    border-radius: 11px; padding: 12px;
}
.staff-cmt-form {
    margin-top: auto;
    background: var(--bg-light, #f8f9f7);
    border: 1px solid var(--gray-light, #e5e7eb);
    border-radius: 12px;
    padding: 13px;
    display: flex; flex-direction: column; gap: 9px;
}
.staff-cmt-form textarea {
    width: 100%; min-height: 64px; resize: vertical;
    border: 1.5px solid var(--gray-light, #e5e7eb);
    border-radius: 9px; padding: 9px 12px;
    font-family: inherit; font-size: 13px;
}
.staff-cmt-form textarea:focus { outline: none; border-color: var(--gold, #c9a227); background: #fff; }
.staff-cmt-form-row { display: flex; align-items: center; gap: 9px; }
.staff-cmt-form-row label { font-size: 12.5px; font-weight: 700; color: var(--green-dark, #0a4a2a); white-space: nowrap; }
.staff-cmt-form-row select {
    flex: 1;
    border: 1.5px solid var(--gray-light, #e5e7eb);
    border-radius: 9px; padding: 7px 10px;
    font-family: inherit; font-size: 12.5px;
    background: #fff;
}
.staff-cmt-form .btn { align-self: flex-start; }
@media (max-width: 640px) {
    .staff-cmt-grid { grid-template-columns: 1fr; }
}

/* ---------- تب‌باکس گالری (نسخه جدید) ---------- */
.hidden-by-tab { display: none !important; }
.gallery-filter-btn { cursor: pointer; user-select: none; }

/* ---------- وبلاگ هنرستان ---------- */
.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    align-items: start;
}
.blog-list { display: grid; gap: 22px; }

.blog-post-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 26px rgba(10, 74, 42, 0.08);
    border: 1px solid var(--gray-light, #e8ece9);
    transition: transform .25s ease, box-shadow .25s ease;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
}
.blog-post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(10, 74, 42, 0.16); }
.blog-cover {
    position: relative;
    min-height: 200px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: block;
    text-decoration: none;
}
.blog-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 40, 22, .35)); transition: opacity .25s; }
.blog-cover:hover::after { opacity: .85; }
.blog-no-cover {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0a4a2a, #1a7a45);
    color: rgba(255, 255, 255, .9);
    font-size: 46px;
}
.blog-post-body { padding: 20px 22px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.blog-post-title { margin: 0; font-size: 18px; font-weight: 900; color: var(--green-dark, #0a4a2a); line-height: 1.7; }
.blog-post-title a { color: inherit; text-decoration: none; transition: color .2s; }
.blog-post-title a:hover { color: var(--gold, #c9a227); }
.blog-post-excerpt {
    margin: 0; font-size: 13.5px; color: var(--text-muted, #5a7260);
    line-height: 2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--gray-light, #e2e7e4); }
.blog-author-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; color: var(--green-dark, #0a4a2a); }
.blog-author-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold, #c9a227); }
.blog-author-chip .emoji-avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #f2f5f3; font-size: 16px; }
.blog-meta-item { font-size: 12px; color: var(--text-muted, #6b7f70); display: inline-flex; align-items: center; gap: 4px; }
.blog-meta-item b { color: var(--gold, #b8860b); }
.blog-readmore {
    margin-inline-start: auto;
    font-size: 12.5px; font-weight: 800; color: var(--green-mid, #1a7a45);
    text-decoration: none; transition: transform .2s, color .2s;
}
.blog-readmore:hover { color: var(--gold, #c9a227); transform: translateX(-4px); }
.blog-status-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 20px;
}
.blog-status-badge.pending { background: #fdf8ec; color: #9a6d1b; border: 1px solid #ecd9ae; }
.blog-status-badge.approved { background: #e8f6ee; color: #15703d; border: 1px solid #bfe4cd; }
.blog-status-badge.rejected { background: #fdecec; color: #b03030; border: 1px solid #f5c6c6; }

/* ---------- سایدبار وبلاگ ---------- */
.blog-sidebar { display: grid; gap: 18px; position: sticky; top: 90px; }
.blog-side-card {
    background: #fff; border-radius: 16px; padding: 18px;
    border: 1px solid var(--gray-light, #e8ece9);
    box-shadow: 0 4px 18px rgba(10, 74, 42, 0.06);
}
.blog-side-card h4 {
    margin: 0 0 13px; font-size: 14.5px; font-weight: 900; color: var(--green-dark, #0a4a2a);
    padding-bottom: 9px; border-bottom: 2px solid #f2f5f3;
    display: flex; align-items: center; gap: 7px;
}
.blog-side-about p { margin: 0; font-size: 12.5px; color: var(--text-muted, #5a7260); line-height: 2.1; }
.blog-side-item {
    display: flex; gap: 10px; align-items: center;
    padding: 8px 0; border-bottom: 1px dashed #eef1ee; text-decoration: none;
}
.blog-side-item:last-child { border-bottom: none; }
.blog-side-thumb {
    width: 58px; height: 44px; border-radius: 9px; flex-shrink: 0;
    background-size: cover; background-position: center;
    background-color: #eef3ef;
    display: flex; align-items: center; justify-content: center; font-size: 18px; color: #fff;
    background-image: linear-gradient(135deg, #0a4a2a, #1a7a45);
}
.blog-side-info { min-width: 0; }
.blog-side-info b {
    display: block; font-size: 12.5px; color: var(--text, #1e2e22); font-weight: 800; line-height: 1.7;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    transition: color .2s;
}
.blog-side-item:hover .blog-side-info b { color: var(--gold, #c9a227); }
.blog-side-info small { font-size: 10.5px; color: var(--text-muted, #8ba093); }
.blog-side-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.blog-side-stat { background: #f6f8f6; border-radius: 12px; padding: 10px 4px; }
.blog-side-stat b { display: block; font-size: 16px; color: var(--green-dark, #0a4a2a); font-weight: 900; }
.blog-side-stat span { font-size: 10px; color: var(--text-muted, #6b7f70); }
.blog-side-cta {
    text-align: center; padding: 20px 16px;
    background: linear-gradient(150deg, #0a4a2a, #1a7a45);
    border-radius: 16px; color: #fff;
}
.blog-side-cta .big { font-size: 30px; display: block; margin-bottom: 6px; }
.blog-side-cta h4 { color: #fff; border: none; margin-bottom: 6px; justify-content: center; }
.blog-side-cta p { font-size: 11.5px; color: rgba(255, 255, 255, .8); margin: 0 0 13px; line-height: 1.9; }
.blog-side-cta a {
    display: inline-block; background: linear-gradient(135deg, #f0c040, #c9a227);
    color: #14210f; text-decoration: none; font-size: 12.5px; font-weight: 900;
    padding: 9px 20px; border-radius: 30px; transition: transform .2s, box-shadow .2s;
}
.blog-side-cta a:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(201, 162, 39, .45); }

/* ---------- صفحه تک‌نوشته وبلاگ ---------- */
.blog-single {
    background: #fff; border-radius: 20px; overflow: hidden;
    border: 1px solid var(--gray-light, #e8ece9);
    box-shadow: 0 8px 34px rgba(10, 74, 42, 0.1);
}
.blog-single-cover { height: 320px; background-size: cover; background-position: center; }
.blog-single-body { padding: 28px 30px 26px; }
.blog-single-title { font-size: 23px; font-weight: 900; color: var(--green-dark, #0a4a2a); line-height: 1.8; margin: 0 0 14px; }
.blog-single-meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px;
    background: #f6f8f6; border-radius: 13px; padding: 11px 16px; margin-bottom: 20px;
}
.blog-single-meta .blog-author-chip { font-size: 13px; }
.blog-article { font-size: 14.5px; color: #2c3e33; line-height: 2.3; text-align: justify; }
.blog-article p { margin: 0 0 15px; }
.blog-back-link {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px;
    font-size: 13px; font-weight: 800; color: var(--green-mid, #1a7a45); text-decoration: none;
}
.blog-back-link:hover { color: var(--gold, #c9a227); }
.blog-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.blog-pagination a, .blog-pagination span {
    min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px; background: #fff; border: 1.5px solid var(--gray-light, #e2e7e4);
    font-size: 13px; font-weight: 800; color: var(--green-dark, #0a4a2a); text-decoration: none;
}
.blog-pagination .current { background: linear-gradient(135deg, #f0c040, #c9a227); color: #14210f; border-color: #c9a227; }
.blog-empty {
    text-align: center; padding: 60px 20px; background: #fff; border-radius: 18px;
    border: 2px dashed var(--gray-light, #dfe5e1); color: var(--text-muted, #6b7f70);
}
.blog-empty .big { font-size: 46px; display: block; margin-bottom: 12px; }

/* ---------- فرم نوشته در پنل کاربری ---------- */
.blog-write-box {
    background: #fbfcfb; border: 1.5px solid var(--gray-light, #e5e7eb);
    border-radius: 14px; padding: 18px; margin-bottom: 24px;
}
.blog-write-box h4 { margin: 0 0 12px; color: var(--green-dark, #0a4a2a); font-size: 15px; }
.blog-my-cover { width: 120px; height: 74px; border-radius: 10px; object-fit: cover; background: #eef3ef center/cover no-repeat; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.blog-my-row { display: flex; gap: 14px; align-items: center; }
.blog-my-info { flex: 1; min-width: 0; }
.blog-my-info b { display: block; font-size: 13.5px; color: var(--text, #1e2e22); margin-bottom: 4px; }
.blog-my-info small { color: var(--text-muted, #8ba093); font-size: 11px; }
.photo-hint { font-size: 11px; color: var(--text-muted, #8ba093); margin-top: 5px; }
.current-photo-line { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.current-photo-line img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold, #c9a227); }

@media (max-width: 980px) {
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .blog-post-card { grid-template-columns: 1fr; }
    .blog-cover { min-height: 180px; }
    .blog-single-cover { height: 200px; }
    .blog-single-body { padding: 20px 18px; }
}
