﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    direction: rtl;
    text-align: right;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    padding-top: 70px;
    padding-bottom: 100px;
}


/*details picture statt*/

.image-box {
    width: 100px;
    height: 100px;
    border: 2px dashed #ccc;
    margin: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.add-image span {
    font-size: 24px;
    color: #999;
}

.file-input {
    display: none;
}

.fixed-img {
    width: 100%; /* عرض کامل کارت */
    height: 220px; /* ارتفاع ثابت (مثلاً 220px یا هر مقداری که بخوای) */
    object-fit: cover; /* تصویر داخل قاب بدون تغییر تناسب بریده میشه */
    border-top-left-radius: 0.25rem; /* برای هماهنگی با card */
    border-top-right-radius: 0.25rem;
}

.fixed-size-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 0.375rem; /* برای زیبایی */
}



/* Thumbnail (تصویر کوچک) */
.thumbnail-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 3px;
}

/* Image in modal (تصویر بزرگ در مودال) */
.modal-image {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
}
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.5;
    margin: 0 4px;
    border: none;
    transition: opacity 0.3s, transform 0.3s;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: #0d6efd; /* رنگ دایره فعال (مثلاً آبی بوت‌استرپ) */
    transform: scale(1.2); /* دایره فعال کمی بزرگ‌تر نمایش داده شود */
}

.image-card {
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s;
}

    .image-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
.card-link {
    text-decoration: none;
    color: inherit;
}
.small-preview {
    width: 100%;
    height: 120px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.3s;
}

    .small-preview:hover {
        border: 2px solid #0d6efd;
    }

.main-preview {
    border: 3px solid #999;
    transition: all 0.3s;
}

.custom-divider {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}


.photo-upload-wrap {
    font-family: Tahoma, Arial, "Segoe UI", sans-serif;
}

.kt-file-drop-zone {
    position: relative;
    border: 2px dashed #f76868;
    border-radius: 8px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    min-height: 110px;
    background: #fafafa;
    justify-content: center; /* وسط افقی */
  
}

.kt-file-drop-zone__placeholder {
    color: #666;
    font-size: 14px;
}

.kt-file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.previews {
    display: flex;
    gap: 10px;
    margin-left: 12px;
    flex-wrap: wrap;
}

.kt-file-upload-preview {
    width: 96px;
    height: 96px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.kt-file-upload-preview__height-enforcer {
    padding-top: 100%;
}

.kt-file-upload-preview__delete-button {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hint-text {
    margin: 8px 0 0 0;
}

.hint-small {
    color: #666;
    font-size: 12px;
    margin-top: 6px;
}
.kt-file-drop-zone__placeholder {
    text-align: center;
    color: #666;
    font-family: tahoma, sans-serif;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    background-color: #fafafa;
}

    .kt-file-drop-zone__placeholder i {
        font-size: 40px;
        color: #999;
        margin-bottom: 10px;
    }

    .kt-file-drop-zone__placeholder p {
        margin: 0;
        font-size: 16px;
        font-weight: bold;
    }

    .kt-file-drop-zone__placeholder small {
        font-size: 13px;
        color: #888;
    }
.form-container {
    min-height: 100vh; /* ارتفاع کل صفحه */
    display: flex;
    justify-content: center; /* وسط افقی */
    align-items: center;     /* وسط عمودی */
    background-color: #f8f9fa; /* رنگ پس‌زمینه ملایم (اختیاری) */
}


.dropdown-item:hover {
    background-color: #f0c040; /* رنگ پس‌زمینه دلخواه */
    color: white; /* رنگ متن دلخواه */
}
.phone-box {
    background-color: #f5c583;
    color: black;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2); /* سایه ملایم */
    display: inline-block; /* برای اینکه مثل دکمه دیده بشه */
}

    .phone-box:hover {
        background-color: #e6b96d; /* تغییر رنگ موقع هاور */
    }
/* 🟢 حالت پیش‌فرض: دسکتاپ — با فاصله از بالا */
.sticky-filter-bar {
    top: 70px;
}

/* 🔵 حالت موبایل: بچسبد به بالا */
@media (max-width: 576px) {
    .sticky-filter-bar {
        top: 0 !important;
    }

    /* حذف متن در دکمه‌های فیلتر برای موبایل */
    /*
    .filter-btn span {
        display: none !important;
    }
    */
}
/* فاصله محتوای صفحه از بالای هدر */
.page-content {
    margin-top: 40px; /* می‌تونی بیشتر یا کمتر کنی */
    margin-bottom: 40px; /* برای فاصله از فوتر */
}

/* محدود کردن ارتفاع و اضافه کردن اسکرول */
.dropdown-menu.job-scroll {
    max-height: 200px; /* ارتفاع دلخواه */
    overflow-y: auto; /* اضافه کردن اسکرول عمودی */
}


/*Inex Card*/

.ad-card {
    display: flex;
    flex-direction: row;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 180px; /* ارتفاع ثابت کارت */
    padding: 10px;
}


    .ad-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.ad-card__link {
    display: flex;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.ad-card__thumb {
    width: 150px; /* عرض ثابت عکس */
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #f9f9f9;
}

    .ad-card__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* بریده شدن درست عکس */
        display: block;
    }

.ad-card__body {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ad-card__title {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
    line-height: 1.3;
}

.ad-card__desc {
    font-size: 0.9rem;
    margin: 5px 0;
    flex-grow: 1;
}

.ad-card__meta {
    font-size: 0.8rem;
    color: #888;
}

#fixed-enamad {
    position: fixed;
    left: 0; /* سمت چپ */
    top: 50%; /* وسط صفحه */
    transform: translateY(-10%); /* برای اینکه دقیقاً وسط قرار بگیرد */
    z-index: 1050; /* بالاتر از بقیه عناصر */
    padding: 5px;
}
