:root {
    --primary: #e8232a;
    --primary-dark: #c71c22;
    --primary-light: #fdeaea;
    --text-black: #14141a;
    --bg-light: #ffffff;
    --bg-section: #fafafb;
    --border-soft: #ededf0;
    --primary-light: #fce9ea;
    --ink: #181a20;
    --gray: #6e7079;
    --white: #ffffff;
    --navy: #14141a;
    --pink-bg: #fdeae7;
    --ink-soft: #4b5b56;
    --card-deep: #0d2420;
    --card-deep-2: #163c34;
    --pale: #fdece6;
    --line: #ecebe7;
    --text-muted: #7a756e;
    --bg: #fbf3f1;
    --card-bg: #ffffff;
    --border-soft: #efe3e0;
    --tag-bg: #f4f1ec;
    --tm-black: var(--text-black, #14141a);
    --tm-navy: #1b2440;
    --tm-muted: var(--text-muted, #6b6b76);
    --tm-border: var(--border-soft, #ededf0);
    --text-muted: #797e88;
    --badge-bg: #f1ede4;
    --card-border: #ece5d8;
    --gray: #6b7280;
    --bg-blush: #fdf3f1;
    --text-dark: #1d1b20;
    --card-shadow: 0 10px 30px rgba(29, 27, 32, 0.06);
    --bg-blush-deep: #fbe7e4;
    --pink-soft: #fdeef0;
    
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-black);
}

p {
    color: var(--text-muted);
}

.text-primary-c {
    color: var(--primary) !important;
}

.bg-primary-c {
    background: var(--primary) !important;
}


/* ---------- Navbar spacing helper ---------- */
.navbar-brand-dot {
    color: var(--primary);
}


section {
    scroll-margin-top: 80px;
}

/* ---------- Hero (two-column, image + red circle on right) ---------- */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 50px 0 50px;
    background: var(--primary-light);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid var(--border-soft);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-black);
    background: #fff;
}

.eyebrow-badge .dot {
    color: var(--primary);
}

.hero-heading {
    font-size: 3.05rem;
    line-height: 1.14;
    margin-top: 22px;
    font-weight: bolder;
    color: var(--text-black);
}

@media (max-width: 767px) {
    .hero-heading {
        font-size: 2.05rem;
    }
}

.hero-desc {
    font-size: 1.03rem;
    max-width: 470px;
    margin-top: 18px;
    color: var(--text-muted);
}

.trusted-label-hero {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.brand-logos-hero {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    filter: grayscale(100%);
    opacity: 0.55;
}

.brand-logos-hero span {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-black);
}

.brand-logos-hero i {
    font-size: 1.3rem;
    margin-right: 6px;
}

/* ---- Right visual: red circle + image + floating cards ---- */
.hero-visual {
    position: relative;
    padding: 30px 10px 40px;
    min-height: 420px;
}

.hero-dot-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(
        rgba(20, 20, 26, 0.16) 1.6px,
        transparent 1.6px
    );
    background-size: 11px 11px;
    z-index: 0;
}

.hero-deco-circle {
    position: absolute;
    top: 6%;
    right: 2%;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-light);
    z-index: 0;
}

.hero-deco-triangle {
    position: absolute;
    top: 32%;
    right: -2%;
    font-size: 1.6rem;
    color: var(--primary);
    opacity: 0.7;
    z-index: 0;
    transform: rotate(8deg);
}

.hero-img-wrap {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
    margin: 0 auto;
    max-width: 80%;
}

.hero-img-wrap img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.hero-img-wrap:hover img {
    transform: scale(1.04);
}

.hero-float-card {
    position: absolute;
    background: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 20px 45px -12px rgba(20, 20, 26, 0.2);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 225px;
    z-index: 3;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.hero-float-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 26px 55px -12px rgba(20, 20, 26, 0.3);
}

.hero-float-card .icon-box {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform 0.35s ease;
}

.hero-float-card:hover .icon-box {
    transform: rotate(-8deg) scale(1.08);
}

.hero-float-card h6 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-black);
}

.hero-float-card p {
    font-size: 0.74rem;
    margin: 0;
    line-height: 1.35;
    color: var(--text-muted);
}

.hero-float-top-right {
    top: 6%;
    right: -6%;
}

.hero-float-bottom-left {
    bottom: 2%;
    left: -8%;
}

.hero-float-bottom-right {
    bottom: -4%;
    right: 4%;
}

@media (max-width: 991px) {
    .hero-float-card {
        max-width: 175px;
        padding: 10px 12px;
    }

    .hero-float-top-right {
        top: 2%;
        right: -2%;
    }

    .hero-float-bottom-left {
        bottom: 0;
        left: -2%;
    }

    .hero-float-bottom-right {
        bottom: -6%;
        right: 2%;
    }
}

@media (max-width: 767px) {
    .hero-float-card {
        max-width: auto;
        padding: 10px;
    }
}

/* ---------- Search bar ---------- */
.claim-wrap {
    position: relative;
    margin-bottom: 15px;
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: linear-gradient(120deg, #ffffff, #ffcdc4, #ffffff, #f8b3a8);

    animation: sheen 7s ease infinite;
    box-shadow: 0 18px 40px -14px rgba(230, 65, 47, 0.4);
}
@keyframes sheen {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.claim {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 999px;
    padding: 10px 6px 10px 10px;
}
@media (max-width: 767px) {
    .claim {
        padding: 5px;
        gap: 8px;
    }
}

.claim .pin {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 35% 30%,
        #ff7a63,
        var(--primary-dark)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-ring 2.4s ease infinite;
}
@keyframes pulse-ring {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(230, 65, 47, 0.35);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(230, 65, 47, 0);
    }
}
.claim .pin svg {
    color: #fff;
    width: 19px;
    height: 19px;
}
.claim .txt {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}
.claim .txt .underline-accent {
    position: relative;
    color: var(--primary);
}
.claim .txt .underline-accent svg {
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 100%;
    height: 8px;
}
.claim .badge-end {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
}
.claim .badge-end svg {
    color: #fff;
    width: 17px;
    height: 17px;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 16px 26px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 10px 22px -8px rgba(230, 65, 47, 0.6);
    margin-bottom: 44px;
    transition: transform 0.2s ease;
}
.cta:hover {
    transform: translateY(-2px);
}

.btn-primary-c {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary-c:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -8px rgba(232, 35, 42, 0.45);
}

.btn-outline-c {
    background: #fff;
    border: 1px solid var(--border-soft);
    color: var(--text-black);
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline-c:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.12);
}

.btn-outline-c i,
.btn-primary-c i {
    transition: transform 0.3s ease;
}

.btn-outline-c:hover i,
.btn-primary-c:hover i {
    transform: translateX(4px);
}

.trusted-label {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.brand-logos {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    filter: grayscale(100%);
    opacity: 0.55;
}

.brand-logos span {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-black);
}

.brand-logos i {
    font-size: 1.3rem;
    margin-right: 6px;
}

/* ---------- Tech Stack Marquee ---------- */
.stack-section {
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

.stack-track-wrap {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.stack-track {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 20px;
    width: max-content;
    animation: scrollLeft 22s linear infinite;
}

.stack-track-wrap:hover .stack-track {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.stack-card {
    flex: 0 0 auto;
    width: 200px;
    padding: 15px 18px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid var(--primary);
    background: #fff;
    box-sizing: border-box; /* fix: keep padding inside the set width */
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease;
}

.stack-title {
    color: #000;
    font-weight: 700;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.stack-card:hover {
    transform: translateY(-8px) scale(1.04);
    border-color: var(--primary);
    box-shadow: 0 18px 40px -12px rgba(232, 35, 42, 0.5);
    background: var(--primary);
}

.stack-link {
    color: var(--primary);
    font-weight: 600;
}

.stack-card:hover .stack-link {
    color: #fff;
}

.stack-card:hover .stack-title {
    color: #fff;
}

@media (max-width: 767px) {
    .stack-card {
        width: 150px; /* was 130px — too tight for these titles */
        min-height: 130px; /* keeps cards uniform even when text wraps to more lines */
        padding: 16px 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-sizing: border-box;
    }

    .stack-title {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .stack-link {
        font-size: 0.75rem;
    }

    .stack-icon {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .stack-label {
        font-size: 0.82rem;
    }

    .stack-track {
        gap: 14px;
        animation-duration: 16s;
    }
}
@media (prefers-reduced-motion: reduce) {
    .stack-track {
        animation: none;
    }
}

/* ---------- Services Slider ---------- */
.services-section {
    position: relative;
    padding: 100px 0 40px;
    margin-bottom: 50px;
    background: linear-gradient(180deg, #fbfafd 0%, #fdf3f3 100%);
}

.service-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 30px 26px;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.section-eyebrow {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.1rem;
    margin-top: 8px;
    position: relative;
    padding-bottom: 14px;
}
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    height: 3px;
    top: 0;
    transition: transform 0.35s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 45px -18px rgba(20, 20, 26, 0.18);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
    transition: all 0.35s ease;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #fff;
    transform: rotate(-8deg) scale(1.05);
}

.service-card h5 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-black);
    transition: all 0.3s ease;
}

.service-card:hover .service-arrow {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateX(3px);
}

/* ---------- Services Slider ---------- */
.services-slider {
    position: relative;
}

.services-track-wrap {
    padding: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.services-track-wrap::-webkit-scrollbar {
    display: none;
}

.services-track {
    display: flex;
    gap: 24px;
}

.services-slide {
    flex: 0 0 auto;
    width: calc((100% - 24px * 3) / 4);
    scroll-snap-align: start;
}

@media (max-width: 1199px) {
    .services-slide {
        width: calc((100% - 24px * 2) / 3);
    }
}

@media (max-width: 991px) {
    .services-slide {
        width: calc((100% - 24px * 1) / 2);
    }
}

@media (max-width: 575px) {
    .services-slide {
        width: 88%;
    }
}

.services-nav-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    background: #fff;
    color: var(--text-black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex: 0 0 auto;
}

.services-nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.services-nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.services-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
}

.services-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border-soft);
    border: none;
    padding: 0;
    transition: all 0.3s ease;
}

.services-dot:hover {
    background: var(--primary-light);
}

.services-dot.active {
    background: var(--primary);
    width: 26px;
    border-radius: 5px;
}

.services-nav-group {
    display: flex;
    gap: 12px;
}

@media (max-width: 767px) {
    .services-nav-group {
        display: none;
    }
}

.rm-section {
    position: relative;
    padding: 50px 0 20px;
    overflow: hidden;
}

/* Decorative pink rings scattered on the white background */
.rm-ring {
    position: absolute;
    border-radius: 50%;
    border: 18px solid var(--pink-bg);
    z-index: 0;
}
.rm-ring.r1 {
    width: 220px;
    height: 220px;
    top: -60px;
    left: -80px;
}
.rm-ring.r2 {
    width: 160px;
    height: 160px;
    bottom: -40px;
    right: -60px;
}
.rm-ring.r3 {
    width: 90px;
    height: 90px;
    top: 40%;
    right: 4%;
    border-width: 12px;
}

.rm-header {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}
.rm-pill {
    display: inline-block;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    border-radius: 20px;
}
.rm-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--navy);
    margin-top: 14px;
}
@media (max-width: 767px) {
    .rm-title {
        font-size: 1.7rem;
    }
}
.rm-sub {
    color: var(--text-muted);
    margin-top: 14px;
}

