/*
 * Employer profile page (/employer/{slug}/).
 * Scoped under .civi-employer. Colours come from the theme accent variable so
 * the page inherits the active palette. Tabs are CSS-only.
 */

.civi-employer {
    background: #f7f8fa;
    padding: 24px 0 64px;
}

/* Breadcrumb spacing. Top spacing lives on the section padding (above) so the
   margin cannot collapse out of the gray container and reveal a white strip. */
.civi-employer .civi_breadcrumb {
    margin-top: 0;
    margin-bottom: 24px;
}


/* Hero */
.civi-employer .emp-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #eef0f7;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 24px;
}


.civi-employer .emp-hero-logo {
    flex: 0 0 auto;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #eef0f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.civi-employer .emp-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.civi-employer .emp-hero-logo-placeholder {
    font-size: 32px;
    color: var(--civi-color-accent, #4d4ed4);
}

.civi-employer .emp-hero-name {
    margin: 0 0 4px;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.25;
    color: #0f172a;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.civi-employer .emp-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.civi-employer .emp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 6px 14px;
    line-height: 1.3;
}

.civi-employer .emp-badge i {
    font-size: 12px;
    opacity: .8;
}

.civi-employer .emp-badge--hiring {
    color: #0f7a4d;
    background: rgb(0 116 86 / .08);
}

/* Layout: main + sidebar */
.civi-employer .emp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.civi-employer .emp-main,
.civi-employer .emp-card {
    background: #ffffff;
    border: 1px solid #eef0f7;
    border-radius: 16px;
}

.civi-employer .emp-main {
    padding: 0;
    overflow: hidden;
}

/* Tabs (CSS only) */
.civi-employer .emp-tab-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.civi-employer .emp-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid #eef0f7;
    padding: 0 20px;
}

.civi-employer .emp-tab {
    padding: 16px 8px;
    margin-right: 18px;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .15s ease, border-color .15s ease;
}

.civi-employer .emp-tab:hover {
    color: #0f172a;
}

.civi-employer #emp-tab-jobs:checked ~ .emp-tabs label[for="emp-tab-jobs"],
.civi-employer #emp-tab-about:checked ~ .emp-tabs label[for="emp-tab-about"] {
    color: var(--civi-color-accent, #4d4ed4);
    border-bottom-color: var(--civi-color-accent, #4d4ed4);
}

.civi-employer .emp-panel {
    display: none;
    padding: 24px;
}

.civi-employer #emp-tab-jobs:checked ~ .emp-panels .emp-panel--jobs,
.civi-employer #emp-tab-about:checked ~ .emp-panels .emp-panel--about {
    display: block;
}

.civi-employer .emp-section-title {
    margin: 0 0 18px;
    font-size: 20px;
    color: #0f172a;
}

/* Jobs list */
.civi-employer .emp-jobs {
    list-style: none;
    margin: 0;
    padding: 0;
}

