.company-profile {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    font-family: 'Arial', sans-serif;
}

.company-header {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.company-header img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

.company-header h1 {
    margin: 0;
    font-size: 28px;
}

.company-body {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 20px;
}

.company-info p {
    margin: 5px 0;
    font-size: 15px;
    color: #444;
}

.company-social ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 15px;
}

.company-social ul li a {
    text-decoration: none;
    color: #0073aa;
    font-weight: bold;
}

.company-description {
    line-height: 1.6;
    color: #333;
}

.company-jobs {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.company-jobs h2 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #333;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 5px;
}

.company-jobs-list {
    list-style: none;
    padding-left: 0;
}

.company-jobs-list li {
    padding: 12px 10px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background 0.2s ease;
}

.company-jobs-list li:hover {
    background: #f0f8ff;
}

.company-jobs-list li a {
    font-weight: 600;
    text-decoration: none;
    color: #0073aa;
}

.company-jobs-list li a:hover {
    text-decoration: underline;
    color: #005177;
}

.company-jobs-list .job-date {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}
.company-header p {
    margin: 7px 0;
}
.company-header h1 {
    margin: 0;
    padding: 0;
    font-size: 24px; /* au ukubwa unaotaka */
}


.company-jobs {
    margin-top: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.company-jobs h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #333;
    border-left: 4px solid #0073aa;
    padding-left: 10px;
}

.job-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.job-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 15px;
    transition: box-shadow 0.2s ease-in-out;
}

.job-item:hover {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.job-item a {
    font-size: 18px;
    font-weight: 600;
    color: #0073aa;
    text-decoration: none;
}

.job-item a:hover {
    text-decoration: underline;
}

.job-meta {
    font-size: 14px;
    color: #555;
    margin-top: 8px;
    display: block;
}

.job-location {
    color: #444;
}

.job-type {
    background-color: #0073aa;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 10px;
}
/* Existing styles (already added before) ... */
/* ... */ 

/* Mobile Responsive Fix */
@media (max-width: 768px) {
    .company-jobs {
        padding: 15px;
    }

    .job-item {
        padding: 15px;
        font-size: 14px;
    }

    .job-item a {
        font-size: 16px;
    }

    .job-meta {
        font-size: 13px;
        line-height: 1.4;
    }

    .job-type {
        display: inline-block;
        margin-top: 8px;
        margin-left: 0;
    }
}

.company-list-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 15px;
}

.company-item {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.company-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Thumbnail Section */
.company-thumbnail {
    flex-shrink: 0;
    margin-right: 20px;
    width: 80px;
    height: 80px;
}

.company-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Details Section */
.company-details {
    flex: 1;
}

.company-details h3 {
    margin: 0 0 5px;
    font-size: 18px;
}

.company-details h3 a {
    text-decoration: none;
    color: #333;
}

.company-details h3 a:hover {
    color: #0073aa;
}

.company-cat, .company-location {
    font-size: 14px;
    color: #777;
    margin: 0;
    line-height: 1.4;
}

/* Pagination */
.company-pagination {
    text-align: center;
    margin-top: 30px;
}

.company-pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    background: #f4f4f4;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
}

.company-pagination .current {
    background: #0073aa;
    color: #fff;
}

/* Responsive for Mobile */
@media (max-width: 600px) {
    .company-item {
        flex-direction: row;
        align-items: center;
    }

    .company-thumbnail {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }

    .company-details h3 {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .company-cat, .company-location {
        font-size: 13px;
    }
}



.company-search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.company-search-form input[type="text"] {
    padding: 10px;
    flex: 1; /* Badala ya width — huchukua nafasi iliyobaki */
    min-width: 200px;
    max-width: 400px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.company-search-form button {
    padding: 10px 16px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
    width: auto; /* Hii inaifanya ifuate ukubwa wa maneno */
}

.company-search-form button:hover {
    background-color: #005a87;
}

@media (max-width: 600px) {
    .company-search-form {
        flex-direction: column;
        align-items: stretch;
        padding: 0 10px;
    }

    .company-search-form input[type="text"],
    .company-search-form button {
        width: 100%; /* Inazuia isivunjike kwenye simu */
    }
}
.view-all-jobs-button {
    display: block;
    width: fit-content;
    margin: 15px auto 0;
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
}


.view-all-jobs-button:hover {
    text-align: center;
    background: #005177;
}