/* ---- Step numbers + connector row (desktop) ---- */
.rm-numbers {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto 18px;
    padding: 0 40px;
}
.rm-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
    flex-shrink: 0;
}
.rm-num.is-active {
    transform: scale(1.25);
    box-shadow: 0 0 0 6px rgba(239, 65, 55, 0.18);
}
.rm-dash {
    flex: 1;
    border-top: 2px dotted var(--primary);
    margin: 0 6px;
    opacity: 0.5;
}

/* ---- Cards grid (desktop) ---- */
.rm-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
}
.rm-card-wrap {
    position: relative;
}
.rm-arrow {
    position: absolute;
    top: 100px;
    right: -18px;
    z-index: 2;
    color: var(--primary);
    font-size: 0.8rem;
}
.rm-card-wrap:last-child .rm-arrow {
    display: none;
}

.rm-card {
    background: #fff;
    border: 1px solid #f1efee;
    border-radius: 16px;
    padding: 26px 18px 40px;
    text-align: center;
    height: 100%;
    box-shadow: 0 20px 40px -30px rgba(20, 20, 26, 0.15);
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
    position: relative;
}
.rm-card:hover,
.rm-card.is-active {
    transform: translateY(-8px);
    box-shadow: 0 30px 50px -26px rgba(239, 65, 55, 0.25);
}

.rm-icon-ring {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--pink-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 2rem;
    color: var(--primary);
    transition: transform 0.4s ease;
}
.rm-card:hover .rm-icon-ring,
.rm-card.is-active .rm-icon-ring {
    transform: rotate(-8deg) scale(1.05);
}

.rm-card h5 {
    font-weight: 700;
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 6px;
}
.rm-card .rm-underline {
    width: 26px;
    height: 2px;
    background: var(--primary);
    margin: 0 auto 10px;
}
.rm-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.rm-bottom-icon {
    position: absolute;
    left: 50%;
    bottom: -24px;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--pink-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 4px solid #fff;
}

/* ---- Continuous growth footer card ---- */
.rm-footer {
    position: relative;
    z-index: 1;
    max-width: 420px;
    margin: 64px auto 0;
    background: #fff;
    border: 1px solid #f1efee;
    border-radius: 16px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 20px 40px -30px rgba(20, 20, 26, 0.15);
}
.rm-footer-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--pink-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.rm-footer h6 {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.9rem;
    margin-bottom: 2px;
}
.rm-footer p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

/* ---- Mobile slider ---- */
.rm-slider {
    display: none;
    overflow: hidden;
}
.rm-slider-track {
    display: flex;
    transition: transform 0.5s ease;
}
.rm-slider-track .rm-card-wrap {
    flex: 0 0 100%;
    padding: 0 6px;
    min-width: 100%;
}
.rm-slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}
.rm-slider-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #f1efee;
    background: #fff;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.rm-slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.rm-slider-dots {
    display: flex;
    gap: 6px;
}
.rm-slider-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f1efee;
    transition: all 0.3s ease;
}
.rm-slider-dots span.active {
    background: var(--primary);
    width: 18px;
    border-radius: 4px;
}

@media (max-width: 767px) {
    .rm-numbers,
    .rm-grid {
        display: none;
    }
    .rm-slider {
        display: block;
    }
    .rm-arrow {
        display: none;
    }
}

/* ---------- Stats bar ---------- */
.stats-section {
    background: var(--primary-light);
    padding: 46px 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.08) rotate(-6deg);
}

.stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.quote-box {
    background: #fff;
    border-radius: 14px;
    padding: 22px 24px;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.quote-box i {
    color: var(--primary);
    font-size: 1.3rem;
    margin-right: 14px;
}

.quote-box p {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-black);
    margin: 0;
    line-height: 1.5;
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ================= Process Section ================= */
.process-section {
    position: relative;
    padding: 40px 0 40px;
    overflow: hidden;
    isolation: isolate;
}

.process-section::before,
.process-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    z-index: -1;
    animation: drift 14s ease-in-out infinite;
}

.process-section::before {
    width: 420px;
    height: 420px;
    background: radial-gradient(
        circle,
        rgba(230, 50, 66, 0.16),
        rgba(230, 50, 66, 0) 70%
    );
    top: -140px;
    left: -160px;
    animation-delay: 0s;
}

.process-section::after {
    width: 520px;
    height: 520px;
    background: radial-gradient(
        circle,
        rgba(230, 50, 66, 0.12),
        rgba(230, 50, 66, 0) 70%
    );
    bottom: -200px;
    right: -180px;
    animation-delay: 3s;
}

@keyframes drift {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -20px) scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .process-section::before,
    .process-section::after {
        animation: none;
    }
}

/* ================= HEADER ================= */

.section-title {
    font-weight: 800;
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}

.section-title .accent {
    color: var(--primary);
}

/* ================= PROCESS CARD ================= */
.process-card {
    background: var(--white);
    border-radius: 22px;
    padding: 26px;
    height: 100%;
    display: flex;
    gap: 22px;
    box-shadow: 0 8px 26px rgba(24, 26, 32, 0.05);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.process-card-link {
    position: relative;
    cursor: none;
}

.click-cursor {
    position: absolute;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 100;
}

.process-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(230, 50, 66, 0.14);
}

.card-media {
    position: relative;
    flex: 0 0 auto;
    width: 38%;
    min-width: 130px;
}

.card-media::before {
    content: "";
    position: absolute;
    top: -14px;
    left: -14px;
    width: 70px;
    height: 70px;
    background-image: radial-gradient(
        var(--primary-dark) 1.6px,
        transparent 1.6px
    );
    background-size: 9px 9px;
    opacity: 0.18;
    z-index: 0;
    border-radius: 8px;
}

.media-tile {
    position: relative;
    z-index: 1;
    aspect-ratio: 1/1;
    border-radius: 18px;
    background: linear-gradient(155deg, var(--primary-light), #ffffff 65%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.process-card:hover .media-tile {
    transform: scale(1.045) rotate(-1deg);
}

.media-tile i {
    font-size: 2.6rem;
    color: var(--primary);
}

.media-corner {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 6px 14px rgba(230, 50, 66, 0.4);
    z-index: 2;
    transition: transform 0.35s ease;
}

.process-card:hover .media-corner {
    transform: rotate(12deg) scale(1.1);
}

.card-content {
    flex: 1 1 auto;
    min-width: 0;
}

.card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.card-head.reverse {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.card-head.reverse .card-title {
    text-align: right;
}

/* Make the Development card act as a link without breaking its layout/hover */
a.process-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
a.process-card-link:hover,
a.process-card-link:visited,
a.process-card-link:active {
    color: inherit;
    text-decoration: none;
}

.num-badge {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 12px rgba(230, 50, 66, 0.32);
    transition: transform 0.3s ease;
}

.process-card:hover .num-badge {
    transform: scale(1.1);
}

.card-title {
    font-weight: 700;
    font-size: 1.08rem;
    margin: 0;
}

.sub-block {
    margin-bottom: 12px;
}

.sub-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.sub-label i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
}

.sub-text {
    color: var(--gray);
    font-size: 0.85rem;
    line-height: 1.55;
    margin: 0;
}

.outcome-box {
    background: var(--primary-light);
    border-radius: 14px;
    padding: 12px 14px;
    transition:
        background 0.3s ease,
        transform 0.3s ease;
}

.outcome-box:hover {
    background: #f9d8db;
    transform: translateX(2px);
}

/* ================= OUTCOMES PANEL (final row) ================= */
.outcomes-panel {
    background: var(--white);
    border-radius: 22px;
    padding: 28px 26px;
    height: 100%;
    box-shadow: 0 8px 26px rgba(24, 26, 32, 0.05);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.outcomes-panel:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 44px rgba(230, 50, 66, 0.14);
}

.outcomes-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.outcomes-title i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.outcome-item {
    text-align: center;
    padding: 6px 4px;
}

.outcome-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
    border-radius: 50%;
    border: 1.5px solid #f3c4c9;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.15rem;
    transition:
        transform 0.35s ease,
        background 0.35s ease,
        color 0.35s ease;
}

.outcome-item:hover .outcome-icon {
    background: var(--primary);
    color: #fff;
    transform: translateY(-5px) rotate(-6deg);
}

