body {
    background: #0d1c27;
    overflow-x: hidden;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.container {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    height: 0vh;
}

.left, .right {
    box-sizing: border-box;
}

nav {
    width: 100%;
}

.mcd-menu {
    width: 230px;
    margin-right: 0;
    margin-top: 0;
}

.mcd-menu li {
    position: relative;
    width: 90%;
    list-style: none;
}

.mcd-menu li a {
    display: block;
    text-decoration: none;
    padding: 15px 10px 15px 10px;
    color: #daa184;
    text-align: left;
    height: 36px;
    position: relative;

}

.mcd-menu li a i {
    float: left;
    font-size: 20px;
    margin: 0 10px 0 0;
}

.mcd-menu li a strong {
    display: block;
}

.mcd-menu li a small {
    display: block;
    font-size: 10px;
}

.mcd-menu li:hover {
    background-color: #b5a198;
    width: 100%;

}

.mcd-menu li a:hover {
    color: #0d1c27;
}

/* =========================
   DESKTOP DESIGN
========================= */

@media only screen and (min-width: 849px) {

    .left {
        flex: 1.3;
    }
    .right {
        width: 90%;
        flex: 3;
    }

    #menu {
        display: block;
    }
    #menu-toggle {
        display: none;
        padding: 15px;
        color: #0d1c27;
        background: #132430;
        border: 0px;
    }

    .container {
        height: 100vh;
    }
}

/* =========================
   MOBILE IMPROVED
========================= */

@media only screen and (max-width: 850px) {

    body {
        overflow-x: hidden;
    }

    /* تقليل حواف الصفحة */
    .container {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 0px;
        width: 100%;
    }

    .left {
        width: 100%;
        margin-bottom: 10px;
    }

    .right {
        width: 100%;
        margin-top: 10px;
        padding: 20px;
    }

    /* زر القائمة */
    #menu-toggle {
        display: block;
        width: 100%;
        background: #b7836a;
        color: #0d1c27;
        border: none;
        padding: 13px 20px;
        font-size: 25px;
        text-align: left;
        cursor: pointer;
    }

    /* القائمة */
    /* القائمة مخفية افتراضياً */
    #menu {
        max-height: 0;       /* إخفاء القائمة */
        overflow: hidden;    /* منع ظهور العناصر خارج الحد */
        transition: max-height 0.3s ease; /* تأثير سلس للفتح والإغلاق */
        background: #132430;
        margin: 0;
        border-top: 1px solid #daa184;
    }

     /* عند الضغط على زر القائمة */
    #menu.show {
        max-height: 1000px; /* إظهار القائمة */
    }

    /* عند اختيار أي رابط داخل القائمة: إخفاءها */
    #menu li a:active,
    #menu li a:focus {
        outline: none;
    }

    #menu li a:active ~ #menu,
    #menu li a:focus ~ #menu {
        max-height: 0;
    }

    .mcd-menu {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .mcd-menu li {
        width: 100%;
        border-bottom: 1px solid #1e2d37;
    }

    .mcd-menu li a {
        height: auto;
        font-size: 14px;
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .mcd-menu li a i {
        font-size: 22px;
        margin: 0;
    }

    nav {
        background: #daa184;
        width: 100%;
        margin-bottom: 10px;
    }

    .text {
        color: #d2d8df;
        font-size: 16px;
        line-height: 1.7;
        text-align: left;
        padding: 5px;
    }

    .text p {
        margin-bottom: 15px;
        text-align: left;
        font-size: 15px;
    }

    .text img {
        height: auto;
        float: none;
        margin: 10px 0;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .style_bottom {
        width: 100%;
        padding: 15px;
        font-size: 18px;
        text-align: center;
    }

    .welcome_text {
        padding: 10px;
    }
    .bi::before,[class*=" bi-"]::before,[class^=bi-]::before {vertical-align: -0.3em;}
}

/* ========================= */

.text {
    color: #7e8d9f;
    line-height: 1.6;
    padding: 0px;
}

.text img {
    float: left;
    margin-right: 20px;
}

.text p {
    margin-bottom: 20px;
    text-align: justify;
}

.img_photo {
    margin-bottom: 20px;
}

.style_bottom:hover {
    background: lightgray;

}

.style_bottom {
    padding: 11px 20px;
    font-size: 16px;
    background-color: #daa184;
    color: #0d1c27;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}
