/* ==========================================================================
   FLEXITECH ENGINEERING — brand recolor layer
   Loaded AFTER style.css / responsive.css so these variables win the cascade.
   Palette sampled directly from the Flexitech logo (black + signature red).
   ========================================================================== */

:root {
    /* core brand tokens */
    --logo-red: #cd222a;
    --logo-red-dark: #a81c23;
    --logo-black: #1a1a1a;

    /* re-map every "green" token the template uses to the Flexitech palette
       so all 390+ existing var(--green*) usages update automatically      */
    --green1: #cd222a;   /* was #3fab3c — primary brand red   */
    --green2: #a81c23;   /* was #78b833 — deep red / hover     */
    --green3: #e84e46;   /* was #a1c858 — bright accent red    */
    --green4: #2b2b2b;   /* was #c5d76d — replaces pale-green accents with charcoal for a black/red duotone feel */
    --green5: #ffe3e1;   /* was #c4ffc4 — pale red tint for soft badge backgrounds */
    --grey: #6f6f6f;
}

/* ---- Hardcoded hex fallbacks still lingering in style.css/responsive.css ---- */
.some-legacy-hooks-not-used-directly {
    color: var(--logo-red);
}

/* ==========================================================================
   Header top bar — phone/email icons white instead of red
   ========================================================================== */
.header-top-bar-area .topbar-info li a .topbar-icon {
    color: #ffffff !important;
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.header-top-bar-area,
.header-area,
.main-menu>ul>li>a:hover,
.main-menu>ul>li.active>a {
    color: var(--logo-black);
}

.main-menu>ul>li>a:hover,
.main-menu>ul>li.active>a {
    color: var(--logo-red) !important;
}

/* ==========================================================================
   Hero slider — duotone red/black overlay on top of the existing photography
   ========================================================================== */
.slider-area .swiper-slide,
.main-slider .swiper-slide,
.hero-slider .swiper-slide {
    position: relative;
}

.slider-area .swiper-slide::after,
.main-slider .swiper-slide::after,
.hero-slider .swiper-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(15, 15, 15, .86) 0%, rgba(26, 26, 26, .55) 38%, rgba(205, 34, 42, .38) 78%, rgba(205, 34, 42, .55) 100%);
    pointer-events: none;
    z-index: 1;
}

.slider-area .swiper-slide .container,
.main-slider .swiper-slide .container,
.hero-slider .swiper-slide .container {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Section backgrounds that used to lean on the light-green watermark art
   ========================================================================== */
[style*="testimonial-banner.webp"],
.testimonial-area {
    position: relative;
}

[style*="testimonial-banner.webp"]::before,
.testimonial-area::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(26, 26, 26, .92), rgba(205, 34, 42, .78));
    z-index: 0;
}

.testimonial-area>* {
    position: relative;
    z-index: 1;
}

.features-area,
[class*="features-bg"] {
    background-color: #fafafa;
}

/* Section title accent underline -> brand red gradient (overrides earlier green one) */
.section-title .title::after {
    background: linear-gradient(90deg, var(--logo-red), var(--logo-black)) !important;
}

/* ==========================================================================
   Buttons / CTAs
   ========================================================================== */
.btn,
.btn-1,
.btn-2,
button[type="submit"],
input[type="submit"],
.theme-btn {
    background-color: var(--logo-red) !important;
    border-color: var(--logo-red) !important;
    color: #fff !important;
    transition: background-color .25s ease, transform .2s ease;
}

