:root {
    --primary-blue: #0f4c97;
    --primary-hover: #123a72;
    --hero-dark: #0b2f5f;
    --accent-orange: #f97316;
    --accent-orange-hover: #ea580c;
    --bg-soft-blue: #eef7ff;
    --bg-light: #f5f8fc;
    --bg-card: #ffffff;
    --text-dark: #0f172a;
    --text-main: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --success-green: #16a34a;
    --soft-green: #ecfdf5;
    --danger-light: #fef2f2;
    --danger-red: #b91c1c;
    --danger-border: #fecaca;
    --success-border: #bbf7d0;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 14px 34px rgba(15, 23, 42, 0.09);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 999px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 15px;
    color: var(--text-main);
    background: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark);
    margin-top: 0;
    font-weight: 700;
}

p {
    margin-top: 0;
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    transition: 0.18s ease;
}

.cb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cb-w-full {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cb-mb-large {
    margin-bottom: 28px;
}

.cb-mt-4 {
    margin-top: 18px;
    display: inline-flex;
}

.cb-text-muted {
    color: var(--text-muted);
}

.cb-text-green {
    color: var(--success-green);
    font-weight: 700;
}

.cb-text-orange {
    color: var(--accent-orange);
    font-weight: 700;
}

/* Header */
.cb-company-header {
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 24%),
        linear-gradient(135deg, var(--hero-dark), var(--primary-blue));
    background-size: cover;
    padding: 56px 0;
    margin-bottom: 34px;
}

.cb-header-content {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
}

