/* Start  Services */
.services {
    padding-top: 100px;
    padding-bottom: 100px;
}

.services h2 {
    text-align: center;
    font-size: 40px;
    font-weight: 200;
    margin-bottom: 50px;
}

.services .imgs-containe {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 30px;
    position: relative;
}

@media(max-width:768px) {
    .services .imgs-containe {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
}

.services .imgs-containe .box {
    width: 280px;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.services .imgs-containe .box:hover img {
    transform: scale(1.1);
}

.services .imgs-containe .box img {
    width: 280px;
    height: 180px;
    max-width: 100%;
    margin: 30px 20px;
    transition: 0.5s ease;
}
/* .services .imgs-containe .box img:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-color: black;
    opacity: 0.5;
} */

.services .imgs-containe .box p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    z-index: 1;
    font-size: 25px;
    font-weight: 500;
    z-index: 40;
}
/* End  Services */
/* Start About */

.about {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: #f1f1f1;
}

.about h3 {
    text-align: center;
    font-size: 30px;
    font-weight: 500;
    margin: 30px 0;
}

.about .container1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.about .box-about {
    width: 280px;
    height: 80px;
    padding: 15px 30px;
    margin-top: 20px;
    background-color: white;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.about .box-about p {
    font-size: 18px;
    font-weight: 500;
}

.about .box-about img {
    width: 40px;
    height: 40px;
    margin-left: 15px;
}
/* End About */
/* Start  Work  */

.work {
    padding-top: 100px;
    padding-bottom: 100px;
}

.work h1 {
    text-align: center;
    padding: 20px;
}

.work .container1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.work .container1 .video {
    box-shadow: 0 5px 30px rgba(1 1 1 /15%);
    margin-left: 20px;
    width: 40%;
}

@media (max-width: 767px) {
    .work .container1 {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        align-items: flex-end;
    }
    .work .container1 .video {
        margin-right: 40px;
        order: 1;
        width: 80%;
    }
    .work .container1 .text-content {
        width: 100%;
    }
    .container1 .text-content .box {
        margin: 0 10px 10px;
    }
}

.video video {
    width: 100%;
    height: 100%;
}

.work .container1 .text-content {
    width: 50%;
    overflow: hidden;
}

.container1 .text-content .box h3 {
    font-size: 22px;
    color: #212529;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 50px 25px 20px 20px;
}

.container1 .text-content .box p {
    color: #545454;
    text-align: end;
    margin-bottom: 50px;
    margin-right: 40px;
}
/* Start The Best #f1f1f1*/

.bast {
    max-width: 780px;
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
    
}

.bast h2 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin: 50px 0;
}

.bast .container1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin: 30px;
}

@media(max-width:768px) {
    .bast .container1 {
        display: flex;
        flex-direction: column;
        text-align: center;
    }
}

.bast .container1 .card1 {
    width: 320px;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.container1 .card1 img {
    width: 90px;
    height: 90px;
    margin-bottom: 50px;
}

@media(max-width:768px) {
    .container1 .card1 img {
        margin-bottom: 20px;
    }
}

.container1 .card1 h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.container1 .card1 p {
    color: #727272;
}
/* End The Best */
/* Start ALL Services  */

.all-services {
    
    margin: 10px;
    align-items: flex-start;
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
}

.section-ther-services {
    align-items: flex-start;
    
    margin: 2px 0;
    width: 100%;
}

.all-services .title {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 5px 0px 5px;
    padding: 10px 15px;
}

.all-services .title a {
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid #01332e;
    color: #01332e;
    transition: 0.5s ease;
}

.all-services .title a:hover {
    background-color: #01332e;
    color: #cc943a;
    letter-spacing: 2;
}

.all-services .title p {
    font-size: 20px;
}

.section-ther-services .items {
    display: flex;
    flex-wrap: wrap;
    display: -ms-grid;
    gap: 0.5rem;
    justify-content:flex-start;

}

.section-ther-services .items .item {
    width: 20%;
    height: 310px;
    margin: 10px auto;
    display: flex;
    flex-direction: column;
    justify-content:flex-start;
    height: auto;
}
.section-ther-services .items .item .thumbnail img {
    width: 100%;        /* تملأ العرض كاملاً */
    max-height: 20em;
    min-height: 20em;
    border-radius: 10px;
    object-fit: cover;  /* تقطيع الصورة لملء الحجم مع الحفاظ على النسب */
    cursor: pointer;
    display: block;     /* لتجنب أي مسافات إضافية تحت الصورة */
}

.item .thumbnail a {
    width: 100%;        /* تملأ العرض كاملاً */
    max-height: 20em;
    min-height: 20em;
    object-fit: cover;  /* تقطيع الصورة لملء الحجم مع الحفاظ على النسب */
    cursor: pointer;
    display: block;     /* لتجنب أي مسافات إضافية تحت الصورة */
}

.section-ther-services .items .item .tit a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em;
    line-height: 1.5em;
    height: 3em;
    font-size: 14px;
    color: black;
    text-decoration: none;
    margin-top: 10px;
    margin-bottom: 2px;
}
.section-ther-services .items .item .tit_cat a {
    font-size: 12px;
    color: rgb(9, 106, 252);
}

