/* ========================================
   جدول تبلیغات - Premium Pricing Table
   ======================================== */

* {
  box-sizing: border-box;
}

body {
  color: #333;
}

/* ==========================================
   SECTION قبل جدول
   ========================================== */
.containerads {
	width: 100%;
	margin-right: auto;
	margin-left: auto;
	padding: 0 16px;
	background: linear-gradient(125deg, #f2efe9 0%, #F9EF9A 100%);
	margin-top: -15px;
	position: relative;
	z-index: 0;
}

.containerads::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        35deg,
        rgba(184, 134, 11, 0.01) 7px,
        rgba(184, 134, 11, 0.05) 10px,
        transparent 20px,
        transparent 25px
    );
    pointer-events: none;
    z-index: 1;
    opacity: 1;
}

.containerads::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 95% 15%, rgba(212, 175, 55, 0.1) 0%, transparent 25%),
                      radial-gradient(circle at 5% 85%, rgba(212, 175, 55, 0.1) 0%, transparent 25%);
    pointer-events: none;
    z-index: 1;
    opacity: 1;
}

.containerads > * {
    position: relative;
    z-index: 2;
}

.rates-ads {
    background: transparent;
    display: block;
    height: auto;
    min-height: 580px;
    margin-top: -100px;
}

.pre-table-section {
    width: 100%;
    padding: 60px 20px;
    margin-bottom: 0;
    margin-top: -50px;
}

