/* --- Header "Post Your Ad" button: use brand maroon -----------
   main.css:353 hard-codes #0072bc (blue) as the resting state and
   main.css:362 switches to #8d1b3d (brand maroon) only on hover —
   so the brand colour is hidden until interaction. Swap the two so
   the button reads as part of the site's palette, using a darker
   tone for hover/focus feedback. Loaded after main.css + preset1
   so specificity ties go to us by source order. */
#header a.btn {
    background-color: #8d1b3d;
}
#header a.btn:hover,
#header a.btn:focus {
    background-color: #6d152f;
}

/* --- Header right-side widgets alignment (desktop) -------------
   The right-hand navbar (.nav-right) holds three very different
   widgets — language switcher, user/login link, Post-Ad button —
   plus, when logged in, a dropdown with the user's name. main.css
   used `text-align: right` plus a grab-bag of per-child top margins
   (.nav-right margin-top:4px, .sign-in li margin-top:10px, btn with
   asymmetric 5px/7px padding), which left every widget landing at a
   slightly different vertical offset and none matching the main
   menu items (which sit at padding:15px 8px). Flip .nav-right to a
   flex row centred vertically so the tallest child defines the row
   and the rest auto-align; zero out the legacy per-child nudges.
   Scoped to ≥768px so the mobile collapsed menu still stacks. */
@media (min-width: 768px) {
    .nav-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 14px;
        margin-top: 0;
        min-height: 60px; /* matches navbar item line-height + padding */
    }
    .nav-right .language-switcher,
    .nav-right .language-dropdown,
    .nav-right .sign-in {
        margin: 0;
    }
    .nav-right .sign-in,
    .nav-right .sign-in li {
        display: inline-block;
        margin-top: 0;
        padding: 0;
    }
    /* The decorative vertical separator (images/1.png) before the
       last sign-in item was positioned via left:0 with padding; the
       gap now handles spacing, so drop the pseudo-element to stop
       it floating detached from the text. */
    .nav-right .sign-in li:last-child {
        padding-left: 0;
    }
    .nav-right .sign-in li:last-child:before {
        display: none;
    }
    .nav-right .btn {
        margin: 0;
    }
}

.bootstrap-select > .dropdown-toggle {
    height: 44px;
    font-size: 16px;
    color: #000;
}

.red-text {
    color: #ed1c24;
}

.bootstrap-select > .dropdown-toggle {
    padding-left: 12px;
}

/* --- Profile page: make bootstrap-select (nationality) visually match the
   native `form-control` inputs/selects on the same form. Without this the
   selectpicker renders as a taller, bolder `.btn` with different borders and
   different width (bootstrap-select copies the original <select>'s classes
   — form-control, width-75-percent — to its wrapper, then adds its own
   defaults which can fight each other and end up narrower than siblings). */
.user-pro-section .bootstrap-select,
.user-pro-section .bootstrap-select.btn-group,
.user-pro-section .bootstrap-select.form-control {
    float: right !important;
    width: 75% !important;
    max-width: 75% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    display: block !important;
}
.user-pro-section .bootstrap-select > .dropdown-toggle {
    width: 100% !important;
    height: 43px;
    padding: 6px 12px;
    font-size: 16px;
    font-weight: 400;
    color: #a0a0a0;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: none;
    text-shadow: none;
}
.user-pro-section .bootstrap-select > .dropdown-toggle:focus,
.user-pro-section .bootstrap-select.open > .dropdown-toggle {
    outline: 0 !important;
    box-shadow: none;
    background-color: #fff;
}
.user-pro-section .bootstrap-select .filter-option {
    color: #000;
}

/* --- Profile form on mobile (<768px): stack label above field ---------
   main.css pins labels to `float: left; width: 25%` and fields to
   `float: right; width: 75%` at every breakpoint, so on narrow phones
   Arabic labels like "تاريخ الميلاد" wrap onto two lines and the field
   sits in a cramped 75% column. Stack them full-width on xs. */
@media (max-width: 767px) {
    .user-pro-section label,
    .user-pro-section .form-control,
    .user-pro-section .bootstrap-select,
    .user-pro-section .bootstrap-select.btn-group,
    .user-pro-section .bootstrap-select.form-control {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .user-pro-section label {
        margin-bottom: 6px;
    }
}

.btn-green {
    background-color: #5cb85c !important;
}

.width-49-percent {
    width: 49% !important;
}

.width-50-percent {
    width: 50% !important;
}

.width-75-percent {
    width: 75% !important;
}

.float-left {
    float: left !important;
}

.float-right {
    float: right !important;
}

.align-center {
    text-align: center !important;
}

.adpost-details .form-group {
    margin-bottom: 20px;
}

.upload-image {
    position: relative;
}

.upload-image .delete-photo {
    position: absolute;
    right: 0;
    top: 0;
}

.btn-group-file-upload {
    background: #eee;
    border: 1px solid #ccc;
}

.av-meta .meta-content .fa {
    font-size: 18px;
}

#main .slider-text h3.title {
    font-size: 28px;
}

