/* ======================================
   جدول مشخصات خودرو - پلاگین چرخان
   هماهنگ با استایل مقالات آسترا
====================================== */

/* هدر جدول */

.entry-content table.car-spec-table thead {
    background: #f4f4f4;
}

.entry-content table.car-spec-table thead th {
    padding: 14px 16px;
    text-align: right;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #d09a40; /* رنگ سازمانی */
}

.car-spec-table td {
    text-align: center;
    font-weight: 500;
}



/* ستون عنوان فیلدها */
.entry-content table.car-spec-table th:first-child,
.entry-content table.car-spec-table td:first-child {
    background-color: #e7e6e6;
    width: 200px; /* عرض ثابت ستون اول */
}

/* سلول‌ها */
.entry-content table.car-spec-table td {
    padding: 12px 16px;
    text-align: right; /* راست چین */
    border-bottom: 1px solid #eee;
    color: #444;
}

/* ردیف‌های زوج برای خوانایی بهتر */
.entry-content table.car-spec-table tbody tr:nth-child(even) {
    background: #fafafa;
}

/* افکت hover خیلی ملایم */
.entry-content table.car-spec-table tbody tr:hover {
    background: rgba(208, 154, 64, 0.05);
    transition: background 0.2s ease;
}

/* حذف خط آخر */
.entry-content table.car-spec-table tbody tr:last-child td {
    border-bottom: none;
}

/* واکنش‌گرا برای موبایل */
/* واکنش‌گرا برای موبایل */
@media (max-width: 768px) {
    .entry-content table.car-spec-table {
        font-size: 14px;
        table-layout: auto; /* یا fixed اگر خواستی جدول ثابت باشه */
        width: 100%;
    }

    .entry-content table.car-spec-table th:first-child,
    .entry-content table.car-spec-table td:first-child {
        width: 35%; /* ستون عنوان کوچکتر */
    }

    .entry-content table.car-spec-table th:not(:first-child),
    .entry-content table.car-spec-table td:not(:first-child) {
        width: 65%; /* ستون مقدارها */
    }

    .entry-content table.car-spec-table th,
    .entry-content table.car-spec-table td {
        padding: 8px 6px; /* فاصله مناسب */
        text-align: right;
    }
}

/* جدول مشخصات خودرو */
.entry-content table.car-spec-table {
    text-align: right; /* کل جدول راست چین */
}

.entry-content table.car-spec-table th,
.entry-content table.car-spec-table td {
    text-align: right; /* سلول‌ها هم راست چین */
    vertical-align: middle;
}
/* پس‌زمینه ستون عنوان فیلدها */
.entry-content table.car-spec-table th:first-child,
.entry-content table.car-spec-table td:first-child {
    background-color: #e7e6e6;
}

/* اگه بخوای متن وسط باشه */
.entry-content table.car-spec-table th:first-child {
    font-weight: 600;
}

/* راست‌چین بودن همچنان حفظ شود */
.entry-content table.car-spec-table th,
.entry-content table.car-spec-table td {
    text-align: right;
}
/* ======================================
   عنوان بالای هر گروه جدول مشخصات خودرو
====================================== */

.car-specs-wrapper.entry-content h3 {
    font-size: 18px !important;          /* اندازه فونت مناسب */
    font-weight: 700 !important;         /* بولد */
    color: #d09a40 !important;           /* رنگ سازمانی هماهنگ با جدول */
    background: #f9f9f9 !important;      /* پس‌زمینه ملایم */
    padding: 10px 16px !important;       /* فاصله داخلی */
    border-right: 4px solid #d09a40 !important; /* خط رنگی سمت چپ */
    border-radius: 4px !important;       /* گوشه‌های کمی گرد */
    margin: 20px 0 10px 0 !important;    /* فاصله از جدول و متن قبلی */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important; /* سایه ملایم */
    text-align: right !important;        /* راست‌چین کردن متن */
}
.car-specs-wrapper.entry-content table thead {
    display: none !important;
}

 
 /* ======================================
جدول متمایز چرخان
====================================== */


table.car-spec-table.car-spec-charkhan {
    /* حفظ ظاهر مدرن ولی کمی متفاوت */
    background-color: #fffdf5;       /* پس‌زمینه کمی گرم‌تر */
    border: 2px solid #d0a251;       /* رنگ سازمانی کمی تیره‌تر */
    border-radius: 8px;               /* گوشه‌های کمی گردتر */
    box-shadow: 0 4px 6px rgba(208,154,81,0.1); /* سایه ملایم */
}

