/* ==========================================
   WHY CHOOSE US - MAIN SECTION
========================================== */

.workflow_area_3.why-choose-us {
    position: relative;
    display: block;
    width: 100%;
    min-height: auto;
    height: auto;
    overflow: visible;
    background: #f5f6f5;
}

.why-choose-us .wcu-section {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    padding: 80px 0;
    overflow: visible;
}

.why-choose-us .container {
    width: 100%;
}

/* ==========================================
   SECTION HEADER
========================================== */

.why-choose-us .wcu-header {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 45px;
}

.why-choose-us .wcu-header h2 {
    margin-bottom: 18px;
}

.why-choose-us .wcu-lede {
    max-width: 720px;
    margin: 26px auto 0px;
    color: #626b70;
    font-size: 16px;
    line-height: 1.7;
}

.why-choose-us .viva-tagline {
    margin-top: 30px;
}

.why-choose-us .viva-tagline h3 {
    margin: 0 0 8px;
    color: #171c20;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;
}

.why-choose-us .viva-tagline p {
    margin: 0;
    color: #6b7277;
    font-size: 15px;
}

/* ==========================================
   BOOTSTRAP ROW OVERRIDE
========================================== */

.why-choose-us .wcu-cards {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: auto;
}

.why-choose-us .wcu-cards>div {
    display: flex;
    min-width: 0;
}


.wcu-card-image,
.wcu-chain-image {
    position: relative;
    overflow: hidden;
}

.wcu-card-image .swiper-wrapper,
.wcu-card-image .swiper-slide,
.wcu-chain-image .swiper-wrapper,
.wcu-chain-image .swiper-slide {
    height: 100%;
}

.wcu-card-image img,
.wcu-chain-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   FEATURE CARDS
========================================== */

.why-choose-us .wcu-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
    background: #fff;
    border: 1px solid #dce1e2;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-choose-us .wcu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

/* Card Image */

.why-choose-us .wcu-card-image {
    position: relative;
    display: block;
    flex: 0 0 220px;
    width: 100%;
    height: 220px;
    min-height: 220px;
    overflow: hidden;
    background: #e9eeee;
    border-bottom: 3px solid #00a8e0;
}

.why-choose-us .wcu-card-image img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transform: none;
    transition: transform 0.5s ease;
}

.why-choose-us .wcu-card:hover .wcu-card-image img {
    transform: scale(1.04);
}

/* Card Content */

.why-choose-us .wcu-card-content {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding: 17px 16px 20px;
}

.why-choose-us .wcu-card-content h3 {
    margin: 0 0 5px;
    color: #202629;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

.why-choose-us .wcu-description {
    min-height: 42px;
    margin: 0;
    color: #656d71;
    font-size: 13px;
    line-height: 1.5;
}

/* ==========================================
   COUNTER / STATISTICS
========================================== */

.why-choose-us .wcu-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    column-gap: 15px;
    row-gap: 19px;
    width: 100%;
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid #e0e3e4;
}

.why-choose-us .wcu-stat {
    display: block;
    width: 100%;
    min-width: 0;
}

.why-choose-us .wcu-stat h4 {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 3px;
    margin: 0 0 3px;
    padding: 0;
    color: #202629;
    font-size: 25px;
    font-weight: 750;
    line-height: 1.2;
}

.why-choose-us .wcu-stat h4 .count {
    display: inline-block;
    font: inherit;
    line-height: inherit;
    color: inherit;
}