.outcome-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    margin: 0;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 767px) {
    .process-card {
        flex-direction: column;
    }

    .card-media {
        width: 100%;
        max-width: 180px;
        margin: 0 auto;
    }

    .card-head.reverse {
        flex-direction: row;
        justify-content: flex-start;
    }

    .card-head.reverse .card-title {
        text-align: left;
    }

    .card-content {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .process-card {
        padding: 20px;
    }

    .outcomes-panel {
        padding: 22px 18px;
    }
}

/* ---- CTA banner ---- */
.products-cta {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    border-radius: 18px;
    padding: 34px 40px;
    background: linear-gradient(
        100deg,
        #101226 0%,
        #2a0e12 55%,
        var(--primary) 100%
    );
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    overflow: hidden;
}

.products-cta-left {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.products-cta-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.products-cta h4 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.products-cta p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin: 0;
}

.products-cta-rocket {
    position: absolute;
    right: 23%;
    top: 50%;
    transform: translateY(-50%) rotate(35deg);
    font-size: 2.6rem;
    color: var(--primary);
    opacity: 0.9;
    z-index: 0;
}

@media (max-width: 991px) {
    .products-cta-rocket {
        display: none;
    }
}

.btn-view-all-products {
    position: relative;
    z-index: 1;
    background: #fff;
    color: var(--text-black);
    border: none;
    padding: 13px 26px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-view-all-products:hover {
    background: var(--text-black);
    color: #fff;
    transform: translateY(-3px);
    gap: 12px;
}

@media (max-width: 575px) {
    .products-cta {
        padding: 26px 22px;
        text-align: center;
        justify-content: center;
    }

    .products-cta-left {
        flex-direction: column;
        text-align: center;
    }
}


/* Group of Companies */

  .text-primary-c {
    color: var(--primary) !important;
  }

  .bg-primary-c {
    background: var(--primary) !important;
  }

  /* ==============================
       MAIN SECTION
    ============================== */

  .companies-wrap {
    margin: 0 auto;
    padding: 64px 20px 80px;
    position: relative;
    overflow: hidden;
  }

  /* ==============================
       HIDDEN RADIO BUTTONS
       Prevents page from jumping
    ============================== */

  .tab-radio {
    position: fixed;
    top: 0;
    left: -100px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }

  /* ==============================
       BACKGROUND DECORATION
    ============================== */

  .dot-grid {
    position: absolute;
    top: 40px;
    left: 0;
    width: 130px;
    height: 100px;
    background-image:
      radial-gradient(var(--primary-light) 1.6px,
        transparent 1.6px);
    background-size: 14px 14px;
    opacity: .9;
    z-index: 0;
  }

  .blob {
    position: absolute;
    top: -90px;
    right: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: var(--primary-light);
    opacity: .6;
    z-index: 0;
  }

  .dot-corner {
    position: absolute;
    bottom: 20px;
    right: 0;
    width: 110px;
    height: 90px;
    background-image:
      radial-gradient(var(--primary-light) 1.6px,
        transparent 1.6px);
    background-size: 14px 14px;
    opacity: .9;
  }

  /* ==============================
       HEADING
    ============================== */

  .headline {
    font-size: clamp(1.9rem, 4.4vw, 3.1rem);
    line-height: 1.1;
    margin: 18px 0 14px;
  }

  .headline span {
    color: var(--primary);
  }

  .sub {
    font-size: 1.02rem;
    max-width: 560px;
    margin: 0 auto;
  }

  /* ==============================
       COMPANY PILLS
    ============================== */

  .pill-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 6px 14px;
    margin-top: 36px;

    position: relative;
    z-index: 2;

    scrollbar-width: none;
  }

  .pill-row::-webkit-scrollbar {
    display: none;
  }

  .pill-btn {
    flex: 0 0 auto;

    border: 1px solid var(--border-soft);
    background: #fff;
    color: var(--text-black);

    border-radius: 999px;
    padding: 11px 22px;

    font-weight: 600;
    font-size: .92rem;

    white-space: nowrap;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    cursor: pointer;
    user-select: none;

    transition:
      transform .25s ease,
      box-shadow .25s ease,
      background .25s ease,
      color .25s ease,
      border-color .25s ease;
  }

  .pill-btn i {
    font-size: .85rem;
  }

  .pill-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(20, 20, 26, .08);
    border-color: var(--primary-light);
  }

  /* Active pill */

  #tab-novelx:checked~.pill-row label[for="tab-novelx"],
  #tab-nxst:checked~.pill-row label[for="tab-nxst"],
  #tab-fuiox:checked~.pill-row label[for="tab-fuiox"] {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
  }

  /* ==============================
       SHOWCASE AREA
    ============================== */

  .showcase-stage {
    position: relative;
    margin-top: 8px;
    z-index: 2;
  }

  .showcase-card {
    background: #fff;

    border-radius: 26px;
    padding: 22px;

    position: absolute;
    inset: 0;

    z-index: 1;

    box-shadow:
      0 24px 60px rgba(20, 20, 26, .07);

    opacity: 0;

    transform:
      translateY(18px) scale(.985);

    pointer-events: none;

    transition:
      opacity .45s cubic-bezier(.22, .7, .25, 1),
      transform .45s cubic-bezier(.22, .7, .25, 1);
  }

  /* Active showcase card */

  #tab-novelx:checked~.showcase-stage .showcase-card[data-panel="novelx"],

  #tab-nxst:checked~.showcase-stage .showcase-card[data-panel="nxst"],

  #tab-fuiox:checked~.showcase-stage .showcase-card[data-panel="fuiox"] {

    opacity: 1;

    transform:
      translateY(0) scale(1);

    position: relative;

    pointer-events: auto;
  }

  /* ==============================
       IMAGE
    ============================== */

  .showcase-img {
    border-radius: 18px;
    overflow: hidden;

    height: 100%;
    min-height: 320px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f7f7f7;
  }

  .showcase-img img {
    width: 100%;
    height: 100%;

    min-height: 320px;

    display: block;

    object-fit: cover;
  }

  /* ==============================
       SHOWCASE CONTENT
    ============================== */

  .showcase-body {
    padding: 22px 12px 12px 32px;

    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .sc-eyebrow {
    font-size: .72rem;

    font-weight: 700;

    letter-spacing: .12em;

    color: var(--primary);

    margin-bottom: 10px;

    display: block;
  }

.showcase-img{
    height: 300px;
}

  .sc-title {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);

    margin-bottom: 14px;
  }

  .sc-title .accent {
    color: var(--primary);
  }

  .sc-desc {
    font-size: .98rem;
    line-height: 1.7;
  }

  /* ==============================
       BRAND + EXPLORE ROW
    ============================== */

  .brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    width: 100%;

    margin-top: 30px;
  }

  .brand-info {
    display: flex;
    align-items: center;

    gap: 10px;

    min-width: 0;
  }

  .brand-mark {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    border-radius: 9px;

    background: var(--primary-light);
    color: var(--primary);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1rem;
  }

  .brand-name {
    font-family:
      "Plus Jakarta Sans",
      sans-serif;

    font-weight: 800;

    font-size: 1rem;

    line-height: 1.05;
  }

  .brand-name small {
    display: block;

    font-size: .6rem;

    font-weight: 700;

    letter-spacing: .16em;

    color: var(--gray);
  }

  /* ==============================
       EXPLORE BUTTON
    ============================== */

  .explore-btn {
    flex-shrink: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 9px 16px;

    border-radius: 8px;

    font-size: .9rem;
    font-weight: 600;

    white-space: nowrap;

    text-decoration: none;
  }

  .explore-btn i {
    transition: transform .25s ease;
  }

  .explore-btn:hover i {
    transform: translateX(4px);
  }

  /* ==============================
       REDUCED MOTION
    ============================== */

  @media (prefers-reduced-motion: reduce) {

    * {
      transition: none !important;
      animation: none !important;
    }
  }

  /* ==============================
       TABLET
    ============================== */

  @media (max-width: 991px) {

    .showcase-body {
      padding: 26px 6px 6px;
    }

    .showcase-img {
      min-height: 240px;
    }

    .showcase-img img {
      min-height: 240px;
    }
  }

  /* ==============================
       MOBILE
    ============================== */

  @media (max-width: 575px) {

    .companies-wrap {
      padding: 50px 15px 35px;
    }

    .pill-row {
      justify-content: flex-start !important;
      margin-top: 25px;
    }

    .pill-btn {
      padding: 10px 17px;
      font-size: .85rem;
    }

    .showcase-card {
      padding: 14px;
      border-radius: 20px;
    }

    .showcase-img {
      height: 210px;
      border-radius: 14px;
    }

    .showcase-img img {
      height: 210px;
    }

    .showcase-body {
      padding: 22px 4px 4px 10px;
    }

    .sc-title {
      margin-bottom: 12px;
    }

    .sc-desc {
      font-size: .92rem;
      line-height: 1.65;
    }

    .brand-row {
      margin-top: 24px;
    }

    .brand-name {
      font-size: .9rem;
    }

    .brand-name small {
      font-size: .55rem;
    }

    .explore-btn {
      padding: 8px 12px;
      font-size: .8rem;
    }
  }


/* ---- Enquiry modal ---- */
.enquiry-modal .modal-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
}

.enquiry-modal .modal-header {
    background: var(--primary);
    border: none;
    padding: 22px 26px;
}

.enquiry-modal .modal-title {
    color: #fff;
    font-weight: 700;
}

.enquiry-modal .modal-title small {
    display: block;
    font-weight: 400;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 3px;
}

.enquiry-modal .btn-close {
    filter: invert(1) brightness(2);
}

.enquiry-modal .modal-body {
    padding: 28px 26px 8px;
}

.enquiry-modal .modal-footer {
    border: none;
    padding: 0 26px 26px;
}

.enquiry-modal .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-black);
}

.enquiry-modal .form-control {
    border-radius: 9px;
    border: 1px solid var(--border-soft);
    padding: 10px 14px;
    font-size: 0.9rem;
}

.enquiry-modal .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 35, 42, 0.12);
}

.btn-submit-enquiry {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 11px 26px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-submit-enquiry:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.stats-section {
    background: var(--primary-light);
    padding: 46px 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.08) rotate(-6deg);
}

.stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.quote-box {
    background: #fff;
    border-radius: 14px;
    padding: 22px 24px;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.quote-box i {
    color: var(--primary);
    font-size: 1.3rem;
    margin-right: 14px;
}

.quote-box p {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-black);
    margin: 0;
    line-height: 1.5;
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ---- Enquiry modal ---- */
.enquiry-modal .modal-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
}

