/* ================================================================
   Voctos — Dev Technologies & CMS block
   Original: section.pt-4.mb-4.lg:mb-8  (transparent background)
   ================================================================ */

/* ── Section ─────────────────────────────────────────────────── */
.voctos-dev-tech {
    padding-top: 16px;    /* pt-4 */
    margin-bottom: 16px;  /* mb-4 */
}
@media (min-width: 1024px) {
    .voctos-dev-tech {
        margin-bottom: 32px; /* lg:mb-8 */
    }
}

/* ── Heading ─────────────────────────────────────────────────── */
/* text-2xl text-third lg:text-fs-5 lg:mb-1.5 */
.voctos-dev-tech .dt-heading {
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    color: #0D172D;
    margin-bottom: 0;
}
@media (min-width: 1024px) {
    .voctos-dev-tech .dt-heading {
        font-size: 38px;
        margin-bottom: 6px; /* lg:mb-1.5 */
    }
}

/* ── Filter tabs ─────────────────────────────────────────────── */
/* flex gap-3 -mx-[25px] px-[25px] py-5 overflow-x-auto scrollbar-none */
/* lg:flex-wrap lg:justify-center lg:overflow-visible lg:-mx-0 lg:px-0 lg:mb-8 */
.voctos-dev-tech .dt-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;           /* gap-3 */
    list-style: none;
    margin: 0 -25px;     /* -mx-[25px] */
    padding: 20px 25px;  /* py-5 px-[25px] */
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.voctos-dev-tech .dt-filters::-webkit-scrollbar { display: none; }

@media (min-width: 1024px) {
    .voctos-dev-tech .dt-filters {
        flex-wrap: wrap;
        overflow-x: visible;
        margin: 0;
        padding: 20px 0;
        margin-bottom: 32px; 
        border-bottom: 1px solid #d5d9e8;
    }
}

/* ── Filter tab pill ─────────────────────────────────────────── */
/* py-1.5 px-4 rounded-rc-2(19px) leading-3 shrink-0 flex items-center h-9 gap-x-2 transition-colors */
.voctos-dev-tech .dt-filter {
    display: flex;
    align-items: center;
    gap: 8px;             /* gap-x-2 */
    flex-shrink: 0;
    height: 36px;         /* h-9 */
    padding: 0 16px;      /* px-4 */
    border-radius: 19px;  /* rounded-rc-2 */
    font-family: 'Unbounded', sans-serif;
    font-size: 12px;      /* text-xs */
    line-height: 1;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s;
    background: rgba(255, 255, 255, 0.5);
    color: rgba(156, 163, 175, 0.9);
}
.voctos-dev-tech .dt-tab__icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    pointer-events: none;
    color: inherit;
}
.voctos-dev-tech .dt-filter__label {
    pointer-events: none;
}
.voctos-dev-tech .dt-filter.is-active {
    background: #111827;
    color: #ffffff;
}
.voctos-dev-tech .dt-filter.is-active .dt-tab__icon {
    color: #9BB725;
}
.voctos-dev-tech .dt-filter:not(.is-active):hover {
    background: rgba(255, 255, 255, 0.85);
    color: #374151;
}

/* ── Groups list ─────────────────────────────────────────────── */
/* ul: flex flex-col gap-y-4 */
.voctos-dev-tech .dt-groups {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ── Group li ────────────────────────────────────────────────── */
.voctos-dev-tech .dt-group {
    position: relative;
}

/* ── Group heading h3 ────────────────────────────────────────── */
/* font-medium text-xl mb-3 */
.voctos-dev-tech .dt-group__title {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #0D172D;
    margin: 0 0 12px;
    line-height: 1.3;
}

/* ── Cards outer (mobile scroll container) ───────────────────── */
/* overflow-x-hidden -mx-[25px] px-[25px] lg:px-0 lg:mx-0 */
.voctos-dev-tech .dt-cards-outer {
    overflow: hidden;
    margin: 0 -25px;
    padding: 0 25px;
}
@media (min-width: 1024px) {
    .voctos-dev-tech .dt-cards-outer {
        overflow: visible;
        margin: 0;
        padding: 0;
    }
}

/* ── Cards list: mobile = flex scroll, desktop = 5-col grid ──── */
.voctos-dev-tech .dt-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.voctos-dev-tech .dt-cards::-webkit-scrollbar { display: none; }

@media (min-width: 1024px) {
    .voctos-dev-tech .dt-cards {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
        overflow-x: visible;
    }
}

/* ── Category mode: 2-col grid on mobile ────────────────────── */
.voctos-dev-tech[data-dt-mode="category"] .dt-cards-outer {
    overflow: visible;
    margin: 0;
    padding: 0;
}
.voctos-dev-tech[data-dt-mode="category"] .dt-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    overflow-x: visible;
}
@media (min-width: 1024px) {
    .voctos-dev-tech[data-dt-mode="category"] .dt-cards {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }
}

