/* reset فقط برای داخل wrapper */
.adform-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.select-custom {
    position: relative;
    display: block;
    width: 100%;
    /* یا هر اندازه دلخواه */
}


select {
    -webkit-appearance: none;
}

.select-custom::after {
    content: "⤵";
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 12px;
    color: #64748b;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.adform-wrapper {
    direction: rtl;
    max-width: 805px !important;
    margin: auto;
}

.adform-wrapper .adform-main {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2f6;
}

.adform-wrapper .adform-section {
    background: #fafbfc;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 28px;
    border: 1px solid #eef2f6;
    transition: all 0.2s ease;
}

.adform-wrapper .adform-section:hover {
    border-color: #d0d9e8;
    background: #ffffff;
}

.adform-wrapper .adform-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a2c3e;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef2f6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.adform-wrapper .adform-field-row {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.adform-wrapper .adform-field-half {
    flex: 1;
    min-width: 180px;
}

.adform-wrapper .adform-field-full {
    flex: 1;
    width: 100%;
}

.adform-wrapper label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 10px !important;
}

.adform-wrapper .required {
    color: #ef4444;
    margin-right: 3px;
}

/* کلیه فیلدهای ورودی، سلکت و تکست اریا */
.adform-wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.adform-wrapper select,
.adform-wrapper textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
    transition: all 0.2s ease;
    outline: none;
    color: #1e293b;
}

.adform-wrapper input:focus,
.adform-wrapper select:focus,
.adform-wrapper textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.adform-wrapper input:disabled,
.adform-wrapper select:disabled,
.adform-wrapper textarea:disabled {
    background: #f8fafc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* گروه رادیو و چکباکس */
.adform-wrapper .adform-radio-group,
.adform-wrapper .adform-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.adform-wrapper .radio-label,
.adform-wrapper .checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 400;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}

.adform-wrapper .radio-label:hover,
.adform-wrapper .checkbox-label:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

.adform-wrapper .radio-label input,
.adform-wrapper .checkbox-label input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #3b82f6;
}

/* دکمه ارسال اولیه (بدون override) */
.adform-wrapper .adform-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-top: 16px;
}

.adform-wrapper .adform-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* دکمه add more */
.adform-wrapper .adform-add-more-btn {
    background: #f1f5f9;
    border: 1px dashed #94a3b8;
    color: #3b82f6;
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
}

.adform-wrapper .adform-add-more-btn:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

/* گروه‌های لوکیشن، شیفت، رنج */
.adform-wrapper .location-group,
.adform-wrapper .shift-group,
.adform-wrapper .range-group {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

/* پیام‌های موفقیت/خطا */
.adform-wrapper .adform-message {
    padding: 14px 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    font-size: 14px;
}

.adform-wrapper .adform-message.success {
    background: #dcfce7;
    color: #166534;
    border-right: 4px solid #22c55e;
}

.adform-wrapper .adform-message.error {
    background: #fee2e2;
    color: #991b1b;
    border-right: 4px solid #ef4444;
}

.adform-wrapper .adform-field-error {
    color: #ef4444;
    font-size: 11px;
    margin-top: 6px;
    display: block;
}

.adform-wrapper .adform-field-note {
    font-size: 12px;
    color: #64748b;
    margin-top: 12px;
    padding: 8px;
    background: #fef9e3;
    border-radius: 12px;
    text-align: center;
}

/* دکمه اضافه کردن لوکیشن و حذف (با آیدی و کلاس) */
.adform-wrapper #add_location {
    background: none;
    background-color: rgba(0, 0, 0, 0);
    border: 1px solid #c36;
    color: #c36;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
}

.adform-wrapper .remove-location {
    background: none !important;
    background-color: rgba(0, 0, 0, 0) !important;
    border: 1px solid #c36 !important;
    color: #c36 !important;
    padding: 2px 14px !important;
    border-radius: 30px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    margin-top: 12px !important;
}

.adform-wrapper #add_location:hover {
    color: #fff;
    background-color: #c36;
    border-color: #fff;
}

.adform-wrapper .remove-location:hover {
    color: #fff !important;
    background-color: #c36 !important;
    border-color: #fff !important;
}

/* استایل مخصوص بخش n-pay (اگر داخل wrapper باشد) */
.adform-wrapper .n-pay .adform-radio-group {
    margin-bottom: 20px !important;
}

/* override نهایی دکمه ارسال (با عرض 100px و !important) */
.adform-wrapper .adform-submit-btn {
    width: 200px !important;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    background-color: rgba(0, 0, 0, 0) !important;
    color: white !important;
    border: none !important;
    padding: 8px 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 40px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-family: inherit !important;
    margin-top: 16px !important;
}



/* نوار فیلترهای فعال */
.active-filters-bar {
    background: #fff;
    padding-top: 3px;
    padding-bottom: 3px;
    padding-left: 4px;
    padding-right: 18px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
    overflow-x: scroll;
    white-space: nowrap;
}

.filter-label {
    font-size: 12px;
    font-weight: 500;
}


.filter-badge {
    background: #ff00003b;
    border: 1px solid #f4151521;
    border-radius: 12px;
    padding: 5px 12px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    margin: 0 3px;
}


.filter-badge .filter-name {
    color: #a10101;
    font-weight: 500;
    font-size: 12px;

}