.why-choose-us .wcu-stat h4 small {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.why-choose-us .wcu-stat>span {
    display: block;
    margin: 0;
    color: #6d7477;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

/* ==========================================
   CHAIN BREAKERS
========================================== */

.why-choose-us .wcu-chain-breakers {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    height: auto;
    background: #fff;
    border: 1px solid #dce1e2;
    overflow: hidden;
}

/* Chain Image */

.why-choose-us .wcu-chain-image {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    overflow: hidden;
    background: #e9eeee;
}

.why-choose-us .wcu-chain-image img {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

/* Chain Content */

.why-choose-us .wcu-chain-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 20px 22px;
}

.why-choose-us .wcu-chain-heading {
    padding-bottom: 15px;
    border-bottom: 1px solid #dce1e2;
}

.why-choose-us .wcu-chain-heading h3 {
    margin: 0 0 4px;
    color: #202629;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.why-choose-us .wcu-chain-heading p {
    margin: 0;
    color: #6d7477;
    font-size: 13px;
    line-height: 1.5;
}

/* Chain List */

.why-choose-us .wcu-chain-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
    row-gap: 0;
    width: 100%;
    padding-top: 8px;
}

.why-choose-us .wcu-chain-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 65px;
    padding: 12px 10px;
    color: #626a6e;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

/* ==========================================
   LARGE LAPTOPS
========================================== */

@media (max-width: 1199.98px) {

    .why-choose-us .wcu-section {
        padding: 70px 0;
    }

    .why-choose-us .wcu-card-image {
        flex-basis: 165px;
        height: 165px;
        min-height: 165px;
    }

    .why-choose-us .wcu-card-content {
        padding: 15px 13px 18px;
    }

    .why-choose-us .wcu-stat h4 {
        font-size: 22px;
    }

    .why-choose-us .wcu-chain-content {
        padding: 16px;
    }

    .why-choose-us .wcu-chain-item {
        padding: 10px 6px;
        font-size: 12px;
    }
}

/* ==========================================
   TABLETS
========================================== */

@media (max-width: 991.98px) {

    .why-choose-us .wcu-section {
        padding: 60px 0;
    }

    .why-choose-us .wcu-cards {
        justify-content: center;
    }

    .why-choose-us .wcu-cards>div {
        display: flex;
    }

    .why-choose-us .wcu-card {
        width: 100%;
    }

    .why-choose-us .wcu-card-image {
        flex-basis: 190px;
        height: 190px;
        min-height: 190px;
    }

    .why-choose-us .wcu-chain-breakers {
        grid-template-columns: minmax(0, 1fr);
    }

    .why-choose-us .wcu-chain-image {
        height: 300px;
        min-height: 300px;
    }

    .why-choose-us .wcu-chain-image img {
        min-height: 300px;
    }

    .why-choose-us .wcu-chain-content {
        padding: 22px;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767.98px) {

    .why-choose-us .wcu-section {
        padding: 50px 0;
    }

    .why-choose-us .wcu-header {
        margin-bottom: 30px;
    }

    .why-choose-us .wcu-lede {
        font-size: 14px;
        line-height: 1.6;
    }

    .why-choose-us .viva-tagline {
        margin-top: 25px;
    }

    .why-choose-us .viva-tagline h3 {
        font-size: 21px;
    }

    .why-choose-us .viva-tagline p {
        font-size: 13px;
    }

    .why-choose-us .wcu-cards {
        row-gap: 20px;
    }

    .why-choose-us .wcu-card-image {
        flex-basis: 210px;
        height: 210px;
        min-height: 210px;
    }

    .why-choose-us .wcu-card-content {
        padding: 18px;
    }

    .why-choose-us .wcu-card-content h3 {
        font-size: 20px;
    }

    .why-choose-us .wcu-description {
        min-height: auto;
    }

    .why-choose-us .wcu-stat h4 {
        font-size: 24px;
    }

    .why-choose-us .wcu-chain-breakers {
        margin-top: 22px;
    }

    .why-choose-us .wcu-chain-image {
        height: 230px;
        min-height: 230px;
    }

    .why-choose-us .wcu-chain-image img {
        min-height: 230px;
    }

    .why-choose-us .wcu-chain-content {
        padding: 18px;
    }

    .why-choose-us .wcu-chain-heading h3 {
        font-size: 20px;
    }

    .why-choose-us .wcu-chain-list {
        column-gap: 10px;
    }

    .why-choose-us .wcu-chain-item {
        min-height: 75px;
        padding: 10px 5px;
        font-size: 12px;
    }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 575.98px) {

    .why-choose-us .wcu-section {
        padding: 40px 0;
    }

    .why-choose-us .wcu-card-image {
        flex-basis: 200px;
        height: 200px;
        min-height: 200px;
    }

    .why-choose-us .wcu-chain-image {
        height: 200px;
        min-height: 200px;
    }

    .why-choose-us .wcu-chain-image img {
        min-height: 200px;
    }

    .why-choose-us .wcu-chain-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .why-choose-us .wcu-chain-item {
        min-height: auto;
        padding: 14px 5px;
        border-bottom: 1px solid #edf0f0;
        font-size: 13px;
    }

    .why-choose-us .wcu-chain-item:last-child {
        border-bottom: 0;
    }
}

/* ==========================================
   EXTRA SMALL SCREENS
========================================== */

@media (max-width: 360px) {

    .why-choose-us .wcu-card-content {
        padding: 15px 12px;
    }

    .why-choose-us .wcu-stat h4 {
        font-size: 21px;
    }

    .why-choose-us .wcu-stat>span {
        font-size: 11px;
    }

    .why-choose-us .wcu-chain-content {
        padding: 15px;
    }
}


/* ==============================
   PROJECTS GALLERY
================================ */

.projects-gallery {
    --project-accent: #c79b5a;
    --project-text: #252525;
    --project-muted: #777;

    padding: 85px 0 95px;
    background: #fff;
    overflow: hidden;
}

.projects-gallery__header {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 42px;
}

.projects-gallery__eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--project-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.projects-gallery__title {
    margin: 0;
    color: var(--project-text);
    font-size: clamp(28px, 3.3vw, 46px);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -1.2px;
}

.projects-gallery__subtitle {
    margin: 14px auto 25px;
    color: #777;
    font-size: 15px;
    line-height: 1.7;
}

/* Tabs */

.projects-gallery__tabs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 5px;
    background: #f1f1f1;
    border-radius: 9px;
}

.projects-gallery__tab {
    position: relative;
    border: 0;
    border-radius: 6px;
    padding: 11px 21px;
    background: transparent;
    color: #666;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition:
        background .3s ease,
        color .3s ease,
        box-shadow .3s ease,
        transform .3s ease;
}

.projects-gallery__tab:hover {
    color: #111;
}

.projects-gallery__tab.is-active {
    background: #fff;
    color: #222;
    box-shadow: 0 2px 8px rgb(0 0 0 / 9%);
}

.projects-gallery__tab:focus-visible {
    outline: 2px solid var(--project-accent);
    outline-offset: 3px;
}

/* Grid */

.projects-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.project-card {
    min-width: 0;
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity .35s ease,
        transform .35s ease;
}

.project-card.is-entering {
    animation: projectCardEnter .55s cubic-bezier(.2, .7, .2, 1) both;
    animation-delay: var(--card-delay, 0ms);
}

.project-card.is-filtering-out {
    opacity: 0;
    transform: translateY(14px) scale(.97);
    pointer-events: none;
}

.project-card[hidden] {
    display: none !important;
}

.project-card__link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.project-card__image-wrapper {
    position: relative;
    height: 320px;
    overflow: hidden;
    isolation: isolate;
    border-radius: 15px;
    background: #e9e9e9;
    box-shadow: 0 3px 12px rgb(0 0 0 / 5%);
    transform: translateZ(0);
}

.project-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition:
        transform .8s cubic-bezier(.2, .7, .2, 1),
        filter .5s ease;
}

