.companies-page {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 20px 0;
}

.container-inner {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

.companies-header {
    text-align: center;
    margin-bottom: 30px;
}

.companies-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.companies-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.search-section {
    margin-bottom: 30px;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #2980b9;
}

.companies-content {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.filters-sidebar {
    width: 250px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: fit-content;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section h3 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 8px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.3s;
}

.filter-option:hover {
    color: #3498db;
}

.filter-option input {
    margin-right: 10px;
    cursor: pointer;
}

.filter-option span {
    font-size: 14px;
}

.view-all-link {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
    display: inline-block;
}

.view-all-link:hover {
    text-decoration: underline;
}

.companies-main {
    flex: 1;
}

.companies-results {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Removed results-header styles as no longer needed */

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.company-card {
    border: 1px solid #ecf0f1;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
    cursor: pointer;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.company-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    min-height: 80px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 8px;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.company-logo img:hover {
    transform: scale(1.05);
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    background: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.logo-placeholder:hover {
    transform: scale(1.05);
}

.company-info h3 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 600;
}

.company-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.job-count {
    color: #e74c3c;
    font-weight: 600;
    font-size: 15px;
}

.location {
    color: #7f8c8d;
    font-size: 15px;
}

/* Error and no-results styles */
.error, .no-results {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #7f8c8d;
}

.error {
    color: #e74c3c;
}

.no-results {
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .companies-content {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .companies-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .companies-content {
        flex-direction: column;
        padding: 0 10px;
    }
    
    .filters-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .companies-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .companies-grid {
        grid-template-columns: 1fr;
    }
    
    .container-inner {
        padding: 0 10px;
    }
}