.filter-badge .filter-value {
    color: #a10101;
    font-weight: 500;
    font-size: 12px;
}

.remove-filter {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #94a3b8;
    padding: 0 4px;
    transition: color 0.2s;
}

.remove-filter:hover {
    color: #ef4444;
}

.clear-all-filters {
    background: #eef2f6;
    border: none;
    border-radius: 40px;
    padding: 5px 14px;
    font-size: 12px;
    cursor: pointer;
    color: #334155;
    transition: all 0.2s;
    margin-right: 3px;
}

.clear-all-filters:hover {
    background: #e2e8f0;
    color: #ef4444;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .adform-message>code:nth-child(1)>p:nth-child(1) {
        font-size: 12px !important;
    }

    .page-id-67 #content {
        padding-bottom: 100px !important;
    }

    .page-id-78 #content {
        padding-bottom: 100px !important;
    }

    .page-id-65 #content {
        padding-bottom: 100px !important;
    }

    .page-id-42 #content {
        padding-bottom: 100px;
    }

    .adform-wrapper .adform-main {
        padding: 20px;
    }

    .ads-grid {
        grid-template-columns: 1fr !important;
    }

    .calk>div:nth-child(2) {
        display: none !important;
    }

    .calk>div:first-child {

        justify-content: space-between !important;
    }

    .adform-wrapper .adform-section {
        padding: 18px;
    }

    .adform-wrapper .adform-field-row {
        flex-direction: column;
        gap: 14px;
    }

    .adform-wrapper .adform-field-half {
        width: 100%;
    }
}

.par-type {
    margin: 25px 0 !important;
    justify-content: space-between;
}

#cloneLocationBtn {
    padding: 5px 20px !important;
    width: 200px !important;
}

#project_data {
    padding: 10px 0;
    border: none;
    font-size: 13px;
}

.post-42 .entry-title {
    max-width: 805px !important;
    margin: 50px auto;
    text-align: center;
}

.add-div {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    margin-bottom: 20px;
}

#adUpdateModalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#adUpdateModal {
    background: #fff;
    max-width: 500px;
    width: 90%;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.2);
}

#adUpdateModal h3 {
    color: #28a745;
    margin-top: 0;
}

#adUpdateModal .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    font-weight: 300;
    transition: color 0.2s;
}

#adUpdateModal .close-modal:hover {
    color: #dc3545;
}

#adUpdateModal p {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin: 20px 0 0;
}

#adUpdateModal {
    max-width: 700px;
}

.post-42 {
    min-height: calc(100dvh - 167.1px);
    height: auto;
}

.post-67 {
    min-height: calc(100dvh - 167.1px);
    height: auto;
}

.page-id-78 .entry-title {
    width: fit-content !important;
    margin: 50px auto;
}

.post-67 .entry-title {
    text-align: center !important;
    width: fit-content !important;
    margin: 50px auto;

}

.post-65 .entry-title {
    text-align: center !important;
    width: fit-content !important;
    margin: 50px auto;

}

.post-65 .entry-title::after {
    width: 50px;
    left: 0;
    margin-right: auto;
    margin-left: auto;
}

.post-65 .page-header {
    margin-bottom: 0px;
}

.post-67 .entry-title::after {
    width: 50px;
    left: 0;
    margin-right: auto;
    margin-left: auto;
}

.post-67 .page-header {
    margin-bottom: 0px;
}

.page-id-78 .entry-title::after {
    width: 50px;
    left: 0;
    margin-right: auto;
    margin-left: auto;
}

.page-id-79 .entry-title {
    display: none;
}

.post-42 .entry-title {
    width: fit-content !important;
}

.post-42 .entry-title::after {
    width: 50px;
    left: 0;
    margin-right: auto;
    margin-left: auto;
}

.page-id-67 td {
    text-align: center !important;
}

.rezome {
    background-color: #0d1f2b;
    color: white !important;
    width: 95% !important;
    display: block;
    text-align: center;
    padding: 5px 10px;
    border-radius: 50px;
    text-decoration: none !important;
    margin-top: 20px;
    margin-right: auto !important;
    margin-left: auto !important;
}

.zamime * {
    font-size: 12px;
}

.zamime label {
    margin: 15px 0 !important;
}

.zamime .description {
    margin-bottom: 10px;
}

.err {
    font-size: 12px;
    color: #c36;
}

.delete-location-btn {
    padding: 3px 15px !important;
    border-radius: 50px !important;
    font-size: 12px !important;
}

.adform-message.error {
    max-width: 805px;
    color: #c36;
    margin: auto;
    margin-bottom: 20px;

}

.adform-message.error code p {
    font-size: 25px;
    background-color: #ff00001f;
    padding: 10px;
    border-radius: 10px;
}

#adModalOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center
}

#adModal {
    background: #fff;
    max-width: 500px;
    width: 90%;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    position: relative
}

#adModal h3 {
    color: #28a745
}

#adModal .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer
}


/*******************************/

/* لیست آگهی‌ها */
.ad-list-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    direction: rtl;
}

.ad-list-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #f8fafc;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.ad-list-main {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    direction: rtl;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.ad-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.ad-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.ad-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: bold;
}

.ad-card-detail {
    font-size: 13px;
    margin-bottom: 6px;
    color: #334155;
}

