*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #f4f6fb; }

/* The sitewide html,body{overflow-x:hidden} rule (assets/energy/css/style.css)
   forces overflow-y to compute as "auto", which turns <body> into its own
   scroll container and silently breaks position:sticky for every descendant
   (including .cp-sidebar below). Restore both axes to visible on this page
   only so the sidebar can actually stick. */
html, body { overflow-x: visible !important; overflow-y: visible !important; }

/* Legacy duplicate company header/details block (pre-dates the .cp-* redesign
   above) — hidden so it doesn't render a second, differently-styled copy of
   the same company info below the new layout. */
.company-details-main-wrap { display: none !important; }

/* =============================================
   DESIGN TOKENS — aliased to the site-wide design
   tokens in assets/energy/css/style.css so this page
   always tracks the real brand palette.
   ============================================= */
:root {
    --primary:      var(--primary-color, #58BDE2);
    --primary-dark: var(--brand-dark-500, #001645);
    --green:        var(--success-600, #2A7948);
    --text-dark:    var(--dark-900, #1F1D1E);
    --text-mid:     #444b5a;
    --text-soft:    #6b7994;
    --border:       #e4e8f0;
    --bg:           var(--theme-background-2, #F3F4F6);
    --white:        #ffffff;
    --shadow:       0 4px 20px rgba(0,22,69,.08);
    --radius:       16px;
    --radius-sm:    10px;
}
.cp-cover {
    height: 450px;
    overflow: hidden;
    position: relative;
    background: #1a1a2e;
}
.cp-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .75;
    display: block;
}
.cp-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(20,20,50,.15), rgba(20,20,50,.60));
}

/* =============================================
   COMPANY HEADER CARD
   ============================================= */
.cp-header-card {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    position: relative;
    z-index: 5;
}
.cp-header-inner {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 16px 20px;
    display: flex;
    align-items: flex-end;
    gap: 24px;
    margin-top: -60px;
}
.cp-logo-wrap {
    width: 110px;
    height: 110px;
    background: var(--white);
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: 16px !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cp-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}
.cp-header-body {
    flex: 1;
    padding-top: 70px;
}
.cp-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-50, #eef3ff);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}
.cp-company-name {
    font-size: 24px;
    font-weight: 500;
    color: #000;
    letter-spacing: normal;
    margin: 0 0 4px;
    line-height: 30px;
}
.cp-tagline {
    font-size: 14px;
    color: var(--text-soft);
    margin: 0 0 12px;
    line-height: 20px;
}
.cp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.cp-tag {
    padding: 4px 12px;
    background: #f5f7fb;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 12px;
    color: var(--text-mid);
    font-weight: 500;
}
.cp-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
}
.cp-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-mid);
    line-height: 19px;
}
.cp-info-item i { color: var(--primary); width: 14px; text-align: center; }
.cp-info-item a { color: var(--primary); text-decoration: none; }
.cp-info-item a:hover { text-decoration: underline; }
.cp-header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    padding-top: 70px;
    flex-shrink: 0;
}
.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 22px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}
.cp-btn-primary { background: var(--primary); color: #fff; }
.cp-btn-primary:hover { background: var(--primary-dark); color: #fff; }
.cp-btn-outline {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text-dark);
}
.cp-btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* =============================================
   STICKY NAV
   ============================================= */
.cp-scroll-region {
    position: relative;
}
.cp-sticky-nav {
    position: sticky;
    top: var(--cp-sticky-offset, 0px);
    z-index: 50;
    background: var(--white);
    border-bottom: 2px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.cp-nav-inner {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}
.cp-nav-inner::-webkit-scrollbar { display: none; }
.cp-nav-link {
    display: block;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-soft);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color .2s, border-color .2s;
}
.cp-nav-link:hover,
.cp-nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* =============================================
   TWO-COLUMN LAYOUT
   ============================================= */
.cp-layout {
    max-width: 1340px;
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.cp-main { flex: 1; min-width: 0; }
.cp-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 180px;
    align-self: flex-start;
}

/* =============================================
   SECTION CARD
   ============================================= */
.cp-card {
    background: var(--white);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
}
.cp-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.cp-card-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
    line-height: 24px;
}
.cp-card-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.cp-card-link:hover { color: var(--green); }

/* =============================================
   OVERVIEW
   ============================================= */
