/**
 * Counter — bridge edition (rework)
 * Counter card menjembatani hero (atas) dan list gigs (bawah).
 * Visual: floating card, lifted from hero, blends into gigs section.
 */

/* Wrapper bridge — floating card overlapping hero (top) AND gigs (bottom) */
.tk-counter-bridge{
    position: relative;
    z-index: 10;
    /* slim overlap on both ends — clears "Popular categories" above */
    margin: -56px auto -56px;
    padding: 0 24px;
    max-width: 1180px;
    width: 100%;
    box-sizing: border-box;
}

/* Counter section itself: zero height contribution — let card float over neighbors */
.pb-themesection:has(.tk-counter-bridge){
    background: transparent !important;
    background-image: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 10;
    isolation: auto !important;
}
/* Kill the white overlay that was making the section look opaque */
.pb-themesection:has(.tk-counter-bridge)::before{
    display: none !important;
    content: none !important;
}

/* Body stays white so neighboring sections behave; do NOT force hero/gigs bg */
body.tk-homepage{
    background: #ffffff !important;
}
.pb-themesection:has(.tk-counter-bridge) > .container{
    max-width: 100% !important;
    padding: 0 !important;
}
.pb-themesection:has(.tk-counter-bridge) > .container > .row,
.pb-themesection:has(.tk-counter-bridge) > .container > .row > .col-12{
    margin: 0 !important;
    padding: 0 !important;
}

/* Card — minimalist: white, rounded, soft shadow only */
.tk-counter-bridge-card{
    background: #ffffff;
    border-radius: 14px;
    box-shadow:
        0 1px 2px rgba(15, 30, 60, 0.04),
        0 8px 24px rgba(15, 30, 60, 0.06);
    border: 1px solid rgba(15, 30, 60, 0.05);
    padding: 24px 28px;
    position: relative;
    overflow: hidden;
}

/* Hide any old wrapper / description text */
.tk-couter-wrapper{
    display: contents !important;
}
.tk-stats-section-content{
    display: none !important;
}

/* Counter list — flat, transparent, evenly spaced */
.tk-counter-bridge-card .tk-counternum,
.tk-counternum{
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    list-style: none;
    width: 100%;
}

.tk-counternum li{
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    list-style: none;
    padding: 6px 28px;
    margin: 0;
    position: relative;
    text-align: center;
    display: flex;
    align-items: stretch;
}

/* Subtle vertical divider between items */
.tk-counternum li + li::before{
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, rgba(15,30,60,0.10) 50%, transparent 100%);
}

/* Counter item — clean, no card */
.tk-countitem{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    min-height: 0;
    box-sizing: border-box;
    width: 100%;
    transition: transform 0.25s ease;
}
.tk-countitem:hover{
    transform: translateY(-2px);
}

/* Icon */
.tk-countitem img{
    height: 32px;
    max-width: 44px;
    margin-bottom: 8px;
    object-fit: contain;
}

/* Number — minimalist solid color */
.tk-countitem h3{
    margin: 0 0 4px;
    font: 700 24px/30px "Inter", sans-serif;
    color: #1E1E1E;
    white-space: normal;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

/* Label */
.tk-countitem span{
    display: block;
    font: 400 12.5px/18px "Inter", sans-serif;
    color: rgba(30, 30, 30, 0.62);
    max-width: 220px;
    text-align: center;
    margin: 0 auto;
}

/* Tablet */
@media (max-width: 1024px){
    .tk-counter-bridge{
        margin: -44px auto -44px;
        padding: 0 18px;
        max-width: 760px;
    }
    .tk-counter-bridge-card{
        padding: 22px 20px;
        border-radius: 14px;
    }
    .tk-counternum li{
        padding: 6px 16px;
    }
    .tk-countitem h3{
        font-size: 22px;
        line-height: 28px;
    }
}

/* Mobile */
@media (max-width: 767px){
    .tk-counter-bridge{
        margin: -36px auto -28px;
        padding: 0 14px;
    }
    .tk-counter-bridge-card{
        padding: 22px 18px;
        border-radius: 14px;
        box-shadow:
            0 1px 2px rgba(15, 30, 60, 0.04),
            0 8px 20px rgba(15, 30, 60, 0.06);
    }
    .tk-counternum{
        gap: 4px;
    }
    .tk-counternum li{
        flex: 1 1 100%;
        max-width: 100%;
        padding: 14px 8px;
    }
    .tk-counternum li::before{
        display: none !important;
    }
    .tk-counternum li + li{
        border-top: 1px solid rgba(15,30,60,0.08);
    }
    .tk-countitem img{
        height: 36px;
        max-width: 50px;
        margin-bottom: 8px;
    }
    .tk-countitem h3{
        font-size: 24px;
        line-height: 30px;
        margin-bottom: 4px;
    }
    .tk-countitem span{
        font-size: 13px;
        line-height: 20px;
        max-width: 100%;
        padding: 0 8px;
    }
}

/* Small mobile */
@media (max-width: 480px){
    .tk-counter-bridge{
        margin: -28px auto -22px;
        padding: 0 12px;
    }
}

/* Animation */
.tk-countitem h3.animated{
    animation: counterFadeIn 0.7s ease-out forwards;
}
@keyframes counterFadeIn{
    0%   { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}
