@media screen and (max-width: 768px) {

    /* جلوگیری کامل از اسکرول افقی */
    html,
    body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* محتوای نوشته */
    .single-post article,
    .single-post .entry-content,
    .single-post .post-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* همه تصاویر نوشته */
    .single-post article img,
    .single-post .entry-content img,
    .single-post .post-content img {

        display: block !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        height: auto !important;

        margin-left: auto !important;
        margin-right: auto !important;

        padding: 0 !important;
        border: 0 !important;

        box-sizing: border-box !important;

        object-fit: contain !important;
    }

    /* هر عنصری که مستقیماً تصویر را در خودش دارد */
    .single-post article p:has(img),
    .single-post .entry-content p:has(img),
    .single-post .post-content p:has(img) {

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        padding-left: 0 !important;
        padding-right: 0 !important;

        box-sizing: border-box !important;

        overflow: hidden !important;
    }

    /* Figure */
    .single-post article figure,
    .single-post .entry-content figure,
    .single-post .post-content figure {

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        padding: 0 !important;

        box-sizing: border-box !important;

        overflow: hidden !important;
    }

    /* لینک دور تصویر */
    .single-post article a:has(img),
    .single-post .entry-content a:has(img),
    .single-post .post-content a:has(img) {

        display: block !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        box-sizing: border-box !important;

        overflow: hidden !important;
    }

    /* خود تصویر داخل لینک */
    .single-post article a img,
    .single-post .entry-content a img,
    .single-post .post-content a img {

        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-width: 0 !important;

        box-sizing: border-box !important;
    }

}
@media screen and (max-width: 768px) {

    .single-post * {
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .single-post img {
        max-width: 100% !important;
        height: auto !important;
    }

}
.single-featured-image {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 30px;
    text-align: center;
    line-height: 0;
}

.single-featured-image__img {
    display: block;
    width: 100%;
    max-width: 1200px;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    margin: 0 auto;
    border-radius: 14px;
}

/* فقط موبایل */
@media (max-width: 767px) {

    .single-featured-image {
        width: 100%;
        max-width: 100%;
        margin: 0 0 20px;
    }

    .single-featured-image__img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        object-fit: contain !important;
        object-position: center !important;
        border-radius: 8px;
    }
}
.post-content-wrap p {font-size: 18px;font-weight: 400 !important;line-height: 1.9;}
h1, h2, h3 {
    font-size: 18px !important;
    font-weight: bold;
}
@media (max-width: 768px) {
  body { font-size: 15px; font-weight: bold !important;}
  h1 { font-size: 18px; }
  h2 { font-size: 18px; }
  h3 { font-size: 18px; }
}
.about-box {
    background: #00335A; /* آبی نفتی تیره */
    color: #eef1f5;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    line-height: 1.9;
    font-size: 14px;
    border-left: 6px solid #1b3b5a;
    margin-bottom: 40px;
}

.about-box h1,
.about-box h2,
.about-box h3 {
    color: #4ea8de;
    margin-bottom: 15px;
    font-size:20px;
}

.about-box ul li,
.about-box ol li {
    margin-bottom: 8px;
}

.about-box table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow: hidden;
    border-radius: 10px;
}

.about-box table th {
    background: #1b263b;
    color: #fff;
    padding: 12px;
    font-weight: bold;
}

.about-box table td {
    background: #162233;
    color: #f1f4f8;
    padding: 12px;
    border-bottom: 1px solid #1f2f45;
}

.about-box blockquote {
    background: #112031;
    border-left: 5px solid #4ea8de;
    padding: 15px 20px;
    margin: 25px 0;
    border-radius: 10px;
    color: #c9d6e3;
}

.about-box strong {
    color: #4ea8de;
}

.about-box ul li::marker,
.about-box ol li::marker {
    color: #4ea8de;
}

/* واکنش‌گرا */
@media(max-width:768px){
    .about-box{
        padding: 25px;
        font-size: 15px;
    }
}
.contact-box {
    background: #00335A; /* آبی نفتی */
    padding: 20px 25px; /* کمتر از قبل */
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    color: #eef1f5;
    text-align: center;
    border-left: 5px solid #4ea8de;
    max-width: 700px; /* عرض بیشتر */
    margin: 20px auto;
}

.contact-box h2 {
    color: #4ea8de;
    margin-bottom: 10px;
    font-size: 16px;
}

.contact-box p {
    font-size: 15px;
    line-height: 1.6;
    margin: 5px 0;
}

.contact-box a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: #4ea8de;
    color: #0d1b2a;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}

