/* Start Global Rules */



* {

    box-sizing: border-box;

    -webkit-box-sizing: border-box;

    -moz-box-sizing: border-box;

}



/* Start Variables */



:root {

    --main-color: #2e8ccf;

    --back-color: #f9f9ff;

    --main-transition: 0.5s;

    --sec-color: #eeeeee;

    --padding-top: 50px;

    --padding-bottom: 50px;

}



/* End Variables */



html {

    scroll-behavior: smooth;

}

/* التأثيرات عند التمرير */
.js-scroll {
    opacity: 0;
    transform: translateY(20px); /* بداية العنصر من أسفل */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  .js-scroll.scrolled {
    opacity: 1; /* يظهر العنصر */
    transform: translateY(0); /* يصبح العنصر في مكانه */
  }
  
  /* تخصيص الخط <hr> بشكل مناسب */
  hr {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #000;
    border: none;
  }

  .custom-hr {
    width: 100%;
    height: 2px;
    background-color: #000;
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-scroll.scrolled .custom-hr {
    opacity: 1;
    transform: translateY(0);
}

body {

    font-family: "Roboto", sans-serif;

    overflow-x: hidden;

    line-height: 1.7;

    padding-bottom: 100px;  /* إضافة مسافة 50px أسفل الصفحة */

}



/* Start Contanier */



.contanier {

    padding-left: 15px;

    padding-right: 15px;

    margin-left: auto;

    margin-right: auto;

}



@media (min-width: 768px) {

    .contanier {

        width: 750px;

    }

}



@media (min-width: 992px) {

    .contanier {

        width: 970px;

    }

}



@media (min-width: 1200px) {

    .contanier {

        width: 1170px;

    }

}



/* End Contanier */



ul {

    list-style: none;

}



a {

    text-decoration: none;

}



img {

    width: 50px;

    height: 50px;

}

.main-title {
    margin: 0 auto;
    display: flex;
    width: fit-content;
    flex-direction: row; /* التأكد من الاتجاه أفقي */
    position: relative;
    text-align: center;
    padding: 20px 0;
    font-size: 24px;
    justify-content: center; /* لضبط النص في المنتصف */
    align-items: center; /* لضبط النص بشكل عمودي في المنتصف */
    white-space: nowrap; /* منع النص من الانتقال إلى السطر التالي */
    flex-wrap: nowrap; /* منع العناصر من الانتقال إلى السطر التالي */

}

.english-text {
    direction: ltr;  /* الاتجاه من اليسار لليمين للنص الإنجليزي */
    unicode-bidi: embed; /* لضمان ترتيب الحروف بشكل صحيح */
    margin-right: 5px; /* مسافة صغيرة بين النصين */
    text-align: left;  /* تأكيد محاذاة النص الإنجليزي لليسار */
}

.arabic-text {
    direction: rtl;  /* الاتجاه من اليمين لليسار للنص العربي */
    unicode-bidi: embed; /* لضمان ترتيب الحروف بشكل صحيح */
    margin-left: 5px; /* مسافة صغيرة بين النصين */
    text-align: right;  /* تأكيد محاذاة النص العربي لليمين */
}

.main-title2 {
    margin: 0 auto;
    display: flex;
    width: fit-content;
    flex-direction: row; /* التأكد من الاتجاه أفقي */
    position: relative;
    text-align: center;
    padding: 20px 0;
    font-size: 24px;
    justify-content: center; /* لضبط النص في المنتصف */
    align-items: center; /* لضبط النص بشكل عمودي في المنتصف */
    white-space: nowrap; /* منع النص من الانتقال إلى السطر التالي */
    flex-wrap: nowrap; /* منع العناصر من الانتقال إلى السطر التالي */
}

.eng1 {
    direction: ltr;  /* الاتجاه من اليسار لليمين للنص الإنجليزي */
    unicode-bidi: embed; /* لضمان ترتيب الحروف بشكل صحيح */
    margin-right: 5px; /* مسافة صغيرة بين النصين */
    text-align: left;  /* محاذاة النص الإنجليزي لليسار */
}

.ara1 {
    direction: rtl;  /* الاتجاه من اليمين لليسار للنص العربي */
    unicode-bidi: embed; /* لضمان ترتيب الحروف بشكل صحيح */
    margin-left: 5px; /* مسافة صغيرة بين النصين */
    text-align: right;  /* محاذاة النص العربي لليمين */
}

@media (max-width: 768px) {
    .main-title {
        flex-direction: column-reverse; /* تغيير الاتجاه من أفقي إلى عمودي على الأجهزة الصغيرة */
        font-size: 20px; /* تقليل حجم الخط لتناسب الشاشة الصغيرة */
        white-space: normal; /* السماح بتفصيل النص إلى أكثر من سطر */
    }
     .arabic-text, .english-text {
        display: block; /* عرض كل نص في سطر منفصل */
        text-align: center; /* محاذاة النص بشكل مركزي */
    }

}

@media (max-width: 768px) {
    .main-title2 {
        flex-direction: row; /* تغيير الاتجاه من أفقي إلى عمودي على الأجهزة الصغيرة */
        font-size: 20px; /* تقليل حجم الخط لتناسب الشاشة الصغيرة */
        white-space: normal; /* السماح بتفصيل النص إلى أكثر من سطر */
    }
    .eng1, .ara1 {
        display: inline; /* ضمان بقاء النصوص في سطر واحد */
        text-align: center; /* محاذاة النصوص في المنتصف */
        white-space: nowrap; /* منع التفاف النص */
    }

}

/* ****************************** */



.menu {

    display: flex !important;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    position: relative;

    /* height: 80px; */

    width: 35px;

    border: none;

    outline: none;

    background-color: transparent;

    cursor: pointer;

}



.menu span {

    display: block;

    width: 35px;

    height: 2px;

    margin: 6px auto;

    background-color: #0e3a5d;

    transition: all 0.3s ease-in-out;

}



.menu.active span:nth-child(1) {

    transform: rotate(45deg) translate(7px, 12px);

    background-color: red;

}



.menu.active span:nth-child(2) {

    opacity: 0;

}



.menu.active span:nth-child(3) {

    transform: rotate(-45deg) translate(7px, -12px);

    background-color: red;

}



/* **************************** */



.menu-icon {

    font-size: 24px;

    cursor: pointer;

    padding: 10px;

    /* position: fixed; */

    top: 10px;

    left: 10px;

    z-index: 2;

}



.close-icon {

    font-size: 24px;

    cursor: pointer;

    padding: 10px;

    position: fixed;

    top: 10px;

    left: 10px;

    z-index: 2;

}



.close-icon {

    display: none;

}



.menu-items {

    display: none;

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background-color: rgba(0, 0, 0, 0.8);

    z-index: 1;

}



.menu-items ul {

    list-style: none;

    padding: 0;

    margin: 20% 0 0 0;

    text-align: center;

}



.menu-items ul li {

    margin-bottom: 20px;

}



.menu-items ul li a {

    text-decoration: none;

    color: white;

    font-size: 24px;

    transition: color 0.3s ease-in-out;

}



.menu-items ul li a:hover {

    color: #00bcd4;

}



.close-icon {

    color: white;

}



/* End Mage Menu */



.loader {

    display: flex;

    justify-content: center;

    align-items: center;

    flex-direction: column;

    top: 0;

    left: 0;

    position: fixed;

    z-index: 40;

    width: 100%;

    height: 100%;

    background-color: var(--main-blue-color);

    animation: hide 400ms ease 2500ms forwards;

}



.loader img:nth-child(2) {

    width: 280px;

    margin-left: 25px;

    transform: translateY(-20px);

}



@keyframes hide {

    100% {

        top: 100%;

    }

}



.loaderLogo {

    opacity: 0;

    animation: loader 1.5s linear 0s infinite forwards;

}



.loaderLogo img {

    width: 280px;

    height: 280px;

}



@keyframes loader {

    0% {

        opacity: 0;

    }



    50% {

        opacity: 1;

    }



    100% {

        opacity: 0;

    }

}



.goTop {

    display: none;

    position: fixed;

    bottom: 5%;

    right: 10px;

    z-index: 5;

}



@media (max-width: 768px) {

    .goTop {

        right: 15px;

    }

}



.goTop span {

    display: flex;

    justify-content: center;

    align-items: center;

    width: 55px;

    height: 55px;

    border-radius: 50%;

    background-image: linear-gradient(to right, #8490ff, #62bdfc 48%, #8490ff);

    box-shadow: 0px 0px 10px var(--main-blue-color);

    cursor: pointer;

    transition: 0.2s;

}



.goTop span:hover {

    background-position: right center;

}



.goTop span:hover i {

    color: #fff;

}



.goTop span i {

    color: #fff;

    font-size: 1.5em;

}



.btn a {

    padding: 0 42px !important;

    line-height: 50px !important;

    background-image: linear-gradient(to right, #8490ff, #62bdfc 48%, #8490ff);

    background-size: 200% auto;

    color: #fff !important;

    display: inline-block;

    border-radius: 5px;

    font-size: 16px !important;

    transition: all 0.3s linear 0s !important;

    text-decoration: none;

    cursor: pointer;

    text-transform: uppercase;

    font-weight: bold;

}



.btn a:hover {

    background-position: right center;

}



.color {

    position: fixed !important;

    width: 100%;

    z-index: 1000;

}



/* End Global Rules */



/* Start Header */



.header {

    background-color: white;

    box-shadow: 0px 0px 10px #00000082;

    height: 80px;

}



.header .contanier {

    display: flex;

    align-items: center;

    justify-content: space-between;

    height: 100%;

}


/* إضافة الخط المخصص المحلي */
@font-face {
    font-family: 'MyCustomFont';
    src: url('./webfonts/Feeling-Passionate.woff2') format('woff2'),
         url('./webfonts/Feeling-Passionate.woff') format('woff');
        }        

.header .contanier .logo {
    font-family: 'MyCustomFont'; /* استخدام الخط المحلي */
    font-size: 36px;
    font-weight: bold;
    color: #0e3a5d;
    text-decoration: none;
}




@media (max-width: 768px) {

    .header .contanier .logo{

        font-size: 22px;

    }

}



nav{

    display: none;

    position: absolute;

    left: -400px;

    background-color: white;

    flex-direction: column;

    top: 83px;

    box-shadow: 0px 10px 10px #00000082;

    width: 300px;

    height: 100%;

    padding: 15px 30px;

    transition: right ease 0.5s;

    z-index: 100;

}





nav .section {

    display: flex;

    flex-direction: column;

    gap: 13px;

    margin: 15px 0;

}



nav .section .title {

    font-size: 20px;

    font-weight: bold;

    text-transform: uppercase;

}



nav .section p {

    color: #7d7d7d;

}



nav .section a {

    display: flex;

    align-items: center;

    gap: 5px;

    color: #7d7d7d;

}



nav .section ul {

    display: flex;

    flex-direction: column;

    gap: 7px;

}



nav .section ul li a{

    text-transform: capitalize;

}



nav .section ul li a:hover{

    color: #0e3a5d;

    transition: 0.5s;

}



nav .section ul li a.active{

    color: #0e3a5d;

    font-weight: bold;

}



nav .section a img {

    width: 20px;

    height: 20px;

}



nav .section .social {

    display: flex;

    gap: 10px;

}





/* End Header */





/* Start Questions */



.questions {

    height: 100%;

    padding: 50px 0;

}



.questions .contanier {

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 30px;

}



.questions .contanier .ques {

    width: 80%;

    padding: 20px;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: space-between;

}



@media (max-width: 768px) {

    .questions .contanier .ques{

        width: 100%;

        padding: 0;

        gap: 10px;

    }

}



.questions .contanier .ques a {

    display: flex;

    width: 420px;

    height: 300px;

    background-color: #f9f9f9;

    border-radius: 10px;

    position: relative;

    transition: 0.5s;

}



.questions .contanier .ques a:hover {

    transform: scale(.98);

}



.questions .contanier .ques a img {

    width: 150px;

    height: 300px;

    position: absolute;

    right: 0;

    bottom: 0;

    z-index: 10;

}



@media (max-width: 768px) {

    .questions .contanier .ques a img{

        width: 124px;

        height: 300px;

        position: absolute;

        right: 22px;

        bottom: 28px;

        z-index: 10;

    }

}



.questions .contanier .ques a span {

    position: absolute;

    bottom: 0;

    width: 100%;

    padding: 15px;

    text-align: center;

    background-color: #0e3a5d;

    color: white;

    font-size: 20px;

    font-weight: bold;

    border-bottom-right-radius: 10px;

    border-bottom-left-radius: 10px;

}



.questions .contanier .ques a .icon {

    position: absolute;

    bottom: 12px;

    padding: 15px;

    border-radius: 50%;

    background-color: white;

    width: 30px;

    height: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    left: 20px;

}



.icon i {

    color: #0e3a5d;

}



/* End Questions */



.header-last {

    display: flex;

    align-items: center;

    flex-direction: row-reverse;

}



@media (max-width: 768px) {  

    .header-last{

        flex-direction: row-reverse;

    }

}



.select {

    width: 50%;

}



@media (max-width: 768px) {

    .select{

        width: 100%;

        display: flex;

        flex-wrap: wrap;

        gap: 20px;

    }

}



.option {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 30px;

    cursor: pointer;

    border: 1px solid #ddd;

    border-radius: 8px;

    margin-bottom: 5px;

    transition: background-color 0.3s;

    flex-direction: row-reverse;

}



@media (max-width: 768px) {

    .option{

        width: 100%;

    }

}



.option:hover {

    background-color: #f0f0f0;

}



.option.active {

    background-color: #d1e7dd;

    border-color: #0f5132;

}



.option .icon i {

    font-size: 20px;

    color: #6c757d;

}



.option.active .icon i {

    color: #0f5132;

}



.option span {

    color: #0e3a5d;

    font-weight: bold;

}



.back {

    padding: 20px;

    display: flex;

    justify-content: flex-end;

}



.back a {

    color: white;

    background-color: #0e3a5d;

    padding: 10px 40px;

    border-radius: 5px;

    font-weight: bold;

}





.select-mul {

    width: 80%;

    display: flex;

    flex-wrap: wrap;

    gap: 20px;

}



@media (max-width: 768px) {

    .select-mul{

        width: 100%;

    }

}



.option-mul {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 30px;

    cursor: pointer;

    border: 1px solid #ddd;

    border-radius: 8px;

    margin-bottom: 5px;

    transition: 0.3s;

    width: 48%;

    flex-direction: row-reverse;

}



@media (max-width: 768px) {

    .option-mul{

        width: 100%;

    }

}



.option-mul:hover {

    background-color: #f0f0f0;

}



.option-mul.active {

    background-color: #d1e7dd;

    border-color: #0f5132;

}



.option-mul .icon i {

    font-size: 20px;

    color: #6c757d;

}



.option-mul.active .icon i {

    color: #0f5132;

}



.option-mul span {

    color: #0e3a5d;

}



.next {

    padding: 20px;

    display: flex;

    justify-content: center;

    

    position: fixed;

    bottom: 20px;

    background-color: #ffffff;

    width: 100%;

    padding: 20px 0;



}




.next a {

    color: white;

    background-color: #0e3a5d;

    padding: 10px 40px;

    border-radius: 5px;

    font-weight: bold;

}



.next button {

    color: white;

    background-color: #0e3a5d;

    padding: 10px 40px;

    border-radius: 5px;

    font-weight: bold;

}


.next2 {

    padding: 0px;

    display: flex;

    justify-content: center;

    

    position: fixed;

    bottom: 0px;

    background-color: #ffffff;

    width: 100%;

    padding: 20px 0;



}




.next2 a {

    color: white;

    background-color: #0e3a5d;

    padding: 10px 40px;

    border-radius: 5px;

    font-weight: bold;

}



.next2 button {

    color: white;

    background-color: #0e3a5d;

    padding: 10px 40px;

    border-radius: 5px;

    font-weight: bold;

}




.unit-toggle {

    border-radius: 30px;

    overflow: hidden;

    margin-bottom: 20px;

    display: flex;

    justify-content: center;

    width: 100%;

}



.unit-btn {

    padding: 10px 20px;

    border: none;

    background: none;

    font-size: 16px;

    cursor: pointer;

    outline: none;

    transition: background-color 0.3s ease;

    background-color: #f0f0f0;

}



.unit-btn.active {

    background-color: #ddd;

    font-weight: bold;

}



.measurement {

    font-size: 24px;

    text-align: center;

    /* border-top: 1px solid #d3d3d3; */

    width: 500px;

    padding-top: 10px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

}



@media (max-width: 768px) {  

    .measurement{

        width: 100%;

        justify-content: center;

    }

}



.unit-label {

    font-size: 16px;

    font-weight: bold;

    display: block;

}



#cm-btn {

    border-top-left-radius: 15px;

    border-bottom-left-radius: 15px;

}



#ft-btn {

    border-top-right-radius: 15px;

    border-bottom-right-radius: 15px;

}



.value-input {

    font-size: 18px;

    width: 70%;

    text-align: center;

    border: none;

    border-bottom: 1px solid #d3d3d3;

    outline: none;

}



.inp {

    display: flex;

    flex-direction: column;

    align-items: center;

}



@media (max-width: 768px) {  

    .inp{

        gap: 10px;

    }

}



.unit-toggle {

    border-radius: 30px;

    overflow: hidden;

    margin-bottom: 20px;

    display: flex;

    justify-content: center;

    width: 100%;

}



.unit-btn {

    padding: 10px 20px;

    border: none;

    background: none;

    font-size: 16px;

    cursor: pointer;

    outline: none;

    transition: background-color 0.3s ease;

    background-color: #f0f0f0;

}



.unit-btn.active {

    background-color: #ddd;

    font-weight: bold;

}





#kg-btn {

    border-top-left-radius: 15px;

    border-bottom-left-radius: 15px;

}



#lb-btn {

    border-top-right-radius: 15px;

    border-bottom-right-radius: 15px;

}





