/* ===================================
    Pie Insights - brand layer
    Loaded last on every page. Re-skins the theme through its CSS variables;
    component markup and theme CSS stay untouched.
    Brand kit: Midnight #05061F, Ink #0B1033, Cyan #1ED8FF, Blue #2F6BFF,
    Violet #8A3DFF, Magenta #E43CF2, Pink #FF4FB4, Poppins.
====================================== */
:root {
    --base-color: #2F6BFF;
    --dark-gray: #0B1033;
    --medium-gray: #5D6278;
    --primary-font: 'Poppins', sans-serif;
    --alt-font: 'Poppins', sans-serif;
    --solitude-blue: #EEF2FF;
    --dark-slate-blue: #05061F;
    --extra-medium-slate-blue: #05061F;
    --slate-blue: #0B1033;
    --pie-cyan: #1ED8FF;
    --pie-violet: #8A3DFF;
    --pie-pink: #FF4FB4;
    --pie-gradient: linear-gradient(90deg, #1ED8FF 0%, #2F6BFF 35%, #8A3DFF 68%, #FF4FB4 100%);
}

/* logo: the horizontal brand logo carries a tagline, so it needs more height than the demo's 26px */
header .navbar-brand img {
    max-height: 46px;
}
footer .footer-logo img {
    max-height: 56px;
}
/* footer link columns size to their content on desktop, so link labels stay on one line */
@media (min-width: 992px) {
    footer ul li a {
        white-space: nowrap;
    }
}
@media (min-width: 1200px) {
    footer .footer-contact-line {
        white-space: nowrap;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    footer {
        font-size: 15px;
    }
}

/* demo overlays and tints, re-coloured */
.bg-gradient-sherpa-blue-black {
    background-image: linear-gradient(to right top, #05061F, #0B1033, #161a5c, #2a1f6b, #3a1f70);
}
.bg-base-color-transparent {
    background-color: rgba(47, 107, 255, .85);
}

/* brand colour + gradient helpers */
.text-pie-cyan {
    color: var(--pie-cyan);
}
.text-gradient-pie {
    background-image: var(--pie-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bg-gradient-pie {
    background-image: var(--pie-gradient);
}
.separator-gradient-pie {
    height: 4px;
    width: 60px;
    border-radius: 4px;
    background-image: var(--pie-gradient);
}

/* service cards mix images from two demos; give them one shape */
.services-box-style-01 .box-image img,
.services-box-style-03 .position-relative > a img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* header nav: six items plus the Join button need a little less room than the demo's five */
@media (max-width: 1399px) {
    .navbar .navbar-nav .nav-link {
        padding-left: 12px;
        padding-right: 12px;
        font-size: 15px;
    }
}

/* header button: keep "Join Our Community" on one line */
header .header-button .btn {
    white-space: nowrap;
}
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar .navbar-nav .nav-link {
        padding-left: 7px;
        padding-right: 7px;
        font-size: 14px;
    }
}

/* blog: category filter pills (plain links, filtered server-side — not the theme's isotope filter) */
.blog-category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-category-filter li a {
    display: inline-block;
    padding: 7px 24px;
    border-radius: 40px;
    border: 1px solid var(--extra-medium-gray);
    color: var(--medium-gray);
    font-size: 15px;
    font-weight: 500;
    line-height: 26px;
    transition: all .3s ease;
}
.blog-category-filter li a:hover {
    color: var(--dark-gray);
    border-color: var(--dark-gray);
}
.blog-category-filter li.active a {
    background-color: var(--base-color);
    border-color: var(--base-color);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(47, 107, 255, .25);
}

/* blog cards: equal heights — fixed image shape, category on the image, clamped title and excerpt */
.pie-blog-card .blog-image img {
    width: 100%;
    aspect-ratio: 600 / 430;
    object-fit: cover;
}
.pie-blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    max-width: calc(100% - 40px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 2px 14px;
    border-radius: 40px;
    background-color: var(--white);
    color: var(--dark-gray);
    font-size: 12px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: .5px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .12);
    transition: all .3s ease;
}
.pie-blog-category:hover {
    background-color: var(--base-color);
    color: var(--white);
}
.pie-blog-date {
    display: block;
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 10px;
    color: var(--medium-gray);
}
.pie-clamp-title,
.pie-clamp-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pie-clamp-title {
    -webkit-line-clamp: 2;
    line-height: 28px;
    height: 56px;
    margin-bottom: 12px;
}
.pie-clamp-excerpt {
    -webkit-line-clamp: 3;
    font-size: 15px;
    line-height: 26px;
    height: 78px;
}

/* about: team photos share one portrait shape whatever size is uploaded */
.pie-team-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

/* home: industry tiles (not links — "View all industries" leads to the page; hover is decorative) */
.pie-industry-card {
    border: 1px solid transparent;
    transition: transform .3s ease, border-color .3s ease;
}
.pie-industry-card:hover {
    transform: translateY(-4px);
    border-color: var(--base-color);
}
.pie-industry-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--solitude-blue);
    color: var(--base-color);
    font-size: 26px;
    transition: all .3s ease;
}

/* industries page: sector cards */
.pie-sector-card {
    border: 1px solid transparent;
    transition: transform .3s ease, border-color .3s ease;
}
.pie-sector-card:hover {
    transform: translateY(-4px);
    border-color: var(--base-color);
}
.pie-sector-focus {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pie-sector-focus li {
    display: flex;
    align-items: center;
    font-size: 15px;
    line-height: 26px;
    color: var(--dark-gray);
    margin-bottom: 4px;
}
.pie-sector-focus li:last-child {
    margin-bottom: 0;
}
.pie-sector-focus li i {
    font-size: 12px;
    color: var(--base-color);
    margin-right: 10px;
}

/* brand signature: a thin gradient rule at the foot of every inner page banner and on top of the footer */
.page-title-big-typography {
    position: relative;
}
.page-title-big-typography::after,
footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 4px;
    background-image: var(--pie-gradient);
    z-index: 2;
}
.page-title-big-typography::after {
    bottom: 0;
}
footer {
    position: relative;
}
footer::before {
    top: 0;
}

/* icon circles fill with the brand gradient on hover */
.pie-industry-card:hover .pie-industry-icon,
.pie-sector-card:hover .pie-industry-icon {
    background-color: transparent;
    background-image: var(--pie-gradient);
    color: var(--white);
}

/* call-to-action band: deep midnight with a soft violet/pink glow */
.pie-cta-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 88% 15%, rgba(138, 61, 255, .45), transparent 45%),
        radial-gradient(circle at 10% 100%, rgba(30, 216, 255, .18), transparent 40%);
    pointer-events: none;
}

