/**
 * Block: Top Bar - Styles
 */

/* Base Styles */
.acf-block {
    position: relative;
}

/* Universal Container */
.acf-block .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Google Fonts - Montserrat and Roboto */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Roboto:wght@400;500;700;900&family=Lexend:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

/* Font Family Classes */
.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

.font-roboto {
    font-family: 'Roboto', sans-serif;
}

.font-lexend {
    font-family: 'Lexend', sans-serif;
}

.font-plus-jakarta-sans {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Top Bar Block */
.top-bar {
    position: relative;
    z-index: 60;
    padding: 12px 0;
    text-align: center;
    overflow: hidden;
}

.top-bar-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* Alignment Options */
.top-bar-content.justify-start {
    justify-content: flex-start;
}

.top-bar-content.justify-center {
    justify-content: center;
}

.top-bar-content.justify-end {
    justify-content: flex-end;
}

.top-bar-content.justify-between {
    justify-content: space-between;
}

/* Top Bar Items */
.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.top-bar-item i {
    flex-shrink: 0;
}

/* Divider */
.top-bar-divider {
    color: rgba(255, 255, 255, 0.4);
    opacity: 0.6;
    display: none;
    font-weight: 300;
}

/* Desktop Modes (1024px and above) */
@media (min-width: 1024px) {
    .top-bar.desktop-static .top-bar-divider {
        display: inline;
    }

    /* Desktop Scrolling Mode */
    .top-bar.desktop-scrolling .container {
        padding: 0;
        overflow: hidden;
    }

    .top-bar.desktop-scrolling .top-bar-content {
        flex-wrap: nowrap;
        overflow: hidden;
        justify-content: flex-start;
    }

    .top-bar.desktop-scrolling .top-bar-item {
        flex-shrink: 0;
    }

    .top-bar.desktop-scrolling .top-bar-divider {
        display: inline;
        flex-shrink: 0;
    }

    /* Desktop Slider Mode */
    .top-bar.desktop-slider .container {
        position: relative;
        overflow: hidden;
    }

    .top-bar.desktop-slider .top-bar-content {
        flex-wrap: nowrap;
        position: relative;
        width: 100%;
        justify-content: center;
    }

    .top-bar.desktop-slider .top-bar-item {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
    }

    .top-bar.desktop-slider .top-bar-item.active {
        opacity: 1;
        position: relative;
        left: auto;
        transform: none;
    }

    .top-bar.desktop-slider .top-bar-divider {
        display: none;
    }

    /* Desktop Hide Mode */
    .top-bar.desktop-hide {
        display: none;
    }
}

/* Small Screens - Mobile & Tablet (below 1024px) */
@media (max-width: 1023px) {

    /* Small Screen Static Mode */
    .top-bar.mobile-static .top-bar-content {
        justify-content: center;
        gap: 12px;
    }

    .top-bar.mobile-static .top-bar-divider {
        display: none;
    }

    /* Mobile Scrolling Mode */
    .top-bar.mobile-scrolling .container {
        padding: 0;
        overflow: hidden;
    }

    .top-bar.mobile-scrolling .top-bar-content {
        flex-wrap: nowrap;
        overflow: hidden;
        justify-content: flex-start;
    }

    .top-bar.mobile-scrolling .top-bar-item {
        flex-shrink: 0;
    }

    .top-bar.mobile-scrolling .top-bar-divider {
        display: inline;
        flex-shrink: 0;
    }

    /* Mobile Slider Mode */
    .top-bar.mobile-slider .container {
        position: relative;
        overflow: hidden;
    }

    .top-bar.mobile-slider .top-bar-content {
        flex-wrap: nowrap;
        position: relative;
        width: 100%;
        justify-content: center;
    }

    .top-bar.mobile-slider .top-bar-item {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
    }

    .top-bar.mobile-slider .top-bar-item.active {
        opacity: 1;
        position: relative;
        left: auto;
        transform: none;
    }

    .top-bar.mobile-slider .top-bar-divider {
        display: none;
    }

    /* Mobile Hide Mode */
    .top-bar.mobile-hide {
        display: none;
    }
}

/* Tablet and Desktop */
@media (min-width: 768px) {
    .top-bar .container {
        padding: 0 24px;
    }

    .top-bar-content {
        gap: 24px;
    }

    .top-bar-divider {
        display: inline;
    }
}

@media (min-width: 1024px) {
    .top-bar .container {
        padding: 0 32px;
    }
}

/* ── Infinite Ticker Track ─────────────────────────────────── */

/* Outer track — holds two identical strips side-by-side */
.tb-track {
    display: flex;
    flex-wrap: nowrap;
    will-change: transform;
}

/* Each strip is a full copy of the items */
.tb-ticker {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    padding-right: 40px; /* visual gap before the loop repeats */
    white-space: nowrap;
}