/* ---- Q&A Engineers brand overrides ---- */

/* Logo bar: black instead of red so the red script logo pops */
.header-style-1 .pbmit-logo-area:before {
    background-color: var(--pbmit-blackish-color);
}

/* Logo sizing */
.header-style-1 .pbmit-main-logo {
    max-height: 84px;
    width: auto;
    position: relative;
    z-index: 1;
}
.header-style-1 .site-title {
    display: flex;
    align-items: center;
}
.pbmit-sticky-logo {
    max-height: 56px;
    width: auto;
}
footer img[src*="footer-logo"] {
    max-height: 90px;
    width: auto;
}

/* Title-bar / breadcrumb logo safety */
.pbmit-title-bar-wrapper img {
    max-width: 100%;
}
/* Inline TikTok SVG icon sized to match the icon-font social icons */
.pbmit-social-links svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: middle;
    display: inline-block;
}
/* Title-bar: dark gradient overlay so the white heading stays readable over any photo */
.pbmit-title-bar-wrapper:before {
    background-image: linear-gradient(90deg, rgba(17, 16, 16, .82) 0%, rgba(17, 16, 16, .60) 55%, rgba(17, 16, 16, .38) 100%) !important;
}
/* Per-section title-bar banners (replace any single file to change just that section) */
.pbmit-title-bar-wrapper.qa-tb-about          { background-image: url(../images/qa/title-about.jpg); }
.pbmit-title-bar-wrapper.qa-tb-services       { background-image: url(../images/qa/title-services.jpg); }
.pbmit-title-bar-wrapper.qa-tb-projects       { background-image: url(../images/qa/title-projects.jpg); }
.pbmit-title-bar-wrapper.qa-tb-careers        { background-image: url(../images/qa/title-careers.jpg); }
.pbmit-title-bar-wrapper.qa-tb-responsibility { background-image: url(../images/qa/title-responsibility.jpg); }
.pbmit-title-bar-wrapper.qa-tb-news           { background-image: url(../images/qa/title-news.jpg); }
.pbmit-title-bar-wrapper.qa-tb-contact        { background-image: url(../images/qa/title-contact.jpg); }

/* ---- Vacancies page ---- */
.qa-vacancies .accordion-item {
    margin-bottom: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 6px !important;
    overflow: hidden;
}
.qa-vacancies .accordion-button {
    font-family: 'Teko', sans-serif;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--pbmit-blackish-color);
    padding: 18px 24px;
}
.qa-vacancies .accordion-button:not(.collapsed) {
    background-color: var(--pbmit-blackish-color);
    color: #fff;
    box-shadow: none;
}
.qa-vacancies .accordion-button:not(.collapsed)::after {
    filter: invert(1);
}
.qa-vacancies .accordion-button:focus {
    box-shadow: none;
    border-color: var(--pbmit-global-color);
}
.qa-vac-badge {
    display: inline-block;
    margin-left: 14px;
    padding: 3px 14px 1px;
    font-size: 15px;
    letter-spacing: 1px;
    color: #fff;
    background-color: var(--pbmit-global-color);
    border-radius: 20px;
}
.qa-vacancies .accordion-body {
    padding: 26px 28px;
}
.qa-vac-meta {
    color: var(--pbmit-blackish-color);
    border-top: 1px dashed #ddd;
    padding-top: 14px;
}
.qa-no-vacancy-note {
    margin-top: 30px;
    padding: 20px 26px;
    background-color: var(--pbmit-light-color);
    border-left: 4px solid var(--pbmit-global-color);
}
.qa-form-title {
    color: var(--pbmit-blackish-color);
    margin-bottom: 24px;
}
#apply {
    scroll-margin-top: 120px;
    padding-bottom: 90px;
}
/* Vacancies application form: align the black box with the form, tidy padding */
#apply .row {
    align-items: stretch;
}
#apply .contact-ihbox {
    margin: 0;
    height: 100%;
}
#apply .contact-form-single {
    padding: 60px 55px;
}
#apply .contact-form-single::before {
    display: none;
}
@media (max-width: 991px) {
    #apply .contact-form-single {
        padding: 45px 30px;
    }
    #apply {
        padding-bottom: 60px;
    }
}