/* Start About */



.leftHeader{

    display: flex;

    align-items: center;

    gap: 30px;

}





.about{

    padding: 50px 0;

    position: relative;

}



.about .contanier{

    display: flex;

    flex-direction: column;

    gap: 20px;

}



.about .contanier .sec{

    display: flex;

    flex-direction: column;

    gap: 20px;

    align-items: center;

}



.about .contanier .sec .main-title{

    font-size: 40px;

    font-weight: bold;

    text-transform: capitalize;

}

.about .contanier .sec .main-title2{

    font-size: 40px;

    font-weight: bold;

    text-transform: capitalize;

}


.about .contanier .sec p{

    font-size: 20px;

    text-align: center;

}



.about .contanier .sec img{

    width: 70%;

    height: 550px;

    margin: 0 auto;

}



@media (max-width: 768px) {  

    .about .contanier .sec img{

        height: 150px;

    }

}



.about .contanier .sec .images{

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 10px;

}



.about .contanier .sec .images img{

    width: 32%;

    height: 300px;

}



@media (max-width: 768px) {

    .about .contanier .sec .images img{

        width: 100%;

    }

}





/* End About */



/* Start Contact */



.contact{

    padding: 40px 0;

    position: relative;

}



.contact .contanier{

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 20px;

}


@media (max-width: 768px) {

    .contact .contanier{

        flex-direction: column;

    }

}

