/************************************
 *  BLOG CONTENT – FINAL VERSION
 ************************************/

.blog-content {
    font-size: 15px;
    line-height: 1.9;       /* فاصله خطوط خوانا */
    color: #222;
    overflow-wrap: break-word;
}

/* ========================
   HEADINGS
   ======================== */

.blog-content h1 {
    font-size: 24px;
    margin: 22px 0 14px;
    line-height: 1.45;
    font-weight: 700;
}

.blog-content h2 {
    font-size: 22px;
    margin: 20px 0 12px;
    line-height: 1.45;
    font-weight: 700;
}

.blog-content h3 {
    font-size: 19px;
    margin: 18px 0 10px;
    line-height: 1.45;
    font-weight: 600;
}

.blog-content h4 {
    font-size: 17px;
    margin: 16px 0 8px;
    line-height: 1.5;
}

.blog-content h5 {
    font-size: 15px;
    margin: 14px 0 6px;
    line-height: 1.5;
}

.blog-content h6 {
    font-size: 14px;
    margin: 12px 0 6px;
    line-height: 1.5;
    opacity: 0.8;
}

/* ========================
   TEXT & PARAGRAPHS
   ======================== */

.blog-content p {
    margin: 14px 0;
}

/* ========================
   LISTS
   ======================== */

.blog-content ul,
.blog-content ol {
    margin: 12px 0 12px 22px;
    line-height: 1.95;
}

.blog-content ul ul,
.blog-content ol ol {
    margin-top: 6px;
}

/* ========================
   IMAGES
   ======================== */

.blog-content img {
    max-width: 100% !important;
    height: auto;
    display: block;
    margin: 16px auto;
    border-radius: 6px;
}

/* figure support */
.blog-content figure {
    max-width: 100%;
    margin: 20px auto;
    text-align: center;
}

.blog-content figure img {
    max-width: 100%;
}

/* ========================
   LINKS
   ======================== */

.blog-content a {
    color: #0d6efd;
    text-decoration: underline;
}

.blog-content a:hover {
    color: #0a58ca;
}

/* ========================
   BLOCKQUOTE
   ======================== */

.blog-content blockquote {
    border-right: 3px solid #ccc;
    padding: 12px 16px;
    margin: 20px 0;
    background: #fafafa;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.9;
}

/* ========================
   CODE & PRE
   ======================== */

.blog-content pre {
    background: #2d2d2d;
    color: #fff;
    padding: 14px;
    border-radius: 6px;
    overflow-x: auto;
    direction: ltr;
    font-size: 13px;
    line-height: 1.7;
}

.blog-content code {
    background: #eee;
    padding: 3px 5px;
    border-radius: 4px;
    font-size: 13px;
}

/* ========================
   TABLES
   ======================== */

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    display: block;
    overflow-x: auto;
}

.blog-content table th,
.blog-content table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: right;
    line-height: 1.7;
}

.blog-content table th {
    background: #f5f5f5;
    font-weight: 600;
}

/* ========================
   MEDIA (IFRAME / VIDEO)
   ======================== */

.blog-content iframe,
.blog-content video {
    max-width: 100%;
    width: 100%;
    border-radius: 6px;
}

/* ========================
   GLOBAL FIXES
   ======================== */

.blog-content *:first-child {
    margin-top: 0 !important;
}


.blog-image-holder {
    width: 100%;
    max-width: 900px; /* برای اینکه خیلی پهن نشه - قابل تغییر */
    margin: 40px auto 30px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
    box-shadow: 0 10px 25px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-image-holder:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.1);
}

.blog-image-holder img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform 0.5s ease;
}

/* افکت بزرگنمایی ملایم روی عکس هنگام هاور */
.blog-image-holder:hover img {
    transform: scale(1.05);
}

/* جلو‌گیری از بیرون‌زدن */
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}



.blog-content {
    max-width: 850px;
    margin: 40px auto;
    padding: 0 10px;
    line-height: 1.85;
    font-size: 17px;
    color: #222;
    font-weight: 400;

    /* ظاهر جذاب و مدرن */
    background: #ffffff;
    border-radius: 18px;
    padding: 30px 28px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.05);

    /* انیمیشن ظریف هنگام نمایش */
    opacity: 0;
    transform: translateY(10px);
    animation: blogFadeIn .5s ease forwards;
}

@keyframes blogFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.white-popup {
    max-width: 800px;
    margin: 0 auto;
}