/* ===== Contact page: Branches table ===== */
.qa-branches {
    padding: 70px 0 10px;
}
.qa-branches .pbmit-heading-subheading {
    margin-bottom: 34px;
}
.qa-branches-table-wrap {
    overflow-x: auto;
}
.qa-branches-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 17px;
}
.qa-branches-table thead th {
    text-align: left;
    padding: 16px 22px;
    background-color: var(--pbmit-blackish-color);
    color: #fff;
    font-family: var(--pbmit-heading-typography-font-family);
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    font-size: 14px;
}
.qa-branches-table tbody td {
    padding: 18px 22px;
    border-bottom: 1px solid #e9e9e9;
    vertical-align: middle;
    color: var(--pbmit-blackish-color);
}
.qa-branches-table tbody tr:nth-child(even) {
    background-color: var(--pbmit-light-color);
}
.qa-branches-table tbody tr:hover {
    background-color: #f3f0ec;
}
.qa-branches-table a {
    color: var(--pbmit-blackish-color);
}
.qa-branches-table a:hover {
    color: var(--pbmit-global-color);
}
.qa-branch-tag {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 11px 1px;
    font-size: 12px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #fff;
    background-color: var(--pbmit-global-color);
    border-radius: 20px;
    vertical-align: middle;
}
@media (max-width: 767px) {
    .qa-branches-table thead {
        display: none;
    }
    .qa-branches-table, .qa-branches-table tbody, .qa-branches-table tr, .qa-branches-table td {
        display: block;
        width: 100%;
    }
    .qa-branches-table tr {
        margin-bottom: 18px;
        border: 1px solid #e9e9e9;
    }
    .qa-branches-table tbody td {
        border-bottom: 1px solid #f0f0f0;
        padding: 12px 16px;
        display: flex;
        justify-content: space-between;
        gap: 16px;
    }
    .qa-branches-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        text-transform: uppercase;
        font-size: 12px;
        color: var(--pbmit-global-color);
        flex-shrink: 0;
    }
    .qa-branches-table tbody td a {
        text-align: right;
        word-break: break-word;
    }
}

/* ===== Preloader ===== */
.qa-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    background-color: #fff;
    transition: opacity .45s ease, visibility .45s ease;
}
.qa-preloader img {
    max-width: 180px;
    height: auto;
    animation: qa-preloader-pulse 1.6s ease-in-out infinite;
}
.qa-preloader-bar {
    width: 180px;
    height: 3px;
    background-color: #eee;
    border-radius: 3px;
    overflow: hidden;
}
.qa-preloader-bar span {
    display: block;
    height: 100%;
    width: 40%;
    background-color: var(--pbmit-global-color);
    border-radius: 3px;
    animation: qa-preloader-slide 1.1s ease-in-out infinite;
}
.qa-preloader-hidden {
    opacity: 0;
    visibility: hidden;
}
@keyframes qa-preloader-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .55; }
}
@keyframes qa-preloader-slide {
    0% { margin-left: -40%; }
    100% { margin-left: 100%; }
}

/* ===== Back to top ===== */
.qa-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 9999;
    width: 52px;
    height: 52px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}
.qa-top.qa-top-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.qa-top svg {
    width: 52px;
    height: 52px;
    transform: rotate(-90deg);
}
.qa-top svg circle {
    fill: #fff;
    stroke: #e5e5e5;
    stroke-width: 3;
}
.qa-top svg circle.qa-top-progress {
    fill: none;
    stroke: var(--pbmit-global-color);
    stroke-linecap: round;
    transition: stroke-dashoffset .15s linear;
}
.qa-top i {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--pbmit-blackish-color);
}
.qa-top:hover i {
    color: var(--pbmit-global-color);
}

/* ===== Title-bar subtitle ===== */
.qa-tbar-sub {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, .85);
    font-size: 17px;
    letter-spacing: .3px;
}

/* ===== Contact map ===== */
.qa-map-section {
    line-height: 0;
    margin-top: 50px;
}

/* ===== Contact info box: stop long text (emails/address) from clipping ===== */
.contact-ihbox .pbmit-ihbox-contents {
    min-width: 0;
}
.contact-ihbox .pbmit-heading-desc {
    overflow-wrap: anywhere;
    word-break: break-word;
}
@media (min-width: 992px) {
    .contact-form .col-md-5 { width: 40% !important; }
    .contact-form .col-md-7 { width: 60% !important; }
    .contact-form .contact-ihbox { padding: 60px 40px 60px 45px; }
}

