@font-face {
    font-family: Shabnam;
    font-weight: 400;
    src: url(./webfonts/Shabnam.d04c93d9a9ecd30ebf61.woff2) format("woff2")
}

@font-face {
    font-family: Roboto;
    font-weight: 400;
    src: url(./webfonts/roboto-regular.60c6d073cfdf57bc03d2.woff2) format("woff2")
}

@font-face {
    font-family: Shabnam;
    font-weight: 500;
    src: url(./webfonts/Shabnam-Medium.d1ab1fbec917269c40b8.woff2) format("woff2")
}

@font-face {
    font-family: Roboto;
    font-weight: 500;
    src: url(./webfonts/roboto-medium.c90d94fb3f94e426c31e.woff2) format("woff2")
}

@font-face {
    font-family: Shabnam;
    font-weight: 300;
    src: url(./webfonts/Shabnam-Light.eb8257931f2db8827154.woff2) format("woff2")
}

@font-face {
    font-family: Roboto;
    font-weight: 300;
    src: url(./webfonts/roboto-light.7d1febe76014e661e3f2.woff2) format("woff2")
}

@font-face {
    font-family: Shabnam;
    font-weight: 700;
    src: url(./webfonts/Shabnam-Bold.fae09661adb985b99014.woff2) format("woff2")
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Shabnam, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #4a6cf7;
    --secondary-color: #6f42c1;
    --text-dark: #333;
    --text-light: #fff;
    --nav-height: 70px;
    --transition-speed: 0.4s;
    --sidebar-width: 280px;
}

body {
    overflow-x: hidden;
    color: var(--text-dark);
    background: #f5f5f5;
}

/* ناوبری */
.nav-container {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: height 0.3s ease;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

    .logo i {
        margin-left: 10px;
        font-size: 28px;
    }

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

    .nav-links li {
        margin-left: 25px;
        position: relative;
    }

    .nav-links a {
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 500;
        transition: color 0.3s;
        display: flex;
        align-items: center;
    }

        .nav-links a i {
            margin-left: 8px;
            font-size: 18px;
        }

        .nav-links a:hover {
            color: var(--primary-color);
        }

        .nav-links a.active {
            color: var(--primary-color);
        }

            .nav-links a.active::after {
                content: '';
                position: absolute;
                bottom: -5px;
                right: 0;
                width: 100%;
                height: 3px;
                background: var(--primary-color);
                border-radius: 2px;
            }

/* دکمه انتخاب زبان */
.language-selector {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.current-language {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(74, 108, 247, 0.1);
    transition: all 0.3s;
}

    .current-language:hover {
        background: rgba(74, 108, 247, 0.2);
    }

    .current-language span {
        margin: 0 5px;
    }

.language-options {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    min-width: 120px;
    display: none;
    z-index: 1000;
}

    .language-options.active {
        display: block;
    }

.language-option {
    padding: 8px 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

    .language-option:hover {
        background: rgba(74, 108, 247, 0.1);
    }

    .language-option span {
        margin-right: 8px;
    }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

/* منوی کناری */
.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: var(--sidebar-width);
    height: 100vh;
    background: #fff;
    z-index: 1002;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    padding: 80px 20px 40px;
    overflow-y: auto;
}

    .sidebar.active {
        right: 0;
    }

.sidebar-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-dark);
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 30px;
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
}

.sidebar-links {
    list-style: none;
    margin-top: 20px;
}

    .sidebar-links li {
        margin-bottom: 15px;
    }

    .sidebar-links a {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        text-decoration: none;
        color: var(--text-dark);
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.3s;
    }

        .sidebar-links a:hover, .sidebar-links a.active {
            background: var(--primary-color);
            color: white;
        }

        .sidebar-links a i {
            margin-left: 10px;
            font-size: 20px;
        }

.overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* اسلایدها */
.slides-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: var(--nav-height);
    touch-action: pan-y;
}

.slider-container {
    display: flex;
    width: 400vw;
    height: 100%;
    transition: transform var(--transition-speed) cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateX(0);
}

