﻿
.IconProductMid01 {
    opacity: 0.3;
}

.IconProductMid02 {
    opacity: 1;
    transform: scale(1.3);
    transition: all 0.5s;
}

.IconProductMid03 {
    display: none;
}

.video-card {
    width: 100%;
    max-width: 700px;
    margin: 20px auto 0px auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.3s ease;
    padding-bottom: 0px;
}

    .video-card video {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }




/*Start Header*/

.Style_Header {
    transition: transform 0.3s ease; /* حرکت نرم */
}

    .Style_Header:hover {
        text-shadow: 1px 1px #dcdcdc;
        color: dodgerblue;
    }

.Style_Header_Product {
    transition: transform 0.3s ease; /* حرکت نرم */
}

/* زبانه کوچک بالای Dropdown */
.submenu::before {
    content: "";
    position: absolute;
    top: -10px; /* فاصله زبانه از بالا */
    left: 0px; /* جای دقیق زبانه - تنظیم کن */
    width: 102.65px; /* پهنای زبانه */
    height: 10px; /* ارتفاع زبانه */
    background: #171717; /* رنگ پس‌زمینه زبانه */
    border-bottom: none; /* حذف خط پایین برای اتصال به منو */
    border-radius: 4px 4px 0 0; /* گردی لبه‌ها */
}

/*legend Header*/





@media (max-width: 800px) {
    #IconProductId_All {
        display: none !important;
    }
}
