.cb-page-title {
    color: #ffffff;
    font-size: 36px;
    line-height: 1.18;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.cb-page-desc {
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    margin-bottom: 28px;
}

/* Search */
.cb-search-form {
    display: flex;
    align-items: center;
    gap: 0;
    background: #ffffff;
    padding: 8px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
}

.cb-search-group {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.cb-search-divider {
    width: 1px;
    height: 30px;
    background: var(--border-color);
}

.cb-search-icon {
    font-size: 15px;
    color: var(--text-muted);
    margin-right: 9px;
}

.cb-search-form input,
.cb-search-select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 14px;
    padding: 12px 0;
}

.cb-search-select {
    cursor: pointer;
    color: var(--text-main);
}

/* Buttons */
.cb-btn-primary {
    background: var(--primary-blue);
    color: #ffffff;
    border: 1px solid var(--primary-blue);
    padding: 11px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.cb-btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.cb-btn-orange {
    background: var(--accent-orange);
    color: #ffffff;
    border: 1px solid var(--accent-orange);
    padding: 12px 26px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
}

.cb-btn-orange:hover {
    background: var(--accent-orange-hover);
    border-color: var(--accent-orange-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.cb-btn-outline-blue {
    background: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.cb-btn-outline-blue:hover {
    background: var(--bg-soft-blue);
}

/* Company list */
.cb-main-content {
    padding-bottom: 64px;
}

.cb-results-header {
    margin-bottom: 22px;
}

.cb-results-count {
    font-weight: 800;
    color: var(--text-dark);
    font-size: 20px;
}

.cb-company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.cb-company-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: 0.18s ease;
}

.cb-company-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.cb-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.cb-company-logo {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    background: var(--bg-soft-blue);
    color: var(--primary-blue);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    border: 1px solid #bfdbfe;
}

.cb-company-info {
    flex: 1;
    min-width: 0;
}

.cb-company-name {
    font-size: 18px;
    margin: 0 0 6px;
    line-height: 1.25;
}

.cb-company-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.cb-meta-industry {
    background: var(--bg-light);
    padding: 4px 9px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.cb-badge-verified {
    background: var(--soft-green);
    color: var(--success-green);
    padding: 4px 9px;
    border-radius: var(--radius-full);
    font-size: 12px;
    border: 1px solid var(--success-border);
}

.cb-company-desc {
    font-size: 14px;
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 20px;
    line-height: 1.6;
}

.cb-card-actions {
    margin-top: auto;
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

/* Profile */
.cb-profile-hero {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 30px 0 38px;
    margin-bottom: 34px;
    box-shadow: var(--shadow-sm);
}

.cb-back-link {
    display: inline-flex;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 22px;
}

.cb-back-link:hover {
    color: var(--primary-blue);
}

.cb-profile-header {
    display: flex;
    align-items: center;
    gap: 22px;
}

.cb-profile-logo {
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
    background: var(--bg-soft-blue);
    color: var(--primary-blue);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
    border: 1px solid #bfdbfe;
}

.cb-profile-info {
    flex: 1;
    min-width: 0;
}

.cb-profile-name {
    font-size: 30px;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.cb-badge-verified-large {
    background: var(--success-green);
    color: white;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex: 0 0 23px;
}

.cb-profile-meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    font-size: 14px;
    color: var(--text-main);
}

.cb-profile-meta-top a {
    color: var(--primary-blue);
    font-weight: 700;
}

.cb-profile-meta-top a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Layout */
.cb-layout-grid {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 28px;
    margin-bottom: 72px;
    align-items: start;
}

.cb-main-column,
.cb-sidebar {
    min-width: 0;
}

.cb-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.cb-section-title {
    font-size: 21px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.cb-about-text {
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.72;
}

/* Job list */
.cb-job-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cb-job-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: 0.18s ease;
    background: var(--bg-card);
}

.cb-job-list-item:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.cb-job-list-info {
    flex: 1;
    min-width: 0;
}

.cb-job-title {
    font-size: 18px;
    margin: 0 0 11px;
    color: var(--text-dark);
}

.cb-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.cb-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.cb-badge-gray {
    background: var(--bg-light);
    color: var(--text-main);
}

.cb-badge-success {
    background: var(--soft-green);
    color: #047857;
    border-color: var(--success-border);
}

.cb-badge-danger {
    background: var(--danger-light);
    color: var(--danger-red);
    border-color: var(--danger-border);
}

.cb-job-list-action {
    width: 138px;
    flex: 0 0 138px;
}

/* Sidebar */
.cb-sticky {
    position: sticky;
    top: 100px;
}

.cb-sidebar-title {
    font-size: 18px;
    margin: 0 0 18px;
}

.cb-summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
}

.cb-summary-list li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 16px;
}

.cb-summary-list li:last-child {
    margin-bottom: 0;
}

.cb-summary-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    border: 1px solid var(--border-color);
}

.cb-summary-text {
    display: flex;
    flex-direction: column;
}

.cb-summary-text strong {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.cb-summary-text span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Empty + pagination */
.cb-empty-state {
    text-align: center;
    padding: 52px 20px;
    background: #ffffff;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
}

.cb-empty-icon {
    font-size: 42px;
    margin-bottom: 13px;
    opacity: 0.85;
}

.cb-empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.cb-empty-state p {
    color: var(--text-muted);
    margin: 0;
    font-size: 14px;
}

.cb-pagination-wrap {
    margin-top: 34px;
    display: flex;
    justify-content: center;
}

/* Responsive */
@media (max-width: 992px) {
    .cb-layout-grid {
        grid-template-columns: 1fr;
    }

    .cb-sticky {
        position: static;
    }
}

@media (max-width: 768px) {
    .cb-company-header {
        padding: 40px 0;
    }

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

    .cb-page-desc {
        font-size: 14px;
    }

    .cb-search-form {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 12px;
        gap: 10px;
    }

    .cb-search-divider {
        display: none;
    }

    .cb-search-group {
        width: 100%;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
    }

    .cb-search-form button {
        width: 100%;
        border-radius: var(--radius-sm);
    }

    .cb-company-grid {
        grid-template-columns: 1fr;
    }

    .cb-profile-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .cb-profile-name {
        justify-content: center;
        font-size: 26px;
    }

    .cb-profile-meta-top {
        justify-content: center;
    }

    .cb-card {
        padding: 22px;
    }

    .cb-job-list-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cb-job-list-action {
        width: 100%;
        flex: auto;
        margin-top: 8px;
    }
}

   Public Company Documents Section - v2
========================================== */

.cb-public-doc-section {
    background: var(--bg-card);
}

.cb-public-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.cb-public-doc-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: var(--bg-light);
    transition: 0.18s ease;
}

.cb-public-doc-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-blue);
}

.cb-public-doc-info h5 {
    font-size: 16px;
    color: var(--text-dark);
    margin: 0 0 8px;
}

.cb-public-doc-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.cb-doc-status-verified {
    background: var(--soft-green);
    color: var(--success-green);
    border: 1px solid var(--success-border);
}

.cb-doc-status-pending {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.cb-doc-status-rejected {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.cb-public-doc-link {
    font-size: 13px;
    padding: 8px 14px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .cb-public-doc-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cb-public-doc-link {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}


/* Company logo image support - v4 */
.cb-company-logo,
.cb-profile-logo {
    overflow: hidden;
}

.cb-company-logo img,
.cb-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: inherit;
}

.cb-public-doc-section .cb-section-title::after {
    content: 'Verified public documents only';
    display: inline-flex;
    margin-left: 10px;
    background: var(--soft-green);
    color: var(--success-green);
    border: 1px solid var(--success-border);
    border-radius: var(--radius-full);
    padding: 3px 9px;
    font-size: 11px;
    vertical-align: middle;
}