/* ── Card ────────────────────────────────────────────────────── */
/* bg-white rounded-rc-3(18px) pt-5 px-3 pb-14 relative overflow-hidden lg:pr-12 lg:pb-10 */
.voctos-dev-tech .dt-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 12px 56px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    width: calc(50vw - 30px);
    min-width: 140px;
}
@media (min-width: 480px) {
    .voctos-dev-tech .dt-card {
        width: calc(33vw - 25px);
    }
}
@media (min-width: 1024px) {
    .voctos-dev-tech .dt-card {
        padding-right: 48px;
        padding-bottom: 40px;
        width: auto;
        flex-shrink: 1;
    }
}
.voctos-dev-tech[data-dt-mode="category"] .dt-card {
    width: auto;
    flex-shrink: 1;
}

/* ── Card title row: p.mb-1.5.flex.items-center ─────────────── */
.voctos-dev-tech .dt-card__title-row {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

/* Name link: text-sm uppercase text-third pr-5 z-[2] */
.voctos-dev-tech .dt-card__name {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    color: #0D172D;
    text-decoration: none;
    position: relative;
    padding-right: 20px;
    z-index: 2;
    line-height: 1.2;
}
.voctos-dev-tech .dt-card__name:hover { text-decoration: underline; }

/* Arrow: w-2.5 h-2.5 text-third -ml-2.5 shrink-0 */
.voctos-dev-tech .dt-card__arrow-svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    color: #0D172D;
    margin-left: -10px;
    pointer-events: none;
    position: relative;
    z-index: 2;
}

/* ── Card description: text-fs-8(12px) text-gray-500/90 ──────── */
.voctos-dev-tech .dt-card__desc {
    font-family: 'Unbounded', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(107, 114, 128, 0.9);
    margin: 0;
}

/* ── Card image: absolute -bottom-3 -right-3, 64×64 ─────────── */
.voctos-dev-tech .dt-card__img-wrap {
    position: absolute;
    bottom: -12px;
    right: -12px;
    display: block;
    text-decoration: none;
}
.voctos-dev-tech .dt-card__img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

/* ================================================================
   Display style: "grid" (no tabs) — reusable "Supported websites
   and CMS" layout: heading + rule line, all cards in one grid.
   ================================================================ */
.voctos-dev-tech[data-dt-style="grid"] .dt-head-row {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 28px;
}
@media (min-width: 1024px) {
    .voctos-dev-tech[data-dt-style="grid"] .dt-head-row { margin-bottom: 40px; }
}
.voctos-dev-tech[data-dt-style="grid"] .dt-head-row .dt-heading {
    margin: 0;
    flex-shrink: 0;
}
.voctos-dev-tech[data-dt-style="grid"] .dt-head-line {
    flex: 1 1 auto;
    height: 1px;
    background: #d5d9e8;
}
/* Mobile & tablet (<1024px): the heading had flex-shrink:0 so a long title
   ("We control reviews on popular platforms") stayed on one line and overflowed
   the viewport. Let it shrink & wrap; the rule line drops below it. */
@media (max-width: 1023.98px) {
    .voctos-dev-tech[data-dt-style="grid"] .dt-head-row { flex-wrap: wrap; gap: 14px 28px; }
    .voctos-dev-tech[data-dt-style="grid"] .dt-head-row .dt-heading { flex-shrink: 1; min-width: 0; }
    .voctos-dev-tech[data-dt-style="grid"] .dt-head-line { flex-basis: 100%; }
}

/* always a grid (no horizontal scroll): 2 → 3 → 5 columns */
.voctos-dev-tech[data-dt-style="grid"] .dt-cards--grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    overflow: visible;
}
@media (min-width: 640px) {
    .voctos-dev-tech[data-dt-style="grid"] .dt-cards--grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}
@media (min-width: 1024px) {
    .voctos-dev-tech[data-dt-style="grid"] .dt-cards--grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }
}
.voctos-dev-tech[data-dt-style="grid"] .dt-cards--grid .dt-card {
    width: auto;
    min-width: 0;
    flex-shrink: 1;
    padding: 20px 12px 56px;
}
@media (min-width: 1024px) {
    .voctos-dev-tech[data-dt-style="grid"] .dt-cards--grid .dt-card {
        padding: 24px 16px 64px;
    }
}

/* Mobile & tablet (below lg/1024px): make the "grid" style scroll horizontally too. Desktop keeps the 5-col grid. */
@media (max-width: 1023px) {
    .voctos-dev-tech[data-dt-style="grid"] .dt-cards--grid {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        padding-bottom: 14px;
        scroll-snap-type: x mandatory;
    }
    .voctos-dev-tech[data-dt-style="grid"] .dt-cards--grid .dt-card {
        flex: 0 0 auto;
        width: calc(50vw - 30px);
        min-width: 150px;
        max-width: 240px;
        scroll-snap-align: center;
    }
}