.contact2{

    padding: 40px 0;

    position: relative;

}



.contact2 .contanier{

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 20px;

}


@media (max-width: 768px) {

    .contact2 .contanier{

        flex-direction: column;

    }

}

/* End Contact */

.whatsapp{

    position: fixed;

    right: 20px;

    bottom: 20px;

    z-index: 1000;

}



.dr{

    display: flex;

    flex-direction: row-reverse;

    gap: 20px;

    position: relative;

    z-index: 1000;

}



@media (max-width: 768px) {  

    .questions .contanier .ques a span{

        text-align: end;

    }

}





.btn .one{

    width: 50px !important;

    height: 50px !important;

    animation-name: rot-1;

    animation-timing-function: linear;

    animation-duration: 1.5s;

    animation-iteration-count: infinite;

}

.btn .two{

    width: 50px !important;

    height: 50px !important;

    /* transform: rotate(180deg);

    animation-name: rot-2;

    animation-timing-function: linear;

    animation-duration: 1.5s;

    animation-iteration-count: infinite; */

}



.buttonAnimation{

    display: flex;

    align-items: center;

    gap: 25px;

}



@keyframes rot-1 {

    0%{

        transform: translateX(0deg);

    }

    100%{

        transform: translateX(50deg);

    }

}



@keyframes rot-2 {

    0%{

        transform: translateX(0);

    }

    100%{

        transform: translateX(50deg);

    }

}