.contact-box a:hover {
    background: #72c8ff;
}
@media (min-width: 768px) {
  .d-md-block {
    display: none;
  }
}
.d-none {
  display: none;
}
figure.wp-caption {
    width: 100% !important;
    max-width: 100% !important;
}

figure.wp-caption img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
}

.wp-caption-text {
    text-align: center;
    font-size: 14px;
}
.post-title-wrap h1 {
    font-size: 16px !important;
    font-weight: bold;
    line-height: 2;
}
.header-mobile-right {
    display:none;
}
.header-mobile {
    height: 100px;
}
.post-content-wrap h2
 {
    line-height: 15px;
    font-weight: bold;
    color:#69000A;
}
.post-content-wrap h3
 {
    font-weight: bold;
    line-height: 15px;
    color:#69000A;
}
.post-content-wrap .post-content-wrap p {
    margin-bottom: 0 !important;
    text-align: justify !important;
        font-size: 18px;
    line-height: 1.9;
}
@media (max-width: 768px) {
    .post-content-wrap p {
        margin-bottom: 10px !important;
        text-align: justify !important;
        font-size:18px;
        line-height: 1.8;
    }
}
.post-content-wrap h2 {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    font-weight: bold;
    padding: 10px !important;
}
p:empty,
p:empty:before {
    display: none !important;
    margin: 5px !important;
    padding: 5px !important;
}
.post-excerpt-wrap {
    text-align: justify;
    font-size: 17px;
    font-weight: 500;
}
.post-title-wrap h2 {
    font-size: 20px !important;
    font-weight: bold;
}
.page-title h1 {
  font-size: 15px;
  font-weight: bold;
}
.post-content-wrap p {
    text-align: justify;
    line-height: 1.9;
    font-size: 18px;
}
.breadcrumb {
  font-size: 15px;
}
.blog-post-title h3 {
line-height: 40px;    
font-weight: bold;
}
.post-author-bio p {
    text-align: justify;
}
.mb-1 {
    line-height: 40px !important;
}
.text-with-icon-body p {
  text-align: justify;
}
.text-with-icon-item .text-with-icon-body {
  text-align: justify;
}
/* کراپ و یک اندازه کردن تصاویر شاخص پست‌ها */
.wp-post-image,
.post-thumbnail img,
.entry-thumbnail img {
    width: 100%;
    height: 280px;        /* ارتفاع ثابت برای همه تصاویر */
    object-fit: cover;   /* کراپ هوشمند تصویر */
    object-position: center;
    display: block;
    border-radius: 14px; /* گوشه‌های خم (اختیاری) */
}
/* کراپ واقعی تصاویر شاخص */
.elementskit-entry-thumb {
    width: 100%;
    height: 300px;        /* ارتفاع ثابت */
    overflow: hidden;     /* بیرون زدگی تصویر حذف می‌شود */
    border-radius: 12px;  /* گوشه خمیده */
}

.elementskit-entry-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* تصویر پر می‌شود و کراپ می‌شود */
    object-position: center;
    display: block;
}
/* لغو تنظیمات قدیمی */
.post-wrap img {
    max-width: 100%; /* فقط عرض محدود شود */
    height: auto !important; /* حذف ارتفاع خودکار */
}
@media (max-width: 768px) {
    .elementskit-entry-thumb img {
        height: 200px; /* ارتفاع کمتر برای موبایل */
    }
}
.offcanvas
{
    max-width: 55% !important;
}
.offcanvas-header .btn-close {
    color: #e50f0f !important;
    font-size: 20px !important;
}
.new-feature:after {
    content: "جدید";
    background-color: #61ce70;
    color: #fff;
    margin-left: 10px;
    border-radius: 4px;
    font-size: 12px;
    padding: 4px;
    font-weight: 500;
    position: absolute;
    line-height: 12px;
    left: 15px;
    top: 15px;
}
.dropdown-menu .dropdown-menu > .new-feature:after {
    left: 15px;
}
.dropdown-menu > .menu-item-has-children.new-feature:after {
    left: 35px;
}
.post-meta-action a {
  color: #555;
  display: inline-flex;
  align-items: center;
  transition: 0.3s;
}

.post-meta-action a:hover {
  color: #00aeef;
}

.post-meta-action svg {
  vertical-align: middle;
}
.post-meta-row {
    display: flex;
    align-items: center;
    gap: 15px; /* فاصله بین آیتم‌ها */
    flex-wrap: wrap; /* ریسپانسیو موبایل */
}

.post-meta-row .post-views-inline,
.post-meta-row .kk-star-rating-inline {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: #555;
}