/* home: testimonials */
.pie-testimonial-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-image: var(--pie-gradient);
    color: var(--white);
    font-size: 28px;
}
.pie-testimonials-pagination {
    bottom: auto !important;
}
.pie-testimonials-pagination .swiper-pagination-bullet-active {
    background-color: var(--base-color);
}

/* service pages: floating badge on the intro image (service icon + short label) */
.pie-service-badge {
    width: 220px;
    padding: 28px 24px;
    z-index: 1;
}
.pie-service-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-image: var(--pie-gradient);
    color: var(--white);
    font-size: 26px;
}
@media (max-width: 575px) {
    .pie-service-badge {
        width: 170px;
        padding: 20px 16px;
    }
    .pie-service-badge-icon {
        width: 48px;
        height: 48px;
        font-size: 21px;
    }
}

/* in-page anchors land below the sticky header */
.pie-anchor {
    scroll-margin-top: 110px;
}

/* career: reasons to join */
.pie-reason-card {
    border: 1px solid transparent;
    transition: transform .3s ease, border-color .3s ease;
}
.pie-reason-card:hover {
    transform: translateY(-4px);
    border-color: var(--base-color);
}
.pie-reason-number {
    display: inline-block;
    font-family: var(--alt-font);
    font-size: 42px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -1px;
}

/* career: job meta pills, openings accordion and application form */
.pie-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.pie-job-meta li {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 40px;
    background-color: var(--white);
    border: 1px solid var(--extra-medium-gray);
    font-size: 14px;
    line-height: 24px;
    color: var(--dark-gray);
}
.pie-job-meta li i,
.pie-job-meta li .feather {
    color: var(--base-color);
    margin-right: 6px;
}
.pie-apply-card label {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 5px;
}
.pie-apply-card .form-control {
    padding: 10px 18px;
}
.pie-apply-card .form-text {
    font-size: 13px;
    line-height: 20px;
    margin-top: 5px;
}

/* career: openings accordion */
.pie-job {
    border: 1px solid transparent;
    transition: border-color .3s ease;
}
.pie-job:hover,
.pie-job.active-accordion {
    border-color: var(--base-color);
}
#accordion-jobs .pie-job .accordion-title .pie-job-toggle {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--base-color);
}
.pie-job .accordion-header a:focus {
    outline: none;
}

/* forms: section headings inside long forms (join our community, career apply) */
.form-section-title {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--base-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--extra-medium-gray);
}
.form-check .form-check-input {
    width: 18px;
    height: 18px;
    padding: 0;
    margin-top: 3px;
    border-color: var(--light-gray);
}
.form-check .form-check-input:checked {
    background-color: var(--base-color);
    border-color: var(--base-color);
}
.form-check .form-check-input.is-invalid {
    border-color: var(--red);
}
.form-check-label a {
    color: var(--dark-gray);
    text-decoration: underline;
}

/* content pages (privacy, terms, blog details): typography for HTML that comes from the CMS */
.pie-content h2 {
    font-size: 26px;
    line-height: 36px;
    margin: 45px 0 15px;
}
.pie-content h3 {
    font-size: 21px;
    line-height: 30px;
    margin: 35px 0 12px;
}
.pie-content h2:first-child,
.pie-content h3:first-child {
    margin-top: 0;
}
.pie-content ul,
.pie-content ol {
    padding-left: 20px;
    margin-bottom: 25px;
}
.pie-content ul li {
    list-style: disc;
}
.pie-content ol li {
    list-style: decimal;
}
.pie-content li::marker {
    color: var(--base-color);
}
.pie-content li {
    margin-bottom: 8px;
}
.pie-content a {
    color: var(--base-color);
    text-decoration: underline;
}
.pie-content blockquote {
    border-left: 4px solid var(--base-color);
    padding: 10px 0 10px 30px;
    margin: 35px 0;
    font-size: 20px;
    line-height: 34px;
    color: var(--dark-gray);
}
.pie-content img {
    border-radius: 6px;
    margin: 15px 0 25px;
}
