/* Reset و فونت */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
@font-face {
  font-family: 'titr';
  src: url('fonts/B Titr Bold_0.ttf') format('ttf');
}
@font-face {
  font-family: 'iran';
  src: url('fonts/fa-Iran-sans-web-bold.woff2') format('woff2');
}
@font-face {
  font-family: 'vazir';
  src: url('fonts/Vazirmatn-Bold.woff2') format('woff2');
}
/* استایل های پشم ریزون برای بخش روغن ها */
.oil-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    padding: 3rem;
    margin: 4rem auto;
    border-radius: 20px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(30, 60, 114, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 1200px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.oil-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(30, 60, 114, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(231, 76, 60, 0.1) 0%, transparent 40%);
    z-index: -1;
    animation: gradientPulse 15s ease infinite alternate;
}

@keyframes gradientPulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.5; }
    100% { opacity: 0.3; }
}

.section-title {
    font-family: 'titr' !important;
    color: #1e3c72;
    text-align: center;
    font-size: 2.5rem;
    margin-top:10px;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
    transform: translateZ(30px);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%) scaleX(0.5);
    width: 200px;
    height: 5px;
    background: linear-gradient(90deg, #1e3c72, #2a5298, #e74c3c);
    border-radius: 5px;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}
.engine-code {
    display: inline-block;
    background: #1e3c72;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    font-size: 1.8rem;
    transform: rotate(-5deg);
    box-shadow: 3px 3px 5px rgba(0,0,0,0.2);
    text-shadow: none;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.section-title:hover::after {
    transform: translateX(50%) scaleX(1);
    height: 6px;
}

.oil-info {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px dashed rgba(30, 60, 114, 0.3);
    position: relative;
    transition: all 0.5s ease;
    transform-style: preserve-3d;
}

.oil-info:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.oil-info:hover {
    transform: translateY(-5px);
}

.oil-title {
    font-family: 'iran' !important;
    color: #e74c3c;
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-right: 1.5rem;
    border-right: 6px solid #1e3c72;
    position: relative;
    display: inline-block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.oil-title::before {
    content: '⚙️';
    position: absolute;
    right: -10px;
    top: -15px;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.4s ease;
    transform: rotate(0deg);
}

.oil-title:hover {
    color: #1e3c72;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.15);
}

.oil-title:hover::before {
    opacity: 1;
    transform: rotate(360deg);
}

.content-row {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
}

.content-row.reverse {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.image-content {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    perspective: 1000px;
}

.oil-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 
        0 15px 30px rgba(0, 0, 0, 0.15),
        0 5px 10px rgba(30, 60, 114, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: rotateY(0deg) scale(1);
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

.oil-image:hover {
    transform: rotateY(10deg) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 10px 20px rgba(30, 60, 114, 0.4);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

.image-caption {
    font-family: 'vazir' !important;
    margin-top: 1.2rem;
    color: #555;
    font-size: 1rem;
    position: relative;
    display: inline-block;
}

.image-caption::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: #e74c3c;
    transition: width 0.4s ease;
}

.image-content:hover .image-caption::after {
    width: 100%;
    left: 0;
    right: auto;
}

/* استایل پایه برای جدول */
.spec-table {
    width: 100%;
     table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    font-family: 'Vazir', sans-serif;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateZ(0);
    background: linear-gradient(145deg, #ffffff 0%, #f9fafc 100%);
    z-index: 1;
}

/* افکت پس‌زمینه جدول */
.spec-table::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(30, 60, 114, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(231, 76, 60, 0.03) 0%, transparent 40%);
    z-index: -1;
    animation: tableBgPulse 12s ease infinite alternate;
}

@keyframes tableBgPulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* استایل سرستون‌ها */
.spec-table th {
    font-family: 'iran' !important;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    font-weight: 600;
    text-align: right;
    padding: 18px 25px;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.4s ease;
}

/* افکت hover برای سرستون */
.spec-table th:hover {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

/* خط زیر سرستون */
.spec-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #f1c40f);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.spec-table th:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* استایل سلول‌های معمولی */
.spec-table td {
    font-family: 'vazir' !important;
    padding: 16px 25px;
    text-align: right;
    border-bottom: 1px solid rgba(30, 60, 114, 0.08);
    transition: all 0.3s ease;
    position: relative;
    background-color: rgba(255, 255, 255, 0.7);
}

/* افکت hover برای سطرها */
.spec-table tr:hover td {
    background-color: rgba(245, 247, 250, 0.9);
    transform: translateX(-5px);
    box-shadow: inset 5px 0 0 rgba(30, 60, 114, 0.1);
}

/* استایل سطرهای زوج */
.spec-table tr:nth-child(even) td {
    background-color: rgba(249, 250, 252, 0.7);
}

/* افکت برای سلول‌ها هنگام hover */
.spec-table td:hover {
    background-color: rgba(30, 60, 114, 0.03) !important;
    color: #1e3c72;
    font-weight: 500;
}

/* نشانگر برای سلول‌های hover شده */
.spec-table td::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, #1e3c72, #2a5298);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.spec-table td:hover::before {
    height: 100%;
}

/* استایل برای اولین ستون */
.spec-table td:first-child {
    font-weight: 500;
    color: #1e3c72;
}

/* استایل برای آخرین سطر */
.spec-table tr:last-child td {
    border-bottom: none;
}

/* افکت کلیک برای سلول‌ها */
.spec-table td:active {
    transform: scale(0.98);
    background-color: rgba(30, 60, 114, 0.05) !important;
}

/* استایل برای وضعیت‌های مختلف */
.spec-table .status-active {
    position: relative;
    padding-right: 25px;
    color: #27ae60;
    font-weight: 500;
}

.spec-table .status-active::before {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
    animation: pulse 1.5s infinite;
}

.spec-table .status-inactive {
    position: relative;
    padding-right: 25px;
    color: #e74c3c;
}

.spec-table .status-inactive::before {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #e74c3c;
    border-radius: 50%;
}

@keyframes pulse {
    0% { transform: translateY(-50%) scale(1); opacity: 1; }
    50% { transform: translateY(-50%) scale(1.3); opacity: 0.7; }
    100% { transform: translateY(-50%) scale(1); opacity: 1; }
}

/* استایل برای جدول‌های striped */
.spec-table.striped tr:nth-child(even) td {
    background-color: rgba(30, 60, 114, 0.03);
}

/* استایل برای جدول‌های hoverable */
.spec-table.hoverable tr:hover td {
    background-color: rgba(30, 60, 114, 0.05);
    cursor: pointer;
}

/* استایل برای جدول‌های compact */
.spec-table.compact td,
.spec-table.compact th {
    padding: 12px 20px;
}

/* استایل برای جدول‌های bordered */
.spec-table.bordered td,
.spec-table.bordered th {
    border: 1px solid rgba(30, 60, 114, 0.1);
}

/* استایل برای جدول‌های با سایه عمیق */
.spec-table.deep-shadow {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* افکت نور برای جدول */
.table-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    pointer-events: none;
    z-index: -1;
    animation: tableGlow 6s ease infinite alternate;
    opacity: 0.6;
}

@keyframes tableGlow {
    0% { box-shadow: 0 0 15px rgba(30, 60, 114, 0.5); }
    50% { box-shadow: 0 0 25px rgba(42, 82, 152, 0.7); }
    100% { box-shadow: 0 0 20px rgba(231, 76, 60, 0.6); }
}

.oil-tips {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 15px;
    border-right: 5px solid #1e3c72;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.oil-tips::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.05) 0%, rgba(42, 82, 152, 0.05) 100%);
    z-index: -1;
}

.oil-tips:hover {
    transform: translateY(-5px) rotateX(1deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-right-color: #e74c3c;
}

.oil-tips h4 {
    font-family: 'iran' !important;
    color: #1e3c72;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
}

.oil-tips h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #1e3c72, #e74c3c);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.oil-tips:hover h4::after {
    width: 100%;
}

.oil-tips ul {
    padding-right: 1.8rem;
    color: #555;
    list-style-type: none;
}

.oil-tips li {
    font-family: 'vazir' !important;
    margin-bottom: 0.8rem;
    line-height: 1.7;
    position: relative;
    padding-right: 1.5rem;
    transition: all 0.3s ease;
}

.oil-tips li:hover {
    color: #1e3c72;
    transform: translateX(-5px);
}

.oil-tips li::before {
    content: '➤';
    position: absolute;
    right: 0;
    top: 2px;
    color: #e74c3c;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.oil-tips li:hover::before {
    right: -5px;
    color: #1e3c72;
}

/* افکت های ویژه */
.glowing-border {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    pointer-events: none;
    z-index: -1;
    animation: borderGlow 4s ease infinite alternate;
    opacity: 0.7;
}

@keyframes borderGlow {
    0% { box-shadow: 0 0 10px rgba(30, 60, 114, 0.5); }
    50% { box-shadow: 0 0 20px rgba(42, 82, 152, 0.7); }
    100% { box-shadow: 0 0 15px rgba(231, 76, 60, 0.6); }
}
/* رسپانسیو برای تبلت‌ها */
@media (max-width: 768px) {
    .engine-code {
        font-size: 1.5rem;
        padding: 0.2rem 0.6rem;
        margin-right: 0.3rem;
        transform: rotate(-3deg);
    }
}

/* رسپانسیو برای موبایل‌های کوچک */
@media (max-width: 480px) {
    .engine-code {
        font-size: 1.2rem;
        padding: 0.1rem 0.5rem;
        margin-right: 0.2rem;
        transform: rotate(0);
        display: block;
        width: fit-content;
        margin: 0.5rem auto;
    }
    
    /* برای زمانی که engine-code در کنار عنوان اصلی قرار دارد */
    .section-title .engine-code {
        display: inline-block;
        margin: 0 0.2rem;
    }
}
/* حالت عمودی برای دستگاه‌های بسیار کوچک */
@media (max-width: 360px) {
    .engine-code {
        font-size: 1rem;
        padding: 0.1rem 0.4rem;
    }
}
/* طراحی مخصوص موبایل (زیر 570px) */
@media (max-width: 870px) {
    /* تنظیم عرض ستون‌ها */
.spec-table th:first-child,
.spec-table td:first-child {
    width: 30%; /* عرض ثابت برای ستون اول */
}

.spec-table th:last-child,
.spec-table td:last-child {
    width: 30%; /* عرض ثابت برای ستون دوم */
}
        .oil-section {
        padding-top: 2rem; /* فضای بیشتر در بالای بخش */
    }
    
    .section-title {
        position: sticky;
        top: 0;
        padding: 0.8rem 1rem;
        margin: -1rem -1rem 1rem -1rem; /* خارج کردن از padding والد */
        margin-top:30px;
        margin-bottom: 10px !important;
        border-radius: 12px 12px 0 0;
        z-index: 10;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        font-size: 1.4rem !important;
        text-align: center;
        width: calc(100% + 2rem); /* گسترش به عرض کامل */
    }
    .oil-section {
        padding: 1rem;
        margin: 1rem auto;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.2rem;
        text-align: center;
        color: #1e3c72;
        order: 1; /* عنوان اول نمایش داده شود */
    }
    
    .oil-info {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(30, 60, 114, 0.2);
        order: 3; /* بعد از تصویر نمایش داده شود */
        width: 100%;
    }
    
    .oil-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        text-align: center;
        background: rgba(30, 60, 114, 0.1);
        padding: 0.5rem;
        border-radius: 8px;
    }
    
    .content-row,
    .content-row.reverse {
        flex-direction: column;
        gap: 1rem;
    }
    
    .image-content {
        order: 2; /* تصویر قبل از متن نمایش داده شود */
        margin-bottom: 1.5rem;
        width: 100%;
        text-align: center;
    }
    
    .oil-image {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    .image-caption {
        font-size: 0.8rem;
        margin-top: 0.5rem;
        color: #666;
    }
    
    .spec-table {
        width: 100%;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 1rem 0;
        font-size: 0.9rem;
    }
    
    .spec-table th,
    .spec-table td {
        padding: 8px 10px;
        min-width: 100px;
    }
    
    .spec-table th {
        font-size: 0.9rem;
    }
    
    .oil-tips {
        background: rgba(255, 255, 255, 0.95);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
        border-left: 4px solid #e74c3c;
    }
    
    .oil-tips h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        color: #e74c3c;
    }
    
    .oil-tips ul {
        padding-right: 1rem;
    }
    
    .oil-tips li {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
        line-height: 1.5;
    }
}
    /* تغییرات خاص برای دستگاه‌های خیلی کوچک */
    @media (max-width: 360px) {
        .oil-section {
            padding: 0.8rem;
        }
        
        .section-title {
            font-size: 1.3rem;
        }
        
        .oil-title {
            font-size: 1.1rem;
        }
        
        .spec-table th,
        .spec-table td {
            padding: 6px 8px;
            font-size: 0.8rem;
        }
        
        .oil-tips li {
            font-size: 0.85rem;
        }
    }