:root {
    --main-color: rgb(184, 134, 11);
    --primary-color: rgba(180, 130, 70, 1);
    --active-color: rgba(160, 110, 50, 1);
    --text-color-white: #fff;
    --circle-border-radius: 50%;
    --gray-text: rgba(96, 98, 102, 1);
    --main-box-shadow: 0px 20px 50px 0px rgba(184, 134, 11, 0.05);
    --main-border: 1px solid var(--grayBorder, rgba(237, 237, 237, 1));
    /* --animate-duration: 2s; */
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    direction: rtl;
}

a {
    text-decoration: none;
    color: #000;
}

li {
    list-style-type: none;
}

.main-button {
    min-width: 100px;
    border: 1px solid var(--main-color);
    color: var(--main-color);
    background-color: transparent;
    padding: 0.5rem 1.5rem;
    font-weight: 400;
    font-size: 14px;
    white-space: nowrap;
    border-radius: 32px;
    -webkit-border-radius: 32px;
    -moz-border-radius: 32px;
    -ms-border-radius: 32px;
    -o-border-radius: 32px;
}
.text_active {
    color: var(--active-color);
}

.primary-button {
    border: 1px solid var(--main-color);
    background-color: var(--main-color);
    color: var(--text-color-white);
    padding: 0 1rem;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    border-radius: 32px;
    -webkit-border-radius: 32px;
    -moz-border-radius: 32px;
    -ms-border-radius: 32px;
    -o-border-radius: 32px;
}
.active-button {
    border: 1px solid var(--active-color);
    background-color: var(--active-color);
    color: var(--text-color-white);
    padding: 0 1rem;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    border-radius: 32px;
    -webkit-border-radius: 32px;
    -moz-border-radius: 32px;
    -ms-border-radius: 32px;
    -o-border-radius: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-icon {
    height: 42px;
    width: 42px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(154, 154, 154, 0.5);
    border: 1px solid rgba(154, 154, 154, 0.35);
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

/* inputs */

.input {
    background-color: rgba(245, 245, 245, 0.9);
}
/* text */
.text-main-color {
    color: var(--main-color);
}
a.text-main-color:hover {
    color: var(--main-color);
}
.text-primary-color {
    color: var(--primary-color);
}

.gray-text {
    color: var(--gray-text);
}

/* Shadow */
.main-shadow {
    box-shadow: var(--main-box-shadow);
}

/* borders */

.main-border {
    border: var(--main-border);
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

/* font Size */

/* 1- smal font  */

.mobile-font {
    font-size: 13px;
    font-weight: 600;
}

/* Title to all sections */
.category-title {
    border-top: 0;
    border-right: 0;
    border-left: 0;
    border-bottom-style: solid;
    border-bottom-color: var(--main-color);
    border-radius: 16px;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
    -ms-border-radius: 16px;
    -o-border-radius: 16px;
    color: rgba(9, 38, 80, 1);
}

/* Book Card */
.card {
    border-color: rgba(237, 237, 237, 1);
    .card-text {
        overflow: hidden;
        white-space: wrap;
        text-overflow: ellipsis;
        font-family: "Cairo", sans-serif;
        font-size: 16px !important;
    }
    .card a {
        height: 100%;
    }
    .image {
        height: 300px;
        img {
            height: 100%;
            /* object-fit: contain; */
            border-radius: 10px;
            -webkit-border-radius: 10px;
            -moz-border-radius: 10px;
            -ms-border-radius: 10px;
            -o-border-radius: 10px;
        }
    }
}

@media (max-width: 991px) {
    .category-title {
        font-size: 18px;
        font-weight: 500;
    }
}

@media (max-width: 768px) {
    .card-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: wrap;
        font-family: "Cairo", sans-serif;
        font-size: 10px !important;
    }
}

/* Services Section  */

.service .text-service {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(100, 100, 100, 1);
}

.service {
    box-shadow: 0px 20px 50px 0px rgba(33, 55, 137, 0.05);
    background: rgba(255, 255, 255, 1);
    padding: 1.8rem;
    border-radius: 12px;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
}
.service span {
    font-size: 2.2rem;
    padding: 0.5rem 1rem;
    background: rgba(9, 38, 80, 0.05);
    border-radius: 16px;
    -webkit-border-radius: 16px;
    -moz-border-radius: 16px;
    -ms-border-radius: 16px;
    -o-border-radius: 16px;
    i {
        color: var(--primary-color);
    }
}

/* pagination */
.page-item:first-child .page-link {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}
.page-link {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

.page-item:first-child .page-link,
.page-item:last-child .page-link {
    color: var(--primary-color);
}
.page-item:first-child .page-link:hover {
    color: #fff;
}

.page-item .page-link {
    /* background-color: red; */
    border-top-right-radius: 50% !important;
    border-bottom-right-radius: 50% !important;
}

.page-link:hover,
.page-link:focus {
    background-color: var(--primary-color);
    color: #fff !important;
    box-shadow: none;
}

/* Checkbox */

.form-check-input:checked {
    background-color: var(--main-color);
    border: none;
    box-shadow: none;
}
.form-check .form-check-input {
    float: left;
    margin-left: 0;
    border: var(--main-border);
}

.form-check .form-check-input:focus {
    box-shadow: none;
}

/* Discound  */

.image_recent {
    position: relative;
}

.image_recent::after {
    content: "أفضل مبيعا";
    position: absolute;
    top: 1rem;
    left: -10px;
    height: 2.5rem;
    width: 7rem;
    background-color: var(--main-color);
    color: var(--text-color-white);
    padding: -2px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    clip-path: polygon(-1% 0, 100% 0%, 100% 100%, 0% 100%);
}
.image_recent::before {
    content: " ";
    position: absolute;
    top: 4px;
    left: -12px;
    height: 13px;
    width: 1rem;
    background-color: var(--main-color);
    color: var(--text-color-white);
    padding: -2px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    clip-path: polygon(67% 17.3%, 191.1% -6%, 104% 94%, 1% 109%);
}

.image_recent-blue::after {
    content: "أفضل مبيعا";
    position: absolute;
    top: 1rem;
    left: -8px;
    height: 2.5rem;
    width: 7rem;
    background-color: var(--primary-color);
    color: var(--text-color-white);
    padding: -2px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    clip-path: polygon(-1.2% 0, 100% 0%, 100% 100%, 0% 100%);
}
.image_recent-blue::before {
    content: " ";
    position: absolute;
    top: 2px;
    left: -11px;
    height: 16px;
    width: 1.5rem;
    background-color: var(--primary-color);
    color: var(--text-color-white);
    padding: -2px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    clip-path: polygon(108% 12.3%, 191.1% -6%, 104% 94%, 1% 109%);
}

ol li a:hover {
    color: var(--active-color);
}

/* overlay card  */
/* .image {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: 1000ms;
  -webkit-transition: 1000ms;
  -moz-transition: 1000ms;
  -ms-transition: 1000ms;
  -o-transition: 1000ms;
}

.overlay__card {
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    242.73deg,
    rgba(0, 0, 0, 0.85) -16.4%,
    rgba(9, 38, 80, 0.92) 113.72%
  );
  position: absolute;
  top: 0;
  left: 0;
  display: none !important;
  border-radius: 10px;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

.image:hover  .overlay__card {
  display: flex !important;
    transition: 1000ms;
  -webkit-transition: 1000ms;
  -moz-transition: 1000ms;
  -ms-transition: 1000ms;
  -o-transition: 1000ms;
} */

.image {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: 1000ms;
    -webkit-transition: 1000ms;
    -moz-transition: 1000ms;
    -ms-transition: 1000ms;
    -o-transition: 1000ms;
}

.overlay__card {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
        242.73deg,
        rgba(0, 0, 0, 0.85) -16.4%,
        rgba(9, 38, 80, 0.92) 113.72%
    );
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1000ms, visibility 1000ms;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    padding: 10px;
}

.image:hover .overlay__card {
    opacity: 1;
    visibility: visible;
    transition: opacity 1000ms, visibility 500ms;
    -webkit-transition: opacity 1000ms, visibility 500ms;
    -moz-transition: opacity 1000ms, visibility 500ms;
    -ms-transition: opacity 1000ms, visibility 500ms;
    -o-transition: opacity 1000ms, visibility 500ms;
}

.overlay__card .bg-icon {
    transition: 1000ms;
    background-color: none;
}

.overlay__card .bg-icon:hover {
    background: var(--main-color);
}
