:root {
    --main-color: #7bd338;
    --main-color-alt: #a1d959;
    --g-blue: #4285f4;
    --g-red: #ea4335;
    --g-yellow: #fbbc05;
    --g-green: #34a853;
}
.content-site {
    padding: 90px 20px;
}
.form-change-password {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 500px;
}

.forget-password-page {
    margin: 150px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.forget-password-page .element {
    width: 70%;
}
.main-content-profile .page-1 .items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* main-content-profile */
.main-content-profile .page-1 .items .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fbfbff;
    padding: 10px 20px;
    border-radius: 14px;
}
.main-content-profile .page-1 .items .item button {
    background: #667aeb;
    padding: 10px 30px;
    border-radius: 10px;
    font-size: 12px;
    color: #fff;
}
.main-content-profile .page-1 .items .item h6 {
    display: flex;
    gap: 24px;
    align-items: center;
    width: 300px;
    justify-content: space-between;
}
.main-content-profile .page-1 .items .remove-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0;
    border: 1px solid #f3f3f3;
    padding: 17px;
    border-radius: 13px;
}

.search-app {
    margin-top: 80px;
    background-color: #fff;
    padding: 40px 20px;
    color: #fff;
}

.search-app .app {
    position: relative;
}
.search-app .app i {
    position: absolute;
    right: 16px;
    top: 39%;
    color: #555;
}
.search-app .app input {
    padding: 10px 45px;
}
.search-app .app button {
    position: absolute;
    left: 0;
    top: 19px;
    left: 25px;
    width: 10%;
}