.post-meta-row .kk-star-rating-inline .kk-star {
    margin-right: 4px; /* فاصله بین ستاره‌ها */
}
.project-features-wrapper {
    margin: 0px 0;
}

.project-features-title {
    margin-bottom: 16px;
    font-size: 15px;
}

.project-features {
    display: grid;
    gap: 12px;
}

/* آیتم */
.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #6c757d;
    background: #f8f9fa;
    height: 44px;
}

.feature-item.is-hidden {
    display: none;
}

/* SVG */
.feature-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.feature-icon circle {
    fill: none;
    stroke: #2ecc71;
    stroke-width: 2;
}

.feature-icon path {
    fill: none;
    stroke: #2ecc71;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* موبایل */
@media (max-width: 767px) {
    .project-features {
        grid-template-columns: repeat(3, 1fr);
        font-size: 12px;
    }
}

/* دسکتاپ */
@media (min-width: 768px) {
    .project-features {
        grid-template-columns: repeat(8, 1fr);
    }
}

/* دکمه */
.features-toggle {
    margin-top: 16px;
    background: none;
    border: 1px solid #6c757d;
    color: #6c757d;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
.post-header-wrap {
    padding: 20px !important;
}
/* فرم کامنت */
.custom-comment-form {
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    padding: 24px;
    border-radius: 12px;
    max-width: 700px;
    margin: 30px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.ccf-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #343a40;
}

.ccf-note {
    font-size: 14px;
    color: #d9534f;
    margin-top: 8px;
}

/* textarea */
.custom-comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #ced4da;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s;
}

.custom-comment-form textarea:focus {
    outline: none;
    border-color: #6c757d;
    box-shadow: 0 0 8px rgba(108,117,125,0.2);
}

/* دکمه ارسال */
.custom-comment-form input[type="submit"] {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 12px;
}

.custom-comment-form input[type="submit"]:hover {
    background: #495057;
}

/* ریسپانسیو موبایل */
@media (max-width: 767px) {
    .custom-comment-form {
        padding: 16px;
        border-radius: 8px;
    }

    .ccf-title {
        font-size: 16px;
    }

    .custom-comment-form input[type="submit"] {
        width: 100%;
    }
}
/* ===============================
   Professional Comment Form - Blue Background
   =============================== */

.post-comment-form-wrap {
    background: linear-gradient(180deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 16px;
    padding: 30px;
    margin-top: 40px;
    border: 1px solid #90caf9;
    box-shadow: 0 12px 25px rgba(13,110,253,0.15);
    transition: all .3s ease;
}

/* جداکننده ظریف بالا */
.post-comment-form-wrap::before {
    content: "";
    display: block;
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, #0d6efd, #3b82f6);
    border-radius: 4px;
    margin-bottom: 18px;
}

/* فرم داخلی */
.comments-form-wrap {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid #dbe6f7;
}

/* textarea */
.post-comment-form-wrap textarea {
    background: #f1f7fe;
    border-radius: 12px;
    border: 1px solid #90caf9;
    padding: 14px 44px 14px 14px;
    font-size: 15px;
    resize: vertical;
    transition: all .25s ease;
    color: #1f2937;
}

/* placeholder */
.post-comment-form-wrap textarea::placeholder {
    color: #6b7280;
}

/* input */
.post-comment-form-wrap input.form-control {
    background: #f1f7fe;
    border-radius: 12px;
    border: 1px solid #90caf9;
    padding: 12px 42px 12px 14px;
    font-size: 14px;
    transition: all .25s ease;
    color: #1f2937;
}

.post-comment-form-wrap input.form-control::placeholder {
    color: #6b7280;
}

/* focus & hover */
.post-comment-form-wrap textarea:hover,
.post-comment-form-wrap input.form-control:hover {
    border-color: #0d6efd;
    background-color: #ffffff;
}

.post-comment-form-wrap textarea:focus,
.post-comment-form-wrap input.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13,110,253,.12);
    transform: translateY(-1px);
    outline: none;
}

/* آیکون داخل input */
.input-user {
    position: relative;
}

.input-user::before {
    content: "👤";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    opacity: 0.6;
    pointer-events: none;
}

/* textarea icon */
.post-comment-form-wrap textarea {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%239ca3af' viewBox='0 0 24 24'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px top 14px;
    background-size: 18px;
}

/* دکمه ارسال */
.post-comment-form-wrap button#submit {
    background: linear-gradient(135deg, #0d6efd, #3b82f6);
    border: none;
    border-radius: 50px;
    padding: 10px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    transition: all .3s ease;
    box-shadow: 0 8px 20px rgba(13,110,253,.3);
}