/* ===== Projects page: filter bar, rows & badges ===== */
.qa-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 10px 0 8px;
}
.qa-filter-search {
    position: relative;
    flex: 1 1 320px;
}
.qa-filter-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9a9a9a;
    pointer-events: none;
}
.qa-filter-search input {
    width: 100%;
    height: 54px;
    padding: 0 18px 0 46px;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    background-color: #fff;
    font-size: 16px;
    color: var(--pbmit-blackish-color);
    outline: none;
    transition: border-color .2s ease;
}
.qa-filter-search input:focus {
    border-color: var(--pbmit-global-color);
}
.qa-filter-select {
    flex: 0 1 260px;
    height: 54px;
    padding: 0 16px;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    background-color: #fff;
    font-size: 16px;
    color: var(--pbmit-blackish-color);
    outline: none;
    cursor: pointer;
    transition: border-color .2s ease;
}
.qa-filter-select:focus {
    border-color: var(--pbmit-global-color);
}
.qa-filter-count {
    margin: 0 0 24px;
    font-size: 14px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #8a8a8a;
}
.qa-project-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 26px;
    margin-bottom: 14px;
    background-color: #fff;
    border: 1px solid #ececec;
    border-left: 4px solid var(--pbmit-global-color);
    border-radius: 4px;
    transition: box-shadow .25s ease, transform .25s ease;
}
.qa-project-row:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}
.qa-project-main {
    min-width: 0;
}
.qa-project-title {
    margin: 0 0 6px;
    font-size: 21px;
    line-height: 1.35;
    color: var(--pbmit-blackish-color);
}
.qa-project-meta {
    margin: 0;
    font-size: 15px;
    color: #7c7c7c;
}
.qa-project-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
    text-align: right;
}
.qa-project-value {
    font-family: var(--pbmit-heading-typography-font-family);
    font-size: 22px;
    font-weight: 600;
    color: var(--pbmit-blackish-color);
    white-space: nowrap;
}
.qa-badge {
    display: inline-block;
    padding: 3px 14px 2px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 20px;
    white-space: nowrap;
}
.qa-badge-current {
    color: #fff;
    background-color: var(--pbmit-global-color);
}
.qa-badge-completed {
    color: var(--pbmit-blackish-color);
    background-color: #ececec;
}
.qa-no-results {
    padding: 40px 0;
    text-align: center;
    color: #8a8a8a;
}
@media (max-width: 767px) {
    .qa-project-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .qa-project-side {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }
}

/* ===== About page: Development & Empowerment ===== */
.qa-dev-section {
    background-color: var(--pbmit-light-color);
}
.qa-dev-card {
    height: 100%;
    padding: 34px 30px;
    background-color: #fff;
    border-bottom: 3px solid var(--pbmit-global-color);
    transition: box-shadow .25s ease, transform .25s ease;
}
.qa-dev-card:hover {
    box-shadow: 0 14px 34px rgba(0, 0, 0, .08);
    transform: translateY(-3px);
}
.qa-dev-card i {
    display: block;
    margin-bottom: 18px;
    font-size: 44px;
    color: var(--pbmit-global-color);
}
.qa-dev-card h3 {
    margin-bottom: 12px;
    font-size: 24px;
}
.qa-dev-card p {
    margin: 0 0 14px;
    color: #666;
}
.qa-dev-card .btn-arrow {
    font-weight: 600;
}

/* ===== Premium polish ===== */
html {
    scroll-behavior: smooth;
}
::selection {
    background-color: var(--pbmit-global-color);
    color: #fff;
}
/* Gentle lift on cards */
.pbmit-service-style-1 .pbminfotech-post-item,
.pbmit-team-style-1 .pbminfotech-post-item,
.pbmit-blog-style-1 .post-item {
    transition: transform .3s ease, box-shadow .3s ease;
}
.pbmit-service-style-1 .pbminfotech-post-item:hover,
.pbmit-team-style-1 .pbminfotech-post-item:hover,
.pbmit-blog-style-1 .post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .10);
}
/* Visible keyboard focus in brand colour */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--pbmit-global-color);
    outline-offset: 2px;
}
/* Skip-to-content (visible only when focused) */
.qa-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    padding: 12px 20px;
    background-color: var(--pbmit-blackish-color);
    color: #fff;
    font-weight: 600;
    letter-spacing: .5px;
}
.qa-skip-link:focus {
    left: 0;
    color: #fff;
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .pbmit-service-style-1 .pbminfotech-post-item,
    .pbmit-team-style-1 .pbminfotech-post-item,
    .pbmit-blog-style-1 .post-item {
        transition: none;
    }
}