.enquiry-modal .modal-header {
    background: var(--primary);
    border: none;
    padding: 22px 26px;
}

.enquiry-modal .modal-title {
    color: #fff;
    font-weight: 700;
}

.enquiry-modal .modal-title small {
    display: block;
    font-weight: 400;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 3px;
}

.enquiry-modal .btn-close {
    filter: invert(1) brightness(2);
}

.enquiry-modal .modal-body {
    padding: 28px 26px 8px;
}

.enquiry-modal .modal-footer {
    border: none;
    padding: 0 26px 26px;
}

.enquiry-modal .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-black);
}

.enquiry-modal .form-control {
    border-radius: 9px;
    border: 1px solid var(--border-soft);
    padding: 10px 14px;
    font-size: 0.9rem;
}

.enquiry-modal .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 35, 42, 0.12);
}

.btn-submit-enquiry {
    background: var(--primary);
    border: none;
    color: #fff;
    padding: 11px 26px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 0.9rem;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-submit-enquiry:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.cat-flip-card {
    position: relative;
    perspective: 1400px;
    height: 100%;
}

.cat-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 190px;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.cat-flip-card:hover .cat-flip-inner,
.cat-flip-card:focus-within .cat-flip-inner {
    transform: rotateY(180deg);
}

.cat-flip-face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
}

.cat-flip-front {
    background: #fff;
    border: 1px solid var(--border-soft);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.5);
}

.cat-deco-icon {
    position: absolute;
    right: 12px;
    bottom: 6px;
    font-size: 3.4rem;
    z-index: 0;
    transform: rotate(-6deg);
    opacity: 0.12;
}

.cat-icon-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cat-flip-front h5 {
    color: var(--text-black);
    font-size: 1.05rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.cat-flip-front p {
    color: var(--text-muted);
    font-size: 0.83rem;
    line-height: 1.5;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.cat-underline {
    width: 26px;
    height: 3px;
    border-radius: 3px;
    position: relative;
    z-index: 1;
}

/* back face: background matches this card's icon color on hover */
.cat-flip-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    box-shadow: 0 20px 45px -18px rgba(0, 0, 0, 0.5);
}

.cat-flip-back .cat-back-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 14px;
}

.cat-flip-back h6 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.cat-flip-back p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    margin-bottom: 16px;
}

.btn-cat-explore {
    background: #fff;
    color: var(--text-black);
    border: none;
    padding: 9px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.83rem;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.3s ease;
}

.btn-cat-explore:hover {
    gap: 11px;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.35);
}

/* ---- per-card accent colors: icon ring, decoration, underline, back face ---- */
.cat-blue .cat-icon-ring {
    color: #3b6fe0;
    background: rgba(59, 111, 224, 0.1);
    border-color: rgba(59, 111, 224, 0.3);
}

.cat-blue .cat-deco-icon {
    color: #3b6fe0;
}

.cat-blue .cat-underline {
    background: #3b6fe0;
}