.slide {
    width: 100vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* رنگ‌های مختلف برای اسلایدها */
#slide1 {
    background: linear-gradient(135deg, #4a6cf7 0%, #2c4fd8 100%);
    color: var(--text-light);
}

#slide2 {
    background: linear-gradient(135deg, #8E44AD 0%, #6C3483 100%);
    color: var(--text-light);
}

#slide3 {
    background: linear-gradient(135deg, #138D75 0%, #0E6655 100%);
    color: var(--text-light);
}

#slide4 {
    background: linear-gradient(135deg, #2E86C1 0%, #1A5276 100%);
    color: var(--text-light);
}

.slide-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 20px;
}

.slide-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide h1 {
    font-size: 1.8rem;
    /*! margin-bottom: 20px; */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide p {
    font-size: 1.0rem;
    line-height: 1.8;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    direction: rtl;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
    text-align: center;
    cursor: pointer;
    margin-top: 15px;
}

    .btn:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        background: var(--primary-color);
        color: white;
    }

/* مبدل ارز - طراحی جدید */
.currency-converter {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 500px;
}

.converter-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.converter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .form-group label {
        font-weight: 500;
        font-size: 1rem;
    }

    .form-group input {
        padding: 12px 15px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.1);
        color: white;
        font-size: 1rem;
    }