/* ستون عنوان فیلدها */
table.car-spec-table.car-spec-charkhan th:first-child,
table.car-spec-table.car-spec-charkhan td:first-child {
    background-color: #f3e6c9;        /* کمی متفاوت با جدول اصلی */
    font-weight: 600;
    color: #4a3f2e;                  /* رنگ متن کمی متفاوت و شیک */
}

/* سلول‌ها */
table.car-spec-table.car-spec-charkhan td {
    color: #4a3f2e;
}

/* ردیف‌های زوج */
table.car-spec-table.car-spec-charkhan tbody tr:nth-child(even) {
    background: #fef9f2; /* کمی گرم‌تر از جدول اصلی */
}

/* افکت hover */
table.car-spec-table.car-spec-charkhan tbody tr:hover {
    background: rgba(208, 154, 81, 0.08); /* کمی تیره‌تر ولی ملایم */
}

/* عنوان بالای جدول */
table.car-spec-table.car-spec-charkhan + h3,
table.car-spec-table.car-spec-charkhan ~ h3 {
    color: #c98f1c;
    border-right-color: #c98f1c;
    background: #fef9f2;
}

/* واکنش‌گرا */
@media (max-width: 768px) {
    table.car-spec-table.car-spec-charkhan th:first-child,
    table.car-spec-table.car-spec-charkhan td:first-child {
        width: 35%; /* ستون عنوان کمی باریک‌تر */
    }

    table.car-spec-table.car-spec-charkhan th:not(:first-child),
    table.car-spec-table.car-spec-charkhan td:not(:first-child) {
        width: 65%; /* ستون مقدارها */
    }
}
/* ======================================
   Car Highlights Modern Box
====================================== */ 

table.car-spec-table.car-spec-charkhan {
    background: #fff8e1; /* رنگ زمینه متفاوت */
    border: 2px solid #d09a40; /* حاشیه رنگ سازمانی */
    border-radius: 8px;
}

table.car-spec-table.car-spec-charkhan th {
    background: #f5e6c0;
    color: #4a3f2e;
}

table.car-spec-table.car-spec-charkhan td {
    color: #4a3f2e;
}

/* ======================================
   Car Highlights Modern Box
====================================== */

/* کانتینر کل */
.car-highlights.premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px; /* قبلاً 10px → 20% کمتر */
    margin: 4px 0; /* قبلاً 5px */
    padding: 0;
}

