/* تنظیمات کلی */
body {
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', sans-serif;
    background: url('img/background.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    direction: rtl;
    overflow-x: hidden;
}

/* هدر */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #00ddff;
    z-index: 10;
}

.header .logo {
    width: 150px; /* اندازه لوگو */
    height: auto;
    margin-right: 0; /* قرار گرفتن لوگو در سمت راست */
}

.header h1 {
    color: #fff;
    font-size: 2em; /* بزرگ‌تر شدن عنوان */
    margin: 0 auto; /* قرارگیری دقیقاً وسط */
    text-align: center;
    flex-grow: 1; /* کمک به تراز شدن */
}

.header .panel-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* فاصله بین آیکون و متن */
    background-color: #008ca2;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1em;
    font-family: 'Vazirmatn', sans-serif; /* استفاده از فونت Vazirmatn */
    transition: 0.3s;
}

.header .panel-link:hover {
    background-color: #00ddff;
}

.header .panel-link i {
    font-size: 1.2em; /* اندازه آیکون */
    color: white;
}



/* محتوای اصلی */
.main-container {
    padding: 150px 20px 50px;
}

/* دسته‌بندی */
.category {
    width: 100%;
    margin-bottom: 40px;
    overflow: hidden;
}

.category h2 {
    text-align: center;
    font-size: 1.8em;
    color: #00ddff; /* رنگ متن سفید برای خوانایی بهتر */
    margin: 0 auto 20px auto; /* قرارگیری در مرکز و فاصله پایین */
    background: rgba(0, 0, 0, 0.7); /* پس‌زمینه مشکی نیمه‌شفاف */
    padding: 10px 20px; /* فاصله داخل عنوان */
    border-radius: 10px; /* گوشه‌های گرد */
    display: center; /* هماهنگ کردن پس‌زمینه با متن */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* سایه زیبا */
}

/* کانتینر اسکرول */
.scroll-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.scroll-items-wrapper {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px;
}

.item {
    flex: 0 0 auto;
    width: 230px;
    height: 300px;
    background: rgba(0, 0, 0, 0.5); /* پس‌زمینه نیمه شفاف */
    backdrop-filter: blur(10px); /* مات کردن پنجره */
    color: white;
    text-align: center;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* سایه زیبا */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.item:hover {
    transform: scale(1.05); /* بزرگ‌تر شدن هنگام هاور */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}


/* آیتم‌های مخفی */
.item.hidden {
    opacity: 0; /* آیتم‌ها نامرئی باشند */
    transform: translateY(50px); /* از پایین حرکت کنند */
    height: 0; /* ارتفاع صفر برای پنهان‌سازی کامل */
    overflow: hidden; /* جلوگیری از نمایش محتوا */
    transition: opacity 0.4s ease, transform 0.4s ease, height 0.4s ease; /* انیمیشن نرم */
}

.item.show {
    opacity: 1; /* آیتم‌ها قابل‌مشاهده شوند */
    transform: translateY(0); /* به موقعیت اصلی برگردند */
    height: 300px; /* ارتفاع اصلی آیتم‌ها */
    overflow: visible; /* محتوای آیتم‌ها نمایش داده شود */
    transition: opacity 0.4s ease, transform 0.4s ease, height 0.4s ease; /* انیمیشن نرم */
}

.scroll-items-wrapper {
    display: flex; /* مرتب‌سازی افقی آیتم‌ها */
    flex-wrap: wrap; /* اجازه به ایجاد ردیف جدید برای آیتم‌های اضافی */
    justify-content: center; /* وسط‌چین کردن آیتم‌ها */
    gap: 15px; /* فاصله بین آیتم‌ها */
    overflow: hidden; /* حذف اسکرول */
}



/* دکمه مشاهده بیشتر */
.toggle-more {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #008ca2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-family: 'Vazirmatn', sans-serif; /* اعمال فونت مشابه سایت */
    transition: background-color 0.3s;
    text-align: center; /* متن در وسط */
}

.toggle-more:hover {
    background-color: #00ddff; /* تغییر رنگ هنگام هاور */
}


/* فوتر */
.footer {
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 20px 10px;
    box-shadow: 0px -4px 8px rgba(0, 0, 0, 0.3);
    border-top: 2px solid #00ddff;
}

.footer p {
    margin: 5px 0;
    font-size: 0.9em;
}

.footer a {
    color: #00ddff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
    color: #0077aa;
}
.panel-link {
    display: flex;
    align-items: center;
    padding: 5px 15px;
    background-color: rgb(255, 222, 0);
    border-radius: 50px;
    text-decoration: none;
    color: #000;
    font-size: 14px;
    font-weight: bold;
}

.header .panel-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background-color: #008ca2; /* رنگ دکمه */
    color: #ffffff; /* رنگ متن */
    border-radius: 30px; /* گوشه‌های گرد */
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.header .panel-link:hover {
    background-color: #00ddff; /* تغییر رنگ هنگام هاور */
    transform: scale(1.05); /* افکت بزرگ‌نمایی هنگام هاور */
}

.header .panel-link .icon {
    width: 12px; /* سایز آیکون */
    height: 15px;
    margin-right: 0px;
    fill: #fff; /* رنگ آیکون */
}

.item img {
    display: block; /* برای جلوگیری از فاصله اضافی */
    margin: 0 auto; /* وسط‌چین کردن تصویر */
    max-width: 80%; /* محدود کردن عرض تصویر */
    max-height: 60%; /* محدود کردن ارتفاع تصویر */
    object-fit: contain; /* حفظ تناسب تصویر */
    border-radius: 10px; /* گوشه‌های گرد برای زیبایی */
}