/* ===== Service detail sections (alternating layout) ===== */
.bg-light-qa {
    background-color: var(--pbmit-light-color);
}
.bg-dark-qa {
    background-color: var(--pbmit-blackish-color);
}
.qa-tick-list {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
}
.qa-tick-list li {
    position: relative;
    padding: 6px 0 6px 32px;
    color: var(--pbmit-blackish-color);
}
.qa-tick-list li::before {
    content: "\f00c";
    font-family: 'FontAwesome';
    color: var(--pbmit-global-color);
    position: absolute;
    left: 0;
    top: 6px;
    font-size: 14px;
}
.qa-value-item {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}
.qa-value-item .qa-value-icon {
    flex: 0 0 56px;
    height: 56px;
    border: 2px solid var(--pbmit-global-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pbmit-global-color);
    font-size: 24px;
    transition: all .35s ease;
}
.qa-value-item:hover .qa-value-icon {
    background-color: var(--pbmit-global-color);
    color: #fff;
    transform: rotate(-6deg) scale(1.05);
}
.qa-value-item h5 {
    margin: 0;
}
.qa-lift {
    transition: transform .4s cubic-bezier(.23, 1, .32, 1), box-shadow .4s ease;
}
.qa-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 44px rgba(17, 16, 16, .14);
}
.qa-lift.pbmit-featured-wrapper {
    overflow: hidden;
}
.qa-lift img {
    transition: transform .7s cubic-bezier(.23, 1, .32, 1);
}
.qa-lift:hover img {
    transform: scale(1.07);
}
/* Anchored sections land clear of the sticky header */
.page-content section[id] {
    scroll-margin-top: 110px;
}
/* Breathing room between the dark band and the footer */
.page-content section.bg-dark-qa {
    margin-bottom: 90px;
}
@media (max-width: 767px) {
    .page-content section.bg-dark-qa {
        margin-bottom: 60px;
    }
}

/* ===== Homepage: marquee, cert badge, news tags ===== */
.qa-marquee-section {
    background-color: var(--pbmit-blackish-color);
    padding: 26px 0;
    overflow: hidden;
}
.qa-marquee-item {
    font-family: 'Teko', sans-serif;
    font-size: 54px;
    font-weight: 600;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .55);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 28px;
    padding-right: 28px;
    transition: color .3s;
}
.qa-marquee-item i {
    color: var(--pbmit-global-color);
    font-size: 22px;
    -webkit-text-stroke: 0;
    font-style: normal;
}
.qa-marquee-item:hover {
    color: #fff;
    -webkit-text-stroke-color: transparent;
}
@media (max-width: 767px) {
    .qa-marquee-item {
        font-size: 40px;
    }
}
.section-lgb {
    padding: 90px 0 60px;
}
.qa-cert-badge {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #fff;
    padding: 22px 26px;
    box-shadow: 0 12px 30px rgba(17, 16, 16, .08);
}
.qa-cert-badge img {
    max-height: 74px;
}
.qa-news-tag {
    display: inline-block;
    background-color: var(--pbmit-global-color);
    color: #fff;
    font-family: 'Teko', sans-serif;
    letter-spacing: 2px;
    font-size: 15px;
    text-transform: uppercase;
    padding: 3px 12px;
    margin-bottom: 12px;
}
/* ===== Video-background section (homepage Team CTA) ===== */
.qa-video-section {
    position: relative;
    overflow: hidden;
    background-color: var(--pbmit-blackish-color);
}
.qa-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    border: 0;
    pointer-events: none;
}
.qa-video-section .qa-video-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(17, 16, 16, .62);
    z-index: 1;
}
.qa-video-section .container {
    position: relative;
    z-index: 2;
}
.qa-video-section .pbmit-subtitle {
    color: var(--pbmit-global-color);
}
.qa-video-section .pbmit-title {
    color: #fff;
}
.qa-video-section .lead {
    color: rgba(255, 255, 255, .9);
}
.qa-video-section .btn-arrow {
    color: #fff;
}
.qa-video-section .btn-arrow:hover {
    color: var(--pbmit-global-color);
}

