/* freelancer-style.css */

.fancybox__container { z-index: 99999 !important; }

.page-header {
    position: relative; height: 350px; width: 100%;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: white;
}
.page-header::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); }
.page-header-content { position: relative; z-index: 2; width: 80%; }
.breadcrumb { background: transparent; padding: 0; justify-content: center; margin-bottom: 0; }
.breadcrumb-item a { color: #ccc; text-decoration: none; }
.breadcrumb-item.active { color: #fff; }
.breadcrumb-item+.breadcrumb-item::before { color: #ccc; }

.sidebar-widget {
    background: #fff; padding: 20px; border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.03); margin-bottom: 25px; border: 1px solid #eee;
}
.widget-title {
    font-weight: 700; margin-bottom: 20px; padding-bottom: 10px;
    border-bottom: 2px solid #f1f1f1; position: relative;
}
.widget-title::after {
    content: ''; position: absolute; bottom: -2px;
    width: 50px; height: 2px; background: var(--primary-color, #0d6efd);
}
/* توجيهات اللغة العربية والإنجليزية للعناوين */
[dir="rtl"] .widget-title::after { right: 0; left: auto; }
[dir="ltr"] .widget-title::after { left: 0; right: auto; }

.content-box {
    background: #fff; padding: 30px; border-radius: 12px;
    border: 1px solid #eee; box-shadow: 0 2px 15px rgba(0,0,0,0.03); margin-bottom: 30px;
}

.content-box.is-featured {
    border: 2px solid #ffc107 !important;
    position: relative;
    overflow: hidden; 
}

.featured-ribbon {
    position: absolute;
    background: #ffc107;
    color: #000;
    padding: 5px 40px;
    font-weight: 900;
    font-size: 0.95rem;
    z-index: 10;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
/* توجيهات الشريط المميز حسب اللغة */
[dir="rtl"] .featured-ribbon { top: 15px; left: -35px; right: auto; transform: rotate(-45deg); }
[dir="ltr"] .featured-ribbon { top: 20px; right: -35px; left: auto; transform: rotate(45deg); }

.freelancer-avatar-lg {
    width: 110px; height: 110px; border-radius: 50%;
    object-fit: cover; border: 2px solid #eee;
}
[dir="rtl"] .freelancer-avatar-lg { margin-left: 20px; margin-right: 0; }
[dir="ltr"] .freelancer-avatar-lg { margin-right: 20px; margin-left: 0; }

.meta-item { display: inline-flex; align-items: center; color: #6c757d; font-size: 0.95rem; }
[dir="rtl"] .meta-item { margin-left: 20px; margin-right: 0; }
[dir="ltr"] .meta-item { margin-right: 20px; margin-left: 0; }

[dir="rtl"] .meta-item i { margin-left: 6px; margin-right: 0; }
[dir="ltr"] .meta-item i { margin-right: 6px; margin-left: 0; }

.skill-tag { display: inline-block; background: #f8f9fa; color: #555; padding: 6px 15px; border-radius: 20px; font-size: 0.85rem; margin: 0 5px 10px 0; border: 1px solid #eee; }

.portfolio-img-wrapper { position: relative; border-radius: 8px; overflow: hidden; height: 200px; margin-bottom: 10px; border: 1px solid #eee; cursor: pointer; }
.portfolio-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.portfolio-img-wrapper:hover img { transform: scale(1.05); }

.review-item { border-bottom: 1px solid #f4f4f4; padding: 15px 0; }
.review-item:last-child { border-bottom: none; }

.stats-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #eee; color: #555; font-size: 0.95rem; }
.stats-list li:last-child { border-bottom: none; }
.stats-list strong { color: #333; }

.nav-tabs { border-bottom: 2px solid #eee; margin-bottom: 20px; }
.nav-tabs .nav-link { color: #555; font-weight: 600; border: none; border-bottom: 3px solid transparent; padding: 12px 20px; margin-bottom: -1px; }
.nav-tabs .nav-link.active { color: var(--primary-color, #0d6efd); background: transparent; border-bottom: 3px solid var(--primary-color, #0d6efd); }

.social-share-btns { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.social-share-btns a { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 8px; background: #f8f9fa; text-decoration: none; transition: 0.3s; font-size: 1.2rem; }
.social-share-btns a.wa { color: #25D366; } .social-share-btns a.in { color: #0077B5; } .social-share-btns a.tw { color: #1DA1F2; } .social-share-btns a.fb { color: #1877F2; }
.social-share-btns a:hover { background: #e9ecef; transform: translateY(-2px); }
.qr-box-container { border: 1px solid #eaedf1; padding: 10px; border-radius: 12px; display: inline-block; background: #fff; margin-bottom: 15px; }
.qr-box-container img { width: 140px; height: 140px; }

.modal-main-img { max-height: 250px; width: 100%; object-fit: cover; background: #f8f9fa; border-radius: 8px; margin-bottom: 15px; }
.custom-scroll-modal .modal-content { max-height: 90vh; }
.modal-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 15px; }
.modal-gallery img { width: 100%; height: 90px; object-fit: cover; border-radius: 6px; border: 1px solid #ddd; cursor: pointer; transition: 0.2s; }
.modal-gallery img:hover { filter: brightness(0.8); }

.custom-popup-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); justify-content: center; align-items: center; z-index: 1001;}
.custom-popup-modal .modal-content { background: #fff; padding: 30px; border-radius: 12px; width: 450px; max-width: 90%; position: relative; }
.close-btn { position: absolute; top: 15px; left: 20px; cursor: pointer; font-size: 24px; color: #888; }
textarea { width: 100%; height: 100px; margin-top: 15px; padding: 15px; border: 1px solid #ddd; border-radius: 8px; resize: none; box-sizing: border-box; font-family: inherit;}
.file-upload-box { display: block; border: 2px dashed #0000005c; padding: 20px; text-align: center; border-radius: 10px; cursor: pointer; margin-top: 15px; background: #f8fbff;}
.file-upload-box:hover { background: #eef5ff; }
.files-preview-area { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.preview-item { position: relative; background: #eee; padding: 5px; border-radius: 8px; display: flex; align-items: center; gap: 5px; font-size: 12px;}
.preview-item img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; }
.remove-file { position: absolute; top: -5px; right: -5px; background: red; color: white; border-radius: 50%; width: 18px; height: 18px; display: flex; justify-content: center; align-items: center; cursor: pointer; font-size: 10px;}
.progress-container { display: none; background: #ddd; width: 100%; height: 5px; border-radius: 3px; margin-top: 10px; overflow: hidden;}
.progress-bar { height: 100%; background: #000000; width: 0%; transition: 0.2s;}

#reportType {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: none;
  padding-left: 10px;
  padding-right: 10px;
}
.text-center.px-4.py-3.bg-light.rounded.border {
  display: flex;
  padding: 5px 10px !important;
  background-color: white !important;
  border: 0 !important;
}
.text-muted.small.fw-bold {
  padding: 7px;
}

/* إصلاحات زر الإغلاق للغة الإنجليزية */
[dir="ltr"] .btn-close {
    margin-left: auto !important;
    margin-right: 0 !important;
}

@media (max-width: 767px) {
    .text-center.px-4.py-3.bg-light.rounded.border {
        display: none;
    }
}


.content-box.is-featured {
  border: 1px solid #eee !important;
}

.widget-title::after {
  background-color: var(--secondary-color) !important;
}