:root {
    --primary-color: #8a4af3;
    --text-dark: #333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}



.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header img {
    width: clamp(80px, 10vw, 150px);
    height: auto;
}

.header-content {
    padding-right: 9%;
    padding-left: 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}



.nav-menu {
    display: flex;
    justify-content: space-between;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-inline-start: 15px;
}

/* القائمة في اللابتوب */
.nav-menu .links {
    display: flex;
    list-style: none;
    gap: 20px;
    padding: 10px 31px;
    background-color: #FFFFFF1A;
    border-radius: 90px;
    margin-top: 18px;
}

.nav-menu .links li a {
    text-decoration: none;
    color: white;
    transition: 0.3s;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;
}

.nav-menu .dropdown-content {
    color: black;
}

.nav-menu ul li a:hover,
.nav-menu ul li a.active {
    color: var(--primary-color);
}

/* Dropdown اللغة */
.lang-btn {
    background: transparent;
    padding: 8px 15px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;
}

i {
    color: white;
}

ul.dropdown-content {
    padding-left: 0px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    list-style: none;
    z-index: 100;
}

.dropdown-content li {
    display: block;
}

.dropdown-content li a {
    padding: 10px 15px;
    display: block;
    text-decoration: none;
    color: #333;
}

.dropdown-content li a:hover {
    background: rgb(242, 238, 238);
    border-radius: 8px;

}

/* أيقونة الموبايل */
.mobile-menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}


/* --- Footer --- */
footer {
    background-color: black;
    color: white;
}

footer h4 {
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0px;
}

footer h5 {
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 14px;
    line-height: 21px;
    letter-spacing: 0px;
}

footer .col1 div {
    margin-top: 15px;
    color: #99A1AF;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;
}

.footer-container {
    margin-left: 6%;
    margin-right: 6%;
    padding-top: 100px;
    padding-bottom: 50px;
}

.first-row {
    display: flex;
    gap: 5%;
}

.first-row .col1,
.first-row .col2,
.first-row .col3,
.first-row .col4 {
    width: 20%;
}

.first-row .col4 div {
    display: flex;
    gap: 20px;
    align-items: center;

}

footer .col1 div,
footer .col2 div,
footer .col3 div,
footer .col4 div {
    margin-bottom: 10px;
}

footer .col2 ul,
footer .col3 ul {
    list-style: none;
    padding: 0;
}

footer .col2 ul li,
footer .col3 ul li {
    margin-bottom: 10px;
}

footer .col2 ul li a,
footer .col3 ul li {
    text-decoration: none;
    color: #99A1AF;
    transition: 0.3s;
    font-family: IBM Plex Sans Arabic;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;
}

footer .social-icons {
    display: flex;
    gap: 12%;
    margin-top: 20px;
}

footer .second-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    color: #99A1AF;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    letter-spacing: 0px;

}

footer .second-row .left-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.accordion-button::after {
    margin-right: auto !important;
    margin-left: 0px !important;
}

[dir="ltr"] .accordion-button::after {
    margin-left: auto !important;
    margin-right: 0px !important;
}

.accordion-item {
    border: none !important;
    margin-bottom: 20px !important;
}

.accordion-button:not(.collapsed) {
    border-radius: 16px !important;
}

.accordion-item .accordion-button {
    border-radius: 16px !important;
    border: none;
}

.accordion-button {
    font-weight: 700;
    font-size: clamp(14px, 2vw, 18px) !important;
    line-height: 28px;
    letter-spacing: 0px;
    padding: 23px 20px !important;
}

[dir="rtl"] .accordion-button {
    text-align: right !important;
}

[dir="ltr"] .accordion-button {
    text-align: left !important;
}

.accordion-button:focus {
    box-shadow: none !important;
}

.accordion-item {
    border-radius: 16px !important;
}

.main-content {
    padding-right: 7%;
    padding-left: 7%;
}

.mobile-lang {
    display: none;
}
.lang-btn svg{
    color: white;
}
@media (max-width: 992px) {
    .mobile-menu-icon {
        display: block;
    }

    .mobile-lang {
        display: flex;
        justify-content: center;
    }

    .desktop-lang {
        display: none;
    }
    .lang-btn{
        color: black;
    }
    .lang-btn svg{
        color: black;
    }
    .nav-menu {
        display: none;
        /* مخفية في الموبايل */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        border-top: 1px solid #eee;
    }

    .nav-menu .links li a {
        color: black;
    }

    .nav-menu.active {
        display: block;
    }

    /* تظهر عند الضغط */

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

}

/* 2. الموبايل (أقل من 768px) */
@media (max-width: 767px) {
    .first-row {
        flex-direction: column;
        /* تحويل الاتجاه لرأسي */
        justify-content: center;
        text-align: center;

    }

    .first-row .col1,
    .first-row .col2,
    .first-row .col3,
    .first-row .col4 {
        width: 100%;
        /* العمود ياخد العرض كامل */
        margin-bottom: 30px;
    }

    .first-row .col4 {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* يخلي الكتلة كلها في نص الصفحة */
        text-align: right;

    }

    .first-row .col4 svg {
        flex-shrink: 0;
        /* يمنع انضغاط الأيقونة */
        width: 20px;
        /* توحيد المقاس */
        height: 20px;
        display: block;
        min-width: 20px;
    }

    .social-icons {
        justify-content: center;
    }

    .second-row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .left-content {
        justify-content: center;
    }

    .col4 div {
        display: flex;
        align-items: center;
        width: 280px;
        gap: 15px;
        margin-bottom: 12px;

    }

}