/* News page: year filter bar */
.qa-news-filter {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.qa-news-filter-label {
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 19px;
    color: var(--pbmit-blackish-color);
}
.qa-news-filter .qa-filter-select {
    flex: 0 0 auto;
    min-width: 170px;
    height: 48px;
}
.qa-news-count {
    font-size: 13px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #9a9a9a;
    margin-left: auto;
}

/* Picture gallery (e.g. Mandela Day CSI page) */
.qa-gallery-item {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background-color: #f4f4f9;
    border-radius: 4px;
    cursor: zoom-in;
}
.qa-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.23, 1, .32, 1);
}
.qa-gallery-item:hover img {
    transform: scale(1.07);
}
.qa-gallery-item::after {
    content: "\2b";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #fff;
    background-color: rgba(17, 16, 16, .35);
    opacity: 0;
    transition: opacity .3s ease;
}
.qa-gallery-item:hover::after {
    opacity: 1;
}

/* News card date line */
.qa-news-date {
    display: block;
    margin: -4px 0 10px;
    font-family: var(--pbmit-heading-typography-font-family);
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #9a9a9a;
}
/* Uniform image frame for the homepage "What's happening" news cards */
.qa-newscard-media {
    aspect-ratio: 6 / 5;
    overflow: hidden;
    background-color: #f4f4f9;
}
.qa-newscard-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
}
/* Dark sections: counters and form fields keep contrast */
.bg-dark-qa .pbmit-fid-title,
.bg-dark-qa .pbmit-fid-inner {
    color: #fff;
}

/* ===== Homepage: mission/vision/values pillars ===== */
.qa-pillar {
    position: relative;
    height: 100%;
    background-color: #fff;
    padding: 36px 30px 32px;
    border-bottom: 3px solid var(--pbmit-global-color);
    box-shadow: 0 10px 26px rgba(17, 16, 16, .05);
    transition: transform .35s ease, box-shadow .35s ease;
}
.qa-pillar:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(17, 16, 16, .10);
}
.qa-pillar-num {
    position: absolute;
    top: 24px;
    right: 26px;
    font-family: 'Teko', sans-serif;
    font-size: 56px;
    font-weight: 600;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.4px var(--pbmit-global-color);
}
.qa-pillar .qa-pillar-icon {
    display: block;
    margin-bottom: 16px;
    font-size: 42px;
    color: var(--pbmit-global-color);
}
.qa-pillar h3 {
    font-size: 26px;
    margin-bottom: 12px;
}
.qa-pillar p {
    color: #666;
    margin-bottom: 14px;
}
.qa-pillar .qa-tick-list {
    margin-top: 0;
}
.qa-pillar .qa-tick-list li {
    padding: 4px 0 4px 30px;
}

/* ===== Homepage: FAQ accordion ===== */
.qa-faq .accordion-item {
    margin-bottom: 18px;
    border: 1px solid #e5e5e5;
    border-radius: 6px !important;
    overflow: hidden;
    background-color: #fff;
}
.qa-faq .accordion-button {
    font-family: 'Teko', sans-serif;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--pbmit-blackish-color);
    background-color: #fff;
    padding: 16px 24px;
}
.qa-faq .accordion-button:not(.collapsed) {
    background-color: var(--pbmit-blackish-color);
    color: #fff;
    box-shadow: none;
}
.qa-faq .accordion-button:not(.collapsed)::after {
    filter: invert(1);
}
.qa-faq .accordion-button:focus {
    box-shadow: none;
    border-color: var(--pbmit-global-color);
}
.qa-faq .accordion-body {
    padding: 20px 24px;
    color: #666;
}