.cat-blue .cat-flip-back {
    background: linear-gradient(160deg, #3b6fe0, #2a52ad);
}

.cat-purple .cat-icon-ring {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.cat-purple .cat-deco-icon {
    color: #8b5cf6;
}

.cat-purple .cat-underline {
    background: #8b5cf6;
}

.cat-purple .cat-flip-back {
    background: linear-gradient(160deg, #8b5cf6, #6633cc);
}

.cat-pink .cat-icon-ring {
    color: #ec4e7a;
    background: rgba(236, 78, 122, 0.1);
    border-color: rgba(236, 78, 122, 0.3);
}

.cat-pink .cat-deco-icon {
    color: #ec4e7a;
}

.cat-pink .cat-underline {
    background: #ec4e7a;
}

.cat-pink .cat-flip-back {
    background: linear-gradient(160deg, #ec4e7a, #c43360);
}

.cat-orange .cat-icon-ring {
    color: #f0862e;
    background: rgba(240, 134, 46, 0.1);
    border-color: rgba(240, 134, 46, 0.3);
}

.cat-orange .cat-deco-icon {
    color: #f0862e;
}

.cat-orange .cat-underline {
    background: #f0862e;
}

.cat-orange .cat-flip-back {
    background: linear-gradient(160deg, #f0862e, #c4651b);
}

.cat-teal .cat-icon-ring {
    color: #2aa9c7;
    background: rgba(42, 169, 199, 0.1);
    border-color: rgba(42, 169, 199, 0.3);
}

.cat-teal .cat-deco-icon {
    color: #2aa9c7;
}

.cat-teal .cat-underline {
    background: #2aa9c7;
}

.cat-teal .cat-flip-back {
    background: linear-gradient(160deg, #2aa9c7, #1d7c97);
}

.cat-indigo .cat-icon-ring {
    color: #5b5fef;
    background: rgba(91, 95, 239, 0.1);
    border-color: rgba(91, 95, 239, 0.3);
}

.cat-indigo .cat-deco-icon {
    color: #5b5fef;
}

.cat-indigo .cat-underline {
    background: #5b5fef;
}

.cat-indigo .cat-flip-back {
    background: linear-gradient(160deg, #5b5fef, #3c3fbf);
}

.cat-green .cat-icon-ring {
    color: #22b37a;
    background: rgba(34, 179, 122, 0.1);
    border-color: rgba(34, 179, 122, 0.3);
}

.cat-green .cat-deco-icon {
    color: #22b37a;
}

.cat-green .cat-underline {
    background: #22b37a;
}

.cat-green .cat-flip-back {
    background: linear-gradient(160deg, #22b37a, #17835a);
}

.cat-cyan .cat-icon-ring {
    color: #17a2c7;
    background: rgba(23, 162, 199, 0.1);
    border-color: rgba(23, 162, 199, 0.3);
}

.cat-cyan .cat-deco-icon {
    color: #17a2c7;
}

.cat-cyan .cat-underline {
    background: #17a2c7;
}

.cat-cyan .cat-flip-back {
    background: linear-gradient(160deg, #17a2c7, #106e88);
}

.cat-amber .cat-icon-ring {
    color: #d89a1e;
    background: rgba(216, 154, 30, 0.12);
    border-color: rgba(216, 154, 30, 0.32);
}

.cat-amber .cat-deco-icon {
    color: #d89a1e;
}

.cat-amber .cat-underline {
    background: #d89a1e;
}

.cat-amber .cat-flip-back {
    background: linear-gradient(160deg, #d89a1e, #a8740f);
}

.cat-slate .cat-icon-ring {
    color: #546178;
    background: rgba(84, 97, 120, 0.1);
    border-color: rgba(84, 97, 120, 0.3);
}

.cat-slate .cat-deco-icon {
    color: #546178;
}

.cat-slate .cat-underline {
    background: #546178;
}

.cat-slate .cat-flip-back {
    background: linear-gradient(160deg, #647089, #3e4859);
}

.cat-magenta .cat-icon-ring {
    color: #c93b9e;
    background: rgba(201, 59, 158, 0.1);
    border-color: rgba(201, 59, 158, 0.3);
}

.cat-magenta .cat-deco-icon {
    color: #c93b9e;
}

.cat-magenta .cat-underline {
    background: #c93b9e;
}

.cat-magenta .cat-flip-back {
    background: linear-gradient(160deg, #c93b9e, #98246f);
}

/* static highlight tile (not flipped) */
.cat-highlight {
    height: 100%;
    min-height: 190px;
    border-radius: 16px;
    background:
        radial-gradient(
            120% 140% at 20% 15%,
            rgba(255, 255, 255, 0.16) 0%,
            rgba(255, 255, 255, 0) 45%
        ),
        linear-gradient(145deg, #ff4650 0%, var(--primary) 55%, #a81319 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    color: #fff;
    text-decoration: none;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.cat-highlight:hover {
    color: #fff;
    transform: translateY(-6px);
    box-shadow: 0 24px 50px -16px rgba(232, 35, 42, 0.55);
}

.cat-highlight-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.cat-highlight h5 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.cat-highlight p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.cat-highlight-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
}

.cat-highlight:hover .cat-highlight-arrow {
    background: #fff;
    color: var(--primary);
    transform: translateX(4px);
}

@media (max-width: 767px) {
    .cat-flip-inner,
    .cat-highlight {
        min-height: 170px;
    }

    .cat-deco-icon {
        font-size: 2.6rem;
    }
}

/* ================= Case Study Section ================= */

.display-font {
    font-family: "Plus Jakarta Sans", sans-serif;
}

.cs-section {
    padding: 30px 0 40px;
}

/* ---------- Header ---------- */
.eyebrow {
    color: var(--primary);
    letter-spacing: 2.5px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.eyebrow::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 3px;
    border-radius: 4px;
    background: var(--primary);
}

.cs-heading {
    font-weight: 800;
    font-size: 2.1rem;
    line-height: 1.12;
    letter-spacing: -0.5px;
    color: var(--ink);
}
.cs-heading .accent {
    color: var(--primary);
}

.cs-sub {
    color: var(--text-muted);
    font-size: 1.03rem;
    max-width: 560px;
    margin: 22px auto 0;
    line-height: 1.7;
}

/* ---------- Left Feature Card ---------- */
.feature-card {
    position: relative;
    background: linear-gradient(
        155deg,
        var(--card-deep) 10%,
        var(--card-deep-2) 100%
    );
    border-radius: 26px;
    padding: 40px 38px 38px;
    min-height: 560px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 60px -25px rgba(13, 36, 32, 0.55);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Feature card now holds all case-study panels; show only the active one */
.feature-card .fc-content {
    display: none;
    flex-direction: column;
    height: 100%;
}
.feature-card .fc-content.active {
    display: flex;
}

/* diagonal stripe texture */
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.035) 0px,
        rgba(255, 255, 255, 0.035) 1px,
        transparent 1px,
        transparent 18px
    );
    pointer-events: none;
}
.feature-card::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 260px;
    height: 260px;
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 34px;
    transform: rotate(8deg);
    pointer-events: none;
}

.fc-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.fc-badge {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 8px;
}

.fc-date {
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    font-size: 13.5px;
    padding: 9px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.25);
}
.fc-date i {
    color: var(--primary);
}

.fc-body {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 40px;
}

.fc-category {
    color: #b9d6cd;
    letter-spacing: 1.6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.fc-title {
    color: #fff;
    font-weight: 800;
    font-size: 2rem;
    line-height: 1.22;
    letter-spacing: -0.3px;
    margin-bottom: 18px;
}

.fc-rule {
    width: 46px;
    height: 4px;
    background: var(--primary);
    border-radius: 4px;
    margin-bottom: 22px;
}

.fc-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #eaf3ef;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 30px;
    margin-bottom: 20px;
    width: fit-content;
    backdrop-filter: blur(4px);
}
.fc-tag i {
    color: #7fe3c2;
}

.fc-desc {
    color: #cfded9;
    font-size: 0.98rem;
    line-height: 1.75;
    max-width: 460px;
    margin-bottom: 22px;
}

.fc-client {
    color: #93a8a2;
    font-size: 13.5px;
    margin-bottom: 26px;
}
.fc-client b {
    color: #e3ece9;
    font-weight: 600;
}

.fc-btn {
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    font-size: 14.5px;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    transition: all 0.3s ease;
    text-decoration: none;
}
.fc-btn i {
    transition: transform 0.3s ease;
}
.fc-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 24px -10px rgba(255, 90, 54, 0.55);
}
.fc-btn:hover i {
    transform: translateX(4px);
}

/* fade content swap */
.fc-fade {
    animation: fcFade 0.45s ease;
}
@keyframes fcFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.cs-viewall-wrap {
    padding-left: 0;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cs-viewall-btn {
    background: var(--ink);
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    border: none;
    padding: 14px 26px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.cs-viewall-btn i {
    transition: transform 0.3s ease;
}
.cs-viewall-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 24px -10px rgba(255, 90, 54, 0.55);
}
.cs-viewall-btn:hover i {
    transform: translateX(4px);
}

@media (max-width: 991.98px) {
    .cs-viewall-wrap {
        padding-left: 0;
    }
}

/* ---------- Right timeline list ---------- */
.timeline-wrap {
    position: relative;
    padding-left: 46px;
}
.timeline-line {
    position: absolute;
    left: 15px;
    top: 22px;
    bottom: 22px;
    width: 2px;
    background-image: linear-gradient(var(--primary) 60%, transparent 0%);
    background-size: 2px 10px;
    background-repeat: repeat-y;
    opacity: 0.55;
}

.t-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    border-radius: 16px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: all 0.35s ease;
    border: 1px solid transparent;
}
.t-item:not(:last-child) {
    margin-bottom: 14px;
}

.t-num {
    position: absolute;
    left: -46px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    font-size: 11.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s ease;
}

.t-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    transition: transform 0.35s ease;
}

.t-content {
    flex: 1;
    min-width: 0;
}
.t-cat {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 4px;
}
.t-title {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 6px;
}
.t-meta {
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.t-arrow {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    border: 1.5px solid #e3e1dc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    transition: all 0.35s ease;
}

.t-item:hover {
    background: #faf9f7;
    transform: translateX(4px);
}
.t-item:hover .t-icon {
    transform: scale(1.06) rotate(-3deg);
}
.t-item:hover .t-arrow {
    border-color: var(--primary);
    color: var(--primary);
}

.t-item.active {
    background: var(--pale);
    border-color: rgba(255, 90, 54, 0.15);
}
.t-item.active .t-num {
    background: var(--primary);
    color: #fff;
}
.t-item.active .t-arrow {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ---------- Mobile flip nav ---------- */
.flip-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 28px;
}
.flip-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #e3e1dc;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    transition: all 0.3s ease;
}
.flip-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.06);
}
.flip-dots {
    display: flex;
    gap: 7px;
}
.flip-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e3e1dc;
    transition: all 0.3s ease;
}
.flip-dots span.active {
    width: 20px;
    border-radius: 4px;
    background: var(--primary);
}

/* book-flip animation for mobile card */
.flip-anim-next {
    animation: flipNext 0.55s ease;
}
.flip-anim-prev {
    animation: flipPrev 0.55s ease;
}
@keyframes flipNext {
    0% {
        transform: perspective(1200px) rotateY(0deg);
        opacity: 1;
    }
    45% {
        transform: perspective(1200px) rotateY(-90deg);
        opacity: 0.25;
    }
    46% {
        transform: perspective(1200px) rotateY(90deg);
        opacity: 0.25;
    }
    100% {
        transform: perspective(1200px) rotateY(0deg);
        opacity: 1;
    }
}
@keyframes flipPrev {
    0% {
        transform: perspective(1200px) rotateY(0deg);
        opacity: 1;
    }
    45% {
        transform: perspective(1200px) rotateY(90deg);
        opacity: 0.25;
    }
    46% {
        transform: perspective(1200px) rotateY(-90deg);
        opacity: 0.25;
    }
    100% {
        transform: perspective(1200px) rotateY(0deg);
        opacity: 1;
    }
}

@media (max-width: 991.98px) {
    .cs-section {
        padding: 24px 0 70px;
    }
    .feature-card {
        min-height: unset;
        padding: 32px 26px 30px;
    }
    .fc-title {
        font-size: 1.5rem;
    }
    .timeline-desktop {
        display: none;
    }
}
@media (max-width: 575.98px) {
    .feature-card {
        padding: 22px 18px 20px;
        border-radius: 20px;
    }
    .fc-top {
        gap: 8px;
    }
    .fc-badge {
        font-size: 9.5px;
        padding: 5px 11px;
        border-radius: 6px;
        letter-spacing: 0.6px;
    }
    .fc-date {
        font-size: 10.5px;
        padding: 6px 10px;
        border-radius: 9px;
        gap: 5px;
    }
    .fc-date i {
        font-size: 10px;
    }
    .fc-body {
        padding-top: 22px;
    }
    .fc-category {
        font-size: 10.5px;
        margin-bottom: 8px;
        letter-spacing: 1px;
    }
    .fc-title {
        font-size: 1.18rem;
        margin-bottom: 12px;
    }
    .fc-rule {
        width: 34px;
        height: 3px;
        margin-bottom: 14px;
    }
    .fc-tag {
        font-size: 11.5px;
        padding: 6px 11px;
        margin-bottom: 14px;
    }
    .fc-desc {
        font-size: 0.86rem;
        line-height: 1.6;
        margin-bottom: 16px;
    }
    .fc-client {
        font-size: 12px;
        margin-bottom: 18px;
    }
    .fc-btn {
        padding: 11px 20px;
        font-size: 13px;
    }
}
@media (min-width: 992px) {
    .flip-nav-wrap {
        display: none;
    }
}

/* Testimonial section */

/* brand-colored decorative bits (no Bootstrap equivalent) */
.tm-dot-grid {
    background-image: radial-gradient(var(--primary) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.06;
}
.tm-blob {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    background: var(--primary);
}
@media (max-width: 767px) {
    .tm-blob {
        width: 180px;
        height: 180px;
        opacity: 0.12;
    }
}

.tm-eyebrow-line {
    width: 28px;
    height: 2px;
    background: var(--primary);
    display: inline-block;
}
.tm-eyebrow-text {
    color: var(--primary);
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}
.tm-quote-top {
    color: var(--primary);
    opacity: 0.35;
    font-size: 1.4rem;
}
.tm-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}
.tm-accent {
    color: var(--primary);
}

/* card tint + hover (Bootstrap gives rounded-4/shadow-sm/p-4, we only add the color + lift) */
.tm-card {
    background: var(--primary-light);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}
.tm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(232, 35, 42, 0.12) !important;
}
.tm-quote-icon {
    color: var(--primary);
    opacity: 0.6;
}
.tm-stars {
}

.tm-avatar {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
}
.tm-text {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* sliding track: Bootstrap's gap-4 utility handles spacing, this just sets the per-card width per breakpoint */
.tm-slide {
    flex: 0 0 calc((100% - 1.5rem) / 2);
    min-width: 0;
}
@media (min-width: 992px) {
    .tm-slide {
        flex: 0 0 calc((100% - 3rem) / 3);
    }
}

.tm-nav-btn {
    z-index: 2;
}
.tm-nav-btn.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.tm-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: #e6c3c4;
    padding: 0;
    transition:
        background 0.25s ease,
        width 0.25s ease;
}
.tm-dot.active {
    background: var(--primary);
    width: 22px;
    border-radius: 5px;
}

/* mobile book flip: the 3D transform has no Bootstrap equivalent */
.tm-book-stage {
    perspective: 1400px;
}
.tm-book-page {
    background: var(--primary-light);
    min-height: 260px;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transform: rotateY(0deg);
    transition: transform 0.5s ease;
}
.tm-book-page.is-flipping {
    transform: rotateY(-92deg);
}
.tm-book-page .tm-text {
    -webkit-line-clamp: 8;
}
.tm-book-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e6c3c4;
    display: inline-block;
    transition:
        background 0.25s ease,
        width 0.25s ease;
}
.tm-book-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
}

/* ================= GLITTERING STAR RATING ================= */
.tm-stars {
    --star-glow: rgba(244, 180, 0, 0.55);
    color: #f5a623;
    font-size: 0.82rem;
    letter-spacing: 2px;
}

.tm-stars i {
    position: relative;
    display: inline-block;
    background: linear-gradient(100deg, #f4b400 30%, #ffe9a8 45%, #f4b400 60%);
    background-size: 260% 100%;

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #f4b400; /* fallback if background-clip:text is unsupported */
    animation:
        tm-star-shimmer 3.2s linear infinite,
        tm-star-twinkle 2.6s ease-in-out infinite;
    filter: drop-shadow(0 0 0 var(--star-glow));
}

/* Stagger each star so the twinkle travels left to right, not in unison */
.tm-stars i:nth-child(1) {
    animation-delay: 0s, 0s;
}
.tm-stars i:nth-child(2) {
    animation-delay: 0.15s, 0.3s;
}
.tm-stars i:nth-child(3) {
    animation-delay: 0.3s, 0.6s;
}
.tm-stars i:nth-child(4) {
    animation-delay: 0.45s, 0.9s;
}
.tm-stars i:nth-child(5) {
    animation-delay: 0.6s, 1.2s;
}

@keyframes tm-star-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -60% 0;
    }
}