.filter-group {
    margin-bottom: 16px;
}

.filter-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 13px;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
}

.ad-filter-btn,
.ad-filter-reset-btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 12px;
    padding: 8px;
    border-radius: 30px;
    background: #3b82f6;
    color: white;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.ad-filter-reset-btn {
    background: #e2e8f0;
    color: #1e293b;
}

.ad-pagination {
    margin-top: 30px;
    text-align: center;
}

.ad-pagination a {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 4px;
    background: #f1f5f9;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
}

.ad-pagination a.current {
    background: #3b82f6;
    color: white;
}

/* صفحه جزئیات */
.ad-single-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.ad-single-header {
    border-bottom: 2px solid #eef2f6;
    margin-bottom: 24px;
    padding-bottom: 16px;
}

.ad-detail-block {
    margin-bottom: 24px;
    background: #fafbfc;
    padding: 16px;
    border-radius: 16px;
}

.ad-detail-block h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #0f172a;
}

.ad-location-item {
    border-right: 3px solid #3b82f6;
    padding-right: 12px;
    margin-bottom: 16px;
}

.ad-shift-item {
    background: #ffffff;
    padding: 10px;
    border-radius: 12px;
    margin-top: 8px;
}

.ad-contact {
    background: #e6f0ff;
    padding: 16px;
    border-radius: 16px;
    text-align: center;
}

@media (max-width: 768px) {
    .add-div {
        flex-direction: column;
        gap: 20px;
    }

    .ad-list-container {
        flex-direction: column;
    }

    .ad-list-sidebar {
        width: 100%;
    }

    .adform-message.error code p {
        font-size: 16px !important;
    }

    .page-id-78 .wzrm-message>code {
        font-size: 16px !important;

    }
}

/* ========== هماهنگ‌سازی لیست آگهی‌ها با استایل فرم ========== */
.ad-list-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    direction: rtl;
}

/* سایدبار فیلترها - همانند بخش‌های فرم */
.ad-list-sidebar {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #eef2f6;
    width: 280px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    height: fit-content;
}

.ad-list-sidebar:hover {
    border-color: #d0d9e8;
    background: #ffffff;
}

.ad-list-sidebar h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a2c3e;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eef2f6;
}

/* گروه‌های فیلتر */
.filter-group {
    margin-bottom: 18px;
}

.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 8px;
}

.filter-group select,
.filter-group input {
    width: 100% !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-family: inherit !important;
    transition: all 0.2s ease !important;
    padding: 6px 10px !important;
    background-color: white;
    font-size: 14px !important;
}


.filter-group select:focus,
.filter-group input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* دکمه‌های فیلتر */
.ad-filter-btn,
.ad-filter-reset {
    width: 100%;
    text-align: center;
    margin-top: 12px;
    padding: 10px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    border: none;
}


.ad-filter-btn {
    background-color: #0d1f2b !important;
    color: white !important;
    border-radius: 50px !important;
    border: unset !important;
    width: 100% !important;
    padding: 6px 10px !important;
}

.ad-filter-btn:hover {
    background: #75db86 !important;
    color: #0d1f2b !important;
}

.ad-filter-reset {
    background: #f1f5f9;
    color: #334155;
    border: unset;
    padding: 8px 10px;
    background-color: #c36;
    color: white;
    text-decoration: unset !important;
}

/* گرید کارت‌ها */
.ad-list-main {
    flex: 1;
}

.ads-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* کارت آگهی - مشابه استایل بخش‌های فرم */
.ad-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #eef2f6;
    padding: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ad-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.ad-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef2f6;
}

.ad-type,
.ad-field {
    font-size: 14px;
    font-weight: 600;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 40px;
    color: #1e293b;
}

.ad-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ad-card-detail {
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
}

.ad-card-detail strong {
    color: #0f172a;
    font-weight: 600;
}

/* صفحه‌بندی */
.ad-pagination {
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: center;
    direction: ltr;
}

.ad-pagination a {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    text-decoration: none;
    color: #1e293b;
    font-size: 14px;
    transition: all 0.2s;
}

.ad-pagination a:hover {
    background: #eff6ff;
    border-color: #3b82f6;
}

.ad-pagination a.current {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: transparent;
}

/* پیام بدون نتیجه */
.ad-no-results {
    text-align: center;
    padding: 40px;
    background: #fafbfc;
    border-radius: 20px;
    border: 1px solid #eef2f6;
    color: #64748b;
    font-size: 15px;
}

/* ========== صفحه جزئیات آگهی ========== */
.ad-single-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2f6;
}

.ad-single-header {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 2px solid #eef2f6;
}

.ad-single-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a2c3e;
    margin: 0 0 10px 0;
}

.ad-meta {
    font-size: 13px;
    color: #64748b;
}

/* بلوک‌های اطلاعاتی - مانند بخش‌های فرم */
.ad-detail-block {
    background: #fafbfc;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #eef2f6;
    transition: all 0.2s;
}

.ad-detail-block:hover {
    border-color: #d0d9e8;
    background: #ffffff;
}

.ad-detail-block h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a2c3e;
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2f6;
}

.ad-detail-block p {
    margin: 8px 0;
    font-size: 14px;
    color: #334155;
}

.ad-detail-block p strong {
    color: #0f172a;
    font-weight: 600;
    display: inline-block;
    min-width: 140px;
}