/* ===== Accreditation badge row ===== */
.qa-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.qa-badge-row .qa-cert-badge {
    flex: 1 1 220px;
    padding: 16px 18px;
    gap: 14px;
}
.qa-badge-row .qa-cert-badge img {
    max-height: 62px;
    flex-shrink: 0;
}
.qa-badge-row .qa-cert-badge h5 {
    font-size: 19px;
}
.qa-badge-row .qa-cert-badge span {
    font-size: 14px;
    color: #777;
    line-height: 1.45;
}
.qa-cert-fallback {
    flex: 0 0 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--pbmit-global-color);
    border-radius: 50%;
    font-size: 30px;
    color: var(--pbmit-global-color);
}
/* Centered variant for full-width sections (e.g. About page) */
.qa-badge-row-center {
    max-width: 960px;
    margin: 40px auto 0;
    justify-content: center;
}

/* ===== Accreditation logo band (real logos) ===== */
.qa-accred-label {
    display: block;
    font-family: 'Teko', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 16px;
    color: var(--pbmit-global-color);
    margin-bottom: 12px;
}
.qa-accred-band {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 26px;
    background-color: #fff;
    padding: 26px 32px;
    box-shadow: 0 12px 30px rgba(17, 16, 16, .07);
}
.qa-accred-band img {
    display: block;
    width: auto;
}
.qa-accred-main {
    max-height: 170px;
    max-width: 100%;
}
.qa-accred-iso {
    max-height: 118px;
}
.qa-accred-center {
    max-width: 880px;
    margin: 40px auto 0;
}

/* ===== Continuous marquee ===== */
.qa-marquee-track {
    display: flex;
    width: max-content;
    animation: qa-marquee-scroll 45s linear infinite;
}
.qa-marquee-group {
    display: flex;
    flex-shrink: 0;
}
.qa-marquee-section:hover .qa-marquee-track {
    animation-play-state: paused;
}
@keyframes qa-marquee-scroll {
    to { transform: translateX(-50%); }
}

/* ===== Index micro-animations ===== */
/* Counter icons drift gently, offset per column */
.bg-dark-qa .pbmit-sbox-icon-wrapper i {
    display: inline-block;
    animation: qa-float 3.6s ease-in-out infinite;
}
.bg-dark-qa .col-md-3:nth-child(2) .pbmit-sbox-icon-wrapper i { animation-delay: .5s; }
.bg-dark-qa .col-md-3:nth-child(3) .pbmit-sbox-icon-wrapper i { animation-delay: 1s; }
.bg-dark-qa .col-md-3:nth-child(4) .pbmit-sbox-icon-wrapper i { animation-delay: 1.5s; }
@keyframes qa-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
/* Pillars: numeral fills red, icon tips like the value tiles */
.qa-pillar-num {
    transition: color .35s ease;
}
.qa-pillar:hover .qa-pillar-num {
    color: var(--pbmit-global-color);
    -webkit-text-stroke-color: transparent;
}
.qa-pillar .qa-pillar-icon {
    transition: transform .35s ease;
}
.qa-pillar:hover .qa-pillar-icon {
    transform: rotate(-6deg) scale(1.1);
}
/* Service card icons flip once on hover */
.pbmit-service-style-1 .pbmit-service-icon-wrapper i {
    display: inline-block;
    transition: transform .7s ease;
}
.pbmit-service-style-1 .pbminfotech-post-item:hover .pbmit-service-icon-wrapper i {
    transform: rotateY(360deg);
}
/* Dark-band form fields glow on focus */
.bg-dark-qa .form-control:focus {
    border-color: var(--pbmit-global-color);
    box-shadow: 0 0 0 3px rgba(252, 0, 18, .18);
}
/* Respect reduced-motion for all custom animation */
@media (prefers-reduced-motion: reduce) {
    .qa-marquee-track,
    .bg-dark-qa .pbmit-sbox-icon-wrapper i,
    .qa-preloader img,
    .qa-preloader-bar span {
        animation: none !important;
    }
    .pbmit-service-style-1 .pbmit-service-icon-wrapper i,
    .qa-pillar .qa-pillar-icon {
        transition: none;
    }
}

/* ===== Uniform leadership headshots ===== */
.pbmit-team-style-1 .pbminfotech-team-image-box .pbmit-featured-wrapper {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}
.pbmit-team-style-1 .pbminfotech-team-image-box .pbmit-featured-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 8%;
}

