@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Cairo:wght@200..1000&family=Lemonada:wght@300..700&family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Cairo:wght@200..1000&family=Lemonada:wght@300..700&family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Rakkas&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Cairo:wght@200..1000&family=Lemonada:wght@300..700&family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Rakkas&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Amiri:ital,wght@0,400;0,700;1,400;1,700&family=Aref+Ruqaa:wght@400;700&family=Cairo:wght@200..1000&family=Lemonada:wght@300..700&family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Rakkas&display=swap');

:root {
    --main-color: rgb(125, 86, 68);
    --man-color: rgb(125, 86, 68);
    --nan-color: #d4ac2b;
    --nam-color: #ffce45;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

/* html {
    scroll-behavior: smooth;
} */

body {
    font-family: Cairo;
    direction: rtl;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    padding-left: 50px;
    padding-right: 50px;
    margin-left: auto;
    margin-right: auto;
}

@media(max-width:768px) {
    .container {
        width: 100%;
    }
}

@media(min-width:768px) and (max-width:991px) {
    .container {
        width: 750px;
    }
}

@media(min-width:992px) and (max-width:1199px) {
    .container {
        width: 970px;
    }
}

@media(min-width:1200px) {
    .container {
        width: 1170px;
    }
}

/* بداية الهيدار */
header {
    background-color: var(--nam-color);
    border-bottom: 1px dashed var(--main-color);
    position: sticky;
    top: 0;
    z-index: 10000;
}

header .container {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

header .container img {
    width: 50px;
}

header .container nav ul {
    display: flex;
    align-items: center;
    font-family: Aref Ruqaa;
}

@media(max-width:768px) {
    header .container nav ul {
        display: none;
    }
}

@media(min-width:768px) {
    .nav-tog {
        display: none;
    }
}




header .container nav ul li a {
    display: block;
    padding: 20px 20px;
    font-size: 20px;
    font-weight: 700;
    color: var(--main-color);
    transition: 0.3s;
    border-radius: 50%;
}

@media(max-width:768px) {
    header .container nav ul a {
        border-bottom: 1px dashed var(--main-color);
    }
}

header .container nav ul li a.active,
header .container nav ul li a:hover {
    color: beige;
    background-color: rgb(125, 86, 68);

}

.container .social {
    display: flex;
    justify-content: space-between;

}
.hidden {
    display: none;
}

.menu {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    position: absolute;
    top: 50px;
    left: 10px;
    width: 150px;
}

@media(max-width:768px) {
    .container .social {
        display: none;
    }
}

.container .social i {
    margin: 5px;
    font-size: 20px;
    display: flex;
    width: 35px;
    height: 35px;
    background-color: var(--main-color);
    justify-content: center;
    align-items: center;
    color: beige;
    border-radius: 50%;
    transition: 0.3s;
    cursor: pointer;
}

.container .social i:hover {
    background-color: var(--nam-color);
    color: var(--main-color);
    font-size: 40px;
}

/* نهاية الهيدار */
/* بداية الهيرو  */
.hhh {
    color: var(--main-color);
    margin-top: 30px;
    text-align: center;
}

.ppp {
    color: var(--nan-color);
}



.animated-image {
    width: 100%;
    height: 300px;
}

.text-overlay {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    /* لون النص */
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    /* خلفية شفافة للنص */
    padding: 10px;
    border-radius: 10px;
    /* زوايا ناعمة (اختياري) */
}

.text-overlay h1 {
    font-size: 1.8rem;
    margin: 0 0 10px;
    color: aliceblue;
}

.text-overlay p {
    font-size: 1.2rem;
    margin: 0;
}

/* نهاية الهيرو */

.section-title {
    color: var(--main-color);
    text-align: center;
    margin: 50px 0;

}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    /* يجعل الشبكة مرنة */
    gap: 20px;
    /* المسافة بين العناصر */
}

/* لتفعيل التمرير السلس */

.grid-item {
    text-align: center;
    /* يجعل النص تحت الصورة في الوسط */
    padding: 10px;
    border: 1px solid #ddd;
    /* إطار بسيط */
    border-radius: 10px;
    /* زوايا مستديرة */
    background-color: #f9f9f9;
    /* لون خلفية خفيف */
    transition: 1.5s;
}

.grid-item:hover {
    transform: translateY(-10px);

}

.grid-item img {
    width: 100%;
    /* عرض الصورة بالكامل داخل العنصر */
    max-height: 120px;
    /* تحديد ارتفاع الصورة */
    object-fit: cover;
    border-radius: 10px;
    transition: 1.5s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.grid-item:hover img {
    animation: pulse 0.5s ease-in-out infinite;

}


.grid-item p {
    margin-top: 10px;
    /* مسافة بين الصورة والنص */
    font-size: 1rem;
    color: #333;
    /* لون النص */
}

.bor {
    border: 1px dashed var(--main-color);
    margin: 20px;
    padding: 20px;
    border-radius: 10px;
    line-height: 1.5;
    background-color: #FFF8DC;
}

.aaoo {
    font-size: 30px;
    color: var(--main-color);
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 1.5;
    text-align: center;
}

.yyy {
    direction: ltr;
    margin: 20px;
    color: var(--main-color);
    line-height: 1;
}

hr {
    margin: 50px;
    border: 1px solid var(--main-color);
}

.uuu {
    font-size: 25px;
    color: #d4ac2b;
    margin: 20px;
}

.bgra {
    background-color: #d4ac2b;
}

.card-title {
    color: var(--main-color);
    margin: 20px 10px;
    font-size: 30px;

}

footer {
    background-color: var(--nan-color);
    color: #fff;
    text-align: center;
    padding: 25px;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    width: 120px;
    margin-bottom: 15px;
}

h2 {
    margin-bottom: 15px;
}

.footer-social {
    display: flex;
    justify-content: space-between;
}

.footer-social i {
    margin: 5px;
    font-size: 20px;
    display: flex;
    width: 35px;
    height: 35px;
    background-color: var(--main-color);
    justify-content: center;
    align-items: center;
    color: beige;
    border-radius: 50%;
    transition: 0.3s;
    cursor: pointer;
}


.footer-social :hover i {
    /* transform: scale(1.2); */
    background-color: var(--nan-color);
    color: var(--main-color);
    font-size: 40px;
}

p {
    margin-top: 15px;
    font-size: 14px;
}