.drop-list {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.select-box {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    flex: 1;
}

    .select-box img {
        width: 24px;
        height: 18px;
        margin-left: 8px;
        object-fit: cover;
    }

    .select-box select {
        background: transparent;
        border: none;
        color: white;
        font-size: 1rem;
        flex: 1;
        cursor: pointer;
        outline: none;
    }

        .select-box select option {
            background: #4a6cf7;
            color: white;
        }

.exchange-icon {
    cursor: pointer;
    font-size: 20px;
    color: white;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

    .exchange-icon:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(180deg);
    }

.converter-result {
    /*! margin-top: 20px; */
    padding: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-align: center;
    font-size: 1.0rem;
    font-weight: 600;
    direction: ltr;
}

/* تب‌ها برای موبایل */
.tabs {
    display: none;
    width: 100%;
    margin-bottom: 20px;
}

.tab-buttons {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

    .tab-btn.active {
        background: rgba(255, 255, 255, 0.2);
    }

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

/* فرم تماس */
.contact-form {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

    .contact-form .form-group input,
    .contact-form .form-group textarea {
        padding: 12px 15px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.1);
        color: white;
        font-size: 1rem;
        width: 100%;
    }

    .contact-form .form-group textarea {
        min-height: 120px;
        resize: vertical;
    }

/* اطلاعات تماس */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /*! background: rgba(255, 255, 255, 0.2); */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* لوکیشن */
.location-map {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* بخش بلاگ - بهبود یافته */
.blog-section {
    width: 100%;
}

.blog-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.blog-slider {
    display: flex;
    transition: transform 0.5s ease;
    padding: 20px 0;
    gap: 20px;
}

.blog-post {
    flex: 0 0 calc(33.333% - 20px);
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

    .blog-post:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }

.blog-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

    /* افزودن گرادیانت برای بهبود خوانایی متن روی تصاویر */
    .blog-image::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
    }

    .blog-image i {
        z-index: 1;
    }

/* رنگ‌های مختلف برای تصاویر بلاگ */
.blog-post:nth-child(1) .blog-image {
    background: linear-gradient(135deg, #4a6cf7 0%, #6f42c1 100%);
}

.blog-post:nth-child(2) .blog-image {
    background: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%);
}

.blog-post:nth-child(3) .blog-image {
    background: linear-gradient(135deg, #0cebeb 0%, #20e3b2 50%, #29ffc6 100%);
}

.blog-content {
    padding: 25px 25px 0 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

    .blog-content h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        color: var(--primary-color);
        line-height: 1.4;
    }

    .blog-content p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 20px;
        color: #666;
        flex-grow: 1;
    }

.blog-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    padding-top: 15px;
    padding-bottom: 15px;
}

    .blog-meta span {
        display: flex;
        align-items: center;
    }

    .blog-meta i {
        margin-left: 5px;
    }

/* دکمه‌های ناوبری - مخفی شده */
.nav-buttons {
    display: none;
}

/* فلش‌های ناوبری - مخفی شده */
.arrow {
    display: none;
}

/* نشانگر اسکرول - مخفی شده */
.scroll-indicator {
    display: none;
}

/* چیدمان دسکتاپ برای صفحات تماس و درباره ما */
.desktop-layout {
    display: flex;
    gap: 40px;
    width: 100%;
}

    .desktop-layout > div {
        flex: 1;
    }

/* کنترل‌های اسلایدر بلاگ */
.blog-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.blog-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

    .blog-control.active {
        background: white;
        transform: scale(1.2);
    }

/* فلش‌های ناوبری بلاگ */
.blog-arrows {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    padding: 0 20px;
    pointer-events: none;
}

.blog-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: all;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

    .blog-arrow:hover {
        background: white;
        transform: scale(1.1);
    }

    .blog-arrow i {
        font-size: 20px;
        color: var(--primary-color);
    }

/* واکنش‌گرایی */
@media (max-width: 1200px) {
    .blog-post {
        flex: 0 0 calc(33.333% - 20px);
    }

    .slide-content {
        flex-direction: column;
        text-align: center;
    }

    .slide-column {
        width: 100%;
    }

    .currency-converter, .contact-form, .location-map {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .slide h1 {
        font-size: 1.5rem;
    }

    .slide p {
        font-size: 1.0rem;
    }

    .nav-links .menu-item {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .blog-post {
        flex: 0 0 calc(50% - 20px);
    }

    .drop-list {
        flex-direction: row;
        gap: 10px;
    }

    .exchange-icon {
        transform: rotate(90deg);
    }

        .exchange-icon:hover {
            transform: rotate(270deg);
        }

    .blog-arrows {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
        --sidebar-width: 80%;
    }

    .nav-container {
        padding: 0 20px;
    }

    .slide h1 {
        font-size: 2.2rem;
    }

    .slide p {
        font-size: 1rem;
    }

    .slide-content {
        padding: 10px;
    }

    .btn {
        padding: 12px 30px;
    }

    .blog-post {
        flex: 0 0 300px;
        margin: 0 10px;
    }

    .blog-container {
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

        .blog-container::-webkit-scrollbar {
            display: none;
        }

    .blog-slider {
        width: max-content;
        padding-bottom: 15px;
    }

    .blog-content {
        padding: 20px 20px 0 20px;
    }

        .blog-content h3 {
            font-size: 1.3rem;
        }

    .currency-converter {
        padding: 20px;
    }

    .converter-title {
        font-size: 1.3rem;
    }

    .select-box {
        min-width: 120px;
    }

    .drop-list {
        flex-wrap: nowrap;
    }

    /* حذف دکمه تبدیل در موبایل */
    #convert-btn {
        display: none;
    }

    /* نمایش تب‌ها در موبایل */
    .tabs {
        display: block;
    }

    /* مخفی کردن محتوای اصلی در موبایل */
    .desktop-layout {
        display: none;
    }

    /* مخفی کردن کنترل‌های بلاگ در موبایل */
    .blog-controls {
        display: none;
    }
}

@media (max-width: 576px) {
    .slide h1 {
        font-size: 1.8rem;
    }

    .slide-content {
        padding: 5px;
    }

    .blog-content h3 {
        font-size: 1.2rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 8px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .select-box {
        padding: 8px;
        min-width: 100px;
    }

        .select-box select {
            font-size: 0.9rem;
        }

        .select-box img {
            width: 20px;
            height: 15px;
        }

    .converter-result {
        font-size: 1rem;
        padding: 10px;
    }

    .drop-list {
        gap: 5px;
    }

    .exchange-icon {
        padding: 8px;
        font-size: 16px;
    }

    .tab-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .select-box {
        min-width: 90px;
    }

        .select-box select {
            font-size: 0.8rem;
        }

    .converter-result {
        font-size: 0.9rem;
    }

    .tab-btn {
        font-size: 0.8rem;
        padding: 8px 5px;
    }
}