.project-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top,
            rgb(0 0 0 / 91%) 0%,
            rgb(0 0 0 / 67%) 36%,
            rgb(0 0 0 / 13%) 100%);
    opacity: 0;
    transition: opacity .45s ease;
}

.project-card__number {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 16px;
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 60%);
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    background: rgb(0 0 0 / 15%);
    backdrop-filter: blur(8px);
    transition: opacity .3s ease, transform .3s ease;
}

/* Details inside each card */

.project-card__content {
    position: absolute;
    z-index: 2;
    inset: auto 0 0;
    padding: 26px 22px;
    color: #fff;
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity .4s ease,
        transform .5s cubic-bezier(.2, .7, .2, 1);
}

.project-card__label {
    display: inline-block;
    margin-bottom: 9px;
    color: #e5c28e;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.project-card__title {
    margin: 0 0 11px;
    color: #fff;
    font-size: clamp(19px, 1.5vw, 25px);
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.project-card__summary {
    margin: 0 0 12px;
    color: rgb(255 255 255 / 85%);
    font-size: 13px;
    line-height: 1.5;
}

.project-card__detail {
    margin: 7px 0;
    color: rgb(255 255 255 / 88%);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.project-card__detail span {
    color: #fff;
    font-weight: 600;
}

.project-card__description {
    margin: 11px 0 0;
    color: rgb(255 255 255 / 76%);
    font-size: 12px;
    line-height: 1.6;
}

.project-card__view {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 17px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgb(255 255 255 / 60%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.project-card__view span {
    transition: transform .3s ease;
}

/* Hover + keyboard focus */

@media (hover: hover) and (pointer: fine) {
    .project-card:hover .project-card__image {
        transform: scale(1.09);
        filter: brightness(.78);
    }

    .project-card:hover .project-card__overlay {
        opacity: 1;
    }

    .project-card:hover .project-card__content {
        opacity: 1;
        transform: translateY(0);
    }

    .project-card:hover .project-card__number {
        opacity: 0;
        transform: translateY(-8px);
    }

    .project-card:hover .project-card__view span {
        transform: translate(4px, -3px);
    }
}

.project-card__link:focus-visible {
    outline: 3px solid var(--project-accent);
    outline-offset: 4px;
    border-radius: 15px;
}

.project-card__link:focus-visible .project-card__overlay,
.project-card__link:focus-visible .project-card__content {
    opacity: 1;
}

.project-card__link:focus-visible .project-card__content {
    transform: translateY(0);
}

/* Entry animation */

@keyframes projectCardEnter {
    from {
        opacity: 0;
        transform: translateY(22px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Footer */

.projects-gallery__empty {
    padding: 40px 15px;
    text-align: center;
    color: #777;
}

.projects-gallery__footer {
    display: flex;
    justify-content: center;
    margin-top: 45px;
}

.projects-gallery__button {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 15px 25px;
    border: 1px solid #222;
    border-radius: 3px;
    background: #222;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition:
        color .3s ease,
        background .3s ease,
        border-color .3s ease;
}

.projects-gallery__button:hover {
    border-color: var(--project-accent);
    background: var(--project-accent);
    color: #fff;
}

.projects-gallery__button span {
    transition: transform .3s ease;
}

.projects-gallery__button:hover span {
    transform: translateX(5px);
}

/* Tablet */

@media (max-width: 1199.98px) {
    .projects-gallery__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .project-card__image-wrapper {
        height: 300px;
    }

    .project-card__content {
        padding: 22px 18px;
    }
}

/* Small tablet */

@media (max-width: 767.98px) {
    .projects-gallery {
        padding: 60px 0 65px;
    }

    .projects-gallery__header {
        margin-bottom: 30px;
    }

    .projects-gallery__title {
        letter-spacing: -.6px;
    }

    .projects-gallery__subtitle {
        font-size: 14px;
    }

    .projects-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .project-card__image-wrapper {
        height: 290px;
        border-radius: 11px;
    }

    .project-card__content {
        padding: 18px 13px;
    }

    .project-card__title {
        font-size: 18px;
    }

    .project-card__detail,
    .project-card__description {
        font-size: 11px;
    }

    .projects-gallery__tab {
        padding: 10px 14px;
    }
}

/* Mobile */

@media (max-width: 480px) {
    .projects-gallery {
        padding: 48px 0 55px;
    }

    .projects-gallery__grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .project-card__image-wrapper {
        height: 350px;
    }

    .projects-gallery__tabs {
        gap: 3px;
        max-width: 100%;
    }

    .projects-gallery__tab {
        padding: 10px 12px;
        font-size: 12px;
    }

    /*
      On touch screens, keep the project information visible
      because hover is not available.
    */
    .project-card__overlay {
        opacity: .9;
    }

    .project-card__content {
        opacity: 1;
        transform: translateY(0);
    }

    .project-card__number {
        display: none;
    }

    .projects-gallery__footer {
        margin-top: 30px;
    }
}

/* Respect accessibility preferences */

@media (prefers-reduced-motion: reduce) {

    .projects-gallery *,
    .projects-gallery *::before,
    .projects-gallery *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* ==============================
   PROJECT FILTER TABS
================================ */

.portfolio-filter {
    --pf-accent: #c79b5a;
    --pf-ease: cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 44px;
}

.portfolio-filter .filter-label {
    color: #777;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.portfolio-filter .filters-button-group {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 100%;
    margin: 0;
    padding: 5px;
    list-style: none;
    background: #f1f1f1;
    border: 1px solid #ebebeb;
    border-radius: 10px;
}

.portfolio-filter .filters-button-group li {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
}

/* Remove theme decorations */
.portfolio-filter .filters-button-group li::before,
.portfolio-filter .filters-button-group li::after,
.portfolio-filter .filters-button-group .filterby::before,
.portfolio-filter .filters-button-group .filterby::after {
    display: none;
}

.portfolio-filter .filters-button-group .filterby {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 7px;
    background: transparent;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}

.portfolio-filter .filters-button-group .filterby:hover {
    color: #111;
}

.portfolio-filter .filters-button-group .filterby.active {
    background: #fff;
    color: #222;
    box-shadow: 0 2px 8px rgb(0 0 0 / 9%);
}

.portfolio-filter .filters-button-group .filterby:focus-visible {
    outline: 2px solid var(--pf-accent);
    outline-offset: 2px;
}

/* Count badge */
.portfolio-filter .filters-button-group .filterby .num {
    position: static;
    min-width: 22px;
    padding: 3px 7px;
    border-radius: 20px;
    background: #e2e2e2;
    color: #666;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    transform: none;
    transition: background .3s ease, color .3s ease;
}

.portfolio-filter .filters-button-group .filterby:hover .num {
    background: #d8d8d8;
    color: #333;
}

.portfolio-filter .filters-button-group .filterby.active .num {
    background: #24abe0;
    color: #fff;
}

/* Sliding highlight (added by script) */
.portfolio-filter .filters-button-group .pf-indicator {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: 0;
    height: 0;
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 9%);
    pointer-events: none;
    transition: transform .35s var(--pf-ease), width .35s var(--pf-ease), height .35s var(--pf-ease);
}

.portfolio-filter .filters-button-group.has-indicator .filterby.active {
    background: transparent;
    box-shadow: none;
}

/* Mobile: swipe sideways instead of wrapping */
@media (max-width: 575px) {
    .portfolio-filter .filters-button-group {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .portfolio-filter .filters-button-group::-webkit-scrollbar {
        display: none;
    }

    .portfolio-filter .filters-button-group .filterby {
        padding: 10px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .portfolio-filter .filters-button-group .pf-indicator,
    .portfolio-filter .filters-button-group .filterby,
    .portfolio-filter .filters-button-group .filterby .num {
        transition: none;
    }
}

#tmGallery>.tm-gallery-item {
    animation: pgFadeIn .4s ease both;
}

@keyframes pgFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.gallery-status {
    margin: 10px 0 40px;
    color: #777;
    font-size: 14px;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    #tmGallery>.tm-gallery-item {
        animation: none;
    }
}

/* ==========================================================
   BAU 2027 – Book Appointment (homepage section #bau-appointment)
   Desktop: banner (left) + navy form panel (right), one card
   Tablet/Mobile: banner on top, form panel below
   ========================================================== */

/* Full-bleed hero: edge-to-edge, no card frame */
.bau-appt {
    position: relative;
    padding: 0;
    background: #121d58;
}

/* cancel Bootstrap's px-3 / px-md-4 / px-xl-5 gutters on the wrapper */
.bau-appt > .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: none;
}

.bau-appt__wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 480px;
    border-radius: 0;
    overflow: hidden;
    background: #1b2a78;
    box-shadow: none;
}

/* ---------- Banner ---------- */
.bau-appt__banner {
    position: relative;
    min-height: 100%;
    overflow: hidden;
}

/* soft fade from the photo into the form panel */
.bau-appt__banner::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80px;
    background: linear-gradient(90deg, rgba(18, 29, 88, 0) 0%, rgba(18, 29, 88, .35) 100%);
    pointer-events: none;
}

.bau-appt__banner picture,
.bau-appt__banner img {
    display: block;
    width: 100%;
    height: 100%;
}

.bau-appt__banner img {
    object-fit: cover;
    /* All banner text sits in the left ~70% of the artwork (BAU logo → stall box);
       the right side is only sky/buildings, so crop from the right, never the left. */
    object-position: left center;
}

/* ---------- Form panel ---------- */
.bau-appt__form-box {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 48px 42px;
    background: linear-gradient(160deg, #1f2f85 0%, #1b2a78 45%, #121d58 100%);
    color: #fff;
}

/* yellow edge – same accent as the banner's date/venue bar */
.bau-appt__form-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 6px;
    background: #f5d211;
}

.bau-appt__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f5d211;
}

.bau-appt__form-title {
    margin: 0 0 6px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}

.bau-appt__form-title span {
    color: #f5d211;
}

.bau-appt__form-sub {
    margin: 0 0 18px;
    font-size: 14px;
    color: rgba(255, 255, 255, .75);
}

.bau-appt__form-sub sup {
    font-size: 60%;
}

/* 2-column field grid */
.bau-appt__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 20px;
}

.bau-appt__field {
    position: relative;
    padding-bottom: 14px;   /* room for error text */
}

.bau-appt__field--full {
    grid-column: 1 / -1;
}

.bau-appt__field input,
.bau-appt__field select {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 2px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .35);
    border-radius: 0;
    background: transparent;
    font-size: 15px;
    color: #fff;
    outline: none;
    box-shadow: none;
    transition: border-color .2s;
}

.bau-appt__field input::placeholder {
    color: rgba(255, 255, 255, .7);
    opacity: 1;
}

/* keep Chrome autofill from turning fields white/yellow */
.bau-appt__field input:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px #1b2a78 inset;
    transition: background-color 9999s;
}

