/* لود فونت وزیر */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2'),
         url('../fonts/Vazirmatn-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

/* ریست استایل‌ها */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* استایل‌های پایه */
body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #e0e0e0; /* طوسی روشن */
    color: #333;
    direction: rtl;
    text-align: right;
}

/* استایل هدر */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #e0e0e0; /* طوسی روشن */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1; /* برای قرار گرفتن در وسط */
}

.center-logo {
    height: 100px; /* اندازه لوگو */
    transition: transform 0.3s ease;
}

.center-logo:hover {
    transform: scale(1.1);
}

/* دکمه خانه */
.home-link {
    font-size: 1.2rem;
}

.home-link a {
    text-decoration: none;
    color: #000;
    transition: color 0.3s ease;
}

.home-link a:hover {
    color: #d35400; /* نارنجی تیره برای hover */
}

/* منوی همبرگری */
.menu-toggle {
    display: flex; /* نمایش در دسکتاپ و موبایل */
    flex-direction: column;
    cursor: pointer;
    z-index: 1000;
    order: 1; /* انتقال به سمت راست */
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: #000; /* تغییر به سیاه */
    margin: 3px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: #000; /* اطمینان از سیاه ماندن در حالت ضربدر */
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background-color: #000; /* اطمینان از سیاه ماندن در حالت ضربدر */
}

/* استایل منو */
.menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: #e0e0e0; /* طوسی روشن */
    display: flex;
    flex-direction: column;
    justify-content: center; /* وسط‌چین عمودی */
    align-items: center;
    transition: left 0.3s ease;
    z-index: 999;
}

.menu.active {
    left: 0; /* نمایش منو */
}

.menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 0;
    padding: 0;
    text-align: center;
}

.menu ul li {
    font-size: 1.2rem;
}

.menu ul li a {
    text-decoration: none;
    color: #000; /* نوشته‌های منو سیاه */
    transition: color 0.3s ease;
}

.menu ul li a:hover {
    color: #d35400; /* نارنجی تیره برای hover */
}

.menu ul li img.icon {
    width: 20px;
    vertical-align: middle;
    margin-left: 5px;
}

.menu ul li iframe {
    margin-top: 10px;
    border-radius: 8px;
    width: 90%;
    max-width: 300px;
    height: 150px;
}

/* اسلایدر */
.slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 1000; /* نسبت 1920x1000 */
    overflow: hidden;
    margin: 0 auto;
    max-width: 1920px; /* حداکثر عرض */
}

.slide-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slides {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px; /* گوشه‌های گرد */
    display: block; /* حذف فضای اضافی */
}

.side {
    z-index: 1;
}

.center {
    z-index: 2;
}

/* دکمه‌های اسلایدر */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 3;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.arrow.left {
    right: 10px;
}

.arrow.right {
    left: 10px;
}

/* بخش‌های لینک */
.link-section {
    margin: 20px auto;
    max-width: 1920px;
    padding: 0 20px;
}

.link-image {
    display: block;
    border: 1px solid #f4a261; /* کادر مشابه ساب‌کتگوری */
    border-radius: 10px; /* گوشه‌های گرد مشابه ساب‌کتگوری */
    overflow: hidden; /* جلوگیری از سرریز شدن تصویر */
    line-height: 0; /* حذف فضای خالی زیر عکس */
}

.link-image img {
    width: 100%;
    aspect-ratio: 1920 / 800; /* نسبت 1920x800 */
    object-fit: cover;
    border-radius: 8px;
    display: block; /* حذف فضای اضافی */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* نسخه موبایل */
@media (max-width: 768px) {
    .header {
        padding: 10px;
    }

    .center-logo {
        height: 70px; /* اندازه کوچکتر لوگو در موبایل */
    }

    .home-link {
        font-size: 1rem;
    }

    .menu-toggle {
        display: flex; /* دکمه همبرگری در موبایل */
    }

    .menu ul li {
        font-size: 1.1rem; /* کمی کوچک‌تر برای موبایل */
    }

    .slider {
        aspect-ratio: 1920 / 1000; /* نسبت اصلی برای اسلایدر */
    }

    .slides img {
        object-fit: contain; /* نمایش کامل تصویر در موبایل */
    }

    .arrow {
        padding: 8px;
        font-size: 1.2rem;
    }

    .link-image img {
        aspect-ratio: 1920 / 800; /* نسبت اصلی برای بخش‌های لینک */
    }
}