/* style.css - قالب سایت اتحادیه آهنفروشان کرج */

/* تنظیم کلی بدنه */
body {
    font-family: Tahoma, sans-serif;
    direction: rtl;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
}

/* هدر سایت */
header {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
}

/* منوی ناوبری */
nav {
    background-color: #34495e;
    overflow: hidden;
    padding: 10px 0;
    text-align: center;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    display: inline-block;
    transition: 0.3s;
}

nav a:hover {
    background-color: #1abc9c;
    color: white;
    border-radius: 5px;
}

/* بخش تبلیغات */
section.ads {
    background-color: #ecf0f1;
    padding: 20px;
    margin: 20px;
    text-align: center;
}

.ad-box {
    display: inline-block;
    margin: 10px;
    padding: 10px;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* جدول قیمت‌ها */
section.prices {
    margin: 20px;
}

section.prices table {
    width: 100%;
    border-collapse: collapse;
}

section.prices th, section.prices td {
    border: 1px solid #bdc3c7;
    padding: 10px;
    text-align: center;
}

section.prices th {
    background-color: #3498db;
    color: white;
}

/* اخبار */
section.news {
    margin: 20px;
}

.news-item {
    background-color: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* فوتر */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
}
.slider {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide img {
    width: 100%;
    border-radius: 12px;
}

/* دکمه‌ها */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 15px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
}
.prev { left: 10px; }
.next { right: 10px; }

/* نقطه‌ها */
.dots {
    text-align: center;
    margin-top: 10px;
}
.dot {
    height: 12px;
    width: 12px;
    margin: 5px;
    background: #ccc;
    display: inline-block;
    border-radius: 50%;
    cursor: pointer;
}
.dot.active {
    background: #333;
}

/* Reset اولیه */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Tahoma", sans-serif;
}

/* بدنه سایت */
body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    padding: 10px;
}

/* هدر */
header {
    background-color: #0b3d91;
    color: #fff;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* منو ناوبری */
nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #0b3d91;
    font-weight: bold;
    padding: 8px 16px;
    background-color: #fff;
    border-radius: 6px;
    transition: 0.3s;
}

nav a:hover {
    background-color: #0b3d91;
    color: #fff;
}

/* جداول */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

table th, table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

table th {
    background-color: #0b3d91;
    color: #fff;
}

/* فرم‌ها */
form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

form input[type=text],
form input[type=number],
form input[type=date],
form input[type=file],
form textarea {
    width: 100%;
    padding: 10px;
    margin: 6px 0 12px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
}

form input[type=submit] {
    background-color: #0b3d91;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

form input[type=submit]:hover {
    background-color: #06326e;
}

/* اسلایدر */
.slider {
    position: relative;
    max-width: 800px;