.main-title {
    color: #fff;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
    background-color: #7bd338;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}
.page-person {
    background: #fbfbfb;
}
.page-person .content .side-content .member-prim .content-member .box {
    background-color: #ffffff;
    gap: 14px;
    align-items: center;
    padding: 5px 10px;
}

.profile-section .items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.profile-section .items .item {
    display: flex;
    justify-content: space-between;
    border: 1px solid #eee;
    align-items: center;
    padding: 15px 20px;
}
.profile-section .items .item h6 {
    width: 30%;
    justify-content: space-between;
}

.grayscale {
    filter: grayscale(100%);
}

.persons-row {
    display: flex;
    flex-wrap: wrap;
}

.col-custom {
    width: 25%;
    padding: 10px;
}

@media (max-width: 992px) {
    .col-custom {
        width: 33.33%; /* 3 شخصيات بالصف على الشاشات المتوسطة */
    }
}

@media (max-width: 768px) {
    .col-custom {
        width: 50%; /* 2 بالصف على الجوال */
    }
}

@media (max-width: 480px) {
    .col-custom {
        width: 100%; /* واحد فقط على الشاشات الصغيرة جداً */
    }
}

.title-company-home,
.title-persons-home,
.title-categories-home {
    padding: 30px 0;
    color: #363636;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 15px 20px;
    display: none;
    z-index: 99999999999999999999999999;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
}

.cookie-banner .buttons {
    margin-top: 10px;
}

.cookie-banner .btn {
    margin-left: 10px;
}

#preloader {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #ffffff;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* شكل دائرة التحميل */
.loader {
    width: 60px;
    height: 60px;
    border: 6px solid #ddd;
    border-top-color: var(--main-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* حركة الدوران */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* إخفاء المحتوى قبل انتهاء التحميل */
.content {
    display: none;
}

.all-persons {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr); /* 4 أعمدة */
    justify-items: center; /* توسيط العناصر */
    gap: 30px;
}
.all-persons .person {
    text-align: center;
    margin: 20px 0;
    background: #ffffff;
    padding: 24px;
    border: 1px solid #eee;
}
/* تابلت (طول شاشة أقل من 992px) */
@media (max-width: 992px) {
    .all-persons {
        grid-template-columns: repeat(2, 1fr); /* 2 عمود */
    }
}

/* موبايل (طول شاشة أقل من 576px) */
@media (max-width: 576px) {
    .all-persons {
        grid-template-columns: 1fr; /* عمود واحد */
    }
}

.head-search {
    background: linear-gradient(to left, var(--main-color), #4b6b23);
    border-radius: 54px;
    margin: 130px 0;
}

#searchBtn {
    position: absolute;
    left: 33px;
    top: 25%;
    padding: 12px;
    border-radius: 10px;
    background: #f1f1f1;
    color: #4e7124;
    font-weight: bold;
    width: 138px;
}
.app-persons-row {
    background: linear-gradient(to bottom, #ffffff 0%, #fbfff8 100%);
}
.persons-row .col-custom {
    width: 20% !important;
}

.persons-row .col-custom .card-category {
    background-color: #fff;
    color: 000;
    box-shadow: 10px 10px 5px -8px rgb(235, 235, 235);
    -webkit-box-shadow: 10px 10px 5px -8px rgb(235, 235, 235);
    -moz-box-shadow: 10px 10px 5px -8px rgb(235, 235, 235);
}
.persons-row .col-custom .card-category img {
    border: 8px solid #ffffff;
}

/* .image {
    overflow: hidden;
    margin: 12px;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
} */

.app-compaines-row {
    background-color: #a6e55426;
    padding: 16px;
    border-radius: 54px;
}
.app-compaines-row .items {
    display: flex;
    flex-wrap: wrap;
    gap: 1%;
}
.app-compaines-row .items .item {
    width: 19% !important;
    margin: 15px 0;
}
.social-media a:hover {
    color: #7bd338 !important;
}

.google-linear {
    background-color: #dc3545;
    color: #fff !important;
}

.search-app .app button {
    background-color: var(--main-color);
    color: #fff;
    padding: 13px;
    top: 22%;
}
.search-app .app input {
    border: 10px solid #b6e27e;
    border-radius: 34px;
}
.search-app .app input:focus {
    border: 10px solid var(--main-color);
}
.page-all-categories .content {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1%;
}
.page-all-categories .content .card-category {
    width: 19%;
    margin: 10px 0 !important;
}

.active > .page-link,
.page-link.active {
    background-color: var(--main-color);
    border: navajowhite;
}
.page-link {
    color: var(--main-color);
}
.page-link:hover {
    color: var(--main-color-alt);
}

.page-blogs .item {
    display: flex;
    align-items: center;
    box-shadow: 10px 10px 5px -8px rgba(0, 0, 0, 0.22);
    -webkit-box-shadow: 10px 10px 5px -8px rgba(0, 0, 0, 0.22);
    -moz-box-shadow: 10px 10px 5px -8px rgba(0, 0, 0, 0.22);
}
.page-blogs .item .image {
    width: 50%;
}
.page-blogs .item .text {
    width: 50%;
}
.btn {
    background-color: #7bd338;
    color: white;
    padding: 15px 51px;
}
.btn:hover {
    background-color: var(--main-color-alt);
    color: white;
}
.btn.btn-dark {
    background-color: #000;
    color: #fff;
}
.btn.btn-danger {
    background-color: #dc3545;
    color: #fff !important;
}

.forget-password-page .element {
    border: 1px solid #eee;
    padding: 85px;
    border-radius: 15px;
    box-shadow: 10px 10px 5px -8px rgba(0, 0, 0, 0.22);
    -webkit-box-shadow: 10px 10px 5px -8px rgba(0, 0, 0, 0.22);
    -moz-box-shadow: 10px 10px 5px -8px rgba(0, 0, 0, 0.22);
}

.search-app {
    position: fixed;
    top: 0; /* المسافة من الأعلى وقت التثبيت */
    z-index: 7; /* عشان يفضل فوق باقي العناصر */
    background: #fff; /* خلفية بيضاء علشان ما يختلطش بالمحتوى */
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* ظل خفيف */
    width: 100%;
}

.select-category:not(.select-category-home),
.page {
    padding-top: 270px !important;
}
.form-check-input:checked {
    background-color: var(--main-color);
    border: none;
}

#results .person-card {
    width: 100%;
    border: 1px solid #eee;
}
#results .person-card img {
    /* width: 200px;
    height: 200px; */
    margin: 10px;
}

/* New Code */
.persons-row .col-custom .card-category img {
    border-radius: 25px;
}

.image-category {
    border-radius: 25px;
    padding: 13px;
}
.one-line {
    display: -webkit-box;
    -webkit-line-clamp: 1; /* غيّر الرقم لعدد الأسطر */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.form-change-password {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 10px 9px 19px -6px rgba(0, 0, 0, 0.06);
    -webkit-box-shadow: 10px 9px 19px -6px rgba(0, 0, 0, 0.06);
    -moz-box-shadow: 10px 9px 19px -6px rgba(0, 0, 0, 0.06);
}
.modal-header {
    justify-content: space-between;
}
.btn-close {
    margin: 0 !important;
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--main-color);
}
.nav-pills .nav-link {
    color: var(--main-color);
}
.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    background: #212529;
    color: white;
    font-weight: bold;
}
.page-person-by-slug-category .items {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.page-person-by-slug-category .card {
    box-shadow: 10px 10px 5px -8px rgb(235, 235, 235);
    -webkit-box-shadow: 10px 10px 5px -8px rgb(235, 235, 235);
    -moz-box-shadow: 10px 10px 5px -8px rgb(235, 235, 235);
    border: 1px solid #e1e1e1;
}

.page-person-by-slug-category .card a {
    padding: 16px;
}
.page-person-by-slug-category .card img {
    border-radius: 20px !important;
}

.page-person-search img {
    border-radius: 20px;
}
.swiper-button-next,
.swiper-button-prev {
    color: #7bd338;
}
.show-person-one .current_position {
    gap: 15px;
    align-items: center;
}
