/* ═══════════════════════════════════════════════════════════
   جزئیات مقاله
   ═══════════════════════════════════════════════════════════ */

.bdt-hero {
    padding: 50px 20px 40px;
    background: linear-gradient(135deg, var(--rw-primary) 0%, var(--rw-secondary) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.bdt-hero::before,
.bdt-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}
.bdt-hero::before {
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: rgba(255, 255, 255, 0.08);
}
.bdt-hero::after {
    bottom: -120px; left: -80px;
    width: 280px; height: 280px;
    background: rgba(255, 255, 255, 0.05);
}

.bdt-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.bdt-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 12px;
}
.bdt-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}
.bdt-breadcrumb a:hover { color: #fff; }
.bdt-breadcrumb i { font-size: 10px; color: rgba(255, 255, 255, 0.5); }

.bdt-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
    backdrop-filter: blur(10px);
}
.bdt-cat-badge i { font-size: 12px; }

.bdt-title {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 34px;
    color: #fff;
    margin: 0 0 18px;
    line-height: 1.4;
}

.bdt-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
}
.bdt-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
}
.bdt-meta i { font-size: 13px; color: rgba(255, 255, 255, 0.7); }

/* ═══ Container ═══ */
.bdt-container {
    max-width: 1100px;
    margin: -40px auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

/* ═══ Image ═══ */
.bdt-image {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    margin-bottom: 30px;
}
.bdt-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 550px;
    object-fit: cover;
}

/* ═══ Layout ═══ */
.bdt-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

/* ═══ Main Content ═══ */
.bdt-main {
    min-width: 0;
}

.bdt-content {
    background: #fff;
    border-radius: 20px;
    padding: 32px 34px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    font-size: 15px;
    color: #374151;
    line-height: 2.1;
    margin-bottom: 24px;
    word-wrap: break-word;
}
.bdt-content p { margin: 0 0 16px; }
.bdt-content h2 {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 22px;
    color: #1E3A8A;
    margin: 28px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(37, 99, 235, 0.1);
}
.bdt-content h3 {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 18px;
    color: #1E3A8A;
    margin: 24px 0 12px;
}
.bdt-content ul, .bdt-content ol { padding-right: 22px; margin: 0 0 16px; }
.bdt-content li { margin-bottom: 6px; }
.bdt-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 16px 0;
}
.bdt-content a { color: var(--rw-primary); text-decoration: underline; }
.bdt-content blockquote {
    border-right: 4px solid var(--rw-primary);
    background: rgba(37, 99, 235, 0.05);
    padding: 14px 20px;
    margin: 20px 0;
    border-radius: 10px;
    color: #4B5563;
    font-style: italic;
}
.bdt-content code {
    background: rgba(37, 99, 235, 0.08);
    color: var(--rw-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
}

/* ═══ Tags ═══ */
.bdt-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 18px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
}
.bdt-tags-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6B7280;
    font-weight: 700;
}
.bdt-tags-label i { color: var(--rw-primary); font-size: 14px; }
.bdt-tag {
    display: inline-flex;
    padding: 5px 14px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--rw-primary);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}
.bdt-tag:hover {
    background: var(--rw-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ═══ Share ═══ */
.bdt-share {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 18px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}
.bdt-share-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6B7280;
    font-weight: 700;
}
.bdt-share-label i { color: var(--rw-primary); font-size: 14px; }
.bdt-share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.bdt-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #F8FAFC;
    color: #6B7280;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.bdt-share-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}
.bdt-share-telegram:hover { background: #0088CC; }
.bdt-share-twitter:hover { background: #1DA1F2; }
.bdt-share-facebook:hover { background: #1877F2; }
.bdt-share-whatsapp:hover { background: #25D366; }
.bdt-share-copy:hover { background: var(--rw-primary); }

/* ═══ Comments ═══ */
.bdt-comments {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.bdt-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 20px;
    color: #1E3A8A;
    margin: 0 0 22px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(37, 99, 235, 0.1);
}
.bdt-section-title i { font-size: 20px; color: var(--rw-primary); }
.bdt-comment-count {
    padding: 3px 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--rw-primary);
    border-radius: 50px;
    font-size: 12px;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-weight: 700;
    margin-right: auto;
}

/* Comment Form */
.bdt-comment-form {
    padding: 24px;
    background: #F8FAFC;
    border-radius: 16px;
    margin-bottom: 26px;
}
.bdt-form-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 16px;
    color: #1E3A8A;
    margin: 0 0 18px;
}
.bdt-form-title i { color: var(--rw-primary); font-size: 15px; }

.bdt-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 700;
}
.bdt-alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-right: 4px solid #10B981;
}
.bdt-alert-danger {
    background: #FEE2E2;
    color: #991B1B;
    border-right: 4px solid #EF4444;
}
.bdt-alert i { font-size: 16px; flex-shrink: 0; }

.bdt-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.bdt-form-group { margin-bottom: 14px; }
.bdt-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
}
.bdt-form-group label span { color: #EF4444; }

.bdt-form-group input,
.bdt-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 13px;
    color: #1F2937;
    outline: none;
    transition: all 0.25s ease;
    resize: vertical;
}
.bdt-form-group input:focus,
.bdt-form-group textarea:focus {
    border-color: var(--rw-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.bdt-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--rw-primary), var(--rw-secondary));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}