/* هر آیتم */
.car-highlights.premium .highlight-item {
    position: relative;
    background: linear-gradient(145deg, #f9f6f2, #f2ede6);
    border-radius: 14px;
    padding: 9.6px 16px; /* قبلاً 12px 20px */
    display: flex;
    align-items: center;
    gap: 14.4px; /* قبلاً 18px */
    transition: all 0.35s ease;
    border: 1px solid rgba(208,154,64,0.15);
    box-shadow: 0 2.8px 8.8px rgb(0 0 0 / 18%); /* قبلاً 0 2px 11px */
    overflow: hidden;
}

/* نوار رنگی بالا */
.car-highlights.premium .highlight-item::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 3.2px; /* قبلاً 4px */
    width: 100%;
    background: linear-gradient(90deg, #d09a40, #f5d08a);
}

/* هاور لوکس */
.car-highlights.premium .highlight-item:hover {
    transform: translateY(-4.8px); /* قبلاً -6px */
    box-shadow: 0 4px 16px rgba(0,0,0,0.20); /* قبلاً 0 5px 20px */
}

/* آیکون */
.highlight-icon {
    width: 48px; /* قبلاً 60px */
    height: 48px; /* قبلاً 60px */
    background: linear-gradient(145deg, #d09a40, #b57f2d);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px; /* قبلاً 20px */
    flex-shrink: 0;
    box-shadow: 0 4.8px 11.2px rgba(208,154,64,0.35); /* قبلاً 0 6px 14px */
}

/* svg داخل آیکن */
.highlight-icon svg {
    width: 25.6px; /* قبلاً 32px */
    height: 25.6px; /* قبلاً 32px */
    fill: #fff;
}

/* متن */
.highlight-content {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.highlight-label {
    display: block;
    font-size: 11.2px; /* قبلاً 14px */
    color: #8c7e6e;
    margin-bottom: 4.8px; /* قبلاً 6px */
}

.highlight-value {
    display: block;
    font-size: 16px; /* قبلاً 20px */
    font-weight: 700;
    color: #4a3f2e;
}

/* ======================================
   Brand Shortcode Box
====================================== */

.car-brand-wrapper .car-brand-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: contents; /* اجازه میده li ها تو گرید قرار بگیرن */
}

.car-brand-wrapper .car-brand-item {
    /* background: linear-gradient(145deg, #f9f6f2, #f2ede6); */
    border-radius: 12px;
    padding: 10px;
    transition: all .35s ease;
    /* border: 1px solid rgb(194 140 54); */
    /* box-shadow: 1px 1px 5px 2px rgb(0 0 0 / 11%); */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: #4a3f2e;
    overflow: hidden;
}

.car-brand-wrapper .car-brand-item:hover {
    transform: translateY(-6px);
    /* box-shadow: 1px 1px 4px 2px rgb(0 0 0 / 23%); */
}

.car-brand-wrapper .car-brand-logo {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    border-radius: 4px;
}

.car-brand-wrapper .car-brand-name {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

/* موبایل */
@media (max-width: 992px){
    .car-brand-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px){
    .car-brand-wrapper {
        grid-template-columns: 1fr;
    }
}


/* ======================================
   Car Title 
====================================== */


.templately-heading-title {
    text-align: center; /* وسط چین */
    position: relative;
    display: inline-block;
}



/* موبایل */
@media (max-width: 768px) {
    .templately-heading-title {
        font-size: 24px;
    }

    .templately-heading-title::after {
        width: 40px;
        height: 3px;
    }
}
 /* ======================================
   Car Breadcrumb 
====================================== */

.car-breadcrumb {
    font-size:14px;
    margin-bottom:15px;
    color:#777;
}

.car-breadcrumb a {
    text-decoration:none;
    color:#444;
}

.car-breadcrumb a:hover {
    color:#000;
}

.car-breadcrumb span {
    font-weight:600;
    color:#000;
}



/* ======================================
   CHARKHAN PREMIUM HIGHLIGHT
====================================== */

/* WRAPPER */
.charkhan-highlight-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    direction: rtl;
    background: #f3e6c9; /* تغییر به کرم روشن */
    padding: 30px 10px;
    border-radius: 12px;
}

/* ITEM */
.charkhan-highlight-item {
    position: relative;
    padding: 18px 16px;
    border-radius: 0px 0px 12px 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1)); /* هماهنگ با پس‌زمینه روشن */
    backdrop-filter: blur(6px);
    transition: all .35s ease;
}

.charkhan-highlight-item:hover{
    transform: translateY(-4px);
    background: linear-gradient(145deg, rgba(255,255,255,0.4), rgba(255,255,255,0.15));
}

