/***************************************************************
         *                    استایل‌های پایه و کلی
         ***************************************************************/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}
body {
    background: #F5F7F8;
    color: #333;
    text-align: right;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/***************************************************************
 *                          هدر (Header)
 ***************************************************************/
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 80px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo-img {
    width: 81px;
    height: auto;
}
nav ul {
    display: flex;
    list-style: none;
    margin-top: 32px;
}
nav ul li {
    margin: 0 20px;
}
nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: bolder;
    transition: color 0.3s;
}
nav ul li a:hover {
    color: #007BFF;
}
.buttons {
    display: flex;
    gap: 15px;
}
.buttons button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-size: 16px;
    transition: background 0.3s;
}
.login {
    background: #ddd;
    font-size: 16px;
}
.signup {
    background: #007BFF;
    color: white;
}
.signup:hover {
    background: #0056b3;
}
/* دکمه همبرگری */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}
.hamburger:focus {
    outline: none;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/***************************************************************
 *                    سکشن معرفی (Content Section)
 ***************************************************************/
.content-section {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 50px 100px;
}
.content-text {
    max-width: 50%;
}
.class {
    font-size: xxx-large;
}
.header-img {
    width: 450px;
    height: 313px;
    /*box-shadow: -20px 20px 21px rgba(0, 0, 0, 1);*/
    border-radius: 10px;
    object-fit: cover;
}

/***************************************************************
 *                      سکشن "کارهای ما"
 ***************************************************************/
.container {
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
}
.service-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 5vw;
    padding: 10px;
    border-radius: 8px;
}
.service-box.reverse {
    flex-direction: row-reverse;
}
.img-box {
    width: 300px;
    height: 300px;
    background-color: #2c2c2c;
    border-radius: 8px;
}
.text-box {
    flex: 1;
}
.text-box h2 {
    font-size: 24px;
    margin-bottom: 10px;
}
.text-box p {
    color: #666;
    text-align: justify;
    line-height: 1.8;
}

/***************************************************************
 *                  محصولات (تب‌ها)
 ***************************************************************/
.products-title {
    font-weight: bolder;
    font-size: x-large;
    text-align: center;
    margin-bottom: 20px;
}
.my-tabs {
    display: flex;
    gap: 10px;
    margin: 0 auto 20px auto;
    justify-content: center;
}
.my-tab-btn {
    border: none;
    padding: 10px 20px;
    font-weight: bolder;
    cursor: pointer;
    transition: background-color 0.3s;
}
.my-tab-btn.active {
    border-bottom: 2px solid black;
}
.my-slider-container {
    height: 300px;
    margin: 0 auto 60px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    text-align: center;
}
.my-slider {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
#mySlider {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: 400px;
    overflow: hidden;
}
.my-slide {
    position: absolute;
    transition: transform 1.5s cubic-bezier(0.645, 0.045, 0.355, 1),
    opacity 1.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    opacity: 0;
    height: 200px;
    border-radius: 5px;
    overflow: hidden;
}
.my-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.my-slide.center {
    opacity: 1;
    transform: translateX(0) scale(1.2);
    z-index: 3;
}
.my-slide.right {
    opacity: 0.9;
    transform: translateX(180px) scale(0.9);
    z-index: 2;
}
.my-slide.left {
    opacity: 0.9;
    transform: translateX(-180px) scale(0.9);
    z-index: 2;
}

/***************************************************************
 *                      تیم ما (Team Section)
 ***************************************************************/
.team-section {
    padding: 60px 20px;
    background: #F5F7F8;
    text-align: center;
}
.team-title {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}
.team-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.team-card {
    background: #141929;
    color: #ffffff;
    width: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
.team-card-img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 15px;
}
.team-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.team-card p {
    font-size: 14px;
    color: #bdbdbd;
    margin-bottom: 20px;
}
.team-card button {
    background-color: #007bff;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 14px;
}
.team-card button:hover {
    background-color: #0056b3;
}

/***************************************************************
 *               اسلایدر وبلاگ (Blog Slider)
 * – این بخش جایگزین اسلایدر قدیمی وبلاگ شده و از ساختار
 *   کلون کردن اسلایدها جهت ایجاد حلقه بی‌نهایت استفاده می‌کند.
 ***************************************************************/
.slider-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding: 30px 0;
}
.slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
    /* جهت‌دهی به ltr برای جلوگیری از وارونه شدن ترتیب */
    direction: ltr;
}
.slide {
    flex: 0 0 calc((100% - 40px) / 3); /* در دسکتاپ: ۳ اسلاید در هر نما */
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}
.slide img {
    width: 100%;
    display: block;
    object-fit: cover;
    height: 220px;
}
.slide-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 10px;
    text-align: center;
    font-size: 1rem;
}
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    z-index: 2;
    transition: background 0.3s;
}
.nav-btn:hover {
    background-color: rgba(255, 255, 255, 1);
}
.next-btn { right: 10px; }
.prev-btn { left: 10px; }
.dots-container {
    text-align: center;
    margin-top: 15px;
}
.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}
.dot.active {
    background-color: #333;
}

/***************************************************************
 *                          فوتر (Footer)
 ***************************************************************/
.footer-section {
    width: 80%;
    max-width: 1200px;
    margin: 40px auto;
    background: #141929;
    border-radius: 16px;
    padding: 40px 20px;
    color: #fff;
    direction: rtl;
    font-family: sans-serif;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}
.footer-col {
    flex: 1 1 150px;
    min-width: 130px;
}
.about-col {
    flex: 2 1 200px;
}
.footer-col h2,
.footer-col h3 {
    margin-bottom: 15px;
    font-weight: bold;
}
.about-col p {
    line-height: 1.7;
    color: #ccc;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li {
    margin-bottom: 10px;
    font-size: 14px;
}
.footer-col ul li a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.2s;
}
.footer-col ul li a:hover {
    color: #fff;
}
.social-col ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.social-col img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    display: inline-block;
}

/***************************************************************
 *                 ریسپانسیو (Responsive)
 ***************************************************************/
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }
    .hamburger {
        display: flex;
    }
    nav,
    .buttons {
        display: none;
        width: 100%;
        margin-top: 10px;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    nav.active,
    .buttons.active {
        display: flex;
        flex-direction: row;
    }
    .content-section {
        flex-direction: column;
        padding: 20px;
    }
    .content-text {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .header-img {
        width: 100%;
        max-width: 400px;
        height: auto;
    }
    .service-box {
        flex-direction: column;
        text-align: center;
    }
    .service-box.reverse {
        flex-direction: column;
    }
    .img-box {
        width: 100%;
        max-width: 400px;
        height: 250px;
        margin: 0 auto 20px;
    }
    /* تغییرات برای اسلایدر وبلاگ در موبایل:
       - در موبایل به جای نمایش ۳ اسلاید، تنها ۱ اسلاید نمایش داده می‌شود
       - عرض باکس‌ها به حدود 90% از عرض کانتینر تغییر می‌کند */
    #blogSliderTrack .slide {
        flex: 0 0 90%;
    }
}