@font-face {
    font-family: "vazir";
    src: url(../Fonts/Vazir.eot),
    url(../Fonts/Vazir.ttf),
    url(../Fonts/Vazir.woff),
    url(../Fonts/Vazir.woff2);
  }
  
  @font-face {
    font-family: "shabnam";
    src: url(../Fonts/Shabnam-Bold.eot),
    url(../Fonts/Shabnam-Bold.ttf),
    url(../Fonts/Shabnam-Bold.woff),
    url(../Fonts/Shabnam-Bold.woff2);
  }
  @font-face {
    font-family: "modam";
    font-weight: bold;
    src: url(../Fonts/Modam-Medium.eot),
    url(../Fonts/Modam-Medium.svg),
    url(../Fonts/Modam-Medium.ttf),
    url(../Fonts/Modam-Medium.woff),
    url(../Fonts/Modam-Medium.woff);
  }
  @font-face {
    font-family: "b_modam";
    font-weight: bold;
    src: url(../Fonts/Modam-ExtraBold.eot),
    url(../Fonts/Modam-ExtraBold.svg),
    url(../Fonts/Modam-ExtraBold.ttf),
    url(../Fonts/Modam-ExtraBold.woff),
    url(../Fonts/Modam-ExtraBold.woff2);
  }
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #C0C0C0;
    overflow-x: hidden;
}

/* menu */
.navbar_res{
    display: none;
}
.offcanvas{
    background-color: #1F4E5F !important;
}
.ul_navbar{
    text-align: center !important;
}
.nav-link{
    color: white !important;
    font-family: "shabnam";
}
.nav-item{
    background-color: #265e72;
    margin-bottom: 1% !important;
    border-radius: 5px;
}
.ul_res_prod li a{
    color: white;
    font-family: "vazir";
    text-decoration: none;

}
.ul_res_prod li{
    list-style: none;
    padding-bottom: 5% !important;
    
}
.page_main{
    margin-top: -10% !important;
    margin-bottom: 5% !important;
}
.page_main a{
    font-family: "b_modam" !important;
}
.ul_res_prod{
    margin: 0 !important;
    padding: 0 !important;
}
.ul_res_prod_h6{
    color: #ff8c00;
    margin-top: -5%;
    font-family: "shabnam";
}
.ul_res_prod hr{
    color: white;
    margin-bottom: 8%;
    margin-bottom: 8%;
}
.dropdown_res{
    display: none;
}
.dropdown_res_services{
    display: none;
}
header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1F4E5F;
    padding: 15px 20px;
    width: auto;
    margin-bottom: 1%;
    z-index: 100;
}
.logo {
    margin-right: auto;
    order: 2; /* قرار دادن لوگو در سمت راست */
}

.logo img {
    height: 70px;
    width: 70px;
    border-radius: 50%;
}
.nav-menu {
    list-style-type: none;
    display: flex;
    justify-content: flex-end; /* منو به سمت چپ */
    margin: 0;
    padding: 0;
    gap: 15px;
    order: 1; /* قرار دادن منو در سمت چپ */
}

.nav-menu li {
    position: relative;
    margin-left: 15px;
    list-style: none;

}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.9vh;
    padding: 10px;
    display: block;
    transition: 0.2s;
}
.item_nav{
    font-family: "shabnam";
}
.item_nav:hover{
    transform: scale(1.1);
    transition: 0.2s;
}
.nav-menu li a:hover {
    color: #5BA4C2;
}
.dropdown-parent:hover .dropdown_desktop {
    display: grid; /* نمایش دراپ‌داون فقط هنگام هاور روی والد */
    opacity: 1; /* نمایش با شفافیت کامل */
    transform: translateY(0); /* انتقال به حالت اولیه */
    pointer-events: auto; /* فعال‌سازی کلیک در حالت نمایش */
}

.dropdown_desktop {
    display: grid;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #265e72;
    padding: 1rem;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    width: 850px;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    z-index: 1000;
    opacity: 0; /* مخفی کردن با شفافیت */
    transform: translateY(-10px); /* انتقال مختصر به بالا */
    transition: opacity 0.3s ease, transform 0.3s ease; /* انیمیشن نرم */
    pointer-events: none; /* جلوگیری از کلیک در حالت مخفی */
    border-radius: 20px;
}

