body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    color: #050000;
    padding: 2rem;
    text-align: center;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    position: relative;
    flex-wrap: nowrap;
}

main {
    align-items: center;
}

.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

nav {
    justify-content: left;
    width: 60%;
}


nav ul {
    list-style: none;
    display: flex;
    justify-content: left;
    flex-direction: column;
    padding-left: 100px;
    padding-top: 8px;
}

nav li {
    margin: 0.5rem 0;
}

nav a {
    text-decoration: none;
    color: #696868;
    font-weight: bold;
    direction: ltr;
    padding: 3px;
}

nav ul li a:hover {
    color: #000000; /* رنگ سفید برای حالت هاور */
    text-decoration: none;
}


.logo {
    display: flex;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo img {
    height: 155px;
    width: auto;
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
        position: absolute;
        top: 1rem;
        left: 1rem;
    }

    main {
        align-items: unset;
    }

    #menu {
        padding: 16px;
    }

    .logo {
        position: absolute;
        top: -6px;
    }

    .logo img {
        height: 87px;
        width: auto;
    }


    header {
        justify-content: center; /* قرار دادن محتوای سربرگ در مرکز */
    }


    nav ul {
        display: none;
        justify-content: center;
        flex-direction: column;
        position: static; /* ensure menu appears below header */
        width: 100%;
        align-items: center;
    }

    nav ul.show {
        display: flex;
    }

    nav li {
        margin: 2rem 0;
        text-align: left;
    }
}

@media (min-width: 769px) {
    nav ul {
        flex-direction: row;
    }


    nav li {
        margin: 0 1rem;
    }
}


main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2em;
    flex-wrap: nowrap;
    justify-content: space-around;
}


.left-column, .right-column {
    flex: 1;
    margin: 0 1em;
}

.left-column {
    display: flex;
    flex-direction: column;
    align-items: center; /* مرکزچین کردن محتوا */
    gap: 15px;
    padding-top: 16px;
    justify-content: center;
    text-align: center; /* تراز وسطی متن */
}

.contact-item p {
    margin: 0;
}

.contact-item a {
    text-decoration: none;
    color: #1c1515;
    font-weight: normal;
    direction: ltr;
    padding: 3px;
}

.right-column {
    position: relative;
}

.slider {
    position: relative;
    width: 100%;
    height: 400px; /* تنظیم ارتفاع ثابت */
    overflow: hidden;
    border-radius: 10px;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slides .slide {
    min-width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
}

.slides .slide img {
    width: 100%;
    height: 100%; /* تنظیم ارتفاع ثابت */
    object-fit: cover;
    border-radius: 10px;
}

.dots {
    text-align: center;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.dot {
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.active {
    background-color: #717171;
}

.social-media {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    margin-top: 50px;
}

.social-media a {
    text-decoration: none;
    color: #333;
    padding: 0.5rem 1rem;
    background-color: #ddd;
    border-radius: 5px;
}

.social-media a:hover {
    color: #070462; /* رنگ سفید برای حالت هاور */
    text-decoration: none;
}

footer {
    text-align: center;
    padding: 1em;
    background-color: #333;
    color: white;
    margin-top: auto;
}

@media (min-width: 768px) {
    .slider {
        flex: 1;
    }

    .advertisement {
        flex: 1;
        margin-left: 20px;
    }

    .slides .slide img {
        width: auto;
        height: 100%;
    }


}

@media (max-width: 768px) {
    .custom-img {
        height: auto;
        width: 475px;
    }

    .container {
        flex-direction: column;
        align-items: center;
    }

    .left-column, .right-column {
        margin: 0;
        width: 100%;
        order: 2;
    }


    .slider {
        width: 100%;
        height: 400px;
        order: 1;
    }

    .slides {
        flex-direction: row;
    }

    .slides .slide {
        display: block;
        min-width: 100%;
    }

    .dots {
        text-align: center;
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);

    }

    .dot {
        height: 15px;
        width: 15px;
        margin: 0 5px;
        background-color: #bbb;
        border-radius: 50%;
        display: inline-block;
        cursor: pointer;
    }

    .active {
        background-color: #717171;
    }

    .slides .slide img {
        width: auto;
        height: 400px;
    }

    .social-media {
        margin-top: 1rem;
    }
}

hr {
    width: 80%; /* عرض خط‌ها */
    border: 1px solid #ccc; /* رنگ و اندازه خطوط */
}









