/* Best Place to Work — Techmagnate reference layout */

.bpw-page .tm-breadcrumb li + li::before {
    content: '>';
}

/* Hero */
.bpw-hero {
    background: linear-gradient(135deg, #0570AE 0%, #0570AE 55%, #023B5E 100%);
    padding: 3.5rem 0 0;
    overflow: hidden;
    position: relative;
}

.bpw-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    background: #fff;
    clip-path: ellipse(58% 100% at 50% 100%);
}

.bpw-hero-inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 2rem;
    align-items: end;
    position: relative;
    z-index: 1;
}

.bpw-hero-text h1 {
    font-size: clamp(1.85rem, 3.5vw, 2.55rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.bpw-hero-text p {
    color: rgba(255, 255, 255, .92);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 520px;
    margin-bottom: 1.5rem;
}

.btn-bpw-hero {
    background: #fff;
    color: #0570AE;
    padding: .75rem 1.75rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: all .2s;
    margin-bottom: 2.5rem;
}

.btn-bpw-hero:hover {
    background: #C3C3C3;
    color: #023B5E;
    transform: translateY(-2px);
}

.bpw-hero-visual {
    position: relative;
    text-align: center;
    padding-bottom: 1rem;
}

.bpw-hero-visual img,
.bpw-hero-visual .page-hero-img {
    width: auto;
    max-width: min(300px, 100%);
    max-height: 220px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, .2));
}

.bpw-gptw-badge {
    position: absolute;
    right: 0;
    top: 10%;
    background: #fff;
    border-radius: 12px;
    padding: .85rem 1rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .15);
    text-align: center;
    max-width: 130px;
}

.bpw-gptw-badge strong {
    display: block;
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #0570AE;
    line-height: 1.3;
}

.bpw-gptw-badge span {
    display: block;
    font-size: .58rem;
    font-weight: 700;
    color: #767B79;
    margin-top: .25rem;
    line-height: 1.25;
}

.bpw-gptw-badge i {
    font-size: 1.5rem;
    color: #0570AE;
    margin-bottom: .35rem;
}

/* Main layout */
.bpw-wrap {
    background: #fff;
    padding: 2.5rem 0 0;
}

.bpw-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

.bpw-main {
    min-width: 0;
}

.bpw-section {
    margin-bottom: 2.75rem;
}

.bpw-section-title {
    font-size: clamp(1.45rem, 2.8vw, 1.85rem);
    font-weight: 800;
    color: #023B5E;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

.bpw-section-lead {
    color: #767B79;
    line-height: 1.75;
    font-size: .95rem;
    margin-bottom: 1rem;
}

/* Benefits list */
.bpw-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.bpw-benefits li {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    font-size: .95rem;
    color: #767B79;
    line-height: 1.55;
}

.bpw-benefits li i {
    color: #0570AE;
    font-size: 1rem;
    margin-top: .2rem;
    flex-shrink: 0;
}

/* DNA section */
.bpw-dna-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.bpw-dna-text p {
    color: #767B79;
    line-height: 1.75;
    font-size: .95rem;
    margin-bottom: 1rem;
}

.bpw-dna-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    position: relative;
}

.bpw-dna-images img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.bpw-dna-images img:first-child {
    grid-column: 1 / -1;
    height: 180px;
}

.bpw-dna-images img:not(:first-child) {
    height: 120px;
}

.bpw-dna-badge {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 10px;
    padding: .6rem .85rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
    text-align: center;
    font-size: .65rem;
    font-weight: 800;
    color: #0570AE;
    text-transform: uppercase;
    line-height: 1.3;
    white-space: nowrap;
}

/* Stats banner */
.bpw-stats-banner {
    background: linear-gradient(135deg, #0570AE 0%, #0570AE 100%);
    border-radius: 14px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.75rem;
}

.bpw-stats-badge {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #0570AE;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 800;
    line-height: 1.15;
    box-shadow: 0 8px 24px rgba(34, 197, 94, .35);
}

.bpw-stats-badge .num {
    font-size: 1.35rem;
}

.bpw-stats-badge .lbl {
    font-size: .68rem;
    font-weight: 700;
    opacity: .95;
}

.bpw-stats-banner h3 {
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.35;
}

/* Culture grid */
.bpw-culture-intro {
    color: #767B79;
    line-height: 1.7;
    font-size: .95rem;
    margin-bottom: 1.5rem;
}

.bpw-culture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.bpw-culture-card {
    background: #fff;
    border: 1px solid #C3C3C3;
    border-radius: 12px;
    padding: 1.35rem 1.15rem;
    transition: box-shadow .2s, transform .2s;
}

.bpw-culture-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.bpw-culture-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #ffffff;
    color: #0570AE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: .85rem;
}

.bpw-culture-card h4 {
    font-size: .92rem;
    font-weight: 700;
    color: #023B5E;
    margin-bottom: .45rem;
}

.bpw-culture-card p {
    font-size: .82rem;
    color: #767B79;
    line-height: 1.55;
    margin: 0;
}