@media(max-width:992px) {
    .section-ther-services .items .item {
        flex-basis: 46%;
        margin: 5px;
    }
    .section-ther-services .items .item .thumbnail img {
        max-height: 10em;
        min-height: 10em;
    }

    .item .thumbnail a {
        max-height: 10em;
        min-height: 10em;
    }    
}

@media(max-width:768px) {

    .section-ther-services .items .item {
        width: 28%;
        margin: 5px 5px;
    }
    .section-ther-services .items .item .thumbnail img {
        max-height: 8em;
        min-height: 8em;
    }

    .item .thumbnail a {
        max-height: 8em;
        min-height: 8em;
    }
}

.section-ther-services .items .item a:hover {
    color: #cc943a;
}

.section-ther-services .items .item > p {
    font-size: 12px;
    color: #444;
    margin-top: 10px;
}

.section-ther-services .items .item i {
    color: orange;
    line-height: 2;
}

.section-ther-services .items .item .stars p span {
    font-size: 12px;
    font-weight: bold;
}

/* End ALL Services  */
/* Start Solutions  */

.solutions {
    max-width: 780px;
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
    background-color: var(--section-background);
}

.solutions h2 {
    text-align: center;
    margin-bottom: 40px;
}

.solutions .container1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}

.solutions .container1 a {
    text-decoration: none;
    padding: 20px 30px;
    margin: 10px;
    background: #fff;
    border: 1px solid #eee;
    color: #222222;
    font-weight: 700;
}
/* End Solutions  */
/* Start Questions  */

.questions {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
    max-width: 780px;
    text-align: center;
}

.questions h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.questions .container1 {
    width: 100%;
}

.questions .container1 details {
    margin: 10px 10px;
    position: relative;
}

.questions .container1 details summary {
    text-align: right;
    font-size: 15px;
    /* padding: 0 0 0 200px; */
    padding: 10px;
    cursor: pointer;
}

.questions .container1 details p {
    text-align: right;
    font-size: 13px;
    padding-top: 5px;
}
/* End Questions */
/* Start Registration  */

.registration {
    margin-top: 2px;
    
    /* padding-bottom: var(--section-padding); */
}

.registration .container1 {
    flex-wrap: wrap;
    
    text-align: center;
    height: 100%;
    padding: 40px;
}

.registration .container1 h2 {
    margin: 30px;
    color: #01332e;
    font-size: 20px;
}

.registration .container1 button {
    padding: 15px 30px;
    background-color: #01332e;
    font-weight: bold;
    border: none;
    color: #cc943a;
    transition: 0.5s ease;
    cursor: pointer;
}

.registration .container1 button:hover {
    opacity: 0.7;
}
/* End Registration  */
/* Start features */


.section-srh {
    display: flex;
    flex-wrap: wrap;
    display: -ms-grid;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.heading {
    text-align: center;
    margin-bottom: 2rem;
}

.heading span {
    color: #01332e;
    font-size: 1.5rem;
}

.heading h1 {
    font-size: 2rem;
    color: #01332e;
}				

.services .box-container {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: (minmax(15rem, 1fr))[auto-fit];
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.5rem;
}

.services .box-container .box {
    background: #01332e;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    border: 0.2rem solid #111;
}

.services .box-container .box:hover {
    border: 0.2rem solid #cc943a;
}

.services .box-container .box i {
    font-size: 60px;
    color: #cc943a;
    margin-bottom: 2rem;
}

.services .box-container .box h3 {
    font-size: 18px;
    color: #cc943a;
}

.services .box-container .box p {
    padding: 1rem 0;
    font-size: 14px;
    text-align: center;
    color: #aaa;
    line-height: 2;
}
.input-group_search {
    display: flex;
    width: 400px;
    align-items: center;
    gap: 4px; /* مسافة بين الحقل والزر */
}

.custom-input {
    flex: 1; /* يمتد لملء المساحة المتاحة */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.search-bt {
    padding: 9px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    border: 1px solid #01332e;
    color: #01332e;
    transition: all 0.5s ease; /* تحسين: ضع transition على كل شيء */
    display: inline-block; /* لضمان تطبيق hover بشكل كامل */
    text-align: center; /* لتوسيط النص داخل الزر */
}

.search-bt:hover {
background-color: #01332e;
    color: #cc943a;
}

.custom-btn {
    padding: 7px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400px;
    background-color: #01332e;
    color: #cc943a;
    transition: 0.5s ease;
}

.custom-btn:hover {
    background-color: #ffffff;
    border: 1px solid #01332e;
    color: #01332e;
    letter-spacing: 2;
}

/* تنسيق النافذة المنبثقة */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    direction: rtl;
}

.modal-close {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}
#modalServices .modal-content { background-color: #e3f2fd; }
#modalProjects .modal-content { background-color: #f1f8e9; }
#modalContests .modal-content { background-color: #ffe0b2; }
#modalAuctions .modal-content { background-color: #fce4ec; }
#modalStartNow .modal-content { background-color: #fffde7; }

/* إن لم تكن تستخدم Tailwind */
.aspect-video {
    aspect-ratio: 16 / 9;
}
.main_dialog {
    max-width: 320px;
}

.connecte {
    max-width: 400px;
    text-decoration: none;
    cursor: pointer;
    padding: 8px 18px;
    border: 1px solid #01332e;
    color: #01332e;
    transition: all 0.5s ease; /* تحسين: ضع transition على كل شيء */
    display: inline-block; /* لضمان تطبيق hover بشكل كامل */
    text-align: center; /* لتوسيط النص داخل الزر */
}

.connecte:hover {
    background-color: #01332e;
    color: #cc943a;
}

.howWork {
    max-width: 400px;
    margin-top: 20px;
    text-decoration: none;
    cursor: pointer;
    padding: 8px 18px;
    border: 1px solid #01332e;
    color: #01332e;
    transition: all 0.5s ease; /* تحسين: ضع transition على كل شيء */
    display: inline-block; /* لضمان تطبيق hover بشكل كامل */
    text-align: center; /* لتوسيط النص داخل الزر */
}

.howWork:hover {
    /* background-color: #01332e; */
    color: #cc943a;
    /* transform: scale(1.05); */
}
    

.modal-overlayback {

    background-color: rgba(0, 0, 0, 0.6);

    align-items: center;
    justify-content: center;
    
    opacity: 0;
    transition: opacity 0.3s ease;
}


.gigk .bottom .user {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px; /* فاصل بين الصورة والنص */
    padding: 10px;
    /* يمكنك إزالة justify-content-left إذا لم تكن معرفة */
}

.image img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover; /* أفضل من contain لجعل الصورة تملأ الدائرة */
    display: block;
}

