:root {
    --bg-orange:#f78400;
    --text-lit :#c1c1c1;
    --bg-lights: #eee;
    --bg-footer: #e2e8f0;
    --text-b: #426ddd;
    --box-shadow: #f3f0f0;
}

.text-b { color: var(--text-b); }
.text-s { color: var(--text-lit); }

body {
    margin: 0;
    padding: 0;
    font-family: 'Almarai', sans-serif;
    font-family: 'Cairo', sans-serif;
}

/* main */
.swiper-container {
    width: 90%; 
    height: auto;
    overflow: hidden;
    margin: 0 auto;
    direction: rtl; /* عكس اتجاه التمرير */
    scroll-snap-type: x mandatory; /* تحديد اتجاه التمرير بشكل صحيح */
}

.swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: center; 
    padding-right: 0;
}

.swiper-slide {
    flex: 0 0 auto;
    width: auto;
    margin-bottom: 10px;
    text-align: right;
    scroll-snap-align: end;
    padding-right: 0;
}

.nav-pills {
    white-space: nowrap;
}

.nav-item {
    display: inline-block;
    padding-right: 10px;
}

.card-dealer {
    width: 100%;
    height: 100%;
    }

    @media (max-width: 768px) {
    .card-dealer {
        height: auto;
        margin-top: 55px;
    }
}
    .dealer-card {
  height: 120px;
  width: 122px;
  border: none;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.dealer-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto; 
  height: auto;
}

.car-adv b {
    position: relative;
}

.car-adv b::before {
    content: '';
    position: absolute;
    width: 100%;
    border-bottom: 2px #426ddd solid;
    bottom: -3px;
    border-radius: 5px;
}

.body{
    margin: 0;
    padding: 0;
    font-family: 'Almarai', sans-serif;
    font-family: 'Cairo', sans-serif;
}
.bg-lights {
    background: var(--bg-lights);
}

.featured__filter .col-md-12 {
    flex: 0 0 calc(100% - 10px);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .featured__filter .col-md-12 {
        flex: 0 0 calc(50% - 10px); 
    }
}
.featured {
	padding-top: 0px;
	padding-bottom: 40px;
}
h1 {
  font-size: 20px;
  text-align: center;
  font-weight: bold;
}
p {
  direction: rtl;
}

@media (max-width: 768px) {
.advertisement-card {
    width: auto;
    max-width: 100%;
    margin-left: 5px;
}
}

.modal-body {
    padding: 0rem;
}

.modal-dialog {
    position: fixed;
    bottom: -18px;
    right: 100px;
    margin: 0;
    width: auto;
    pointer-events: none
}
.modal-header .modal-title {
    margin-left: 50px;
}

.modal-content.box-message {
    bottom: 0;
    right: 0;
    width: 335px;
    height: 515px;
    margin: 10px;
    z-index: 1050;
    border-radius: 12px 12px 0 0;
    background-color: #f0f0f0;
}

@media (max-width: 575.98px) { 
    .modal-dialog {
        right: -10px; 
       
    }
    .modal-content.box-message {
        width: 100vw;
        height: 93.5vh;
}
}