.bau-appt__field select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 24px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px center;
}

.bau-appt__field select:invalid {
    color: rgba(255, 255, 255, .7);
}

/* dropdown list itself is white, so options need dark text */
.bau-appt__field select option {
    color: #1c1c1c;
    background: #fff;
}

.bau-appt__field input:focus,
.bau-appt__field select:focus {
    border-bottom-color: #f5d211;
}

.bau-appt__field.has-error input,
.bau-appt__field.has-error select {
    border-bottom-color: #ff8a8a;
}

.bau-appt__error {
    position: absolute;
    left: 2px;
    bottom: 0;
    font-size: 12px;
    line-height: 1.2;
    color: #ffb3b3;
    white-space: nowrap;
}

.bau-appt__error:empty {
    display: none;
}

.bau-appt__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 52px;
    margin-top: 14px;
    border: 0;
    border-radius: 6px;
    background: #f5d211;
    color: #121d58;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.bau-appt__submit span {
    transition: transform .2s;
}

.bau-appt__submit:hover {
    background: #ffe032;
}

.bau-appt__submit:hover span {
    transform: translateX(4px);
}

.bau-appt__submit[disabled] {
    opacity: .7;
    cursor: wait;
}

.bau-appt__alert {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
}

.bau-appt__alert.is-success {
    display: block;
    background: #e8f8ee;
    color: #146c2e;
}