.btn:hover,
.btn-1:hover,
.btn-2:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.theme-btn:hover {
    background-color: var(--logo-black) !important;
    border-color: var(--logo-black) !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   Footer — switch to near-black, matching the logo's ink color
   ========================================================================== */
.footer-area,
footer {
    background-color: var(--logo-black) !important;
}

.footer-area a:hover {
    color: var(--logo-red) !important;
}

/* ==========================================================================
   Misc accents: icon badges, counters, links, active states
   ========================================================================== */
a,
.icon-box i,
.counter-item .number,
.breadcrumb-area a {
    color: inherit;
}

a:hover {
    color: var(--logo-red);
}

::selection {
    background: var(--logo-red);
    color: #fff;
}


/* ==========================================================================
   Testimonials — white section, "overlapping avatar" card slider
   (card style: circular avatar overlaps the top edge of a white card,
   large quote marks flank the copy, bottom dot pager)
   ========================================================================== */
.ftx-testi-light {
    position: relative;
    overflow: hidden;
    padding: 90px 0;
    background: #ffffff;
}

.ftx-testi-light__deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.ftx-testi-light__deco--1 {
    width: 480px;
    height: 480px;
    right: -160px;
    top: -140px;
    background:
        radial-gradient(circle at center, transparent 56%, rgba(205, 34, 42, .05) 57%, rgba(205, 34, 42, .05) 62%, transparent 63%),
        radial-gradient(circle at center, transparent 70%, rgba(205, 34, 42, .03) 71%, rgba(205, 34, 42, .03) 74%, transparent 75%);
}

.ftx-testi-light__deco--2 {
    width: 260px;
    height: 260px;
    left: -110px;
    bottom: -90px;
    background: radial-gradient(circle at center, rgba(205, 34, 42, .05) 0%, transparent 70%);
}

.ftx-testi-light__head {
    margin-bottom: 40px;
}

.ftx-testi-light__head .title {
    display: inline-block;
    font-size: 30px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 14px;
    position: relative;
}

.ftx-testi-light__head .title::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    margin-top: 12px;
    background: linear-gradient(90deg, var(--logo-red), var(--logo-black));
}

.ftx-testi-light__row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
}

.ftx-testi-light__arrow {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .12);
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
    color: var(--logo-black);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
    z-index: 2;
}

.ftx-testi-light__arrow:hover {
    background: var(--logo-red);
    border-color: var(--logo-red);
    color: #fff;
    transform: scale(1.06);
}

.ftx-testi-light__viewport {
    flex: 1 1 auto;
    overflow: hidden;
    /* room for the avatars that overlap the top edge of each card */
    padding-top: 40px;
}

.ftx-testi-light__track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    transition: transform .5s cubic-bezier(.55, .06, .27, 1.02);
    will-change: transform;
}

@media (max-width: 991px) {
    .ftx-testi-light__track {
        grid-auto-flow: column;
        grid-auto-columns: calc(50% - 13px);
        grid-template-columns: none;
    }
}

@media (max-width: 650px) {
    .ftx-testi-light__track {
        grid-auto-flow: column;
        grid-auto-columns: 100%;
        grid-template-columns: none;
    }
}

.ftx-testi-light-card {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 14px;
    padding: 52px 28px 30px;
    box-shadow: 0 10px 30px rgba(20, 20, 20, .08);
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}

.ftx-testi-light-card:hover,
.ftx-testi-light-card.is-highlighted {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(20, 20, 20, .14);
    border-color: rgba(205, 34, 42, .25);
}

.ftx-testi-light-card--featured {
    border-color: rgba(205, 34, 42, .22);
    box-shadow: 0 14px 34px rgba(205, 34, 42, .16);
}

/* avatar circle overlapping the top edge of the card */
.ftx-testi-light-card__avatar-wrap {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.ftx-avatar--lg {
    width: 76px;
    height: 76px;
    font-size: 20px;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
}

.ftx-testi-light-card__quote-mark {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 46px;
    line-height: 1;
    color: rgba(205, 34, 42, .18);
    font-weight: 700;
    position: relative;
    display: block;
}

.ftx-testi-light-card__quote-mark--left {
    margin-top: 6px;
    margin-bottom: -10px;
}

.ftx-testi-light-card__quote-mark--right {
    display: none;
}

.ftx-testi-light-card__stars {
    color: #f5a623;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 14px;
}

.ftx-testi-light-card__text {
    color: #4a4a4a;
    font-size: 15px;
    line-height: 1.75;
    flex-grow: 1;
    margin-bottom: 22px;
}

.ftx-testi-light-card__person {
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    width: 100%;
}

.ftx-testi-light-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 2px;
}

.ftx-testi-light-card__role {
    display: block;
    font-size: 12.5px;
    color: var(--logo-red);
    font-style: italic;
}

.ftx-avatar {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--logo-red), var(--logo-black));
    letter-spacing: .5px;
}

/* bottom dot navigation */
.ftx-testi-light__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 36px;
}