/* Mid CTA */
.bpw-mid-cta {
    background: linear-gradient(135deg, #0570AE 0%, #0570AE 100%);
    border-radius: 14px;
    padding: 1.35rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.75rem;
}

.bpw-mid-cta img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, .4);
    flex-shrink: 0;
}

.bpw-mid-cta-text {
    flex: 1;
    min-width: 0;
}

.bpw-mid-cta-text h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 .2rem;
}

.bpw-mid-cta-text p {
    font-size: .82rem;
    color: rgba(255, 255, 255, .85);
    margin: 0;
}

.btn-bpw-mid {
    flex-shrink: 0;
    background: #fff;
    color: #0570AE;
    padding: .6rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all .2s;
}

.btn-bpw-mid:hover {
    background: #C3C3C3;
    color: #023B5E;
}

/* Employee testimonials */
.bpw-employees {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    margin-bottom: 3rem;
}

.bpw-employees .bpw-section-title {
    text-align: center;
    margin-bottom: 1.75rem;
}

.bpw-emp-slider {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.bpw-emp-slide {
    display: none;
    text-align: center;
}

.bpw-emp-slide.active {
    display: block;
}

.bpw-emp-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
}

.bpw-emp-quote {
    font-size: .98rem;
    color: #767B79;
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 1rem;
}

.bpw-emp-author strong {
    display: block;
    font-size: .95rem;
    color: #023B5E;
}

.bpw-emp-author span {
    font-size: .85rem;
    color: #767B79;
}

.bpw-emp-stars {
    color: #0570AE;
    font-size: .85rem;
    margin-top: .5rem;
}

.bpw-emp-nav {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin-top: 1.5rem;
}

.bpw-emp-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #C3C3C3;
    background: #fff;
    color: #0570AE;
    cursor: pointer;
    transition: all .2s;
}

.bpw-emp-nav button:hover {
    background: #0570AE;
    color: #fff;
    border-color: #0570AE;
}

/* Sidebar */
.bpw-sidebar {
    position: sticky;
    top: calc(var(--header-h, 78px) + var(--alert-h, 32px) + 16px);
}

.bpw-sidebar .testi-sidebar-form {
    margin-bottom: 1.25rem;
}

.bpw-widget {
    background: #fff;
    border: 1px solid #C3C3C3;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
}

.bpw-widget-title {
    font-size: 1rem;
    font-weight: 800;
    color: #023B5E;
    margin-bottom: 1rem;
}

.bpw-widget--green {
    background: linear-gradient(135deg, #0570AE, #0570AE);
    border: none;
    color: #fff;
}

.bpw-widget--green h4,
.bpw-widget--gradient h4,
.bpw-widget--orange h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: .5rem;
    color: #fff;
}

.bpw-widget--green p,
.bpw-widget--gradient p,
.bpw-widget--orange p {
    font-size: .82rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    opacity: .95;
}

.bpw-widget--gradient {
    background: linear-gradient(135deg, #0570AE, #023B5E);
    border: none;
    color: #fff;
}

.bpw-widget--orange {
    background: linear-gradient(135deg, #0570AE, #0570AE);
    border: none;
    color: #fff;
}

.bpw-widget-btn {
    display: inline-block;
    padding: .55rem 1.1rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
    transition: all .2s;
}

.bpw-widget-btn--white {
    background: #fff;
    color: #0570AE;
}

.bpw-widget--green .bpw-widget-btn--white { color: #0570AE; }
.bpw-widget--orange .bpw-widget-btn--white { color: #0570AE; }

.bpw-widget-btn--white:hover {
    opacity: .92;
    transform: translateY(-1px);
}

.bpw-widget-btn--orange {
    width: 100%;
    text-align: center;
    background: #0570AE;
    color: #fff;
}

.bpw-widget-btn--orange:hover {
    background: #0570AE;
    color: #fff;
}

.bpw-clients {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .65rem;
    align-items: center;
    margin-bottom: 1rem;
}

.bpw-clients img {
    width: 100%;
    height: 32px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .75;
}

/* Responsive */
@media (max-width: 991px) {
    .bpw-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .bpw-hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .bpw-gptw-badge {
        right: 10%;
    }

    .bpw-layout {
        grid-template-columns: 1fr;
    }

    .bpw-sidebar {
        position: static;
        order: -1;
    }

    .bpw-dna-grid {
        grid-template-columns: 1fr;
    }

    .bpw-culture-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bpw-stats-banner {
        flex-direction: column;
        text-align: center;
    }

    .bpw-mid-cta {
        flex-wrap: wrap;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .bpw-culture-grid {
        grid-template-columns: 1fr;
    }

    .bpw-gptw-badge {
        position: static;
        margin: 1rem auto 0;
    }

    .bpw-hero-visual img,
    .bpw-hero-visual .page-hero-img {
        max-width: min(260px, 90vw);
        max-height: 200px;
    }
}