@keyframes tm-star-twinkle {
    0%,
    100% {
        filter: drop-shadow(0 0 0 var(--star-glow)) brightness(1);
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 4px var(--star-glow)) brightness(1.25);
        transform: scale(1.12);
    }
}

/* Hover / active-slide accent: glitter speeds up as a reward for attention */
.tm-card:hover .tm-stars i,
.tm-slide.is-mid .tm-stars i,
.tm-book-page:hover .tm-stars i {
    animation-duration: 1.6s, 1.3s;
}

/* Mobile: same effect, calmer pace so it doesn't distract on small screens */
@media (max-width: 767px) {
    .tm-stars i {
        animation-duration: 4s, 3.4s;
    }
}

/* Respect reduced-motion preference: static gold, no shimmer */
@media (prefers-reduced-motion: reduce) {
    .tm-stars i {
        animation: none;
        background: none;
        -webkit-text-fill-color: initial;
        color: #f4b400;
        filter: none;
    }
}

/* ---------- Contact ---------- */

.contact-section {
    padding: 20px 0 60px;
}

.ct-eyebrow {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ct-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin-top: 10px;
}

.ct-title .accent {
    color: var(--primary);
    display: block;
}

@media (max-width: 767px) {
    .ct-title {
        font-size: 1.8rem;
    }
}

.ct-sub {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 380px;
}

.ct-rule {
    width: 46px;
    height: 3px;
    background: var(--primary);
    margin: 20px 0 26px;
    border-radius: 2px;
}

/* ---- Contact info list ---- */
.ct-info-item {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
}

.ct-info-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--pink-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ct-info-item:hover .ct-info-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.08);
}

.ct-info-item h6 {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
    font-size: 0.92rem;
}

.ct-info-item p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}
.ct-info-link {
    display: flex;
    align-items: flex-start;
    gap: inherit;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.ct-info-link:hover h6 {
    color: var(--primary);
}
/* ---- Envelope illustration ---- */
.ct-art {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-art-blob {
    position: absolute;
    width: 230px;
    height: 230px;
    background: var(--pink-bg);
    border-radius: 50%;
    opacity: 0.6;
}

.ct-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--navy);
    border-radius: 50%;
}

.ct-dot.red {
    background: var(--primary);
}

.ct-ring {
    position: absolute;
    width: 34px;
    height: 34px;
    border: 1.5px dashed var(--primary);
    border-radius: 50%;
}

.ct-plane {
    position: absolute;
    top: 6%;
    right: 14%;
    color: var(--navy);
    font-size: 1.6rem;
    transform: rotate(35deg);
}

.ct-envelope {
    position: relative;
    width: 200px;
    height: 150px;
}

.ct-env-back {
    position: absolute;
    inset: 0;
    background: var(--primary);
    border-radius: 10px;
}

.ct-env-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-top: 70px solid #c9302c;
}

.ct-env-letter {
    position: absolute;
    left: 20px;
    top: -30px;
    width: 160px;
    height: 120px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 12px 24px -10px rgba(20, 20, 26, 0.25);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
}

.ct-env-letter h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy);
    text-align: center;
    margin: 0;
    line-height: 1.25;
}

.ct-env-front-left {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-bottom: 80px solid #d8433c;
    border-right: 100px solid transparent;
}

.ct-env-front-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-bottom: 80px solid #c9302c;
    border-left: 100px solid transparent;
}

.ct-bubble {
    position: absolute;
    bottom: 8%;
    right: 10%;
    background: var(--navy);
    color: #fff;
    width: 52px;
    height: 40px;
    border-radius: 12px 12px 12px 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.ct-bubble span {
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
}

/* ---- World map ---- */

/* ---- Message card ---- */
.ct-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 30px 60px -30px rgba(20, 20, 26, 0.15);
    position: relative;
    z-index: 2;
}

.ct-card h5 {
    font-weight: 800;
    color: var(--navy);
}

.ct-card p.small-muted {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 10px;
}

.ct-card .form-control {
    background: #f6f5f3;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.88rem;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.ct-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(239, 65, 55, 0.12);
}

.btn-send {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 13px 26px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-send:hover {
    background: var(--navy);
    color: #fff;
    gap: 14px;
}

/* ---- Trust strip ---- */
.ct-trust {
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 24px 30px;
    margin-top: 50px;
}

.ct-trust-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ct-trust-item i {
    font-size: 1.3rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.ct-trust-item:hover i {
    transform: translateY(-4px);
}

.ct-trust-item h6 {
    font-weight: 700;
    color: var(--navy);
    font-size: 0.88rem;
    margin-bottom: 2px;
}

.ct-trust-item p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 991px) {
    .ct-art {
        height: 260px;
    }

    .ct-map {
        margin-bottom: 20px;
    }
}

/* contact toast */

/* ---------- Success toast (shown on Send Message) ---------- */
.ct-toast-wrap {
    position: fixed;
    top: calc(var(--navbar-height, 40px) + 16px);
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.ct-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 18px;
    min-width: 300px;
    max-width: 360px;
    box-shadow: 0 20px 40px -16px rgba(20, 10, 15, 0.28);
    border: 1px solid var(--border-soft);
    border-left: 4px solid #1fa971;
    transform: translateX(120%);
    opacity: 0;
    transition:
        transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.35s ease;
}
.ct-toast.ct-show {
    transform: translateX(0);
    opacity: 1;
}
.ct-toast .ct-toast-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(31, 169, 113, 0.12);
    color: #1fa971;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.ct-toast h6 {
    font-weight: 700;
    color: var(--navy);
    font-size: 14.5px;
    margin: 0 0 3px;
}
.ct-toast p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}
.ct-toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    padding: 2px;
    margin-left: auto;
    cursor: pointer;
}
.ct-toast-close:hover {
    color: var(--navy);
}

@media (max-width: 575.98px) {
    .ct-toast-wrap {
        top: calc(var(--navbar-height, 50px) + 12px);
        right: 12px;
        left: 12px;
    }
    .ct-toast {
        min-width: 0;
        max-width: none;
        width: 100%;
    }
}

/* FAQ section */

.faq-section {
    padding: 40px 0 50px;
}

.faq-eyebrow {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    padding: 0 20px;
}

.faq-eyebrow::before,
.faq-eyebrow::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 26px;
    height: 1px;
    background: var(--primary);
}

.faq-eyebrow::before {
    left: -30px;
}

.faq-eyebrow::after {
    right: -30px;
}

.faq-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--navy);
    margin-top: 14px;
}

.faq-title span {
    color: var(--primary);
}

@media (max-width: 767px) {
    .faq-title {
        font-size: 1.8rem;
    }
}

.faq-sub {
    color: var(--text-muted);
    max-width: 520px;
    margin: 16px auto 0;
}

/* Left image column: sticky so it never shifts when the accordion resizes */
.faq-art {
    position: sticky;
    top: 100px;
}

.faq-art img {
    width: 100%;
    border-radius: 16px;
}

/* ---- Accordion ---- */
.faq-item {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 24px -16px rgba(239, 78, 61, 0.35);
}

.faq-item.active {
    border-color: var(--primary);
    border-left-width: 4px;
    background: #fdf4f2;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    cursor: pointer;
}

.faq-num {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.faq-item.active .faq-num {
    background: var(--primary);
}

.faq-question h3 {
    flex: 1;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0;
}

.faq-question i {
    color: var(--navy);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    color: var(--primary);
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    padding: 0 20px 0 66px;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 20px 20px 66px;
}

/* .faq-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.faq-footer-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fdeae7;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-footer p {
    margin: 0;
}

.faq-footer .fw-bold {
    color: var(--navy);
}

.btn-faq {
    background: var(--primary);
    color: #fff;
    gap: 12px;
    border-radius: 30px;
    padding: 10px 22px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

@media (max-width: 991px) {
    .faq-art {
        position: static;
        margin-bottom: 24px;
    }
} */

/* Testimonal Section */

.tm-section {
    position: relative;
    padding: 90px 0 60px;
    background: #fff;
    overflow: hidden;
}

.tm-dot-grid {
    position: absolute;
    top: 8%;
    left: 4%;
    width: 110px;
    height: 100px;
    background-image: radial-gradient(
        rgba(232, 35, 42, 0.22) 1.8px,
        transparent 1.8px
    );
    background-size: 13px 13px;
    z-index: 0;
}

.tm-blob-left {
    position: absolute;
    top: -8%;
    left: -10%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(232, 35, 42, 0.1) 0%,
        rgba(232, 35, 42, 0) 70%
    );
    z-index: 0;
}

.tm-blob-right {
    position: absolute;
    bottom: -12%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(232, 35, 42, 0.08) 0%,
        rgba(232, 35, 42, 0) 70%
    );
    z-index: 0;
}

/* ---- Header ---- */
.tm-header {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 20px;
}

.tm-eyebrow-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 8px;
}

.tm-eyebrow-line {
    width: 32px;
    height: 1px;
    background: var(--primary);
    opacity: 0.5;
}

.tm-eyebrow-text {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tm-quote-top {
    color: var(--primary);
    font-size: 1.4rem;
    line-height: 1;
    margin-bottom: 6px;
    opacity: 0.85;
}

.tm-title {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--tm-navy);
    line-height: 1.25;
}

.tm-title .tm-accent {
    color: var(--primary);
}

@media (max-width: 767px) {
    .tm-title {
        font-size: 1.65rem;
    }
}

.tm-sub {
    margin-top: 14px;
    font-size: 0.95rem;
    color: var(--tm-muted);
    line-height: 1.6;
}

/* paper plane deco (desktop only, matches ref) */
.tm-plane-deco {
    position: absolute;
    top: 6%;
    right: 9%;
    z-index: 1;
    width: 120px;
    height: 110px;
    pointer-events: none;
}