.gigk .bottom .user .user-info {
    text-align: right;
    flex: 1; /* يأخذ المساحة المتاحة */
    min-width: 0; /* مهم لتفعيل الـ ellipsis عند الاقتطاع */
}

.gigk .bottom .user .user-info .name,
.gigk .bottom .user .user-info .job {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.gigk .bottom .user .user-info .name a,
.gigk .bottom .user .user-info .job {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 1.5em;
    line-height: 1.5em;
    height: 1.5em;
}

.gigk .bottom .user .user-info .name a {
    color: black;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
}

.gigk .bottom .user .user-info .job {
    color: #01332e;
    font-weight: 600;
    font-size: 10px;
}

.explore-services {

  padding: 10px 10px;
  background-color: #c9c9c900 !important;

}

.explore-services .h1 {
  color: #01332e;
  font-weight: 500;
  font-size: 16px;
}

.explore-services .row1 {
  display: grid;
  grid-template-columns: repeat(8, 1fr); /* 3 أعمدة متساوية */
  column-gap: 1.5rem;    /* ← تم تقليل المسافة الجانبية */
  row-gap: 1rem;        /* ← المسافة الرأسية تبقى كما هي */
  width: 100%;
  
  margin: 0 auto;
}

.explore-services .row1 .item {
  /* width: 200px; ← أزلها أو علّقها */
  min-width: 200px; /* لمنع التمدد الزائد */
  height: 100%;
  background: #ffffff;
  padding: 10px;
  text-align: center;
  border-radius: 8px; /* اختياري: تحسين الشكل */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* اختياري */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-content: stretch;
  gap: 4px; /* مسافة بين العناصر داخل .item */
}

.explore-services .row1 a .item .name {
  margin-top: 5px;
  margin-bottom: 5px;
  color: #01332e;
  font-size: 12px;
}

.explore-services .row1 a .item .image img {
  width: 120px;
  height: 120px;
  margin-bottom: 5px;
}


/* .gigk .bottom .user {
  padding: 10px 10px;
}

.image img {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}

.gigk .bottom .user .user-info {
  text-align: left;
  width: 100%;
  margin-right: 10px;
}

.gigk .bottom .user .user-info .name {
    font-weight: 500;
    font-size: 12px;
    align-items: flex-start;
    text-align: start;
}
.gigk .bottom .user .user-info .name a {

    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 1.5em;
    line-height: 1.5em;
    height: 1.5em;
    color: black;
    text-decoration: none;
    
}

.gigk .bottom .user .user-info .job {
    color: #01332e;
    font-weight: 600;
    font-size: 10px;
    align-items: flex-start;
    text-align: start;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 1.5em;
    line-height: 1.5em;
    height: 1.5em;
    text-decoration: none;
}

.gigk .bottom .title {
  padding: 5px 10px;
  text-align: left;
  color: #000;
  font-weight: 600;
  max-height: 58px;
  overflow: hidden;
  min-height: 58px;
}

.gigk .bottom .rates {
  padding: 0;
  text-align: left;
  margin: 0;
  border: none;
}

.gigk .bottom .rates .r-star {
  font-size: 12px;
} */


/* @media (max-width: 991px) {
html {
font-size: 90%;
}
} */