/* ===== Featured news item (e.g. new appointment) ===== */
.qa-news-feature {
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    box-shadow: 0 14px 34px rgba(17, 16, 16, .08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 44px;
}
.qa-news-feature-media {
    flex: 1 1 300px;
    background-color: var(--pbmit-light-color);
}
.qa-news-feature-media img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    object-position: center 12%;
    display: block;
}
.qa-news-feature-body {
    flex: 1 1 440px;
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.qa-news-feature-body h3 {
    font-size: 32px;
    line-height: 1.2;
    margin: 8px 0 16px;
}
.qa-news-feature-body p {
    color: #666;
    margin-bottom: 24px;
}
.qa-news-feature-body .qa-news-feature-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}
@media (max-width: 575px) {
    .qa-news-feature-body {
        padding: 30px 26px;
    }
    .qa-news-feature-body h3 {
        font-size: 26px;
    }
}

/* ===== News single post ===== */
.pbmit-single-post .pbmit-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    color: var(--pbmit-global-color);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .3px;
    text-transform: uppercase;
}
.pbmit-single-post .pbmit-post-meta i {
    margin-right: 7px;
}
.pbmit-single-title {
    margin-bottom: 22px;
}
.pbmit-single-post p {
    margin-bottom: 20px;
    line-height: 1.8;
}
.pbmit-single-nav {
    border-top: 1px solid #e9e9e9;
}

/* Footer CONTACT US links (phone/email) were inheriting the near-black site
   link colour (--pbmit-link-color-normal: #111010) and rendered invisible on
   the dark footer — only their icons showed. Make them visible. */
.site-footer .widget .textwidget a {
    color: #ffffff;
}
.site-footer .widget .textwidget a:hover {
    color: var(--pbmit-global-color);
}

/* ---- Form feedback messages (contact / homepage / vacancies) ---- */
.message-status {
    width: 100%;
}
.qa-form-alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.5;
}
.qa-form-alert--success {
    background: #e6f7ec;
    color: #1a7f43;
    border: 1px solid #b7e3c6;
}
.qa-form-alert--error {
    background: #fdecec;
    color: #c0392b;
    border: 1px solid #f5c2c0;
}

/* ---- News: embedded video + promotion cards (news-promotions.html) ---- */
.qa-news-video-wrap {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    background: #000;
}
.qa-news-video {
    display: block;
    width: 100%;
    height: auto;
    background: #000;
}
.qa-promo-card {
    height: 100%;
    background: #fff;
    border: 1px solid #ececec;
    border-top: 4px solid var(--pbmit-global-color, #fc0012);
    border-radius: 8px;
    padding: 26px 24px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .05);
}
.qa-promo-photo {
    position: relative;
    width: 100%;
    padding-top: 125%; /* uniform 4:5 portrait frame */
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 18px;
    background: #ededed;
}
.qa-promo-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.qa-promo-tagline {
    display: block;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--pbmit-global-color, #fc0012);
    margin-bottom: 8px;
}
.qa-promo-name {
    font-size: 22px;
    margin: 0 0 12px;
}
.qa-promo-position {
    font-weight: 600;
    margin: 0 0 2px;
}
.qa-promo-role {
    color: #777;
    font-size: 14px;
    margin: 0 0 12px;
}

/* ---- CV upload field on the vacancies application form ---- */
.qa-file-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.qa-file-label span {
    font-weight: 400;
    color: #777;
}
.qa-file-input {
    padding: 10px 12px;
    background: #fff;
}