/* Container to center everything */



/* Warning circle style */

.warning-circle {

    width: 30px;

    height: 30px;

    background-color: red;

    border-radius: 50%;

    animation: flashing 0.5s infinite alternate;

}



/* Flashing animation */

@keyframes flashing {

    0% {

        opacity: 1;

    }

    100% {

        opacity: 0.3;

    }

}



.buttonAnimation a{

    width: 170px;

    height: 170px;

    background-color: red;

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 34px;

    font-weight: bold;

    text-align: center;

    border-radius: 50%;

    border: 4px solid #0e3a5d;

}


/* جعل الهيدر ثابتًا في أعلى الصفحة */
.header {
    position: fixed;  /* تثبيت الهيدر */
    top: 0;           /* وضعه في أعلى الصفحة */
    left: 0;
    width: 100%;      /* التأكد من أن الهيدر يمتد بعرض الصفحة */
    background-color: #fff; /* اللون الخلفي */
    z-index: 1000;    /* التأكد من أن الهيدر يظهر فوق باقي العناصر */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* إضافة ظل خفيف لجعل الهيدر يبدو عائمًا */
    transition: top 0.3s; /* إضافة تأثير عند التمرير */
}

/* إذا كنت تخفي الهيدر عند التمرير للأسفل */
.header.hide {
    top: -80px; /* إخفاء الهيدر عند التمرير للأسفل */
}

/* إضافة هامش للمحتوى الذي يأتي أسفل الهيدر */
body {
    margin: 0;
    padding: 0;
    padding-bottom: 50px;  /* إضافة مسافة 50px أسفل الصفحة */
}

/* حدد مسافة علوية للمحتوى الذي يأتي بعد الهيدر */
main, .content {
    padding-top: 120px; /* يجب أن تتناسب هذه القيمة مع ارتفاع الهيدر */
}

/* إذا كنت تستخدم عناصر أخرى مثل section، يمكنك تخصيصها هنا */
section {
    padding-top: 120px; /* إضافة نفس المسافة في حال كنت تستخدم عناصر أخرى */
}
.about {
    margin-top: 80px;  /* إضافة المسافة بين الهيدر والمحتوى */
}