@media (max-width: 800px) {

    /* کارت accordion */
    .tp-ab-section {
        overflow: hidden;
        max-height: 120px; /* حالت بسته */
        transition: max-height 0.9s ease, box-shadow 0.3s ease, border-color 0.3s ease;
        border-radius: 14px;
        margin: 0 13px 16px; /* چپ و راست 12px */
        background: linear-gradient(135deg, #f9fafb, #ffffff);
        box-shadow: 0 4px 5px rgba(23, 23, 23, 0.2);
        cursor: pointer;
    }

        /* حالت باز */
        .tp-ab-section.is-active {
            max-height: 3000px;
            border-color: #171717;
            box-shadow: 0 4px 5px rgba(23, 23, 23, 0.5);
        }

    /* هدر accordion */
    .tp-ab-info > div:first-child {
        padding: 5px 20px;
        position: relative;
    }

    /* subtitle */
    .tp-ab-subtitle span {
        font-size: 12px;
        font-weight: 500;
        color: #171717;
        text-transform: uppercase;
        letter-spacing: 0.6px;
    }

    /* عنوان */
    .tp-ab-title {
        margin: 6px 0 0;
        font-size: 18px;
        font-weight: 600;
        color: #171717;
    }

    /* آیکن باز/بسته */
    .tp-ab-info > div:first-child::after {
        content: "+";
        position: absolute;
        right: 18px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 22px;
        font-weight: 600;
        color: #171717;
        transition: transform 0.3s ease;
    }
    .tp-ab-info p {
        margin-bottom: 0;
    }
    .tp-ab-section.is-active .tp-ab-info > div:first-child::after {
        content: "";
        transform: translateY(-50%) rotate(180deg);
    }



    /* محتوای بسته */
    .tp-ab-section:not(.is-active) .pl-30,
    .tp-ab-section:not(.is-active) .tp-btn,
    .tp-ab-section:not(.is-active) .tp-btn-white,
    .tp-ab-section:not(.is-active) .postbox__thumb {
        display: none;
    }

    /* متن توضیح */
    .pl-30 {
        padding: 0 20px 0px; 
        font-size: 12px !important;
        color: #171717;
        line-height: 1.7;
    }

    /* دکمه‌ها */
    .tp-btn{
        margin: 10px 0px 0px 10px;
        border-radius: 10px;
        font-size: 13px;
    }
    .tp-btn-white {
        margin: 20px 0px 25px 5px;
        border-radius: 10px;
        font-size: 13px;
    }
}
/* هدر در حالت بسته بالاتر و فشرده‌تر */
.tp-ab-section:not(.is-active) > div:first-child {
    padding-bottom: 25px;
}

.tp-ab-section {
    padding-top: 0 !important;
}
    /* هدر در حالت بسته بالاتر و فشرده‌تر */
    .tp-ab-section:not(.is-active) .tp-ab-info > div:first-child {
        padding: 0px 40px 6px 80px; /* فاصله کمتر + بالاتر */
    }

    /* فاصله subtitle کمتر */
    .tp-ab-section:not(.is-active) .tp-ab-subtitle {
        margin-bottom: 0px;
    }

    /* فاصله عنوان کمتر */
    .tp-ab-section:not(.is-active) .tp-ab-title {
        padding: 2px 0px 8px 80px;
        font-size: 17px; /* کمی جمع‌وجورتر */
    }

/* container آیکون */
.accordion-icon {
    width: 80px; /* بزرگتر */
    height: auto;
    position: absolute;
    top: 15px;
    left: 0px;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.tp-ab-section:not(.is-active) > div:first-child {
    padding-bottom: 0;
    filter: brightness(0.97) contrast(1) saturate(2.5);
}

/* مخفی کردن آیکون در حالت باز */
.tp-ab-section.is-active .accordion-icon {
    opacity: 0;
    pointer-events: none;
}





/* دسکتاپ */
.mobile-accordion {
    display: none;
}

/* موبایل */
@media (max-width: 800px) {
    .mobile-accordion {
        display: block;
    }
}








/* کانتینر grid */

.grid-team {
    display: grid;
    grid-template-columns: repeat(auto-fit, 150px); /* ستون‌ها ثابت */
    justify-content: center; /* وسط چین کردن کل Grid افقی */
    justify-items: center; /* وسط چین کردن آیتم‌ها داخل ستون خودشان */
    margin-top: 10px;
}


/* آیتم‌ها */
.grid-item {
    width: 140px; /* ثابت کردن عرض */
    height: auto; /* ارتفاع به محتوای داخلی بستگی دارد */
}

    /* تصویر داخل آیتم */
    .grid-item img {
        width: 100%;
        height: auto;
        display: block;
    }



@media (max-width: 1100px) {
    .grid-team {
        grid-template-columns: repeat(auto-fit, 120px); /* ستون‌ها ثابت */
    }

    .grid-item {
        width: 140px; /* عرض کارت کمتر */
    }

        .grid-item img {
            width: 80%; /* عکس کمی کوچک‌تر می‌شود با کارت */
            height: auto;
        }

    .tp-team__info {
        text-align: center;
        font-size: 5px; /* فونت متن کمی کوچکتر */
    }
}


/* مخفی کردن کامل IconProductId_All در موبایل */
@media (max-width: 990px) {
    #IconProductId_All {
        display: none !important;
    }
}


.my-style_Text {
    color: #000; /* رنگ مشکی */
    font-size: 12px; /* سایز فونت */
    text-align: center;
    padding: 20px 0px 0px 0px;
}



.my-hover-img {
    transition: filter 0.3s ease, transform 0.3s ease;
    filter: brightness(0.97) contrast(1) saturate(1.4) drop-shadow(0 10px 16px rgba(0,0,0,0.2));
}

    .my-hover-img:hover {
        transform: scale(1.1); /* بزرگ شدن هنگام هاور */
    }


.my-hover_None {
}

    .my-hover_None:hover {
        transform: scale(1); /* بزرگ شدن هنگام هاور */
    }





/* همه anchorهایی که id آنها با contactSlide شروع می‌شود */
[id^="contactSlide"] {
    display: block; /* بلاک بودن برای scrollIntoView */
    height: 0; /* ارتفاع واقعی ندارد */
    scroll-margin-top: 110px; /* ارتفاع هدر + دلخواه */
}