.civi-employer .emp-job {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.civi-employer .emp-job:last-child {
    border-bottom: 0;
}

.civi-employer .emp-job-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.civi-employer .emp-job-title a {
    color: #0f172a;
    text-decoration: none;
}

.civi-employer .emp-job-title a:hover {
    color: var(--civi-color-accent, #4d4ed4);
}

.civi-employer .emp-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 13px;
    color: #94a3b8;
}

.civi-employer .emp-job-metaitem {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.civi-employer .emp-job-explore {
    flex: 0 0 auto;
    display: inline-block;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: var(--civi-color-accent, #4d4ed4);
    text-decoration: none;
    transition: opacity .15s ease;
}

.civi-employer .emp-job-explore:hover {
    opacity: .9;
}

/* Load more */
.civi-employer .emp-loadmore-wrap {
    margin-top: 22px;
    text-align: center;
}

.civi-employer .emp-loadmore {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--civi-color-accent, #4d4ed4);
    background: transparent;
    border: 1px solid var(--civi-color-accent, #4d4ed4);
    cursor: pointer;
    transition: background .15s ease, color .15s ease, opacity .15s ease;
}

.civi-employer .emp-loadmore:hover {
    color: #ffffff;
    background: var(--civi-color-accent, #4d4ed4);
}

.civi-employer .emp-loadmore.is-loading {
    pointer-events: none;
    position: relative;
    padding-right: 46px;
}

.civi-employer .emp-loadmore.is-loading::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: emp-spin .6s linear infinite;
}

@keyframes emp-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Buttons */
.civi-employer .emp-btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background .15s ease, color .15s ease, opacity .15s ease;
}

.civi-employer .emp-btn--outline {
    display: block;
    color: var(--civi-color-accent, #4d4ed4);
    background: transparent;
    border: 1px solid var(--civi-color-accent, #4d4ed4);
}

.civi-employer .emp-btn--outline:hover {
    color: #ffffff;
    background: var(--civi-color-accent, #4d4ed4);
}

/* About */
.civi-employer .emp-about-content {
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
}

.civi-employer .emp-about-content p {
    margin: 0 0 14px;
}

.civi-employer .emp-empty {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

/* Sidebar cards */
.civi-employer .emp-aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.civi-employer .emp-card {
    padding: 22px;
}

.civi-employer .emp-card-title {
    margin: 0 0 16px;
    font-size: 16px;
    color: #0f172a;
}

.civi-employer .emp-overview {
    margin: 0;
}

.civi-employer .emp-overview-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.civi-employer .emp-overview-row:last-child {
    border-bottom: 0;
}

.civi-employer .emp-overview-row dt {
    color: #94a3b8;
    margin: 0;
}

.civi-employer .emp-overview-row dd {
    margin: 0;
    color: #0f172a;
    font-weight: 500;
    text-align: right;
}

.civi-employer .emp-jobs-count {
    margin: 0 0 16px;
    font-size: 14px;
    color: #64748b;
}

.civi-employer .emp-jobs-count span {
    font-size: 22px;
    font-weight: 700;
    color: var(--civi-color-accent, #4d4ed4);
    margin-right: 6px;
}

.civi-employer .emp-social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

.civi-employer .emp-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--civi-color-accent, #4d4ed4);
    background: rgb(77 78 212 / .08);
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.civi-employer .emp-social a:hover {
    color: #ffffff;
    background: var(--civi-color-accent, #4d4ed4);
}

.civi-employer .emp-location {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    display: flex;
    gap: 8px;
}

.civi-employer .emp-location i {
    color: var(--civi-color-accent, #4d4ed4);
    margin-top: 3px;
}

/* Related employers */
.civi-employer .emp-related {
    margin-top: 32px;
}

.civi-employer .emp-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.civi-employer .emp-related-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #eef0f7;
    border-radius: 14px;
    padding: 20px;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease;
}

.civi-employer .emp-related-card:hover {
    border-color: var(--civi-color-accent, #4d4ed4);
    box-shadow: 0 10px 26px rgb(16 24 40 / .08);
    transform: translateY(-2px);
}

.civi-employer .emp-related-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
}

.civi-employer .emp-related-jobs {
    list-style: none;
    margin: 2px 0 0;
    padding: 0;
    width: 100%;
}

.civi-employer .emp-related-jobs li {
    padding: 8px 0;
    border-top: 1px solid #f1f5f9;
}

.civi-employer .emp-related-jobs a {
    display: block;
    font-size: 13.5px;
    line-height: 1.4;
    color: #475569;
    text-decoration: none;
}

.civi-employer .emp-related-jobs a:hover {
    color: var(--civi-color-accent, #4d4ed4);
}

.civi-employer .emp-related-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #eef0f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--civi-color-accent, #4d4ed4);
}

.civi-employer .emp-related-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.civi-employer .emp-related-name {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.civi-employer .emp-related-cat {
    font-size: 12.5px;
    color: var(--civi-color-accent, #4d4ed4);
    background: rgb(77 78 212 / .08);
    border-radius: 6px;
    padding: 3px 10px;
}

/* Responsive */
@media (max-width: 991px) {
    .civi-employer .emp-layout {
        grid-template-columns: 1fr;
    }
    .civi-employer .emp-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .civi-employer .emp-hero {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .civi-employer .emp-job {
        flex-direction: column;
        align-items: flex-start;
    }
    .civi-employer .emp-job-explore {
        display: none;
    }
    .civi-employer .emp-related-grid {
        grid-template-columns: 1fr;
    }
}
