/* ── Company Detail Page — redesigned ────────────────────────────── */

/* ── Hero ─────────────────────────────────────────────────────────── */
.cd-hero {
    background: linear-gradient(135deg, #0b1430 0%, #111b3f 60%, #1a1040 100%);
    padding: 40px 0 36px;
    position: relative; overflow: hidden;
}
.cd-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 90% 50%, rgba(99,102,241,.18) 0%, transparent 55%);
    pointer-events: none;
}
.cd-hero-cover {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: .18; pointer-events: none;
}
.cd-hero-inner {
    position: relative; z-index: 1;
    max-width: 1260px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cd-logo-box {
    width: 96px; height: 96px; border-radius: 18px;
    background: #1e2d5a; border: 3px solid rgba(255,255,255,.15);
    overflow: hidden; flex-shrink: 0;
    display: grid; place-items: center;
}
.cd-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.cd-logo-box span {
    font-size: 28px; font-weight: 900; color: #fff;
    letter-spacing: -1px;
}
.cd-hero-info { flex: 1; min-width: 200px; }
.cd-hero-name {
    display: flex; align-items: center; gap: 10px;
    font-size: clamp(22px, 2.5vw, 34px);
    font-weight: 900; color: #fff; margin: 0 0 8px;
    letter-spacing: -.5px; flex-wrap: wrap;
}
.cd-verified {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: #6366f1; flex-shrink: 0;
}
.cd-hero-chips {
    display: flex; align-items: center; gap: 16px;
    flex-wrap: wrap; margin-bottom: 14px;
}
.cd-hero-chip {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13px; color: rgba(255,255,255,.72); font-weight: 500;
}
.cd-hero-chip svg { opacity: .7; }
.cd-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cd-hero-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 20px; border-radius: 9px;
    font-size: 13.5px; font-weight: 700;
    text-decoration: none; transition: all .15s; cursor: pointer;
    border: 1.5px solid rgba(255,255,255,.35); color: #fff;
    background: rgba(255,255,255,.1);
}
.cd-hero-btn:hover { background: rgba(255,255,255,.2); color: #fff; }
.cd-hero-btn--primary { background: #6366f1; border-color: #6366f1; }
.cd-hero-btn--primary:hover { background: #4f46e5; border-color: #4f46e5; }

/* Rating card in hero */
.cd-hero-rating {
    display: flex; align-items: center; gap: 20px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px; padding: 14px 20px;
    backdrop-filter: blur(8px); flex-shrink: 0;
}
.cd-rating-score strong {
    display: block; font-size: 28px; font-weight: 900;
    color: #fff; line-height: 1; letter-spacing: -.5px;
}
.cd-stars { display: flex; gap: 2px; margin-top: 3px; }
.cd-stars svg { width: 14px; height: 14px; }
.cd-rating-reviews { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 3px; }
.cd-rating-divider { width: 1px; height: 40px; background: rgba(255,255,255,.15); }
.cd-rating-recommend strong {
    display: block; font-size: 22px; font-weight: 900;
    color: #fff; line-height: 1;
}
.cd-rating-recommend span { font-size: 11px; color: rgba(255,255,255,.5); }

/* ── Tab nav ──────────────────────────────────────────────────────── */
.cd-tabs-wrap {
    background: #fff; border-bottom: 1px solid #e8ecf4;
    position: sticky; top: 0; z-index: 40;
    box-shadow: 0 2px 8px rgba(15,29,70,.06);
}
.cd-tabs {
    max-width: 1260px; margin: 0 auto; padding: 0 24px;
    display: flex; gap: 0; overflow-x: auto;
    scrollbar-width: none;
}
.cd-tabs::-webkit-scrollbar { display: none; }
.cd-tab {
    padding: 16px 20px;
    font-size: 14px; font-weight: 600; color: #64748b;
    white-space: nowrap; text-decoration: none;
    border-bottom: 2.5px solid transparent;
    transition: color .15s, border-color .15s;
    cursor: pointer; background: none; border-top: none;
    border-left: none; border-right: none;
}
.cd-tab:hover { color: #1a2035; }
.cd-tab.is-active { color: #6366f1; border-bottom-color: #6366f1; font-weight: 700; }

/* ── Page body ────────────────────────────────────────────────────── */
.cd-body {
    max-width: 1260px; margin: 0 auto; padding: 28px 24px 60px;
    display: grid; grid-template-columns: minmax(0,1fr) 280px;
    gap: 24px; align-items: start;
}
.cd-content { min-width: 0; }

/* Tab panels */
.cd-tab-panel { display: none; }
.cd-tab-panel.is-active { display: block; }

/* ── Panels / cards ───────────────────────────────────────────────── */
.cd-card {
    background: #fff; border: 1px solid #e8ecf4;
    border-radius: 16px; padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(15,29,70,.04);
}
.cd-card-title {
    font-size: 18px; font-weight: 800; color: #0f1d46;
    margin: 0 0 16px; padding-bottom: 14px;
    border-bottom: 1.5px dashed #e8ecf4;
}
.cd-card-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 16px; padding-bottom: 14px;
    border-bottom: 1.5px dashed #e8ecf4;
}
.cd-card-head-title { font-size: 18px; font-weight: 800; color: #0f1d46; margin: 0; }
.cd-job-count-badge {
    background: #f1f5f9; color: #64748b;
    font-size: 12.5px; font-weight: 700;
    padding: 4px 12px; border-radius: 999px;
}

/* ── General info grid ────────────────────────────────────────────── */
.cd-info-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px 16px;
}
.cd-info-item dt {
    font-size: 11.5px; font-weight: 600; color: #94a3b8;
    text-transform: uppercase; letter-spacing: .05em;
    margin-bottom: 5px;
}
.cd-info-item dd { font-size: 14px; font-weight: 600; color: #1a2035; margin: 0; }

/* ── Description ──────────────────────────────────────────────────── */
.cd-description { font-size: 14.5px; color: #475569; line-height: 1.75; }
.cd-description p  { margin: 0 0 12px; }
.cd-description ul { padding-left: 18px; margin: 0 0 12px; }
.cd-description li { margin-bottom: 5px; }
.cd-description a  { color: #6366f1; text-decoration: underline; }

/* ── Location map ─────────────────────────────────────────────────── */
.cd-map-wrap {
    display: grid; grid-template-columns: 180px 1fr; gap: 16px;
    align-items: start;
}
.cd-map-addr {
    background: #f8fafc; border: 1px solid #e8ecf4;
    border-radius: 10px; padding: 14px;
}
.cd-map-addr-name { font-size: 13.5px; font-weight: 700; color: #1a2035; margin-bottom: 6px; }
.cd-map-addr-text {
    display: flex; gap: 5px;
    font-size: 12.5px; color: #64748b; line-height: 1.5;
}
.cd-map-addr-text svg { flex-shrink: 0; margin-top: 1px; }
.cd-map-frame { border-radius: 12px; overflow: hidden; border: 1px solid #e8ecf4; }
.cd-map-frame iframe { display: block; width: 100%; height: 220px; }

/* ── Social links ─────────────────────────────────────────────────── */
.cd-social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cd-social-icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: grid; place-items: center;
    font-size: 13px; font-weight: 800; color: #fff;
    text-decoration: none; transition: transform .12s, opacity .12s;
}
.cd-social-icon:hover { transform: translateY(-2px); opacity: .85; }

/* ── Chips (skills / benefits) ────────────────────────────────────── */
.cd-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.cd-chip {
    padding: 7px 16px;
    border: 1.5px solid #e2e8f0; border-radius: 999px;
    font-size: 13px; font-weight: 600; color: #374151;
    background: #fff; transition: border-color .12s, background .12s;
}
.cd-chip:hover { border-color: #6366f1; background: #eef2ff; color: #4f46e5; }

/* ── Review tab ───────────────────────────────────────────────────── */
.cd-rating-overview {
    display: grid; grid-template-columns: 140px 1fr 160px;
    gap: 24px; align-items: center;
}
.cd-big-score { text-align: center; }
.cd-big-score strong {
    display: block; font-size: 52px; font-weight: 900;
    color: #0f1d46; line-height: 1; letter-spacing: -2px;
}
.cd-big-stars { display: flex; justify-content: center; gap: 3px; margin: 6px 0 5px; }
.cd-big-stars svg { width: 18px; height: 18px; }
.cd-big-score span { font-size: 12.5px; color: #94a3b8; font-weight: 600; }

/* Star breakdown bars */
.cd-star-bars { display: flex; flex-direction: column; gap: 6px; }
.cd-star-row { display: flex; align-items: center; gap: 8px; }
.cd-star-row span:first-child { font-size: 12px; font-weight: 700; color: #64748b; width: 8px; }
.cd-star-bar-track {
    flex: 1; height: 7px; background: #f1f5f9;
    border-radius: 999px; overflow: hidden;
}
.cd-star-bar-fill {
    height: 100%; border-radius: 999px;
    background: #e879f9; transition: width .4s ease;
}
.cd-star-pct { font-size: 11.5px; color: #94a3b8; width: 30px; text-align: right; }

/* Recommend circle */
.cd-recommend { text-align: center; }
.cd-recommend-circle {
    width: 90px; height: 90px; border-radius: 50%;
    border: 6px solid #e8ecf4; display: grid; place-items: center;
    margin: 0 auto 10px; position: relative; overflow: hidden;
}
.cd-recommend-circle strong { font-size: 22px; font-weight: 900; color: #6366f1; }
.cd-recommend span { font-size: 12px; color: #64748b; line-height: 1.4; }

/* Sub-ratings grid */
.cd-sub-ratings {
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 16px 20px; padding-top: 20px; margin-top: 20px;
    border-top: 1.5px dashed #e8ecf4;
}
.cd-sub-rating dt { font-size: 12px; color: #94a3b8; margin-bottom: 6px; font-weight: 600; }
.cd-sub-rating-val { display: flex; align-items: center; gap: 7px; }
.cd-sub-rating-val strong { font-size: 15px; font-weight: 800; color: #1a2035; }
.cd-sub-rating-stars { display: flex; gap: 2px; }
.cd-sub-rating-stars svg { width: 13px; height: 13px; }

/* Review card list */
.cd-reviews-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.cd-reviews-head h3 { font-size: 17px; font-weight: 800; color: #0f1d46; margin: 0; }
.cd-review-item {
    border: 1px solid #e8ecf4; border-radius: 14px;
    padding: 22px; margin-bottom: 14px;
    transition: box-shadow .15s;
}
.cd-review-item:hover { box-shadow: 0 4px 16px rgba(15,29,70,.07); }
.cd-review-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.cd-reviewer-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: grid; place-items: center;
    color: #fff; font-size: 15px; font-weight: 800; flex-shrink: 0;
}
.cd-reviewer-info { flex: 1; }
.cd-reviewer-name { font-size: 14px; font-weight: 700; color: #1a2035; margin-bottom: 3px; }
.cd-reviewer-meta { font-size: 12px; color: #94a3b8; }
.cd-review-score { display: flex; gap: 2px; margin-left: auto; }
.cd-review-score svg { width: 14px; height: 14px; }
.cd-review-body { font-size: 13.5px; color: #475569; line-height: 1.65; }
.cd-review-tag {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11.5px; font-weight: 600;
    padding: 3px 10px; border-radius: 999px;
    margin-top: 10px; margin-right: 6px;
}
.cd-review-tag--rec { background: #f0fdf4; color: #15803d; }
.cd-review-tag--norec { background: #fef2f2; color: #b91c1c; }

/* ── Sidebar ──────────────────────────────────────────────────────── */
.cd-sidebar { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 16px; }
.cd-sidebar-card {
    background: #fff; border: 1px solid #e8ecf4;
    border-radius: 16px; padding: 22px;
    box-shadow: 0 1px 4px rgba(15,29,70,.04);
}
.cd-sidebar-title {
    font-size: 11.5px; font-weight: 800; color: #94a3b8;
    text-transform: uppercase; letter-spacing: .08em;
    margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}
.cd-sidebar-dl { display: flex; flex-direction: column; gap: 12px; }
.cd-sidebar-dl div { display: flex; flex-direction: column; gap: 3px; }
.cd-sidebar-dl dt { font-size: 11px; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.cd-sidebar-dl dd { font-size: 13.5px; color: #1a2035; font-weight: 600; margin: 0; }
.cd-sidebar-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 10px 16px; border-radius: 10px;
    font-size: 13.5px; font-weight: 700; text-decoration: none;
    transition: all .15s; margin-top: 10px; cursor: pointer; border: none;
    background: #0f1d46; color: #fff;
}
.cd-sidebar-btn:hover { background: #1e2d5a; color: #fff; }
.cd-sidebar-btn--jobs { background: #b6323e; }
.cd-sidebar-btn--jobs:hover { background: #8f2832; }
.cd-sidebar-btn--follow { background: #fff; color: #0f1d46; border: 1.5px solid #e8ecf4; }
.cd-sidebar-btn--follow:hover { border-color: #6366f1; color: #6366f1; }
.cd-sidebar-btn--following { background: #eef2ff; color: #4f46e5; border: 1.5px solid #c7d2fe; }

/* Sidebar job count card */
.cd-jobs-count-card { text-align: center; padding: 16px; }
.cd-jobs-count-card strong { display: block; font-size: 32px; font-weight: 900; color: #0f1d46; line-height: 1; }
.cd-jobs-count-card span { font-size: 13px; color: #94a3b8; font-weight: 500; }
.cd-no-jobs-msg { font-size: 13px; color: #94a3b8; margin-top: 8px; line-height: 1.5; }

/* ── People / Founders ────────────────────────────────────────────── */
.cd-people-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.cd-person-card {
    border: 1px solid #e8ecf4;
    border-radius: 14px;
    padding: 20px;
    background: #fff;
    transition: box-shadow .15s;
}
.cd-person-card:hover { box-shadow: 0 4px 16px rgba(15,29,70,.07); }
.cd-person-top {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 12px;
    margin-bottom: 14px;
}
.cd-person-meta { flex: 1; min-width: 0; }
.cd-person-location { font-size: 12px; color: #94a3b8; font-weight: 500; display: block; margin-bottom: 5px; }
.cd-person-name { display: block; font-size: 16px; font-weight: 800; color: #0f1d46; margin-bottom: 4px; }
.cd-person-title { font-size: 13px; color: #64748b; }
.cd-person-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: grid; place-items: center; flex-shrink: 0;
    overflow: hidden; border: 2px solid #e8ecf4;
}
.cd-person-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cd-person-avatar span { color: #fff; font-size: 20px; font-weight: 800; }
.cd-person-years {
    font-size: 14px; font-weight: 700; color: #1a2035;
    margin-bottom: 10px;
}
.cd-person-bio { font-size: 13px; color: #64748b; line-height: 1.65; margin: 0; }

/* ── Write Review form ────────────────────────────────────────────── */
.cd-review-form { margin-top: 4px; }
.cd-rf-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; margin-bottom: 20px;
}
.cd-rf-field { display: flex; flex-direction: column; gap: 6px; }
.cd-rf-field.full { grid-column: 1/-1; }
.cd-rf-field label { font-size: 12.5px; font-weight: 700; color: #374151; }
.cd-rf-field input, .cd-rf-field select, .cd-rf-field textarea {
    padding: 9px 12px;
    border: 1.5px solid #e4e8f0; border-radius: 9px;
    font: inherit; font-size: 13.5px; color: #1a2035;
    outline: none; transition: border-color .15s;
    background: #f9fafb;
}
.cd-rf-field input:focus, .cd-rf-field select:focus, .cd-rf-field textarea:focus {
    border-color: #6366f1; background: #fff;
}
.cd-rf-field textarea { resize: vertical; min-height: 90px; }
.cd-rf-stars {
    display: flex; gap: 4px; align-items: center;
}
.cd-rf-stars button {
    font-size: 24px; color: #e2e8f0; background: none; border: none;
    cursor: pointer; transition: color .1s; padding: 0; line-height: 1;
}
.cd-rf-stars button.is-lit, .cd-rf-stars button:hover { color: #e879f9; }
.cd-rf-sub-ratings {
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 14px; padding: 20px 0;
    border-top: 1.5px dashed #e8ecf4;
    margin-bottom: 20px;
}
.cd-rf-sub-item { display: flex; flex-direction: column; gap: 6px; }
.cd-rf-sub-item span { font-size: 12px; font-weight: 600; color: #64748b; }
.cd-rf-sub-item .cd-rf-stars button { font-size: 18px; }
.cd-rf-radio {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13.5px; cursor: pointer; font-weight: 500;
}
.cd-rf-radio input { accent-color: #6366f1; }
.cd-rf-submit {
    padding: 12px 32px;
    background: #0f1d46; color: #fff;
    border: none; border-radius: 10px;
    font-size: 14.5px; font-weight: 800;
    cursor: pointer; transition: background .15s;
}
.cd-rf-submit:hover { background: #6366f1; }
.cd-rf-login-cta {
    padding: 28px; text-align: center;
    border: 1.5px dashed #e8ecf4; border-radius: 12px;
}
.cd-rf-login-cta p { color: #64748b; margin-bottom: 12px; }
.cd-rf-login-cta a {
    display: inline-flex; align-items: center;
    padding: 10px 22px; background: #6366f1; color: #fff;
    border-radius: 8px; font-weight: 700; text-decoration: none;
    transition: background .15s;
}
.cd-rf-login-cta a:hover { background: #4f46e5; }

/* ── Company Info table (sidebar) ─────────────────────────────────── */
.cd-info-table {
    width: 100%; border-collapse: collapse;
    margin-bottom: 4px;
}
.cd-info-table tr { border-bottom: 1px solid #f1f5f9; }
.cd-info-table tr:last-child { border-bottom: none; }
.cd-it-label {
    padding: 10px 0; font-size: 13px;
    color: #94a3b8; font-weight: 500;
    width: 48%; vertical-align: top;
}
.cd-it-value {
    padding: 10px 0; font-size: 13.5px;
    color: #0f1d46; font-weight: 700;
    vertical-align: top;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .cd-body { grid-template-columns: minmax(0,1fr) 240px; gap: 18px; }
}
@media (max-width: 960px) {
    .cd-rating-overview { grid-template-columns: 100px 1fr; }
    .cd-recommend { display: none; }
    .cd-info-grid { grid-template-columns: repeat(2,1fr); }
    .cd-sub-ratings { grid-template-columns: repeat(2,1fr); }
    .cd-people-grid { grid-template-columns: 1fr 1fr; }
    .cd-rf-sub-ratings { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
    .cd-body { grid-template-columns: 1fr; }
    .cd-sidebar { position: static; }
    .cd-hero-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .cd-hero-rating { width: 100%; }
    .cd-info-grid { grid-template-columns: 1fr; }
    .cd-map-wrap { grid-template-columns: 1fr; }
    .cd-sub-ratings { grid-template-columns: 1fr; }
    .cd-rating-overview { grid-template-columns: 1fr; }
    .cd-people-grid { grid-template-columns: 1fr; }
    .cd-rf-grid { grid-template-columns: 1fr; }
    .cd-rf-sub-ratings { grid-template-columns: 1fr; }
}