/* آیتم مکان */
.ad-location-item {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid #eef2f6;
}

.ad-location-item p {
    margin: 6px 0;
}

/* آیتم شیفت */
.ad-shift-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 10px 12px;
    margin-top: 8px;
    font-size: 13px;
}

/* بخش تماس */
.ad-contact {
    background: #e6f0ff;
    border-radius: 20px;
    padding: 18px;
    text-align: center;
    margin-top: 20px;
}

.ad-contact h3 {
    color: #1e40af;
    margin-top: 0;
}

.ad-contact p {
    font-size: 16px;
    font-weight: 500;
}

.hidden-phone {
    color: #ef4444;
    font-weight: normal;
}

.page-id-79 .calk h3 {
    font-size: 22px;
}

.ad-shift-item-detailed {
    padding: 0 !important;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .ad-list-container {
        flex-direction: column;
    }

    .ad-list-sidebar {
        width: 100%;
    }

    .ad-single-container {
        padding: 20px;
    }

    .ad-detail-block p strong {
        min-width: auto;
        display: inline;
    }

    .post-67 .adform-wrapper {
        padding: 0 20px;
    }

    .post-67 table * {
        font-size: 12px;
    }
}

.ad-card-detail {
    font-size: 12px;
    margin-bottom: 6px;
    word-break: break-word;
}

.ad-card-detail strong {
    display: inline-block;

}

/* ========== بازنشانی رنگ‌ها به پالت اصلی ========== */
/* حذف لیمویی و سایدبار رنگی - بازگشت به سفید و سبز سازمانی */

/* پس‌زمینه کلی صفحه - سفید بسیار روشن با رگه سبز کمرنگ */
body:has(.ad-list-container) {
    background: #fdfdfc;
}

/* یا اگر کلاس خاصی دارید، این را بنویسید */
.ad-list-container {
    background: transparent;
}

/* حذف افکت radial که باعث شلوغی می‌شد */
.ad-list-container::before {
    display: none;
}

/* سایدبار - سفید یکدست با حاشیه سبز نازک */
.ad-list-sidebar {
    background: #ffffff;
    border: 1px solid rgba(118, 220, 135, 0.4);
    box-shadow: 0 8px 20px rgba(5, 25, 57, 0.04);
}

.ad-list-sidebar h3 {
    border-bottom: 3px solid #065f46;
    color: #051927;
}

.filter-group label {
    color: #334155;
}

.filter-group select,
.filter-group input {
    background: #ffffff;
    border-color: #e2e8f0;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: #065f46;
}

/* کارت آگهی - سفید شفاف با حداقل سایه */
.ad-card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.ad-card:hover {
    box-shadow: 0 16px 24px -10px rgba(118, 220, 135, 0.25);
}

.ad-type {
    background: #051927;
    color: white;
}

.ad-field {
    background: #edfdf0;
    color: #2c6e3c;
}

.ad-card-detail strong {
    color: #1e293b;
}

/* حذف هایلایت نارنجی/لیمویی - فقط سبز ملایم */
.ad-card-detail:has(strong:contains("نوع پرداخت")) {
    background: #f5fef7;
    border-right: 3px solid #065f46;
    border-radius: 12px;
}

/* ========== طراحی مدرن و جذاب کارت‌های آگهی ========== */

.ads-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ad-card {
    background: linear-gradient(145deg, #ffffff 0%, #fcfdfc 100%);
    border-radius: 32px;
    border: 1px solid rgba(118, 220, 135, 0.25);
    transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
    position: relative;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(5, 25, 57, 0.04);
}

/* نوار رنگی بالای کارت با گرادیان سبز-سرمه‌ای */
/*
.ad-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ededed, #eaeaea);
    opacity: 0.7;
    transition: opacity 0.3s, height 0.2s;
}
*/
.ad-card:hover::before {
    opacity: 1;
    height: 8px;
}

/* سایه و حاشیه در حالت هاور */
.ad-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 36px -16px rgba(118, 220, 135, 0.3);
}

