/* COMMENT: Front CSS - Companies listing page card redesign to match screenshot - Created: 2026-04-06 */

/* ===== Browse Companies Page ===== */

/* COMMENT: Page title - Updated: 2026-04-06 */
.browse-companies-page .browse-title {
    font-size: 3.375rem;
    font-family: "Nearo-SemBd";
    color: #00657d;
    line-height: 1.1;
    text-align: center;
    margin-bottom: 5px;
}

/* COMMENT: Available companies count */
.browse-companies-page .company-count-text {
    font-size: 15px;
    color: #555;
    margin-bottom: 20px;
    font-weight: 500;
}

/* COMMENT: 3-column card grid */
.browse-companies-page .companies-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* COMMENT: Individual company card - light border, no hover effect - Updated: 2026-04-06 */
.browse-companies-page .company-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

/* COMMENT: Card banner/cover image at top */
.browse-companies-page .company-card-banner {
    width: 100%;
    height: 140px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #2a9d8f, #0e7490);
}

.browse-companies-page .company-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* COMMENT: Card body below banner - padding increased by 15px - Updated: 2026-04-06 */
.browse-companies-page .company-card-body {
    padding: 15px 18px 33px;
    position: relative;
}

/* COMMENT: Header row - Left (logo+name) | Right (follow+website) - Updated: 2026-04-06 */
.browse-companies-page .company-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 24px;
}

/* COMMENT: Left side - logo on top, company name centered below - Updated: 2026-04-06 */
.browse-companies-page .company-card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* COMMENT: Company logo - overlapping banner, border same as card - Updated: 2026-04-06 */
.browse-companies-page .company-card-logo {
    width: 75px;
    height: 75px;
    min-width: 75px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.browse-companies-page .company-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* COMMENT: Company name below logo */
.browse-companies-page .company-card-name {
    font-family: "Helvetica-Neue-l";
    font-size: 15px;
    font-weight: bold;
    color: #222;
    margin: 8px 0 0 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}

/* COMMENT: Right side - follow button on top, visit website below */
.browse-companies-page .company-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

/* COMMENT: Follow button - teal style matching screenshot - Updated: 2026-04-06 */
.browse-companies-page .company-follow-btn {
    display: inline-block;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 500;
    font-family: "Helvetica-Neue-m";
    color: #fff;
    background: #42A0AE;
    border: 1.5px solid #42A0AE;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.browse-companies-page .company-follow-btn:hover {
    color: #000;
    background: #f7cd61;
    border-color: #f7cd61;
    text-decoration: none;
}

.browse-companies-page .company-follow-btn.unfollowing {
    background: transparent;
    color: #42a0ae;
}

.browse-companies-page .company-follow-btn.unfollowing:hover {
    background: #42a0ae;
    color: #fff;
}

/* COMMENT: Visit website link - red color matching screenshot - Updated: 2026-04-06 */
.browse-companies-page .company-visit-link {
    font-size: 12px;
    color: #c24042;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.browse-companies-page .company-visit-link:hover {
    color: #a03335;
    text-decoration: underline;
}

.browse-companies-page .company-visit-link i {
    font-size: 10px;
}

/* COMMENT: Industry/Job Category text - Updated: 2026-04-06 */
.browse-companies-page .company-card-industry {
    color: #404040;
    font-size: 13px;
    margin: 0 0 3px;
    font-family: "Helvetica-Neue-r";
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* COMMENT: JobLeads text - Updated: 2026-04-06 */
.browse-companies-page .company-card-jobleads {
    font-size: 17px;
    font-family: "Helvetica-Neue-m";
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

/* COMMENT: Location with pin icon */
.browse-companies-page .company-card-location {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 14px;
}

.browse-companies-page .company-card-location i {
    color: #42a0ae;
    font-size: 13px;
}

/* COMMENT: View Jobs button - teal rounded rectangle matching screenshot - Updated: 2026-04-06 */
.browse-companies-page .company-view-jobs-btn {
    display: inline-block;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 500;
    font-family: "Helvetica-Neue-m";
    color: #fff;
    background: #42A0AE;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1.5px solid #42A0AE;
}

.browse-companies-page .company-view-jobs-btn:hover {
    color: #000;
    background: #f7cd61;
    border-color: #f7cd61;
    text-decoration: none;
}

/* ===== Responsive ===== */

/* COMMENT: Tablet - 2 columns */
@media (max-width: 991px) {
    .browse-companies-page .companies-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* COMMENT: Mobile - 1 column */
@media (max-width: 575px) {
    .browse-companies-page .companies-card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .browse-companies-page .browse-title {
        font-size: 28px;
    }

    .browse-companies-page .company-card-banner {
        height: 120px;
    }

    .browse-companies-page .company-card-name {
        max-width: 100px;
    }
}

/* COMMENT: Pagination - centered, bordered boxes matching screenshot - Added: 2026-04-06 */
.company-pagination {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
}

.company-pagination .pagination {
    display: inline-flex;
    justify-content: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.company-pagination .pagination li {
    margin: 0;
}

.company-pagination .pagination li a,
.company-pagination .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    font-size: 14px;
    font-family: "Helvetica-Neue-r";
    color: #333;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.company-pagination .pagination li a:hover {
    border-color: #42A0AE;
    color: #42A0AE;
    text-decoration: none;
}

/* COMMENT: Active page - teal border */
.company-pagination .pagination li.active span {
    border-color: #42A0AE;
    color: #42A0AE;
    font-weight: 600;
    background: #fff;
}

/* COMMENT: Disabled prev/next arrows */
.company-pagination .pagination li.disabled span {
    color: #ccc;
    border-color: #e0e0e0;
    cursor: default;
}

/* COMMENT: Dots/ellipsis */
.company-pagination .pagination li.disabled span[aria-disabled="true"]:not(:first-child):not(:last-child) {
    border: none;
    background: transparent;
    min-width: auto;
    padding: 0 4px;
}

/* COMMENT: No results state */
.browse-companies-page .no-companies-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: #888;
}

.browse-companies-page .no-companies-found i {
    font-size: 50px;
    color: #ccc;
    margin-bottom: 15px;
    display: block;
}