.cp-overview-text {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 22px;
}
.cp-overview-text p { margin-bottom: 12px; }
.cp-overview-text p:last-child { margin-bottom: 0; }

/* =============================================
   WHY JOIN US
   ============================================= */
.cp-feature-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 14px;
}
.cp-feature-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 0px;
    background: none;
}
.cp-feature-icon {
    width: 38px;
    height: 38px;
    background: #eef3ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-dark);
    font-size: 16px;
}
.cp-feature-body h4 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 0 4px;
    line-height: 20px;
}
.cp-feature-body p {
    font-size: 16px;
    color: #000;
    margin: 0;
    line-height: 19px;
}

/* =============================================
   OPEN JOBS
   ============================================= */
.cp-job-list { display: flex; flex-direction: column; gap: 12px; }
.cp-job-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    background: var(--white);
}
.cp-job-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(0,22,69,.10);
}
.cp-job-item-left { flex: 1; }
.cp-job-item-left h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px;
    line-height: 22px;
}
.cp-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}
.cp-job-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-soft);
    line-height: 19px;
}
.cp-job-meta i { color: var(--primary); width: 13px; text-align: center; }
.cp-job-apply {
    background: var(--primary);
    color: #fff;
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 20px;
    display: inline-flex;
    align-items: center;
}
.cp-job-apply:hover { background: var(--primary-dark); color: #fff; }

/* =============================================
   BENEFITS
   ============================================= */
.cp-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.cp-benefit-item {
    padding: 20px;
    background: #f9fafd;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color .2s;
}
.cp-benefit-item:hover { border-color: var(--primary); }
.cp-benefit-item i {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}
.cp-benefit-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 6px;
    line-height: 20px;
}
.cp-benefit-item p {
    font-size: 13px;
    color: var(--text-soft);
    margin: 0;
    line-height: 19px;
}

/* =============================================
   GALLERY
   ============================================= */
.cp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.cp-gallery-item {
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--border);
    border-radius: var(--radius-sm);
}
.cp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}
.cp-gallery-item:hover img { transform: scale(1.05); }

/* =============================================
   REVIEWS
   ============================================= */
.cp-reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.cp-review-item {
    padding: 18px;
    background: #f9fafd;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.cp-review-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.cp-reviewer-avatar {
    width: 44px;
    height: 44px;
    background: #eef3ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    overflow: hidden;
}
.cp-reviewer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cp-reviewer-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 2px;
    line-height: 20px;
}
.cp-reviewer-role {
    font-size: 12px;
    color: var(--text-soft);
    line-height: 18px;
}
.cp-stars { color: #f59e0b; font-size: 13px; margin-bottom: 8px; }
.cp-review-text {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 20px;
    margin: 0;
}

/* =============================================
   AWARDS
   ============================================= */
.cp-awards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.cp-award-item {
    padding: 20px 16px;
    text-align: center;
    background: #f9fafd;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color .2s;
}
.cp-award-item:hover { border-color: var(--primary); }
.cp-award-icon { font-size: 30px; margin-bottom: 10px; display: block; }
.cp-award-item h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px;
    line-height: 19px;
}
.cp-award-item span {
    font-size: 12px;
    color: var(--text-soft);
}

/* =============================================
   SIDEBAR CARD
   ============================================= */
.cp-sidebar-card {
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}
.cp-sidebar-head {
    background: var(--primary);
    padding: 12px 16px;
}
.cp-sidebar-head h3 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 20px;
}
.cp-sidebar-body { padding: 16px; }