/* ---- Careers: "Why join" benefit rows + Qualifications card ---- */
.qa-careers-why .qa-benefit {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.qa-careers-why .qa-benefit:first-child {
    padding-top: 0;
}
.qa-careers-why .qa-benefit:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.qa-benefit-icon {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--pbmit-global-color, #fc0012);
    box-shadow: 0 8px 20px rgba(252, 0, 18, .25);
    transition: transform .3s ease;
}
.qa-benefit-icon i {
    color: #fff;
    font-size: 26px;
    line-height: 1;
}
.qa-benefit:hover .qa-benefit-icon {
    transform: translateY(-4px);
}
.qa-benefit-body h5 {
    margin: 4px 0 6px;
}
.qa-benefit-body p {
    margin: 0;
}
.qa-quals-card {
    height: 100%;
    background: #fff;
    border-radius: 12px;
    border-top: 5px solid var(--pbmit-global-color, #fc0012);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .09);
    padding: 36px 34px;
}
.qa-quals-kicker {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--pbmit-global-color, #fc0012);
    margin-bottom: 6px;
}
.qa-quals-card h3 {
    margin: 0 0 10px;
}
.qa-quals-note {
    font-size: 14px;
    color: #777;
    margin: 0 0 18px;
}
.qa-quals-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.qa-quals-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, .12);
}
.qa-quals-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.qa-quals-list li i {
    flex: 0 0 auto;
    margin-top: 1px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(252, 0, 18, .1);
    color: var(--pbmit-global-color, #fc0012);
    font-size: 11px;
}
.qa-quals-list li span {
    flex: 1;
}
@media (max-width: 991px) {
    .qa-quals-card {
        margin-top: 10px;
    }
}

/* ---- Graduate programme: experience cards ---- */
.qa-grad-card {
    position: relative;
    height: 100%;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 30px 26px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
    transition: transform .3s ease, box-shadow .3s ease;
}
.qa-grad-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(0, 0, 0, .10);
}
.qa-grad-step {
    position: absolute;
    top: 16px;
    right: 22px;
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    color: rgba(0, 0, 0, .06);
}
.qa-grad-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(252, 0, 18, .08);
    margin-bottom: 18px;
    transition: background .3s ease;
}
.qa-grad-icon i {
    font-size: 28px;
    color: var(--pbmit-global-color, #fc0012);
    transition: color .3s ease;
}
.qa-grad-card:hover .qa-grad-icon {
    background: var(--pbmit-global-color, #fc0012);
}
.qa-grad-card:hover .qa-grad-icon i {
    color: #fff;
}
.qa-grad-card h4 {
    margin: 0 0 8px;
}
.qa-grad-card p {
    margin: 0;
}

/* ---- Graduate WIL application form card ---- */
.qa-wil-form-card {
    background: #fff;
    border-radius: 12px;
    border-top: 5px solid var(--pbmit-global-color, #fc0012);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .09);
    padding: 38px 34px 30px;
}
@media (max-width: 575px) {
    .qa-wil-form-card {
        padding: 28px 20px 22px;
    }
}

/* ---- Uniform, equal-height service cards ---- */
/* 1) Consistent image crop across every service card (homepage carousel + grid),
      so mixed-aspect-ratio photos all render at the same height. */
.pbmit-service-style-1 .pbmit-featured-wrapper {
    aspect-ratio: 3 / 2;
    width: 100%;
}
.pbmit-service-style-1 .pbmit-featured-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 2) Equal-height cards on the Services grid: stretch every card in a row to the
      tallest, and let the white content box grow so titles/buttons line up. */
.service-section .row > [class*="col-"] {
    display: flex;
    margin-bottom: 30px;
}
.service-section .pbmit-service-style-1 {
    display: flex;
    width: 100%;
}
.service-section .pbminfotech-post-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 0;
}
.service-section .pbminfotech-box-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.service-section .pbminfotech-box-content-inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.service-section .pbmit-service-content p {
    min-height: 5.1em; /* reserve ~3 lines so every card is the same height */
    margin-bottom: 0;
}
.service-section .pbmit-service-btn {
    margin-top: auto;
}

/* ---- Equal-height news + CTA cards (homepage, news listing, careers) ---- */
/* Homepage "What's happening" news cards */
.qa-equal-cards .row > [class*="col-"] {
    display: flex;
}
.qa-equal-cards .qa-lift {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.qa-equal-cards .qa-lift .p-4 {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.qa-equal-cards .qa-lift .p-4 .btn-arrow {
    margin-top: auto;
}

/* News listing cards (news.html) */
#newsGrid > [class*="col-"] {
    display: flex;
}
#newsGrid .pbmit-blog-style-1 {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}
#newsGrid .pbmit-blog-style-1 .pbmit-content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
#newsGrid .pbmit-blog-style-1 .pbmit-content-wrapper .btn-arrow {
    margin-top: auto;
}

/* Careers CTA cards (Available vacancies / Graduate programme) */
.pbmit-service-style-3 .pbmit-featured-wrapper {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.pbmit-service-style-3 .pbmit-featured-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.row:has(.pbmit-service-style-3) > [class*="col-"] {
    display: flex;
}
.pbmit-service-style-3 {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.pbmit-service-style-3 .pbmit-service-box-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.pbmit-service-style-3 .pbmit-service-box-content .pbmit-btn {
    margin-top: auto;
    align-self: flex-start;
}
