﻿
/*----Company listing Page css*/

.main {
    padding: 60px 0;
    padding-top:20px;
}
.company-listing-section {
    background: #f8f9fa;
    padding: 40px 0;
}
.company-list-item {
    height: 100%;
}
 
/* Card */
.company-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    /*box-shadow:0 6px 18px rgba(0,0,0,0.06);*/
    border: 1px solid #ebebeb;
    transition: 0.3s;
    height: 100% !important;
}

    .company-card:hover {
        transform: translateY(-6px);
    }

/* Banner */
.company-banner {
    position: relative;
}

    .company-banner img {
        width: 100%;
        height: 220px;
        object-fit: contain;
    }

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: #fff;
    font-size: 12px !important;
    padding: 2px 12px !important;
    border-radius: 20px;
}

/* Body */
.company-body {
    text-align: left;
    padding: 15px;
    margin-top: -30px;
    color: #000;
    position: relative;
    padding-top: 70px;
}

.logo-wrap {
    position: absolute;
    top: 0;
    right: 15px;
    height: 75px;
    width: 75px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 5px solid #ccc;
    background: linear-gradient(45deg, #1c95b6, #215e6a);
}

.companyTxtLogo {
    font-size: 18px;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

    .logo-wrap img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 1px solid #fff;
        object-fit: contain;
        background: #fff;
    }

.company-name {
    font-weight: 600;
    margin-top: 8px;
    color: #000;
    font-size: 18px;
    line-height: 22px;
    margin-bottom: 10px;
}


.company-category {
    font-size: 14px;
    color: #444;
    line-height: 20px;
    margin-bottom: 0 !important;
}

.company-tagline {
    font-size: 14px;
    color: #222;
    margin: 6px 0;
    color: #555;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.company-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #333;
    margin-top: 6px;
}



.company-actions a {
    border-radius: 20px !important;
    display: inline-block;
    padding: 4px 25px !important;
    margin-top: 8px;
    font-size: 12px !important;
    text-transform: capitalize !important;
}
 

    .company-stats {
        display: flex;
        justify-content: space-between;
        font-size: 12px;
        color: #555;
        margin-top: 6px;
        position: absolute;
        top: 35px;
        width: auto;
        left: 15px;
        gap: 10px;
    }

/* Buttons */
.company-actions {
    margin-top: 0px;
}

.btn-view {
    background: #17a2b8;
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    padding: 6px 14px;
}


.company-actions a:hover {
    background: #333;
    color: #fff;
}

.company-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

/* Rating Box */
.rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
}

.rating-value {
    font-weight: 700;
    color: #222;
}

.stars i {
    color: #ffc107; /* gold stars */
    font-size: 13px;
}

.rating small {
    color: #777;
    font-size: 12px;
}