.ftx-testi-light__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .15);
    cursor: pointer;
    padding: 0;
    transition: background .25s ease, transform .2s ease;
}

.ftx-testi-light__dot:hover {
    background: rgba(0, 0, 0, .3);
}

.ftx-testi-light__dot.is-active {
    background: var(--logo-red);
    transform: scale(1.25);
}

@media (max-width: 575px) {
    .ftx-testi-light {
        padding: 60px 0;
    }

    .ftx-testi-light__arrow {
        display: none;
    }
}


/* ==========================================================================
   Requirement / quote form — attractive card + image split layout
   ========================================================================== */
.ftx-quote-section {
    position: relative;
    background: #f7f6f4;
    background-image:
        radial-gradient(circle at 8% 12%, rgba(205, 34, 42, .05) 0%, transparent 45%),
        radial-gradient(circle at 95% 88%, rgba(26, 26, 26, .04) 0%, transparent 50%);
}

.ftx-quote-form {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 44px 42px;
    box-shadow: 0 18px 45px rgba(20, 20, 20, .08);
    border: 1px solid rgba(0, 0, 0, .04);
    overflow: hidden;
}

.ftx-quote-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--logo-red), var(--logo-black));
}

.ftx-quote-form .section-title {
    margin-bottom: 28px;
}

.ftx-quote-form .section-title .title {
    font-size: 26px;
    line-height: 1.35;
}

.ftx-quote-form__wrapper input,
.ftx-quote-form__wrapper select,
.ftx-quote-form__wrapper textarea {
    border: 1px solid #e4e2e0 !important;
    border-radius: 10px !important;
    background: #fafafa;
    padding: 14px 18px !important;
    height: 52px !important;
    margin-bottom: 20px !important;
    font-size: 15px;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.ftx-quote-form__wrapper input:focus,
.ftx-quote-form__wrapper select:focus,
.ftx-quote-form__wrapper textarea:focus {
    border-color: var(--logo-red) !important;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(205, 34, 42, .1);
    outline: none;
}

.ftx-quote-form__wrapper textarea {
    height: 140px !important;
    padding-top: 14px !important;
    resize: vertical;
}

.ftx-quote-form__submit {
    border-radius: 10px !important;
    font-weight: 700;
    letter-spacing: .5px;
    background-color: var(--logo-red) !important;
    border-color: var(--logo-red) !important;
    color: #fff !important;
    box-shadow: 0 8px 16px -4px rgba(205, 34, 42, .4);
}

.ftx-quote-form__submit i {
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* Keep the button solid on hover/focus instead of the theme default
   (which turned it transparent with a leftover green glow) */
.ftx-quote-form__submit:hover,
.ftx-quote-form__submit:focus,
.ftx-quote-form__submit:focus-visible {
    background-color: var(--logo-black) !important;
    border-color: var(--logo-black) !important;
    color: #fff !important;
    box-shadow: 0 10px 20px -4px rgba(20, 20, 20, .35) !important;
    outline: none !important;
}

.ftx-quote-image {
    position: relative;
    min-height: 380px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    box-shadow: 0 20px 50px rgba(20, 20, 20, .18);
}

.ftx-quote-image img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    display: block;
    object-fit: cover;
    border-radius: 16px;
    position: relative;
    z-index: 1;
}

.ftx-quote-image__accent {
    position: absolute;
    inset: -14px -14px auto auto;
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, var(--logo-red), var(--logo-black));
    border-radius: 16px;
    z-index: 0;
}

@media (max-width: 991px) {
    .ftx-quote-form {
        padding: 34px 26px;
        margin-bottom: 30px;
    }

    .ftx-quote-image {
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .ftx-quote-form {
        padding: 28px 20px;
    }

    .ftx-quote-form .section-title .title {
        font-size: 22px;
    }
}

/* ==========================================================================
   Hero CTA banner — darker overlay for readability on the brighter
   conveyor-roller factory-floor photo
   ========================================================================== */
.cta-area-bg--style2:after {
    background-color: #000;
    opacity: .58;
}

/* ==========================================================================
   "Why Choose Conveline" stat icons — distinct icon + color per heading
   (replaces missing/broken image files with Font Awesome icon badges)
   ========================================================================== */
.ftx-stat-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .12);
    transition: transform .35s ease, box-shadow .35s ease;
}