/* بدنه داخلی کارت با فاصله‌گذاری بهتر */
.ad-card-header {
    padding: 18px 18px 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ad-type,
.ad-field {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 40px;
    letter-spacing: 0.3px;
}

.ad-type {
    background: #051927;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(5, 25, 57, 0.2);
}

.ad-field {
    background: rgba(118, 220, 135, 0.15);
    color: #1f5e2d;
    backdrop-filter: blur(2px);
    font-weight: 550;
}

/* بدنه کارت */
.ad-card-body {
    padding: 12px 18px 18px 18px;
}

/* ردیف جزئیات با آیکون ایموجی */
.ad-card-detail {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #ecf3e8;
    flex-wrap: wrap;
}

.ad-card-detail strong {
    color: #051927;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* اضافه کردن آیکون‌های ساده با ایموجی (بدون نیاز به فونت) */
.ad-card-detail strong::before {
    font-size: 1rem;
    opacity: 0.8;
}


/* هایلایت بخش نوع پرداخت (سبز ملایم با حاشیه سمت راست) */
.ad-card-detail:has(strong:contains("نوع پرداخت")),
.ad-card-detail:has(strong:contains("پرداخت")) {
    background: #f5fef7;
    margin: 6px -18px -6px -18px;
    padding: 10px 18px;
    border-radius: 0;
    border-left: 4px solid #065f46;
    border-bottom: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* برای اینکه متن پرداخت خوانا باشد */
.ad-card-detail:has(strong:contains("پرداخت")) strong::before {
    content: "💸 ";
}

/* تاریخ ثبت با رنگ ملایم تر */
.ad-card-detail:last-child {
    border-bottom: none;
    color: #6c8b74;
    font-size: 0.7rem;
    justify-content: flex-start;
}

.ad-shift-item-detailed {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#menu-footer-menu-home {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

/* ریسپانسیو */
@media (max-width: 640px) {
    .ads-grid {
        gap: 16px;
    }

    .ad-card-body {
        padding: 8px 14px 14px;
    }
}


/* ========== چیدمان جدید کارت (ستونی با ردیف‌های منظم) ========== */

.ad-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px 20px 20px;
}

.ad-card-row {
    display: flex;
    width: 100%;
}

.ad-card-row.two-columns {
    justify-content: space-between;
    gap: 20px;
}

.ad-card-row.two-columns .ad-card-detail {
    flex: 1;
}

.ad-card-row.full-width {
    flex-direction: column;
}

.ad-card-detail {
    font-size: 0.85rem;
    color: #1e293b;
    margin: 0;
    padding: 0;
    border: none;
}

.ad-card-detail.highlight {
    background: #f5fef7;
    padding: 8px 12px;
    border-radius: 6px;
    border-right: 3px solid #00fc3838;
}

/* حذف خطوط جداکننده قبلی */
.ad-card-detail strong {
    min-width: auto;
    color: #051927;
}

.ad-card-detail strong::before {
    display: none;
    /* ایموجی‌های تکراری را حذف می‌کنیم چون خودمان ایموجی گذاشتیم */
}

/* ریسپانسیو: در موبایل دو ستونه به یک ستون تبدیل شود */
@media (max-width: 550px) {
    .ad-card-row.two-columns {
        flex-direction: column;
        gap: 8px;
    }

    .ad-card-body {
        gap: 10px;
        padding: 12px 16px 16px;
    }

}

@media (max-width:470px) {

    .page-id-78 .btn-primary {
        padding-top: 6px;
        padding-bottom: 6px;
        font-size: 12px;
        font-weight: 500;
        margin-top: 10px !important;
    }



    .uniform-description>span:nth-child(2) {
        font-size: 14px !important;
        width: 80%;
    }


    .uniform-description>span:nth-child(3) {
        width: 100%;
        font-size: 14px !important;

    }

    .ad-info-item {
        font-size: 14px;
    }

    .ad-info-item {
        flex-wrap: wrap;
    }


    .ad-filter-btn {
        font-size: 14px !important;
    }

    .ad-filter-reset-btn {
        font-size: 14px !important;
    }

    .location-payment-type label {
        font-size: 12px !important;
    }

    .adform-wrapper .adform-submit-btn {
        width: 100% !important;
        margin-top: 0 !important;
    }

    input,
    select {
        padding-bottom: 8px !important;
        padding-top: 8px !important;
    }

    .radio-label {
        font-size: 12px !important;
    }

    .adform-radio-group input {
        width: 14px !important;
        height: 14px !important;
    }

    #cloneLocationBtn {
        width: fit-content !important;
        font-size: 12px !important;
    }

    .acd {
        flex-direction: column;
    }


    .ad-card-actions img {
        display: none;
    }

    .ad-card-actions button {
        width: 100%;
    }

    .page-id-79 .ad-badge>div:first-child {
        flex: 2;
    }

    .page-id-79 .ad-badge>div:last-child {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: end;
        gap: 5px;
    }

    .page-id-79 .ad-badge>div:first-child p {
        font-size: 20px;
    }

    .page-id-79 .ad-badge>div:last-child span {
        font-size: 12px;
    }

    .page-id-79 .ad-location-header {
        margin-bottom: 20px !important;
    }



    .ad-location-header {
        position: relative;
        flex-direction: column !important;
        align-items: start !important;
    }


    .pay-type {
        position: absolute;
        left: 0;
        top: -27px;
    }


    .ad-card-row div {
        font-size: 14px !important;
        margin-bottom: 15px;
    }

    .ad-single-wrapper {
    padding: 0 !important;
}
.ad-shift-detail * {
  font-size: 12px !important;
}
.ad-shift-item-detailed *{
      font-size: 12px !important;

}
}

/* ========== صفحه جزئیات آگهی – طراحی مدرن و جذاب ========== */

.ad-single-container {
    max-width: 950px;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 40px;
    box-shadow: 0 25px 45px -12px rgba(5, 25, 57, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* هدر با گرادیان و حاشیه سبز */
.ad-single-header {
    background: linear-gradient(135deg, #ffffff 0%, #fafefb 100%);
    padding: 30px 35px 20px 35px;
    border-bottom: 4px solid #065f46;
    position: relative;
}

.ad-single-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #051927;
    margin: 0 0 10px 0;
    letter-spacing: -0.3px;
}

.ad-meta {
    font-size: 0.85rem;
    color: #4a6a6e;
    background: #eef7f0;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 40px;
}

/* بلوک‌های اطلاعاتی */
.ad-single-details {
    padding: 20px 30px 35px 30px;
}

.ad-detail-block {
    background: #ffffff;
    border-radius: 28px;
    margin-bottom: 28px;
    padding: 0;
    border: 1px solid #eef2ea;
    transition: all 0.25s ease;
    overflow: hidden;
}

.ad-detail-block:hover {
    border-color: #cbe5d0;
    box-shadow: 0 6px 14px rgba(118, 220, 135, 0.08);
}

.ad-detail-block h3 {
    background: #f9fdfa;
    margin: 0;
    padding: 16px 24px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #051927;
    border-bottom: 2px solid #e2f0e4;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* محتوای هر بلوک */
.ad-detail-block p,
.ad-location-item p,
.ad-shift-item {
    margin: 0;
    padding: 10px 24px;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f5ee;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
}

.ad-detail-block p strong,
.ad-location-item p strong {
    width: 180px;
    flex-shrink: 0;
    color: #2b4f2b;
    font-weight: 600;
}

/* آیتم مکان */
.ad-location-item {
    background: #fefefc;
    border-radius: 20px;
    margin: 12px 16px;
    border: 1px solid #e5f0e5;
}

.ad-location-item p {
    padding: 8px 16px;
}

.ad-shift-item {
    background: #f6fbf7;
    border-radius: 18px;
    margin: 10px 20px;
    padding: 12px 18px;
    font-size: 0.9rem;
    color: #1f3b2c;
    border-right: 3px solid #065f46;
}

/* بخش تماس */
.ad-contact {
    background: linear-gradient(115deg, #eefaf0, #ffffff);
    border-radius: 28px;
    padding: 20px 30px;
    text-align: center;
    margin-top: 25px;
    border: 1px solid #cae6d0;
}

.ad-contact h3 {
    font-size: 1.3rem;
    color: #051927;
    margin-top: 0;
    margin-bottom: 10px;
}

.ad-contact p {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f5e2d;
}

.hidden-phone {
    background: #fff1f0;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
}

/* ریسپانسیو */
@media (max-width: 700px) {
    .ad-single-container {
        margin: 15px;
        border-radius: 28px;
    }

    .ad-single-header {
        padding: 20px 20px 15px;
    }

    .ad-single-header h1 {
        font-size: 1.4rem;
    }

    .ad-single-details {
        padding: 15px 18px 25px;
    }

    .ad-detail-block p strong {
        width: 100%;
        margin-bottom: 5px;
    }

    .ad-detail-block p {
        flex-direction: column;
        padding: 12px 18px;
    }
}

/* ========== صفحه جزئیات آگهی – طراحی مدرن ========== */
.ad-single-wrapper {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.ad-single-card {
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s;
}

.ad-single-header {
    background: linear-gradient(135deg, #f9fefb, #fff);
    padding: 30px 35px 20px;
    border-bottom: 4px solid #065f46;
}

.ad-badge {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.ad-type-badge,
.ad-field-badge {
    background: #0d1f2b;
    color: white;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ad-field-badge {
    background: #065f46;
    color: #051927;
}

.ad-single-header h1 {
    font-size: 1.8rem;
    margin: 0 0 10px;
    color: #051927;
}

.ad-meta-info {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    color: #5f7d6c;
}

.ad-single-body {
    padding: 20px 30px 35px;
}

.ad-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.ad-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fafdf9;
    padding: 12px 16px;
    border-radius: 24px;
    border: 1px solid #e2f0e4;
}

.ad-info-icon {
    font-size: 1.8rem;
}

.ad-info-item strong {
    display: block;
    font-size: 0.75rem;
    color: #2b6e3c;
}

.ad-info-item p,
.ad-info-item>span:not(.ad-info-icon) {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.ad-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 25px 0 15px;
    padding-right: 12px;
    border-right: 4px solid #065f46;
    color: #051927;
}

.ad-location-card {
    background: #ffffff;
    border: 1px solid #eef3ea;
    border-radius: 28px;
    padding: 16px 20px;
    margin-bottom: 20px;
    transition: 0.2s;
}

.ad-location-card:hover {
    border-color: #cde2d3;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.03);
}

.ad-location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1rem;
}

.pay-type {
    background: #eef7f0;
    padding: 2px 12px;
    border-radius: 40px;
    font-size: 0.7rem;
}

.ad-location-address {
    color: #4a6a6e;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.ad-shift-detail,
.ad-shift-item-detailed {
    font-size: 0.85rem;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 18px;
}

.ad-shift-item-detailed {
    margin-top: 12px;
}

.ad-description {
    background: #fefcf5;
    padding: 18px;
    border-radius: 24px;
    line-height: 1.6;
    border: 1px solid #f0e7cf;
}

.ad-contact-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(115deg, #eefaf0, #fff);
    padding: 18px 25px;
    border-radius: 40px;
    margin-top: 30px;
}

.ad-contact-icon {
    font-size: 2.2rem;
}

.ad-phone {
    font-size: 16px;
    color: #1f5e2d;
    direction: ltr;
    display: inline-block;
}

@media (max-width: 650px) {
    .ad-single-header {
        padding: 20px;
    }

    .ad-phone {
        font-size: 12px;

    }

    .ad-single-body {
        padding: 15px;
    }

    .ad-info-grid {
        grid-template-columns: 1fr;
    }

    .ad-contact-box {
        flex-direction: column;
        text-align: center;
    }
}

/* ========== افزایش فاصله و جداسازی بخش‌ها در صفحه جزئیات ========== */

/* فاصله بیشتر بین بخش‌ها */
.ad-single-body .ad-section-title {
    margin-top: 35px;
    margin-bottom: 20px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    /* خط جداکننده بالای هر بخش */
}

/* اولین عنوان نیازی به خط بالایی ندارد */
.ad-single-body .ad-section-title:first-of-type {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

/* کارت مکان‌ها کمی فاصله بگیرد */
.ad-location-card {
    margin-bottom: 25px;
}

/* فاصله بیشتر در موبایل */
@media (max-width: 650px) {
    .ad-single-body .ad-section-title {
        margin-top: 30px;
    }
}

/* Inline | https://telobtl.com/single-ad/?ad_id=6 */

.ad-info-item strong {
    font-size: 13px;
}

.ad-info-item p {
    font-size: 12px;
    margin-top: 5px;
}

.ad-badge {
    justify-content: space-between;
}

.ad-badge div:nth-child(1) {
    font-size: 25px;
    font-weight: bold;
}

/* ========== استایل جدید برای صفحه لیست آگهی‌ها (شبیه کاریاب) ========== */
.ad-list-container {
    display: flex;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    direction: rtl;
    padding: 0 16px;
}

/* سایدبار فیلتر */
.ad-list-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.ad-list-sidebar h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #eef2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 8px;
}

.filter-group select,
.filter-group input[type="text"],
.filter-group input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    transition: all 0.2s;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: #0d1f2b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 69, 50, 0.1);
}

/* گروه جنسیت (رادیو دکمه‌های شیشه‌ای) */
.gender-group {
    display: flex;
    gap: 12px;
}

.gender-option {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.gender-option.selected {
    background: #0d1f2b;
    color: white;
    border-color: #0d1f2b;
}

/* سوئیچ بیمه */
.insurance-switch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    right: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #0d1f2b;
}

input:checked+.slider:before {
    transform: translateX(-20px);
}

/* دکمه‌های فیلتر */
.ad-filter-btn,
.ad-filter-reset {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    margin-top: 12px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    border: none;
}

.ad-filter-btn {
    background: #0d1f2b;
    color: white;
}

.ad-filter-reset {
    background: #f1f5f9;
    color: #334155;
    text-decoration: none;
}

/* بخش اصلی کارت‌ها */
.ad-list-main {
    flex: 1;
}

.ads-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* کارت آگهی جدید */
.ad-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* هدر کارت: لوگو + عنوان + تگ‌ها */
.ad-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ad-card-logo {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #0d1f2b;
}

.ad-card-info {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex: 1;
}


.ad-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #181c1a;
}

.ad-card-company {
    font-size: 14px;
    color: #555f6f;
    margin-bottom: 8px;
}

.ad-card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: end;
}

.ad-tag {
    background: #eef2f6;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 500;
    color: #0d1f2b;
}

.ad-tag.urgent {
    background: #ffdad6;
    color: #b91c1c;
}

/* جزئیات کارت (ردیف آیکون و متن) */
.ad-card-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.ad-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #3f4944;
}

.ad-detail-item i {
    width: 20px;
    color: #6f7973;
}

/* دکمه‌های کارت */
.ad-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.btn-primary,
.btn-outline {
    padding: 8px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    border: none;
}

.page-id-78 .btn-primary {
    background: #0d1f2b;
    color: white;
    border-radius: 8px;
}

.btn-primary:hover {
    background: #75db86;
    color: #0d1f2b;
}

.btn-outline {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #555f6f;
}

.btn-outline:hover {
    background: #f8fafc;
}

/* صفحه‌بندی */
.ad-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.ad-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    color: #334155;
    text-decoration: none;
    transition: 0.2s;
}

.ad-pagination a.current {
    background: #0d1f2b;
    color: white;
    border-color: #0d1f2b;
}

.ad-pagination a:hover:not(.current) {
    background: #f1f5f9;
}

/* بدون نتیجه */
.ad-no-results {
    text-align: center;
    padding: 40px;
    background: #f8fafc;
    border-radius: 20px;
    color: #64748b;
}

.ghvanin>label:nth-child(1) {
    font-size: 14px;
    margin-top: 14px;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .post-79 {
        padding-bottom: 100px !important;
    }

    .ad-list-container {
        flex-direction: column;
    }

    .ad-list-sidebar {
        width: 100%;
    }

    .ad-card-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline {
        text-align: center;
    }
}

span.btn-primary {
    background-color: #b3b3b3;
    padding: 3px 21px;
    border-radius: 6px;
    color: white !important;
    font-size: 12px;
}

/* Inline | https://telobtl.com/ads-list/ */

.ad-card-company {
    font-size: 18px;
    font-weight: 500;
    color: black;
    margin: 0;
}

.ad-card-header {
    padding-top: 0;
    padding-right: 0;
    padding-left: 0;
}

/* Inline | https://telobtl.com/ads-list/ */

.acd {
    display: flex;
}

.acd>div:first-child {
    flex: 2;
}

.acd>div:last-child {
    flex: 1;
}

.acd img {
    width: 145px;
    height: 100px;
    border-radius: 8px;
    border: 1px solid gainsboro;
}


.ad-card-actions {
    flex-direction: column;
    align-items: end;
}

.ad-card-actions {
    margin-top: 0 !important;
}

.ad-field-badge {
    background: #75db86;
  color: #0d1f2b;
}

.ad-badge {
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
}

.ad-badge p {
    margin: 0;
}

.ad-meta-info {
    margin-top: 35px;
}

/* Inline | https://telobtl.com/single-ad/?ad_id=7 */

.calk>div:first-child {
    flex: 3 !important;
}

.calk>div:last-child {
    flex: 1;
}

/* Inline | https://telobtl.com/single-ad/?ad_id=7 */

.calk>div:last-child img {
    width: 100px;
    border-radius: 35px;
}

/* Element | https://telobtl.com/single-ad/?ad_id=7 */

.calk {
    width: 100%;
}

/* style.css | https://telobtl.com/wp-content/plugins/advanced-ad-form/assets/style.css?ver=1777809721 */

.calk>div:first-child {
    display: flex;
    align-items: center;
    gap: 20px;
}

.calk>div:last-child {
    display: flex;
    justify-content: end;
}

.company_logo {
    padding: 10px 0;
    border: none;
    font-size: 13px;
}

.adform-message.error p {
    text-align: center;
}

/* دکمه فیلتر در موبایل */
.filter-toggle-btn {
    display: none;
    background: #1e293b;
    color: white;
    border: none;
    width: 100%;
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    font-weight: 500;

}

.filter-toggle-btn:hover {
    background-color: #051927 !important;
}

/* دکمه بستن در انتهای سایدبار (فقط موبایل) */
.close-filter-btn {
    display: none;
    background: #e2e8f0;
    color: #1e293b;
    border: none;
    width: 100%;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 12px;
    margin-top: 20px;
    cursor: pointer;
    text-align: center;
}

@media (max-width: 768px) {
    .filter-toggle-btn {
        display: block;
    }

    .ad-list-sidebar {
        display: none;
        margin-bottom: 25px;
    }

    .ad-list-sidebar.open {
        display: block;
    }

    .close-filter-btn {
        display: block;
    }

    /* تنظیم مجدد چیدمان برای موبایل */
    .ad-list-container {
        flex-direction: column !important;
    }
}

@media (min-width: 769px) {
    .ad-list-sidebar {
        display: block !important;
    }

    .filter-toggle-btn,
    .close-filter-btn {
        display: none;
    }


}

.close-filter-btn {
    display: none;
    background: #e2e8f0;
    color: #1e293b;
    border: none;
    width: 100%;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 12px;
    margin-top: 20px;
    cursor: pointer;
    text-align: center;
    font-size: 12px !important;
    padding: 3xp 8px !important;
    border-radius: 50px !important;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
}


#main {
    max-width: 1400px;
    width: 100% !important;
}


.page-id-78 .wzrm-message>code {
    font-size: 25px;
    background-color: #ff00001f;
    padding: 10px;
    border-radius: 10px;
    color: #c36;
}

.page-id-78 .wzrm-message {
    text-align: center;
}

.post-78 {
    min-height: calc(100dvh - 167.1px);
    height: auto;

}

#clear_project_data {
    border: unset !important;
    font-size: 12px !important;
    color: #e00606 !important;
    cursor: pointer;
}

#clear_project_data:hover {
    color: #e00606 !important;
    background-color: unset !important;
}

#clear_company_logo {
    border: unset !important;
    font-size: 12px !important;
    color: #e00606 !important;
    cursor: pointer;
}

