/* ==========================================================================
   قالب ادامه مطلب - هلدینگ خانه‌ها | نسخه نهایی کامل
   فونت یکان + ساختار ۳ ستونه + Sticky Sidebar + تمام فیکس‌ها
   ========================================================================== */

/* ۱. فونت یکان */
@font-face {
    font-family: 'Yekan';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Yekan.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --yekan-font: 'Yekan', 'Vazirmatn', Tahoma, sans-serif;
    --seton-blue: #0b3d67;
    --seton-cyan: #1fd1c9;
    --seton-dark: #0a1128;
    --seton-text: #333333;
    --seton-muted: #555555;
    --box-bg: #ffffff;
    --box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --border-radius: 16px;
}

/* ۲. ریست پایه */
* { box-sizing: border-box; }
body {
    margin: 0;
    padding: 0;
    font-family: var(--yekan-font);
    color: var(--seton-text);
    background: #f8f9fa;
}

/* ==========================================================================
   ۳. Breadcrumb و عنوان
   ========================================================================== */
.breadcrumb-area {
    position: relative;
    padding: 140px 0 70px 0;
    background: linear-gradient(135deg, var(--seton-blue) 0%, var(--seton-cyan) 100%);
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}
.breadcrumb-area::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,') no-repeat bottom;
    background-size: cover;
    z-index: 0;
}
.breadcrumb-area .container { position: relative; z-index: 1; }
.breadcrumb-area h2 {
    font-family: var(--yekan-font);
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 20px;
    color: #ffffff;
    text-align: center;
    line-height: 1.5;
}
.breadcrumb-area .breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}
.breadcrumb-area .breadcrumb li {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-family: var(--yekan-font);
}
.breadcrumb-area .breadcrumb li a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.95;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
}
.breadcrumb-area .breadcrumb li a:hover,
.breadcrumb-area .breadcrumb li a:focus,
.breadcrumb-area .breadcrumb li a:active {
    color: #000000 !important;
    background: #ffffff;
    font-weight: 700;
    transform: translateY(-2px);
}
.breadcrumb-area .breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 8px;
    opacity: 0.6;
    color: #ffffff;
}

/* ==========================================================================
   ۴. ساختار اصلی ۳ ستونه
   ========================================================================== */
.blog-area.single {
    padding: 60px 0;
    background: #f8f9fa;
}
.blog-items {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.blog-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

/* ==========================================================================
   ۵. ستون اصلی - تصویر + متن + برچسب‌ها
   ========================================================================== */
.main-content-box {
    background: var(--box-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}
.blog-item-box { display: flex; flex-direction: column; }

.blog-item-box .thumb {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-height: 420px;
    background: #f0f0f0;
}
.blog-item-box .thumb img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.blog-item-box:hover .thumb img { transform: scale(1.02); }

/* ==========================================================================
   ۶. باکس متن
   ========================================================================== */
.blog-item-box .info {
    padding: 45px 40px;
    background: linear-gradient(145deg, #ffffff, #f8fbfd);
    position: relative;
    flex-grow: 1;
}
.blog-item-box .info::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--seton-blue), var(--seton-cyan), var(--seton-blue));
}

.blog-item-box .meta {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}
.blog-item-box .meta ul {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.blog-item-box .meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    font-family: var(--yekan-font);
}
.blog-item-box .meta li i { color: var(--seton-cyan); }
.blog-item-box .meta li a {
    color: var(--seton-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}
.blog-item-box .meta li a:hover { color: var(--seton-cyan); }

.post-content-wrapper {
    font-family: var(--yekan-font);
    font-size: 17px;
    line-height: 2.4;
    color: #333;
    letter-spacing: 0.2px;
}
.post-content-wrapper p {
    margin-bottom: 28px;
    text-align: justify;
}
.post-content-wrapper h1,
.post-content-wrapper h2,
.post-content-wrapper h3,
.post-content-wrapper h4 {
    font-family: var(--yekan-font);
    color: var(--seton-blue);
    margin: 40px 0 20px;
    font-weight: 800;
    line-height: 1.7;
    position: relative;
    padding-right: 20px;
}
.post-content-wrapper h2::before,
.post-content-wrapper h3::before {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 5px; height: 70%;
    background: linear-gradient(180deg, var(--seton-blue), var(--seton-cyan));
    border-radius: 3px;
}
.post-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.post-content-wrapper a {
    color: var(--seton-cyan);
    text-decoration: underline;
    transition: color 0.3s ease;
}
.post-content-wrapper a:hover { color: var(--seton-blue); }

/* ==========================================================================
   ۷. برچسب‌ها
   ========================================================================== */
.footer-entry {
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border-right: 4px solid var(--seton-cyan);
}
.footer-entry > span {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--seton-blue);
    margin-bottom: 15px;
    font-family: var(--yekan-font);
}
.tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-entry a {
    display: inline-block;
    padding: 8px 18px;
    background: #ffffff;
    color: var(--seton-blue);
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: var(--yekan-font);
}
.footer-entry a:hover,
.footer-entry a:focus,
.footer-entry a:active {
    background: var(--seton-cyan) !important;
    color: #ffffff !important;
    border-color: var(--seton-cyan) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(31, 209, 201, 0.4);
}