.bau-appt__alert.is-error {
    display: block;
    background: #fdecec;
    color: #a11a1a;
}

/* Desktop: messages float over the panel so its height never changes
   (otherwise the panel grows and the banner image gets cropped) */
@media (min-width: 1200px) {
    /* Success: full-panel "thank you" overlay */
    .bau-appt__alert.is-success {
        position: absolute;
        inset: 0;
        z-index: 3;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 40px 48px 40px 54px;
        border-radius: 0;
        background: linear-gradient(160deg, #1f2f85 0%, #1b2a78 45%, #121d58 100%);
        color: #fff;
        font-size: 17px;
        line-height: 1.5;
        text-align: center;
        cursor: pointer;
        animation: bauFadeIn .35s ease;
    }

    .bau-appt__alert.is-success::before {
        content: "\2713";
        display: flex;
        align-items: center;
        justify-content: center;
        width: 72px;
        height: 72px;
        margin-bottom: 20px;
        border-radius: 50%;
        background: #f5d211;
        color: #121d58;
        font-size: 38px;
        font-weight: 700;
    }

    /* keep the yellow edge visible on top of the overlay */
    .bau-appt__alert.is-success::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 6px;
        background: #f5d211;
    }

    /* Error: small toast pinned to the bottom of the panel */
    .bau-appt__alert.is-error {
        position: absolute;
        left: 48px;
        right: 48px;
        bottom: 8px;
        z-index: 3;
        margin: 0;
        padding: 7px 12px;
        font-size: 13px;
        line-height: 1.3;
        animation: bauFadeIn .25s ease;
    }
}