#clear_company_logo:hover {
    color: #e00606 !important;
    background-color: unset !important;
}

#company_logo {
    font-size: 13px !important;
}

#project_data {
    direction: rtl !important;
    text-align: right !important;
}

#company_logo {
    direction: rtl !important;
    text-align: right !important;
}

.ad-filter-reset-btn {
    width: 100% !important;
    padding: 4px 10px !important;
    border-radius: 50px !important;
}

.remove-filter {
    border: unset !important;
    font-size: 12px !important;
    padding: 2px !important;
}

.remove-filter:hover {
    background-color: unset !important;
    color: #c36 !important;
}

.clear-all-filters {
    background: #ff00003b !important;
    border: 1px solid #f4151521 !important;
    border-radius: 12px !important;
    padding: 5px 12px !important;
    font-size: 13px !important;
}

.clear-all-filters:hover {
    color: #c36 !important;

}

.ad-shift-item-detailed>div {
    background-color: #76dc871c;
    padding: 5px;
    border-radius: 5px;
}

.ad-shift-detail {
    background-color: #76dc871c;
    padding: 5px;
    border-radius: 5px;
}

.ad-list-container>code {
    width: 100%;
}

.page-id-67 #content {
    padding-bottom: 50px;
}

.status-pending {
    background-color: #ff98002b;
    font-size: 12px;
    border-radius: 5px;
    padding: 2px 6px;
    color: orange;
}

.status-rejected {
    background-color: #ff00002b;
    font-size: 12px;
    border-radius: 5px;
    padding: 2px 6px;
    color: red;
}

.status-approved {
    background-color: #00ff642b;
    font-size: 12px;
    border-radius: 5px;
    padding: 2px 6px;
    color: #0c7e3e;
}