.tm-plane-deco i.fa-paper-plane {
    position: absolute;
    top: 0;
    right: 6px;
    color: var(--primary);
    font-size: 1.7rem;
    transform: rotate(35deg);
}

.tm-plane-path {
    position: absolute;
    inset: 0;
}

@media (max-width: 991px) {
    .tm-plane-deco {
        display: none;
    }
}

/* ================= DESKTOP / TABLET slider ================= */
.tm-slider-outer {
    position: relative;
    z-index: 1;
    padding: 0 68px;
    margin-top: 34px;
}

@media (max-width: 767px) {
    .tm-slider-outer {
        display: none;
    }
}

.tm-nav-btn {
    position: absolute;
    top: 46%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--tm-border);
    background: #fff;
    color: var(--tm-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 14px 30px -14px rgba(20, 20, 26, 0.22);
    cursor: pointer;
    z-index: 6;
    transition: all 0.3s ease;
}

.tm-nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.tm-nav-prev {
    left: 0;
}

.tm-nav-next {
    right: 0;
}

.tm-nav-btn.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.tm-slider-wrapper {
    overflow: hidden;
    padding: 18px 4px;
}

.tm-track {
    display: flex;
    gap: 26px;
    transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.tm-slide {
    flex: 0 0 calc((100% - 26px * 2) / 3);
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .tm-slide {
        flex: 0 0 calc((100% - 26px * 1) / 2);
    }
}

.tm-card {
    background: #fff;
    border: 1px solid var(--tm-border);
    border-radius: 16px;
    padding: 28px 26px 26px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

.tm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 48px -24px rgba(20, 20, 26, 0.2);
}

.tm-slide.is-mid .tm-card {
    border-color: var(--primary);
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 30px 55px -20px rgba(232, 35, 42, 0.28);
}

.tm-slide.is-mid .tm-card:hover {
    transform: translateY(-14px) scale(1.03);
}

.tm-quote-icon {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.tm-stars {
    color: #f4b400;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.tm-card p.tm-text {
    font-size: 0.9rem;
    color: var(--tm-muted);
    line-height: 1.7;
    margin-bottom: 22px;
    flex: 1;
}

.tm-person {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--tm-border);
}

.tm-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
}

.tm-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tm-person h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--tm-navy);
    margin: 0;
}

.tm-person span {
    font-size: 0.78rem;
    color: var(--tm-muted);
}

.tm-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

.tm-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tm-border);
    border: none;
    padding: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tm-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 5px;
}

/* ================= MOBILE book-flip ================= */
.tm-mobile-book {
    display: none;
    position: relative;
    z-index: 1;
    margin-top: 26px;
}

@media (max-width: 767px) {
    .tm-mobile-book {
        display: block;
    }
}

.tm-book-stage {
    position: relative;
    perspective: 1600px;
    height: 340px;
}

.tm-book-page {
    position: absolute;
    inset: 0;
    background: #fff;
    border: 1px solid var(--tm-border);
    border-radius: 16px;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 45px -20px rgba(20, 20, 26, 0.22);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transform-origin: center center;
    transform: rotateY(0deg);
    transition: transform 0.5s cubic-bezier(0.4, 0.15, 0.2, 1);
}

.tm-book-page::before {
    /* spine shadow for page feel */
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 40%;
    background: linear-gradient(90deg, rgba(20, 20, 26, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 0 16px 16px 0;
}

.tm-book-page.is-flipping::before {
    opacity: 1;
}

.tm-book-page.is-flipping {
    transform: rotateY(-92deg);
}

.tm-book-page .tm-quote-icon {
    margin-bottom: 8px;
}

.tm-book-page .tm-stars {
    margin-bottom: 14px;
}

.tm-book-page p.tm-text {
    font-size: 0.88rem;
}

.tm-book-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 22px;
}

.tm-book-nav {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--tm-border);
    background: #fff;
    color: var(--tm-black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex: 0 0 auto;
}

.tm-book-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.tm-book-dots {
    display: flex;
    gap: 7px;
}

.tm-book-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tm-border);
    border: none;
    padding: 0;
    transition: all 0.3s ease;
}

.tm-book-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
}

/* ---- Stats bar ---- */
.tm-stats-bar {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 44px auto 0;
    background: #fafafb;
    border: 1px solid var(--tm-border);
    border-radius: 60px;
    padding: 18px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

@media (max-width: 767px) {
    .tm-stats-bar {
        border-radius: 20px;
        justify-content: center;
    }
}

.tm-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tm-stat-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition:
        transform 0.35s ease,
        background 0.35s ease,
        color 0.35s ease;
}

.tm-stat:hover .tm-stat-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1) rotate(-6deg);
}

.tm-stat-num {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--tm-navy);
    line-height: 1.1;
}

.tm-stat-label {
    font-size: 0.74rem;
    color: var(--tm-muted);
    margin: 0;
}

/* ================= SECTION SHELL ================= */
.team-section {
    position: relative;
    padding: 40px 0 60px;
    overflow: hidden;
}

/* team ceo*/

.ceo-section {
    position: relative;
    background: var(--bg-blush);
    overflow: hidden;
    padding: 56px 0;
    font-size: 0.94rem;
}

/* decorative blurred blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(0px);
    z-index: 0;
    pointer-events: none;
}

.blob-left {
    width: 300px;
    height: 300px;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(239, 63, 54, 0.1),
        rgba(239, 63, 54, 0) 70%
    );
    left: -120px;
    top: -40px;
}

.blob-right {
    width: 380px;
    height: 380px;
    background: radial-gradient(
        circle at 70% 70%,
        rgba(239, 63, 54, 0.08),
        rgba(239, 63, 54, 0) 70%
    );
    right: -150px;
    bottom: -120px;
}

.ceo-section .container {
    position: relative;
    z-index: 1;
}

/* ---------- Image column ---------- */
.ceo-photo-wrap {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
}

.dot-grid {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 52px;
    height: 34px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 4px;
    z-index: 2;
}

.dot-grid span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.8;
}

.ceo-photo {
    width: 100%;
    display: block;
    border-radius: 14px;
    object-fit: cover;
    aspect-ratio: 4/5;
    box-shadow: var(--card-shadow);
    transition:
        transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.5s ease;
}

.ceo-photo-wrap:hover .ceo-photo {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 20px 45px rgba(29, 27, 32, 0.16);
}

.ceo-badge {
    position: absolute;
    left: -10px;
    bottom: -20px;
    background: #fff;
    border-radius: 12px;
    padding: 9px 16px 9px 9px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 12px 28px rgba(29, 27, 32, 0.14);
    z-index: 3;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.ceo-photo-wrap:hover .ceo-badge {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(29, 27, 32, 0.2);
}

.ceo-badge .crown-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 8px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
}

.ceo-badge .badge-name {
    font-weight: 700;
    font-size: 12.5px;
    line-height: 1.2;
    white-space: nowrap;
    color: var(--text-dark);
}

.ceo-badge .badge-role {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

/* ---------- Text column ---------- */
/* .eyebrow {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1.6px;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
    padding-left: 30px;
}

.eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 2px;
    background: var(--primary);
} */

.ceo-heading {
    font-weight: 700;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.25;
    margin-bottom: 18px;
}

.ceo-heading .accent {
    color: var(--primary);
}

.quote-block {
    position: relative;
    border-left: 3px solid var(--primary);
    padding-left: 16px;
    margin-bottom: 16px;
}

.quote-mark {
    color: var(--primary);
    font-family: Georgia, serif;
    font-size: 2rem;
    line-height: 0;
    position: relative;
    opacity: 0.9;
}

.quote-text {
    color: var(--text-dark);
    font-size: 0.88rem;
    line-height: 1.75;
    margin-top: -4px;
}

.support-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.75;
    margin-bottom: 22px;
}

/* ---------- Stats ---------- */
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    box-shadow: var(--card-shadow);
    height: 100%;
    transition:
        transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.35s ease,
        background 0.35s ease;
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 26px rgba(239, 63, 54, 0.18);
    background: #fff;
}

.stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(239, 63, 54, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 9px auto;
    font-size: 14px;
    transition:
        background 0.35s ease,
        transform 0.35s ease,
        color 0.35s ease;
}

.stat-card:hover .stat-icon {
    background: var(--primary);
    color: #fff;
    transform: rotate(-8deg) scale(1.08);
}

.stat-number {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1px;
    font-family: "Poppins", sans-serif;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 991.5px) {
    .ceo-section {
        padding: 40px 0;
    }

    .ceo-photo-wrap {
        margin-bottom: 50px;
    }
}

@media (max-width: 575.5px) {
    .ceo-badge {
        left: 6px;
        bottom: -16px;
        padding: 8px 14px 8px 8px;
    }

    .ceo-badge .crown-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .ceo-badge .badge-name {
        font-size: 12px;
    }

    .ceo-badge .badge-role {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ================= TEAM CARDS ================= */
.team-grid {
    position: relative;
    z-index: 1;
    margin-top: 40px;
}

.team-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: 18px;
    padding: 44px 14px 24px;
    height: 100%;
    text-align: center;
    overflow: hidden;
    transition:
        transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.45s ease,
        border-color 0.45s ease;
}

.team-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.team-card:hover::after {
    transform: scaleX(1);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 36px -18px rgba(232, 35, 42, 0.28);
    border-color: rgba(232, 35, 42, 0.25);
}

.team-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    z-index: 3;
}
.team-card:hover .team-badge i {
    animation: team-badge-spin 0.6s ease;
}
@keyframes team-badge-spin {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}

/* signature: stacked squircle — tilted panel behind, photo settles flat on hover */
.team-avatar-wrap {
    position: relative;
    width: 180px;
    height: 200px;
    margin: 0 auto 18px;
}

.team-avatar-back {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    transform: rotate(-8deg);
}