/* ==========================================================================
   ۸. ستون کناری + Sticky
   ========================================================================== */
.sidebar-box {
    background: var(--box-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Sticky Sidebar - دسکتاپ */
/* Sticky Sidebar - دسکتاپ */
/* Sticky Sidebar - دسکتاپ */
@media (min-width: 992px) {
    .blog-content {
        align-items: flex-start;
    }
    .sidebar-box {
        position: sticky;
        top: 100px;
        align-self: flex-start;
    }
    .sidebar-box.sticky-off {
        position: relative !important;
        top: 0 !important;
    }
}

/* کادر جستجو */
.search-box {
    padding: 25px;
    background: linear-gradient(135deg, var(--seton-blue) 0%, var(--seton-cyan) 100%);
    margin: 20px;
    border-radius: 12px;
}
.search-box h4 {
    font-family: var(--yekan-font);
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px;
    text-align: center;
}
.search-box input[type="text"] {
    width: 100%;
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    font-family: var(--yekan-font);
    font-size: 14px;
    margin-bottom: 10px;
    direction: rtl;
    text-align: right;
}
.search-box input[type="text"]::placeholder {
    direction: rtl;
    text-align: right;
    font-family: var(--yekan-font);
}
.search-box button {
    width: 100%;
    padding: 12px;
    background: #ffffff;
    color: var(--seton-blue);
    border: none;
    border-radius: 8px;
    font-family: var(--yekan-font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}
.search-box button:hover {
    background: var(--seton-cyan);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   ۹. نظرات
   ========================================================================== */
.blog-comments {
    padding: 25px;
    border-top: 2px solid #f0f0f0;
}
.comments-title { margin-bottom: 25px; text-align: center; }
.comments-title h4 {
    font-family: var(--yekan-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--seton-blue);
    margin: 0 0 8px;
}
.comments-title h5 {
    font-family: var(--yekan-font);
    font-size: 14px;
    color: #666;
    margin: 0;
}
.comments-list { margin-top: 20px; }
.commen-item {
    padding: 18px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}
.commen-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border-color: var(--seton-cyan);
}
.commen-item .avatar { display: none !important; }
.commen-item .title { margin-bottom: 10px; }
.commen-item .title h5 {
    font-family: var(--yekan-font);
    font-size: 15px;
    font-weight: 700;
    color: var(--seton-blue);
    margin: 0 0 4px;
}
.commen-item .title span {
    font-size: 12px;
    color: #999;
    font-family: var(--yekan-font);
}
.commen-item p {
    font-family: var(--yekan-font);
    font-size: 14px;
    line-height: 1.9;
    color: #555;
    margin: 0 0 12px;
}

.fxa {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 12px;
    flex-wrap: wrap;
}
.rb_send_answer a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: var(--seton-blue);
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--yekan-font);
}
.rb_send_answer a:hover {
    background: var(--seton-cyan);
    transform: translateY(-2px);
}
.rb_send_btn_like a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #dc3545;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.3s ease;
}
.like-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.like-box span {
    font-family: var(--yekan-font);
    font-size: 14px;
    color: #666;
}
.like-box a {
    font-size: 18px;
    color: #ff4757;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
}
.like-box a:hover { transform: scale(1.3); }

.children {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 25px;
    border-right: 3px solid var(--seton-cyan);
    padding-right: 15px;
}
.children .commen-item { background: #ffffff; }

/* ==========================================================================
   ۱۰. فرم ارسال نظر
   ========================================================================== */
.comments-form {
    margin-top: 25px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    direction: rtl;
    text-align: right;
}
.comment-respond .form-control {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: var(--yekan-font);
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
    direction: rtl;
    text-align: right;
}
.comment-respond .form-control:focus {
    outline: none;
    border-color: var(--seton-cyan);
    box-shadow: 0 0 0 3px rgba(31, 209, 201, 0.1);
}
.comment-respond textarea.form-control {
    min-height: 120px;
    resize: vertical;
}
.comment-respond .form-group { margin-bottom: 15px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* فیکس: placeholder ها */
.comment-respond textarea.form-control::placeholder,
.comment-respond input.form-control::placeholder {
    direction: rtl !important;
    text-align: right !important;
    font-family: var(--yekan-font) !important;
    color: #999 !important;
    opacity: 1 !important;
}
.comment-respond input#comment_cap {
    direction: ltr !important;
    text-align: left !important;
}
.comment-respond input#comment_cap::placeholder {
    direction: rtl !important;
    text-align: right !important;
    font-family: var(--yekan-font) !important;
}