.industry-filter-box {
    background: linear-gradient(to top, #f9fdff, #ffffff);
    border: 1px solid #d6eef6;
    border-radius: 14px;
    padding: 16px;
    margin-top:20px;
    position: sticky;
    top:140px;
}
.industry-list {
    height: 60vh;
    overflow:hidden;
    overflow-y: auto;
}
/* Search Box */
.industry-search {
    position: relative;
    margin-bottom: 0px;
}

    .industry-search input {
        width: 100%;
        padding: 12px 12px 12px 34px;
        border-radius: 50px;
        border: 1px solid #cfeaf3;
        background: #fff;
        font-size: 15px;
        outline: none;
        transition: 0.2s;
    }

        .industry-search input:focus {
            border-color: #1c95b6;
            background: #ffffff;
            box-shadow: 0 0 0 3px rgba(28,149,182,0.12);
        }

    .industry-search i {
        position: absolute;
        top: 20px;
        left: 12px;
        font-size: 13px;
        color: #1c95b6;
    }

/* Section Title */
.industry-title {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    margin: 5px 0 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Alphabet Letter */
.industry-letter {
    font-size: 12px;
    font-weight: 700;
    color: #7aa9b6;
    margin: 12px 0 6px;
}

/* Industry Item */
.industry-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    padding: 8px 10px;
    border-radius: 50px;
    cursor: pointer;
    color: #1a3b44;
    transition: all 0.2s ease;
    margin-bottom: 5px;
    margin-left: 15px;
}

    .industry-item i {
        color: #000;
        font-size: 15px;
        width: 18px;
    }

    /* Hover */
    .industry-item:hover {
        background: #e9f7fb;
        transform: translateX(2px);
    }

    /* Active */
    .industry-item.active {
        background: #1c95b6;
        color: #ffffff !important;
        border-radius:50px;
    }

        .industry-item.active i {
            color: #ffffff;
        }

/* No Industry */
.no-industry-found {
    text-align: center;
    padding: 18px;
    font-size: 12px;
    color: #7aa9b6;
    display: none;
}


.noCompanyFound {
    display: none;
}
.industry-letter {
    padding: 2px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    background-image: linear-gradient(to right, #d0dfe2, #08394405, transparent);
    border-radius: 50px;
    margin: 8px 6px;
}


.company-item{
    padding-top:25px;
}

.pagination-wrapper {
    display: flex;
    justify-content: flex-end;
}

.pagination {
    gap: 6px;
}

    .pagination .page-item .page-link {
        border: 1px solid #1c95b6;
        color: #1c95b6;
        padding: 6px 15px;
        font-size: 14px;
        line-height: 25px;
        border-radius: 6px;
        transition: all .25s ease;
    }

        .pagination .page-item .page-link:hover {
            background: #1c95b6;
            color: #fff;
        }

    .pagination .page-item.active .page-link {
        background: #1c95b6;
        color: #fff;
        border-color: #1c95b6;
    }

    .pagination .page-item.disabled .page-link {
        opacity: .4;
        cursor: not-allowed;
        pointer-events: none;
    }


.company-meta-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 12px; /* btn ke upar space */
    font-size: 13px;
    color: #555;
}

    .company-meta-box span {
        display: flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
    }

    .company-meta-box i {
        color: #1c95b6;
        font-size: 13px;
    }

    .company-meta-box .meta-divider {
        width: 0;
        height: 18px; /* control height */
        border-left: 1px dotted #000000;
        opacity: 1;
    }


.company-listing-header {
    padding:20px 25px;
    background: #f6fbfd;
    border-radius: 12px;
    margin-bottom: 15px;
}

.page-title {
    font-size: 25px;
    line-height:35px;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 15px;
    color: #555;
    max-width: 650px;
    line-height: 1.6;
}

/* CTA Button */
.btn-create-company {
    background: #000;
    color: #fff;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    transition: .3s ease;
}

    .btn-create-company:hover {
        background: #147a94;
        color: #fff;
    }

/* Responsive */
@media (max-width: 767px) {
    .page-title {
        font-size: 26px;
    }

    .btn-create-company {
        text-transform: capitalize;
        width: 100%;
        justify-content: center;
        padding: 8px 16px;
        background: #fff;
        color: #000;
        border: 1px solid #ccc;
    }
}
i.fas.fa-building, i.fas.fa-layer-group {
    display: inline-block;
    padding-right: 4px;
}




/* MOBILE ONLY */
@media (max-width: 991px) {
    .filter-overlay {
        display: block;
    }
}



/* Desktop par normal behaviour */
#filterSidebar {
    position: relative;
}



    /* Title */
    .filter-header h5 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        color: #1c95b6;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .filter-header h5 i {
            font-size: 12px;
        }
.filter-header, .filter-toggle {
    display: none;
}
/* ================= MOBILE ONLY ================= */
@media (max-width: 991px) {
    #filterSidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 95%;
        max-width: 345px;
        height: 100%;
        background: #fff;
        z-index: 999999;
        box-shadow: 4px 0 15px rgba(0,0,0,0.15);
        transition: all .3s ease;
        padding: 15px;
        overflow-y: auto;
    }

        #filterSidebar.active {
            left: 0;
        }
    .industry-filter-box {
        top: 31px;
    }


    /* Overlay background */
    .filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.45);
        z-index: 99999;
        opacity: 0;
        visibility: hidden;
        transition: all .3s ease;
    }

        /* Sidebar already 9999 pe hai */

        /* Active state */
        .filter-overlay.active {
            opacity: 1;
            visibility: visible;
        }

    /* Close Button */
    .close-filter {
        width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #f4f6f8;
        color: #555;
        cursor: pointer;
        transition: all .2s ease;
    }

        /* Hover / Tap */
        .close-filter:hover {
            background: #1c95b6;
            color: #fff;
        }

        /* Mobile tap feel */
        .close-filter:active {
            transform: scale(.95);
        }

    /* Filter toggle button */
    .filter-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #ffffff;
        color: #000000;
        padding: 6px 25px;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
        border: 1px solid #ccc;
        margin-left: 20px;
        margin-top: 15px;
    }

    /* Close icon */
    .close-filter {
        cursor: pointer;
        font-size: 18px;
    }

    .filter-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
        border-bottom: 1px solid #f7f7f7;
        background: #ffffff;
        position: sticky;
        top: 0;
        z-index: 2;
    }

}