.team-avatar {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 20px;
    border: 3px solid var(--white);
    box-shadow: 0 8px 16px rgba(20, 20, 26, 0.12);
    transform: rotate(-3deg);
}
.team-card:hover .team-avatar {
    transform: rotate(0deg) scale(1.03);
}

.team-wave {
    position: absolute;
    right: -6px;
    bottom: -6px;
    font-size: 2.2rem;
    opacity: 0;
    transform: scale(0.4) rotate(-20deg);
    transition:
        opacity 0.3s ease,
        transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.15));
    z-index: 3;
}
.team-card:hover .team-wave {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    animation: team-wave-hand 0.8s ease-in-out 0.3s 2;
}
@keyframes team-wave-hand {
    0%,
    100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-18deg);
    }
    50% {
        transform: rotate(14deg);
    }
    75% {
        transform: rotate(-10deg);
    }
}

.team-name {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 2px;
}
.team-role {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.78rem;
    margin-bottom: 0;
}

@media (max-width: 575px) {
    .team-card {
        padding: 40px 14px 22px;
        border-radius: 14px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .team-avatar-wrap {
        width: 160px;
        height: 180px;
    }
    .team-name {
        font-size: 0.95rem;
    }
    .team-role {
        font-size: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-card,
    .team-avatar-back,
    .team-avatar,
    .team-wave,
    .team-badge i {
        transition: none !important;
        animation: none !important;
    }
}

/* ================= TEAM CTA BAR ================= */
.team-cta {
    position: relative;
    z-index: 1;
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 18px 26px;
    margin-top: 26px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: space-between;
    transition:
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}
.team-cta:hover {
    box-shadow: 0 18px 30px -18px rgba(232, 35, 42, 0.25);
    border-color: rgba(232, 35, 42, 0.2);
}
.team-cta-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.team-cta-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-black);
}
.team-cta-text span {
    display: block;
    color: var(--gray);
    font-size: 0.8rem;
    margin-top: 2px;
}
.team-cta-btn {
    background: var(--primary);
    color: var(--white) !important;
    border: none;
    border-radius: 9px;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}
.team-cta-btn:hover {
    background: #c9202f;
    transform: translateY(-2px);
    color: var(--white) !important;
}

@media (max-width: 575px) {
    .team-cta {
        flex-direction: column;
        text-align: center;
        padding: 20px 18px;
    }
    .team-cta-btn {
        width: 100%;
        text-align: center;
    }
}

/* =========================================
   FLOATING CONTACT BUTTONS
   ========================================= */

.float-btn {
    position: fixed !important;
    bottom: 24px !important;

    width: 58px;
    height: 58px;

    border-radius: 50%;

    color: #fff;
    text-decoration: none;

    font-size: 1.5rem;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: visible;

    z-index: 99999 !important;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

    isolation: isolate;
}

.float-whatsapp {
    right: 24px !important;
    left: auto !important;

    background: #25d366;
}

.float-call {
    left: 24px !important;
    right: auto !important;

    background: #e8232a;
}

.float-btn i {
    position: relative;

    z-index: 3;

    display: inline-block;

    animation: tingle 3.2s ease-in-out infinite;
}

/* Stagger phone animation */

.float-call i {
    animation-delay: 1.1s;
}

.float-btn:hover,
.float-btn:focus-visible {
    transform: scale(1.1) translateY(-3px);

    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3) !important;

    color: #fff;
}

.float-tooltip {
    position: absolute;

    top: 50%;

    background: #1a1a1a;
    color: #fff;

    font-size: 0.82rem;
    font-weight: 500;

    white-space: nowrap;

    padding: 6px 12px;

    border-radius: 6px;

    opacity: 0;

    pointer-events: none;

    z-index: 10;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

/* Show tooltip */

.float-btn:hover .float-tooltip,
.float-btn:focus-visible .float-tooltip {
    opacity: 1;
    pointer-events: auto;
}

.float-whatsapp .float-tooltip {
    right: calc(100% + 12px);

    transform: translateX(8px) translateY(-50%);
}

.float-whatsapp:hover .float-tooltip,
.float-whatsapp:focus-visible .float-tooltip {
    transform: translateX(0) translateY(-50%);
}

/* WhatsApp tooltip arrow */

.float-whatsapp .float-tooltip::after {
    content: "";

    position: absolute;

    left: 100%;
    top: 50%;

    transform: translateY(-50%);

    border: 5px solid transparent;

    border-left-color: #1a1a1a;
}

.float-call .float-tooltip {
    left: calc(100% + 12px);

    transform: translateX(-8px) translateY(-50%);
}

.float-call:hover .float-tooltip,
.float-call:focus-visible .float-tooltip {
    transform: translateX(0) translateY(-50%);
}

.float-call .float-tooltip::after {
    content: "";

    position: absolute;

    right: 100%;
    top: 50%;

    transform: translateY(-50%);

    border: 5px solid transparent;

    border-right-color: #1a1a1a;
}

.float-ring {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    border-radius: 50%;

    pointer-events: none;

    z-index: 1;

    animation: sonarPulse 2.4s ease-out infinite;
}

.float-whatsapp .float-ring {
    color: rgba(37, 211, 102, 0.55);
}

/* Call ring */

.float-call .float-ring {
    color: rgba(232, 35, 42, 0.55);
}

@keyframes sonarPulse {
    0% {
        box-shadow: 0 0 0 0 currentColor;

        opacity: 1;
    }

    100% {
        box-shadow: 0 0 0 22px transparent;

        opacity: 0;
    }
}

@keyframes tingle {
    0%,
    55%,
    100% {
        transform: rotate(0deg);
    }

    2% {
        transform: rotate(-16deg);
    }

    4% {
        transform: rotate(13deg);
    }

    6% {
        transform: rotate(-10deg);
    }

    8% {
        transform: rotate(8deg);
    }

    10% {
        transform: rotate(-6deg);
    }

    12% {
        transform: rotate(4deg);
    }

    14% {
        transform: rotate(-2deg);
    }

    16% {
        transform: rotate(0deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .float-ring,
    .float-btn i {
        animation: none !important;
    }
}

@media (max-width: 576px) {
    .float-btn {
        width: 48px;
        height: 48px;

        bottom: 16px !important;

        font-size: 1.25rem;
    }

    .float-whatsapp {
        right: 16px !important;
    }

    .float-call {
        left: 16px !important;
    }

    .float-tooltip {
        display: none;
    }
}

/* Blog Section */

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Decorative dot grids ===== */
.dots-grid {
    position: absolute;
    width: 90px;
    height: 90px;
    background-image: radial-gradient(
        var(--primary-light) 1.6px,
        transparent 1.6px
    );
    background-size: 12px 12px;
    opacity: 0.9;
    z-index: 0;
}
.decor-arc {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.blog-section {
    position: relative;
    padding: 40px 0 60px;
    overflow: hidden;
}

/* ===== Eyebrow ===== */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    text-transform: uppercase;
}

.hero-title {
    font-weight: 800;
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    letter-spacing: -1px;
    color: var(--text-black);
}
.hero-title .accent {
    color: var(--primary);
}

.hero-sub {
    color: var(--text-muted);
    font-size: 1.02rem;
    max-width: 600px;
    margin: 18px auto 0;
    line-height: 1.6;
}

.paper-plane {
    position: absolute;
    top: 30px;
    right: 6%;
    width: 70px;
    z-index: 1;
}
@media (max-width: 991px) {
    .paper-plane {
        display: none;
    }
}

/* ===== Filter pills ===== */
.filter-wrap {
    margin-top: 44px;
    margin-bottom: 40px;
}
.filter-scroll {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.pill-btn {
    border: 1.5px solid var(--border-soft);
    background: var(--white);
    color: var(--ink);
    white-space: nowrap;
    transition: all 0.25s ease;
    flex: 0 0 auto;
}
@media (min-width: 992px) {
    .filter-scroll {
        flex-wrap: nowrap;
    }
    .filter-scroll .pill-btn {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        font-size: 0.85rem;
    }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .filter-scroll .pill-btn {
        font-size: 0.78rem;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    .filter-scroll .pill-btn i {
        display: none;
    }
}
.pill-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}
.pill-btn.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--white) !important;
    box-shadow: 0 8px 18px rgba(232, 35, 42, 0.25);
}

/* ===== Cards ===== */
.blog-card {
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    overflow: hidden;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow);
}

.card-img-wrap {
    position: relative;
    aspect-ratio: 16/8.5;
    overflow: hidden;
}
.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .card-img-wrap img {
    transform: scale(1.08);
}
.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    letter-spacing: 0.2px;
}

.meta-row {
    font-size: 0.76rem;
    color: var(--text-muted);
}
.meta-row i {
    color: var(--primary);
    font-size: 0.74rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-black);
    line-height: 1.3;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card:hover .card-title {
    color: var(--primary);
}

.card-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
}
.read-more i {
    transition: transform 0.25s ease;
    font-size: 0.8rem;
}
.read-more:hover {
    color: var(--primary-dark);
}
.read-more:hover i {
    transform: translateX(4px);
}

/* ===== Pagination ===== */
.page-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px !important;
    border: 1.5px solid var(--border-soft) !important;
    background: var(--white);
    color: var(--ink) !important;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.page-btn:hover:not(:disabled) {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}
.page-btn.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--white) !important;
}
.page-btn:disabled {
    opacity: 0.4;
}
.page-btn.dots {
    border: none !important;
    background: transparent;
}

/* ===== Mobile: horizontal scroll pills & cards (native CSS scroll, no JS) ===== */
@media (max-width: 767px) {
    .blog-section {
        padding: 30px 0 40px;
    }

    .filter-scroll {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 2px 16px 10px;
        margin: 0 -16px;
        scroll-behavior: smooth;
    }
    .filter-scroll::-webkit-scrollbar {
        display: none;
    }
    .filter-scroll .pill-btn {
        flex: 0 0 auto;
    }

    #cardsContainer {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding: 6px 0 16px;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }
    #cardsContainer::-webkit-scrollbar {
        display: none;
    }
    #cardsContainer .card-col {
        flex: 0 0 100%;
        scroll-snap-align: start;
        padding-right: 0;
    }
}