.post-comment-form-wrap button#submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(13,110,253,.4);
}

/* reply / nested comment */
.comment-respond {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid #dbe6f7;
}

.comment-respond.comment-reply {
    background: #dbeeff; /* کمی تیره‌تر */
    border-color: #90caf9;
}

/* لینک لغو پاسخ */
#cancel-comment-reply-link {
    font-size: 13px;
    color: #dc2626;
    margin-right: 8px;
    text-decoration: none;
}

#cancel-comment-reply-link:hover {
    text-decoration: underline;
}

/* موبایل */
@media (max-width: 768px) {
    .post-comment-form-wrap {
        padding: 20px;
        border-radius: 12px;
    }

    .comments-form-wrap {
        padding: 18px;
    }

    .input-user::before {
        right: 12px;
        font-size: 15px;
    }

    .post-comment-form-wrap textarea {
        background-position: right 12px top 12px;
    }

    .post-comment-form-wrap button#submit {
        width: 100%;
        padding: 12px;
    }
}
/* ===============================
   Professional Comments Style
   =============================== */

.post-comment-wrap {
    margin-top: 40px;
}

/* عنوان بخش کامنت‌ها */
.post-comment-wrap .title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1f2937;
    position: relative;
    padding-bottom: 10px;
}

.post-comment-wrap .title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #3b82f6);
    border-radius: 4px;
}

/* لیست کامنت‌ها */
.comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* هر کامنت */
.comments-list .comment {
    margin-bottom: 24px;
    padding: 18px 20px;
    background: #f1f7fe;
    border-radius: 14px;
    border: 1px solid #dbe6f7;
    box-shadow: 0 4px 15px rgba(13,110,253,0.08);
    transition: all 0.3s ease;
}

.comments-list .comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13,110,253,0.15);
}

/* ساختار داخلی کامنت */
.comments-list .d-flex {
    display: flex;
    gap: 14px;
}

/* آواتار */
.post-comment-thumb img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #90caf9;
    object-fit: cover;
    transition: all 0.3s ease;
}

.post-comment-thumb img:hover {
    transform: scale(1.05);
}

/* محتوا */
.post-comment-content {
    flex: 1;
    font-size: 15px;
    color: #1f2937;
}

/* نام کامنت‌دهنده */
.post-comment-content strong {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

/* زمان و آیکون */
.post-comment-content time {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

/* متن کامنت */
.post-comment-content p {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* لینک پاسخ */
.post-comment-content .comment-reply-link {
    display: inline-block;
    font-size: 13px;
    color: #0d6efd;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.post-comment-content .comment-reply-link:hover {
    background: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
}

/* کامنت nested (Reply) */
.comments-list .children {
    margin-left: 60px;
    margin-top: 12px;
}

/* موبایل */
@media (max-width: 768px) {
    .comments-list .d-flex {
        flex-direction: column;
        gap: 12px;
    }

    .post-comment-thumb img {
        width: 60px;
        height: 60px;
    }

    .comments-list .children {
        margin-left: 20px;
    }
}
/* ====== Luxury Real Estate Image Style ====== */
.single-post .entry-content img,
.single article img,
.wp-block-image img {

    width: 100% !important;
    max-width: 900px !important;
    height: 480px !important;

    object-fit: cover !important;
    display: block !important;
    margin: 0px auto !important;

    border-radius: 18px !important;

    /* قاب شیشه‌ای لوکس */
    background: linear-gradient(180deg, #ffffff, #f7f7f7);
    padding: 10px;

    /* سایه عمقی مخصوص املاک */
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.12),
        0 30px 60px rgba(0, 0, 0, 0.08) !important;

    transition: all 0.4s ease;
}
.single-post .entry-content img:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.18),
        0 40px 80px rgba(0, 0, 0, 0.12) !important;
}
@media (max-width: 768px) {
    .single-post .entry-content img {
        height: 240px !important;
        border-radius: 14px !important;
        padding: 6px !important;
    }
}
.page-title-wrap {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}
/* Fix All WordPress Tables */
.entry-content table,
.elementor-widget-container table,
.wp-block-table table,
table {
    display: block !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    box-sizing: border-box;
}

.entry-content table::-webkit-scrollbar,
.elementor-widget-container table::-webkit-scrollbar {
    height: 6px;
}

.entry-content table td,
.entry-content table th,
.elementor-widget-container table td,
.elementor-widget-container table th {
    white-space: nowrap;
}
.postTitle{
    color:#1f2937;
    text-decoration:none;
}

.postTitle:hover{
    color:#1f2937;
    text-decoration:none;
}
