/* Place this file in companies-manager/assets/css/top-companies.css */

/* Wrapper */
.cm-top-companies-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 0px;
    font-family: Arial, sans-serif;
}

/* Title centered */
.cm-top-companies-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    color: #222;
}

/* Companies list container */
.cm-top-companies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Single company item */
.cm-company-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: 100%; /* default full width on mobile */
}

/* Thumbnail */
.cm-company-thumbnail img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 6px;
}

/* Details */
.cm-company-details {
    margin-left: 15px;
    flex: 1;
}

.cm-company-name {
    font-size: 1.2em;
    margin: 0 0 8px;
}

.cm-company-name a {
    text-decoration: none;
    color: #0073aa;
}

.cm-company-name a:hover {
    text-decoration: underline;
}

.cm-company-cat,
.cm-company-location {
    font-size: 0.9em;
    color: #555;
    margin: 2px 0;
}

/* No companies message */
.cm-no-companies {
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Responsive layout */

/* For screens >= 768px show two companies per row */
@media (min-width: 768px) {
    .cm-company-item {
        width: calc(50% - 10px);
    }
}

.view-all-companies-btn {
  text-align: center;
  margin-top: 20px;
}

.btn-view-companies {
  background-color: #0073aa;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-view-companies:hover {
  background-color: #005f8d;
}