.bdt-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
}

/* Comment List */
.bdt-comments-list { display: flex; flex-direction: column; gap: 16px; }

.bdt-comment {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: #F8FAFC;
    border-radius: 14px;
    border-right: 3px solid var(--rw-primary);
    transition: all 0.25s ease;
}
.bdt-comment:hover {
    background: #fff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
}

.bdt-comment-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--rw-primary), var(--rw-secondary));
    color: #fff;
    border-radius: 50%;
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.bdt-comment-body { flex: 1; min-width: 0; }
.bdt-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.bdt-comment-header strong {
    font-size: 14px;
    color: #1E3A8A;
    font-family: 'Lalezar-ExtraBold', sans-serif;
}
.bdt-comment-site {
    display: inline-block;
    margin-right: 6px;
    color: var(--rw-primary);
    font-size: 12px;
}
.bdt-comment-date {
    font-size: 11px;
    color: #9CA3AF;
}
.bdt-comment-text {
    font-size: 13px;
    color: #374151;
    line-height: 2;
    margin: 0;
    word-wrap: break-word;
}

.bdt-no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #9CA3AF;
}
.bdt-no-comments i {
    font-size: 50px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.4;
}
.bdt-no-comments p { font-size: 13px; margin: 0; }

/* ═══ Sidebar ═══ */
.bdt-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 20px;
}

.bdt-widget {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.bdt-widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 16px;
    color: #1E3A8A;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(37, 99, 235, 0.1);
}
.bdt-widget-title i { font-size: 15px; color: var(--rw-primary); }

/* Info List */
.bdt-info-list { list-style: none; margin: 0; padding: 0; }
.bdt-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
    font-size: 12px;
}
.bdt-info-list li:last-child { border-bottom: none; }
.bdt-info-list li > span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6B7280;
    font-weight: 700;
}
.bdt-info-list li > span i { color: #9CA3AF; font-size: 12px; }
.bdt-info-list li strong,
.bdt-info-list li a {
    color: #1E3A8A;
    font-weight: 700;
    text-decoration: none;
    text-align: left;
}
.bdt-info-list li a:hover { color: var(--rw-primary); }

/* Related */
.bdt-related-list { display: flex; flex-direction: column; gap: 12px; }
.bdt-related-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 10px;
    align-items: center;
    padding: 6px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
}
.bdt-related-item:hover {
    background: rgba(37, 99, 235, 0.05);
    transform: translateX(-4px);
}
.bdt-related-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--rw-primary), var(--rw-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}
.bdt-related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bdt-related-thumb i { color: rgba(255, 255, 255, 0.5); font-size: 20px; }
.bdt-related-info { min-width: 0; }
.bdt-related-info h4 {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 12px;
    color: #1E3A8A;
    margin: 0 0 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bdt-related-info span { font-size: 10px; color: #9CA3AF; }
.bdt-related-info span i { color: var(--rw-primary); margin-left: 3px; font-size: 10px; }

/* CTA Widget */
.bdt-widget-cta {
    background: linear-gradient(135deg, var(--rw-primary), var(--rw-secondary));
    color: #fff;
    text-align: center;
    padding: 28px 22px;
    position: relative;
    overflow: hidden;
}
.bdt-widget-cta::before {
    content: "";
    position: absolute;
    top: -60px; right: -40px;
    width: 180px; height: 180px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}
.bdt-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}
.bdt-cta-icon i { font-size: 24px; color: #fff; }
.bdt-widget-cta h3 {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 17px;
    color: #fff;
    margin: 0 0 6px;
    position: relative;
    z-index: 2;
}
.bdt-widget-cta p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 16px;
    position: relative;
    z-index: 2;
    line-height: 1.7;
}
.bdt-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: #fff;
    color: var(--rw-primary);
    border-radius: 50px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.bdt-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* Back Button */
.bdt-back {
    text-align: center;
    padding-top: 30px;
}
.bdt-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #fff;
    color: var(--rw-primary);
    border: 2px solid rgba(37, 99, 235, 0.15);
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}
.bdt-back-btn:hover {
    background: linear-gradient(135deg, var(--rw-primary), var(--rw-secondary));
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.3);
}

/* ═══ Responsive ═══ */
@media (max-width: 1000px) {
    .bdt-layout { grid-template-columns: 1fr; }
    .bdt-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .bdt-widget-cta { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
    .bdt-hero { padding: 40px 16px 30px; }
    .bdt-title { font-size: 22px; }
    .bdt-container { margin-top: -30px; padding: 0 14px; }

    .bdt-image { border-radius: 16px; }
    .bdt-content { padding: 22px 20px; font-size: 14px; line-height: 2; }
    .bdt-content h2 { font-size: 18px; }
    .bdt-content h3 { font-size: 16px; }

    .bdt-sidebar { grid-template-columns: 1fr; }

    .bdt-form-row { grid-template-columns: 1fr; }
    .bdt-comments { padding: 22px 18px; }
    .bdt-comment-form { padding: 18px; }
    .bdt-submit { width: 100%; justify-content: center; }
}