.captcha-box {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    direction: rtl;
    justify-content: flex-start;
}
.captcha-box img { border-radius: 8px; }
.refresh-btn {
    padding: 8px;
    background: var(--seton-cyan);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
}
.refresh-btn:hover { background: var(--seton-blue); }
.captcha-box .form-control { flex-grow: 1; }

/* فیکس: چک‌باکس‌ها با فاصله مناسب */
.checkbox-group {
    margin: 20px 0 35px 0;
    padding: 18px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.com-m-checobox {
    display: flex;
    align-items: flex-start;
    margin: 0;
    padding: 12px 0;
    font-family: var(--yekan-font);
    width: 100%;
}
.com-m-checobox + .com-m-checobox {
    border-top: 1px dashed #e9ecef;
}
.cbx {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    gap: 10px;
    line-height: 1.8;
    width: 100%;
}
.cbx span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}
.cbx span:last-child {
    flex-grow: 1;
    word-wrap: break-word;
    line-height: 1.8;
}
.cbx span:first-child svg {
    width: 12px; height: 10px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.inp-cbx { display: none; }
.inp-cbx:checked + .cbx span:first-child {
    background: var(--seton-cyan);
    border-color: var(--seton-cyan);
}
.inp-cbx:checked + .cbx span:first-child svg { opacity: 1; }

/* فیکس: دکمه ارسال زیر چک‌باکس‌ها */
.submit-box {
    margin-top: 35px;
    padding-top: 25px;
    border-top: none;
    text-align: center;
}
.btn_sub {
    padding: 14px 40px !important;
    background: linear-gradient(135deg, var(--seton-blue) 0%, var(--seton-cyan) 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.4s ease !important;
    box-shadow: 0 8px 25px rgba(11, 61, 103, 0.3) !important;
    font-family: var(--yekan-font) !important;
    display: inline-block !important;
    min-width: 200px;
}
.btn_sub:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 35px rgba(31, 209, 201, 0.5) !important;
}

/* ==========================================================================
   ۱۱. پست‌های مرتبط
   ========================================================================== */
.related-posts-area {
    padding: 60px 0;
    background: #ffffff;
}
.site-heading {
    text-align: center;
    margin-bottom: 40px;
    padding: 35px 25px;
    background: linear-gradient(135deg, rgba(11, 61, 103, 0.05), rgba(31, 209, 201, 0.08));
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}
.site-heading::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 80px; height: 4px;
    background: linear-gradient(90deg, var(--seton-blue), var(--seton-cyan));
    border-radius: 2px;
}
.site-heading h4 {
    font-family: var(--yekan-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--seton-blue);
    margin: 0;
    line-height: 1.8;
    text-align: center;
}
.heading-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--seton-blue), var(--seton-cyan));
    margin: 15px auto 0;
    border-radius: 2px;
}

.grid-seton {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.card-seton {
    background: linear-gradient(145deg, #ffffff, #f4f8fb);
    border: 1px solid rgba(11, 61, 103, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}
.card-seton:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(11, 61, 103, 0.12);
}
.media-seton {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}
.card-seton:hover .media-seton { transform: scale(1.05); }
.content-seton {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    font-family: var(--yekan-font);
}
.kicker-seton {
    font-weight: 700;
    color: var(--seton-blue);
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--yekan-font);
    line-height: 1.6;
}
.kicker-dot-seton {
    width: 8px; height: 8px;
    background: var(--seton-cyan);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.btn-seton {
    background: linear-gradient(90deg, var(--seton-blue), var(--seton-cyan));
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--yekan-font);
}
.btn-seton:hover {
    background: linear-gradient(90deg, var(--seton-cyan), var(--seton-blue));
    gap: 16px;
    transform: translateY(-3px);
}

/* ==========================================================================
   ۱۲. ریسپانسیو
   ========================================================================== */
@media (max-width: 991px) {
    .blog-content { grid-template-columns: 1fr; }
    .sidebar-box { order: 2; }
    .breadcrumb-area { padding: 120px 0 60px 0; }
}
@media (max-width: 767px) {
    .breadcrumb-area { padding: 110px 0 50px 0; }
    .breadcrumb-area h2 { font-size: 24px; }
    .blog-item-box .info { padding: 30px 20px; }
    .blog-item-box .thumb img { height: 280px; }
    .form-row { grid-template-columns: 1fr; }
    .blog-comments { padding: 20px; }
    .comments-form { padding: 20px; }
    .children { margin-left: 0; padding-right: 12px; }
    .grid-seton { grid-template-columns: 1fr; padding: 15px; }
    .site-heading { padding: 25px 15px; }
    .site-heading h4 { font-size: 16px; }
    .btn_sub { width: 100%; }
}