/* استایل پایه برای کل سایت */
body {
    font-family: Vazir, Tahoma, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
    direction: rtl;
}

a {
    color: #1c5d99;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #145a86;
}

/* استایل هدر و ناوبار */
header {
    background-color: #1c5d99;
    color: white;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
}

.title {
    flex: 1;
    text-align: center;
    font-size: 1.3em;
}

nav ul {
     color: red;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    background-color: red;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 10px 15px;
    color: #000;
}

nav ul li a:hover {
    background-color: #bbb;
}

/* کارت‌ها (Card) */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    list-style: none;
    margin: 20px 0;
}

.cards li {
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 20px;
    flex: 1 1 200px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    cursor: pointer;
}

.cards li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.cards li a {
    text-decoration: none;
    color: #1c5d99;
    font-weight: bold;
    font-size: 1.1em;
    display: block;
}

/* استایل فرم‌ها */
form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

form input[type="text"],
form input[type="password"],
form input[type="email"],
form select,
form textarea {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}

form button {
    background-color: #1c5d99;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #145a86;
}

/* استایل پیام خطا */
.error {
    color: #cc0000;
    margin-bottom: 15px;
}

/* ریسپانسیو */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 15px;
    }

    .title {
        text-align: right;
        margin-top: 10px;
        font-size: 1.2em;
    }

    nav ul {
        flex-direction: column;
    }

    .cards {
        flex-direction: column;
    }

    .cards li {
        flex: 1 1 100%;
    }
}