.dropdown-column {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.dropdown-column a {
    color: #fff;
    padding: 5px 0;
    text-decoration: none;
}

.dropdown-column a:hover {
    color: #aaa;
}
.dropdown-group {
    width: 180px;
}

.dropdown-group h3 {
    font-size: 16px;
    font-family: "b_modam";
    color: #ff8c00;
    margin-bottom: 10px;
}

.dropdown-group a {
    color: #333;
    font-family: "vazir";
    font-size: 14px;
    padding: 5px 0;
    display: block;
}
/* menu */

/* slider */
.slider-container {
    position: relative;
    width: 95%; /* 90% عرض صفحه */
    max-width: 90%;
    height: 500px;
    margin: 10px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slide {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    transition: left 0.5s ease; /* انیمیشن برای جابه‌جایی */
}

.slide.active {
    left: 0;
}

.slide.next {
    left: 100%; /* اسلاید بعدی به سمت راست حرکت می‌کند */
}

.slide.prev {
    left: -100%; /* اسلاید قبلی به سمت چپ حرکت می‌کند */
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 8px;
    width: 60%;
}

.text-overlay h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-family: "shabnam";
}

.text-overlay p {
    font-size: 1.1em;
    margin-bottom: 3%;
    font-family: "vazir";
}

.com_name{
    font-family: "shabnam" !important;
    margin-top: 5%;
    color: black !important;
    padding: 2% 2% 2% 2%;
    font-size: 1.3rem !important;
}
.com_div{
    background-color: #A8A9AD;
    border-radius: 10px;
}
.text-overlay a  {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #a91313;
    color: white;
    border: 1px white solid;
    cursor: pointer;
    border-radius: 5px;
    text-decoration: none;
    font-family: "modam";
    transition: 0.2s ease-in-out;
}

.text-overlay a:hover {
    background-color: rgb(130, 10, 10);
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.prev-btn svg, .next-btn svg {
    fill: white;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.slide img{
    width: 100%;
    height: 100%;
}
/* slider */

/* about us */
.div_container_about{
margin-top: 2%;
}
.img-aboutus{
    border-radius: 10px;
    width:600px;
    height: 400px;
    border: 2px solid black;
}
.h2_aboutus{
    margin: 0;
    font-family: "b_modam";
    font-size: 1.5rem;
}
.p_aboutus{
    text-align: justify;
    margin-right: 1%;
    font-family: "vazir";
    font-size: 2.2vh;
}
.name_manager{
    font-family: "shabnam";
}
.name_manager span{
    font-family: "modam" !important;
    font-weight: bold;
    font-size: 1.8rem;
    color: #1F4E5F;
}
.number_of_manager{
    font-family: "shabnam";
}
.number_of_manager span a{
    font-family: "b_modam" !important;
    font-size: 1.8rem;
    color: #1F4E5F;
    text-decoration: none !important;
    border-bottom: 2px solid black;
}
.more_aboutus{
padding: 10px 20px;
font-size: 1em;
background-color: rgb(169, 19, 19);
color: white;
border: 1px white solid;
cursor: pointer;
border-radius: 5px;
text-decoration: none;
font-family: "modam";
transition: 0.2s ease-in-out;
margin-top: 5% !important;
margin-bottom: 5% !important;

}
.more_aboutus:hover{
    background-color: rgb(130, 10, 10);
    
}
.h2_aboutus_div{
    background-color: #1F4E5F;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 8%;
}

/* about us */

/* services */
/* استایل کانتینر اصلی خدمات */
.container_services {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1rem;
    background-color: #909194;
    margin-top: 3%;
}

/* استایل عنوان خدمات */
.h2_container_services_div {
    background-color: #1F4E5F;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    width: fit-content;
}

.h2_container_services_div h2 {
    margin: 0;
    font-family: "b_modam";
    font-size: 1.5rem;
}

/* توضیحات خدمات */
.about_ser {
    font-family: "vazir";
    font-size: 1rem;
    text-align: center;
    color: #333;
    max-width: 90%;
    margin: 1rem auto;
}

/* کانتینر کارت‌ها */
#services-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}

/* کارت‌ها */
.card_ser {
    background-color: #A8A9AD;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 calc(25% - 1rem); /* چهار کارت در ردیف در سایز دسکتاپ */
    max-width: 100%;
}

/* افکت هاور روی کارت */
.card_ser:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* تصویر کارت */
.card-img-top {
    object-fit: contain;
    width: 100%;
    height: 200px;
}

/* متن و عنوان کارت */
.card-title {
    font-family: "shabnam";
    font-size: 1.2rem;
    margin: 1rem 0;
    color: #1C1C1C;
    text-align: center;
}

.card-text {
    font-family: "vazir";
    font-size: 0.9rem;
    text-align: justify;
    color: #333;
    margin: 0 1rem 1rem 1rem;
}

/* دکمه کارت */
.btn_ser {
    display: block;
    margin: 1rem auto;
    width: 90%;
    background-color: rgb(169, 19, 19);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    text-align: center;
    border-radius: 5px;
    font-family: "modam";
    transition: 0.2s ease-in-out;
    text-decoration: none;
}

.btn_ser:hover {
    background-color: rgb(130, 10, 10);
    box-shadow: 2px 3px 10px black;

}

/* دکمه خدمات بیشتر */
.more_btn_ser {
    display: block;
    margin: 2rem auto;
    width: 20%;
    padding: 1%;
    font-family: 'shabnam';
    text-align: center;
    background-color: rgb(169, 19, 19);
    color: white;
    text-decoration: none;
    border: 1px solid white;
    border-radius: 5px;
    transition:  0.2s ease-in-out;
}

.more_btn_ser:hover {
    background-color: rgb(147, 2, 7);
    transform: scale(1.1);

}
.ul_ser{
    margin-right: 2%;
    list-style: decimal;
    font-family: "vazir";
}
/* services */

/* products */
.div_container_products {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1rem;
}

/* استایل عنوان */
.div_h2_products {
    background-color: #1F4E5F;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-align: center;
}

.div_h2_products h2 {
    margin: 0;
    font-family: "b_modam";
    font-size: 1.5rem;
}

/* توضیحات محصولات */
.about_products {
    font-family: "vazir";
    font-size: 1rem;
    text-align: center;
    color: #333;
}

/* کانتینر کارت‌ها */
.cards_products {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}

/* کارت‌ها */
.card_products {
    background-color: #A8A9AD;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 calc(30% - 1rem); /* چهار کارت در ردیف در سایز دسکتاپ */
    max-width: 100%;
}

/* افکت هاور روی کارت */
.card_products:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* تصویر کارت */
.img_card {
    object-fit: contain;
    width: 100%;
    height: 200px;

    mix-blend-mode: multiply;
}

/* متن و عنوان کارت */
.title_card {
    font-family: "modam";
    font-size: 1.2rem;
    margin: 1rem 0;
    color: #1C1C1C;
    text-align: center;
}

.about_card {
    font-family: "vazir";
    font-size: 0.9rem;
    text-align: justify;
    color: #333;
    margin: 0 1rem 1rem 1rem;
}

/* ویژگی‌های محصول */
.ul_card_products {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ul_card_products li {
    background-color: #A8A9AD;
    border-bottom: 1px solid gray;
    padding: 0.5rem;
    text-align: center;
    font-family: "vazir";
    font-size: 0.9rem;
    color: whitesmoke;
}

/* دکمه کارت */
.btn_card button {
    background-color: rgb(169, 19, 19);
    color: white;
    border: none;
    border-radius: 5px;
    width: 90%;
    height: 50px;
    margin-right: 5%;
    cursor: pointer;
    font-family: "modam";
    transition:  0.3s ease;
}

.btn_card button:hover {
    background-color: rgb(130, 10, 10);
    box-shadow: 2px 3px 10px black;
}
/* products */
/* error */
#error_message_pro , #error_message_ser {
    margin-top: 2%;
font-family: "shabnam";
text-align: center;
  color: #721c24;
  background-color: #f8d7da;
  padding: 10px;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  margin-bottom: 20px;
  display: none;
}
/* footer */
.footer {
    background-color: #1F4E5F;
    color: white;
    padding: 20px 0;
    font-family: "Tahoma", sans-serif;
    text-align: right;
    position: relative;
    overflow: hidden;
    margin-top: 1%;
}

/* کانتینر اصلی */
.container_footer {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

/* بخش‌های فوتر */
.footer-section {
    flex: 1;
    min-width: 250px;
    
}
.footer-section h5{
    color: #ff8c00;
    font-family: "b_modam";
}
/* استایل لوگو */
.footer-logo {
    width: 120px;
    margin-bottom: 15px;
    border-radius: 50%;
}
.about p{
    font-family: "vazir";
    text-align: justify;
}
/* استایل عناوین */
.footer-section h3 {
    border-bottom: 2px solid white;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 18px;
    font-family: "shabnam";
}

/* استایل لیست‌ها */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
    font-size: 16px;
}
.iframe_location{
  width: 300px;
  height: 300px;
  margin-top: 3%;
  margin-bottom: 5%;
  border-radius: 10px;
}
.more_location{
background-color: #a15900;
padding: 3% 6% 3% 6%;
border-radius: 5px;
transition: none;
}

/* بخش تماس */
.contact p {
    line-height: 1.8;
}

/* استایل بخش پایینی */
.copyright {
    background-color: #265e72;
    text-align: center;
    font-size: 2.2vh;
    padding-top: 10px;
    padding-bottom: 10px;
    color: white;
    font-family: "modam";
}

/* جلوه‌های انیمیشن در هاور */
.footer-section h3 a:hover {
   color: rgb(196, 196, 196) !important ;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-section ul li:hover {
    color: #ffcc80;
    transition: color 0.3s ease;
}
.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: "vazir";
}

.footer-section a:hover {
    color: rgb(196, 196, 196) !important ;
}
.num_phone{
    font-size: 1.8vh !important;
    font-family: "vazir";
}
.p_address{
    font-family: "vazir" !important; 
}
/* footer */
/* error */

/* از 1219 پیکسل به پایین */
@media screen and (max-width: 1219px) {
    .container_footer {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-section {
        flex: 1 1 45%; /* تقسیم شدن به دو ستون */
        text-align: center;
        margin-bottom: 20px;
    }
    .about p{
        margin-right: 10% !important;
        width: 90% !important;
    }
    .vr{
        display: none;
    }
}
@media screen and (max-width: 1149px) {
    .nav-menu{
        display: none;
    }
    .navbar_res{
        display: flex;
        background-color: #1F4E5F !important;
        width: 30%;
        position: relative;
        }
        .navbar_icon{
            color: #1F4E5F !important;
            background-color: #265e72 !important;

        }
        .about p{
            margin-right: 10% !important;
            width: 90% !important;
        }
}
@media screen and (max-width: 992px){
    .img-aboutus{
        margin-top: 3%;
    }
    .container_footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 15px;
    }

    .footer-logo {
        width: 100px;
        height: auto;
    }
    .about p{
        margin-right: 5% !important;
        width: 90% !important;
    }
}
/* تنظیمات ریسپانسیو برای تبلت */
@media screen and (max-width: 768px) {
    .card_products {
        flex: 1 1 calc(50% - 1rem); /* دو کارت در هر ردیف در تبلت */
    }
    .card_ser {
        flex: 1 1 calc(50% - 1rem); /* دو کارت در هر ردیف در تبلت */
    }
    .container {
        flex-direction: column;
        gap: 10px;
    }

    .footer-section {
        margin-bottom: 10px;
    }

    .footer-logo {
        width: 90px;
    }

    .footer-section h3 a {
        font-size: 15px;
    }

    .footer-section ul li a,
    .p_address,
    .num_phone,
    a[href^="mailto"] {
        font-size: 13px;
    }
    .about p{
        margin-right: 5% !important;
        width: 90% !important;
    }
    .img-aboutus{
        width:400px;
        height: 300px;
    }
    .col_about , .col_img{
        flex: 0 0 100%; /* هر ستون عرض ۱۰۰ درصد می‌گیرد */
        max-width: 100%;
    }
    .clock-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }
    .time, .date, .welcome {
        margin: 5px 0;
        text-align: center;
        width: 100%;
}

@media screen and (max-width: 576px) {
    .card_products {
        flex: 1 1 100%; /* یک کارت در هر ردیف در موبایل */
    }
    .card_ser {
        flex: 1 1 100%; /* دو کارت در هر ردیف در تبلت */
    }
    .footer-section {
        margin-bottom: 10px;
    }

    .footer-logo {
        width: 80px;
    }

    .footer-section ul li a,
    .p_address,
    .num_phone,
    a[href^="mailto"] {
        font-size: 12px;
    }
    .about p{
        margin-right: 5% !important;
        width: 90% !important;
    }
    .more_btn_ser{
        width: 70% !important;
    }
    .text-overlay{
        width: 75%;
    }
    .com_name{
        margin-top: 10%;
    }
    .text-overlay p{
        margin-bottom: 10%;
    }
    .modalannouncement-content{
        width: 80% !important;
    }
}

@media screen and (max-width: 480px) {
    .footer {
        padding: 15px 10px;
    }

    .footer-section p {
        font-size: 14px;
        line-height: 1.6;
    }

    .footer-section ul li {
        font-size: 14px;
    }
    .about p{
        margin-right: 5% !important;
        width: 90% !important;
    }
    .img-aboutus{
        width: 300px;
        height: 200px;
    }
    .prev-btn, .next-btn{
        top: 93%;
    }
    .text-overlay{
        width: 98%;
    }
}

@media screen and (max-width: 350px) {
    .container_footer {
        padding: 10px;
    }

    .footer-section {
        margin-bottom: 10px;
    }

    .footer-logo {
        width: 70px;
    }

    .footer-section h3 a {
        font-size: 13px;
    }

    .footer-section ul li a,
    .p_address,
    .num_phone,
    a[href^="mailto"] {
        font-size: 11px;
    }
    .about p{
        margin-right: 10% !important;
        width: 90% !important;
    }
    .img-aboutus{
        width: 250px;
        height: 150px;
        margin-top: 4%;
    }
}
}
/* date and time */
.ticker-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 1%;
    margin-bottom: 0.5%;
  }
  .ticker {
    position: relative;
    white-space: nowrap;
    font-size: 24px;
    direction: rtl; /* جهت متن فارسی */
    padding-left: 20px; /* فاصله برای جلوگیری از بریده شدن */
  }
  .ticker p{
    font-family: "b_modam";
  }
  .ticker p span{
    color: #a91313;
  }
  /* مدال */
  .modal_announcement {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* لایه شفاف روی پس‌زمینه */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(0); /* بلور پیش‌فرض */
    transition: backdrop-filter 0.3s ease; /* انیمیشن بلور */
  }

  .modal_announcement.show {
    display: flex; /* نمایش مدال */
    backdrop-filter: blur(5px); /* اعمال بلور */
  }

  /* محتوای مدال */
  .modalannouncement-content {
    background: #1F4E5F;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 500px;
    animation: fadeIn 0.5s ease; /* انیمیشن نمایش */
    box-shadow: 0 10px 30px rgb(41, 41, 41);
  }

  .modalannouncement-content h2 {
    margin: 0 0 10px;
    font-size: 20px;
    color: white;
    font-family: "b_modam";
  }

  .modalannouncement-content p {
    margin: 0 0 20px;
    color: white;
    font-family: "vazir";
  }

  .modalannouncement-content button,
  .modalannouncement-content a {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    margin: 5px;
    font-family: "shabnam";
    width: 90% !important;
  }

  .modalannouncement-content button {
    background-color: #007bff;
  }

  .modalannouncement-content a {
    background-color: #28a745;
  }

  /* انیمیشن نمایش مدال */
  @keyframes fadeIn {
    from {
      transform: scale(0.8);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
  }

  .txt{
    font-family: "shabnam";
    font-size: 30px;
    text-align: center;
    margin-top: 1%;
  }