﻿:root {
    --primary-color: #7852A9;
    --secondary-color: #9B7BC6;
    --hover-color: #5D3F7D;
    --light-color: #E6DDF2;
    --text-color: #333;
    --light-text: #fff;
}

body {
    font-family: 'Shabnam', sans-serif;
    background-color: #f8f9fa;
    padding-top: 80px;
    color: var(--text-color);
}

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand .logo-text {
    font-weight: bold;
    font-size: 1.8rem;
    color: var(--light-text);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: #fff !important;
        background-color: rgba(255, 255, 255, 0.2);
    }

    .navbar-nav .nav-link:after {
        content: '';
        position: absolute;
        bottom: -5px;
        right: 15px;
        width: 0;
        height: 3px;
        background: var(--light-color);
        border-radius: 10px;
        transition: width 0.3s ease;
    }

    .navbar-nav .nav-link:hover:after,
    .navbar-nav .nav-link.active:after {
        width: calc(100% - 30px);
    }

.dropdown-menu {
    background-color: white;
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 10px;
}

.dropdown-item {
    padding: 10px 20px;
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.2s ease;
    border-right: 3px solid transparent;
}

    .dropdown-item:hover {
        background-color: var(--light-color);
        color: var(--primary-color);
        border-right: 3px solid var(--primary-color);
    }

.navbar-toggler {
    border: none;
    color: var(--light-text);
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

/* آیکونها */
.nav-link i {
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.2);
}

/* موبایل */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #fff !important;
        border-radius: 0;
        padding: 10px;
        box-shadow: none;
        position: relative;
        padding-top: 50px;
    }

    .navbar-nav .nav-link {
        color: #7852A9 !important;
        background-color: transparent !important;
    }

        .navbar-nav .nav-link:hover {
            background-color: #f4f0f9 !important;
            color: #5D3F7D !important;
        }

    .dropdown-menu {
        background-color: #fff;
    }

    .dropdown-item {
        color: #7852A9 !important;
    }

        .dropdown-item:hover {
            background-color: #f4f0f9;
            color: #5D3F7D;
        }
    /* دکمه بستن برای حالت موبایل */
    .close-btn {
        position: absolute;
        top: 15px;
        left: 15px;
        color: #7852A9;
        font-size: 1.8rem;
        z-index: 1050;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .close-btn:hover {
            color: var(--hover-color);
            transform: scale(1.1);
        }
}

/* navbar custom سفید */
.navbar-custom {
    position: sticky;
    top: 0;
    z-index: 1020; /* مقدار بالا برای نمایش روی سایر عناصر */
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: white;
        z-index: 1050;
        overflow-y: auto;
        padding: 1rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

        .navbar-collapse.show {
            transform: translateX(0);
        }
}
    .navbar-custom .navbar-brand .logo-text {
        color: #7852A9;
        font-weight: bold;
        font-size: 1.5rem;
    }

    .navbar-custom .nav-link {
        color: #7852A9 !important;
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .navbar-custom .nav-link:hover,
        .navbar-custom .nav-link.active {
            color: #5D3F7D !important;
        }

    .navbar-custom .dropdown-menu {
        border: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .navbar-custom .dropdown-item {
        color: #7852A9;
        font-weight: 500;
    }

        .navbar-custom .dropdown-item:hover {
            background-color: #f4f0f9;
            color: #5D3F7D;
        }

.hero-section {
    margin-top: 0;
    padding-top: 100px;
}

/* تغییرات جدید برای جابجایی منو و لوگو */
.navbar .container {
    display: flex;
    flex-direction: row; /* معکوس کردن جهت برای RTL */
}

.navbar-collapse {
    margin-left: auto; /* انتقال منو به سمت چپ */
}

.navbar-brand {
    margin-right: auto; /* انتقال لوگو به سمت راست */
}

@media (max-width: 991px) {
    .navbar .container {
        flex-direction: row; /* در حالت موبایل جهت عادی */
    }

    .navbar-collapse {
        margin-left: 0;
    }

    .navbar-brand {
        margin-right: 0;
    }
}

/* محتوای نمونه */
.content {
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

    .content h1 {
        color: var(--primary-color);
        border-bottom: 2px solid var(--light-color);
        padding-bottom: 15px;
        margin-bottom: 30px;
    }

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
}

.feature {
    flex: 1;
    min-width: 250px;
    background: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

    .feature i {
        font-size: 2.5rem;
        color: var(--primary-color);
        margin-bottom: 15px;
    }