.pre-table-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* بخش معرفی */
.intro-section {
    text-align: center;
    margin-bottom: 60px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.intro-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.intro-text {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* عنوان بخش */
.section-title-ads {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
    margin-top: -50px;
}

.section-title-ads:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #f8931b, #f5a81f);
    border-radius: 2px;
}

/* بخش فوائد */
.benefits-section {
    margin-bottom: 60px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.benefit-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-top: 4px solid #f0f0f0;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(248, 147, 27, 0.15);
    border-top-color: #f8931b;
}

.benefit-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.benefit-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* بخش آمار */
.stats-section {
    margin-bottom: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item {
    background: linear-gradient(135deg, #f8931b 0%, #f5a81f 100%);
    padding: 35px;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    box-shadow: 0 8px 20px rgba(248, 147, 27, 0.2);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.95;
}

/* بخش موقعیت‌ها */
.positions-section {
    margin-bottom: 60px;
}

.positions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.position-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.position-card:hover {
    border-color: #f8931b;
    box-shadow: 0 8px 20px rgba(248, 147, 27, 0.1);
}

.position-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.position-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.position-card p {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.position-label {
    display: inline-block;
    background: #fffaf5;
    color: #f8931b;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* ==========================================
   جدول اصلی - اصلاح شده (وسط چین)
   ========================================== */

.table-wrapper {
    padding: 50px 30px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    margin-bottom: 0;
    background: #fff;
    box-sizing: border-box;
}

/* سرصفحه جدول */
.table-header-section {
    text-align: center;
    margin-bottom: 50px;
}

.table-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    width: auto;
}

.table-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 35px;
    line-height: 1.6;
    font-weight: 400;
}

/* ویژگی‌های جدول */
.pricing-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: #f8931b;
    background: #fffaf5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 147, 27, 0.1);
}

.feature-icon {
    font-size: 18px;
    color: #f8931b;
    font-weight: bold;
    width: 24px;
    text-align: center;
}

.feature-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* کنتینر جدول */
.table-container {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    margin-bottom: 40px;
}

/* جدول */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

/* سرصفحه جدول */
.pricing-table thead {
    background: linear-gradient(135deg, #f8931b 0%, #f5a81f 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.pricing-table thead th {
    padding: 22px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    border-bottom: 3px solid #e8820d;
    letter-spacing: 0.5px;
}

/* ردیف‌های جدول */
.pricing-table tbody tr {
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.pricing-table tbody tr:hover {
    background-color: #fffaf5;
    box-shadow: inset 4px 0 0 #f8931b;
}

.pricing-table tbody tr:last-child {
    border-bottom: none;
}

.pricing-table tbody tr.mobile-row {
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    font-weight: 500;
}

/* سلول‌ها */
.pricing-table td {
    padding: 18px 16px;
    text-align: center;
    font-size: 14px;
    color: #333;
    vertical-align: middle;
}

/* نام باکس */
.pricing-table .box-name {
    font-weight: 700;
    background-color: #fff9f5;
    color: #f8931b;
    min-width: 70px;
    text-align: center;
    font-size: 17px;
    border-radius: 4px;
    padding: 18px 12px;
}

.pricing-table tbody tr:hover .box-name {
    background-color: #ffe6c5;
}

/* بج اندازه */
.badge-size {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}

/* ابعاد */
.dimension {
    font-weight: 600;
    color: #f8931b;
    width: auto;
}

/* سلول قیمت */
.price-cell {
    font-weight: 600;
}

.price {
    display: inline-block;
    background: linear-gradient(135deg, #fff9f5 0%, #ffe6c5 100%);
    color: #d97312;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid #f8931b;
}

/* توجه جدول */
.table-note {
    background: linear-gradient(135deg, #fff9f5 0%, #fff5eb 100%);
    border-right: 4px solid #f8931b;
    border-radius: 10px;
    padding: 35px;
    font-size: 15px;
    color: #333;
    line-height: 1.8;
}

.table-note h3 {
    color: #f8931b;
    margin: 0 0 18px 0;
    font-size: 18px;
    font-weight: 600;
}

.table-note ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.table-note li {
    padding: 10px 0;
    border-bottom: 1px dashed #f0e0d0;
}

.table-note li:last-child {
    border-bottom: none;
}

.table-note strong {
    color: #f8931b;
}

/* CTA نوت */
.cta-note {
    background: #fff;
    border: 2px solid #f8931b;
    border-radius: 8px;
    padding: 24px;
    margin-top: 25px;
    text-align: center;
    font-weight: 500;
}

.cta-link {
    color: #f8931b;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border-bottom: 2px solid #f8931b;
}

.cta-link:hover {
    color: #d97312;
    border-bottom-color: #d97312;
}

/* ==========================================
   SECTION بعد جدول
   ========================================== */

.post-table-section {
    width: 100%;
    padding: 80px 20px;
}

.post-table-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* بخش فرآیند */
.process-section {
    margin-bottom: 80px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.process-step {
    background: #fff;
    padding: 35px 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(248, 147, 27, 0.12);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f8931b 0%, #f5a81f 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.process-step h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* سوالات متداول */
.faq-section {
    margin-bottom: 80px;
}

.faq-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 25px;
}

.faq-item {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-right: 4px solid #f0f0f0;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-right-color: #f8931b;
    box-shadow: 0 8px 20px rgba(248, 147, 27, 0.1);
}

.faq-question {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.faq-answer {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* بخش درخواست قیمت */
.quote-section {
    background: #fff;
    padding: 50px;
    border-radius: 12px;
    margin-bottom: 80px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.quote-text {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.quote-features {
    margin-bottom: 30px;
}

.quote-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.quote-features li {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.quote-btn {
    display: inline-block;
    background: linear-gradient(135deg, #f8931b 0%, #f5a81f 100%);
    color: #fff;
    padding: 14px 35px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(248, 147, 27, 0.3);
}

/* بخش CTA نهایی */
.final-cta-section {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, #fff9f5 0%, #fff5eb 100%);
    border-radius: 12px;
}

.final-cta-section h2 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.final-cta-section p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #f8931b 0%, #f5a81f 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(248, 147, 27, 0.3);
}

.btn-secondary {
    background: #fff;
    color: #f8931b;
    border: 2px solid #f8931b;
}

.btn-secondary:hover {
    background: #f8931b;
    color: #fff;
}

/* ==========================================
   واکنش‌گرایی جدول برای موبایل (حذف ستون‌های اضافی)
   ========================================== */

@media (max-width: 992px) {
    /* مخفی کردن ستون "حجم" و "فرمت" در تبلت */
    .pricing-table thead th:nth-child(4),
    .pricing-table thead th:nth-child(6) {
        display: none;
    }
    
    .pricing-table td:nth-child(4),
    .pricing-table td:nth-child(6) {
        display: none;
    }
}

@media (max-width: 768px) {
    /* مخفی کردن ستون "مدت" و "ابعاد" و "حجم" و "فرمت" در موبایل */
    .pricing-table thead th:nth-child(3),
    .pricing-table thead th:nth-child(4),
    .pricing-table thead th:nth-child(5),
    .pricing-table thead th:nth-child(6) {
        display: none;
    }
    
    .pricing-table td:nth-child(3),
    .pricing-table td:nth-child(4),
    .pricing-table td:nth-child(5),
    .pricing-table td:nth-child(6) {
        display: none;
    }
    
    /* اسکرول افقی برای ستون‌های باقیمانده */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -12px;
        width: calc(100% + 24px);
        border-radius: 0;
    }
    
    .pricing-table {
        min-width: 350px;
        width: 100%;
    }
    
    /* کاهش فاصله‌ها */
    .pricing-table thead th {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .pricing-table thead th:nth-child(1),
    .pricing-table thead th:nth-child(2),
    .pricing-table thead th:nth-child(7) {
        display: table-cell;
    }
    
    .pricing-table td {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .pricing-table .box-name {
        font-size: 13px;
        padding: 12px 8px;
        min-width: 50px;
    }
    
    .price {
        padding: 4px 8px;
        font-size: 11px;
        white-space: nowrap;
    }
    
    .table-wrapper {
        padding: 20px 12px;
    }
    
    /* تنظیم سایر بخش‌ها */
    .faq-container {
        grid-template-columns: 1fr;
    }
    
    .process-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .positions-grid {
        grid-template-columns: 1fr;
    }
    
    .intro-section {
        padding: 20px;
    }
    
    .intro-title {
        font-size: 22px;
    }
    
    .quote-section {
        padding: 30px 20px;
    }
    
    .quote-features ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .final-cta-section {
        padding: 30px 20px;
    }
    
    .final-cta-section h2 {
        font-size: 22px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .table-note {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .table-container {
        margin: 0 -8px;
        width: calc(100% + 16px);
    }
    
    .pricing-table {
        min-width: 300px;
    }
    
    .pricing-table thead th {
        padding: 10px 6px;
        font-size: 11px;
    }
    
    .pricing-table td {
        padding: 10px 6px;
        font-size: 11px;
    }
    
    .pricing-table .box-name {
        font-size: 12px;
        padding: 10px 6px;
    }
    
    .price {
        padding: 3px 6px;
        font-size: 10px;
    }
}

/* برای تبلت */
@media (min-width: 769px) and (max-width: 1024px) {
    .table-container {
        overflow-x: auto;
    }
    
    .pricing-table {
        min-width: 600px;
    }
    
    .faq-container {
        grid-template-columns: 1fr;
    }
}