span.number-of-photo {
    position: absolute;
    bottom: 3px;
    right: 0;
    background-color: #00a651;
    color: #fff;
    border-radius: 10px 0 0 10px;
    padding: 0 5px;
}

.my-avs span.number-of-photo {
    bottom: 22px;
}

.breadcrumb-section h2.title {
    margin-bottom: 5px;
}

section {
    padding: 10px 0;
}

.margin-left-1-percent {
    margin-left: 1% !important;
}

.margin-right-10 {
    margin-right: 10px !important;
}

.margin-left-10 {
    margin-left: 10px !important;
}

.margin-right-1-percent {
    margin-right: 1% !important;
}

.nav li a, .navbar-default .navbar-nav > li > a {
    font-size: 15px;
    padding: 15px 8px;
    text-transform: none;
}

#logo {
    width: 163px;
    height: 52px;
}

.navbar-brand {
    padding: 0;
}

.mandatory-fields {
    color: #ed1c24;
}

#new-ad-form #gallery .thumbnail {
    width: 150px;
    height: 150px;
    float: left;
    margin: 2px;
}

#new-ad-form #gallery .thumbnail img {
    width: 150px;
    height: 140px;
    border-radius: 5px;
}

#new-ad-form input[type="file"] {
    display: none;
}

#new-ad-form .add-image h5, .add-image h5 label {
    cursor: pointer;
}

#new-ad-form .thumbnail {
    position: relative;
}

#new-ad-form .thumbnail button {
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #0072bc;
    color: #fff;
}

#loader-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

#loader {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #00a651;

    -webkit-animation: spin 2s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
    animation: spin 2s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
}

#loader:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #00a651;

    -webkit-animation: spin 3s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
    animation: spin 3s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
}

#loader:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #00a651;

    -webkit-animation: spin 1.5s linear infinite; /* Chrome, Opera 15+, Safari 5+ */
    animation: spin 1.5s linear infinite; /* Chrome, Firefox 16+, IE 10+, Opera */
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg); /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(0deg); /* IE 9 */
        transform: rotate(0deg); /* Firefox 16+, IE 10+, Opera */
    }
    100% {
        -webkit-transform: rotate(360deg); /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(360deg); /* IE 9 */
        transform: rotate(360deg); /* Firefox 16+, IE 10+, Opera */
    }
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg); /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(0deg); /* IE 9 */
        transform: rotate(0deg); /* Firefox 16+, IE 10+, Opera */
    }
    100% {
        -webkit-transform: rotate(360deg); /* Chrome, Opera 15+, Safari 3.1+ */
        -ms-transform: rotate(360deg); /* IE 9 */
        transform: rotate(360deg); /* Firefox 16+, IE 10+, Opera */
    }
}

#product-carousel .carousel-indicators {
    top: 101%;
}

#product-carousel .carousel-indicators li:first-child, #product-carousel .carousel-indicators li {
    margin-left: 8px !important;
    margin-right: 5px !important;
}

.span-error {
    color: #c1272d;
    margin-bottom: 15px;
}

.contact-with .btn-red:hover {
    color: #fff;
    background-color: #f36d2d;
    border: 1px solid #f36d2d;
}

.contact-with .btn i {
    margin-right: 5px;
}

.contact-with .btn {
    margin-right: 14px;
}

.profile .form-button.btn {
    background-color: #00a651;
    color: #fff;
    padding: 6px 26px 7px;
    border: 1px solid #00a651;
    margin: 9px 0 0;
    margin-bottom: 30px;
}

.profile .form-button:hover {
    background-color: transparent;
    color: #00a651;
    border: 1px solid #00a651;
}

.user-pro-section .form-control {
    float: left;
}

.user-pro-section select, .user-pro-section input, .user-pro-section .dropdown-toggle span {
    color: #00a651;
}

.clear-both {
    clear: both;
}

.bg-success, .bg-danger {
    padding: 15px;
    border-radius: 5px;
}

.bg-success {
    border: 1px solid #bfd8b5;
}

.span-upload-profile-picture {
    cursor: pointer;
}

.span-upload-profile-picture input {
    display: none;
}

.user-images img {
    width: 72px;
    height: 72px;
}

#something-sell {
    background-image: none;
    padding: 40px 0 60px;
}

.captcha_image {
    border-radius: 10px;
    border: 1px solid black;
    margin-right: 15px;
}

#product-carousel .carousel-indicators li img {
    border: 1px solid #cbd0d0;
    border-radius: 10px;
}

.flash-notice {
    color: #00a651;
}