.project-counter-single-content:hover .ftx-stat-icon {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .18);
}

.ftx-stat-icon--1 {
    background: linear-gradient(135deg, var(--logo-red), var(--logo-red-dark));
}

.ftx-stat-icon--2 {
    background: linear-gradient(135deg, #2b2b2b, var(--logo-black));
}

.ftx-stat-icon--3 {
    background: linear-gradient(135deg, #e8a13d, #c9791f);
}

.ftx-stat-icon--4 {
    background: linear-gradient(135deg, var(--logo-red-dark), var(--logo-black));
}

/* ==========================================================================
   Latest Blog — rounded cards
   ========================================================================== */
.blog-post-slider__single-slide--grid-view--style2 {
    border-radius: 16px;
    /* was overflow:hidden — that clipped the circular read-more icon,
       which is intentionally positioned half outside the card (bottom:-30px).
       Card already has 60px bottom margin (extra-space class) so the icon
       has room to sit below the card without colliding with the next row. */
    overflow: visible;
}

.blog-post-slider__single-slide--grid-view--style2 .blog-post-slider__image {
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.blog-post-slider__single-slide--grid-view--style2 .blog-post-slider__image img {
    border-radius: 16px 16px 0 0;
}

.blog-post-slider__single-slide--grid-view--style2 .blog-post-slider__content--style2 {
    border-radius: 0 0 16px 16px;
    overflow: hidden;
}

.blog-post-slider__single-slide--grid-view--style2 .blog-readmore-button--icon {
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    z-index: 3;
}

/* ==========================================================================
   Upcoming Events — attractive text-only cards (no imagery)
   ========================================================================== */
.ftx-event-card {
    position: relative;
    height: 100%;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 30px 26px 26px;
    box-shadow: 0 10px 24px rgba(20, 20, 20, .06);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.ftx-event-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--logo-red), var(--logo-black));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}

.ftx-event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 40px rgba(20, 20, 20, .14);
    border-color: rgba(205, 34, 42, .25);
}

.ftx-event-card:hover::before {
    transform: scaleX(1);
}

.ftx-event-card__index {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    color: #f2f2f2;
    letter-spacing: 1px;
    z-index: 0;
}

.ftx-event-card__date {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 18px;
}

.ftx-event-card__day {
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    color: var(--logo-black);
}

.ftx-event-card__month {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--logo-red);
}

.ftx-event-card__location {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #6f6f6f;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 12px;
}

.ftx-event-card__location i {
    color: var(--logo-red);
    font-size: 12px;
}

.ftx-event-card__title {
    position: relative;
    z-index: 1;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.ftx-event-card__title a {
    color: var(--logo-black);
    transition: color .25s ease;
}

.ftx-event-card__title a:hover {
    color: var(--logo-red);
}

.ftx-event-card__link {
    position: relative;
    z-index: 1;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--logo-red);
    transition: gap .25s ease, color .25s ease;
}

.ftx-event-card__link i {
    font-size: 16px;
    transition: transform .25s ease;
}

.ftx-event-card__link:hover {
    color: var(--logo-black);
    gap: 12px;
}

.ftx-event-card__link:hover i {
    transform: translateX(3px);
}

/* ==========================================================================
   About Us page — page banner, image, six-reasons cards, gallery, callback
   ========================================================================== */
.ftx-page-banner {
    padding: 170px 0 90px;
    background-position: center 30%;
}

.ftx-page-banner .breadcrumb-page-title {
    font-size: 2.75rem;
}

.ftx-page-banner .breadcrumb-page-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.ftx-page-banner .breadcrumb-page-list li {
    position: relative;
}

.ftx-page-banner .breadcrumb-page-list li + li {
    margin-left: 22px;
}

.ftx-page-banner .breadcrumb-page-list li + li:before {
    content: "/";
    position: absolute;
    left: -16px;
    color: rgba(255, 255, 255, .55);
}

.ftx-page-banner .breadcrumb-page-list li a {
    color: #fff;
    opacity: .85;
    transition: opacity .2s ease;
}

.ftx-page-banner .breadcrumb-page-list li a:hover {
    opacity: 1;
    color: var(--logo-red);
}