@keyframes bauFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---------- Medium desktops: slimmer panel ---------- */
@media (max-width: 1399px) {
    .bau-appt__wrap {
        grid-template-columns: minmax(0, 1fr) 420px;
    }

    .bau-appt__form-box {
        padding: 28px 34px 30px;
    }

    .bau-appt__alert.is-error {
        left: 34px;
        right: 34px;
        bottom: 3px;
    }

    .bau-appt__form-title {
        font-size: 26px;
    }

    .bau-appt__form-sub {
        margin-bottom: 12px;
    }

    .bau-appt__field input,
    .bau-appt__field select {
        height: 40px;
        font-size: 14px;
    }
}

/* ---------- Tablet & mobile: stack, banner keeps its full shape ---------- */
@media (max-width: 1199px) {
    .bau-appt__wrap {
        grid-template-columns: 1fr;
    }

    .bau-appt__banner img {
        height: auto;
        object-fit: initial;
    }

    .bau-appt__banner::after {
        display: none;
    }

    .bau-appt__form-box {
        padding: 30px 30px 34px;
    }

    .bau-appt__form-box::before {
        right: 0;
        bottom: auto;
        width: auto;
        height: 5px;
    }

    .bau-appt__field input,
    .bau-appt__field select {
        height: 46px;
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    .bau-appt__form-box {
        padding: 26px 18px 28px;
    }

    .bau-appt__form-title {
        font-size: 24px;
    }

    .bau-appt__grid {
        grid-template-columns: 1fr;
    }

    .bau-appt__error {
        white-space: normal;
        position: static;
        padding-top: 3px;
    }

    .bau-appt__field {
        padding-bottom: 6px;
    }
}