/* Info list */
.cp-info-list { list-style: none; margin: 0; padding: 0; }
.cp-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}
.cp-info-list li:last-child { border-bottom: none; padding-bottom: 0; }
.cp-info-list .il-icon {
    color: var(--primary);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 13px;
}
.cp-info-list .il-label {
    display: block;
    font-size: 11px;
    color: #000;
    margin-bottom: 2px;
    line-height: 17px;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.cp-info-list .il-value {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 19px;
}
.cp-info-list .il-value a { color: var(--primary); text-decoration: none; }
.cp-info-list .il-value a:hover { text-decoration: underline; }

/* Sidebar buttons */
.cp-sidebar-actions { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.cp-sb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    height: 42px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}
.cp-sb-primary { background: var(--primary); color: #fff; }
.cp-sb-primary:hover { background: var(--primary-dark); color: #fff; }
.cp-sb-outline { background: var(--white); border: 1px solid var(--border); color: var(--text-dark); }
.cp-sb-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Share */
.cp-share-bar {
    padding: 13px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.cp-share-label { font-size: 12px; font-weight: 600; color: var(--text-soft); }
.cp-share-links { display: flex; gap: 8px; }
.cp-share-link {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-mid);
    text-decoration: none;
    font-size: 13px;
    transition: border-color .2s, color .2s, background .2s;
}
.cp-share-link:hover { border-color: var(--primary); color: #fff; background: var(--primary); }

/* Browse Jobs sidebar */
.cp-browse-list { list-style: none; margin: 0; padding: 16px; }
.cp-browse-list li {
    padding: 8px 0 8px 16px;
    position: relative;
    border-bottom: 1px solid var(--border);
}
.cp-browse-list li:last-child { border-bottom: none; }
.cp-browse-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 2px;
    background: var(--green);
}
.cp-browse-list li a {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    line-height: 19px;
}
.cp-browse-list li a:hover { text-decoration: underline; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1366px) {
    .cp-layout { max-width: 100%; padding: 24px 24px; }
    .cp-sidebar { width: 300px; }
}

@media (max-width: 1200px) {
    .cp-benefits-grid { grid-template-columns: repeat(3, 1fr); }
    .cp-awards-grid   { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1199px) {
    .cp-sidebar { width: 280px; }
    .cp-gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

@media (max-width: 992px) {
    .cp-layout { flex-direction: column; padding: 20px 16px; }
    .cp-sidebar { width: 100%; position: static; }
    .cp-header-inner { flex-wrap: wrap; margin-top: -50px; }
    .cp-feature-grid { grid-template-columns: 1fr; }
    .cp-benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .cp-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .cp-reviews-grid { grid-template-columns: 1fr; }
    .cp-awards-grid { grid-template-columns: repeat(2, 1fr); }
    .cp-header-actions { padding-top: 0; flex-direction: row; align-items: center; }
    .cp-cover { height: 320px; }
}

@media (max-width: 767px) {
     .cp-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .cp-logo-wrap { order: 1; }
    .cp-header-body { order: 2; padding-top: 16px; }
    .cp-header-actions { order: 3; padding-top: 0; }

    .cp-header-actions{
        order:3;
        width:100%;
        padding-top:0;
        align-items:stretch;
    }

    .cp-header-actions .cp-btn{
        width:100%;
    }

    .cp-company-name{
        font-size:28px!important;
        line-height:1.1;
        margin-bottom:10px;
    }

    .cp-tagline{
        font-size:12px;
        line-height:1.5;
        margin-bottom:10px;
    }

    .cp-tags{
        display:flex;
        flex-wrap:wrap;
        gap:10px;
        margin-bottom:16px;
    }

    .cp-tag{
        width:max-content;
        text-align:left;
    }

    .cp-info-row{
        display:flex;
        flex-direction:column;
        gap:12px;
    }

    .cp-info-item{
        width:100%;
        font-size:15px;
    }

    .cp-info-item i{
        width:20px;
        text-align:center;
    }

    .cp-verified-badge{
        margin-bottom:12px;
    }
    .cp-header-inner { margin-top: -45px; }
    .cp-logo-wrap { width: 90px; height: 90px; margin-top:20px; }
    .cp-header-body { padding-top: 10px;width:100%; }
    .cp-nav-link { padding: 14px 16px; font-size: 13px; }
    .cp-benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .cp-awards-grid { grid-template-columns: repeat(2, 1fr); }
    .cp-job-item { flex-direction: column; align-items: flex-start; gap: 12px; }
    .cp-job-apply { margin-left: 0; width: 100%; }
    .cp-card { padding: 18px; }
}

@media (max-width: 567px) {
    .cp-cover { height: 260px; }
    .cp-company-name { font-size: 19px; line-height: 25px; }
    .cp-header-inner { margin-top: -38px; }
    .cp-logo-wrap { width: 76px; height: 76px; }
    .cp-header-body { padding-top: 46px; }
    .cp-tagline { font-size: 13px; }
    .cp-benefits-grid { grid-template-columns: 1fr; }
    .cp-gallery-grid { grid-template-columns: 1fr; }
    .cp-awards-grid { grid-template-columns: 1fr; }
    .cp-reviews-grid { grid-template-columns: 1fr; }
    .cp-nav-link { padding: 12px 14px; font-size: 12px; }
    .cp-sb-btn { height: 44px; }
}