.company-search-box {
    position: relative;
}

.search-wrap {
    position: relative;
}

    .search-wrap i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #1c95b6;
        font-size: 15px;
    }

    .search-wrap input {
        padding: 12px 14px 12px 42px;
        border-radius:50px;
        border: 1px solid #cfe8f0;
        font-size: 14px;
        height: auto !important;
    }

        .search-wrap input:focus {
            border-color: #1c95b6;
            box-shadow: 0 0 0 2px rgba(28,149,182,.15);
        }


.locationbox {
    font-size: 14px;
    color: #222;
    margin: 6px 0;
    color: #555;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/*8 april 2026*/
/* NEW SEARCH BAR */
.search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e6eef2;
    border-radius: 50px;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    height: 45%;
}

.search-field {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    flex: 1;
}

    .search-field i {
        color: #1c95b6;
        margin-right: 8px;
        font-size: 14px;
    }

    .search-field input {
        border: none;
        outline: none;
        font-size: 14px;
        width: 100%;
        background: transparent;
        margin-top: 18px;
    }

.divider {
    width: 1px;
    height: 24px;
    background: #e6eef2;
}

.search-field.location {
    max-width: 180px;
}

/* FILTER BUTTON */
.filter-trigger {
    background: #1c95b6;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
}

/* MODAL */
.filter-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 95%;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    z-index: 9999;
    opacity: 1;
    display: none;
    transition: 0.25s ease;
}

    .filter-modal.active {
        opacity: 1;
        display: block;
        transform: translate(-50%, -50%) scale(1);
    }

.filter-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 1;
    display:none;
    visibility: hidden;
    transition: 0.3s;
    z-index: 9998;
}

    .filter-modal-overlay.active {
        opacity: 1;
        display:block;
        visibility: visible;
    }

.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #ccc;
}

.filter-modal-body {
    padding: 18px 18px 10px;
}

.filter-group {
    margin-bottom: 22px;
}

    .filter-group label {
        font-size: 13px;
        color: #444;
        margin-bottom: 10px;
        display: block;
    }

.chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 14px;
    border-radius: 30px;
    background: #f4f8fa;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    line-height: 1;
}

    .chip.active {
        background: #1c95b6;
        color: #fff !important;
        border-color: #1c95b6;
        box-shadow: 0 2px 6px rgba(28,149,182,0.3);
    }

.filter-modal-footer {
    display: flex;
    gap: 10px;
    padding: 14px 18px 18px;
    border-top: 1px solid #eee;
}

.apply-btn {
    flex: 1;
    background: #1c95b6;
    color: #fff;
    border: none;
    border-radius: 10px;
}

.reset-btn {
    flex: 1;
    background: #f3f4f6;
    border: none;
    border-radius: 10px;
}

.filter-modal-header span {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    border-radius: 50%;
    background: #f4f6f8;
    color: #444;
    cursor: pointer;
    transition: all 0.2s ease;
    /* makes it visible */
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

    .filter-modal-header span:hover {
        background: #1c95b6;
        color: #fff;
        box-shadow: 0 6px 14px rgba(28,149,182,0.3);
    }

    .filter-modal-header span:active {
        transform: scale(0.92);
    }

.suggestion-box {
    position: absolute;
    top: 60%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-top: 6px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 999;
    display: none;
    border: 1px solid #eee;
}

.suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
}

    .suggestion-item:hover {
        background: #f7f9fc;
    }

.suggestion-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.suggestion-meta {
    font-size: 12px;
    color: #777;
}
.comp-location{
    width: 100%;
}