@media (max-width: 575px) {
    .ftx-page-banner {
        padding: 130px 0 60px;
    }

    .ftx-page-banner .breadcrumb-page-title {
        font-size: 2rem;
    }
}

/* about intro image */
.ftx-about-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .14);
}

.ftx-about-text p {
    margin-bottom: 18px;
}

/* six reasons cards */
.ftx-reason-card {
    height: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 14px;
    padding: 34px 26px;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.ftx-reason-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 38px rgba(0, 0, 0, .12);
    border-color: rgba(205, 34, 42, .25);
}

.ftx-reason-card__icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    background: linear-gradient(135deg, var(--logo-red), var(--logo-black));
    box-shadow: 0 8px 18px rgba(205, 34, 42, .25);
}

.ftx-reason-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.ftx-reason-card__text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* facility / office snapshots gallery */
.ftx-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 160px;
    gap: 16px;
}

.ftx-gallery__item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.ftx-gallery__item--wide {
    grid-column: span 2;
    grid-row: span 2;
}

.ftx-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.ftx-gallery__item:hover img {
    transform: scale(1.08);
}

.ftx-gallery__item:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .35) 100%);
    opacity: 0;
    transition: opacity .3s ease;
}

.ftx-gallery__item:hover:after {
    opacity: 1;
}

@media (max-width: 767px) {
    .ftx-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 140px;
    }

    .ftx-gallery__item--wide {
        grid-column: span 2;
        grid-row: span 1;
    }
}

/* get-a-callback closing band */
.ftx-getcallback {
    background: linear-gradient(135deg, rgba(205, 34, 42, .06), rgba(26, 26, 26, .04));
    border: 1px solid rgba(205, 34, 42, .12);
    border-radius: 18px;
    padding: 56px 30px;
}

.ftx-getcallback h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.ftx-getcallback p {
    color: #555;
    margin-bottom: 26px;
}

/* ==========================================================================
   Contact Us page — info cards + modern map card
   ========================================================================== */
.ftx-contact-info-card {
    height: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 14px;
    padding: 32px 26px;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.ftx-contact-info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 38px rgba(0, 0, 0, .12);
    border-color: rgba(205, 34, 42, .25);
}

.ftx-contact-info-card__icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--logo-red), var(--logo-black));
    box-shadow: 0 8px 18px rgba(205, 34, 42, .25);
}

.ftx-contact-info-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.ftx-contact-info-card a,
.ftx-contact-info-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
    text-decoration: none;
}

.ftx-contact-info-card a:hover {
    color: var(--logo-red);
}

/* modern map card — replaces the ftx-quote-image slot on the contact page */
.ftx-contact-map {
    position: relative;
    min-height: 460px;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(20, 20, 20, .18);
    border: 1px solid rgba(0, 0, 0, .06);
}

.ftx-contact-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    /* subtle desaturation so the map recedes behind the brand-colored UI */
    filter: grayscale(.15) contrast(1.02);
}

.ftx-contact-map__badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    right: 20px;
    max-width: 320px;
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
    z-index: 2;
}

.ftx-contact-map__badge-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.ftx-contact-map__badge-title i {
    color: var(--logo-red);
    font-size: 16px;
}

.ftx-contact-map__badge p {
    font-size: 12.5px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.ftx-contact-map__badge a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--logo-red);
    text-decoration: none;
}

.ftx-contact-map__badge a:hover {
    color: var(--logo-black);
}

@media (max-width: 991px) {
    .ftx-contact-map {
        min-height: 360px;
        margin-top: 30px;
    }
}

/* ==========================================================================
   Blog listing page — pagination
   ========================================================================== */
.ftx-blog-page {
    display: none;
}

.ftx-blog-page.is-active {
    display: block;
    animation: ftx-blog-fade .4s ease both;
}

@keyframes ftx-blog-fade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.ftx-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.ftx-pagination__btn {
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, .1);
    background: #fff;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
}

.ftx-pagination__btn:hover:not(:disabled) {
    border-color: var(--logo-red);
    color: var(--logo-red);
    transform: translateY(-2px);
}

.ftx-pagination__btn.is-active {
    background: linear-gradient(135deg, var(--logo-red), var(--logo-black));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(205, 34, 42, .3);
}

.ftx-pagination__btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}