.select_sort {
    font-size: 13px;
    text-transform: capitalize;
    font-family: 'MyriadPro-Regular', sans-serif;
    width: 200px;
    height: 30px;
    display: inherit;
}

/*.dropdown-menu > li > a:hover, .dropdown-menu > li.selected > a {*/
/*color: #00a651;*/
/*}*/

.recommended-avs {
    padding: 20px 25px 35px;
}

.av-info {
    padding: 10px;
}
.av-info .item-cat {
    padding-bottom:5px;
}
.av-info .item-cat .item-extra {
    padding-right:10px;
}
.footer-top {
    padding: 30px 0 30px;
}

.footer-widget .item {
    margin-bottom: 20px;
    color: #000;
    line-height: 28px;
    display: block;
    font-size: 24px;
    font-weight: 100;
}

.social-widget h3 {
    margin-bottom: 20px;
}

.av-meta {
    width: 100%;
}

.language-item, .education-item, .experience-item {
    margin-bottom: 20px;
    padding-bottom: 60px;
    border-bottom: 1px solid #ccc;
    border-bottom-style: dashed;
}

.slider-text span.fav-text {
    color: inherit;
}

.post-resume .buttons {
    margin-top: 0;
}

.datepicker {
    padding: 6px 12px;
    cursor: pointer;
}

.loading {
    position: relative;
}

.loading:after {
    content: "";
    position: absolute;
    display: block;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    opacity: .8;
    background: #fff url('../img/loading-sm.gif') no-repeat center center;
    z-index: 999;
}

.languages .fa-star {
    color: #45b55d;
}

.text-underline {
    text-decoration: underline;
}

.green-text {
    color: #00a651 !important;
}

.red-text {
    color: #ed1c24 !important;
}

.orange-text {
    color: #f7941d !important;
}

.blue-text {
    color: #0072bc !important;
}

.category-av-list.job-category-av {
    margin-top: 0;
    padding: 0 10px 10px;
}

@media (min-width: 767px) {
    .category-av-list.job-category-av .category-list .category-item {
        width: 50%;
    }
}

@media (min-width: 1000px) {
    .category-av-list.job-category-av .category-list .category-item {
        width: 33%;
    }
}

.terms-of-use ul li, .terms-of-use ol li {
    margin-bottom: 10px;
}

.description-info span {
    display: initial;
}

.main-homepage .category-list .category-icon img {
    height: 27px;
}

.homepage .banner h1.title {
    font-size: 32px;
}

.homepage .banner h2 {
    font-size: 22px;
    font-weight: 300;
    color: #fff;
    margin: 20px 0 20px;
}

div.item-price {
    font-size: 18px !important;
}

.contact-us h1.title, .about-us h1.title {
    margin-top: 0;
    margin-bottom: 5px;
}

.discussion-user-icon {
    height: 40px;
    width: 40px;
    display: block;
    background-color: #8D1B3D;
    color: #fff;
    border-radius: 30px;
    padding: 10px;
}

.non-read-message-number {
    width: 20px;
    position: relative;
    height: 18px;
    background-color: #8D1B3D;
    color: #fff;
    border-radius: 4px;
    display: inline-block;
    font-size: 12px;
    text-align: center;
    line-height: 17px;
}

.breadcrumb-section h1.title {
    margin-bottom: 5px;
    margin-top: 0;
    font-weight: 700;
    font-size: 30px;
}
.price-changed{
    font-size: 12px;
    text-decoration: line-through;
}
.price-history-modal h4{
    margin-bottom: 0;
}
.price-history-modal .text-muted{
    font-size: 50%;
}

.price-history-modal tbody tr {
    border-bottom: 1px solid #ddd; /* Light gray border */
}
.price-history-modal tbody tr td {
    border-top: none;
}
.price-history-modal tbody tr:last-child {
    border-bottom: none;
}
.cursor-pointer {
    cursor: pointer;
}

.price-history-button{
    color: #8A1538 !important;
}
@media (max-width:767px) {
    .collapse-on-sm {
        display:none !important;
    }
}

/* Price label — 5-dot market-price assessment, pill-shaped tag */
.price-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 8px;
    background: #564a4e17;
    border-radius: 5px;
    font-size: 12px;
    color: #8A1538;
    line-height: 1;
    vertical-align: middle;
    white-space: nowrap;
}
.price-label__dots {
    display: inline-flex;
    gap: 3px;
    flex-shrink: 0;
}
.price-label__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(138, 21, 56, 0.18);
    display: inline-block;
}
.price-label__dot--active {
    background: #8A1538;
}
.price-label-wrapper {
    margin: 8px 0 12px;
}
.price-label-wrapper .price-label {
    font-size: 14px;
    margin-top: 0;
    padding: 6px 14px;
}
.price-label-wrapper .price-label__dot {
    width: 10px;
    height: 10px;
}
.item-price .price-label {
    display: inline-flex;
    margin-left: 10px;
}