/* خط بالایی */
.charkhan-highlight-item::after{
    content:"";
    position:absolute;
    top:0;
    right:0;
    width:100%;
    height:3px;
    background:var(--accent,#d09a40); /* تغییر به طلایی هماهنگ */
    opacity:.9;
}

/* LABEL */
.charkhan-highlight-label{
    display:block;
    font-size:13px;
    color:#7a6241; /* خاکستری-طلایی هماهنگ */
    margin-bottom:6px;
    font-weight:500;
}

/* VALUE */
.charkhan-highlight-value{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:16px;
    font-weight:700;
    color:#4a3f2e; /* طلایی تیره لوکس */
}

/* ================= SVG ICON BASE ================= */
.charkhan-highlight-value::before{
    content:"";
    width:20px;
    height:20px;
    display:inline-block;
    background-size:contain;
    background-repeat:no-repeat;
    background-position:center;
    flex-shrink:0;
}

/* ================= STATUS COLORS + SVG ================= */

/* GOOD */
.status-good::after{
    background:linear-gradient(90deg,#8bc34a,#689f38); /* سبز طبیعی و ملایم */
}
.status-good .charkhan-highlight-value::before{
    background-image:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%238bc34a'>\
<path d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1.2 14.2l-3.6-3.6 1.4-1.4 2.2 2.2 4.6-4.6 1.4 1.4-6 6z'/>\
</svg>");
}

/* MEDIUM */
.status-medium::after{
    background:linear-gradient(90deg,#ffb74d,#ffa726); /* نارنجی-طلایی ملایم */
}
.status-medium .charkhan-highlight-value::before{
    background-image:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffb74d'>\
<path d='M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z'/>\
</svg>");
}

/* BAD */
.status-bad::after{
    background:linear-gradient(90deg,#e57373,#d32f2f); /* قرمز ملایم */
}
.status-bad .charkhan-highlight-value::before{
    background-image:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e57373'>\
<path d='M12 2a10 10 0 100 20 10 10 0 000-20zm3.5 13.1L14.1 16 12 13.9 9.9 16l-1.4-1.4L10.6 12 8.5 9.9 9.9 8.5 12 10.6l2.1-2.1 1.4 1.4L13.4 12l2.1 2.1z'/>\
</svg>");
}

/* NEUTRAL */
.status-neutral::after{
    background:linear-gradient(90deg,#90a4ae,#607d8b); /* خاکستری ملایم */
}
.status-neutral .charkhan-highlight-value::before{
    background-image:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2390a4ae'>\
<circle cx='12' cy='12' r='5'/>\
</svg>");
}

/* ================= MOBILE ================= */
@media (max-width:1024px){
    .charkhan-highlight-wrapper{
        grid-template-columns:repeat(2,1fr);
    }
}

@media (max-width:480px){
    .charkhan-highlight-wrapper{
        gap:12px;
    }

    .charkhan-highlight-item{
        padding:14px;
    }

    .charkhan-highlight-value{
        font-size:14px;
    }
}


//compare 
/* ==============================
   Wrapper کل بخش مقایسه
============================== */

.charkhan-compare-wrapper {
    margin: 30px 0;
    text-align: right; /* راست چین */
    font-family: Tahoma, sans-serif;
    color: #4a3f2e;
}

/* ==============================
   هدر با عکس و نام خودروها
============================== */
.charkhan-compare-header {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
    text-align: center;
	    padding-right: 200px;
}

.charkhan-compare-car {
    flex: 1;
}

.charkhan-compare-thumb {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.charkhan-compare-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #d09a40; /* رنگ سازمانی */
}

/* ==============================
   عنوان گروه‌ها
============================== */
.charkhan-compare-group-title {
    font-size: 18px;
    font-weight: 700;
    color: #d09a40;
    background: #f9f9f9;
    padding: 10px 16px;
    border-right: 4px solid #d09a40;
    border-radius: 4px;
    margin: 20px 0 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: right;
}

/* ==============================
   جدول مقایسه
============================== */
.charkhan-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: #fffdf5;
    border: 2px solid #d09a40;
    border-radius: 10px;
    overflow: hidden;
    table-layout: fixed;
}

/* ردیف‌ها */
.charkhan-compare-row:nth-child(even) {
    background: #fef9f2;
}

.charkhan-compare-row:hover {
    background: rgba(208, 154, 81, 0.08);
    transition: background 0.2s ease;
}

/* ستون عنوان فیلدها */
.charkhan-compare-label {
    background-color: #e7e6e6;
    width: 200px;
    font-weight: 600;
    padding: 12px 16px;
    text-align: right;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

/* ستون‌های خودروها */
.charkhan-compare-value {
    text-align: center;
    padding: 12px 16px;
    color: #4a3f2e;
    font-weight: 500;
    border-bottom: 1px solid #eee;
}

/* واکنش‌گرایی برای موبایل */
/* واکنش‌گرایی موبایل اصلاح شده */
@media (max-width: 768px) {
    .charkhan-compare-header {
         flex-direction: row; /* ستونی به ردیفی تغییر دادیم */
        justify-content: space-between;
        gap: 10px;
        text-align: center;
        padding-right: 0; /* برداشتن پدینگ دسکتاپ */
    }

    .charkhan-compare-table {
        table-layout: fixed; /* مهم: عرض ستون‌ها برابر می‌شود */
        font-size: 14px;
        width: 100%;
    }
	 .charkhan-compare-car {
        flex: 1 1 48%; /* هر خودرو تقریبا نصف عرض */
    }

    .charkhan-compare-thumb {
        max-width: 100%;
        height: auto;
    }

    .charkhan-compare-label {
        width: 35%;
        padding: 8px 6px;
    }

    .charkhan-compare-value {
        width: 32.5%; /* هر ستون خودرو نصف باقی‌مانده */
        padding: 8px 6px;
    }
}

.charkhan-compare-box {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.charkhan-car-select {
    flex: 0 0 40%;
    min-width: 180px;
    border: 1px solid #d09a40;
    border-radius: 12px;
    padding: 8px 12px;
    background: #fffdf5;
    color: #4a3f2e;
}

.charkhan-compare-btn {
    flex: 0 0 20%;
    background: #d09a40;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.charkhan-compare-btn:hover {
    background: #c98f1c;
}

/* موبایل */
@media (max-width:768px){
    .charkhan-compare-box {
        flex-direction: column;
    }

    .charkhan-car-select,
    .charkhan-compare-btn {
        flex: 1 1 100%;
        width: 100%;
    }
}

.charkhan-compare-highlight {
    background-color: #66bb66 !important;
    font-weight: bold !important;
}