﻿

.company-card {
    transition: all 0.3s ease;
    background: #fff;
    border: 1px solid #e9ecef;

}

    .company-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }

.company-logo1 {
    width:200px;
    max-height: 150px;
    object-fit: contain;
    border-radius: 20px;
}

.search-box input {
    border-radius: 50px;
}

.search-box i {
    pointer-events: none;
}


input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: inherit !important;
}


.modern-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 30px;
    padding: 10px 40px 10px 20px;
    font-size: 1rem;
    color: #333;
    width: 100%;
    max-width: 300px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23013f6e' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 16px;
    cursor: pointer;
}

.search-company {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    width: 300px;
}

@media (max-width: 425px) {
    .search-company {
        width: 250px;
    }
}

/* حذف بوردر آبی هنگام کلیک */
.modern-select:focus, .search-company:focus {
    outline: none !important;
    border-color: #013f6e !important;
    box-shadow: none !important;
}


.modern-select:hover {
    border-color: #013f6e;
}

/* برای ظاهری تمیز در فرم */
.select-wrapper {
    display: flex;
    gap: 0.5rem;
}

.label-drop {
    color: #013f6e;
    font-weight: 600;
}


.detail-compa {
    padding: 4px 8px 4px 8px;
    border: 1px solid #013f6e;
    font-size: 14px;
    border-radius: 20px;
    color: #013f6e;
}

    .detail-compa:hover {
        background-color: #013f6e;
        color: #fff;
    }




/*pagination*/


.pagination-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* دکمه‌ها */
.page-btn {
    border: 1px solid #013f6e;
    color: #013f6e;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

    /* افکت هاور */
    .page-btn:hover {
        background-color: #013f6e;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    /* صفحه فعال */
    .page-btn.active {
        background-color: #013f6e;
        color: #fff;
        pointer-events: none;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    }












/*detail company*/

.company-container {
    background-color: #fff;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

/* هدر شرکت */

.company-header .container {
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    position: relative;
    background: linear-gradient(135deg, #013f6e, #025a9c);
    color: #fff;
    padding: 40px 15px;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.company-detail-logo {
    width: 200px;
    height: 150px;
    border-radius: 20px;
    background-color: #fff;
    transition: transform 0.3s;
    overflow: hidden;
}

    .company-detail-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 20px;
        transition: transform 0.3s;
    }

    .company-detail-logo:hover img {
        transform: scale(1.1);
    }

.company-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.company-title p {
    font-size: 1rem;
    opacity: 0.8;
}

/* کارت‌های اطلاعات کلیدی */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 30px;
    margin-top: -40px;
    z-index: 1;
    position: relative;
}

.info-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

    .info-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }

    .info-card i {
        font-size: 2rem;
        margin-bottom: 12px;
        color: #013f6e;
        transition: all 0.3s;
    }

    .info-card:hover i {
        color: #025a9c;
    }

    .info-card h6 {
        font-weight: 600;
        margin-bottom: 5px;
        font-size: 1rem;
    }

    .info-card p {
        margin: 0;
        color: #495057;
        font-size: 0.9rem;
    }

/* کارت افقی برای آدرس و وبسایت */
.contact-card {
    background-color: #e6f0fa;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow-x: auto;
    white-space: normal;
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    margin: 20px 0;
    gap: 15px;
}

    .contact-card .contact-icon {
        font-size: 1.8rem;
        color: #013f6e;
        flex-shrink: 0;
        margin-top: 4px;
    }

    .contact-card .contact-text p {
        margin: 0;
        color: #495057;
        line-height: 1.5;
        word-break: break-word;
    }

    .contact-card .contact-text a {
        color: #013f6e;
        text-decoration: none;
    }

        .contact-card .contact-text a:hover {
            text-decoration: underline;
        }

    .contact-card::-webkit-scrollbar {
        height: 6px;
    }

    .contact-card::-webkit-scrollbar-thumb {
        background: #013f6e;
        border-radius: 3px;
    }

    .contact-card::-webkit-scrollbar-track {
        background: #e0e7ef;
        border-radius: 3px;
    }

/* درباره شرکت */
.about-company {
    padding: 20px;
    background: #f1f5f9;
    border-left: 5px solid #013f6e;
    margin: 24px 0;
    border-radius: 15px;
}

    .about-company h5 {
        font-weight: 700;
        color: #013f6e;
        margin-bottom: 15px;
    }

    .about-company p {
        color: #495057;
        line-height: 1.6;
    }

/* شبکه‌های اجتماعی */
.social-icons a {
    display: inline-block;
    margin-left: 10px;
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 50%;
    color: #013f6e;
    border: 1px solid #013f6e;
    transition: all 0.3s;
}

    .social-icons a:hover {
        background: #013f6e;
        color: #fff;
        transform: scale(1.2);
    }

/* محصولات */
.products-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.product-card {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }

    .product-card img {
        width: 100%;
        height: 140px;
        object-fit: cover;
        border-radius: 12px;
        margin-bottom: 10px;
        cursor: pointer;
    }

    .product-card h6 {
        margin: 0;
        color: #013f6e;
        font-weight: 600;
        font-size: 0.95rem;
    }

.website-link {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 30px;
    border: 1px solid #013f6e;
    color: #013f6e;
    text-decoration: none;
    transition: all 0.3s;
    margin: 30px 0;
    font-weight: 500;
}

    .website-link:hover {
        background: #013f6e;
        color: #fff;
        transform: translateY(-3px);
    }

@media (max-width: 768px) {
    .company-header {
        justify-content: center;
    }

    .info-cards {
        grid-template-columns: 1fr 1fr;
    }

    .contact-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .company-title h2{
        font-size:22px;

    }
    .company-title p {
        font-size: 14px;
    }
}

@media (max-width: 500px) {
    .info-cards{
        gap:10px;
        
    }
    .info-card {
        padding: 20px 10px;
    }
    .info-cards h6{
        font-size:14px;
    }
    .info-card p{
        font-size:12px;
    }
    .info-card i{
        font-size: 16px;
    }
    .company-header .container {
        padding: 20px 15px;
        gap: 20px;
    }
    .info-cards {
        padding: 30px 0px 0px 0px;
    }
    .about-company, .contact-card{
        padding:15px;
    }
    .contact-text{
        font-size:14px;
    }
    .contact-card .contact-icon{
        font-size: 20px;
    }
    .contact-card{
        gap:5px;
    }
    .about-company h5 , .company-info h5{
        font-size: 16px;
    }
    .about-company p {
        font-size: 14px;
    }
    .product-card h6{
        font-size:14px;
    }
    .products-gallery{
        padding-top: 16px;
        gap:16px;
    }
    .product-card img{
        height:180px;
    }
    .companies-page h2{
        font-size: 22px;
    }
}


#modalImage {
    width: 100%;
    height: 80vh; /* ارتفاع ثابت متناسب با صفحه */
    object-fit: contain; /* بدون کشیدگی، کامل نمایش داده می‌شود */
    background: #000; /* پس‌زمینه مشکی تا عکس بهتر دیده شود */
}